/* ==========================================================================
   TAFINEX.COM — DESIGN SYSTEM & BRAND IDENTITY
   Style: LIGHT MINIMAL + NEXT-GEN SAAS + MODERN E-COMMERCE
   Brand Palette: #0A1B2E (Deep Navy), #0057FF (Royal Blue), #00D4FF (Cyan), #00E6B8 (Teal)
   Typography: Plus Jakarta Sans / Sora / Exo 2 / Be Vietnam Pro
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@700;800;900&family=Sora:wght@500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Be+Vietnam+Pro:wght@400;500;600;700&display=swap');

:root {
    --primary: #0057FF;
    --primary-hover: #0046D5;
    --primary-cyan: #00D4FF;
    --accent-teal: #00E6B8;
    --primary-light: #EFF6FF;
    --primary-border: #BFDBFE;
    --navy: #0A1B2E;
    --navy-surface: #13273D;
    --text-main: #0A1B2E;
    --text-muted: #64748B;
    --text-sub: #94A3B8;
    --bg-page: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-subtle: #F1F5F9;
    --border-color: #E2E8F0;
    --border-light: #F1F5F9;
    --success: #10B981;
    --success-light: #ECFDF5;
    --warning: #F59E0B;
    --warning-light: #FFFBEB;
    --danger: #EF4444;
    --danger-light: #FEF2F2;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.04);
    --shadow-glow: 0 0 25px rgba(0, 87, 255, 0.2);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --font-sans: 'Plus Jakarta Sans', 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Exo 2', 'Sora', var(--font-sans);
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --------------------------------------------------------------------------
   CONTAINER & LAYOUT
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.section {
    padding: 70px 0;
}

.section-sm {
    padding: 40px 0;
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 48px auto;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.025em;
    margin-bottom: 12px;
    line-height: 1.25;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   TYPOGRAPHY & BADGES
   -------------------------------------------------------------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge-primary {
    background-color: var(--primary-light);
    color: var(--primary);
    border: 1px solid var(--primary-border);
}

.badge-flagship {
    background: linear-gradient(135deg, #0B63F6 0%, #1D4ED8 100%);
    color: #FFFFFF;
    box-shadow: 0 2px 10px rgba(11, 99, 246, 0.3);
}

.badge-success {
    background-color: var(--success-light);
    color: var(--success);
    border: 1px solid #A7F3D0;
}

.badge-warning {
    background-color: var(--warning-light);
    color: var(--warning);
    border: 1px solid #FDE68A;
}

.badge-neutral {
    background-color: var(--bg-subtle);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

/* --------------------------------------------------------------------------
   BUTTONS
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(11, 99, 246, 0.25);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(11, 99, 246, 0.35);
    color: #FFFFFF;
}

.btn-secondary {
    background-color: var(--bg-card);
    color: var(--navy);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-subtle);
    border-color: #CBD5E1;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary-light);
    color: var(--primary-hover);
}

.btn-dark {
    background-color: var(--navy);
    color: #FFFFFF;
}

.btn-dark:hover {
    background-color: #000000;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 7px 14px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
}

.btn-block {
    width: 100%;
}

/* --------------------------------------------------------------------------
   HEADER & TOP BAR
   -------------------------------------------------------------------------- */
.topbar {
    background-color: var(--navy);
    color: #94A3B8;
    font-size: 0.82rem;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-features {
    display: flex;
    gap: 20px;
}

.topbar-feature {
    display: flex;
    align-items: center;
    gap: 6px;
}

.topbar-feature i {
    color: #38BDF8;
}

.topbar-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-links a {
    color: #CBD5E1;
}

.topbar-links a:hover {
    color: #FFFFFF;
}

.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 74px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--navy);
    letter-spacing: -0.03em;
    text-decoration: none;
}

.brand-logo img {
    display: block;
    height: 44px;
    max-height: 48px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.brand-logo:hover img {
    transform: translateY(-1px);
}

.brand-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #0B63F6 0%, #1D4ED8 100%);
    color: #FFFFFF;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 900;
    box-shadow: 0 4px 10px rgba(11, 99, 246, 0.3);
}

.brand-tagline {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.08em;
    display: block;
    margin-top: -3px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
    padding: 6px 0;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    border-radius: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-subtle);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    position: relative;
    cursor: pointer;
}

.btn-icon:hover {
    background-color: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary-border);
}

.badge-count {
    position: absolute;
    top: -3px;
    right: -3px;
    background-color: var(--danger);
    color: #FFFFFF;
    font-size: 0.7rem;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #FFFFFF;
}

