/* ===================================
   GLOWARES - UNIFIED DESIGN SYSTEM
   Root CSS - Single Source of Truth
   =================================== */

/* CSS Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Custom Properties - Design Tokens */
:root {
    /* ===== COLOR PALETTE ===== */
    /* Primary Brand Colors */
    --color-primary-50: #fef7ee;
    --color-primary-100: #fdedd3;
    --color-primary-200: #fbd7a5;
    --color-primary-300: #f8bb6d;
    --color-primary-400: #f59e0b;
    --color-primary-500: #d97706;
    --color-primary-600: #b45309;
    --color-primary-700: #92400e;
    --color-primary-800: #78350f;
    --color-primary-900: #451a03;
    
    /* Secondary Colors - Deep Purple */
    --color-secondary-50: #faf5ff;
    --color-secondary-100: #f3e8ff;
    --color-secondary-200: #e9d5ff;
    --color-secondary-300: #d8b4fe;
    --color-secondary-400: #c084fc;
    --color-secondary-500: #a855f7;
    --color-secondary-600: #9333ea;
    --color-secondary-700: #7c3aed;
    --color-secondary-800: #6b21a8;
    --color-secondary-900: #581c87;
    
    /* Accent Colors - Teal */
    --color-accent-50: #f0fdfa;
    --color-accent-100: #ccfbf1;
    --color-accent-200: #99f6e4;
    --color-accent-300: #5eead4;
    --color-accent-400: #2dd4bf;
    --color-accent-500: #14b8a6;
    --color-accent-600: #0d9488;
    --color-accent-700: #0f766e;
    --color-accent-800: #115e59;
    --color-accent-900: #134e4a;
    
    /* Neutral Colors */
    --color-neutral-50: #fafafa;
    --color-neutral-100: #f5f5f5;
    --color-neutral-200: #e5e5e5;
    --color-neutral-300: #d4d4d4;
    --color-neutral-400: #a3a3a3;
    --color-neutral-500: #737373;
    --color-neutral-600: #525252;
    --color-neutral-700: #404040;
    --color-neutral-800: #262626;
    --color-neutral-900: #171717;
    
    /* Semantic Colors */
    --color-success-50: #f0fdf4;
    --color-success-500: #22c55e;
    --color-success-600: #16a34a;
    --color-success-700: #15803d;
    
    --color-warning-50: #fffbeb;
    --color-warning-500: #f59e0b;
    --color-warning-600: #d97706;
    --color-warning-700: #b45309;
    
    --color-error-50: #fef2f2;
    --color-error-500: #ef4444;
    --color-error-600: #dc2626;
    --color-error-700: #b91c1c;
    
    --color-info-50: #eff6ff;
    --color-info-500: #3b82f6;
    --color-info-600: #2563eb;
    --color-info-700: #1d4ed8;
    
    /* ===== GRADIENTS ===== */
    --gradient-primary: linear-gradient(135deg, var(--color-primary-500) 0%, var(--color-primary-600) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--color-secondary-500) 0%, var(--color-secondary-600) 100%);
    --gradient-accent: linear-gradient(135deg, var(--color-accent-500) 0%, var(--color-accent-600) 100%);
    --gradient-warm: linear-gradient(135deg, var(--color-primary-400) 0%, var(--color-secondary-500) 100%);
    --gradient-hero: linear-gradient(135deg, var(--color-primary-600) 0%, var(--color-secondary-700) 50%, var(--color-accent-600) 100%);
    --gradient-card: linear-gradient(145deg, var(--color-neutral-50) 0%, var(--color-neutral-100) 100%);
    
    /* ===== TYPOGRAPHY ===== */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Font Sizes */
    --text-xs: 0.75rem;      /* 12px */
    --text-sm: 0.875rem;     /* 14px */
    --text-base: 1rem;       /* 16px */
    --text-lg: 1.125rem;     /* 18px */
    --text-xl: 1.25rem;      /* 20px */
    --text-2xl: 1.5rem;      /* 24px */
    --text-3xl: 1.875rem;    /* 30px */
    --text-4xl: 2.25rem;     /* 36px */
    --text-5xl: 3rem;        /* 48px */
    --text-6xl: 3.75rem;     /* 60px */
    --text-7xl: 4.5rem;      /* 72px */
    
    /* Font Weights */
    --font-thin: 100;
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;
    --font-black: 900;
    
    /* Line Heights */
    --leading-none: 1;
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;
    
    /* ===== SPACING ===== */
    --space-px: 1px;
    --space-0: 0;
    --space-1: 0.25rem;      /* 4px */
    --space-2: 0.5rem;       /* 8px */
    --space-3: 0.75rem;      /* 12px */
    --space-4: 1rem;         /* 16px */
    --space-5: 1.25rem;      /* 20px */
    --space-6: 1.5rem;       /* 24px */
    --space-7: 1.75rem;      /* 28px */
    --space-8: 2rem;         /* 32px */
    --space-9: 2.25rem;      /* 36px */
    --space-10: 2.5rem;      /* 40px */
    --space-11: 2.75rem;     /* 44px */
    --space-12: 3rem;        /* 48px */
    --space-14: 3.5rem;      /* 56px */
    --space-16: 4rem;        /* 64px */
    --space-20: 5rem;        /* 80px */
    --space-24: 6rem;        /* 96px */
    --space-28: 7rem;        /* 112px */
    --space-32: 8rem;        /* 128px */
    --space-36: 9rem;        /* 144px */
    --space-40: 10rem;       /* 160px */
    --space-44: 11rem;       /* 176px */
    --space-48: 12rem;       /* 192px */
    --space-52: 13rem;       /* 208px */
    --space-56: 14rem;       /* 224px */
    --space-60: 15rem;       /* 240px */
    --space-64: 16rem;       /* 256px */
    --space-72: 18rem;       /* 288px */
    --space-80: 20rem;       /* 320px */
    --space-96: 24rem;       /* 384px */
    
    /* ===== BORDER RADIUS ===== */
    --radius-none: 0;
    --radius-sm: 0.125rem;   /* 2px */
    --radius-md: 0.375rem;   /* 6px */
    --radius-lg: 0.5rem;     /* 8px */
    --radius-xl: 0.75rem;    /* 12px */
    --radius-2xl: 1rem;      /* 16px */
    --radius-3xl: 1.5rem;    /* 24px */
    --radius-full: 9999px;
    
    /* ===== SHADOWS ===== */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    --shadow-glow: 0 0 20px rgba(248, 187, 109, 0.3);
    --shadow-glow-lg: 0 0 40px rgba(248, 187, 109, 0.4);
    
    /* ===== TRANSITIONS ===== */
    --transition-none: none;
    --transition-all: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 350ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 300ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* ===== Z-INDEX SCALE ===== */
    --z-auto: auto;
    --z-0: 0;
    --z-10: 10;
    --z-20: 20;
    --z-30: 30;
    --z-40: 40;
    --z-50: 50;
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    --z-toast: 1080;
    
    /* ===== BREAKPOINTS (for reference) ===== */
    --breakpoint-sm: 640px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1280px;
    --breakpoint-2xl: 1536px;
}

/* ===== BASE STYLES ===== */
html {
    scroll-behavior: smooth;
    font-size: 16px;
    line-height: 1.5;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: var(--font-normal);
    line-height: var(--leading-relaxed);
    color: var(--color-neutral-800);
    background-color: var(--color-neutral-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    color: var(--color-neutral-900);
    margin-bottom: var(--space-4);
    letter-spacing: -0.025em;
}

h1 {
    font-size: var(--text-5xl);
    font-weight: var(--font-extrabold);
    line-height: var(--leading-none);
    margin-bottom: var(--space-6);
}

h2 {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-5);
}

h3 { font-size: var(--text-3xl); font-weight: var(--font-bold); }
h4 { font-size: var(--text-2xl); font-weight: var(--font-semibold); }
h5 { font-size: var(--text-xl);  font-weight: var(--font-semibold); }
h6 { font-size: var(--text-lg);  font-weight: var(--font-medium); }

p {
    margin-bottom: var(--space-4);
    line-height: var(--leading-relaxed);
    color: var(--color-neutral-700);
}

a {
    color: var(--color-primary-600);
    text-decoration: none;
    transition: var(--transition-fast);
    font-weight: var(--font-medium);
}

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

a:focus {
    outline: 2px solid var(--color-primary-500);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Lists */
ul, ol { margin-bottom: var(--space-4); padding-left: var(--space-6); }

li {
    margin-bottom: var(--space-2);
    line-height: var(--leading-relaxed);
    color: var(--color-neutral-700);
}

/* Blockquotes */
blockquote {
    border-left: 4px solid var(--color-primary-500);
    margin: var(--space-6) 0;
    font-style: italic;
    color: var(--color-neutral-600);
    background: var(--color-primary-50);
    padding: var(--space-6);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

/* Code */
code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    background: var(--color-neutral-100);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    color: var(--color-neutral-800);
}

pre {
    font-family: var(--font-mono);
    background: var(--color-neutral-900);
    color: var(--color-neutral-100);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    margin: var(--space-6) 0;
}

pre code { background: none; padding: 0; color: inherit; }

/* ===== LAYOUT SYSTEM ===== */
.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 var(--space-4);
    flex: 1;
}

.container-sm { max-width: 640px; }
.container-md { max-width: 768px; }
.container-lg { max-width: 1024px; }
.container-xl { max-width: 1280px; }
.container-2xl { max-width: 1536px; }

