/* ============================================
   FlowGenix Digital — Premium Light Theme
   ============================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors - Clean Light / Minimal Luxury */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F5F5F8;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F8F8FB;
    --bg-elevated: #EDEDF2;
    --bg-input: #F3F3F7;

    --border: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.16);

    --text-primary: #0A0A0D;
    --text-secondary: #5A5A6A;
    --text-muted: #9090A0;

    --accent: #00965A; /* Deep green — readable on white */
    --accent-hover: #007A48;
    --accent-glow: rgba(0, 150, 90, 0.18);
    --accent-bg: rgba(0, 150, 90, 0.07);

    --success: #16A34A;
    --warning: #D97706;
    --danger: #DC2626;
    --info: #2563EB;

    --gradient-primary: linear-gradient(135deg, #00965A 0%, #007A48 100%);
    --gradient-card: linear-gradient(135deg, rgba(0, 0, 0, 0.01) 0%, rgba(0, 0, 0, 0) 100%);
    --gradient-hero: linear-gradient(180deg, rgba(0, 150, 90, 0.05) 0%, transparent 60%);

    /* Typography */
    --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Syne', sans-serif;

    /* Sizing */
    --nav-height: 80px;
    --radius: 8px;
    --radius-sm: 4px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 0.3s var(--ease);
}

/* ---------- UTILITIES ---------- */
.mobile-only { display: none !important; }
.desktop-only { display: block !important; }

@media (max-width: 768px) {
    .mobile-only { display: block !important; }
    .desktop-only { display: none !important; }
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font);
    font-size: 0.94rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

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

a:hover { color: var(--accent-hover); }

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

/* ---------- CONTAINER ---------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 20px var(--accent-glow);
    font-weight: 700;
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: #000;
    box-shadow: 0 0 30px var(--accent-glow);
    transform: translateY(-1px);
}

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

.btn-outline:hover {
    background: var(--bg-card);
    border-color: var(--accent);
    color: var(--accent);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid transparent;
}

.btn-ghost:hover {
    color: var(--text-primary);
    background: rgba(0,0,0,0.05);
}

.btn-sm { padding: 0.45rem 1rem; font-size: 0.82rem; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }
.btn-full { width: 100%; }

.btn-arrow {
    transition: transform var(--transition);
}

.btn:hover .btn-arrow { transform: translateX(3px); }

/* ============================================
   NAVIGATION (Floating / Glass Nav)
============================================ */
.navbar {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: min(95%, 1240px);
    height: 66px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 100px;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.navbar.nav-scrolled {
    height: 60px;
    width: min(98%, 1100px);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 2.5rem !important;
    position: relative;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--text-primary);
}

.nav-logo:hover { color: var(--text-primary); }

.nav-logo-img {
    height: 34px;
    width: auto;
    object-fit: contain;
    transition: 0.3s var(--ease);
}

.nav-logo:hover .nav-logo-img {
    transform: scale(1.05);
}

.footer-logo-img {
    height: 72px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1.5rem;
}

.logo-icon {
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    gap: 0.25rem;
    list-style: none;
}

.nav-link {
    padding: 0.6rem 1.2rem;
    border-radius: 100px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.85rem;
    transition: all var(--transition);
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.04);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-actions .btn {
    border-radius: 100px;
    padding: 0.45rem 1.25rem;
}

.nav-cart {
    position: relative;
    padding: 0.5rem;
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: color var(--transition);
}

.nav-cart:hover { color: var(--text-primary); }

.cart-badge {
    position: absolute;
    top: -2px;
    right: -4px;
    background: var(--accent);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* User Dropdown */
.nav-user-dropdown { position: relative; }

.nav-user-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.user-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 200px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition);
    z-index: 100;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-label {
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.dropdown-item {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.dropdown-item:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.dropdown-item--danger:hover { color: var(--danger); }
.dropdown-divider { border: none; border-top: 1px solid var(--border); margin: 0.25rem 0; }

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ---------- MESSAGES / ALERTS ---------- */
.messages-container {
    position: fixed;
    top: calc(var(--nav-height) + 1rem);
    right: 1.5rem;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 400px;
}

.alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-primary);
    animation: slideIn 0.3s var(--ease);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.alert-success { border-left: 3px solid var(--success); }
.alert-error { border-left: 3px solid var(--danger); }
.alert-warning { border-left: 3px solid var(--warning); }
.alert-info { border-left: 3px solid var(--info); }

.alert-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ---------- MAIN CONTENT ---------- */
.main-content {
    padding-top: var(--nav-height);
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    padding: 6rem 0 4rem;
    overflow: hidden;
    background: var(--gradient-hero);
}

.hero-bg-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.hero-orb--1 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    top: -100px;
    right: -50px;
    animation: orbFloat 8s ease-in-out infinite;
}

