/* =============================================================================
   DIGISTORE PRO â€” MASTER STYLESHEET
   Design System: Dark / Glassmorphism / Cyberpunk-Premium
   Author: DigiStore Pro
   =============================================================================
   TABLE OF CONTENTS:
   01. CSS Custom Properties (Design Tokens)
   02. CSS Reset & Base
   03. Typography
   04. Layout Utilities
   05. Glassmorphism Components
   06. Buttons
   07. Navigation / Header
   08. Hero Section
   09. Product Cards Grid
   10. Badges & Tags
   11. Forms & Inputs
   12. User Dashboard
   13. Admin Dashboard & Sidebar
   14. Admin Data Tables
   15. Admin Stats / Charts
   16. Modals & Overlays
   17. Loading States
   18. Flash Messages / Alerts
   19. Footer
   20. Keyframe Animations
   21. Scroll Reveal
   22. Scrollbars
   23. Responsive Breakpoints
   ============================================================================= */

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   01. CSS CUSTOM PROPERTIES â€” THE DESIGN TOKEN SYSTEM
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
:root {
    /* Background Layers */
    --bg-main:        #0B0E14;
    --bg-secondary:   #151A23;
    --bg-tertiary:    #1F2633;
    --bg-card:        #161C28;
    --bg-input:       #0E1219;

    /* Accent Colors */
    --accent-primary:  #FF6B00;
    --accent-hover:    #FF8533;
    --accent-glow:     rgba(255, 107, 0, 0.40);
    --accent-glow-sm:  rgba(255, 107, 0, 0.20);
    --accent-secondary:#00D4FF;
    --accent-sec-glow: rgba(0, 212, 255, 0.30);

    /* Status Colors */
    --color-success:   #22C55E;
    --color-warning:   #F59E0B;
    --color-error:     #EF4444;
    --color-info:      #3B82F6;

    /* Text */
    --text-main:       #FFFFFF;
    --text-muted:      #8A92A6;
    --text-subtle:     #4A5568;
    --text-inverse:    #0B0E14;

    /* Glass / Border */
    --glass-bg:        rgba(21, 26, 35, 0.65);
    --glass-bg-heavy:  rgba(11, 14, 20, 0.85);
    --glass-border:    rgba(255, 255, 255, 0.08);
    --glass-border-sm: rgba(255, 255, 255, 0.05);
    --glass-blur:      blur(16px);
    --glass-blur-sm:   blur(8px);

    /* Gradients */
    --grad-accent:     linear-gradient(135deg, #FF6B00, #FF3D00);
    --grad-card:       linear-gradient(180deg, rgba(255,107,0,0.04) 0%, transparent 60%);
    --grad-hero:       linear-gradient(135deg, #0B0E14 0%, #1A1030 50%, #0B0E14 100%);
    --grad-overlay:    linear-gradient(180deg, transparent 40%, rgba(11,14,20,0.95) 100%);

    /* Shadows */
    --shadow-card:     0 8px 32px rgba(0,0,0,0.4);
    --shadow-card-hover: 0 20px 60px rgba(0,0,0,0.6), 0 0 40px var(--accent-glow-sm);
    --shadow-btn:      0 4px 20px var(--accent-glow);
    --shadow-btn-hover:0 8px 32px var(--accent-glow);
    --shadow-nav:      0 4px 32px rgba(0,0,0,0.5);
    --shadow-modal:    0 24px 80px rgba(0,0,0,0.8);

    /* Border Radius */
    --radius-sm:   8px;
    --radius-md:   12px;
    --radius-lg:   16px;
    --radius-xl:   24px;
    --radius-pill: 999px;

    /* Spacing Scale */
    --space-xs:  4px;
    --space-sm:  8px;
    --space-md:  16px;
    --space-lg:  24px;
    --space-xl:  32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;

    /* Z-Index Scale */
    --z-below:   -1;
    --z-base:     0;
    --z-raised:   10;
    --z-overlay:  100;
    --z-nav:      200;
    --z-modal:    300;
    --z-toast:    400;

    /* Transitions */
    --transition-fast:   all 0.15s ease;
    --transition-base:   all 0.25s ease;
    --transition-slow:   all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-bounce: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   02. CSS RESET & BASE
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

img, video {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

input, select, textarea {
    font-family: inherit;
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   03. TYPOGRAPHY
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.8rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p { color: var(--text-muted); line-height: 1.75; }

.text-gradient {
    background: var(--grad-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-muted  { color: var(--text-muted) !important; }
.text-accent { color: var(--accent-primary) !important; }
.text-center { text-align: center; }
.text-right  { text-align: right; }

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   04. LAYOUT UTILITIES
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.container-sm  { max-width: 860px;  margin: 0 auto; padding: 0 var(--space-xl); }
.container-lg  { max-width: 1440px; margin: 0 auto; padding: 0 var(--space-xl); }

.flex            { display: flex; }
.flex-col        { flex-direction: column; }
.items-center    { align-items: center; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm  { gap: var(--space-sm); }
.gap-md  { gap: var(--space-md); }
.gap-lg  { gap: var(--space-lg); }
.gap-xl  { gap: var(--space-xl); }

.grid { display: grid; }

.section {
    padding: var(--space-4xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-header .label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-primary);
    margin-bottom: var(--space-sm);
    padding: 4px 14px;
    border: 1px solid var(--accent-glow-sm);
    border-radius: var(--radius-pill);
    background: rgba(255,107,0,0.08);
}

.section-header h2 {
    margin-bottom: var(--space-md);
}

.section-header p {
    max-width: 560px;
    margin: 0 auto;
    color: var(--text-muted);
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   05. GLASSMORPHISM COMPONENTS
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
}

.glass-heavy {
    background: var(--glass-bg-heavy);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: var(--transition-slow);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad-card);
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::before { opacity: 1; }

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   06. BUTTONS
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    -webkit-user-select: none;
    user-select: none;
}

/* Primary button â€” orange */
.btn-primary {
    background: var(--grad-accent);
    color: #fff;
    box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-btn-hover);
    filter: brightness(1.1);
}

.btn-primary:active { transform: scale(0.98); }

/* Secondary â€” glass outline */
.btn-secondary {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur-sm);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-primary);
    transform: scale(1.03);
}

/* Ghost â€” text only with accent */
.btn-ghost {
    background: transparent;
    color: var(--accent-primary);
    padding: 10px 20px;
}
.btn-ghost:hover {
    background: rgba(255,107,0,0.08);
    transform: scale(1.04);
}

/* Danger */
.btn-danger {
    background: linear-gradient(135deg, #EF4444, #B91C1C);
    color: #fff;
    box-shadow: 0 4px 20px rgba(239,68,68,0.35);
}
.btn-danger:hover {
    filter: brightness(1.15);
    transform: scale(1.04);
    box-shadow: 0 8px 30px rgba(239,68,68,0.5);
}

/* Sizes */
.btn-sm  { padding: 8px 18px;  font-size: 0.85rem; border-radius: var(--radius-sm); }
.btn-lg  { padding: 16px 40px; font-size: 1.05rem; }
.btn-xl  { padding: 18px 52px; font-size: 1.1rem;  border-radius: var(--radius-lg); }
.btn-full { width: 100%; }

/* Pill shape variant */
.btn-pill { border-radius: var(--radius-pill); }

/* Ripple effect container */
.btn .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transform: scale(0);
    animation: ripple-expand 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-expand {
    to { transform: scale(4); opacity: 0; }
}

/* Icon button */
.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    transition: var(--transition-base);
}
.btn-icon:hover {
    background: var(--accent-primary);
    color: #fff;
    border-color: var(--accent-primary);
    transform: scale(1.1);
}

/* Loading spinner on button */
.btn.loading {
    pointer-events: none;
    opacity: 0.7;
}
.btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin-left: 8px;
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   07. NAVIGATION / HEADER
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-nav);
    padding: 20px 0;
    transition: var(--transition-slow);
}

.navbar.scrolled {
    background: var(--glass-bg-heavy);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-nav);
    padding: 12px 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -0.02em;
    color: var(--text-main);
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo .logo-icon {
    width: 36px;
    height: 36px;
    background: var(--grad-accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 0 20px var(--accent-glow);
}

.nav-logo .logo-text span { color: var(--accent-primary); }

/* Navigation links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
}

.nav-links a {
    position: relative;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    right: 50%;
    height: 2px;
    background: var(--accent-primary);
    border-radius: 2px;
    transition: left 0.25s ease, right 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-main);
    background: rgba(255,255,255,0.05);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    left: 14px;
    right: 14px;
}

/* Nav Right */
.nav-right {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-shrink: 0;
}

/* Cart icon */
.cart-btn {
    position: relative;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition-base);
}

.cart-btn:hover {
    background: var(--accent-primary);
    color: #fff;
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px var(--accent-glow);
    transform: scale(1.08);
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--accent-primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 0 8px var(--accent-glow);
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.15); }
}

/* User avatar dropdown */
.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid var(--accent-primary);
    cursor: pointer;
    object-fit: cover;
    transition: var(--transition-base);
    box-shadow: 0 0 14px var(--accent-glow-sm);
}