.container-fluid { width: 100%; padding: 0 var(--space-4); }

/* Grid System */
.grid { display: grid; gap: var(--space-6); }

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

/* Gap utilities */
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }
.gap-12 { gap: var(--space-12); }

/* Flexbox */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }

.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.items-stretch { align-items: stretch; }
.items-baseline { align-items: baseline; }

.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.justify-evenly { justify-content: space-evenly; }

.flex-1 { flex: 1 1 0%; }
.flex-auto { flex: 1 1 auto; }
.flex-initial { flex: 0 1 auto; }
.flex-none { flex: none; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-grow { flex-grow: 1; }

.self-start { align-self: flex-start; }
.self-center { align-self: center; }
.self-end { align-self: flex-end; }
.self-stretch { align-self: stretch; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    font-family: var(--font-primary);
    text-decoration: none;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    user-select: none;
    outline: none;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Button Variants */
.btn-primary { background: var(--gradient-primary); color: white; box-shadow: var(--shadow-md); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg), var(--shadow-glow); text-decoration: none; color: white; }

.btn-secondary { background: var(--gradient-secondary); color: white; box-shadow: var(--shadow-md); }
.btn-secondary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); text-decoration: none; color: white; }

.btn-accent { background: var(--gradient-accent); color: white; box-shadow: var(--shadow-md); }
.btn-accent:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); text-decoration: none; color: white; }

.btn-outline { background: transparent; color: var(--color-primary-600); border: 2px solid var(--color-primary-600); }
.btn-outline:hover { background: var(--color-primary-600); color: white; transform: translateY(-2px); text-decoration: none; }

.btn-ghost { background: transparent; color: var(--color-neutral-700); border: 1px solid var(--color-neutral-300); }
.btn-ghost:hover { background: var(--color-neutral-100); border-color: var(--color-neutral-400); text-decoration: none; }

.btn-success { background: var(--color-success-500); color: white; }
.btn-success:hover { background: var(--color-success-600); transform: translateY(-2px); text-decoration: none; color: white; }

.btn-warning { background: var(--color-warning-500); color: white; }
.btn-warning:hover { background: var(--color-warning-600); transform: translateY(-2px); text-decoration: none; color: white; }

.btn-error { background: var(--color-error-500); color: white; }
.btn-error:hover { background: var(--color-error-600); transform: translateY(-2px); text-decoration: none; color: white; }

/* Button Sizes */
.btn-xs { padding: var(--space-1) var(--space-3); font-size: var(--text-xs); }
.btn-sm { padding: var(--space-2) var(--space-4); font-size: var(--text-sm); }
.btn-lg { padding: var(--space-4) var(--space-8); font-size: var(--text-lg); }
.btn-xl { padding: var(--space-5) var(--space-10); font-size: var(--text-xl); }

/* ===== FORMS ===== */
.form-group { margin-bottom: var(--space-6); }

.form-label {
    display: block;
    font-weight: var(--font-semibold);
    color: var(--color-neutral-800);
    margin-bottom: var(--space-2);
    font-size: var(--text-sm);
}

.form-control {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-base);
    font-family: var(--font-primary);
    border: 2px solid var(--color-neutral-300);
    border-radius: var(--radius-lg);
    background: white;
    transition: var(--transition-base);
    color: var(--color-neutral-800);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary-500);
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
    transform: translateY(-1px);
}

.form-control::placeholder { color: var(--color-neutral-500); }

.form-control:disabled {
    background: var(--color-neutral-100);
    color: var(--color-neutral-500);
    cursor: not-allowed;
}

/* Select */
.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right var(--space-3) center;
    background-repeat: no-repeat;
    background-size: 16px 12px;
    padding-right: var(--space-10);
    appearance: none;
}

/* Textarea */
textarea.form-control { resize: vertical; min-height: 120px; }

/* Checkbox and Radio */
.form-check {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--color-neutral-400);
    border-radius: var(--radius-sm);
    background: white;
    transition: var(--transition-base);
    cursor: pointer;
    margin: 0;
}

.form-check-input:checked { background: var(--color-primary-500); border-color: var(--color-primary-500); }
.form-check-input[type="radio"] { border-radius: var(--radius-full); }

.form-check-label {
    cursor: pointer;
    font-weight: var(--font-medium);
    color: var(--color-neutral-700);
    margin: 0;
}

/* ===== CARDS ===== */
.card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: var(--transition-base);
    border: 1px solid var(--color-neutral-200);
}

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

.card-header {
    padding: var(--space-3);
    border-bottom: 1px solid var(--color-neutral-200);
    background: var(--color-neutral-50);
}

.card-body { padding: var(--space-2); }

.card-footer {
    padding: var(--space-3);
    border-top: 1px solid var(--color-neutral-200);
    background: var(--color-neutral-50);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition-slow);
}

.card:hover .card-image { transform: scale(1.05); }

/* ===== ALERTS ===== */
.alert {
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
    position: relative;
    border-left: 4px solid;
    animation: slideInDown 0.3s ease-out;
    font-weight: var(--font-medium);
}

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

.alert-success { background: var(--color-success-50); color: var(--color-success-700); border-left-color: var(--color-success-500); }
.alert-warning { background: var(--color-warning-50); color: var(--color-warning-700); border-left-color: var(--color-warning-500); }

.alert-error,
.alert-danger { background: var(--color-error-50); color: var(--color-error-700); border-left-color: var(--color-error-500); }

.alert-info { background: var(--color-info-50); color: var(--color-info-700); border-left-color: var(--color-info-500); }

.alert-close {
    position: absolute;
    top: var(--space-3);
    right: var(--space-4);
    background: none;
    border: none;
    font-size: var(--text-xl);
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition-fast);
    color: inherit;
}
.alert-close:hover { opacity: 1; }

/* ===== TOAST NOTIFICATIONS ===== */
/* Moved all toast styles to toast.css to avoid duplication and conflicts */

/* ===== NAVIGATION ===== */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-neutral-200);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    transition: var(--transition-base);
}

.navbar.scrolled { background: rgba(255, 255, 255, 0.98); box-shadow: var(--shadow-md); }

.navbar-content { display: flex; align-items: center; justify-content: space-between; }
/* Navbar sections */
.navbar-left, .navbar-center, .navbar-right { display: flex; align-items: center; }
.navbar-left { flex: 1 1 0; }
.navbar-center { flex: 2 1 0; justify-content: center; }
.navbar-right { flex: 1 1 0; justify-content: flex-end; gap: var(--space-2); }

/* ===== GLOBAL SLIDESHOW BANNER ===== */
.slideshow-banner {
    position: relative;
    width: 100%;
    height: 100px; /* Max height specified */
    max-height: 100px;
    overflow: hidden;
    border-bottom: 1px solid var(--color-neutral-200);
    z-index: 10; /* Below admin sidebar */
}

.slideshow {
    width: 100%; height: 100%; position: relative;
}

.slides { position: absolute; inset: 0; }
.slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center; background-repeat: no-repeat;
    opacity: 0; transform: scale(1.06);
    transition: opacity 800ms ease, transform 2000ms ease;
    filter: saturate(1.1) contrast(1.05) brightness(1.02);
}
.slide.active { opacity: 1; transform: scale(1); }

.slideshow-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }

.slideshow-cloud {
    padding: 8px 18px;
}

.slideshow-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    color: var(--color-neutral-900);
    letter-spacing: 0.01em;
    text-shadow: 0 1px 2px rgba(255,255,255,0.6);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

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

@media (max-width: 768px) {
    .slideshow-cloud { padding: 6px 14px; }
    .slideshow-text { font-size: 15px; }
}

.navbar-brand {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    background: var(--gradient-warm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.navbar-brand:hover { transform: scale(1.05); text-decoration: none; }

.brand-icon { color: var(--color-primary-500); font-size: var(--text-3xl); }

.navbar-nav {
    display: flex;
    list-style: none;
    gap: var(--space-6);
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-item { position: relative; }

.nav-link {
    position: relative;
    padding: var(--space-2) var(--space-4);
    color: var(--color-neutral-700);
    font-weight: var(--font-medium);
    text-decoration: none;
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: var(--gradient-primary);
    transition: left var(--transition-base);
    z-index: -1;
}

.nav-link:hover { color: white; text-decoration: none; transform: translateY(-2px); }
.nav-link:hover::before { left: 0; }

.nav-icon { font-size: var(--text-lg); }

/* Cart Badge */
.cart-icon-wrapper { position: relative; }

.cart-badge {
    position: absolute;
    top: -8px; right: -8px;
    background: var(--color-error-500);
    color: white;
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-full);
    min-width: 20px; height: 20px;
    display: flex; align-items: center; justify-content: center;
    animation: pulse 2s infinite;
}
.cart-badge:empty { display: none; }

@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.7} }

/* Dropdown Menus */
.dropdown { position: relative; }
.dropdown-toggle { display: flex; align-items: center; gap: var(--space-2); }
.dropdown-arrow { font-size: var(--text-sm); transition: var(--transition-fast); }
.dropdown-toggle:hover .dropdown-arrow { transform: rotate(180deg); }

