/* ==========================================================================
   style.css — Modern UI System
   ==========================================================================
   Two data-theme values: "light" (soft blue) and "dark" (neon cyan).
   ========================================================================== */

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

html { scroll-behavior: smooth; color-scheme: light; }
[data-theme="dark"] { color-scheme: dark; }

body {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

:root { accent-color: var(--color-primary); }

/* ═══════════════════════════════════════════════════════════════════════════
   LIGHT THEME
   ═══════════════════════════════════════════════════════════════════════════ */
:root, [data-theme="light"] {
    --bg-body:           #f8fafc;
    --bg-surface:        #ffffff;
    --bg-surface-hover:  #f1f5f9;
    --bg-nav:            rgba(255,255,255,0.85);
    --bg-footer:         #0f172a;
    --bg-input:          #ffffff;

    --text-primary:      #334155;
    --text-heading:      #1e293b;
    --text-secondary:    #64748b;
    --text-on-primary:   #ffffff;
    --text-muted:        #94a3b8;

    --color-primary:        #6366f1;
    --color-primary-hover:  #4f46e5;
    --color-primary-light:  #eef2ff;

    --color-success:     #10b981;
    --color-warning:     #f59e0b;
    --color-danger:      #ef4444;
    --color-info:        #06b6d4;

    --border-color:      #e2e8f0;
    --border-radius:     10px;
    --border-radius-lg:  16px;

    --shadow-sm:         0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md:         0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg:         0 12px 40px rgba(0,0,0,0.10);
    --shadow-glow:       0 0 24px rgba(99,102,241,0.30);

    --glass-bg:          rgba(255,255,255,0.70);
    --glass-border:      rgba(255,255,255,0.35);
    --glass-blur:        16px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   DARK THEME
   ═══════════════════════════════════════════════════════════════════════════ */
[data-theme="dark"] {
    --bg-body:           #0c1017;
    --bg-surface:        #1a212b;
    --bg-surface-hover:  #222b38;
    --bg-nav:            rgba(18,22,28,0.88);
    --bg-footer:         #090c11;
    --bg-input:          #222b38;

    --text-primary:      #e4e8ef;
    --text-heading:      #f1f5f9;
    --text-secondary:    #9aa8bf;
    --text-on-primary:   #12161c;
    --text-muted:        #5d6f86;

    --color-primary:        #00e5ff;
    --color-primary-hover:  #00b8d4;
    --color-primary-light:  rgba(0,229,255,0.12);

    --color-success:     #00e676;
    --color-warning:     #ffd740;
    --color-danger:      #ff5252;
    --color-info:        #40c4ff;

    --border-color:      #3b4a5e;
    --border-radius:     10px;
    --border-radius-lg:  16px;

    --shadow-sm:         0 2px 8px rgba(0,0,0,0.30);
    --shadow-md:         0 6px 24px rgba(0,0,0,0.40);
    --shadow-lg:         0 12px 48px rgba(0,0,0,0.50);
    --shadow-glow:       0 0 24px rgba(0,229,255,0.20);

    --glass-bg:          rgba(26,33,43,0.70);
    --glass-border:      rgba(0,229,255,0.12);
    --glass-blur:        18px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   THEME TRANSITION
   ═══════════════════════════════════════════════════════════════════════════ */
body {
    background-color: var(--bg-body);
    color: var(--text-primary);
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-heading);
    font-weight: 700;
    line-height: 1.3;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SURFACE / CARD — Modern Lift + Glow
   ═══════════════════════════════════════════════════════════════════════════ */
.surface {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    transition: transform 0.25s ease, box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

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

/* ── Glassmorphism Card ──────────────────────────────────────────────────── */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    transition: transform 0.25s ease, box-shadow 0.3s ease;
}

.glass:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ── Gradient Surface — accent tint for featured sections ───────────────── */
.surface-accent {
    background: linear-gradient(135deg, var(--color-primary-light), transparent 70%);
    border-color: var(--color-primary);
}

/* ═══════════════════════════════════════════════════════════════════════════
   BUTTONS — Modern with icon support
   ═══════════════════════════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent 60%);
    pointer-events: none;
}

.btn:active { transform: scale(0.96); }

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
    color: var(--text-on-primary);
    box-shadow: 0 4px 14px rgba(99,102,241,0.35);
}

.btn-primary:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
    text-decoration: none;
    color: var(--text-on-primary);
    text-shadow: 0 0 12px rgba(255,255,255,0.35);
}

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

.btn-outline:hover {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
    border-color: var(--color-primary-hover);
    color: var(--text-on-primary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-sm { padding: 0.4rem 1rem; font-size: 0.82rem; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1.05rem; }

.btn i { font-size: 1em; }

.btn-success {
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #fff;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
}
.btn-success:hover {
    background: linear-gradient(135deg, #15803d, #166534);
    box-shadow: 0 6px 24px rgba(22, 163, 74, 0.5);
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
}

.btn-danger {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #fff;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
}
.btn-danger:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    box-shadow: 0 6px 24px rgba(220, 38, 38, 0.5);
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
}

/* ── Payment Method Buttons ────────────────────────────────────────────── */
.btn-pay-stripe {
    background: linear-gradient(135deg, #635bff, #5145cd);
    color: #fff;
    box-shadow: 0 4px 14px rgba(99, 91, 255, 0.35);
}
.btn-pay-stripe:hover {
    background: linear-gradient(135deg, #5145cd, #3b2fc9);
    box-shadow: 0 6px 24px rgba(99, 91, 255, 0.5);
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
}

.btn-pay-paypal {
    background: linear-gradient(135deg, #0070ba, #003087);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 112, 186, 0.35);
}
.btn-pay-paypal:hover {
    background: linear-gradient(135deg, #003087, #002060);
    box-shadow: 0 6px 24px rgba(0, 112, 186, 0.5);
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
}

.btn-pay-paynow {
    background: linear-gradient(135deg, #e53935, #b71c1c);
    color: #fff;
    box-shadow: 0 4px 14px rgba(229, 57, 53, 0.35);
}
.btn-pay-paynow:hover {
    background: linear-gradient(135deg, #b71c1c, #8e0000);
    box-shadow: 0 6px 24px rgba(229, 57, 53, 0.5);
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
}

.btn-pay-simulated {
    background: transparent;
    border: 1.5px solid var(--border-color);
    color: var(--text-secondary);
    box-shadow: none;
}
.btn-pay-simulated:hover {
    background: var(--bg-secondary);
    border-color: var(--text-muted);
    color: var(--text-primary);
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-pay-lg {
    font-size: 1.1rem;
    padding: 0.9rem 2.5rem;
    border-radius: var(--border-radius);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}
.btn-pay-lg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent 60%);
    pointer-events: none;
}
.btn-pay-lg:active { transform: scale(0.96); }

/* ── Pricing Page / Package Card Buttons ──────────────────────────────── */
.btn-pkg-stripe {
    background: transparent;
    border: 1.5px solid #6366f1;
    color: #6366f1;
    transition: all 0.25s ease;
}
.btn-pkg-stripe:hover {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border-color: #4f46e5;
    color: #fff;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-pkg-paypal {
    background: transparent;
    border: 1.5px solid #0070ba;
    color: #0070ba;
    transition: all 0.25s ease;
}
.btn-pkg-paypal:hover {
    background: linear-gradient(135deg, #0070ba, #003087);
    border-color: #003087;
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 112, 186, 0.4);
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-pkg-paynow {
    background: transparent;
    border: 1.5px solid #e53935;
    color: #e53935;
    transition: all 0.25s ease;
}
.btn-pkg-paynow:hover {
    background: linear-gradient(135deg, #e53935, #b71c1c);
    border-color: #b71c1c;
    color: #fff;
    box-shadow: 0 4px 16px rgba(229, 57, 53, 0.4);
    transform: translateY(-2px);
    text-decoration: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FORM INPUTS — Modern with icon prefix
   ═══════════════════════════════════════════════════════════════════════════ */
.form-input {
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-input);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    width: 100%;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

.form-input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.input-group {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-input);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-group:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

.input-group .input-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.8rem;
    flex-shrink: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    opacity: 0.55;
    line-height: 1;
}

.input-group .form-input {
    border: none !important;
    box-shadow: none !important;
    padding: 0.75rem 0.75rem 0.75rem 0;
    background: transparent;
    border-radius: 0;
}

.input-group .form-input:focus { box-shadow: none !important; }

.input-group:focus-within .input-icon {
    color: var(--color-primary);
    opacity: 1;
}

.role-card {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.75rem 0.9rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    background: var(--bg-input);
}

.role-card:hover {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
}

.role-card:has(input:checked) {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

.role-card input[type="radio"] {
    accent-color: var(--color-primary);
    margin-top: 0.15rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   NAVIGATION — Glass blur nav
   ═══════════════════════════════════════════════════════════════════════════ */
.navbar {
    background: var(--bg-nav);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 0 2rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    letter-spacing: -0.3px;
}

.navbar-brand i {
    font-size: 1.4rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-brand:hover { text-decoration: none; }

.navbar-links {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    align-items: center;
}

.navbar-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0.8rem;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s ease;
}

.navbar-links a:hover {
    color: var(--color-primary);
    background: var(--color-primary-light);
    text-decoration: none;
}

.navbar-links a.active {
    color: var(--color-primary);
    background: var(--color-primary-light);
    font-weight: 600;
}

.navbar-links a i { font-size: 0.85em; }

.nav-dropdown {
    position: relative;
}

.nav-dropdown-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0.8rem;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

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

.nav-dropdown-arrow {
    font-size: 0.65em;
    transition: transform 0.2s ease;
}

.nav-dropdown.open .nav-dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    min-width: 180px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 0.4rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.96);
    transition: all 0.2s ease;
    z-index: 1001;
}

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

.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.8rem;
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.15s ease;
    text-decoration: none;
    white-space: nowrap;
}

.nav-dropdown-menu a:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
    text-decoration: none;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.cart-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    text-decoration: none;
    position: relative;
}

.cart-btn:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-color: var(--color-primary);
    text-decoration: none;
}

.cart-btn .cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0 4px;
    background: var(--color-danger);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ═══════════════════════════════════════════════════════════════════════════
   THEME TOGGLE
   ═══════════════════════════════════════════════════════════════════════════ */
.theme-toggle {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-color: var(--color-primary);
    transform: rotate(15deg);
}

.theme-toggle .light-icon { display: inline; }
.theme-toggle .dark-icon  { display: none;  }

[data-theme="dark"] .theme-toggle .light-icon { display: none;  }
[data-theme="dark"] .theme-toggle .dark-icon  { display: inline; }

/* ═══════════════════════════════════════════════════════════════════════════
   ACCOUNT DROPDOWN
   ═══════════════════════════════════════════════════════════════════════════ */
.account-dropdown {
    position: relative;
    flex-shrink: 0;
}

.account-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

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

.account-menu {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    min-width: 200px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 0.4rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.96);
    transition: all 0.2s ease;
    z-index: 1001;
}

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

.account-menu-header {
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0.2rem;
}

.cart-badge {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:18px;
    height:18px;
    border-radius:9px;
    font-size:0.7rem;
    font-weight:700;
    padding:0 5px;
    background:var(--color-primary);
    color:var(--text-on-primary);
    line-height:1;
}

.account-menu a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.8rem;
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.15s ease;
    text-decoration: none;
}

.account-menu a:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
    text-decoration: none;
}

.account-menu-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.2rem 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */
.footer {
    background: var(--bg-footer);
    margin-top: auto;
    transition: background-color 0.3s ease;
    color: #cbd5e1;
}

.footer-inner {
    padding: 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .footer-inner { grid-template-columns: 1fr; text-align: center; padding: 1.5rem 1rem; }
}

.footer-col h4 {
    color: #f1f5f9;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li { margin-bottom: 0.5rem; }

.footer-col ul a {
    color: #94a3b8;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s ease;
}

.footer-col ul a:hover {
    color: #6366f1;
    text-decoration: none;
}

.footer-logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: #f1f5f9;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.footer-logo i {
    font-size: 1.4rem;
    color: #6366f1;
}

.footer-logo:hover { text-decoration: none; color: #f1f5f9; }

.footer-desc {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #64748b;
    margin-bottom: 1rem;
    max-width: 340px;
}

@media (max-width: 768px) {
    .footer-desc { max-width: 100%; }
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

@media (max-width: 768px) {
    .footer-social { justify-content: center; }
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

.footer-social a:hover {
    background: #6366f1;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

.footer-bar {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 1.2rem 2rem;
    text-align: center;
    font-size: 0.82rem;
    color: #475569;
}

.footer-bar p { margin: 0; }

/* ═══════════════════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════════════════ */
.hero {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    padding: 2rem 2rem 4rem;
    min-height: 85vh;
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin-top: -1.5rem;
    margin-left: calc(-50vw + 50%);
    padding-left: calc(50vw - 50% + 2rem);
    padding-right: calc(50vw - 50% + 2rem);
    gap: 4rem;
}

/* ── Hero background glow ────────────────────────────────────────────── */
.hero::before {
    content: '';
    position: absolute;
    top: -60%;
    left: -40%;
    width: 180%;
    height: 180%;
    background: radial-gradient(ellipse at 25% 50%, var(--color-primary-light) 0%, transparent 55%),
                radial-gradient(ellipse at 75% 50%, var(--color-primary-light) 0%, transparent 55%);
    opacity: 0.45;
    animation: heroGlow 10s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes heroGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-3%, -2%) scale(1.06); }
}

/* ── Floating decorative shapes ─────────────────────────────────────── */
.hero-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.07;
}

.hero-shape-1 {
    width: 300px;
    height: 300px;
    background: var(--color-primary);
    top: -80px;
    right: 10%;
    animation: floatShape 8s ease-in-out infinite;
}

.hero-shape-2 {
    width: 200px;
    height: 200px;
    background: var(--color-primary);
    bottom: 10%;
    left: -40px;
    animation: floatShape 10s ease-in-out infinite reverse;
}

.hero-shape-3 {
    width: 150px;
    height: 150px;
    background: var(--color-primary);
    top: 40%;
    right: -30px;
    animation: floatShape 7s ease-in-out infinite 1s;
}

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

.hero-content {
    flex: 1;
    max-width: 560px;
    position: relative;
    z-index: 2;
}

/* ── Badge ───────────────────────────────────────────────────────────── */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem 0.4rem 0.5rem;
    border-radius: 50px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(99,102,241,0.2);
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.hero h1 {
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--color-primary), #818cf8 40%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
    max-width: 480px;
}

.hero .btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.hero-cta {
    position: relative;
}

.hero-cta::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: calc(var(--border-radius) + 3px);
    background: linear-gradient(135deg, var(--color-primary), #818cf8, #c084fc);
    z-index: -1;
    opacity: 0.4;
    animation: ctaGlow 3s ease-in-out infinite alternate;
}

@keyframes ctaGlow {
    0% { opacity: 0.3; filter: blur(4px); }
    100% { opacity: 0.6; filter: blur(8px); }
}

/* ── Trust stats ─────────────────────────────────────────────────────── */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.hero-stat-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
}

.hero-stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

.hero-stat-divider {
    width: 1px;
    height: 36px;
    background: var(--border-color);
}

/* ── Visual column ───────────────────────────────────────────────────── */
.hero-visual {
    flex: 1;
    max-width: 460px;
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
}

/* ── Hero slideshow ──────────────────────────────────────────────────── */
.hero-slideshow {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 3 / 4;
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-body);
    box-shadow:
        0 20px 60px rgba(99,102,241,0.25),
        0 0 80px var(--color-primary-light);
    transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
    transition: transform 0.5s ease;
}

.hero-slideshow:hover {
    transform: perspective(1000px) rotateY(-2deg) rotateX(1deg) translateY(-4px);
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 40%, transparent 40%, rgba(99,102,241,0.06) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
    transform: scale(0.92);
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-slide-dots {
    position: absolute;
    bottom: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
    z-index: 2;
}

.hero-slide-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1.5px solid rgba(255,255,255,0.3);
}

.hero-slide-dots .dot.active {
    background: #fff;
    width: 24px;
    border-radius: 4px;
    border-color: #fff;
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.hero-slide-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.5);
}

.hero-slide-dots .dot.active {
    background: #fff;
    transform: scale(1.2);
    border-color: #fff;
    box-shadow: 0 0 10px rgba(255,255,255,0.6);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FEATURE ICON CARD
   ═══════════════════════════════════════════════════════════════════════════ */
.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, var(--color-primary-light), transparent);
    color: var(--color-primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.surface:hover .feature-icon,
.glass:hover .feature-icon {
    transform: scale(1.1) rotate(-3deg);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FORM ELEMENTS
   ═══════════════════════════════════════════════════════════════════════════ */
input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="url"], input[type="search"],
input[type="tel"], textarea, select {
    background-color: var(--bg-input);
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    padding: 0.65rem 0.9rem;
    font-size: 0.95rem;
    width: 100%;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════════════════════════════
   ALERTS
   ═══════════════════════════════════════════════════════════════════════════ */
.alert {
    padding: 0.9rem 1.2rem;
    border-radius: var(--border-radius);
    border: 1px solid transparent;
    margin-bottom: 1rem;
    font-size: 0.93rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.alert i { font-size: 1.1em; }

.alert-success { background: rgba(40,167,69,0.10); border-color: var(--color-success); color: var(--color-success); }
.alert-warning { background: rgba(255,193,7,0.10);  border-color: var(--color-warning); color: var(--color-warning); }
.alert-error   { background: rgba(220,53,69,0.10);  border-color: var(--color-danger);  color: var(--color-danger);  }
.alert-info    { background: rgba(23,162,184,0.10); border-color: var(--color-info);    color: var(--color-info);    }

/* ═══════════════════════════════════════════════════════════════════════════
   BADGE COMPONENT
   ═══════════════════════════════════════════════════════════════════════════ */
.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 999px;
    background: var(--border-color);
    color: var(--text-secondary);
    line-height: 1.4;
    white-space: nowrap;
}
.badge-success { background: rgba(16,185,129,0.15); color: var(--color-success); }
.badge-warning { background: rgba(245,158,11,0.15);  color: var(--color-warning); }
.badge-danger  { background: rgba(239,68,68,0.15);   color: var(--color-danger);  }
.badge-pending { background: rgba(148,163,184,0.2);  color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════════════════════
   DATA TABLE
   ═══════════════════════════════════════════════════════════════════════════ */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.data-table thead th {
    padding: 0.65rem 0.75rem;
    border-bottom: 2px solid var(--border-color);
    text-align: left;
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-secondary);
    white-space: nowrap;
}
.data-table tbody td {
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}
.data-table tbody tr:hover {
    background: rgba(99,102,241,0.04);
}
.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ═══════════════════════════════════════════════════════════════════════════ */
@keyframes toastIn {
    from { opacity: 0; transform: translateX(100%) scale(0.9); }
    to   { opacity: 1; transform: translateX(0) scale(1); }
}

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

.toast {
    display: flex !important;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.2rem;
    border-radius: var(--border-radius-lg);
    font-size: 0.92rem;
    box-shadow: var(--shadow-lg);
    animation: toastIn 0.35s ease;
    cursor: pointer;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-left: 4px solid var(--color-info);
}

.toast i { font-size: 1.1em; }

/* ═══════════════════════════════════════════════════════════════════════════
   CART BADGE
   ═══════════════════════════════════════════════════════════════════════════ */
.cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0 5px;
    margin-left: 2px;
    background: var(--color-danger);
    color: #fff;
    vertical-align: top;
    transition: transform 0.3s ease;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HAMBURGER MENU
   ═══════════════════════════════════════════════════════════════════════════ */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    width: 36px;
    height: 36px;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2.5px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger-active span:nth-child(2) { opacity: 0; }
.hamburger-active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 1024px) {
    .hamburger { display: flex; }

    .navbar-links {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg-nav);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 1rem 2rem;
        gap: 0.4rem;
        border-bottom: 1px solid var(--border-color);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.35s ease, opacity 0.35s ease;
        z-index: 999;
    }

    .navbar-links.nav-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .navbar-links li { width: 100%; }
    .navbar-links a { display: flex; padding: 0.6rem 0.8rem; }

    .navbar { padding: 0 1rem; }

    .nav-dropdown { width: 100%; }
    .nav-dropdown-btn {
        width: 100%;
        padding: 0.6rem 0.8rem;
        justify-content: flex-start;
    }
    .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0 0 0 1rem;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: none;
        background: transparent;
    }
    .nav-dropdown:not(.open) .nav-dropdown-menu {
        display: none;
    }
    .nav-dropdown.open .nav-dropdown-menu {
        display: flex;
        flex-direction: column;
    }
    .nav-dropdown-menu a { white-space: normal; }
}