.user-avatar:hover { box-shadow: 0 0 20px var(--accent-glow); }

.user-dropdown-wrapper {
    position: relative;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 220px;
    background: var(--glass-bg-heavy);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-modal);
    padding: var(--space-sm);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: var(--transition-base);
    z-index: var(--z-overlay);
}

.user-dropdown.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.user-dropdown-header {
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: var(--space-xs);
}

.user-dropdown-header .name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
}

.user-dropdown-header .email {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 10px var(--space-md);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.dropdown-item:hover {
    background: rgba(255,107,0,0.1);
    color: var(--accent-primary);
}

.dropdown-item svg, .dropdown-item .icon { font-size: 1rem; }

.dropdown-divider {
    height: 1px;
    background: var(--glass-border);
    margin: var(--space-xs) 0;
}

/* Mobile hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: var(--transition-base);
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   08. HERO SECTION
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 100px;
    background: var(--grad-hero);
}

/* Animated grid background */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,107,0,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,107,0,0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-drift 20s linear infinite;
    z-index: 0;
}

@keyframes grid-drift {
    0%   { transform: translateY(0); }
    100% { transform: translateY(50px); }
}

/* Radial glow behind hero content */
.hero::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(255,107,0,0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    background: rgba(255,107,0,0.1);
    border: 1px solid rgba(255,107,0,0.25);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-primary);
    margin-bottom: var(--space-lg);
    animation: fade-slide-up 0.6s ease both;
    animation-delay: 0.1s;
}

.hero-label .dot {
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: pulse-dot 1.5s ease-in-out infinite;
    box-shadow: 0 0 6px var(--accent-primary);
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%       { transform: scale(1.4); opacity: 0.7; }
}

.hero-title {
    font-size: clamp(2.6rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-lg);
    animation: fade-slide-up 0.7s ease both;
    animation-delay: 0.2s;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: var(--space-2xl);
    max-width: 540px;
    animation: fade-slide-up 0.7s ease both;
    animation-delay: 0.35s;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
    animation: fade-slide-up 0.7s ease both;
    animation-delay: 0.5s;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    margin-top: var(--space-3xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--glass-border);
    animation: fade-slide-up 0.7s ease both;
    animation-delay: 0.65s;
}

.hero-stat .number {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--grad-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat .label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Floating product icons in hero */
.hero-visual {
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 520px;
    height: 520px;
    z-index: 1;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    background: var(--glass-bg-heavy);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    animation: float-y 4s ease-in-out infinite;
    transition: box-shadow 0.3s ease;
}

.floating-icon:nth-child(1) { width:80px; height:80px; top:10%;  left:20%;  animation-delay:0s;    animation-duration: 3.5s; }
.floating-icon:nth-child(2) { width:70px; height:70px; top:35%;  left:60%;  animation-delay:0.8s;  animation-duration: 4.2s; }
.floating-icon:nth-child(3) { width:90px; height:90px; top:60%;  left:10%;  animation-delay:1.5s;  animation-duration: 5s; }
.floating-icon:nth-child(4) { width:65px; height:65px; top:15%;  left:75%;  animation-delay:2s;    animation-duration: 3.8s; }
.floating-icon:nth-child(5) { width:75px; height:75px; top:75%;  left:55%;  animation-delay:0.4s;  animation-duration: 4.5s; }
.floating-icon:nth-child(6) { width:60px; height:60px; top:50%;  left:35%;  animation-delay:2.5s;  animation-duration: 3.2s; }

@keyframes float-y {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-18px); }
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   09. PRODUCT CARDS GRID
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: var(--space-lg);
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: var(--transition-slow);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255,107,0,0.25);
    box-shadow: var(--shadow-card-hover);
}

.product-card-image-wrap {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.product-card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-card-image-wrap img {
    transform: scale(1.08);
}

/* Gradient overlay on card image */
.product-card-image-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad-overlay);
}

/* Service icon overlay */
.product-card-icon {
    position: absolute;
    bottom: var(--space-md);
    left: var(--space-md);
    z-index: 1;
    width: 52px;
    height: 52px;
    background: var(--glass-bg-heavy);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Featured badge */
.product-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    z-index: 1;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--grad-accent);
    color: #fff;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.product-card-body {
    padding: var(--space-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.product-category {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-primary);
}

.product-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
}

.product-short-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    flex: 1;
}

.product-card-footer {
    padding: var(--space-md) var(--space-lg) var(--space-lg);
    border-top: 1px solid var(--glass-border-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

.product-price-wrap {}

.product-original-price {
    font-size: 0.78rem;
    color: var(--text-subtle);
    text-decoration: line-through;
}

.product-price {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent-primary);
}

.product-duration {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 1px;
}

.product-buy-btn {
    flex-shrink: 0;
}

/* Full-width buy button variant (below the card) */
.product-card-buy-full {
    display: block;
    width: calc(100% - var(--space-lg) * 2);
    margin: 0 var(--space-lg) var(--space-lg);
    text-align: center;
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   10. BADGES & STATUS TAGS
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.badge-pending          { background: rgba(107,114,128,0.15); color: #9CA3AF; border: 1px solid rgba(107,114,128,0.2); }
.badge-verifying        { background: rgba(245,158,11,0.12);  color: #F59E0B; border: 1px solid rgba(245,158,11,0.25); }
.badge-paid             { background: rgba(59,130,246,0.12);  color: #60A5FA; border: 1px solid rgba(59,130,246,0.25); }
.badge-preparing        { background: rgba(99,102,241,0.12);  color: #818CF8; border: 1px solid rgba(99,102,241,0.25); }
.badge-delivered        { background: rgba(34,197,94,0.12);   color: #22C55E; border: 1px solid rgba(34,197,94,0.25); }
.badge-cancelled        { background: rgba(239,68,68,0.12);   color: #EF4444; border: 1px solid rgba(239,68,68,0.25); }
.badge-refunded         { background: rgba(245,158,11,0.12);  color: #FBBF24; border: 1px solid rgba(245,158,11,0.25); }
.badge-failed           { background: rgba(239,68,68,0.12);   color: #F87171; border: 1px solid rgba(239,68,68,0.25); }

/* Glowing dot for "delivered" status */
.badge-delivered::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22C55E;
    box-shadow: 0 0 8px #22C55E, 0 0 16px rgba(34,197,94,0.5);
    animation: glow-pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 4px #22C55E; }
    50%       { box-shadow: 0 0 12px #22C55E, 0 0 24px rgba(34,197,94,0.6); }
}

/* Category tag */
.tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 600;
    background: var(--bg-tertiary);
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
    transition: var(--transition-fast);
}

.tag:hover {
    background: rgba(255,107,0,0.1);
    color: var(--accent-primary);
    border-color: var(--accent-glow-sm);
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   11. FORMS & INPUTS
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.form-label span.req { color: var(--accent-primary); margin-left: 2px; }

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-size: 0.95rem;
    padding: 12px 16px;
    outline: none;
    transition: var(--transition-base);
    -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow-sm);
    background: #0E1219;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-subtle);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

.form-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A92A6' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}

.form-select option {
    background: var(--bg-secondary);
    color: var(--text-main);
}

.form-error {
    font-size: 0.8rem;
    color: var(--color-error);
    display: flex;
    align-items: center;
    gap: 4px;
}

.input-icon-wrap {
    position: relative;
}

.input-icon-wrap .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.95rem;
    pointer-events: none;
}

.input-icon-wrap .form-input {
    padding-left: 42px;
}

/* Password toggle */
.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: var(--transition-fast);
}

.toggle-password:hover { color: var(--accent-primary); }

/* Auth card */
.auth-card {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-3xl);
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    box-shadow: var(--shadow-modal);
    animation: fade-slide-up 0.5s ease both;
}

.auth-card h2 {
    font-size: 1.8rem;
    margin-bottom: var(--space-sm);
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px var(--space-xl) var(--space-xl);
    background: var(--bg-main);
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   12. USER DASHBOARD
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.dashboard-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
    padding-top: 70px;
}

.dashboard-sidebar {
    background: var(--bg-secondary);
    border-right: 1px solid var(--glass-border);
    padding: var(--space-2xl) var(--space-lg);
    position: sticky;
    top: 70px;
    height: calc(100vh - 70px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.sidebar-user-info {
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.sidebar-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--accent-primary);
    object-fit: cover;
    flex-shrink: 0;
}

.sidebar-user-name { font-weight: 600; font-size: 0.95rem; }
.sidebar-user-email { font-size: 0.75rem; color: var(--text-muted); }

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 11px 14px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-base);
    text-decoration: none;
    border: 1px solid transparent;
}

.sidebar-nav-item:hover {
    background: var(--bg-tertiary);
    color: var(--text-main);
}

.sidebar-nav-item.active {
    background: rgba(255,107,0,0.12);
    color: var(--accent-primary);
    border-color: rgba(255,107,0,0.2);
}

.sidebar-nav-item .icon { font-size: 1.1rem; width: 20px; text-align: center; }

.sidebar-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-subtle);
    padding: var(--space-sm) 14px;
    margin-top: var(--space-sm);
}

.dashboard-main {
    padding: var(--space-2xl) var(--space-xl);
}

.dashboard-main h1 {
    font-size: 1.8rem;
    margin-bottom: var(--space-sm);
}

.stat-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    position: relative;
    overflow: hidden;
    transition: var(--transition-base);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    transform: translate(30%, -30%);
}

.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }

.stat-card .stat-icon {
    font-size: 1.4rem;
    margin-bottom: var(--space-sm);
}

.stat-card .stat-value {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Orders table */
.orders-table-wrap {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.orders-table-wrap .table-header {
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   13. ADMIN DASHBOARD & SIDEBAR
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: var(--bg-secondary);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: var(--z-nav);
    overflow-y: auto;
    transition: var(--transition-slow);
}

.admin-sidebar-logo {
    padding: var(--space-xl) var(--space-lg);
    border-bottom: 1px solid var(--glass-border);
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    flex-shrink: 0;
}

.admin-sidebar-logo .logo-badge {
    background: var(--grad-accent);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.08em;
}

.admin-nav {
    flex: 1;
    padding: var(--space-lg) var(--space-sm);
}

.admin-nav-section {
    margin-bottom: var(--space-lg);
}

.admin-nav-section-title {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-subtle);
    padding: 0 12px;
    margin-bottom: var(--space-xs);
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 10px 12px;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-base);
    text-decoration: none;
    position: relative;
    margin-bottom: 2px;
}

.admin-nav-item:hover {
    background: var(--bg-tertiary);
    color: var(--text-main);
}

.admin-nav-item.active {
    background: rgba(255,107,0,0.12);
    color: var(--accent-primary);
}

.admin-nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--accent-primary);
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 8px var(--accent-glow);
}