.hero-orb--2 {
    width: 300px;
    height: 300px;
    background: #b44aff;
    bottom: -80px;
    left: -40px;
    animation: orbFloat 10s ease-in-out infinite reverse;
}

.hero-orb--3 {
    width: 200px;
    height: 200px;
    background: #ff6b9d;
    top: 40%;
    left: 50%;
    animation: orbFloat 12s ease-in-out infinite 2s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -30px) scale(1.05); }
    66% { transform: translate(-15px, 15px) scale(0.95); }
}

.hero-container { position: relative; z-index: 1; }

.hero-content {
    max-width: 720px;
    text-align: center;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 0.45rem 1.25rem;
    border-radius: 100px;
    background: var(--accent-bg);
    border: 1px solid rgba(0, 255, 133, 0.25);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation: fadeUp 0.6s var(--ease);
}

.hero-title {
    font-size: clamp(1.6rem, 3.8vw, 2.3rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 2rem;
    animation: fadeUp 0.6s var(--ease) 0.1s both;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.75rem;
    animation: fadeUp 0.6s var(--ease) 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    animation: fadeUp 0.6s var(--ease) 0.3s both;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
    animation: fadeUp 0.6s var(--ease) 0.4s both;
}

.hero-stat { text-align: center; }

.hero-stat-number {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
}

.hero-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- SECTIONS ---------- */
.section { padding: 3.5rem 0; }

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 100px;
    background: var(--accent-bg);
    border: 1px solid rgba(0, 255, 133, 0.2);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0 auto;
    font-size: 1rem;
}

.section-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ---------- PAGE HEADER ---------- */
.page-header {
    padding: 3rem 0 2rem;
    text-align: center;
    background: var(--gradient-hero);
    border-bottom: 1px solid var(--border);
}

.page-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.page-subtitle {
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* ---------- CATEGORIES ---------- */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    text-decoration: none;
    transition: all var(--transition);
    animation: fadeUp 0.5s var(--ease) calc(var(--delay) * 0.08s) both;
}

.category-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 255, 133, 0.1);
}

.category-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.category-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.category-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.category-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
}

/* ---------- PRODUCT CARDS ---------- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.products-grid--sm {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: all var(--transition);
    animation: fadeUp 0.5s var(--ease) calc(var(--delay) * 0.06s) both;
}

.product-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.product-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.product-category-tag {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-primary);
    padding: 0.25rem 0.6rem;
    border-radius: 100px;
}

.product-badge {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--warning);
    background: rgba(245, 158, 11, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.product-card-tagline {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.product-card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.feature-tag {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--bg-secondary);
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    margin-bottom: 0.75rem;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-card-actions {
    display: flex;
    gap: 0.5rem;
}

.product-delivery {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ---------- FILTER BAR ---------- */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.filter-chip {
    padding: 0.45rem 1rem;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.filter-chip:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

.filter-chip.active {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

/* ---------- PRODUCT DETAIL ---------- */
.product-detail-section { padding-top: 2rem; }

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--accent); }

.product-detail {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2.5rem;
    align-items: start;
}