/* --------------------------------------------------------------------------
   HERO HOMEPAGE
   -------------------------------------------------------------------------- */
.hero {
    padding: 60px 0 50px 0;
    background: radial-gradient(circle at 50% -20%, rgba(11, 99, 246, 0.08) 0%, rgba(248, 250, 252, 0) 70%);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 50px;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    margin-bottom: 18px;
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.18;
    color: var(--navy);
    letter-spacing: -0.035em;
    margin-bottom: 18px;
}

.hero-title span {
    color: var(--primary);
    background: linear-gradient(135deg, #0B63F6 0%, #2563EB 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 28px;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 30px;
}

.hero-stats {
    display: flex;
    gap: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.stat-item h4 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--navy);
}

.stat-item p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Hero Visual & Mockup */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mockup-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
    border-radius: var(--radius-lg);
    background: #FFFFFF;
    padding: 14px;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.12), 0 0 0 1px var(--border-color);
}

.mockup-screen {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #0F172A;
    aspect-ratio: 16 / 10;
    display: flex;
    flex-direction: column;
}

.mockup-bar {
    height: 26px;
    background: #1E293B;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 6px;
}

.mockup-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.dot-red { background: #EF4444; }
.dot-yellow { background: #F59E0B; }
.dot-green { background: #10B981; }

.mockup-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px;
    color: #FFFFFF;
    text-align: center;
    background: linear-gradient(180deg, #0F172A 0%, #1E293B 100%);
}

.floating-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--navy);
    animation: float 4s ease-in-out infinite;
}

.badge-top-right {
    top: -15px;
    right: -10px;
}

.badge-bottom-left {
    bottom: -15px;
    left: -10px;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* --------------------------------------------------------------------------
   TRUST BAR
   -------------------------------------------------------------------------- */
.trust-bar {
    background: #FFFFFF;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 24px 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.trust-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.trust-info h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 2px;
}

.trust-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   FEATURED PRODUCTS (4 PRODUCTS ONLY)
   -------------------------------------------------------------------------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #CBD5E1;
}

.product-card.flagship-card {
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-glow);
}

.card-badge-top {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
}

.product-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    background-color: var(--bg-subtle);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    overflow: hidden;
    position: relative;
}

.product-thumb img {
    max-height: 80%;
    object-fit: contain;
    transition: var(--transition);
}

.product-card:hover .product-thumb img {
    transform: scale(1.05);
}

.product-category-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 6px;
    display: block;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.35;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 16px;
    padding-top: 12px;
    border-top: 1px dashed var(--border-color);
}

.price-current {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
}

.price-original {
    font-size: 0.85rem;
    color: var(--text-sub);
    text-decoration: line-through;
}

.card-actions {
    display: flex;
    gap: 8px;
}

.card-actions .btn {
    flex: 1;
}

/* --------------------------------------------------------------------------
   CATEGORIES SECTION
   -------------------------------------------------------------------------- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 22px 18px;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.category-card:hover {
    border-color: var(--primary);
    background-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.category-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--bg-subtle);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 12px;
    transition: var(--transition);
}

.category-card:hover .category-icon {
    background: var(--primary);
    color: #FFFFFF;
}

.category-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}

.category-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* --------------------------------------------------------------------------
   FLAGSHIP SHOWCASE SLIDER (V-FORMAT & HOSO1361)
   -------------------------------------------------------------------------- */
.flagship-section {
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 70px 0 80px 0;
    position: relative;
    overflow: hidden;
}

.flagship-slider-container {
    position: relative;
}

.flagship-slides-wrapper {
    position: relative;
    min-height: 480px;
}

.flagship-slide {
    display: none;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.flagship-slide.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.flagship-grid {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 48px;
    align-items: center;
}

.flagship-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.flagship-dot {
    height: 10px;
    width: 28px;
    border-radius: 9999px;
    background: #CBD5E1;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.flagship-dot.active {
    width: 50px;
    background: var(--primary);
    box-shadow: 0 0 10px rgba(11, 99, 246, 0.4);
}

.flagship-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--navy);
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.flagship-nav-btn:hover {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.08);
}

.flagship-prev {
    left: -22px;
}

.flagship-next {
    right: -22px;
}

@media (max-width: 992px) {
    .flagship-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .flagship-nav-btn {
        display: none;
    }
}

.flagship-title {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.18;
    letter-spacing: -0.03em;
    margin: 12px 0;
}

.flagship-subtitle {
    font-size: 1.15rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 24px;
}

.feature-checklist {
    list-style: none;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.98rem;
    color: var(--text-main);
}