.dropdown-menu {
    position: absolute;
    top: 100%; right: 0;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--color-neutral-200);
    min-width: 200px;
    padding: var(--space-2);
    opacity: 0; visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-fast);
    z-index: var(--z-dropdown);
}
.dropdown-menu.show { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown-item {
    display: flex; align-items: center; gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    color: var(--color-neutral-700);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    font-weight: var(--font-medium);
}
.dropdown-item:hover { background: var(--color-neutral-100); color: var(--color-neutral-900); text-decoration: none; }

.dropdown-divider { height: 1px; background: var(--color-neutral-200); margin: var(--space-2) 0; }

/* Mobile Navigation */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: var(--text-2xl);
    cursor: pointer;
    padding: var(--space-2);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    flex-direction: column;
    gap: 4px;
}
.navbar-toggle:hover { background: var(--color-neutral-100); }

.hamburger-line {
    display: block;
    width: 24px; height: 3px;
    background: var(--color-neutral-700);
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
}
.navbar-toggle.active .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.navbar-toggle.active .hamburger-line:nth-child(2) { opacity: 0; }
.navbar-toggle.active .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    background: var(--gradient-hero);
    color: white;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content { position: relative; z-index: 1; max-width: 800px; padding: var(--space-2); }

.hero-title {
    font-size: var(--text-6xl);
    font-weight: var(--font-extrabold);
    margin-bottom: var(--space-6);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: var(--text-xl);
    margin-bottom: var(--space-8);
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.2s both;
    line-height: var(--leading-relaxed);
}

.hero-cta { animation: fadeInUp 1s ease-out 0.4s both; }

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

/* ===== PRODUCT COMPONENTS ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
    padding: var(--space-6) 0;
    width: 100%;
    max-width: 100%;
}

/* Responsive product grid for different screen sizes and sidebars */
@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: var(--space-8);
    }
}

@media (min-width: 1400px) {
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

/* Adjust for admin sidebar */
@media (min-width: 1024px) {
    body.admin-user .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    /* Collapsed admin sidebar has more space */
    body.admin-user.sidebar-collapsed .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* Adjust for cart sidebar */
@media (min-width: 1024px) {
    /* When cart has items - less space due to cart sidebar */
    body.cart-has-items .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    /* When cart is empty - full width available */
    body.cart-empty .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

/* Adjust for both sidebars and empty cart states */
@media (min-width: 1400px) {
    /* Admin + cart sidebar both present */
    body.admin-user.cart-has-items .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
    
    /* Collapsed admin sidebar + cart sidebar */
    body.admin-user.sidebar-collapsed.cart-has-items .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    /* Admin sidebar + empty cart - more space available */
    body.admin-user.cart-empty .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    /* Collapsed admin sidebar + empty cart - most space available */
    body.admin-user.sidebar-collapsed.cart-empty .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
    
    /* No admin sidebar + empty cart - full width */
    body:not(.admin-user).cart-empty .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    }
}

.product-card {
    position: relative;
    background: white;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-slow);
    border: 1px solid var(--color-neutral-200);
}
.product-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: var(--shadow-2xl); }

.product-image-container { position: relative; overflow: hidden; height: 250px; }

.product-image { width: 100%; height: 100%; object-fit: cover; transition: var(--transition-slow); }
.product-card:hover .product-image { transform: scale(1.1); }

.product-overlay {
    position: absolute; inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex; align-items: center; justify-content: center;
    gap: var(--space-4);
    opacity: 0;
    transition: var(--transition-base);
}
.product-card:hover .product-overlay { opacity: 1; }

.product-info { padding: var(--space-1); }

.product-category {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-primary-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-2);
}

.product-title {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-3);
    line-height: var(--leading-tight);
    color: var(--color-neutral-900);
}

.product-description { color: var(--color-neutral-600); margin-bottom: var(--space-4); line-height: var(--leading-relaxed); }

.product-price {
    font-size: var(--text-2xl);
    font-weight: var(--font-extrabold);
    background: var(--gradient-warm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-4);
}

.product-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }

/* ===== FOOTER ===== */
.footer {
    background: var(--color-neutral-100);
    color: var(--color-neutral-700);
    padding: var(--space-1) 0 var(--space-1);
    margin-top: var(--space-1);
    border-top: 1px solid var(--color-neutral-300);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

.footer-section h5 {
    color: var(--color-neutral-900);
    margin-bottom: var(--space-4);
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
}

.footer-section ul { list-style: none; padding: 0; margin: 0; }
.footer-section ul li { margin-bottom: var(--space-2); }

.footer-section a { color: var(--color-neutral-600); transition: var(--transition-fast); font-weight: var(--font-normal); }
.footer-section a:hover { color: var(--color-primary-600); text-decoration: none; }

.social-links { display: flex; gap: var(--space-4); margin-top: var(--space-4); }
.social-link { color: var(--color-neutral-400); font-size: var(--text-xl); transition: var(--transition-fast); }
.social-link:hover { color: white; text-decoration: none; }

.contact-info { margin-top: var(--space-4); }
.contact-item { color: var(--color-neutral-400); margin-bottom: var(--space-2); }
.contact-item i { margin-right: var(--space-2); width: 16px; }

.footer-bottom {
    text-align: center;
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-neutral-300);
    color: var(--color-neutral-600);
}

/* ===== UTILITY CLASSES ===== */

/* Text Alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }

/* Text Colors */
.text-primary { color: var(--color-primary-600); }
.text-secondary { color: var(--color-secondary-600); }
.text-accent { color: var(--color-accent-600); }
.text-success { color: var(--color-success-600); }
.text-warning { color: var(--color-warning-600); }
.text-error { color: var(--color-error-600); }
.text-info { color: var(--color-info-600); }
.text-neutral { color: var(--color-neutral-600); }
.text-white { color: white; }
.text-black { color: var(--color-neutral-900); }
.text-muted { color: var(--color-neutral-500); }

/* Background Colors */
.bg-primary { background-color: var(--color-primary-500); }
.bg-secondary { background-color: var(--color-secondary-500); }
.bg-accent { background-color: var(--color-accent-500); }
.bg-success { background-color: var(--color-success-500); }
.bg-warning { background-color: var(--color-warning-500); }
.bg-error { background-color: var(--color-error-500); }
.bg-info { background-color: var(--color-info-500); }
.bg-white { background-color: white; }
.bg-neutral-50 { background-color: var(--color-neutral-50); }
.bg-neutral-100 { background-color: var(--color-neutral-100); }
.bg-neutral-900 { background-color: var(--color-neutral-900); }

/* Background Gradients */
.bg-gradient-primary { background: var(--gradient-primary); }
.bg-gradient-secondary { background: var(--gradient-secondary); }
.bg-gradient-accent { background: var(--gradient-accent); }
.bg-gradient-warm { background: var(--gradient-warm); }
.bg-gradient-hero { background: var(--gradient-hero); }

/* Font Weights */
.font-thin { font-weight: var(--font-thin); }
.font-light { font-weight: var(--font-light); }
.font-normal { font-weight: var(--font-normal); }
.font-medium { font-weight: var(--font-medium); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }
.font-extrabold { font-weight: var(--font-extrabold); }
.font-black { font-weight: var(--font-black); }

/* Font Sizes */
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-4xl { font-size: var(--text-4xl); }
.text-5xl { font-size: var(--text-5xl); }
.text-6xl { font-size: var(--text-6xl); }
.text-7xl { font-size: var(--text-7xl); }

/* Border Radius */
.rounded-none { border-radius: var(--radius-none); }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded { border-radius: var(--radius-md); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-3xl { border-radius: var(--radius-3xl); }
.rounded-full { border-radius: var(--radius-full); }

/* Shadows */
.shadow-none { box-shadow: none; }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow { box-shadow: var(--shadow-md); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-2xl { box-shadow: var(--shadow-2xl); }
.shadow-inner { box-shadow: var(--shadow-inner); }
.shadow-glow { box-shadow: var(--shadow-glow); }
.shadow-glow-lg { box-shadow: var(--shadow-glow-lg); }

/* Opacity */
.opacity-0 { opacity: 0; }
.opacity-25 { opacity: 0.25; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }

/* Transitions */
.transition-none { transition: var(--transition-none); }
.transition-all { transition: var(--transition-all); }
.transition { transition: var(--transition-base); }
.transition-fast { transition: var(--transition-fast); }
.transition-slow { transition: var(--transition-slow); }
.transition-bounce { transition: var(--transition-bounce); }
.transition-colors { transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease; }
.transition-transform { transition: transform 150ms ease; }

/* Duration utilities */
.duration-75 { transition-duration: 75ms; }
.duration-100 { transition-duration: 100ms; }
.duration-150 { transition-duration: 150ms; }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }

/* Display */
.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }
/* .flex and .grid removed here (already defined above to avoid duplication) */
.inline-flex { display: inline-flex; }
.hidden { display: none; }

/* Position */
.static { position: static; }
.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }
.sticky { position: sticky; }

/* Positioning utilities */
.top-0 { top: 0; }
.top-4 { top: var(--space-4); }
.right-0 { right: 0; }
.right-3 { right: var(--space-3); }
.right-4 { right: var(--space-4); }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.left-4 { left: var(--space-4); }
.left-12 { left: var(--space-12); }

/* Transform utilities */
.transform { transform: var(--tw-transform); }
.translate-y-1\/2 { transform: translateY(-50%); }
.-translate-y-1\/2 { transform: translateY(-50%); }
.scale-110 { transform: scale(1.1); }

/* Text decoration */
.line-through { text-decoration: line-through; }
.no-underline { text-decoration: none; }
.underline { text-decoration: underline; }

/* Overflow */
.overflow-auto { overflow: auto; }
.overflow-hidden { overflow: hidden; }
.overflow-visible { overflow: visible; }
.overflow-scroll { overflow: scroll; }