.admin-nav-item .nav-icon { width: 20px; font-size: 1rem; text-align: center; flex-shrink: 0; }

.admin-nav-badge {
    margin-left: auto;
    background: var(--accent-primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}

/* Admin topbar */
.admin-topbar {
    position: fixed;
    top: 0;
    left: 260px;
    right: 0;
    height: 64px;
    background: var(--glass-bg-heavy);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-xl);
    z-index: calc(var(--z-nav) - 1);
}

.admin-topbar-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
}

.admin-topbar-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* Admin main content */
.admin-main {
    margin-left: 260px;
    margin-top: 64px;
    padding: var(--space-2xl);
    min-height: calc(100vh - 64px);
    background: var(--bg-main);
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   14. DATA TABLES
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.data-table-wrap {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.data-table-toolbar {
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.data-table-toolbar h3 { font-size: 1rem; font-weight: 700; }

.search-input-wrap {
    position: relative;
    flex: 1;
    max-width: 300px;
}

.search-input-wrap .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.search-input-wrap input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-size: 0.88rem;
    padding: 9px 16px 9px 36px;
    outline: none;
    transition: var(--transition-base);
}

.search-input-wrap input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow-sm);
}

.table-scroll {
    overflow-x: auto;
}

table.data-table {
    width: 100%;
    border-collapse: collapse;
}

table.data-table thead {
    background: var(--bg-secondary);
    position: sticky;
    top: 0;
    z-index: 1;
}

table.data-table th {
    padding: 14px var(--space-lg);
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid var(--glass-border);
    white-space: nowrap;
}

table.data-table td {
    padding: 14px var(--space-lg);
    font-size: 0.88rem;
    color: var(--text-main);
    border-bottom: 1px solid var(--glass-border-sm);
    white-space: nowrap;
    vertical-align: middle;
}

table.data-table tbody tr {
    transition: var(--transition-fast);
}

table.data-table tbody tr:hover {
    background: rgba(255,107,0,0.04);
}

table.data-table tbody tr:last-child td {
    border-bottom: none;
}

.table-pagination {
    padding: var(--space-md) var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--glass-border);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.pagination-btns {
    display: flex;
    gap: var(--space-xs);
}

.pagination-btn {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.pagination-btn:hover,
.pagination-btn.active {
    background: var(--accent-primary);
    color: #fff;
    border-color: var(--accent-primary);
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   15. ADMIN STATS / CSS BAR CHARTS
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.admin-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    position: relative;
    overflow: hidden;
    transition: var(--transition-base);
}

.admin-stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--grad-accent);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.admin-stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }

.admin-stat-card .icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(255,107,0,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: var(--space-md);
}

.admin-stat-card .stat-value {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
}

.admin-stat-card .stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 6px; }

.admin-stat-card .stat-change {
    font-size: 0.78rem;
    font-weight: 600;
    margin-top: 8px;
}

.stat-change.up   { color: var(--color-success); }
.stat-change.down { color: var(--color-error); }

/* CSS Bar Chart */
.bar-chart {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
}

.bar-chart h3 {
    font-size: 1rem;
    margin-bottom: var(--space-xl);
}

.bar-chart-bars {
    display: flex;
    align-items: flex-end;
    gap: var(--space-sm);
    height: 160px;
}

.bar-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    height: 100%;
    justify-content: flex-end;
}

.bar {
    width: 100%;
    background: linear-gradient(180deg, var(--accent-primary), rgba(255,107,0,0.3));
    border-radius: 4px 4px 0 0;
    min-height: 4px;
    transition: height 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    cursor: pointer;
}

.bar::before {
    content: attr(data-value);
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.bar:hover::before { opacity: 1; }

.bar:hover {
    background: linear-gradient(180deg, var(--accent-hover), var(--accent-primary));
    box-shadow: 0 0 20px var(--accent-glow);
}

.bar-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   16. MODALS & OVERLAYS
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(8px);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.modal-backdrop.open {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-modal);
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.modal-backdrop.open .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: var(--space-xl) var(--space-xl) var(--space-lg);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 { font-size: 1.15rem; }

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: var(--color-error);
    color: #fff;
    border-color: var(--color-error);
    transform: rotate(90deg);
}

.modal-body {
    padding: var(--space-xl);
}

.modal-footer {
    padding: var(--space-lg) var(--space-xl);
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: flex-end;
    gap: var(--space-md);
}

/* Cart sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 380px;
    background: var(--bg-secondary);
    border-left: 1px solid var(--glass-border);
    z-index: var(--z-modal);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 60px rgba(0,0,0,0.5);
}

.cart-sidebar.open {
    transform: translateX(0);
}

.cart-sidebar-header {
    padding: var(--space-xl);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.cart-sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.cart-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: var(--transition-fast);
}

.cart-item:hover { border-color: rgba(255,107,0,0.2); }

.cart-item-img {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.cart-item-name  { font-weight: 600; font-size: 0.9rem; }
.cart-item-price { font-size: 0.9rem; color: var(--accent-primary); font-weight: 700; }

.cart-item-remove {
    margin-left: auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.2);
    color: var(--color-error);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.cart-item-remove:hover {
    background: var(--color-error);
    color: #fff;
}

.cart-sidebar-footer {
    padding: var(--space-lg) var(--space-xl);
    border-top: 1px solid var(--glass-border);
    flex-shrink: 0;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.cart-total .label { color: var(--text-muted); font-size: 0.9rem; }
.cart-total .amount {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent-primary);
}

/* ─────────────────────────────────────────────────────────────────────────────
   23. RESPONSIVE BREAKPOINTS  (phones & PCs — single authoritative block)
   ───────────────────────────────────────────────────────────────────────────── */