.product-detail-header {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.product-detail-title {
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.product-detail-tagline {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.product-detail-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.product-detail-features h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.feature-check {
    color: var(--success);
    font-weight: 700;
}

/* Product Purchase Sidebar */
.product-purchase-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    position: sticky;
    top: calc(var(--nav-height) + 1.5rem);
}

.purchase-price {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.25rem;
}

.purchase-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.purchase-meta-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.meta-icon { font-size: 1.2rem; }
.meta-label { display: block; font-size: 0.75rem; color: var(--text-muted); }
.meta-value { display: block; font-size: 0.9rem; font-weight: 600; }

.purchase-guarantee {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.related-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
}

.related-section .section-title { margin-bottom: 1.5rem; }

/* ---------- CART ---------- */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: start;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    transition: border-color var(--transition);
}

.cart-item:hover { border-color: var(--border-hover); }

.cart-item-category {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.cart-item-name {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

.cart-item-format {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cart-item-qty {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.cart-item-price {
    font-size: 1.1rem;
    font-weight: 700;
}

.cart-item-remove {
    color: var(--text-muted);
    font-size: 1rem;
    transition: color var(--transition);
}

.cart-item-remove:hover { color: var(--danger); }

/* Cart Summary */
.cart-summary-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    position: sticky;
    top: calc(var(--nav-height) + 1.5rem);
}

.cart-summary-card h3 {
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.65rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.summary-total {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.checkout-note {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ---------- AUTH ---------- */
.auth-wrapper {
    max-width: 480px;
    margin: 3rem auto;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-form { display: flex; flex-direction: column; gap: 1rem; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-control,
.auth-form input,
.contact-form input,
.contact-form textarea,
.profile-form input {
    padding: 0.7rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.9rem;
    transition: border-color var(--transition);
    outline: none;
    width: 100%;
}

.form-control:focus,
.auth-form input:focus,
.contact-form input:focus,
.contact-form textarea:focus,
.profile-form input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-errors {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
}

.error-text {
    font-size: 0.82rem;
    color: var(--danger);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.auth-footer a { font-weight: 600; }

/* ---------- PROFILE ---------- */
.profile-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: start;
}

.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    position: sticky;
    top: calc(var(--nav-height) + 1.5rem);
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 800;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    text-transform: uppercase;
}

.profile-card h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.profile-card p { font-size: 0.85rem; color: var(--text-secondary); }

.profile-member-since {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--bg-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
}

.profile-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}

.profile-section h2 {
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Orders Table */
.orders-table-wrapper { overflow-x: auto; }

.orders-table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table th,
.orders-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.85rem;
}

.orders-table th {
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.orders-table td { border-bottom: 1px solid var(--border); }
.orders-table tr:last-child td { border-bottom: none; }

.status-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
}

.status-pending { background: rgba(245, 158, 11, 0.1); color: var(--warning); }
.status-confirmed { background: rgba(34, 197, 94, 0.1); color: var(--success); }
.status-delivered { background: rgba(59, 130, 246, 0.1); color: var(--info); }
.status-cancelled { background: rgba(239, 68, 68, 0.1); color: var(--danger); }

/* ---------- ABOUT ---------- */
.about-content { max-width: 800px; margin: 0 auto; }

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.about-card h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-card--highlight {
    background: var(--gradient-card);
    border-color: rgba(0, 255, 133, 0.15);
}

.about-services {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.about-service {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.about-service-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 0.1rem; }
.about-service h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.about-service p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; }

/* ---------- CONTACT ---------- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: fit-content;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.contact-icon { font-size: 1.5rem; }
.contact-item h3 { font-size: 0.95rem; margin-bottom: 0.15rem; }
.contact-item p { font-size: 0.85rem; color: var(--text-secondary); }

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

/* ---------- TRUST SECTION ---------- */
.trust-section { background: var(--bg-secondary); }

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.trust-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.trust-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-hover);
}

.trust-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.trust-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.trust-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ---------- CTA SECTION ---------- */
.cta-card {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--gradient-card);
    border: 1px solid rgba(0, 255, 133, 0.15);
    border-radius: var(--radius-xl);
}

.cta-card h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.cta-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- SUCCESS ---------- */
.success-card {
    text-align: center;
    max-width: 500px;
    margin: 3rem auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 3rem 2rem;
}

.success-icon { font-size: 3rem; margin-bottom: 1rem; }

.success-card h1 {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}

.success-card > p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.success-details {
    background: var(--bg-primary);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.success-details p { color: var(--text-secondary); margin-bottom: 0.25rem; }

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- EMPTY STATE ---------- */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    grid-column: 1 / -1;
}

.empty-state--sm { padding: 2rem; }

.empty-icon { font-size: 3rem; margin-bottom: 1rem; }

.empty-state h3 { margin-bottom: 0.5rem; }

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* ---------- FOOTER ---------- */
.footer {
    border-top: 1px solid var(--border);
    padding: 3rem 0 1.5rem;
    background: var(--bg-secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.footer-logo:hover { color: var(--text-primary); }

.footer-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 300px;
}

.footer-links h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.footer-links a {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0.3rem 0;
}

.footer-links a:hover { color: var(--accent); }

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

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

.footer-compliance {
    margin-top: 0.5rem;
    font-size: 0.75rem !important;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .product-detail {
        grid-template-columns: 1fr;
    }

    .cart-layout {
        grid-template-columns: 1fr;
    }

    .profile-layout {
        grid-template-columns: 1fr;
    }

    .profile-card {
        position: static;
    }

    .product-purchase-card,
    .cart-summary-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
        flex-direction: column;
        padding: 1rem;
    }

    .nav-menu.active { display: flex; }

    .nav-toggle { display: flex; }

    .nav-actions.desktop-only { display: none !important; }

    .nav-link-cart {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        background: var(--bg-secondary);
        padding: 0.8rem 1.25rem;
        border-radius: var(--radius);
        margin-top: 0.5rem;
        color: var(--accent) !important;
        font-weight: 600;
    }

    .cart-badge-inline {
        background: var(--accent);
        color: #fff;
        font-size: 0.75rem;
        padding: 0.1rem 0.6rem;
        border-radius: 100px;
        margin-left: auto;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .cart-item-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    /* Spacing optimizations */
    .ds-store-header { padding: 5.5rem 0 2.5rem; }
    .page-header { padding: 2.5rem 0 1.5rem; }
    .section { padding: 2.5rem 0; }
    .hero { padding: 4rem 0 3rem; }
    
    .ds-title { font-size: 2.22rem !important; }
    .hero-title { font-size: 2.22rem !important; }
}

@media (max-width: 480px) {
    .ds-store-header { padding: 4.5rem 0 2rem; }
    .ds-title { font-size: 1.88rem !important; }
    .hero-title { font-size: 1.88rem !important; }
    .hero-subtitle { font-size: 0.95rem; }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-actions { flex-direction: column; align-items: center; }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .auth-card { padding: 1.5rem; }

    .filter-bar {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .ps-grid, .two-col-grid, .three-col-grid {
        grid-template-columns: 1fr;
    }
    .highlight-card {
        flex-direction: column;
    }
    .highlight-visual {
        min-height: 200px;
        border-left: none;
        border-top: 1px solid var(--border);
    }
}

/* ---------- NEW SAAS MINIMAL STYLES ---------- */
.hero--minimal {
    padding: 8rem 0 5rem;
    background: var(--bg-primary);
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(0,0,0,0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0,0,0,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at top center, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at top center, black 0%, transparent 70%);
}

.hero-content--left {
    max-width: 800px;
    text-align: left;
    margin: 0;
}

.hero-content--left .hero-actions {
    justify-content: flex-start;
}

.text-accent {
    color: var(--accent);
}

.text-muted { color: var(--text-muted); }
.text-danger { color: var(--danger); font-weight: 600; }

.hero-features-list {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    animation: fadeUp 0.6s var(--ease) 0.3s both;
}

/* Grid Layouts */
.ps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.three-col-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.ps-card, .context-card, .benefits-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}

.ps-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    margin-bottom: 1rem;
}

.clean-list {
    list-style: none;
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    color: var(--text-secondary);
}

.check-list li::before {
    content: "✓";
    color: var(--accent);
    margin-right: 0.5rem;
    font-weight: bold;
}

.ps-conclusion {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.align-left {
    text-align: left;
}

/* Service Cards Minimal */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--transition);
    display: block;
}

.service-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.service-price {
    display: block;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
}

/* Steps List */
.steps-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.step-num {
    font-family: monospace;
    font-size: 1.2rem;
    color: var(--accent);
    font-weight: bold;
    opacity: 0.8;
}

/* Context Cards */
.context-why .why-item {
    margin-bottom: 1.2rem;
}
.context-why .why-item strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

/* Highlight Card */
.highlight-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    overflow: hidden;
}

.highlight-content {
    flex: 1;
    padding: 3rem;
}

.highlight-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--accent-bg);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 100px;
    border: 1px solid rgba(0,255,133,0.2);
    margin-bottom: 1rem;
}