/* Cursor */
.cursor-auto { cursor: auto; }
.cursor-default { cursor: default; }
.cursor-pointer { cursor: pointer; }
.cursor-wait { cursor: wait; }
.cursor-text { cursor: text; }
.cursor-move { cursor: move; }
.cursor-not-allowed { cursor: not-allowed; }

/* ===== SPACING UTILITIES ===== */

/* Margin */
.m-0 { margin: var(--space-0); }
.m-1 { margin: var(--space-1); }
.m-2 { margin: var(--space-2); }
.m-3 { margin: var(--space-3); }
.m-4 { margin: var(--space-4); }
.m-5 { margin: var(--space-5); }
.m-6 { margin: var(--space-6); }
.m-8 { margin: var(--space-8); }
.m-10 { margin: var(--space-10); }
.m-12 { margin: var(--space-12); }
.m-16 { margin: var(--space-16); }
.m-20 { margin: var(--space-20); }
.m-24 { margin: var(--space-24); }
.m-auto { margin: auto; }

/* Margin Top */
.mt-0 { margin-top: var(--space-0); }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-10 { margin-top: var(--space-10); }
.mt-12 { margin-top: var(--space-12); }
.mt-16 { margin-top: var(--space-16); }
.mt-20 { margin-top: var(--space-20); }
.mt-24 { margin-top: var(--space-24); }
.mt-auto { margin-top: auto; }

/* Margin Bottom */
.mb-0 { margin-bottom: var(--space-0); }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-10 { margin-bottom: var(--space-10); }
.mb-12 { margin-bottom: var(--space-12); }
.mb-16 { margin-bottom: var(--space-16); }
.mb-20 { margin-bottom: var(--space-20); }
.mb-24 { margin-bottom: var(--space-24); }
.mb-auto { margin-bottom: auto; }

/* Margin Left */
.ml-0 { margin-left: var(--space-0); }
.ml-1 { margin-left: var(--space-1); }
.ml-2 { margin-left: var(--space-2); }
.ml-3 { margin-left: var(--space-3); }
.ml-4 { margin-left: var(--space-4); }
.ml-5 { margin-left: var(--space-5); }
.ml-6 { margin-left: var(--space-6); }
.ml-8 { margin-left: var(--space-8); }
.ml-auto { margin-left: auto; }

/* Margin Right */
.mr-0 { margin-right: var(--space-0); }
.mr-1 { margin-right: var(--space-1); }
.mr-2 { margin-right: var(--space-2); }
.mr-3 { margin-right: var(--space-3); }
.mr-4 { margin-right: var(--space-4); }
.mr-5 { margin-right: var(--space-5); }
.mr-6 { margin-right: var(--space-6); }
.mr-8 { margin-right: var(--space-8); }
.mr-auto { margin-right: auto; }

/* Additional margin utilities */
.mx-0 { margin-left: var(--space-0); margin-right: var(--space-0); }
.mx-1 { margin-left: var(--space-1); margin-right: var(--space-1); }
.mx-2 { margin-left: var(--space-2); margin-right: var(--space-2); }
.mx-3 { margin-left: var(--space-3); margin-right: var(--space-3); }
.mx-4 { margin-left: var(--space-4); margin-right: var(--space-4); }
.mx-5 { margin-left: var(--space-5); margin-right: var(--space-5); }
.mx-6 { margin-left: var(--space-6); margin-right: var(--space-6); }
.mx-8 { margin-left: var(--space-8); margin-right: var(--space-8); }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Margin Y (vertical) */
.my-0 { margin-top: var(--space-0); margin-bottom: var(--space-0); }
.my-1 { margin-top: var(--space-1); margin-bottom: var(--space-1); }
.my-2 { margin-top: var(--space-2); margin-bottom: var(--space-2); }
.my-3 { margin-top: var(--space-3); margin-bottom: var(--space-3); }
.my-4 { margin-top: var(--space-4); margin-bottom: var(--space-4); }
.my-5 { margin-top: var(--space-5); margin-bottom: var(--space-5); }
.my-6 { margin-top: var(--space-6); margin-bottom: var(--space-6); }
.my-8 { margin-top: var(--space-8); margin-bottom: var(--space-8); }
.my-12 { margin-top: var(--space-12); margin-bottom: var(--space-12); }
.my-16 { margin-top: var(--space-16); margin-bottom: var(--space-16); }
.my-20 { margin-top: var(--space-20); margin-bottom: var(--space-20); }

/* Padding */
.p-0 { padding: var(--space-0); }
.p-1 { padding: var(--space-1); }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-5 { padding: var(--space-5); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }
.p-10 { padding: var(--space-10); }
.p-12 { padding: var(--space-12); }
.p-16 { padding: var(--space-16); }
.p-20 { padding: var(--space-20); }
.p-24 { padding: var(--space-24); }

/* Padding Top */
.pt-0 { padding-top: var(--space-0); }
.pt-1 { padding-top: var(--space-1); }
.pt-2 { padding-top: var(--space-2); }
.pt-3 { padding-top: var(--space-3); }
.pt-4 { padding-top: var(--space-4); }
.pt-5 { padding-top: var(--space-5); }
.pt-6 { padding-top: var(--space-6); }
.pt-8 { padding-top: var(--space-8); }
.pt-10 { padding-top: var(--space-10); }
.pt-12 { padding-top: var(--space-12); }
.pt-16 { padding-top: var(--space-16); }
.pt-20 { padding-top: var(--space-20); }
.pt-24 { padding-top: var(--space-24); }

/* Padding Bottom */
.pb-0 { padding-bottom: var(--space-0); }
.pb-1 { padding-bottom: var(--space-1); }
.pb-2 { padding-bottom: var(--space-2); }
.pb-3 { padding-bottom: var(--space-3); }
.pb-4 { padding-bottom: var(--space-4); }
.pb-5 { padding-bottom: var(--space-5); }
.pb-6 { padding-bottom: var(--space-6); }
.pb-8 { padding-bottom: var(--space-8); }
.pb-10 { padding-bottom: var(--space-10); }
.pb-12 { padding-bottom: var(--space-12); }
.pb-16 { padding-bottom: var(--space-16); }
.pb-20 { padding-bottom: var(--space-20); }
.pb-24 { padding-bottom: var(--space-24); }

/* Padding Left */
.pl-0 { padding-left: var(--space-0); }
.pl-1 { padding-left: var(--space-1); }
.pl-2 { padding-left: var(--space-2); }
.pl-3 { padding-left: var(--space-3); }
.pl-4 { padding-left: var(--space-4); }
.pl-5 { padding-left: var(--space-5); }
.pl-6 { padding-left: var(--space-6); }
.pl-8 { padding-left: var(--space-8); }

/* Padding Right */
.pr-0 { padding-right: var(--space-0); }
.pr-1 { padding-right: var(--space-1); }
.pr-2 { padding-right: var(--space-2); }
.pr-3 { padding-right: var(--space-3); }
.pr-4 { padding-right: var(--space-4); }
.pr-5 { padding-right: var(--space-5); }
.pr-6 { padding-right: var(--space-6); }
.pr-8 { padding-right: var(--space-8); }

/* Padding X (horizontal) */
.px-0 { padding-left: var(--space-0); padding-right: var(--space-0); }
.px-1 { padding-left: var(--space-1); padding-right: var(--space-1); }
.px-2 { padding-left: var(--space-2); padding-right: var(--space-2); }
.px-3 { padding-left: var(--space-3); padding-right: var(--space-3); }
.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.px-5 { padding-left: var(--space-5); padding-right: var(--space-5); }
.px-6 { padding-left: var(--space-6); padding-right: var(--space-6); }
.px-8 { padding-left: var(--space-8); padding-right: var(--space-8); }
.px-10 { padding-left: var(--space-10); padding-right: var(--space-10); }
.px-12 { padding-left: var(--space-12); padding-right: var(--space-12); }