/* ── Large Desktop helper (>1280px) ── */
@media (min-width: 1280px) {
    .hero-content { max-width: 720px; }
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .stat-cards-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ═══════════════════════════════════════════════════════
   TABLET — ≤1024px
   ═══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    /* Containers */
    .container, .container-sm, .container-lg { padding: 0 var(--space-lg); }

    /* Hero */
    .hero-visual { display: none; }
    .hero-content { max-width: 100%; }
    .hero-stats { gap: var(--space-lg); }

    /* Products grid — 2 columns */
    .products-grid { grid-template-columns: repeat(2, 1fr); }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-2xl); }

    /* Stat cards — 2 columns */
    .stat-cards-grid  { grid-template-columns: repeat(2, 1fr); }
    .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }

    /* Admin sidebar — becomes a slide-in drawer */
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar {
        position: fixed;
        top: 0; left: 0;
        height: 100vh;
        z-index: var(--z-nav);
        transform: translateX(-100%);
        box-shadow: none;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .admin-sidebar.open {
        transform: translateX(0);
        box-shadow: 10px 0 60px rgba(0,0,0,0.7);
    }
    .admin-topbar { left: 0; }
    .admin-main   { margin-left: 0; margin-top: 64px; }

    /* User dashboard sidebar — becomes a slide-in drawer */
    .dashboard-layout  { grid-template-columns: 1fr; margin-top: 64px; }
    .dashboard-sidebar {
        position: fixed;
        top: 0; left: 0;
        height: 100vh;
        width: 280px;
        z-index: var(--z-nav);
        padding-top: var(--space-3xl);
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    .dashboard-sidebar.open { transform: translateX(0); }
    .dash-mobile-toggle { display: inline-flex; }

    /* Admin product form grids */
    .admin-product-form-grid  { grid-template-columns: 1fr; }
    .admin-product-image-grid { grid-template-columns: 120px 1fr; }

    /* Data table toolbar */
    .data-table-toolbar { flex-wrap: wrap; }
}

/* ═══════════════════════════════════════════════════════
   MOBILE — ≤768px
   ═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    /* ── Navigation ── */
    .nav-links  { display: none; }
    .hamburger  { display: flex; }
    .navbar     { padding: 14px 0; }
    .nav-right  { gap: 6px; }
    .nav-logo   { font-size: 1.1rem; }
    .nav-logo .logo-icon { width: 30px; height: 30px; font-size: 0.85rem; }
    .cart-btn   { width: 38px; height: 38px; font-size: 1rem; }
    .user-avatar { width: 36px; height: 36px; }

    /* Mobile nav drawer */
    .nav-links.mobile-open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 58px; left: 0; right: 0;
        background: var(--glass-bg-heavy);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border-bottom: 1px solid var(--glass-border);
        padding: var(--space-md);
        gap: 4px;
        z-index: calc(var(--z-nav) - 1);
        animation: fade-slide-down 0.25s ease both;
        max-height: calc(100svh - 58px);
        overflow-y: auto;
    }
    .nav-links.mobile-open a {
        padding: 12px 16px;
        font-size: 1rem;
        border-radius: var(--radius-md);
        display: block;
        width: 100%;
    }

    /* Hamburger animation when open */
    .hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
    .hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* ── Hero ── */
    .hero {
        padding-top: 80px;
        padding-bottom: var(--space-2xl);
        min-height: 100svh;
        text-align: center;
    }
    .hero-title    { font-size: clamp(1.9rem, 8vw, 2.8rem); }
    .hero-subtitle { font-size: 1rem; margin-bottom: var(--space-lg); }
    .hero-label    { margin: 0 auto var(--space-lg); }
    .hero-actions  {
        flex-direction: column;
        width: 100%;
        align-items: stretch;
    }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .hero-stats {
        flex-wrap: wrap;
        gap: var(--space-md);
        padding-top: var(--space-lg);
        margin-top: var(--space-lg);
        justify-content: center;
    }
    .hero-stat .number { font-size: 1.5rem; }
    .hero-stat { text-align: center; }

    /* ── Sections ── */
    .section { padding: var(--space-2xl) 0; }
    .section-header { margin-bottom: var(--space-xl); }
    .section-header p { max-width: 100%; }

    /* ── Products ── */
    .products-grid { grid-template-columns: 1fr; }
    .product-card-footer { flex-wrap: wrap; gap: var(--space-sm); }
    .product-price { font-size: 1.2rem; }
    .product-card-image-wrap { height: 160px; }

    /* ── Category filter — horizontal scroll ── */
    .categories-bar {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
        scrollbar-width: none;
    }
    .categories-bar::-webkit-scrollbar { display: none; }
    .category-filter-btn { white-space: nowrap; flex-shrink: 0; }

    /* ── Footer ── */
    .footer { padding: var(--space-2xl) 0 var(--space-xl); }
    .footer-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    /* ── Auth ── */
    .auth-page {
        padding: 80px var(--space-md) var(--space-xl);
        align-items: flex-start;
        min-height: 100svh;
    }
    .auth-card {
        padding: var(--space-xl) var(--space-lg);
        border-radius: var(--radius-lg);
    }
    .auth-card h2 { font-size: 1.5rem; }

    /* ── User Dashboard ── */
    .dashboard-layout  { grid-template-columns: 1fr; margin-top: 64px; }
    .dashboard-sidebar {
        position: fixed;
        top: 0; left: 0;
        height: 100vh;
        width: min(80vw, 300px);
        z-index: var(--z-nav);
        padding-top: 72px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    .dashboard-sidebar.open { transform: translateX(0); }
    .dash-mobile-toggle { display: inline-flex; }
    .dashboard-main { padding: var(--space-lg); }
    .stat-cards-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }

    /* Sidebar user info compact */
    .sidebar-user-info {
        padding: var(--space-sm) var(--space-md);
        gap: var(--space-sm);
    }
    .sidebar-user-avatar { width: 36px; height: 36px; }

    /* Orders table header */
    .table-header { flex-direction: column; align-items: flex-start; gap: var(--space-sm); }

    /* ── Admin ── */
    .admin-main   { padding: var(--space-lg); margin-top: 64px; }
    .admin-topbar {
        left: 0;
        height: 60px;
        padding: 0 var(--space-md);
    }
    .admin-topbar-title { font-size: 0.95rem; }
    .admin-topbar-actions { gap: var(--space-sm); }
    .admin-stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
    .admin-stat-card .stat-value { font-size: 1.6rem; }

    /* Admin product form — stack */
    .admin-product-form-grid  { grid-template-columns: 1fr !important; }
    .admin-product-image-grid { grid-template-columns: 1fr !important; }
    .admin-form-actions {
        flex-direction: column;
        gap: var(--space-sm);
    }
    .admin-form-actions .btn { width: 100%; justify-content: center; }

    /* ── Data tables ── */
    .data-table-toolbar  { flex-direction: column; align-items: stretch; gap: var(--space-sm); }
    .search-input-wrap   { max-width: 100%; }
    .search-input-wrap input { min-width: unset; width: 100%; }
    .table-pagination    { flex-direction: column; gap: var(--space-sm); align-items: flex-start; }
    .table-actions       { flex-wrap: wrap; }
    .data-table th, .data-table td { padding: 10px var(--space-md); }

    /* ── Cart ── */
    .cart-sidebar { width: 100%; max-width: 100%; }
    .cart-sidebar-header { padding: var(--space-md) var(--space-lg); }

    /* ── Modals ── */
    .modal-backdrop { padding: var(--space-md); align-items: flex-end; }
    .modal {
        max-width: 100%;
        max-height: 95svh;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    }
    .modal-footer { flex-direction: column; gap: var(--space-sm); }
    .modal-footer .btn { width: 100%; justify-content: center; }

    /* ── Promo banner ── */
    .promo-banner {
        flex-direction: column;
        text-align: center;
        padding: var(--space-xl);
    }
    .promo-banner h2 { font-size: 1.4rem; }
    .promo-banner .btn { width: 100%; }
}

/* ═══════════════════════════════════════════════════════
   SMALL MOBILE — ≤480px
   ═══════════════════════════════════════════════════════ */
@media (max-width: 480px) {
    :root {
        --space-xl:  20px;
        --space-2xl: 28px;
        --space-3xl: 40px;
        --space-4xl: 56px;
    }

    /* Typography */
    h1 { font-size: clamp(1.6rem, 7.5vw, 2rem); }
    h2 { font-size: clamp(1.3rem,   6vw, 1.7rem); }
    h3 { font-size: clamp(1.1rem,   5vw, 1.4rem); }

    /* Containers */
    .container, .container-sm, .container-lg { padding: 0 var(--space-md); }

    /* Buttons */
    .btn-xl { padding: 14px 28px; font-size: 0.95rem; }
    .btn-lg { padding: 12px 20px; font-size: 0.9rem; }
    .btn-sm { padding:  7px 14px; font-size: 0.78rem; }

    /* Hero stats — 2-col grid */
    .hero-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-md);
        justify-items: center;
    }

    /* Stat cards */
    .stat-cards-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-sm); }
    .stat-card .stat-value, .stat-value { font-size: 1.4rem; }
    .admin-stats-grid { grid-template-columns: 1fr; }
    .admin-stat-card .stat-value { font-size: 1.5rem; }

    /* Product card footer — stack */
    .product-card-footer { flex-direction: column; align-items: stretch; gap: var(--space-sm); }
    .product-buy-btn { width: 100%; }
    .product-buy-btn .btn { width: 100%; justify-content: center; }

    /* Admin topbar */
    .admin-topbar { height: 56px; }
    .admin-main   { margin-top: 56px; }

    /* OTP digits */
    .otp-digit { width: 44px; height: 52px; font-size: 1.4rem; }
    .otp-input-group { gap: 6px; }

    /* Toast — full width at bottom */
    .toast-container {
        left: var(--space-md);
        right: var(--space-md);
        bottom: var(--space-lg);
        max-width: none;
    }

    /* Wallet balance chip */
    .wallet-balance-chip { font-size: 0.78rem; padding: 3px 10px; }

    /* Auth card */
    .auth-card { padding: var(--space-lg) var(--space-md); }

    /* Bar chart labels */
    .bar-label { font-size: 0.6rem; }
}

/* ═══════════════════════════════════════════════════════
   VERY SMALL — ≤360px
   ═══════════════════════════════════════════════════════ */