@media (max-width: 768px) {
    .hero { flex-direction: column; text-align: center; padding: 1.5rem 1rem 3rem; min-height: auto; width: 100vw; margin-top: -1.5rem; margin-left: calc(-50vw + 50%); padding-left: calc(50vw - 50% + 1rem); padding-right: calc(50vw - 50% + 1rem); gap: 2rem; }
    .hero-content { max-width: 100%; }
    .hero-visual { max-width: 260px; }
    .hero .btn-group { justify-content: center; }
    .hero .btn-group .btn { width: 100%; }
    .hero-stats { justify-content: center; }
    .hero-badge { margin-left: auto; margin-right: auto; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .hero-slideshow { transform: none; }
    .hero-slideshow:hover { transform: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PRE-LOADER
   ═══════════════════════════════════════════════════════════════════════════ */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--bg-body);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border-color);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.hidden { display: none; }

/* ═══════════════════════════════════════════════════════════════════════════
   DASHBOARD LAYOUT — sidebar + main content
   ═══════════════════════════════════════════════════════════════════════════ */
.dashboard {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
    margin: -1.5rem -2rem 0;
    padding: 1.5rem 2rem 0;
    min-height: calc(100vh - 64px - 2rem);
}

.dashboard-sidebar {
    position: sticky;
    top: calc(64px + 1.5rem);
    height: fit-content;
    max-height: calc(100vh - 64px - 3rem);
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.sidebar-scroll {
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 0 0.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sidebar-scroll::-webkit-scrollbar {
    width: 4px;
}

.sidebar-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-scroll::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

.sidebar-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.25rem 1rem 1rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0.35rem;
    background: var(--color-primary-light);
    position: relative;
}

.sidebar-user::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
}

.sidebar-avatar {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.15rem;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.18);
    position: relative;
    overflow: hidden;
}