/* Padding Y (vertical) */
.py-0 { padding-top: var(--space-0); padding-bottom: var(--space-0); }
.py-1 { padding-top: var(--space-1); padding-bottom: var(--space-1); }
.py-2 { padding-top: var(--space-2); padding-bottom: var(--space-2); }
.py-3 { padding-top: var(--space-3); padding-bottom: var(--space-3); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-5 { padding-top: var(--space-5); padding-bottom: var(--space-5); }
.py-6 { padding-top: var(--space-6); padding-bottom: var(--space-6); }
.py-8 { padding-top: var(--space-8); padding-bottom: var(--space-8); }
.py-12 { padding-top: var(--space-12); padding-bottom: var(--space-12); }
.py-16 { padding-top: var(--space-16); padding-bottom: var(--space-16); }
.py-20 { padding-top: var(--space-20); padding-bottom: var(--space-20); }

/* ===== WIDTH & HEIGHT ===== */
.w-auto { width: auto; }
.w-full { width: 100%; }
.w-screen { width: 100vw; }
.w-min { width: min-content; }
.w-max { width: max-content; }
.w-fit { width: fit-content; }
.w-6 { width: 1.5rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }

.h-auto { height: auto; }
.h-full { height: 100%; }
.h-screen { height: 100vh; }
.h-min { height: min-content; }
.h-max { height: max-content; }
.h-fit { height: fit-content; }
.h-6 { height: 1.5rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-96 { height: 24rem; }

.min-h-0 { min-height: 0; }
.min-h-full { min-height: 100%; }
.min-h-screen { min-height: 100vh; }

.max-w-none { max-width: none; }
.max-w-xs { max-width: 20rem; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }
.max-w-full { max-width: 100%; }

/* ===== BORDERS ===== */
.border { border: 1px solid var(--color-neutral-300); }
.border-0 { border: 0; }
.border-2 { border: 2px solid var(--color-neutral-300); }
.border-4 { border: 4px solid var(--color-neutral-300); }

.border-t { border-top: 1px solid var(--color-neutral-300); }
.border-r { border-right: 1px solid var(--color-neutral-300); }
.border-b { border-bottom: 1px solid var(--color-neutral-300); }
.border-l { border-left: 1px solid var(--color-neutral-300); }

.border-primary { border-color: var(--color-primary-500); }
.border-secondary { border-color: var(--color-secondary-500); }
.border-accent { border-color: var(--color-accent-500); }
.border-success { border-color: var(--color-success-500); }
.border-warning { border-color: var(--color-warning-500); }
.border-error { border-color: var(--color-error-500); }
.border-info { border-color: var(--color-info-500); }

/* ===== OBJECT FIT ===== */
.object-contain { object-fit: contain; }
.object-cover { object-fit: cover; }
.object-fill { object-fit: fill; }
.object-none { object-fit: none; }
.object-scale-down { object-fit: scale-down; }

/* ===== ASPECT RATIO ===== */
.aspect-square { aspect-ratio: 1 / 1; }
.aspect-video { aspect-ratio: 16 / 9; }
.aspect-auto { aspect-ratio: auto; }

/* ===== INSET ===== */
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }

/* ===== BACKGROUND ===== */
.bg-opacity-0 { background-color: rgba(0, 0, 0, 0); }
.bg-opacity-20 { background-color: rgba(0, 0, 0, 0.2); }
.bg-opacity-50 { background-color: rgba(0, 0, 0, 0.5); }
.bg-opacity-75 { background-color: rgba(0, 0, 0, 0.75); }

/* ===== HOVER STATES ===== */
.hover\:bg-opacity-20:hover { background-color: rgba(0, 0, 0, 0.2); }
.hover\:border-neutral-300:hover { border-color: var(--color-neutral-300); }
.hover\:text-white:hover { color: white; }
.hover\:text-primary-600:hover { color: var(--color-primary-600); }
.hover\:text-primary-700:hover { color: var(--color-primary-700); }
.hover\:text-error-700:hover { color: var(--color-error-700); }
.hover\:text-neutral-700:hover { color: var(--color-neutral-700); }
.hover\:text-neutral-900:hover { color: var(--color-neutral-900); }
.hover\:opacity-100:hover { opacity: 1; }
.hover\:scale-110:hover { transform: scale(1.1); }

/* ===== Z-INDEX ===== */
.z-0 { z-index: var(--z-0); }
.z-10 { z-index: var(--z-10); }
.z-20 { z-index: var(--z-20); }
.z-30 { z-index: var(--z-30); }
.z-40 { z-index: var(--z-40); }
.z-50 { z-index: var(--z-50); }
.z-auto { z-index: var(--z-auto); }

/* ===== RESPONSIVE DESIGN ===== */

/* Medium screens and up */
@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:flex-row { flex-direction: row; }
    .md\:w-64 { width: 16rem; }
}

/* Large screens and up */
@media (min-width: 1024px) {
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Mobile styles */
@media (max-width: 768px) {
    .container { padding: 0 var(--space-2); }

    /* Smaller base typography and compact spacing for admin pages */
    body.admin-user { font-size: var(--text-sm); line-height: var(--leading-normal); }
    .btn { padding: var(--space-2) var(--space-3); font-size: var(--text-sm); }
    .btn-xs { padding: 2px 6px; font-size: 11px; }
    .card-body { padding: var(--space-2); }
    .card-header, .card-footer { padding: var(--space-3); }
    .navbar-nav { overflow-x: auto; }

    .hero-title { font-size: var(--text-4xl); }
    .hero-subtitle { font-size: var(--text-lg); }

    .navbar-nav {
        display: none;
        position: absolute; top: 100%; left: 0; right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: var(--space-4);
        box-shadow: var(--shadow-lg);
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
        border-top: 1px solid var(--color-neutral-200);
        gap: var(--space-2);
    }
    .navbar-nav.active { display: flex; }
    .navbar-toggle { display: flex; }

    .navbar-right { gap: var(--space-1); }

    .product-grid { 
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
        gap: var(--space-4); 
        width: 100%;
    }

    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4,
    .grid-cols-5,
    .grid-cols-6 { grid-template-columns: 1fr; }

    .footer-content { grid-template-columns: 1fr; gap: var(--space-4); }

    h1 { font-size: var(--text-4xl); }
    h2 { font-size: var(--text-3xl); }
    h3 { font-size: var(--text-2xl); }

    .btn-xl { padding: var(--space-3) var(--space-5); font-size: var(--text-base); }
    

    /* (Removed duplicate utility re-definitions here: flex-col, gap-4/6/8, text-center, max-w-md, mx-auto) */
}

@media (max-width: 480px) {
    .hero-title { font-size: var(--text-3xl); }
    .product-card { margin: 0 var(--space-2); }
    .btn { padding: var(--space-3) var(--space-4); font-size: var(--text-sm); }
    .navbar-brand { font-size: var(--text-xl); }
    .brand-icon { font-size: var(--text-2xl); }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-contrast: high) {
    :root {
        --color-neutral-800: #000000;
        --color-neutral-600: #333333;
        --color-neutral-50: #ffffff;
        --color-neutral-200: #000000;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .footer,
    .btn { display: none !important; }

    .card { box-shadow: none; border: 1px solid #ccc; }

    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
        background: white;
    }

    h1, h2, h3, h4, h5, h6 { color: black; }
    a { color: black; text-decoration: underline; }
}

/* ===== FOCUS STYLES FOR ACCESSIBILITY ===== */
.btn:focus,
.form-control:focus,
.form-check-input:focus,
.nav-link:focus {
    outline: 2px solid var(--color-primary-500);
    outline-offset: 2px;
}

/* ===== LOADING STATES ===== */
.loading { position: relative; overflow: hidden; }
.loading::after {
    content: '';
    position: absolute; top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: loading 1.5s infinite;
}
@keyframes loading { 0%{left:-100%} 100%{left:100%} }

.skeleton {
    background: linear-gradient(90deg, var(--color-neutral-200) 25%, var(--color-neutral-100) 50%, var(--color-neutral-200) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

/* ===== ANIMATION UTILITIES ===== */
.animate-fade-in { animation: fadeIn 0.5s ease-out; }
.animate-slide-up { animation: slideUp 0.5s ease-out; }
.animate-bounce { animation: bounce 1s infinite; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

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

@keyframes bounce {
    0%,20%,53%,80%,100% { transform: translateY(0); }
    40%,43% { transform: translateY(-10px); }
    70% { transform: translateY(-5px); }
    90% { transform: translateY(-2px); }
}

/* ===== ADDITIONAL UTILITIES ===== */
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }
.overflow-x-hidden { overflow-x: hidden; }
.overflow-y-hidden { overflow-y: hidden; }

.whitespace-nowrap { white-space: nowrap; }
.whitespace-pre { white-space: pre; }
.whitespace-pre-wrap { white-space: pre-wrap; }

.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.capitalize { text-transform: capitalize; }
.normal-case { text-transform: none; }

.tracking-tighter { letter-spacing: -0.05em; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-normal { letter-spacing: 0em; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }

/* ===== LEGACY SUPPORT ===== */
.row { display: flex; flex-wrap: wrap; margin: 0 -0.5rem; }
.col { flex: 1; padding: 0 0.5rem; }
.col-1 { flex: 0 0 8.333333%; }
.col-2 { flex: 0 0 16.666667%; }
.col-3 { flex: 0 0 25%; }
.col-4 { flex: 0 0 33.333333%; }
.col-6 { flex: 0 0 50%; }
.col-8 { flex: 0 0 66.666667%; }
.col-12 { flex: 0 0 100%; }

/* (Removed duplicated legacy spacing utilities: mb-*, mt-*, py-*, px-*; originals already defined) */

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* Legacy text utilities */
.highlight { color: var(--color-primary-600); font-weight: var(--font-semibold); }

/* Legacy button styles */
.btn-danger { background: var(--color-error-500); color: white; }
.btn-danger:hover { background: var(--color-error-600); color: white; text-decoration: none; }

/* (Removed duplicated .alert-danger; combined with .alert-error above) */

/* ===== ADMIN STYLES ===== */
.admin-container { max-width: 1200px; margin: 0 auto; padding: var(--space-2); }

.admin-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-4);
    border-bottom: 2px solid var(--color-primary-500);
}

.admin-header h1 {
    color: var(--color-neutral-900);
    margin: 0;
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
}

.admin-stats { color: var(--color-neutral-600); font-size: var(--text-sm); }

.admin-actions { display: flex; gap: var(--space-2); margin-bottom: var(--space-6); }
.admin-actions .btn { font-size: var(--text-sm); }
.admin-actions .btn i { margin-right: var(--space-1); }

.admin-metrics { display: flex; gap: var(--space-1); margin-bottom: var(--space-4); }

.metric-card {
    width: 96px;
    background: white;
    border: 1px solid var(--color-neutral-300);
    border-radius: var(--radius-md);
    padding: var(--space-2);
    text-align: center;
}
.metric-card-error { background: var(--color-error-50); border-color: var(--color-error-300); }
.metric-card i { display: block; margin-bottom: var(--space-1); }
.metric-number { font-weight: var(--font-bold); color: var(--color-neutral-900); }
.metric-card-error .metric-number { color: var(--color-error-700); }

/* ===== ADMIN TICKETS QUICK FILTER ===== */
.admin-quick-filter {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2);
    background: var(--color-neutral-50);
    border: 1px solid var(--color-neutral-200);
    border-radius: var(--radius-lg);
}

.admin-quick-filter .filter-icon { color: var(--color-neutral-600); font-size: var(--text-sm); }

.select-compact {
    padding: var(--space-2) var(--space-6);
    height: 34px;
    font-size: var(--text-sm);
    border-radius: var(--radius-md);
}

/* Compact inputs for admin dialogs */
.input-compact {
    padding: var(--space-2) var(--space-3);
    height: 34px;
    font-size: var(--text-sm);
    border-radius: var(--radius-md);
}

.form-group-compact { margin-bottom: var(--space-3); }
.admin-modal-body .form-label { font-size: var(--text-sm); margin-bottom: var(--space-1); }

@media (max-width: 768px) {
    .admin-quick-filter { gap: var(--space-1); padding: var(--space-1); }
    .admin-quick-filter .select-compact { width: 100%; max-width: none; height: 32px; font-size: var(--text-sm); }
}

/* ===== COMPACT FORM VARIANTS ===== */
.form-control-compact {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
    border-radius: var(--radius-md);
}

/* Screen-reader only utility */
.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;
}

/* ===== Newsletter Signup (global, compact, responsive) ===== */
.footer-newsletter {
    text-align: center;
    padding: var(--space-4) 0;
    margin: 0;
}

.newsletter-signup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-wrap: nowrap;
}
.newsletter-signup input[type="email"],
.newsletter-signup input[type="text"] {
    flex: 1 1 200px;
    min-width: 160px;
    height: 28px;
    padding: 2px 6px;
    font-size: 12px;
    border: 1px solid var(--color-neutral-300);
    border-radius: 4px;
}
.newsletter-signup .subscribe-btn {
    padding: 2px 8px;
    height: 28px;
    border-radius: 4px;
    font-size: 12px;
}
@media (max-width: 768px) {
    /* keep single-line, compact on mobile too */
}

