/* Typography System */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem; /* 16px base */
    background-color: #f5f5f7;
    color: #1d1d1f;
    line-height: 1.5;
}

h1, h2, h3, h4, h6 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 700;
    line-height: 1.2;
}

h5, .h5 {
    font-size: 1rem; /* 16px */
    font-weight: 600;
    line-height: 1.4;
}

small, .small {
    font-size: 0.875rem; /* 14px */
}

/* Navbar Styles */
.navbar-custom {
    background: #ffffff;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: relative;
    z-index: 100;
}

.navbar-brand img {
    height: 32px;
}

.nav-link {
    color: #1d1d1f !important;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover {
    color: #0071e3 !important;
}

.nav-link i {
    font-size: 1.1em;
}

.dropdown-menu {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    color: #1d1d1f;
    border-radius: 8px;
    padding: 8px 16px;
    transition: all 0.2s;
    font-size: 0.875rem; /* 14px */
}

.dropdown-item:hover {
    background: #f5f5f7;
    color: #0071e3;
}

.dropdown-divider {
    border-top-color: rgba(0, 0, 0, 0.1);
}

.btn-nav-outline {
    border: 1px solid #1d1d1f;
    color: #1d1d1f;
    border-radius: 20px;
    padding: 6px 20px;
    font-size: 0.875rem; /* 14px */
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-nav-outline:hover {
    background: #1d1d1f;
    border-color: #1d1d1f;
    color: #fff;
}

.btn-nav-primary {
    background: #0071e3;
    color: #fff;
    border-radius: 20px;
    padding: 6px 20px;
    font-size: 0.875rem; /* 14px */
    border: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-nav-primary:hover {
    background: #0077ed;
    color: #fff;
    transform: scale(1.02);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(180deg, #ffffff 0%, #f5f5f7 100%);
    color: #1d1d1f;
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
}

.hero-bg-animation svg {
    width: 100%;
    height: 100%;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #1d1d1f 0%, #434344 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #86868b;
    margin-bottom: 40px;
}

.input-group-apple {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    padding: 8px;
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-control-apple {
    background: transparent;
    border: none;
    color: #1d1d1f;
    font-size: 1.5rem; /* 24px */
    padding: 10px 20px;
}

.form-control-apple:focus {
    background: transparent;
    box-shadow: none;
    color: #1d1d1f;
}

.form-control-apple::placeholder {
    color: #86868b;
}

.btn-apple {
    background: #0071e3;
    color: #fff;
    border-radius: 12px;
    padding: 10px 25px;
    font-weight: 600;
    border: none;
    transition: all 0.3s;
}

.btn-apple:hover {
    background: #0077ed;
    transform: scale(1.02);
}

/* Compact Cards - Updated to match Login Glass Style */
.card-custom {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    box-shadow: none;
    transition: all 0.3s ease;
}

.card-hover-scale:hover {
    transform: translateY(-5px);
    box-shadow: none;
    border-color: rgba(0, 113, 227, 0.3);
}

.card-icon-small {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem; /* 20px */
    flex-shrink: 0;
}

.card-arrow {
    color: #86868b;
    transition: transform 0.3s ease;
}

.card-hover-scale:hover .card-arrow {
    transform: translateX(5px);
    color: #0071e3;
}

/* Footer V7 Styles */
.footer-custom {
    background: #ffffff;
    color: #1d1d1f;
    padding: 40px 0 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.875rem; /* 14px */
    margin-top: auto;
}

.footer-custom .footer-title {
    font-weight: 600;
    margin-bottom: 12px;
    color: #1d1d1f;
    font-size: 1rem; /* 16px */
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-custom .footer-icon-bg {
    color: #86868b;
    opacity: 0.5;
    width: 18px;
    height: 18px;
}

.footer-custom .footer-link {
    color: #86868b;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: all 0.2s ease;
    font-size: 0.875rem; /* 14px */
}

.footer-custom .footer-link:hover {
    color: #0071e3;
    transform: translateX(2px);
}

/* Telegram Card - V7 Light & Animated */
.telegram-card {
    background-color: #f2f9ff;
    /* Light Blue Background */
    border: 1px solid #cce5ff;
    border-radius: 18px;
    padding: 20px;
    color: #1d1d1f;
    text-decoration: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: all 0.3s ease;
    height: 100%;
    min-height: 100px;
    position: relative;
    overflow: hidden;
}

.telegram-card:hover {
    background-color: #e6f2ff;
    border-color: #b3d7ff;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 113, 227, 0.1);
    color: #1d1d1f;
}

/* Animated Chat Icon */
.chat-animation-container {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.chat-svg {
    width: 28px;
    height: 28px;
    color: #0088cc;
}

/* Typing Dots Animation */
.dot {
    animation: typing 1.4s infinite ease-in-out both;
    fill: currentColor;
}

.dot:nth-child(1) {
    animation-delay: -0.32s;
}

.dot:nth-child(2) {
    animation-delay: -0.16s;
}

.dot:nth-child(3) {
    animation-delay: 0s;
}

@keyframes typing {

    0%,
    80%,
    100% {
        transform: scale(0);
        opacity: 0.5;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.telegram-info {
    text-align: left;
}

.telegram-label {
    font-size: 1rem; /* 16px */
    font-weight: 700;
    display: block;
    line-height: 1.2;
    margin-bottom: 2px;
    color: #0088cc;
}

.telegram-id {
    font-size: 0.875rem; /* 14px */
    color: #86868b;
    font-weight: 400;
    display: block;
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    color: #86868b;
    font-size: 0.75rem; /* 12px */
}

/* Login Styles */
.form-control-login {
    background: #f5f5f7;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 1rem; /* 16px */
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.form-control-login:focus {
    background: #fff;
    border-color: #0071e3;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
    outline: none;
}

.btn-login {
    background: #0071e3;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-size: 1rem; /* 16px */
    font-weight: 600;
    width: 100%;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: #0077ed;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

.login-footer {
    margin-top: 24px;
    font-size: 0.875rem; /* 14px */
    color: #86868b;
}

.login-footer a {
    color: #0071e3;
    text-decoration: none;
    font-weight: 500;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* Typewriter Cursor */
.typewriter-text::after {
    content: '|';
    animation: blink 0.7s infinite;
    -webkit-text-fill-color: #86868b;
    color: #86868b;
    background: none;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* SVG Animation */
.node-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        r: 2;
        opacity: 1;
    }

    50% {
        r: 4;
        opacity: 0.5;
    }

    100% {
        r: 2;
        opacity: 1;
    }
}

/* Product Page Styles */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    padding: 20px 0;
}

.product-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 113, 227, 0.3);
}

.product-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f5f5f7 0%, #e1e1e6 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #1d1d1f;
    font-size: 1.5rem; /* 24px */
}

.product-title {
    font-size: 1.25rem; /* 20px */
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 10px;
}

.product-desc {
    font-size: 0.875rem; /* 14px */
    color: #86868b;
    margin-bottom: 24px;
    flex-grow: 1;
    line-height: 1.5;
}

.product-price {
    font-size: 1.5rem; /* 24px */
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 20px;
}

.btn-order {
    background: #0071e3;
    color: white;
    border-radius: 20px;
    padding: 10px 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    width: 100%;
    border: none;
    display: inline-block;
}

.btn-order:hover {
    background: #0077ed;
    color: white;
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 113, 227, 0.3);
}

.btn-order.disabled {
    background: #e5e5e5;
    color: #999;
    pointer-events: none;
}

/* Category Select Styling */
.category-select-wrapper {
    background: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.form-select-custom {
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    padding: 8px 36px 8px 12px;
    font-size: 0.875rem; /* 14px */
    color: #1d1d1f;
    background-color: transparent;
    cursor: pointer;
    outline: none;
}

.form-select-custom:focus {
    border-color: #0071e3;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

/* Pill Navigation Styles */
.nav-pills-custom {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-pills-custom .nav-link {
    background: #f5f5f7;
    color: #1d1d1f !important;
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 0.875rem; /* 14px */
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    border: 1px solid transparent;
}

.nav-pills-custom .nav-link:hover {
    background: #e5e5e5;
    transform: translateY(-1px);
}

.nav-pills-custom .nav-link.active {
    background: #0071e3;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

/* Page Layout Wrapper */
.page-content-wrapper {
    padding-top: 80px;
    padding-bottom: 60px;
    min-height: calc(100vh - 300px);
}

/* Legacy Page Header - Hide to prevent duplication */
.page-header {
    display: none !important;
}

/* Animation Utilities */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
    position: relative;
    z-index: 10;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Header */
.section-header {
    margin-bottom: 1.5rem !important; /* Force consistent bottom spacing */
    text-align: center;
    padding-top: 0 !important;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 0 !important; /* Ensure no top margin */
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #1d1d1f 0%, #434344 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    color: #86868b;
    font-size: 1.1rem;
}