@media (max-width: 360px) {
    :root { --space-md: 12px; }

    .stat-cards-grid { grid-template-columns: 1fr; }
    .hero-stats { grid-template-columns: 1fr; }

    .otp-digit { width: 38px; height: 46px; font-size: 1.2rem; }
    .otp-input-group { gap: 4px; }

    .btn { padding: 10px 16px; font-size: 0.88rem; }
    .btn-sm { padding: 7px 12px; font-size: 0.78rem; }

    .admin-topbar-title { display: none; }

    .nav-logo .logo-icon { width: 26px; height: 26px; }
    .nav-logo { font-size: 1rem; }

    .product-price { font-size: 1.1rem; }
}

/* ── Touch device improvements ── */
@media (hover: none) and (pointer: coarse) {
    /* Larger tap targets */
    .dropdown-item   { padding: 14px var(--space-md); }
    .sidebar-nav-item { padding: 14px var(--space-md); }
    .admin-nav-item  { padding: 13px 12px; }
    .pagination-btn  { width: 40px; height: 40px; }

    /* Disable hover transforms on touch (avoids sticky hover states) */
    .product-card:hover { transform: none; }
    .stat-card:hover    { transform: none; }
    .admin-stat-card:hover { transform: none; }
    .footer-col a:hover { transform: none; }
}

/* ── Print styles ── */
@media print {
    .navbar, .footer, .cart-sidebar, .cart-overlay,
    .modal-backdrop, .toast-container, .hamburger,
    .dash-mobile-toggle, .admin-sidebar {
        display: none !important;
    }
    body { background: #fff; color: #000; }
    .admin-main, .dashboard-main { margin: 0 !important; padding: 1rem !important; }
}

/* ─────────────────────────────────────────────────────────────────────────────
   17. LOADING STATES
   ───────────────────────────────────────────────────────────────────────────── */
/* Dual-ring spinner */
.spinner {
    width: 40px;
    height: 40px;
    position: relative;
    display: inline-block;
}

.spinner::before,
.spinner::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
}

.spinner::before {
    border-top-color: var(--accent-primary);
    animation: spin 0.8s linear infinite;
    box-shadow: 0 0 12px var(--accent-glow);
}

.spinner::after {
    border-bottom-color: rgba(255,107,0,0.3);
    animation: spin 0.8s linear infinite reverse;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Full-page loading overlay */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11,14,20,0.8);
    backdrop-filter: blur(12px);
    z-index: var(--z-toast);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: var(--space-lg);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.loading-overlay p {
    font-size: 0.95rem;
    color: var(--text-muted);
    animation: fade-pulse 1.5s ease-in-out infinite;
}

@keyframes fade-pulse {
    0%, 100% { opacity: 0.6; }
    50%       { opacity: 1; }
}

/* Skeleton loader */
.skeleton {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-card) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   18. FLASH MESSAGES / ALERTS
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.alert {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    border: 1px solid;
    animation: fade-slide-down 0.35s ease both;
}

.alert-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }

.alert-success {
    background: rgba(34,197,94,0.08);
    color: #22C55E;
    border-color: rgba(34,197,94,0.2);
}

.alert-error {
    background: rgba(239,68,68,0.08);
    color: #F87171;
    border-color: rgba(239,68,68,0.2);
}

.alert-warning {
    background: rgba(245,158,11,0.08);
    color: #FBBF24;
    border-color: rgba(245,158,11,0.2);
}

.alert-info {
    background: rgba(59,130,246,0.08);
    color: #60A5FA;
    border-color: rgba(59,130,246,0.2);
}

/* Toast notification */
.toast-container {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    max-width: 360px;
}

.toast {
    background: var(--glass-bg-heavy);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-md) var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    box-shadow: var(--shadow-modal);
    animation: toast-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    cursor: pointer;
    transition: var(--transition-base);
}

.toast.removing { animation: toast-out 0.3s ease both; }
.toast:hover { transform: translateX(-4px); }

.toast-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.toast.success .toast-bar { background: var(--color-success); }
.toast.error   .toast-bar { background: var(--color-error); }
.toast.warning .toast-bar { background: var(--color-warning); }
.toast.info    .toast-bar { background: var(--color-info); }

@keyframes toast-in {
    from { opacity: 0; transform: translateX(100%) scale(0.9); }
    to   { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes toast-out {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(120%); }
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   19. FOOTER
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    padding: var(--space-4xl) 0 var(--space-2xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.footer-brand .logo { margin-bottom: var(--space-md); }
.footer-brand p { font-size: 0.9rem; color: var(--text-muted); max-width: 280px; line-height: 1.7; }

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}

.footer-col a {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
    transition: var(--transition-fast);
}

.footer-col a:hover {
    color: var(--accent-primary);
    transform: translateX(4px);
}

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--text-subtle);
}

.social-links {
    display: flex;
    gap: var(--space-sm);
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition-base);
}

.social-link:hover {
    background: var(--accent-primary);
    color: #fff;
    border-color: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--accent-glow);
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   20. KEYFRAME ANIMATIONS
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@keyframes fade-slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-slide-down {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes scale-in {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes glow-border-pulse {
    0%, 100% { box-shadow: 0 0 8px var(--accent-glow-sm); }
    50%       { box-shadow: 0 0 24px var(--accent-glow); }
}

/* Stagger animation classes (JS applies nth-child-based delays) */
.stagger-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.stagger-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   21. SCROLL REVEAL
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-on-scroll.reveal-left {
    transform: translateX(-40px);
}

.reveal-on-scroll.reveal-right {
    transform: translateX(40px);
}

.reveal-on-scroll.revealed {
    transform: translate(0, 0);
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   22. CUSTOM SCROLLBARS
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--bg-tertiary) var(--bg-secondary);
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   23. RESPONSIVE BREAKPOINTS
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
/* Tablet â€” 1024px */
@media (max-width: 1024px) {
    .container { padding: 0 var(--space-lg); }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2xl);
    }

    .hero-visual { display: none; }

    .admin-sidebar {
        transform: translateX(-100%);
        box-shadow: none;
    }

    .admin-sidebar.open {
        transform: translateX(0);
        box-shadow: 10px 0 40px rgba(0,0,0,0.6);
    }

    .admin-topbar  { left: 0; }
    .admin-main    { margin-left: 0; }
}

/* Mobile â€” 768px */
@media (max-width: 768px) {
    .nav-links { display: none; }

    .hamburger { display: flex; }

    .nav-links.mobile-open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--glass-bg-heavy);
        backdrop-filter: blur(24px);
        border-bottom: 1px solid var(--glass-border);
        padding: var(--space-lg);
        gap: var(--space-xs);
        z-index: calc(var(--z-nav) - 1);
        animation: fade-slide-down 0.25s ease both;
    }

    .nav-links.mobile-open a {
        padding: 12px 16px;
        border-radius: var(--radius-md);
        font-size: 1rem;
        width: 100%;
    }

    .hero { padding-top: 80px; }
    .hero-title { font-size: clamp(2rem, 8vw, 2.8rem); }
    .hero-stats { gap: var(--space-lg); }

    .products-grid { grid-template-columns: 1fr; }

    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        position: static;
        height: auto;
    }

    .cart-sidebar { width: 100%; }

    .auth-card { padding: var(--space-xl); }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    .admin-main { padding: var(--space-lg); }

    .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }

    .data-table-toolbar { flex-direction: column; align-items: flex-start; }
    .search-input-wrap { max-width: 100%; }
}