/* ===== HARD OVERRIDES: Newsletter size (do not expand) ===== */
#newsletter-form input[type="email"],
#newsletter-form input[type="text"] {
    flex: 0 0 120px !important;
    display: inline-block !important;
    width: 120px !important;
    max-width: 120px !important;
    height: 26px !important;
    padding: 2px 6px !important;
    font-size: 12px !important;
    border-radius: 4px !important;
}
#newsletter-form .subscribe-btn {
    height: 26px !important;
    padding: 2px 8px !important;
    font-size: 12px !important;
    width: auto !important;
    white-space: nowrap !important;
}

/* ===== GENERIC ADMIN MODALS ===== */
.admin-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(2px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    z-index: var(--z-modal);
}

.admin-modal-overlay.flex { display: flex; }

.admin-modal-dialog {
    background: #fff;
    border: 1px solid var(--color-neutral-200);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    width: 100%;
    max-width: 560px;
    overflow: hidden;
    animation: slideUp 0.25s ease-out;
}

.admin-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--color-neutral-200);
    background: var(--color-neutral-50);
}

.admin-modal-title { font-size: var(--text-lg); font-weight: var(--font-semibold); color: var(--color-neutral-900); margin: 0; }

.admin-modal-close {
    background: none; border: 0; color: var(--color-neutral-500); cursor: pointer; font-size: var(--text-xl);
}
.admin-modal-close:hover { color: var(--color-neutral-700); }

.admin-modal-body { padding: var(--space-5); }
.admin-modal-actions { padding: var(--space-4) var(--space-5); border-top: 1px solid var(--color-neutral-200); display: flex; justify-content: flex-end; gap: var(--space-2); background: var(--color-neutral-50); }

@media (max-width: 480px) {
    .admin-modal-dialog { max-width: 90%; }
    .admin-modal-body { padding: var(--space-4); }
    .admin-modal-header { padding: var(--space-3) var(--space-4); }
    .admin-modal-actions { padding: var(--space-3) var(--space-4); }
}

/* Charts */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}
.chart-card { background: white; border: 1px solid var(--color-neutral-300); border-radius: var(--radius-md); padding: var(--space-3); }
.chart-title { font-size: var(--text-sm); font-weight: var(--font-semibold); margin-bottom: var(--space-2); color: var(--color-neutral-900); }
.chart-container { height: 192px; }

/* Pipeline */
.pipeline-container { background: white; border: 1px solid var(--color-neutral-300); border-radius: var(--radius-md); padding: var(--space-3); margin-bottom: var(--space-4); }
.pipeline-title { font-size: var(--text-sm); font-weight: var(--font-semibold); margin-bottom: var(--space-2); color: var(--color-neutral-900); }
.pipeline-stages { display: flex; gap: var(--space-1); }
.pipeline-stage { width: 20%; text-align: center; padding: var(--space-2); border-radius: var(--radius-md); border: 1px solid; }

.pipeline-stage-warning { background: var(--color-warning-50); border-color: var(--color-warning-300); }
.pipeline-stage-primary  { background: var(--color-primary-50); border-color: var(--color-primary-300); }
.pipeline-stage-info     { background: var(--color-info-50); border-color: var(--color-info-300); }
.pipeline-stage-accent   { background: var(--color-accent-50); border-color: var(--color-accent-300); }
.pipeline-stage-success  { background: var(--color-success-50); border-color: var(--color-success-300); }

.pipeline-icon {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto var(--space-1);
    font-size: var(--text-xs);
}
.pipeline-stage-warning .pipeline-icon { background: var(--color-warning-100); color: var(--color-warning-600); }
.pipeline-stage-primary .pipeline-icon { background: var(--color-primary-100); color: var(--color-primary-600); }
.pipeline-stage-info .pipeline-icon    { background: var(--color-info-100); color: var(--color-info-600); }
.pipeline-stage-accent .pipeline-icon  { background: var(--color-accent-100); color: var(--color-accent-600); }
.pipeline-stage-success .pipeline-icon { background: var(--color-success-100); color: var(--color-success-600); }

.pipeline-number { font-size: var(--text-sm); font-weight: var(--font-bold); margin-bottom: var(--space-1); }
.pipeline-stage-warning .pipeline-number { color: var(--color-warning-800); }
.pipeline-stage-primary .pipeline-number { color: var(--color-primary-800); }
.pipeline-stage-info .pipeline-number    { color: var(--color-info-800); }
.pipeline-stage-accent .pipeline-number  { color: var(--color-accent-800); }
.pipeline-stage-success .pipeline-number { color: var(--color-success-800); }

.pipeline-label { font-size: var(--text-xs); margin-bottom: var(--space-1); }
.pipeline-stage-warning .pipeline-label { color: var(--color-warning-700); }
.pipeline-stage-primary .pipeline-label { color: var(--color-primary-700); }
.pipeline-stage-info .pipeline-label    { color: var(--color-info-700); }
.pipeline-stage-accent .pipeline-label  { color: var(--color-accent-700); }
.pipeline-stage-success .pipeline-label { color: var(--color-success-700); }

.pipeline-btn {
    padding: 2px 4px; color: white; border-radius: var(--radius-sm);
    font-size: var(--text-xs); text-decoration: none; display: inline-block;
}
.pipeline-stage-warning .pipeline-btn { background: var(--color-warning-600); }
.pipeline-stage-primary .pipeline-btn { background: var(--color-primary-600); }
.pipeline-stage-info .pipeline-btn    { background: var(--color-info-600); }
.pipeline-stage-accent .pipeline-btn  { background: var(--color-accent-600); }
.pipeline-stage-success .pipeline-btn { background: var(--color-success-600); }
.pipeline-btn:hover { opacity: 0.9; color: white; text-decoration: none; }

/* ===== THIN HERO SECTION ===== */
.hero-thin {
    background: linear-gradient(135deg, var(--color-primary-600) 0%, var(--color-primary-700) 100%);
    color: white;
    padding: var(--space-8) 0;
    text-align: center;
}

.hero-title { font-size: var(--text-2xl); font-weight: var(--font-bold); margin-bottom: var(--space-2); color: white; }
.hero-subtitle { font-size: var(--text-lg); color: rgba(255, 255, 255, 0.9); margin: 0; }

/* ===== PRODUCTS SECTION ===== */
.products-section { padding: var(--space-8) 0; }
.products-header { text-align: center; margin-bottom: var(--space-8); }
.products-title { font-size: var(--text-xl); font-weight: var(--font-bold); color: var(--color-neutral-900); margin-bottom: var(--space-2); }
.products-count { color: var(--color-neutral-600); font-size: var(--text-base); margin: 0; }

/* ===== PLAY PAGE ===== */
.play-hero {
    background: linear-gradient(135deg, var(--color-primary-600) 0%, var(--color-primary-700) 100%);
    color: white;
    padding: var(--space-12) 0;
    text-align: center;
}

.play-hero-content { max-width: 600px; margin: 0 auto; }
.play-title { font-size: var(--text-3xl); font-weight: var(--font-bold); margin-bottom: var(--space-4); color: white; }
.play-subtitle { font-size: var(--text-lg); color: rgba(255, 255, 255, 0.9); margin: 0; }