.feature-checklist li i {
    color: var(--success);
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.flagship-card-preview {
    background: var(--navy);
    border-radius: var(--radius-xl);
    padding: 30px;
    color: #FFFFFF;
    box-shadow: 0 25px 50px -12px rgba(17, 24, 39, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.preview-tag {
    background: rgba(11, 99, 246, 0.2);
    border: 1px solid var(--primary);
    color: #93C5FD;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 16px;
}

.preview-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 20px 0;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
}

.spec-item p {
    font-size: 0.75rem;
    color: #94A3B8;
}

.spec-item h6 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   HOW IT WORKS (4 STEPS)
   -------------------------------------------------------------------------- */
.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    position: relative;
}

.step-num {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 18px;
    border: 1px solid var(--primary-border);
}

.step-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.step-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   CONSULTATION CTA
   -------------------------------------------------------------------------- */
.consultation-box {
    background: linear-gradient(135deg, var(--navy) 0%, #1E293B 100%);
    border-radius: var(--radius-xl);
    padding: 60px 40px;
    color: #FFFFFF;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.consultation-box h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.consultation-box p {
    font-size: 1.1rem;
    color: #CBD5E1;
    max-width: 600px;
    margin: 0 auto 28px auto;
}

.consultation-ctas {
    display: flex;
    justify-content: center;
    gap: 14px;
}

/* --------------------------------------------------------------------------
   BLOG POST CARDS
   -------------------------------------------------------------------------- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #CBD5E1;
}

.blog-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--bg-subtle);
    overflow: hidden;
    position: relative;
}

.blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-thumb img {
    transform: scale(1.05);
}

.blog-content {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.blog-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-excerpt {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.blog-link {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.blog-link:hover {
    gap: 8px;
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.footer {
    background: var(--navy);
    color: #94A3B8;
    padding: 70px 0 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1.1fr 1.1fr 1.2fr 1.1fr;
    gap: 24px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 18px;
}

.footer-col h5 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-links a {
    font-size: 0.85rem;
    color: #94A3B8;
    white-space: nowrap;
}

.footer-links a:hover {
    color: #FFFFFF;
    padding-left: 3px;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #CBD5E1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-btn:hover {
    background: var(--primary);
    color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   PRODUCT DETAIL & LANDING PAGE
   -------------------------------------------------------------------------- */
.container-product {
    max-width: 1120px;
    padding-left: 24px;
    padding-right: 24px;
}

.detail-layout {
    display: grid;
    grid-template-columns: 450px 1fr;
    gap: 36px;
    align-items: flex-start;
}

.detail-gallery {
    position: sticky;
    top: 94px;
}

.gallery-main {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.gallery-main img {
    max-height: 380px;
    object-fit: contain;
}

.plan-picker {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 24px 0;
}

.plan-option {
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    cursor: pointer;
    transition: var(--transition);
    background: #FFFFFF;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.plan-option:hover {
    border-color: #CBD5E1;
    background: var(--bg-subtle);
}

.plan-option.selected {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 0 0 1px var(--primary);
}

.detail-tabs {
    display: flex;
    gap: 24px;
    border-bottom: 1px solid var(--border-color);
    margin: 50px 0 30px 0;
}

.tab-btn {
    padding: 12px 0;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-muted);
    border: none;
    background: none;
    cursor: pointer;
    position: relative;
}

.tab-btn.active {
    color: var(--primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2.5px;
    background: var(--primary);
}

.tab-pane {
    display: none;
    line-height: 1.7;
}

.tab-pane.active {
    display: block;
}

/* --------------------------------------------------------------------------
   CART & CHECKOUT RESPONSIVE SYSTEM
   -------------------------------------------------------------------------- */
.cart-layout-grid {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr;
    gap: 36px;
    align-items: flex-start;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
    align-items: flex-start;
}

.checkout-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.checkout-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.cart-table th {
    background: var(--bg-subtle);
    padding: 14px 20px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-align: left;
}

.cart-table td {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.cart-table-desktop {
    display: table;
}

.cart-list-mobile {
    display: none;
    flex-direction: column;
    gap: 14px;
}

.cart-mobile-item {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-mobile-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-mobile-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.cart-summary-box {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.summary-row.total-row {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--navy);
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    margin-top: 16px;
}

@media (max-width: 900px) {
    .cart-layout-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .checkout-grid {
        display: flex;
        flex-direction: column-reverse;
        gap: 24px;
    }
    .checkout-card {
        padding: 22px 18px;
    }
    .cart-summary-box {
        padding: 22px 18px;
    }
}

@media (max-width: 768px) {
    .cart-table-desktop {
        display: none !important;
    }
    .cart-list-mobile {
        display: flex;
    }
    .checkout-field-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* --------------------------------------------------------------------------
   USER ACCOUNT & DASHBOARD
   -------------------------------------------------------------------------- */
.account-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    align-items: flex-start;
}

.account-sidebar {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.user-profile-summary {
    text-align: center;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.user-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 auto 12px auto;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    border: 2px solid var(--primary-border);
}

.account-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.account-menu-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-main);
}

.account-menu-item a:hover {
    background: var(--bg-subtle);
    color: var(--primary);
}

.account-menu-item.active a {
    background: var(--primary-light);
    color: var(--primary);
}

.stat-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.stat-card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

/* --------------------------------------------------------------------------
   FORM CONTROLS & INPUTS
   -------------------------------------------------------------------------- */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 11px 16px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-main);
    background-color: #FFFFFF;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(11, 99, 246, 0.15);
}

/* --------------------------------------------------------------------------
   MOBILE NAVIGATION DRAWER
   -------------------------------------------------------------------------- */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.mobile-menu-btn:hover {
    background: var(--bg-subtle);
    color: var(--primary);
}

.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.mobile-drawer-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 310px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    background: #FFFFFF;
    box-shadow: -10px 0 35px rgba(15, 23, 42, 0.25);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    visibility: hidden;
    pointer-events: none;
}

.mobile-drawer.open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}