/* Small Mobile â€” 480px */
@media (max-width: 480px) {
    :root { --space-xl: 20px; --space-2xl: 32px; --space-3xl: 48px; --space-4xl: 64px; }

    h1 { font-size: 1.9rem; }
    h2 { font-size: 1.5rem; }

    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }

    .hero-stats { flex-wrap: wrap; gap: var(--space-lg); }

    .admin-stats-grid { grid-template-columns: 1fr; }

    .stat-cards-grid { grid-template-columns: repeat(2, 1fr); }
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   MISC UTILITY CLASSES
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.hidden { display: none !important; }
.visible { display: block !important; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.divider {
    height: 1px;
    background: var(--glass-border);
    margin: var(--space-xl) 0;
}

.accent-line {
    height: 3px;
    width: 48px;
    background: var(--grad-accent);
    border-radius: var(--radius-pill);
    margin: var(--space-md) 0;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.no-select {
    -webkit-user-select: none;
    user-select: none;
}

.pointer { cursor: pointer; }

/* =============================================================================
   EXTENDED COMPONENTS â€” Auth, Dashboard, Admin, Products, Badges, Forms
   ============================================================================= */

/* â”€â”€â”€ AUTH PAGE â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.auth-page {
    min-height: 100vh;
    padding-top: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at 30% 60%, rgba(255,107,0,0.07) 0%, transparent 60%), var(--bg-main);
}

.auth-card {
    width: 100%;
    max-width: 460px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-3xl) var(--space-2xl);
    box-shadow: var(--shadow-modal);
    margin: var(--space-xl) auto;
}

/* â”€â”€â”€ STATUS BADGES â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.badge-pending      { background: rgba(148,163,184,.12); color: #94A3B8; border: 1px solid rgba(148,163,184,.2); }
.badge-verifying    { background: rgba(245,158,11,.1);   color: #F59E0B; border: 1px solid rgba(245,158,11,.25); }
.badge-paid         { background: rgba(59,130,246,.1);   color: #3B82F6; border: 1px solid rgba(59,130,246,.25); }
.badge-preparing    { background: rgba(139,92,246,.1);   color: #8B5CF6; border: 1px solid rgba(139,92,246,.25); }
.badge-delivered    { background: rgba(34,197,94,.1);    color: #22C55E; border: 1px solid rgba(34,197,94,.25); }
.badge-cancelled    { background: rgba(239,68,68,.1);    color: #EF4444; border: 1px solid rgba(239,68,68,.25); }
.badge-refunded     { background: rgba(251,191,36,.1);   color: #FBBf24; border: 1px solid rgba(251,191,36,.25); }
.badge-failed       { background: rgba(239,68,68,.08);   color: #F87171; border: 1px solid rgba(239,68,68,.15); }

/* â”€â”€â”€ TAG â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(255,107,0,.1);
    color: var(--accent-primary);
    border: 1px solid rgba(255,107,0,.2);
}

/* â”€â”€â”€ ALERTS â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.alert {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    line-height: 1.6;
    border: 1px solid;
}
.alert-error   { background: rgba(239,68,68,.08); color: #FCA5A5; border-color: rgba(239,68,68,.2); }
.alert-success { background: rgba(34,197,94,.08); color: #86EFAC; border-color: rgba(34,197,94,.2); }
.alert-warning { background: rgba(245,158,11,.08);color: #FCD34D; border-color: rgba(245,158,11,.2); }
.alert-info    { background: rgba(59,130,246,.08); color: #93C5FD; border-color: rgba(59,130,246,.2); }
.alert-icon    { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }

/* â”€â”€â”€ FORMS â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.form-group { display: flex; flex-direction: column; }
.form-label { font-size: 0.82rem; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; letter-spacing: 0.02em; }
.form-label .req { color: var(--accent-primary); }
.form-error  { font-size: 0.78rem; color: var(--color-error); margin-top: 4px; display: none; }
.form-error.visible { display: block; }

.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-size: 0.92rem;
    transition: var(--transition-base);
    outline: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow-sm);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-subtle); }
.form-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}
.form-input.error, .form-textarea.error { border-color: var(--color-error); }
.form-select {
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238A92A6' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}
.form-select option { background: var(--bg-secondary); }

.input-icon-wrap { position: relative; }
.input-icon-wrap .form-input { padding-left: 40px; }
.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.95rem;
    pointer-events: none;
    opacity: 0.6;
}
.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    opacity: 0.5;
    transition: opacity .2s;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}
.toggle-password:hover { opacity: 1; }

/* â”€â”€â”€ DASHBOARD LAYOUT (USER) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.dashboard-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: calc(100vh - 64px);
    margin-top: 64px;
}

.dashboard-sidebar {
    background: var(--bg-secondary);
    border-right: 1px solid var(--glass-border);
    padding: var(--space-xl) var(--space-md);
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: sticky;
    top: 64px;
    height: calc(100vh - 64px);
    overflow-y: auto;
}

.sidebar-user-info {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
}
.sidebar-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--accent-primary);
    object-fit: cover;
    flex-shrink: 0;
}
.sidebar-user-name  { font-size: 0.9rem; font-weight: 700; }
.sidebar-user-email { font-size: 0.75rem; color: var(--text-muted); }

.sidebar-section-title {
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-subtle);
    padding: var(--space-md) var(--space-md) 4px;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 11px var(--space-md);
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-base);
    text-decoration: none;
}
.sidebar-nav-item .icon { font-size: 1rem; width: 20px; text-align: center; }
.sidebar-nav-item:hover { background: var(--bg-card); color: var(--text-main); }
.sidebar-nav-item.active {
    background: rgba(255,107,0,.12);
    color: var(--accent-primary);
    border: 1px solid rgba(255,107,0,.2);
}

.dashboard-main {
    padding: var(--space-2xl);
    overflow-y: auto;
}

/* â”€â”€â”€ STAT CARDS â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.stat-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: var(--transition-slow);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); border-color: rgba(255,107,0,.3); }
.stat-icon  { font-size: 1.8rem; }
.stat-value { font-family: 'Poppins', sans-serif; font-size: 1.8rem; font-weight: 800; color: var(--text-main); }
.stat-label { font-size: 0.82rem; color: var(--text-muted); }

/* â”€â”€â”€ ORDERS TABLE (USER) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.orders-table-wrap {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
}
.table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid var(--glass-border);
}
.table-scroll { overflow-x: auto; }

/* â”€â”€â”€ PRODUCTS GRID â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-slow);
    position: relative;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); border-color: rgba(255,107,0,.35); }
.product-card.featured-highlight { border-color: rgba(255,107,0,.35); box-shadow: 0 0 30px rgba(255,107,0,.08); }

.product-card-image-wrap {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: var(--bg-tertiary);
}
.product-card-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-card-image-wrap img { transform: scale(1.05); }
.product-card-icon {
    position: absolute;
    bottom: var(--space-sm);
    left: var(--space-sm);
    width: 44px; height: 44px;
    border-radius: var(--radius-md);
    background: var(--glass-bg-heavy);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}
.product-badge {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 700;
    background: var(--grad-accent);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255,107,0,.4);
}

.product-card-body { padding: var(--space-lg); flex: 1; }
.product-category { font-size: 0.72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-primary); margin-bottom: 6px; }
.product-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; color: var(--text-main); line-height: 1.3; }
.product-short-desc { font-size: 0.83rem; color: var(--text-muted); line-height: 1.5; }

.product-card-footer {
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--glass-border-sm);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-md);
}
.product-price-wrap { display: flex; flex-direction: column; }
.product-original-price { font-size: 0.78rem; color: var(--text-subtle); text-decoration: line-through; }
.product-price { font-family: 'Poppins', sans-serif; font-size: 1.3rem; font-weight: 800; color: var(--accent-primary); }
.product-duration { font-size: 0.72rem; color: var(--text-muted); }

.product-card-buy-full {
    display: block;
    padding: 12px;
    text-align: center;
    border-top: 1px solid var(--glass-border-sm);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition-base);
}
.product-card-buy-full:hover { background: rgba(255,107,0,.07); color: var(--accent-primary); }

/* â”€â”€â”€ CATEGORY FILTER BAR â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.categories-bar {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}
.category-filter-btn {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--glass-border);
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 0.83rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
}
.category-filter-btn:hover { border-color: rgba(255,107,0,.4); color: var(--accent-primary); background: rgba(255,107,0,.06); }
.category-filter-btn.active { border-color: var(--accent-primary); background: rgba(255,107,0,.12); color: var(--accent-primary); box-shadow: 0 4px 16px rgba(255,107,0,.12); }

/* â”€â”€â”€ CART SIDEBAR â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(4px);
    z-index: var(--z-overlay);
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 380px;
    max-width: 95vw;
    background: var(--bg-secondary);
    border-left: 1px solid var(--glass-border);
    z-index: calc(var(--z-overlay) + 1);
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 40px rgba(0,0,0,.5);
}
.cart-sidebar.open { transform: translateX(0); }

.cart-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid var(--glass-border);
}
.cart-sidebar-header h3 { font-size: 1.1rem; }

.cart-sidebar-body { flex: 1; overflow-y: auto; padding: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-md); }

.cart-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
}
.cart-item:hover { border-color: rgba(255,107,0,.3); }
.cart-item-icon { font-size: 1.8rem; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: var(--bg-tertiary); border-radius: var(--radius-md); flex-shrink: 0; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name  { font-size: 0.88rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-price { font-size: 0.82rem; color: var(--accent-primary); font-weight: 700; }
.cart-item-remove { width: 28px; height: 28px; border-radius: 50%; background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.2); color: #EF4444; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 0.75rem; transition: var(--transition-base); flex-shrink: 0; }
.cart-item-remove:hover { background: rgba(239,68,68,.25); }

.cart-sidebar-footer {
    padding: var(--space-lg) var(--space-xl);
    border-top: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}
.cart-total { display: flex; justify-content: space-between; align-items: center; }
.cart-total .label { font-size: 0.88rem; color: var(--text-muted); font-weight: 600; }
.cart-total .amount { font-family: 'Poppins', sans-serif; font-size: 1.4rem; font-weight: 800; color: var(--accent-primary); }

/* â”€â”€â”€ DATA TABLE (shared) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
    padding: 12px var(--space-lg);
    text-align: left;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-subtle);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--glass-border);
    white-space: nowrap;
}
.data-table td {
    padding: var(--space-md) var(--space-lg);
    font-size: 0.88rem;
    border-bottom: 1px solid var(--glass-border-sm);
    vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: rgba(255,255,255,.02); }

.data-table-wrap {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
}
.data-table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid var(--glass-border);
    flex-wrap: wrap;
    gap: var(--space-md);
}
.table-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-xl);
    border-top: 1px solid var(--glass-border);
    font-size: 0.82rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: var(--space-md);
}
.pagination-btns { display: flex; gap: 4px; }
.pagination-btn {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    background: var(--bg-secondary);
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition-base);
}
.pagination-btn:hover { border-color: var(--accent-primary); color: var(--accent-primary); }
.pagination-btn.active { background: var(--accent-primary); color: #fff; border-color: var(--accent-primary); box-shadow: 0 2px 10px rgba(255,107,0,.3); }

/* â”€â”€â”€ SEARCH INPUT â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.search-input-wrap { position: relative; }
.search-input-wrap .search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 0.85rem; opacity: .5; pointer-events: none; }
.search-input-wrap input {
    padding: 9px 16px 9px 36px;
    background: var(--bg-input);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition-base);
    min-width: 220px;
}
.search-input-wrap input:focus { border-color: var(--accent-primary); box-shadow: 0 0 0 3px var(--accent-glow-sm); }
.search-input-wrap input::placeholder { color: var(--text-subtle); }

/* â”€â”€â”€ ADMIN LAYOUT â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.admin-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    grid-template-rows: 60px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    grid-row: 1 / -1;
    background: var(--bg-secondary);
    border-right: 1px solid var(--glass-border);
    padding: 0 var(--space-sm) var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
    position: sticky;
    top: 0;
    height: 100vh;
    transition: transform .3s ease;
}

.admin-sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: var(--space-lg) var(--space-md);
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: var(--space-md);
    color: var(--text-main);
}
.logo-badge {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--radius-pill);
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   SUPPLEMENT â€” Wallet & missing utilities (non-duplicate only)
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

/* â”€â”€ Wallet admin page â”€â”€ */
.wallet-amount-positive { color: var(--color-success); font-weight: 700; }
.wallet-amount-negative { color: var(--color-error);   font-weight: 700; }
.wallet-balance-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: var(--radius-pill);
    font-family: 'Poppins', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    background: rgba(34,197,94,0.1);
    color: var(--color-success);
    border: 1px solid rgba(34,197,94,0.2);
}
.wallet-balance-chip.zero { background:rgba(107,114,128,0.1); color:var(--text-muted); border-color:rgba(107,114,128,0.2); }
.wallet-balance-chip.negative { background:rgba(239,68,68,0.1); color:var(--color-error); border-color:rgba(239,68,68,0.2); }

/* â”€â”€ Email verify page â”€â”€ */
.otp-input-group { display: flex; gap: 10px; justify-content: center; }
.otp-digit {
    width: 56px; height: 64px;
    background: var(--bg-input);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    outline: none;
    transition: var(--transition-base);
}
.otp-digit:focus { border-color: var(--accent-primary); box-shadow: 0 0 0 3px var(--accent-glow-sm); }
.otp-digit.filled { border-color: rgba(255,107,0,0.4); }

/* â”€â”€ space utilities at end â”€â”€ */
.admin-main > * + * { margin-top: var(--space-xl); }

/* =============================================================================
   COMPREHENSIVE MOBILE / PHONE RESPONSIVENESS
   ============================================================================= */

/* ── Shared Mobile Sidebar Overlay ── */
.mobile-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: calc(var(--z-nav) - 1);
    cursor: pointer;
    animation: fade-in 0.2s ease;
}
.mobile-sidebar-overlay.active { display: block; }