.play-section { padding: var(--space-12) 0; }

.play-content { max-width: 800px; margin: 0 auto; text-align: center; }
.play-content h2 { font-size: var(--text-2xl); font-weight: var(--font-bold); color: var(--color-neutral-900); margin-bottom: var(--space-6); }
.play-content p { font-size: var(--text-lg); color: var(--color-neutral-700); line-height: 1.6; margin-bottom: var(--space-4); }

.temperature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
    margin-top: var(--space-8);
}

/* Heat compare (three columns) */
.heat-compare { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); margin-top: var(--space-6); }
@media (max-width: 960px) { .heat-compare { grid-template-columns: 1fr; } }
.heat-card { background: white; border: 1px solid var(--color-neutral-200); border-radius: var(--radius-xl); padding: var(--space-5); box-shadow: var(--shadow-md); }
.heat-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-3); }
.heat-pill { background: var(--color-neutral-100); color: var(--color-neutral-800); padding: var(--space-1) var(--space-3); border-radius: var(--radius-full); font-weight: var(--font-bold); font-size: var(--text-sm); }
.level-high .heat-pill { background: #fee2e2; color: var(--color-error-700); }
.level-medium .heat-pill { background: #fef3c7; color: var(--color-warning-700); }
.level-low .heat-pill { background: #dbeafe; color: var(--color-info-700); }
.heat-range { font-size: var(--text-sm); color: var(--color-neutral-700); }
.heat-desc { color: var(--color-neutral-600); margin-bottom: var(--space-3); }
.metric-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.metric-item { color: var(--color-neutral-700); }

/* Compact mobile layout for heat cards */
@media (max-width: 768px) {
    .heat-compare { gap: var(--space-2); }
    .heat-card { padding: var(--space-2); border-radius: var(--radius-md); box-shadow: none; }
    .heat-card-header { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--space-2); margin-bottom: var(--space-1); }
    .heat-pill { font-size: var(--text-xs); padding: 2px 8px; }
    .heat-range { font-size: var(--text-xs); }
    .heat-desc { display: none; }
    .metric-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
    .metric-item { font-size: var(--text-xs); white-space: nowrap; }
    .metric-item i { font-size: 0.8em; }
}

@media (max-width: 420px) {
    .heat-card { padding: var(--space-1); }
    .heat-card-header { gap: var(--space-1); }
}

.temp-card {
    background: white;
    border: 1px solid var(--color-neutral-200);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-fast);
    position: relative;
}
.temp-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0.6;
}
.temp-card:hover { box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); transform: translateY(-2px); }

.temp-card h3 { font-size: var(--text-xl); font-weight: var(--font-semibold); color: var(--color-neutral-900); margin-bottom: var(--space-3); }
.temp-card p { color: var(--color-neutral-600); margin-bottom: var(--space-4); }

.temp-range { padding: var(--space-1) var(--space-3); border-radius: var(--radius-full); font-weight: var(--font-semibold); display: inline-block; font-size: var(--text-sm); }

.temp-card-hot { border-left: 4px solid #dc2626; }
.temp-range-hot { background: #fef2f2; color: #dc2626; }

.temp-card-medium { border-left: 4px solid #eab308; }
.temp-range-medium { background: #fefce8; color: #ca8a04; }

.temp-card-low { border-left: 4px solid #2563eb; }
.temp-range-low { background: #eff6ff; color: #2563eb; }

.safety-section { background: var(--color-neutral-50); color: var(--color-neutral-800); }
.safety-section .section-title { color: var(--color-neutral-900); }
.safety-section .section-subtitle { color: var(--color-neutral-600); }

/* Safety do/don't panels - light theme */
.safety-panels { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); margin-top: var(--space-6); }
.safety-panel { background: white; border: 1px solid var(--color-neutral-200); border-radius: var(--radius-xl); padding: var(--space-5); }
.panel-title { font-size: var(--text-xl); color: var(--color-neutral-900); margin-bottom: var(--space-3); }
.panel-list { list-style: disc; padding-left: var(--space-6); color: var(--color-neutral-700); }
.safety-panel.do { border-color: rgba(34, 197, 94, 0.25); }
.safety-panel.dont { border-color: rgba(239, 68, 68, 0.25); }
@media (max-width: 900px) { .safety-panels { grid-template-columns: 1fr; } }

.safety-content { max-width: 1000px; margin: 0 auto; text-align: center; }
.safety-content h2 { font-size: var(--text-2xl); font-weight: var(--font-bold); color: var(--color-neutral-900); margin-bottom: var(--space-8); }

.safety-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
    margin-top: var(--space-6);
}

.safety-item {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    text-align: left;
    transition: var(--transition-fast);
}
.safety-item:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); transform: translateY(-2px); }
.safety-item h4 { font-size: var(--text-lg); font-weight: var(--font-semibold); color: white; margin-bottom: var(--space-2); }
.safety-item p { color: rgba(255, 255, 255, 0.85); margin: 0; }

.aftercare-list { text-align: left; max-width: 600px; margin: 0 auto var(--space-4); }
.aftercare-list li { margin-bottom: var(--space-2); color: var(--color-neutral-700); }
.aftercare-note { font-style: italic; color: var(--color-neutral-600); }

.cta-section { background: var(--color-neutral-900); color: white; position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; inset: 0; background: var(--gradient-hero); opacity: 0.9; z-index: 0; }
.cta-content { position: relative; z-index: 1; }

/* Shared helpers for Play page */
.icon-text { display: inline-flex; align-items: center; gap: 0.5ch; white-space: nowrap; }
.feature-list { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: center; padding: 0; margin: 0; list-style: none; }
.feature-item { display: inline-flex; align-items: center; gap: var(--space-1); padding: var(--space-1) var(--space-2); background: var(--color-neutral-100); border-radius: var(--radius-md); font-size: var(--text-xs); color: var(--color-neutral-700); }
.section-header { text-align: center; margin-bottom: var(--space-8); }
.section-badge { display: inline-flex; align-items: center; gap: var(--space-1); padding: var(--space-1) var(--space-3); background: var(--gradient-accent); color: white; border-radius: var(--radius-full); font-size: var(--text-xs); font-weight: var(--font-semibold); margin-bottom: var(--space-2); box-shadow: var(--shadow-md); }
.section-title { font-family: var(--font-display); font-size: var(--text-3xl); font-weight: var(--font-bold); color: var(--color-neutral-900); margin-bottom: var(--space-2); line-height: var(--leading-tight); }
.section-subtitle { font-size: var(--text-lg); color: var(--color-neutral-600); line-height: var(--leading-relaxed); max-width: 640px; margin: 0 auto; }
.temp-icon { width: 48px; height: 48px; border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; margin: 0 auto var(--space-3); color: white; background: var(--gradient-primary); font-size: var(--text-lg); }
.temp-card-hot .temp-icon { background: linear-gradient(135deg, var(--color-error-500) 0%, var(--color-error-600) 100%); }
.temp-card-medium .temp-icon { background: var(--gradient-primary); }
.temp-card-low .temp-icon { background: linear-gradient(135deg, var(--color-success-500) 0%, var(--color-success-600) 100%); }
.temp-header { text-align: center; margin-bottom: var(--space-3); }
.temp-description { text-align: center; color: var(--color-neutral-600); line-height: var(--leading-relaxed); margin-bottom: var(--space-3); font-size: var(--text-sm); }

/* Fine-tune hero spacing on Play page within the layout hero */
.play-hero .hero-title { display: inline-flex; align-items: baseline; gap: 0.5ch; white-space: nowrap; }

/* Section badge variants */
.safety-badge { background: var(--gradient-warm); }

/* Safety icons */
.safety-icon { width: 40px; height: 40px; border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-2); font-size: var(--text-lg); color: white; }
.safety-icon.temperature { background: linear-gradient(135deg, var(--color-error-500) 0%, var(--color-error-600) 100%); }
.safety-icon.test { background: linear-gradient(135deg, var(--color-warning-500) 0%, var(--color-warning-600) 100%); }
.safety-icon.zones { background: linear-gradient(135deg, #ec4899 0%, #db2777 100%); }
.safety-icon.communication { background: linear-gradient(135deg, var(--color-info-500) 0%, var(--color-info-600) 100%); }
.safety-icon.cooling { background: linear-gradient(135deg, var(--color-accent-500) 0%, var(--color-accent-600) 100%); }

/* Safety warning callout */
.safety-warning { margin-top: var(--space-12); padding: var(--space-5); background: var(--gradient-card); border: 1px solid var(--color-neutral-200); border-radius: var(--radius-xl); display: flex; align-items: center; gap: var(--space-4); max-width: 800px; margin-left: auto; margin-right: auto; }
.warning-icon { width: 48px; height: 48px; border-radius: var(--radius-full); background: var(--gradient-warm); display: flex; align-items: center; justify-content: center; font-size: var(--text-xl); color: white; flex-shrink: 0; }
.warning-content h4 { font-family: var(--font-display); font-size: var(--text-lg); font-weight: var(--font-bold); color: var(--color-neutral-900); margin-bottom: var(--space-1); }
.warning-content p { color: var(--color-neutral-700); line-height: var(--leading-relaxed); margin: 0; font-style: italic; }

/* Experience timeline */
.timeline { position: relative; list-style: none; padding-left: var(--space-8); display: grid; gap: var(--space-5); }
.timeline::before { content: ''; position: absolute; left: var(--space-4); top: 0; bottom: 0; width: 2px; background: var(--color-neutral-200); }
.timeline-item { position: relative; }
.timeline-dot { position: absolute; left: calc(var(--space-4) - 6px); top: 4px; width: 12px; height: 12px; border-radius: var(--radius-full); background: var(--gradient-warm); box-shadow: var(--shadow-glow); }
.timeline-content h4 { font-size: var(--text-lg); margin-bottom: var(--space-1); }
.timeline-content p { margin: 0; color: var(--color-neutral-600); }

/* Scene */
.scene-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-4); margin-top: var(--space-6); }
.ideas-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
@media (max-width: 1100px) { .ideas-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .ideas-grid { grid-template-columns: 1fr; } }
.scene-card { background: white; border-radius: var(--radius-lg); padding: var(--space-4); text-align: center; box-shadow: var(--shadow-md); transition: var(--transition-fast); position: relative; overflow: hidden; }
.scene-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gradient-secondary); transform: scaleX(0); transition: var(--transition-fast); }
.scene-card:hover::before { transform: scaleX(1); }
.scene-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.scene-icon { width: 40px; height: 40px; border-radius: var(--radius-full); background: var(--gradient-secondary); display: flex; align-items: center; justify-content: center; margin: 0 auto var(--space-2); font-size: var(--text-lg); color: white; }
.scene-card h4 { font-family: var(--font-display); font-size: var(--text-lg); font-weight: var(--font-semibold); color: var(--color-neutral-900); margin-bottom: var(--space-3); }
.scene-card p { color: var(--color-neutral-600); line-height: var(--leading-relaxed); margin: 0; font-size: var(--text-sm); }