.highlight-visual {
    flex: 1;
    background: var(--bg-elevated);
    border-left: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.abstract-nodes {
    position: relative;
    width: 200px;
    height: 100px;
}

.node {
    width: 20px;
    height: 20px;
    background: var(--bg-primary);
    border: 2px solid var(--text-muted);
    border-radius: 4px;
    position: absolute;
    z-index: 2;
    transition: all var(--transition);
}

.node-1 { top: 40px; left: 0; border-color: var(--accent); box-shadow: 0 0 15px var(--accent-glow); }
.node-2 { top: 10px; left: 90px; }
.node-3 { top: 70px; left: 180px; }

.node-line {
    position: absolute;
    top: 50px;
    left: 10px;
    width: 180px;
    height: 2px;
    background: var(--border-hover);
    z-index: 1;
}

.highlight-card:hover .node-1 { transform: scale(1.1); }
.highlight-card:hover .node-2 { border-color: var(--accent); }

/* Minimal CTA */
.cta-minimal {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-subtitle {
    color: var(--accent);
    font-size: 1.1rem;
    margin: 1rem 0 2rem;
}

.cta-details p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

/* Legal Pages */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3rem;
}

.legal-content h2 {
    margin: 2rem 0 1rem;
    color: var(--text-primary);
    font-size: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.legal-content p, .legal-content ul {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.legal-content ul {
    padding-left: 1.5rem;
}

/* -------------------------------------------
   2024 CUTTING EDGE SAAS DESIGN SYSTEM (.ds-)
--------------------------------------------- */
.nav-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 255, 133, 0.4));
}