/* ── Dashboard Mobile FAB Toggle ── */
.dash-mobile-toggle {
    display: none;
    position: fixed;
    bottom: 28px;
    left: 24px;
    z-index: var(--z-overlay);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--grad-accent);
    color: #fff;
    font-size: 1.25rem;
    box-shadow: 0 6px 28px var(--accent-glow);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    border: none;
    transition: var(--transition-bounce);
}
.dash-mobile-toggle:hover  { transform: scale(1.1); }
.dash-mobile-toggle:active { transform: scale(0.94); }

/* ── Admin Product Form Helper Classes ── */
.admin-product-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}
.admin-product-image-grid {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: var(--space-lg);
    align-items: start;
}
.admin-form-actions {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-xl);
    flex-wrap: wrap;
}
.table-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

/* ── Delete Confirm Modal ── */
#delete-confirm-modal .modal { max-width: 420px; }
.delete-modal-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: var(--space-md);
}
.delete-modal-name {
    font-weight: 700;
    color: var(--color-error);
    word-break: break-word;
}

/* Responsive styles already declared above — see section 23. */

/* =============================================================================
   ADMIN PRODUCTS — MOBILE CARD TABLE
   On phones the products table converts to stacked cards for readability.
   ============================================================================= */

/* ── Table actions wrap ── */
.table-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

/* ── Mobile: products table → cards ── */
@media (max-width: 768px) {
    /* Hide normal table structure, show card-style rows */
    .data-table.mobile-card-table thead {
        display: none;
    }

    .data-table.mobile-card-table tbody tr {
        display: flex;
        flex-direction: column;
        background: var(--bg-tertiary);
        border: 1px solid var(--glass-border);
        border-radius: var(--radius-lg);
        margin-bottom: var(--space-md);
        padding: var(--space-md);
        gap: var(--space-sm);
    }

    .data-table.mobile-card-table td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 6px 4px;
        border-bottom: 1px solid var(--glass-border-sm);
        font-size: 0.85rem;
    }

    .data-table.mobile-card-table td:last-child {
        border-bottom: none;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 6px;
        padding-top: var(--space-sm);
    }

    .data-table.mobile-card-table td::before {
        content: attr(data-label);
        font-size: 0.7rem;
        font-weight: 700;
        letter-spacing: .08em;
        text-transform: uppercase;
        color: var(--text-subtle);
        flex-shrink: 0;
        margin-right: var(--space-sm);
    }

    /* Hide certain columns on mobile to save space */
    .data-table.mobile-card-table td[data-label="Delivery"],
    .data-table.mobile-card-table td[data-label="Stock"] {
        display: none;
    }

    /* Actions column full-width */
    .data-table.mobile-card-table .table-actions {
        width: 100%;
        justify-content: flex-start;
    }

    /* Delete/deactivate buttons — bigger tap targets */
    .table-actions .btn-sm {
        padding: 9px 14px;
        font-size: 0.82rem;
    }

    /* Admin products page: topbar add button text */
    .admin-topbar .btn-sm {
        padding: 7px 12px;
        font-size: 0.78rem;
    }

    /* Wallet checkout button on cart sidebar */
    #wallet-checkout-btn {
        font-size: 0.85rem !important;
    }
}

@media (max-width: 480px) {
    /* Collapse table-actions to 2 columns on tiny screens */
    .data-table.mobile-card-table .table-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .data-table.mobile-card-table .table-actions .btn-sm,
    .data-table.mobile-card-table .table-actions form {
        width: 100%;
    }

    .data-table.mobile-card-table .table-actions form .btn-sm {
        width: 100%;
    }

    /* Admin product form — tighter padding */
    .data-table-wrap > div[style*="padding"] {
        padding: var(--space-md) !important;
    }

    /* Cart sidebar footer — stack buttons */
    .cart-sidebar-footer .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ── Cart sidebar: wallet balance badge ── */
#cart-wallet-bal {
    background: rgba(34,197,94,0.12);
    border: 1px solid rgba(34,197,94,0.25);
    border-radius: var(--radius-pill);
    padding: 2px 8px;
    font-size: 0.72rem !important;
    font-weight: 700;
    color: #22C55E;
    white-space: nowrap;
}

/* ── Admin products: delete modal mobile ── */
@media (max-width: 768px) {
    #delete-confirm-modal .modal {
        max-width: 100%;
        margin: 0;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    }
}

/* ── Admin sidebar mobile overlay background ── */
@media (max-width: 1024px) {
    .admin-layout::after {
        content: '';
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.6);
        z-index: calc(var(--z-nav) - 2);
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
    }

    .admin-sidebar.open ~ .admin-topbar ~ .admin-main::before {
        content: '';
        position: fixed;
        inset: 0;
        z-index: calc(var(--z-nav) - 2);
        background: rgba(0,0,0,0.5);
        cursor: pointer;
    }
}

/* ── Admin topbar: mobile compact ── */
@media (max-width: 480px) {
    .admin-topbar {
        padding: 0 var(--space-sm) !important;
        gap: var(--space-sm) !important;
    }

    .admin-topbar > div:first-child {
        gap: var(--space-sm) !important;
    }
}

/* =============================================================================
   RESPONSIVE OVERHAUL v2 — Mobile-first improvements for all pages
   Added: sidebar overlay, table scroll, checkout mobile, profile tabs,
          touch-safe areas, referral page, wallet page, notification page
   ============================================================================= */

/* ── Mobile sidebar overlay (user dashboard pages) ── */
.dash-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: calc(var(--z-nav) - 1);
    animation: fade-in 0.2s ease both;
}
.dash-sidebar-overlay.visible { display: block; }

/* ── Mobile sidebar hamburger (user pages) ── */
.dash-mobile-toggle {
    display: none;
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    width: 40px; height: 40px;
    align-items: center; justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--text-main);
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s;
}
.dash-mobile-toggle:hover { background: var(--bg-secondary); border-color: var(--accent-primary); }