.mobile-drawer-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-subtle);
}

.mobile-drawer-close {
    background: transparent;
    border: none;
    font-size: 1.25rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-drawer-close:hover {
    color: var(--danger);
    background: #FEE2E2;
}

.mobile-drawer-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-nav-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
    transition: var(--transition);
}

.mobile-nav-list a i {
    font-size: 1.15rem;
    color: var(--primary);
    width: 22px;
    text-align: center;
}

.mobile-nav-list a:hover {
    background: var(--bg-subtle);
    color: var(--primary);
}

.mobile-nav-list a.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
}

.mobile-drawer-cta {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--border-color);
}

.mobile-drawer-user {
    margin-top: 18px;
    padding: 14px;
    background: var(--bg-subtle);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN (TABLET & MOBILE)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .nav-menu {
        display: none;
    }
    .mobile-menu-btn {
        display: flex;
    }
    .header-cta-desktop {
        display: none;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    .hero-content {
        max-width: 100%;
    }
    .hero-ctas, .hero-stats {
        justify-content: center;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .flagship-grid {
        grid-template-columns: 1fr;
    }
    .how-it-works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .detail-layout, .account-layout {
        grid-template-columns: 1fr !important;
    }
    .detail-gallery {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    /* Base typography */
    body {
        font-size: 15px;
    }
    .container {
        padding: 0 16px;
    }
    .section, .section-sm {
        padding: 45px 0;
    }
    .topbar-features {
        display: none;
    }
    .topbar-wrapper {
        justify-content: center;
        padding: 6px 0;
    }
    .brand-logo img {
        height: 38px;
        max-height: 40px;
    }
    .hero-title {
        font-size: 1.95rem;
        line-height: 1.25;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .hero-ctas {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    .hero-ctas .btn {
        width: 100%;
        justify-content: center;
    }
    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .stat-card-grid {
        grid-template-columns: 1fr;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .section-subtitle {
        font-size: 0.95rem;
    }
    .flagship-section {
        padding: 45px 0 55px 0;
    }
    .flagship-title {
        font-size: 2rem;
    }
    .flagship-subtitle {
        font-size: 1rem;
    }
    .flagship-dots {
        margin-top: 25px;
    }
    
    /* Product Detail Page Mobile */
    .container-product {
        padding: 0 16px;
    }
    .plan-picker {
        grid-template-columns: 1fr !important;
    }
    .detail-actions {
        flex-direction: column;
    }
    .detail-actions .btn {
        width: 100%;
        justify-content: center;
    }
    .detail-tabs-nav {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 6px;
    }
    .detail-tabs-nav::-webkit-scrollbar {
        display: none;
    }
    .tab-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Floating Badges on Hero Mobile */
    .floating-badge {
        position: static;
        margin: 10px 0;
        animation: none;
        justify-content: center;
    }
    .badge-top-right, .badge-bottom-left {
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    .trust-grid {
        grid-template-columns: 1fr;
    }
    .category-grid {
        grid-template-columns: 1fr;
    }
    .how-it-works-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    .hero-title {
        font-size: 1.7rem;
    }
    .stat-item h3 {
        font-size: 1.4rem;
    }
    .form-control, input, select, textarea {
        font-size: 16px !important; /* Prevents auto-zoom on iOS */
    }
}