.ds-text-glow {
    color: var(--accent);
    text-shadow: 0 0 40px rgba(0, 255, 133, 0.4);
}

.ds-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 100px;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
}

.ds-btn-primary {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 0px var(--accent), inset 0 0 0px rgba(255,255,255,0.4);
}

.ds-btn-primary .arr {
    margin-left: 10px;
    transition: 0.3s;
}

.ds-btn-primary:hover {
    box-shadow: 0 0 20px rgba(0,255,133,0.5), inset 0 2px 4px rgba(255,255,255,0.4);
    transform: translateY(-2px);
    background: #33FF9D;
    border-color: rgba(255,255,255,0.8);
}

.ds-btn-primary:hover .arr {
    transform: translateX(5px);
}

.ds-btn-ghost {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-primary);
    border: 1px solid var(--border-hover);
}

.ds-btn-ghost:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0,0,0,0.25);
    color: var(--text-primary);
}

/* Hero Section */
.ds-hero {
    position: relative;
    padding: 12rem 0 8rem;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.ds-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.ds-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.06;
    mix-blend-mode: multiply;
}

.ds-hero-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(255,255,255,0.95) 100%);
}

.ds-hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.ds-hero-content {
    max-width: 650px;
}

.ds-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 133, 0.05);
    border: 1px solid rgba(0, 255, 133, 0.2);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 2rem;
}

.ds-pulse {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 0 10px var(--accent);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0,255,133,0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0,255,133,0); }
    100% { box-shadow: 0 0 0 0 rgba(0,255,133,0); }
}

.ds-title {
    font-size: 2.8rem;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.ds-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2.25rem;
}

.ds-hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 4rem;
}

.ds-hero-visual {
    position: relative;
    z-index: 10;
}

.ds-hero-dashboard {
    width: 100%;
    max-width: 650px;
    margin-left: 0;
    transform: perspective(1000px) rotateY(-8deg) rotateX(3deg);
    filter: drop-shadow(-15px 20px 40px rgba(0,0,0,0.4));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: perspective(1000px) rotateY(-15deg) rotateX(5deg) translateY(0); }
    50% { transform: perspective(1000px) rotateY(-15deg) rotateX(5deg) translateY(-20px); }
}

/* Framework / Problem Solution */
.ds-framework-section {
    position: relative;
    z-index: 5;
    margin-top: -5rem;
}

.ds-center-header {
    text-align: center;
    margin-bottom: 4rem;
}

.ds-center-header h2 {
    font-size: 3rem;
    letter-spacing: -0.02em;
}

.ds-bento-ps {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
}

.ds-bento-card {
    border-radius: 32px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.ds-card-dark {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
}

.ds-card-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}

.ds-card-badge {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.ds-badge-glow {
    color: var(--accent);
}

.ds-card-bg-nodes {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    opacity: 0.4;
    mix-blend-mode: screen;
    z-index: -1;
    mask-image: linear-gradient(to left, black, transparent);
    -webkit-mask-image: linear-gradient(to left, black, transparent);
}


.ds-bento-card h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.ds-list-x, .ds-list-check {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.ds-list-x li { color: var(--text-secondary); }
.ds-list-check li { color: var(--text-primary); }

/* Services Bento */
.ds-services-section {
    padding: 8rem 0;
}

.ds-micro-title {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    font-weight: 700;
}

.ds-header { margin-bottom: 4rem; }
.ds-header h2 { font-size: 3rem; margin-top: 0.5rem; }

.ds-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(300px, auto);
    gap: 1.5rem;
}

.ds-bento-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.02), 0 8px 16px rgba(0,0,0,0.04);
}