/* Aftercare */
.aftercare-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-4); margin-top: var(--space-6); }
.aftercare-card { background: white; border-radius: var(--radius-lg); padding: var(--space-4); text-align: center; box-shadow: var(--shadow-md); transition: var(--transition-fast); border: 2px solid transparent; }
.aftercare-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--color-accent-200); }
.aftercare-icon { width: 50px; height: 50px; border-radius: var(--radius-full); background: var(--gradient-accent); display: flex; align-items: center; justify-content: center; margin: 0 auto var(--space-3); font-size: var(--text-xl); color: white; }
.aftercare-card h4 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: var(--font-bold); color: var(--color-neutral-900); margin-bottom: var(--space-4); }
.aftercare-card p { color: var(--color-neutral-600); line-height: var(--leading-relaxed); margin: 0; }

/* CTA inner elements */
.cta-icon { width: 60px; height: 60px; border-radius: var(--radius-full); background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); border: 2px solid rgba(255, 255, 255, 0.2); display: flex; align-items: center; justify-content: center; margin: 0 auto var(--space-4); font-size: var(--text-2xl); color: white; }
.cta-title { font-family: var(--font-display); font-size: var(--text-5xl); font-weight: var(--font-bold); color: white; margin-bottom: var(--space-6); line-height: var(--leading-tight); }
.cta-subtitle { font-size: var(--text-xl); color: rgba(255, 255, 255, 0.9); line-height: var(--leading-relaxed); margin-bottom: var(--space-8); }
.cta-actions { display: flex; gap: var(--space-4); justify-content: center; flex-wrap: wrap; }

/* Skip link for keyboard users */
.skip-link { position: absolute; top: -40px; left: 6px; background: var(--color-primary-600); color: white; padding: 8px; text-decoration: none; border-radius: 4px; z-index: 1000; }
.skip-link:focus { top: 6px; }

/* Page intro (Play) */
.page-intro { background: linear-gradient(135deg, var(--color-neutral-50) 0%, #ffffff 100%); padding: var(--space-12) 0 var(--space-10); border-bottom: 1px solid var(--color-neutral-200); }
.page-intro-header { text-align: center; max-width: 900px; margin: 0 auto; }
.page-eyebrow { color: var(--color-primary-600); font-weight: var(--font-semibold); letter-spacing: 0.06em; text-transform: uppercase; font-size: var(--text-sm); margin-bottom: var(--space-2); }
.page-title { font-family: var(--font-display); font-size: var(--text-4xl); font-weight: var(--font-extrabold); color: var(--color-neutral-900); margin-bottom: var(--space-3); line-height: var(--leading-tight); }
.page-lead { font-size: var(--text-lg); color: var(--color-neutral-600); margin: 0 auto var(--space-6); max-width: 760px; line-height: var(--leading-relaxed); }
.page-actions { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; }

/* Play page subnav */
.play-subnav { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, 0.8); backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--color-neutral-200); }
.play-subnav-list { display: flex; gap: var(--space-4); align-items: center; padding: var(--space-2) 0; margin: 0; list-style: none; overflow-x: auto; }
.play-subnav-link { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--color-neutral-700); text-decoration: none; padding: var(--space-2) var(--space-3); border-radius: var(--radius-full); }
.play-subnav-link:hover { background: var(--color-neutral-100); color: var(--color-neutral-900); text-decoration: none; }
.play-subnav-link i { color: var(--color-primary-600); }

/* Section variants for subtle alternation */
.section-muted { background: var(--color-neutral-50); }

/* Steps (Experience) */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-4); margin-top: var(--space-6); }
.step-card { background: white; border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: var(--shadow-md); border: 1px solid var(--color-neutral-200); }
.step-index { width: 36px; height: 36px; border-radius: var(--radius-full); background: var(--gradient-warm); color: white; display: flex; align-items: center; justify-content: center; font-weight: var(--font-bold); margin-bottom: var(--space-3); }
.step-card h4 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.step-card p { margin: 0; color: var(--color-neutral-600); }

/* Aftercare two-column */
.aftercare-two-col { display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--space-6); margin-top: var(--space-6); align-items: start; }
.aftercare-list { list-style: none; padding: 0; margin: 0; }
.aftercare-list li { margin-bottom: var(--space-3); color: var(--color-neutral-700); }
.aftercare-callout { background: var(--gradient-card); border: 1px solid var(--color-neutral-200); border-radius: var(--radius-xl); padding: var(--space-5); display: flex; gap: var(--space-3); align-items: flex-start; }
.aftercare-callout i { color: var(--color-accent-500); font-size: var(--text-2xl); margin-top: 2px; }
.aftercare-callout p { margin: 0; font-style: italic; color: var(--color-neutral-700); }
@media (max-width: 900px) { .aftercare-two-col { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 900px; margin: 0 auto; }
.faq-item { border: 1px solid var(--color-neutral-200); border-radius: var(--radius-lg); background: white; overflow: hidden; }
.faq-item + .faq-item { margin-top: var(--space-3); }
.faq-summary { cursor: pointer; list-style: none; padding: var(--space-4) var(--space-5); position: relative; font-weight: var(--font-semibold); color: var(--color-neutral-900); }
.faq-summary::-webkit-details-marker { display: none; }
.faq-item[open] .faq-summary { background: var(--color-neutral-50); }
.faq-content { padding: var(--space-4) var(--space-5); color: var(--color-neutral-700); border-top: 1px solid var(--color-neutral-200); }

/* Responsive adjustments */
@media (max-width: 768px) {
    .play-subnav { top: 0; }
    .section-title { font-size: var(--text-2xl); }
    .cta-title { font-size: var(--text-4xl); }
}

/* Intro section */
.intro-section { background: linear-gradient(135deg, var(--color-neutral-50) 0%, #ffffff 100%); padding: var(--space-12) 0 var(--space-10); border-bottom: 1px solid var(--color-neutral-200); }
.intro-title { font-family: var(--font-display); font-size: var(--text-4xl); font-weight: var(--font-extrabold); color: var(--color-neutral-900); margin-bottom: var(--space-3); line-height: var(--leading-tight); }
.intro-subtitle { font-size: var(--text-lg); color: var(--color-neutral-600); margin: 0 auto var(--space-6); max-width: 760px; line-height: var(--leading-relaxed); }
.intro-actions { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; }

/* Heat meter */
.heat-meter { height: 8px; background: var(--color-neutral-100); border-radius: var(--radius-full); margin: var(--space-3) auto; width: 160px; position: relative; overflow: hidden; }
.heat-meter-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 66%; background: var(--gradient-primary); border-radius: var(--radius-full); box-shadow: var(--shadow-glow); }
.level-high .heat-meter-bar { width: 100%; background: linear-gradient(90deg, var(--color-error-500), var(--color-error-600)); }
.level-medium .heat-meter-bar { width: 66%; background: linear-gradient(90deg, var(--color-primary-500), var(--color-primary-600)); }
.level-low .heat-meter-bar { width: 33%; background: linear-gradient(90deg, var(--color-success-500), var(--color-success-600)); }

/* Safety grid tightening on large screens */
.safety-grid.two-col { grid-template-columns: repeat(2, minmax(280px, 1fr)); }
@media (max-width: 900px) { .safety-grid.two-col { grid-template-columns: 1fr; } }

/* Horizontal scroll helper */
.h-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); overflow-x: auto; gap: var(--space-4); scroll-snap-type: x mandatory; padding-bottom: var(--space-2); }
.h-scroll > * { scroll-snap-align: start; }
.cta-content { max-width: 600px; margin: 0 auto; text-align: center; }
.cta-content h2 { font-size: var(--text-2xl); font-weight: var(--font-bold); color: white; margin-bottom: var(--space-4); }
.cta-content p { color: rgba(255, 255, 255, 0.9); margin-bottom: var(--space-6); }