.sidebar-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.sidebar-user-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.sidebar-user-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.sidebar-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    padding: 0.15rem 0.6rem 0.15rem 0.5rem;
    border-radius: 100px;
    width: fit-content;
    line-height: 1.2;
}

.sidebar-badge::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.7;
    flex-shrink: 0;
}

.dashboard-sidebar .sidebar-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 0.85rem 1rem 0.3rem;
}

.dashboard-sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0 0.5rem 0.5rem;
}

.dashboard-sidebar nav a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.88rem;
    text-decoration: none;
    position: relative;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.dashboard-sidebar nav a:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-left-color: var(--color-primary);
    text-decoration: none;
}

.dashboard-sidebar nav a.active {
    background: linear-gradient(135deg, var(--color-primary), #818cf8);
    color: var(--text-on-primary);
    border-left-color: rgba(0,0,0,0.2);
    box-shadow: 0 2px 8px rgba(99,102,241,0.25);
}

.dashboard-sidebar nav a i {
    width: 1.2rem;
    text-align: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.dashboard-sidebar .sidebar-footer {
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.dashboard-sidebar .sidebar-footer a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.82rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.dashboard-sidebar .sidebar-footer a:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
    text-decoration: none;
}

.dashboard-sidebar .sidebar-footer a i {
    width: 1.2rem;
    text-align: center;
    font-size: 0.9rem;
}

.dashboard-main {
    min-width: 0;
}

@media (max-width: 768px) {
    .dashboard {
        grid-template-columns: 1fr;
        margin: -1rem -1rem 0;
        padding: 1rem 1rem 0;
    }
    .dashboard-sidebar {
        position: static;
        max-height: none;
        margin-bottom: 1rem;
    }
    .dashboard-sidebar nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.3rem;
        padding: 0.5rem;
    }
    .dashboard-sidebar nav a {
        font-size: 0.8rem;
        padding: 0.4rem 0.65rem;
        border-left: none;
    }
    .dashboard-sidebar nav a.active {
        border-left: none;
    }
    .dashboard-sidebar .sidebar-label {
        display: none;
    }
    .dashboard-sidebar .sidebar-footer {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PAGE FADE-IN
   ═══════════════════════════════════════════════════════════════════════════ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    padding: 1rem;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-overlay.open .modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
}

.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.2rem;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════════════════════════════
   PAGE FADE-IN
   ═══════════════════════════════════════════════════════════════════════════ */
main {
    animation: fadeIn 0.4s ease;
    padding: 1.5rem 2rem 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

section:not(.hero) {
    padding: 1.5rem 0;
}

@media (max-width: 768px) {
    main { padding: 1rem 1rem 1rem; }
    section:not(.hero) { padding: 1rem 0; }
}

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

/* ═══════════════════════════════════════════════════════════════════════════
   FOCUS & ACCESSIBILITY
   ═══════════════════════════════════════════════════════════════════════════ */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   DETAIL PAGE — Layout, Gallery, Info
   ═══════════════════════════════════════════════════════════════════════════ */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

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

/* ── Gallery ──────────────────────────────────────────────────────────── */
.gallery {
    position: relative;
}

.gallery-main {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
}

.gallery-main img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    transition: opacity 0.3s ease;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease, background 0.2s ease;
    z-index: 2;
}

.gallery-main:hover .gallery-nav { opacity: 1; }

.gallery-nav:hover {
    background: var(--color-primary);
    color: var(--text-on-primary);
    border-color: var(--color-primary);
}

.gallery-prev { left: 0.75rem; }
.gallery-next { right: 0.75rem; }

.gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.gallery-thumbs img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: var(--border-radius);
    border: 2px solid transparent;
    cursor: pointer;
    opacity: 0.55;
    transition: opacity 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
}

.gallery-thumbs img:hover { opacity: 0.85; }
.gallery-thumbs img.active { opacity: 1; border-color: var(--color-primary); }

.gallery-count {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.gallery-empty {
    background: var(--bg-surface);
    border: 1px dashed var(--border-color);
    border-radius: var(--border-radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    color: var(--text-muted);
    font-size: 3rem;
    gap: 0.5rem;
}

.gallery-empty p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* ── Detail info panel ────────────────────────────────────────────────── */
.detail-info h1 {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.detail-meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.detail-price {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.detail-period {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.detail-stock {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.detail-stock.in-stock { color: var(--color-success); }
.detail-stock.out-of-stock { color: var(--color-danger); }

.detail-sku {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.detail-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 0.82rem;
    font-weight: 500;
}

.detail-desc {
    margin-bottom: 1.5rem;
}

.detail-desc h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.detail-desc div {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}

.tag {
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 0.78rem;
    font-weight: 500;
}

.detail-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BUTTON LOADING SPINNER
   ═══════════════════════════════════════════════════════════════════════════ */
.btn.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2.5px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════════════════════════════
   TABLE STYLING
   ═══════════════════════════════════════════════════════════════════════════ */
.table-wrap {
    overflow-x: auto;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

thead th {
    background: var(--bg-surface);
    padding: 0.75rem 0.7rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-color);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

tbody td {
    padding: 0.7rem;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.15s ease;
}

tbody tr:hover td {
    background: var(--color-primary-light);
}

/* ═══════════════════════════════════════════════════════════════════════════
   STAT CARDS (dashboards)
   ═══════════════════════════════════════════════════════════════════════════ */
.stat-card {
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: var(--border-radius-lg);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-card .stat-icon {
    font-size: 1.8rem;
    margin-bottom: 0.4rem;
    color: var(--color-primary);
}

.stat-card .stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.2;
}

.stat-card .stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════════════════════════════════════ */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 1rem; }
.gap-2 { gap: 1.5rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 1.5rem; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE GRID
   ═══════════════════════════════════════════════════════════════════════════ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.2rem; }
.grid-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }

.listing-card {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

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

.listing-card-img {
    width: 100%;
    height: 180px;
    position: relative;
    overflow: hidden;
}

.listing-card-body {
    padding: 1rem 1rem 1.1rem;
}

.listing-card-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.listing-card-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.listing-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.listing-card-type {
    background: var(--color-primary-light);
    color: var(--color-primary);
    padding: 0.05rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.listing-card-price {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .grid-stats { grid-template-columns: repeat(2, 1fr); }
    section [style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 640px) {
    .grid-stats { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SCROLL ENTRANCE ANIMATIONS
   Usage:  data-anim="fade-up"  (or fade-down, fade-left, fade-right, zoom)
   ═══════════════════════════════════════════════════════════════════════════ */

[data-anim] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-anim].anim-visible {
    opacity: 1;
    transform: none !important;
}

[data-anim="fade-up"]    { transform: translateY(30px); }
[data-anim="fade-down"]  { transform: translateY(-30px); }
[data-anim="fade-left"]  { transform: translateX(-30px); }
[data-anim="fade-right"] { transform: translateX(30px); }
[data-anim="zoom"]       { transform: scale(0.92); }

/* ═══════════════════════════════════════════════════════════════════════════
   FILE UPLOAD DROP ZONE
   ═══════════════════════════════════════════════════════════════════════════ */
.drop-zone {
    position: relative;
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: var(--color-primary-light);
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
}

.drop-zone.drag-over {
    border-color: var(--color-primary);
    background: color-mix(in srgb, var(--color-primary) 8%, transparent);
}

.drop-zone-icon {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    opacity: 0.6;
    transition: opacity 0.2s, transform 0.2s;
}

.drop-zone.drag-over .drop-zone-icon {
    opacity: 1;
    transform: scale(1.1);
}

.drop-zone-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.drop-zone-hint {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.drop-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
}

.drop-zone-file {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.drop-zone-file.show {
    display: inline-flex;
}

.drop-zone-file i {
    color: var(--color-success);
    font-size: 1rem;
}

.drop-zone-file .remove-file {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: color 0.15s;
}

.drop-zone-file .remove-file:hover {
    color: var(--color-danger);
}

/* ── Product card image ───────────────────────────────────────────────────── */
.product-card-img {
    overflow: hidden;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}
.product-card-img img {
    transition: transform 0.3s ease;
}
.product-card-img:hover img {
    transform: scale(1.05);
}

/* ── Lightbox ─────────────────────────────────────────────────────────────── */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}
.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 4px;
}
.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 2rem;
    color: #fff;
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
}