.ds-bento-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.ds-bento-large:hover {
    background: linear-gradient(145deg, #0D2418 0%, #112B1F 60%, #0D2418 100%) !important;
    color: #ffffff !important;
}

.ds-bento-large {
    grid-column: span 2;
    grid-row: span 2;
    background: linear-gradient(145deg, #0A1A12 0%, #0D2218 60%, #0A1A12 100%), url('../images/nodes.png') center/cover !important;
    border: 1px solid rgba(0,150,90,0.25) !important;
    color: #ffffff !important;
}

.ds-icon-box {
    width: 52px;
    height: 52px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}
.ds-icon-box svg { width: 24px; height: 24px; }
/* Large card icon on dark bg */
.ds-bento-large .ds-icon-box {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    color: #fff !important;
}

.ds-bento-item h3 { font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--text-primary); }
.ds-bento-large h3 { font-size: 2.5rem; color: #fff !important; }
.ds-bento-large p { color: rgba(255,255,255,0.8) !important; }

.ds-bento-item p { 
    color: var(--text-secondary); 
    margin-bottom: 4rem; /* More space for absolute price tag */
    max-width: 90%;
}

.ds-price-tag {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    background: var(--accent-bg);
    border: 1px solid rgba(0,150,90,0.18);
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
    position: absolute;
    bottom: 2.5rem;
    left: 2.5rem;
}
/* Large card price tag on dark bg */
.ds-bento-large .ds-price-tag {
    background: rgba(0,255,133,0.12);
    border-color: rgba(0,255,133,0.25);
    color: #00FF85;
}

.ds-bento-img-offset {
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 60%;
    transform: rotate(-5deg);
    filter: drop-shadow(-10px 20px 30px rgba(0,0,0,0.5));
    transition: 0.4s ease;
}


.ds-bento-large:hover .ds-bento-img-offset {
    transform: rotate(0deg) scale(1.05);
}

/* Wide CTA */
.ds-cta-banner {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    padding: 8rem 4rem;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
}

.ds-cta-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.ds-cta-bg { object-fit: cover; }

.ds-cta-blur {
    position: absolute;
    inset: 0;
    background: rgba(8, 20, 13, 0.82);
    backdrop-filter: blur(20px);
    z-index: 2;
}

.ds-cta-content {
    position: relative;
    z-index: 3;
    max-width: 700px;
    margin: 0 auto;
}

.ds-cta-content h2 {
    font-size: 3.4rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.ds-cta-content p {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 3rem;
}

.ds-cta-content .ds-hero-actions {
    justify-content: center;
    margin: 0;
}

@media (max-width: 1024px) {
    .ds-hero-container, .ds-bento-ps { grid-template-columns: 1fr; }
    .ds-hero-visual { display: none; }
    .ds-title { font-size: 3.5rem; }
    .ds-bento-grid { grid-template-columns: 1fr 1fr; }
    .ds-bento-large { grid-column: span 1; grid-row: span 1; }
    .ds-bento-img-offset { display: none; }
}

@media (max-width: 768px) {
    .ds-bento-grid { grid-template-columns: 1fr; }
}

/* Scroll Animations */
.ds-bento-item, .ds-bento-card, .ps-card, .ds-faq-card, .ds-cta-content, .ds-product-card {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.ds-in-view {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* -------------------------------------------
   CLEAN FAQ ACCORDION
--------------------------------------------- */
.ds-faq-container {
    max-width: 800px;
    margin: 5rem auto;
}

.ds-faq-item {
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
}

.ds-faq-item:first-child {
    border-top: 1px solid var(--border);
}

.ds-faq-btn {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.15rem;
    font-weight: 500;
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: color 0.3s;
}

.ds-faq-btn:hover {
    color: var(--accent);
}

.ds-faq-icon {
    position: relative;
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.ds-faq-icon::before, .ds-faq-icon::after {
    content: '';
    position: absolute;
    background: var(--text-muted);
    transition: 0.3s ease;
}

.ds-faq-icon::before {
    top: 6px;
    left: 0;
    width: 14px;
    height: 2px;
}

.ds-faq-icon::after {
    top: 0;
    left: 6px;
    width: 2px;
    height: 14px;
}

.ds-faq-item.active .ds-faq-icon {
    transform: rotate(45deg);
}

.ds-faq-item.active .ds-faq-icon::before, 
.ds-faq-item.active .ds-faq-icon::after {
    background: var(--accent);
}

.ds-faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ds-faq-inner {
    padding-bottom: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* -------------------------------------------
   SERVICE CARD COLOR VARIANTS (Light Theme)
--------------------------------------------- */
.ds-ambient-orb {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.18;
    z-index: 0;
    pointer-events: none;
    transition: all 0.5s ease;
}

/* Purple — Chatbot Flows */
.ds-glow-purple {
    background: linear-gradient(140deg, #FAF7FF 0%, #EEE8FF 100%);
    border-color: rgba(124,92,252,0.15) !important;
}
.ds-glow-purple .ds-icon-box {
    background: rgba(124,92,252,0.1);
    border-color: rgba(124,92,252,0.2);
    color: #7C3AED;
}
.ds-glow-purple .ds-price-tag {
    background: rgba(124,92,252,0.08);
    border-color: rgba(124,92,252,0.2);
    color: #6D28D9;
}
.ds-glow-purple h3 { color: #1A0A3D; }
.ds-glow-purple p { color: #5A4A7A; }
.ds-glow-purple .ds-ambient-orb { background: #b44aff; top: -40px; right: -40px; }

/* Blue — Email Kits */
.ds-glow-blue {
    background: linear-gradient(140deg, #F5F8FF 0%, #E8EFFF 100%);
    border-color: rgba(59,130,246,0.15) !important;
}
.ds-glow-blue .ds-icon-box {
    background: rgba(59,130,246,0.1);
    border-color: rgba(59,130,246,0.2);
    color: #1D4ED8;
}
.ds-glow-blue .ds-price-tag {
    background: rgba(59,130,246,0.08);
    border-color: rgba(59,130,246,0.2);
    color: #1D4ED8;
}
.ds-glow-blue h3 { color: #0A1A3D; }
.ds-glow-blue p { color: #4A5A7A; }
.ds-glow-blue .ds-ambient-orb { background: #3b82f6; bottom: -40px; left: -40px; }

/* Pink — Social Bundles */
.ds-glow-pink {
    background: linear-gradient(140deg, #FFF5FA 0%, #FFE8F3 100%);
    border-color: rgba(236,72,153,0.15) !important;
}
.ds-glow-pink .ds-icon-box {
    background: rgba(236,72,153,0.1);
    border-color: rgba(236,72,153,0.2);
    color: #BE185D;
}
.ds-glow-pink .ds-price-tag {
    background: rgba(236,72,153,0.08);
    border-color: rgba(236,72,153,0.2);
    color: #BE185D;
}
.ds-glow-pink h3 { color: #3D0A1E; }
.ds-glow-pink p { color: #7A4A5A; }
.ds-glow-pink .ds-ambient-orb { background: #ec4899; bottom: -20px; right: -20px; }

/* Green — CRM Blueprints */
.ds-glow-green {
    background: linear-gradient(140deg, #F0FFF7 0%, #E0FAF0 100%);
    border-color: rgba(0,150,90,0.15) !important;
}
.ds-glow-green .ds-icon-box {
    background: rgba(0,150,90,0.1);
    border-color: rgba(0,150,90,0.2);
    color: var(--accent);
}
.ds-glow-green .ds-price-tag {
    background: rgba(0,150,90,0.08);
    border-color: rgba(0,150,90,0.2);
    color: var(--accent);
}
.ds-glow-green h3 { color: #0A2D1A; }
.ds-glow-green p { color: #3A5A48; }
.ds-glow-green .ds-ambient-orb { background: var(--accent); top: -20px; right: -20px; }

/* Hover: orb becomes more visible */
.ds-bento-item:hover .ds-ambient-orb {
    transform: scale(1.3);
    opacity: 0.28;
}

/* Small cards: make the bento content stack properly */
.ds-bento-item:not(.ds-bento-large) .ds-bento-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ds-bento-item:not(.ds-bento-large) {
    display: flex;
    flex-direction: column;
}

/* Small cards: price tag must be in normal flow — no absolute positioning */
.ds-bento-item:not(.ds-bento-large) .ds-price-tag {
    position: static;
    margin-top: auto;
    align-self: flex-start;
}

/* Remove the reserved space that was only needed for absolute price tag */
.ds-bento-item:not(.ds-bento-large) p {
    margin-bottom: 1.25rem;
}

/* Arrow indicator for all clickable cards */
.ds-bento-item::after {
    content: '→';
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 1.1rem;
    color: var(--text-muted);
    opacity: 0;
    transform: translateX(-6px);
    transition: all 0.3s ease;
    z-index: 2;
}
.ds-bento-large::after { display: none; }
.ds-bento-item:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* -------------------------------------------
   STOREFRONT MODERNIZATION
--------------------------------------------- */
.ds-store-header {
    padding: 8rem 0 3rem;
    background: radial-gradient(ellipse at top center, rgba(0, 150, 90, 0.06) 0%, transparent 65%);
    border-bottom: 1px solid var(--border);
}

.ds-filter-wrap {
    margin-bottom: 3rem;
    display: flex;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 1rem;
}

.ds-filter-bar {
    display: inline-flex;
    background: var(--bg-card);
    padding: 0.5rem;
    border-radius: 100px;
    border: 1px solid var(--border);
    gap: 0.5rem;
    backdrop-filter: blur(10px);
}

.ds-chip {
    padding: 0.6rem 1.25rem;
    border-radius: 100px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
    background: transparent;
}

.ds-chip:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.05);
}

.ds-chip.active {
    background: var(--text-primary);
    color: var(--bg-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    border: 1px solid transparent;
}

/* Store Grid */
.ds-store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding-bottom: 5rem;
}

.ds-product-card {
    position: relative;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: 0.4s var(--ease);
    display: flex;
    flex-direction: column;
    z-index: 1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 4px 16px rgba(0,0,0,0.04);
    overflow: hidden;
}

.ds-product-ambient {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at top right, rgba(0,150,90,0.06), transparent 60%);
    opacity: 0;
    transition: 0.4s var(--ease);
    z-index: -1;
}

.ds-product-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.ds-product-card:hover .ds-product-ambient {
    opacity: 1;
}

.ds-product-card-inner {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ds-product-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.ds-category-tag {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.ds-product-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.ds-product-tagline {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.5;
    flex: 0 0 auto;
}

.ds-feature-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

.ds-feature-row {
    display: flex;
    align-items: flex-start; /* Fix for wrapped text */
    gap: 0.85rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.ds-feature-row svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.ds-product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.ds-product-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent);
}

.ds-product-actions {
    display: flex;
    gap: 0.5rem;
}

.ds-action-btn {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    text-decoration: none;
    border: 1px solid transparent;
}

.ds-action-ghost {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border);
}

.ds-action-ghost:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
    border-color: var(--border-hover);
}

.ds-action-primary {
    background: var(--accent);
    color: #fff;
    pointer-events: auto;
}

.ds-action-primary:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
    box-shadow: 0 4px 16px var(--accent-glow);
}

.ds-product-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.ds-product-meta span {
    display: flex;
    align-items: center;
}

.ds-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 6rem 2rem;
    background: var(--bg-card);
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
}

.ds-empty-icon {
    display: inline-flex;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .ds-store-grid { grid-template-columns: 1fr; }
    .ds-filter-bar { border-radius: 16px; flex-wrap: wrap; }
}

/* ============================================
   TARGETED IMPROVEMENTS
   ============================================ */

/* --- Display Font for Headings --- */
.hero-title,
.ds-title,
.section-title,
.ds-center-header h2,
.ds-header h2,
.ds-cta-content h2,
.ds-bento-card h3,
.ds-bento-item h3,
.ds-bento-large h3,
.page-title,
.auth-header h1,
.about-card h2,
.cart-summary-card h3,
.profile-section h2,
.related-section h2 {
    font-family: var(--font-display);
    letter-spacing: -0.03em;
}

.related-section h2 {
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
}

/* --- Nav Active State --- */
.nav-link {
    position: relative;
}
.nav-link.active {
    color: var(--text-primary) !important;
}
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent);
}

/* --- Hero Proof Section --- */
.ds-hero-proof {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: 2.5rem;
    animation: fadeUp 0.6s var(--ease) 0.5s both;
}

.ds-proof-avatars {
    display: flex;
    align-items: center;
}

.ds-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #fff;
    margin-right: -8px;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

.ds-avatar:nth-child(1) { background: linear-gradient(135deg, #00965A, #007A48); }
.ds-avatar:nth-child(2) { background: linear-gradient(135deg, #7C3AED, #5B21B6); }
.ds-avatar:nth-child(3) { background: linear-gradient(135deg, #2563EB, #1E40AF); }
.ds-avatar:nth-child(4) { background: linear-gradient(135deg, #DB2777, #9D174D); margin-right: 0; }

.ds-proof-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
    padding-left: 0.5rem;
}
.ds-proof-text strong { color: var(--text-primary); font-weight: 600; }

/* --- Improved ds-btn-primary (dark text already set; ensure consistency) --- */
.ds-btn-primary,
.ds-btn-primary:hover {
    color: #000 !important;
    font-weight: 700;
}

/* --- Better footer brand with logo --- */
.footer-logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(0, 255, 133, 0.35));
    margin-bottom: 0.75rem;
    display: block;
}

/* --- Improved CTA banner fallback --- */
.ds-cta-banner {
    background: linear-gradient(135deg, #0A1A10 0%, #0D2418 100%);
}

/* --- Refined ds-badge for hero --- */
.ds-badge {
    letter-spacing: 0.01em;
}

/* --- Smooth button text for all btn variants --- */
.btn-outline:hover,
.btn-ghost:hover {
    color: var(--text-primary);
}

/* --- Improved bento cards readability --- */
.ds-bento-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

/* --- Product price gradient consistent --- */
.ds-product-price {
    font-family: var(--font-display);
}

/* --- Store header improved padding --- */
.ds-store-header {
    padding: 8rem 0 4rem;
}
.ds-store-header .ds-subtitle {
    max-width: 560px;
    margin: 0.75rem auto 0;
}