/* ── Dashboard sidebar: add padding for top nav on mobile ── */
@media (max-width: 1024px) {
    .dash-mobile-toggle { display: inline-flex; }
    /* Sidebar overlay close on tap */
    .dashboard-sidebar { padding-top: 80px; }
    /* Give dashboard main breathing room from top navbar */
    .dashboard-layout  { margin-top: 72px; }
}

/* ── Data tables: always horizontally scrollable ── */
.table-scroll-x {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-lg);
}
.table-scroll-x::-webkit-scrollbar { height: 4px; }
.table-scroll-x::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 2px; }

/* Ensure tables inside don't shrink below their natural width */
.table-scroll-x .data-table { min-width: 540px; }

/* ── Orders/dashboard table cards on mobile ── */
@media (max-width: 768px) {
    .orders-table-wrap { overflow: visible; }
    .orders-table-wrap .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .orders-table-wrap .data-table   { min-width: 520px; }

    /* Stat cards: 2-col even on dashboard */
    .stat-cards-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-sm); }

    /* Dashboard welcome text */
    .dashboard-main h1 { font-size: clamp(1.3rem, 5vw, 1.7rem); }

    /* Referral stat grid — 1 col */
    .ref-stat-grid { grid-template-columns: 1fr 1fr !important; }
    .ref-hero { padding: 28px 20px !important; }
    .ref-hero h1 { font-size: 1.5rem !important; }

    /* Wallet page — stack sections */
    .wallet-topup-grid { grid-template-columns: 1fr !important; }
    .wallet-history-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .wallet-history-table table { min-width: 420px; }
}

@media (max-width: 480px) {
    /* Stat cards: 1-col on very small */
    .stat-cards-grid { grid-template-columns: 1fr; }
    .ref-stat-grid   { grid-template-columns: 1fr !important; }
    .ref-link-box    { flex-direction: column !important; }
}

/* ── Profile page tab nav — horizontal scroll on mobile ── */
.profile-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--glass-border);
    margin-bottom: var(--space-2xl);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
}
.profile-tabs::-webkit-scrollbar { display: none; }
.profile-tab-btn {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 10px 18px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}
.profile-tab-btn:hover { color: var(--text-main); background: var(--bg-secondary); }
.profile-tab-btn.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
    background: rgba(255,107,0,0.05);
}

/* ── Checkout page mobile: stack summary below items ── */
@media (max-width: 900px) {
    .checkout-grid {
        grid-template-columns: 1fr !important;
        gap: var(--space-lg) !important;
        padding: 0 var(--space-md) !important;
    }
    .summary-card { position: static !important; order: -1; } /* show summary first on mobile */
    .payment-method-grid { grid-template-columns: 1fr 1fr !important; }
    .checkout-page { padding: 72px 0 var(--space-2xl) !important; }
    .checkout-steps { gap: 4px; }
    .step-label { font-size: 0.72rem; }
}
@media (max-width: 540px) {
    .checkout-grid { padding: 0 var(--space-sm) !important; }
    .checkout-card { padding: var(--space-lg) !important; }
    .checkout-card-title { font-size: 0.9rem !important; }
    .payment-method-grid { grid-template-columns: 1fr !important; }
    .payment-method-card { padding: var(--space-md) !important; }
    .pay-btn { padding: 14px 12px !important; font-size: 0.95rem !important; }
    .order-line-img { width: 44px !important; height: 44px !important; font-size: 1.2rem !important; }
    .order-line-name { font-size: 0.85rem !important; }
    .summary-card { padding: var(--space-lg) !important; }
}

/* ── Cart sidebar: iOS safe area ── */
.cart-sidebar {
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
.cart-sidebar-footer {
    padding-bottom: calc(var(--space-lg) + env(safe-area-inset-bottom, 0px));
}

/* ── Notification bell: pulse animation ── */
@keyframes notif-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(255,107,0,0.6); }
    70%  { box-shadow: 0 0 0 8px rgba(255,107,0,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,107,0,0); }
}
.notif-badge-pulse { animation: notif-pulse 1.5s ease-out infinite; }

/* ── Payment fee row in checkout summary ── */
#fee-row { transition: color 0.3s; }
#fee-amount-display {
    font-variant-numeric: tabular-nums;
    min-width: 80px;
    text-align: right;
    transition: color 0.4s;
}
#total-charged-display { transition: color 0.3s; }

/* ── Sidebar "Referrals" badge ── */
.sidebar-nav-item .ref-earned-badge {
    margin-left: auto;
    font-size: 0.68rem;
    background: rgba(34,197,94,0.12);
    color: #22c55e;
    border-radius: 20px;
    padding: 2px 7px;
    font-weight: 700;
}

/* ── Product page mobile fixes ── */
@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr !important;
    }
    .product-detail-media { border-radius: var(--radius-lg) !important; }
    .product-features-grid { grid-template-columns: 1fr !important; }
}

/* ── Index / home page — hero mobile refinements ── */
@media (max-width: 768px) {
    .hero { padding-top: 72px !important; }
    .hero-label { font-size: 0.75rem !important; }
    .hero-title { line-height: 1.15 !important; }
    /* How-it-works: single column */
    .how-grid { grid-template-columns: 1fr !important; }
    /* Testimonial cards: scroll */
    .testimonials-grid {
        display: flex !important;
        gap: var(--space-lg) !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        padding-bottom: var(--space-sm) !important;
    }
    .testimonials-grid::-webkit-scrollbar { display: none; }
    .testimonial-card { min-width: 280px !important; flex-shrink: 0 !important; }
    /* Trust badges: wrap */
    .trust-badges { flex-wrap: wrap; gap: var(--space-sm); }
}

/* ── FAQ page: mobile accordion ── */
@media (max-width: 768px) {
    .faq-grid { grid-template-columns: 1fr !important; }
}

/* ── Auth pages: better keyboard experience on mobile ── */
@media (max-width: 480px) {
    .auth-page { padding-top: 60px !important; }
    .auth-card { border-radius: var(--radius-xl) !important; }
    /* Move auth card higher on short screens */
    @media (max-height: 700px) {
        .auth-page { align-items: flex-start; padding-top: 40px !important; }
    }
}

/* ── Admin: mobile table card view for orders/users ── */
@media (max-width: 768px) {
    /* Make all data-tables horizontally scrollable in admin */
    .admin-main .data-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .admin-main .data-table { min-width: 580px; }

    /* Admin stats: 2 col */
    .admin-stats-grid { grid-template-columns: repeat(2, 1fr) !important; }

    /* Admin form: full width fields */
    .admin-form-group-row { flex-direction: column !important; }
}
@media (max-width: 480px) {
    .admin-stats-grid { grid-template-columns: 1fr !important; }
    .admin-stat-card .stat-value { font-size: 1.4rem !important; }
}

/* ── Navbar: right side actions don't overflow ── */
@media (max-width: 380px) {
    .nav-right { gap: 4px !important; }
    .nav-right .btn { padding: 6px 10px !important; font-size: 0.75rem !important; }
    .cart-btn { width: 34px !important; height: 34px !important; }
}

/* ── Footer: very small screen ── */
@media (max-width: 360px) {
    .footer-links { flex-direction: column; align-items: center; gap: var(--space-sm) !important; }
}

/* ── Smooth scrolling for anchor links ── */
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

/* ── Prevent layout shifts from scrollbar ── */
html { scrollbar-gutter: stable; }

/* ── Focus ring: accessible keyboard nav ── */
:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ── Mobile: better button spacing in dashboard main ── */
@media (max-width: 768px) {
    .dashboard-main .table-header {
        flex-direction: row !important;
        align-items: center;
        gap: var(--space-sm);
        flex-wrap: wrap;
    }
    .dashboard-main h1 { margin-bottom: var(--space-xs, 4px) !important; }
}

/* ── Referrals page: compact on mobile ── */
@media (max-width: 768px) {
    .ref-table-card { border-radius: var(--radius-lg) !important; }
    .ref-table-card .data-table { min-width: 400px; }
    .ref-table-card { overflow-x: auto; }
}

/* ── Wallet page mobile ── */
@media (max-width: 768px) {
    /* Top-up amount grid */
    .topup-amount-grid { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 480px) {
    .topup-amount-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ── Dashboard "mobile bar" — persistent bottom nav for phones ── */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        background: var(--glass-bg-heavy);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid var(--glass-border);
        padding: 8px 4px;
        padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
        z-index: calc(var(--z-nav) - 1);
        gap: 0;
    }
    .mobile-bottom-nav a {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        font-size: 0.62rem;
        color: var(--text-muted);
        text-decoration: none;
        padding: 4px 2px;
        border-radius: var(--radius-sm);
        transition: color 0.2s, background 0.15s;
    }
    .mobile-bottom-nav a:hover,
    .mobile-bottom-nav a.active {
        color: var(--accent-primary);
        background: rgba(255,107,0,0.08);
    }
    .mobile-bottom-nav a .mob-icon { font-size: 1.15rem; line-height: 1; }
    /* Push dashboard content above bottom nav */
    .dashboard-main,
    .dashboard-layout { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important; }
}
/* Hide bottom nav on desktop */
@media (min-width: 769px) {
    .mobile-bottom-nav { display: none !important; }
}
