/* ═══════════════════════════════════════════════════════════════
   BAKERY ORANGE — Artisan Bakery POS Theme (Glass UI Edition)
   Crafted to match the Bakery Shop signature logo (`#EA580C`)
   with warm dark espresso surfaces for Dark Mode & warm frosted cream
   for Light Mode, with high contrast & smooth micro-interactions.
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Outfit:wght@500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* ── Liquid Crystal & Glassmorphism Surfaces (Sleek Dark Mode) ── */
    --bg-primary: #0f1115;
    /* Sleek neutral dark */
    --bg-secondary: rgba(24, 26, 32, 0.85);
    --bg-tertiary: rgba(32, 35, 42, 0.75);
    --bg-card: rgba(40, 44, 52, 0.65);
    --bg-glass: rgba(255, 255, 255, 0.05);
    --bg-glass-hover: rgba(255, 255, 255, 0.09);

    /* ── Brand Bakery Orange Palette ── */
    --orange-50: #fff7ed;
    --orange-100: #ffedd5;
    --orange-200: #fed7aa;
    --orange-300: #fdba74;
    --orange-400: #fb923c;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --orange-700: #c2410c;
    --orange-800: #9a3412;
    --orange-900: #7c2d12;

    /* ── Primary Brand Accents (Vibrant Bakery Orange) ── */
    --accent-orange: #ff7b00;
    --accent-orange-light: #ff9933;
    --accent-orange-dark: #cc5200;

    /* ── Compatibility Aliases for Gold/Primary (mapped to Orange) ── */
    --accent-gold: #ff7b00;
    --accent-gold-light: #ff9933;
    --accent-gold-dark: #cc5200;
    --gold-50: #fff7ed;
    --gold-100: #ffedd5;
    --gold-200: #fed7aa;
    --gold-300: #fdba74;
    --gold-400: #ffb84d;
    --gold-500: #ff9933;
    --gold-600: #ff7b00;
    --gold-700: #cc5200;
    --gold-800: #993d00;
    --gold-900: #662900;
    --gold: #ff7b00;

    --accent-slate: #94a3b8;
    --accent-slate-light: #cbd5e1;
    --accent-slate-dark: #64748b;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-cyan: #ea580c;

    /* ── Status Colors ── */
    --info: #3b82f6;
    --warning: #f59e0b;
    --danger: #ef4444;
    --success: #10b981;
    --info-bg: rgba(59, 130, 246, 0.12);
    --warning-bg: rgba(245, 158, 11, 0.12);
    --danger-bg: rgba(239, 68, 68, 0.12);
    --success-bg: rgba(16, 185, 129, 0.12);

    /* ── Gradients ── */
    --gradient-gold: linear-gradient(135deg, #ff9933, #ff7b00, #cc5200);
    --gradient-gold-subtle: linear-gradient(135deg, rgba(255, 123, 0, 0.20), rgba(204, 82, 0, 0.08));
    --gradient-gold-shimmer: linear-gradient(90deg, #cc5200, #ff9933, #ff7b00, #ff9933, #cc5200);
    --gradient-primary: linear-gradient(135deg, #ff9933, #ff7b00);
    --gradient-mixed: linear-gradient(135deg, #ea580c, #94a3b8);
    --gradient-success: linear-gradient(135deg, #10b981, #059669);
    --gradient-danger: linear-gradient(135deg, #ef4444, #dc2626);
    --gradient-warning: linear-gradient(135deg, #f59e0b, #d97706);
    --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));

    /* ── Text ── */
    --text-primary: #fff7ed;
    --text-secondary: #ffedd5;
    --text-muted: #fed7aa;
    --text-accent: #fb923c;
    --text-gold: #f97316;

    /* ── Borders (Crystal Edge) ── */
    --border-color: rgba(255, 255, 255, 0.12);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-gold: rgba(234, 88, 12, 0.40);
    --border-gold-strong: rgba(234, 88, 12, 0.60);
    --border-glow: rgba(249, 115, 22, 0.45);

    /* ── Liquid Crystal Shadows ── */
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.1);
    --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.6), inset 0 1px 3px rgba(255, 255, 255, 0.1);
    --shadow-gold: 0 8px 32px rgba(234, 88, 12, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.2);
    --shadow-gold-md: 0 12px 48px rgba(234, 88, 12, 0.4), inset 0 1px 3px rgba(255, 255, 255, 0.25);
    --shadow-gold-lg: 0 24px 80px rgba(234, 88, 12, 0.5), inset 0 1px 4px rgba(255, 255, 255, 0.3);
    --shadow-glow: 0 0 24px rgba(249, 115, 22, 0.35), 0 0 8px rgba(249, 115, 22, 0.2);
    --shadow-glow-slate: 0 0 24px rgba(148, 163, 184, 0.2), 0 0 8px rgba(148, 163, 184, 0.1);

    /* ── Layout (Smooth Corners) ── */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    /* ── Transitions (Liquid Motion) ── */
    --transition-fast: 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-normal: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-slow: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* ── Blur (Heavy Crystal Effect) ── */
    --blur-sm: blur(12px) saturate(150%);
    --blur-md: blur(24px) saturate(180%);
    --blur-lg: blur(40px) saturate(200%);
    --blur-xl: blur(60px) saturate(220%);
}

/* ═══════════════════════════════════════════
   LIGHT THEME — Modern Crystal & Bakery Orange
   ═══════════════════════════════════════════ */
[data-theme="light"] {
    --bg-primary: #fffdfa;
    /* Warmer bakery cream */
    --bg-secondary: rgba(255, 252, 245, 0.85);
    --bg-tertiary: rgba(255, 248, 235, 0.75);
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-glass: rgba(255, 255, 255, 0.6);
    --bg-glass-hover: rgba(255, 255, 255, 0.8);

    --accent-orange: #ff7b00;
    --accent-orange-light: #ff9933;
    --accent-orange-dark: #cc5200;

    --accent-gold: #ff7b00;
    --accent-gold-light: #ff9933;
    --accent-gold-dark: #cc5200;
    --gold: #ff7b00;

    --accent-slate: #475569;
    --accent-slate-light: #64748b;
    --accent-slate-dark: #334155;
    --accent-green: #059669;
    --accent-red: #dc2626;
    --accent-blue: #2563eb;
    --accent-purple: #7c3aed;
    --accent-cyan: #c2410c;

    --info: #2563eb;
    --warning: #d97706;
    --danger: #dc2626;
    --success: #059669;
    --info-bg: rgba(37, 99, 235, 0.12);
    --warning-bg: rgba(217, 119, 6, 0.12);
    --danger-bg: rgba(220, 38, 38, 0.12);
    --success-bg: rgba(5, 150, 105, 0.12);

    --gradient-gold: linear-gradient(135deg, #ff9933, #ff7b00, #cc5200);
    --gradient-gold-subtle: linear-gradient(135deg, rgba(255, 123, 0, 0.15), rgba(204, 82, 0, 0.05));
    --gradient-primary: linear-gradient(135deg, #ff9933, #ff7b00);
    --gradient-mixed: linear-gradient(135deg, #c2410c, #64748b);
    --gradient-success: linear-gradient(135deg, #059669, #047857);
    --gradient-danger: linear-gradient(135deg, #dc2626, #b91c1c);
    --gradient-warning: linear-gradient(135deg, #d97706, #b45309);
    --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4));

    --text-primary: #1c1917;
    --text-secondary: #44403c;
    --text-muted: #78716c;
    --text-accent: #ea580c;
    --text-gold: #c2410c;

    --border-color: rgba(255, 255, 255, 0.8);
    --border-subtle: rgba(255, 255, 255, 0.5);
    --border-gold: rgba(234, 88, 12, 0.4);
    --border-gold-strong: rgba(234, 88, 12, 0.6);
    --border-glow: rgba(234, 88, 12, 0.4);

    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.04), inset 0 1px 1px rgba(255, 255, 255, 0.8);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.06), inset 0 1px 2px rgba(255, 255, 255, 0.9);
    --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.08), inset 0 1px 3px rgba(255, 255, 255, 1);
    --shadow-gold: 0 8px 32px rgba(234, 88, 12, 0.15), inset 0 1px 2px rgba(255, 255, 255, 0.9);
    --shadow-gold-md: 0 12px 48px rgba(234, 88, 12, 0.2), inset 0 1px 3px rgba(255, 255, 255, 1);
    --shadow-gold-lg: 0 24px 80px rgba(234, 88, 12, 0.25), inset 0 1px 4px rgba(255, 255, 255, 1);
    --shadow-glow: 0 0 24px rgba(234, 88, 12, 0.2);
    --shadow-glow-slate: 0 0 24px rgba(100, 116, 139, 0.1);
}

/* ── Instant, zero-lag theme transition (snappy color switching) ── */
html.theme-transition,
html.theme-transition *,
html.theme-transition *::before,
html.theme-transition *::after {
    transition: background 0.08s ease-out, background-color 0.08s ease-out, border-color 0.08s ease-out, color 0.08s ease-out, box-shadow 0.08s ease-out, opacity 0.08s ease-out !important;
}

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

html {
    font-size: 14px;
}

body {
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.sidebar-brand-text,
.topbar-title,
.login-brand-title,
.card-title,
.modal-title,
.nav-section-title {
    font-family: 'Fredoka', 'Outfit', sans-serif;
    letter-spacing: -0.01em;
}

/* ── Ambient bakery background ── */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/images/bakery.webp') center / cover no-repeat;
    /* FIX: Removed filter: blur() because it causes severe lag/low FPS on full-screen fixed layers. */
    opacity: 0.95;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    background:
        linear-gradient(135deg,
            rgba(7, 8, 15, 0.80) 0%,
            rgba(12, 12, 22, 0.68) 50%,
            rgba(7, 8, 15, 0.80) 100%);
}

[data-theme="light"] body::before {
    filter: blur(0.5px) saturate(1.15) brightness(1.15);
}

[data-theme="light"] body::after {
    background:
        linear-gradient(135deg,
            rgba(245, 242, 235, 0.35) 0%,
            rgba(255, 253, 248, 0.25) 50%,
            rgba(238, 234, 226, 0.35) 100%);
}

/* Make all text bold in light mode for better visibility */
[data-theme="light"] body,
[data-theme="light"] body * {
    font-weight: 600;
}

[data-theme="light"] .font-bold,
[data-theme="light"] .stat-value,
[data-theme="light"] .card-title,
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6 {
    font-weight: 700;
}

[data-theme="light"] .font-medium {
    font-weight: 600;
}

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

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

[data-theme="light"] a {
    color: var(--accent-gold-dark);
}

[data-theme="light"] a:hover {
    color: #7a5a07;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(136, 152, 170, 0.22);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(136, 152, 170, 0.38);
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.18);
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.32);
}

/* ── Glass Panels ── */
.glass {
    background: var(--bg-card);
    backdrop-filter: var(--blur-lg) saturate(160%);
    -webkit-backdrop-filter: var(--blur-lg) saturate(160%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.glass-strong {
    background: rgba(12, 12, 22, 0.68);
    backdrop-filter: var(--blur-xl) saturate(180%);
    -webkit-backdrop-filter: var(--blur-xl) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .glass-strong {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.80);
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.90);
}


/* ═══════════════════════════════════════════
   BUTTONS — Refined glass-gold-accented
   ═══════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
    transition: left 0.55s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #ff7b00, #ea580c) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(255, 123, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: var(--blur-sm);
}

.btn-primary i,
.btn-primary i.fas,
.btn-primary i.far {
    color: #ffffff !important;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #ff8c1a, #ff7b00) !important;
    box-shadow: 0 6px 20px rgba(255, 123, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
    color: #ffffff !important;
}

.btn-success {
    background: var(--gradient-success);
    color: white;
    border: 1px solid rgba(16, 185, 129, 0.25);
    box-shadow: 0 2px 12px rgba(16, 185, 129, 0.14);
    backdrop-filter: var(--blur-sm);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(16, 185, 129, 0.25);
}

.btn-danger {
    background: var(--gradient-danger);
    color: white;
    border: 1px solid rgba(239, 68, 68, 0.25);
    box-shadow: 0 2px 12px rgba(239, 68, 68, 0.14);
    backdrop-filter: var(--blur-sm);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(239, 68, 68, 0.22);
}

.btn-warning {
    background: var(--gradient-warning);
    color: #1a1a2e;
    border: 1px solid rgba(245, 158, 11, 0.22);
    backdrop-filter: var(--blur-sm);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    backdrop-filter: var(--blur-md);
    -webkit-backdrop-filter: var(--blur-md);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.10);
    color: var(--text-primary);
    border-color: var(--border-subtle);
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .btn-ghost {
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.80);
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: var(--shadow-sm);
}

/* Gold-tinted icon color inside ghost buttons */
.btn-ghost i.fas,
.btn-ghost i.far,
.btn-ghost i.fa {
    color: var(--accent-slate);
    transition: color var(--transition-fast);
}

.btn-ghost:hover i.fas,
.btn-ghost:hover i.far,
.btn-ghost:hover i.fa {
    color: var(--accent-gold);
}

.btn-icon {
    padding: 10px;
    width: 40px;
    height: 40px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.8rem;
}

.btn-xs {
    padding: 4px 10px;
    font-size: 0.75rem;
}

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

/* ═══════════════════════════════════════════
   ICONS — Slate default, Gold for accents
   ═══════════════════════════════════════════ */
i.fas,
i.far,
i.fa,
i.fab {
    color: var(--accent-slate);
}

.btn-primary i.fas,
.btn-primary i.far,
.btn-primary i.fa,
.btn-success i.fas,
.btn-success i.far,
.btn-success i.fa,
.btn-danger i.fas,
.btn-danger i.far,
.btn-danger i.fa,
.btn-warning i.fas,
.btn-warning i.far,
.btn-warning i.fa,
.pos-pay-btn i.fas,
.pos-pay-btn i.far,
.pos-pay-btn i.fa,
.pos-category-btn.active i.fas,
.pos-category-btn.active i.far,
.sidebar-brand-icon i,
.pos-sidebar-brand i,
.login-brand-icon i,
.success-icon i,
.sidebar-user-avatar i {
    color: inherit !important;
}

.toast.success i {
    color: var(--accent-green) !important;
}

.toast.error i {
    color: var(--accent-red) !important;
}

.toast.warning i {
    color: var(--accent-orange) !important;
}

.toast.info i {
    color: var(--accent-gold) !important;
}

[data-theme="light"] i.fas,
[data-theme="light"] i.far,
[data-theme="light"] i.fa,
[data-theme="light"] i.fab {
    color: var(--accent-slate-dark);
}

[data-theme="light"] .btn-primary i.fas,
[data-theme="light"] .btn-primary i.far,
[data-theme="light"] .btn-success i.fas,
[data-theme="light"] .btn-success i.far,
[data-theme="light"] .btn-danger i.fas,
[data-theme="light"] .btn-danger i.far,
[data-theme="light"] .btn-warning i.fas,
[data-theme="light"] .btn-warning i.far,
[data-theme="light"] .pos-pay-btn i.fas,
[data-theme="light"] .pos-pay-btn i.far,
[data-theme="light"] .pos-category-btn.active i.fas,
[data-theme="light"] .sidebar-brand-icon i,
[data-theme="light"] .pos-sidebar-brand i,
[data-theme="light"] .login-brand-icon i,
[data-theme="light"] .success-icon i {
    color: inherit !important;
}

/* Light theme: Ensure gold text is visible */
[data-theme="light"] .text-gold,
[data-theme="light"] .text-accent,
[data-theme="light"] .stat-label i {
    color: var(--accent-gold-dark) !important;
}

[data-theme="light"] .nav-section-title {
    color: var(--accent-slate-dark) !important;
}

/* Light theme: Make all orange-colored elements darker */
[data-theme="light"] .badge.badge-gold,
[data-theme="light"] .badge-warning {
    background: rgba(234, 88, 12, 0.12) !important;
    color: var(--accent-orange-dark) !important;
    border-color: rgba(234, 88, 12, 0.25) !important;
}


/* ═══════════════════════════════════════════
   FORM ELEMENTS
   ═══════════════════════════════════════════ */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: var(--blur-md);
    -webkit-backdrop-filter: var(--blur-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.10);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-slate);
    box-shadow: 0 0 0 3px rgba(136, 152, 170, 0.15), inset 0 1px 2px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.07);
}

[data-theme="light"] .form-control {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .form-control:focus {
    background: rgba(255, 255, 255, 0.90);
    box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
}

.form-control::placeholder {
    color: var(--text-muted);
}

/* SELECT DROPDOWNS - Universal styling for all select elements */
select.form-control,
select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    color-scheme: dark;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%23c9a84c' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 14px 14px !important;
    padding-right: 36px !important;
}

select.form-control option,
select.form-control optgroup,
select option,
select optgroup {
    background-color: #0f1422 !important;
    color: #e5e7eb !important;
    font-weight: 600 !important;
    padding: 8px 12px !important;
}

/* Light theme select styling */
[data-theme="light"] select.form-control,
[data-theme="light"] select {
    color-scheme: light !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%232d3748' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") !important;
    background-size: 14px 14px !important;
}

[data-theme="light"] select.form-control option,
[data-theme="light"] select.form-control optgroup,
[data-theme="light"] select option,
[data-theme="light"] select optgroup {
    background-color: #ffffff !important;
    color: #1a1e2e !important;
    font-weight: 700 !important;
    padding: 8px 12px !important;
}

/* Themed select - additional class for consistency */
.themed-select {
    color-scheme: dark;
}

.themed-select option,
.themed-select optgroup {
    background-color: #0f1422 !important;
    color: #e5e7eb !important;
}

[data-theme="light"] .themed-select {
    color-scheme: light !important;
}

[data-theme="light"] .themed-select option,
[data-theme="light"] .themed-select optgroup {
    background-color: #ffffff !important;
    color: #1a2033;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* DATE, TIME, and DATETIME inputs */
input[type="date"],
input[type="time"],
input[type="datetime-local"] {
    color-scheme: dark;
}

[data-theme="light"] input[type="date"],
[data-theme="light"] input[type="time"],
[data-theme="light"] input[type="datetime-local"] {
    color-scheme: light !important;
    background: rgba(255, 255, 255, 0.90) !important;
    color: #1a1e2e !important;
}

/* CHECKBOXES and RADIO buttons */
input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--accent-gold);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

[data-theme="light"] input[type="checkbox"],
[data-theme="light"] input[type="radio"] {
    accent-color: var(--accent-gold-dark) !important;
}

/* Number inputs */
input[type="number"] {
    color-scheme: dark;
}

[data-theme="light"] input[type="number"] {
    color-scheme: light !important;
}

/* ═══════════════════════════════════════════
   BADGES — Frosted glass tinted
   ═══════════════════════════════════════════ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: var(--blur-sm);
    -webkit-backdrop-filter: var(--blur-sm);
}

.badge-primary {
    background: rgba(136, 152, 170, 0.14);
    color: var(--accent-slate);
    border: 1px solid rgba(136, 152, 170, 0.22);
}

.badge-success {
    background: rgba(16, 185, 129, 0.14);
    color: var(--accent-green);
    border: 1px solid rgba(16, 185, 129, 0.22);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.14);
    color: var(--accent-red);
    border: 1px solid rgba(239, 68, 68, 0.22);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.14);
    color: var(--accent-orange);
    border: 1px solid rgba(245, 158, 11, 0.22);
}

.badge-purple {
    background: rgba(139, 92, 246, 0.14);
    color: var(--accent-purple);
    border: 1px solid rgba(139, 92, 246, 0.22);
}

/* ═══════════════════════════════════════════
   CARDS — Frosted glass premium panels
   ═══════════════════════════════════════════ */
.card {
    background: var(--bg-card);
    backdrop-filter: var(--blur-lg) saturate(160%);
    -webkit-backdrop-filter: var(--blur-lg) saturate(160%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem;
    transition: all var(--transition-normal);
    position: relative;
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: linear-gradient(135deg, rgba(136, 152, 170, 0.14), transparent, rgba(201, 168, 76, 0.10));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.card:hover {
    border-color: var(--border-gold);
    box-shadow: var(--shadow-md), var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

[data-theme="light"] .card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: var(--shadow-sm), 0 1px 3px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .card:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md), 0 4px 12px rgba(0, 0, 0, 0.10);
}

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

.card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-title i {
    color: var(--accent-slate) !important;
    font-size: 0.95rem;
}

/* ═══════════════════════════════════════════
   STAT CARDS — Glass glow panels
   ═══════════════════════════════════════════ */
.stat-card {
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    backdrop-filter: var(--blur-lg) saturate(160%);
    -webkit-backdrop-filter: var(--blur-lg) saturate(160%);
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    filter: blur(45px);
    opacity: 0.28;
}

.stat-card.cyan::before {
    background: var(--accent-gold);
}

.stat-card.purple::before {
    background: var(--accent-purple);
}

.stat-card.green::before {
    background: var(--accent-green);
}

.stat-card.pink::before {
    background: var(--accent-gold-light);
}

.stat-card.orange::before {
    background: var(--accent-orange);
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* ═══════════════════════════════════════════
   TABLES — Frosted glass luxury
   ═══════════════════════════════════════════ */
.table-container {
    overflow-x: auto;
    overflow-y: auto;
    max-height: 600px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: relative;
    backdrop-filter: var(--blur-lg);
    -webkit-backdrop-filter: var(--blur-lg);
    background: var(--bg-card);
    /* Improved scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: var(--accent-slate) transparent;
}

.table-container::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: linear-gradient(135deg, rgba(136, 152, 170, 0.12), transparent, rgba(136, 152, 170, 0.07));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

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

.table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent-slate);
    background: rgba(136, 152, 170, 0.07);
    border-bottom: 1px solid var(--border-color);
}

.table td {
    padding: 12px 16px;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.table tr:last-child td {
    border-bottom: none;
}

.table tr:hover td {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    transition: background var(--transition-fast), color var(--transition-fast);
}

[data-theme="light"] .table tr:hover td {
    background: rgba(0, 0, 0, 0.025);
}

/* ═══════════════════════════════════════════
   MODALS — Premium frosted overlays
   ═══════════════════════════════════════════ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

[data-theme="light"] .modal-overlay {
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px) saturate(150%);
}

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

.modal {
    background: rgba(14, 14, 26, 0.78);
    backdrop-filter: var(--blur-xl) saturate(180%);
    -webkit-backdrop-filter: var(--blur-xl) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    max-width: 500px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform var(--transition-normal);
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.07);
    position: relative;
}

[data-theme="light"] .modal {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 1);
}

.modal::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-xl);
    padding: 1px;
    background: linear-gradient(135deg, rgba(136, 152, 170, 0.14), transparent, rgba(201, 168, 76, 0.08));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

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

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-title i {
    color: var(--accent-slate) !important;
}

.modal-close {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: var(--blur-sm);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    font-size: 0.85rem;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.16);
    color: var(--accent-red);
    border-color: rgba(239, 68, 68, 0.32);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.12);
}

.modal-close i {
    color: inherit !important;
}

.modal-lg {
    max-width: 700px;
}

/* ═══════════════════════════════════════════
   TOASTS — Frosted glass notifications
   ═══════════════════════════════════════════ */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 14px 22px;
    border-radius: var(--radius-lg);
    background: rgba(14, 14, 26, 0.92);
    backdrop-filter: var(--blur-xl) saturate(180%);
    -webkit-backdrop-filter: var(--blur-xl) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    animation: slideInRight 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
    min-width: 300px;
    max-width: 450px;
}

.toast.success {
    border-left: 4px solid var(--accent-green);
    background: rgba(14, 14, 26, 0.92);
}

.toast.error {
    border-left: 4px solid var(--accent-red);
    background: rgba(14, 14, 26, 0.92);
}

.toast.warning {
    border-left: 4px solid var(--accent-orange);
    background: rgba(14, 14, 26, 0.92);
}

.toast.info {
    border-left: 4px solid var(--accent-gold);
    background: rgba(14, 14, 26, 0.92);
}

[data-theme="light"] .toast {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: var(--text-primary);
    box-shadow: var(--shadow-lg), 0 4px 20px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .toast.success {
    border-left: 4px solid var(--accent-green);
    background: rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .toast.error {
    border-left: 4px solid var(--accent-red);
    background: rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .toast.warning {
    border-left: 4px solid var(--accent-orange);
    background: rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .toast.info {
    border-left: 4px solid var(--accent-gold-dark);
    background: rgba(255, 255, 255, 0.95);
}

/* ═══════════════════════════════════════════
   SIDEBAR — Frosted dark luxury with gold trim
   ═══════════════════════════════════════════ */
.app-layout {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.sidebar {
    width: 260px;
    background: rgba(10, 10, 20, 0.72);
    backdrop-filter: var(--blur-xl) saturate(160%);
    -webkit-backdrop-filter: var(--blur-xl) saturate(160%);
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: transform var(--transition-normal);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .sidebar {
    background: rgba(248, 246, 240, 0.78);
    border-right: 1px solid rgba(255, 255, 255, 0.80);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.08);
}

.sidebar-brand {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.sidebar-brand-icon {
    width: 42px;
    height: 42px;
    background: transparent;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.sidebar-brand-icon i {
    color: #1a1000 !important;
}

.sidebar-brand-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 800;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0.75rem;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.nav-section {
    margin-bottom: 1.5rem;
}

.nav-section-title {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--accent-slate);
    padding: 0 12px;
    margin-bottom: 8px;
    opacity: 0.7;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    transition: all var(--transition-fast);
    margin-bottom: 2px;
    border: 1px solid transparent;
    position: relative;
}

.nav-link:hover {
    background: rgba(136, 152, 170, 0.10);
    backdrop-filter: var(--blur-sm);
    color: var(--text-primary);
    border-color: rgba(136, 152, 170, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.nav-link.active {
    background: rgba(201, 168, 76, 0.10);
    backdrop-filter: var(--blur-sm);
    color: var(--accent-gold);
    font-weight: 600;
    border-color: rgba(201, 168, 76, 0.18);
    box-shadow: 0 2px 12px rgba(201, 168, 76, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

[data-theme="light"] .nav-link {
    color: var(--text-secondary) !important;
}

[data-theme="light"] .nav-link:hover {
    color: var(--text-primary) !important;
}

[data-theme="light"] .nav-link.active {
    background: rgba(255, 123, 0, 0.08);
    color: var(--accent-orange-dark) !important;
    border-color: rgba(255, 123, 0, 0.15);
}

.nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    width: 3px;
    height: 24px;
    background: var(--gradient-gold);
    border-radius: 0 3px 3px 0;
}

.nav-link-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.nav-link-icon i {
    color: var(--accent-slate) !important;
}

.nav-link.active .nav-link-icon i {
    color: var(--accent-gold) !important;
}

.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-color);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--gradient-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: #1a1000;
    box-shadow: var(--shadow-gold);
}

.sidebar-user-info {
    flex: 1;
}

.sidebar-user-name {
    font-size: 0.85rem;
    font-weight: 600;
}

.sidebar-user-role {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════
   MAIN CONTENT — Glass topbar & page
   ═══════════════════════════════════════════ */
.main-content {
    flex: 1;
    margin-left: 260px;
    min-height: 100vh;
}

.topbar {
    height: 60px;
    background: rgba(10, 10, 20, 0.60);
    backdrop-filter: var(--blur-xl) saturate(160%);
    -webkit-backdrop-filter: var(--blur-xl) saturate(160%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.18);
}

[data-theme="light"] .topbar {
    background: rgba(248, 246, 240, 0.75);
    border-bottom: 1px solid rgba(255, 255, 255, 0.80);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

.topbar-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Dashboard Topbar Clock ── */
.topbar-clock {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: var(--blur-md);
    -webkit-backdrop-filter: var(--blur-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: 'Inter', monospace;
    font-weight: 600;
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: all var(--transition-fast);
}

.topbar-clock:hover {
    border-color: var(--border-gold);
    box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.07);
}

[data-theme="light"] .topbar-clock {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.85);
}

.topbar-clock-time {
    font-size: 1.05rem;
    color: var(--accent-gold);
    letter-spacing: 1px;
}

.topbar-clock-divider {
    width: 1px;
    height: 20px;
    background: var(--border-color);
    opacity: 0.5;
}

.topbar-clock-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.topbar-clock-icon {
    color: var(--accent-slate);
    font-size: 1rem;
    opacity: 0.7;
}

.page-content {
    padding: 1.25rem;
    max-width: 100%;
    overflow-x: hidden;
}

/* ═══════════════════════════════════════════
   POS LAYOUT — Full-screen glass design
   ═══════════════════════════════════════════ */
.pos-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.pos-sidebar {
    width: 80px;
    background: rgba(10, 10, 20, 0.72);
    backdrop-filter: var(--blur-xl) saturate(160%);
    -webkit-backdrop-filter: var(--blur-xl) saturate(160%);
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 0;
    box-shadow: 3px 0 18px rgba(0, 0, 0, 0.22);
}

[data-theme="light"] .pos-sidebar {
    background: rgba(248, 246, 240, 0.78);
    border-right: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 3px 0 14px rgba(0, 0, 0, 0.07);
}

.pos-sidebar-brand {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
    flex-shrink: 0;
}

.pos-sidebar-brand img {
    width: 78%;
    height: 78%;
    object-fit: contain;
}

.pos-sidebar-brand i {
    color: #1a1000 !important;
}

/* ── POS Sidebar Clock ── */
.pos-sidebar-clock {
    width: 64px;
    padding: 8px 6px;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: var(--blur-md);
    -webkit-backdrop-filter: var(--blur-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-align: center;
    font-family: 'Inter', monospace;
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all var(--transition-fast);
}

.pos-sidebar-clock:hover {
    border-color: var(--border-gold);
    box-shadow: var(--shadow-glow);
    background: rgba(255, 255, 255, 0.08);
}

.pos-clock-time {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-gold);
    line-height: 1.1;
    letter-spacing: 0.5px;
}

.pos-clock-date {
    font-size: 0.55rem;
    color: var(--text-muted);
    margin-top: 2px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.pos-clock-seconds {
    font-size: 0.5rem;
    color: var(--accent-slate);
    opacity: 0.8;
    font-weight: 600;
}

.pos-sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
    padding: 0 8px;
}

.pos-nav-btn {
    width: 58px;
    height: 58px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 0.6rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

.pos-nav-btn:hover {
    background: rgba(136, 152, 170, 0.10);
    backdrop-filter: var(--blur-sm);
    color: var(--text-primary);
    border-color: rgba(136, 152, 170, 0.14);
}

.pos-nav-btn.active {
    background: rgba(201, 168, 76, 0.10);
    backdrop-filter: var(--blur-sm);
    color: var(--accent-gold);
    border-color: var(--border-gold);
    box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .pos-nav-btn.active {
    background: rgba(166, 138, 48, 0.08);
    color: var(--accent-gold-dark);
}

.pos-nav-btn .icon {
    font-size: 1.3rem;
}

.pos-nav-btn .icon i {
    color: var(--accent-slate) !important;
}

/* ── Products area ── */
.pos-products-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: rgba(12, 12, 22, 0.50);
    backdrop-filter: var(--blur-md);
    -webkit-backdrop-filter: var(--blur-md);
}

[data-theme="light"] .pos-products-area {
    background: rgba(242, 240, 235, 0.55);
}

.pos-search-bar {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: var(--blur-sm);
}

[data-theme="light"] .pos-search-bar {
    background: rgba(255, 255, 255, 0.40);
}

.pos-search-input {
    flex: 1;
    padding: 10px 16px 10px 40px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: var(--blur-md);
    -webkit-backdrop-filter: var(--blur-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.10);
}

.pos-search-input:focus {
    outline: none;
    border-color: var(--accent-slate);
    box-shadow: 0 0 0 3px rgba(136, 152, 170, 0.14), inset 0 1px 2px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.09);
}

[data-theme="light"] .pos-search-input {
    background: rgba(255, 255, 255, 0.70);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.pos-search-wrapper {
    position: relative;
    flex: 1;
}

.pos-search-wrapper::before {
    content: '\f002';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    color: var(--accent-slate);
    opacity: 0.6;
}

/* ── POS Topbar Clock (in search bar) ── */
.pos-topbar-clock {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: var(--blur-md);
    -webkit-backdrop-filter: var(--blur-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: 'Inter', monospace;
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.pos-topbar-clock:hover {
    border-color: var(--border-gold);
    box-shadow: var(--shadow-glow);
    background: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .pos-topbar-clock {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.85);
}

.pos-topbar-clock i {
    color: var(--accent-slate) !important;
    font-size: 1rem;
    opacity: 0.7;
}

.pos-topbar-clock-time {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: 0.5px;
}

.pos-topbar-clock-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    padding-left: 8px;
    border-left: 1px solid var(--border-color);
}

/* ── Category bar ── */
.pos-categories {
    display: flex;
    gap: 10px;
    padding: 16px;
    overflow-x: auto;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.02);
}

.pos-category-btn {
    padding: 12px 22px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: var(--blur-sm);
    -webkit-backdrop-filter: var(--blur-sm);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pos-category-btn:hover {
    background: rgba(136, 152, 170, 0.10);
    color: var(--text-primary);
    border-color: var(--border-subtle);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .pos-category-btn {
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(0, 0, 0, 0.07);
}

.pos-category-btn.active {
    background: var(--gradient-gold);
    color: #1a1000;
    border-color: transparent;
    box-shadow: var(--shadow-gold-md), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    font-weight: 700;
}

/* ── Subcategory bar ── */
.pos-subcategories {
    padding: 8px 16px 14px;
    border-bottom: 1px solid var(--border-color);
}

.pos-subcategory-btn {
    padding: 8px 18px;
    font-size: 0.85rem;
    opacity: 0.9;
}

/* ── Product grid ── */
.pos-products-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    grid-auto-rows: max-content;
    gap: 12px;
    padding: 14px 16px;
    overflow-y: auto;
    align-content: start;
    align-items: start;
}

.pos-product-card {
    aspect-ratio: 1 / 1;
    width: 100%;
    align-self: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    text-align: center;
    background: rgba(20, 20, 36, 0.55);
    backdrop-filter: var(--blur-lg) saturate(140%);
    -webkit-backdrop-filter: var(--blur-lg) saturate(140%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    border-left: 3px solid rgba(136, 152, 170, 0.18);
}

[data-theme="light"] .pos-product-card {
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.80);
    border-left: 3px solid rgba(100, 116, 139, 0.15);
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.pos-product-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-md);
    padding: 1px;
    background: linear-gradient(135deg, rgba(136, 152, 170, 0.14), transparent, rgba(201, 168, 76, 0.10));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.pos-product-card:hover {
    border-color: var(--border-gold);
    border-left-color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    background: rgba(25, 25, 45, 0.65);
}

[data-theme="light"] .pos-product-card:hover {
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 1);
}

.pos-product-card:hover::before {
    opacity: 1;
}

.pos-product-card:active {
    transform: scale(0.97);
}

.pos-product-icon {
    flex-shrink: 0;
    width: 46%;
    max-width: 70px;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 8px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(136, 152, 170, 0.10);
    backdrop-filter: var(--blur-sm);
    color: var(--accent-slate);
    border: 1px solid rgba(136, 152, 170, 0.12);
}

.pos-product-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;

}

[data-theme="light"] .pos-product-icon {
    background: rgba(100, 116, 139, 0.07);
    color: var(--accent-slate-dark);
    border: 1px solid rgba(100, 116, 139, 0.10);
}

.category-icon {
    filter: drop-shadow(0 1px 2px rgba(136, 152, 170, 0.22));
}

[data-theme="light"] .category-icon {
    filter: drop-shadow(0 1px 2px rgba(100, 116, 139, 0.16));
}

.pos-product-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.25;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pos-product-price {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--accent-gold);
    margin-top: 2px;
    text-align: center;
}

.pos-product-info {
    flex: none;
    min-width: 0;
    width: 100%;
}

/* Product card with a real photo: image fills the whole tile, name/price sit together in a shaded pill */
.pos-product-card.has-image {
    padding: 0;
    justify-content: flex-end;
}

.pos-product-card.has-image .pos-product-icon {
    position: absolute;
    inset: 0;
    width: 100%;
    max-width: none;
    aspect-ratio: auto;
    padding: 0;
    border-radius: inherit;
    background: none;
    border: none;
    z-index: 0;
}

.pos-product-card.has-image .pos-product-icon-img {
    border-radius: inherit;
}

.pos-product-card.has-image .pos-product-info {
    position: relative;
    z-index: 1;
    padding: 6px 8px;
    margin: 0 6px 6px;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 8px;
}

.pos-product-card.has-image .pos-product-name {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.pos-product-card.has-image .pos-product-price {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.pos-product-stock {
    position: absolute;
    top: 5px;
    right: 6px;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.2;
    padding: 3px 9px;
    border-radius: var(--radius-full);
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: var(--blur-sm);
    color: var(--text-muted);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    min-width: 1.6em;
    text-align: center;
}

[data-theme="light"] .pos-product-stock {
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
}

/* Low stock — red */
.pos-product-stock.low,
.pos-product-stock.stock-low {
    color: #fecaca;
    background: rgba(239, 68, 68, 0.3);
    border: 1px solid rgba(239, 68, 68, 0.65);
}

/* Medium stock — orange/yellow */
.pos-product-stock.stock-medium {
    color: #fde68a;
    background: rgba(245, 158, 11, 0.28);
    border: 1px solid rgba(245, 158, 11, 0.65);
}

/* High stock — green */
.pos-product-stock.stock-high {
    color: #a7f3d0;
    background: rgba(16, 185, 129, 0.25);
    border: 1px solid rgba(16, 185, 129, 0.6);
}

/* Light theme — the pastel-on-translucent-dark colors above wash out against
   a light card background, so use solid, high-contrast badges instead. */
[data-theme="light"] .pos-product-stock.low,
[data-theme="light"] .pos-product-stock.stock-low {
    color: #fff;
    background: rgba(220, 38, 38, 0.92);
    border: 1px solid rgba(185, 28, 28, 0.9);
}

[data-theme="light"] .pos-product-stock.stock-medium {
    color: #452b00;
    background: rgba(245, 158, 11, 0.92);
    border: 1px solid rgba(180, 83, 9, 0.85);
}

[data-theme="light"] .pos-product-stock.stock-high {
    color: #fff;
    background: rgba(5, 150, 105, 0.92);
    border: 1px solid rgba(4, 120, 87, 0.9);
}

/* ═══════════════════════════════════════════
   CART PANEL — Glass checkout
   ═══════════════════════════════════════════ */
.pos-cart {
    width: 380px;
    background: rgba(12, 12, 24, 0.70);
    backdrop-filter: var(--blur-xl) saturate(160%);
    -webkit-backdrop-filter: var(--blur-xl) saturate(160%);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    height: 100vh;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.22);
}

[data-theme="light"] .pos-cart {
    background: rgba(250, 248, 242, 0.78);
    border-left: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: -4px 0 18px rgba(0, 0, 0, 0.07);
}

.pos-cart-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
}

.pos-cart-title {
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pos-cart-title i {
    color: var(--accent-slate) !important;
}

.pos-cart-count {
    background: var(--gradient-gold);
    color: #1a1000;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: var(--shadow-gold);
}

.pos-cart-customer {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-color);
}

.pos-cart-customer-btn {
    width: 100%;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: var(--blur-sm);
    border: 1px dashed var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-fast);
}

.pos-cart-customer-btn i {
    color: var(--accent-slate) !important;
}

.pos-cart-customer-btn:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    background: rgba(201, 168, 76, 0.06);
    box-shadow: 0 0 14px rgba(201, 168, 76, 0.08);
}

.pos-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.pos-cart-item {
    padding: 10px 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition-fast);
    animation: fadeInUp 0.2s ease;
}

.pos-cart-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

[data-theme="light"] .pos-cart-item:hover {
    background: rgba(0, 0, 0, 0.02);
}

.pos-cart-item-info {
    flex: 1;
}

.pos-cart-item-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.pos-cart-item-name i {
    color: var(--accent-slate) !important;
    margin-right: 4px;
}

.pos-cart-item-modifiers {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.pos-cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.pos-cart-item-qty button {
    width: 26px;
    height: 26px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: var(--blur-sm);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}

.pos-cart-item-qty button:hover {
    border-color: var(--accent-slate);
    color: var(--accent-slate);
    background: rgba(136, 152, 170, 0.10);
    box-shadow: 0 0 8px rgba(136, 152, 170, 0.10);
}

.pos-cart-item-qty span {
    font-size: 0.85rem;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

.pos-cart-item-price {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}

.pos-cart-item-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 4px;
    transition: color var(--transition-fast);
}

.pos-cart-item-remove:hover {
    color: var(--accent-red);
}

.pos-cart-item-remove i {
    color: inherit !important;
}

.pos-cart-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    gap: 12px;
}

.pos-cart-empty-icon {
    font-size: 3rem;
    opacity: 0.2;
    color: var(--accent-slate);
}

.pos-cart-empty-icon i {
    color: var(--accent-slate) !important;
}

.pos-cart-empty-text {
    font-size: 0.85rem;
}

/* ── Cart summary ── */
.pos-cart-summary {
    border-top: 1px solid var(--border-color);
    padding: 16px;
    background: rgba(136, 152, 170, 0.04);
    backdrop-filter: var(--blur-sm);
}

.pos-cart-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.pos-cart-summary-row.total {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--accent-gold);
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
}

.pos-cart-actions {
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pos-cart-actions-row {
    display: flex;
    gap: 8px;
}

.pos-pay-btn {
    width: 100%;
    padding: 14px;
    background: var(--gradient-gold);
    border: 1px solid rgba(201, 168, 76, 0.25);
    border-radius: var(--radius-md);
    color: #1a1000;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--shadow-gold), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    letter-spacing: 0.3px;
}

.pos-pay-btn i {
    color: #1a1000 !important;
}

.pos-pay-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold-lg), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.pos-pay-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ═══════════════════════════════════════════
   PAYMENT MODAL
   ═══════════════════════════════════════════ */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 1rem;
}

.payment-method-btn {
    padding: 16px 10px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: var(--blur-md);
    -webkit-backdrop-filter: var(--blur-md);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .payment-method-btn {
    background: rgba(255, 255, 255, 0.65);
    border: 2px solid rgba(0, 0, 0, 0.07);
}

.payment-method-btn .icon i {
    color: var(--accent-slate) !important;
}

.payment-method-btn:hover {
    border-color: var(--accent-slate);
    color: var(--text-primary);
    background: rgba(136, 152, 170, 0.08);
    box-shadow: 0 4px 14px rgba(136, 152, 170, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.payment-method-btn.active {
    border-color: var(--accent-gold);
    background: rgba(201, 168, 76, 0.10);
    color: var(--accent-gold);
    box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .payment-method-btn.active {
    background: rgba(166, 138, 48, 0.08);
    box-shadow: var(--shadow-glow);
}

.payment-method-btn .icon {
    font-size: 1.5rem;
}

.payment-numpad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.numpad-btn {
    padding: 14px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: var(--blur-sm);
    -webkit-backdrop-filter: var(--blur-sm);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.numpad-btn:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: var(--border-subtle);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

[data-theme="light"] .numpad-btn {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(0, 0, 0, 0.07);
}

[data-theme="light"] .numpad-btn:hover {
    background: rgba(255, 255, 255, 0.90);
    border-color: rgba(0, 0, 0, 0.12);
}

.numpad-btn:active {
    transform: scale(0.95);
}

.numpad-btn.action {
    background: rgba(136, 152, 170, 0.10);
    backdrop-filter: var(--blur-sm);
    color: var(--accent-slate);
    border-color: rgba(136, 152, 170, 0.17);
}

[data-theme="light"] .numpad-btn.action {
    background: rgba(100, 116, 139, 0.07);
    border-color: rgba(100, 116, 139, 0.14);
}

.numpad-btn.action i {
    color: var(--accent-slate) !important;
}

.payment-display {
    text-align: center;
    padding: 20px;
    margin-bottom: 1rem;
    background: rgba(136, 152, 170, 0.06);
    backdrop-filter: var(--blur-md);
    -webkit-backdrop-filter: var(--blur-md);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .payment-display {
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.80);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.05);
}

.payment-display-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.payment-display-amount {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.change-display {
    text-align: center;
    padding: 16px;
    background: rgba(16, 185, 129, 0.08);
    backdrop-filter: var(--blur-sm);
    border: 1px solid rgba(16, 185, 129, 0.22);
    border-radius: var(--radius-md);
    margin-top: 1rem;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.08);
}

.change-display-label {
    font-size: 0.75rem;
    color: var(--accent-green);
    text-transform: uppercase;
}

.change-display-amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-green);
}

/* ═══════════════════════════════════════════
   SUCCESS OVERLAY
   ═══════════════════════════════════════════ */
.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    animation: fadeIn 0.3s ease;
}

[data-theme="light"] .success-overlay {
    background: rgba(0, 0, 0, 0.42);
}

.success-content {
    text-align: center;
    animation: scaleIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    animation: pulseGold 1.2s ease infinite;
    box-shadow: var(--shadow-gold-lg), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(201, 168, 76, 0.30);
}

.success-icon i {
    color: #1a1000 !important;
}

.success-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.success-details {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulseGold {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.35), var(--shadow-gold-lg);
    }

    50% {
        box-shadow: 0 0 0 22px rgba(201, 168, 76, 0), var(--shadow-gold-lg);
    }
}

@keyframes shimmerGold {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* ═══════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════ */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.gap-1 {
    gap: 4px;
}

.gap-2 {
    gap: 8px;
}

.gap-3 {
    gap: 12px;
}

.gap-4 {
    gap: 16px;
}

.w-full {
    width: 100%;
}

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

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

.text-sm {
    font-size: 0.85rem;
}

.text-xs {
    font-size: 0.75rem;
}

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

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

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

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

.font-bold {
    font-weight: 700;
}

.mt-1 {
    margin-top: 4px;
}

.mt-2 {
    margin-top: 8px;
}

.mt-3 {
    margin-top: 12px;
}

.mt-4 {
    margin-top: 16px;
}

.mb-2 {
    margin-bottom: 8px;
}

.mb-3 {
    margin-bottom: 12px;
}

.mb-4 {
    margin-bottom: 16px;
}

.p-3 {
    padding: 12px;
}

.p-4 {
    padding: 16px;
}

.hidden {
    display: none !important;
}

.grid {
    display: grid;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ═══════════════════════════════════════════
   LOGIN PAGE — Smart POS · Frosted glass luxury
   ═══════════════════════════════════════════ */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding: 1.5rem;
}

/* Soft bakery-orange ambient glow behind the card */
.login-container::before {
    content: '';
    position: absolute;
    width: 620px;
    height: 620px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 123, 0, 0.20) 0%, rgba(255, 123, 0, 0.05) 45%, transparent 70%);
    filter: blur(20px);
    pointer-events: none;
    z-index: -1;
}

.login-split-card {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    width: 100%;
    max-width: 960px;
    border-radius: var(--radius-xl);
    background: rgba(16, 17, 23, 0.72);
    backdrop-filter: var(--blur-xl);
    -webkit-backdrop-filter: var(--blur-xl);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow:
        0 32px 90px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 123, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
    overflow: hidden;
    position: relative;
    animation: loginRise 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Top hairline shimmer */
.login-split-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 153, 51, 0.85), rgba(255, 123, 0, 0.45), transparent);
    z-index: 3;
}

@keyframes loginRise {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

[data-theme="light"] .login-split-card {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow:
        0 32px 80px rgba(124, 45, 18, 0.14),
        0 0 0 1px rgba(255, 123, 0, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* ── Left: brand & feature panel ── */
.login-info-panel {
    padding: 3rem 2.75rem;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(120% 90% at 0% 0%, rgba(255, 123, 0, 0.22) 0%, transparent 55%),
        radial-gradient(100% 80% at 100% 100%, rgba(204, 82, 0, 0.16) 0%, transparent 60%),
        linear-gradient(150deg, rgba(255, 123, 0, 0.08), rgba(0, 0, 0, 0.10));
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

[data-theme="light"] .login-info-panel {
    background:
        radial-gradient(120% 90% at 0% 0%, rgba(255, 123, 0, 0.16) 0%, transparent 55%),
        radial-gradient(100% 80% at 100% 100%, rgba(255, 184, 77, 0.18) 0%, transparent 60%),
        linear-gradient(150deg, rgba(255, 247, 237, 0.85), rgba(255, 237, 213, 0.45));
    border-right: 1px solid rgba(234, 88, 12, 0.10);
}

/* Faint grid texture for the "smart terminal" feel */
.login-info-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: radial-gradient(circle at 30% 30%, #000 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(circle at 30% 30%, #000 0%, transparent 75%);
    pointer-events: none;
}

[data-theme="light"] .login-info-panel::after {
    background-image:
        linear-gradient(rgba(234, 88, 12, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(234, 88, 12, 0.07) 1px, transparent 1px);
}

.login-info-panel>* {
    position: relative;
    z-index: 1;
}

.login-top-row {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.login-logo-badge {
    width: 76px;
    height: 76px;
    flex-shrink: 0;
    border-radius: 22px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 12px 34px rgba(255, 123, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

[data-theme="light"] .login-logo-badge {
    background: linear-gradient(145deg, #ffffff, rgba(255, 247, 237, 0.9));
    border: 1px solid rgba(234, 88, 12, 0.16);
    box-shadow: 0 12px 30px rgba(234, 88, 12, 0.16), inset 0 1px 0 #fff;
}

.login-logo-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ── Live Sri Lanka clock ── */
.login-clock {
    height: 76px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    backdrop-filter: var(--blur-sm);
    -webkit-backdrop-filter: var(--blur-sm);
}

[data-theme="light"] .login-clock {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(234, 88, 12, 0.12);
}

.login-clock-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    background: rgba(255, 123, 0, 0.15);
    color: var(--accent-orange);
    border: 1px solid rgba(255, 123, 0, 0.22);
}

.login-clock-icon i {
    color: inherit !important;
}

.login-clock-time {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 0.02em;
    color: var(--text-primary);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.login-clock-colon {
    display: inline-block;
    margin: 0 1px;
    color: var(--accent-orange);
    animation: loginClockBlink 1s steps(1, end) infinite;
}

@keyframes loginClockBlink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0.25;
    }
}

.login-clock-date {
    margin-top: 2px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text-muted);
    white-space: nowrap;
}

.login-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    margin-bottom: 0.9rem;
    border-radius: var(--radius-full);
    background: rgba(255, 123, 0, 0.14);
    border: 1px solid rgba(255, 123, 0, 0.28);
    color: var(--accent-orange-light);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

[data-theme="light"] .login-eyebrow {
    color: var(--accent-orange-dark);
    background: rgba(255, 123, 0, 0.10);
}

.login-eyebrow i {
    color: var(--accent-orange) !important;
    font-size: 0.7rem;
}

.login-title {
    font-family: 'Fredoka', 'Outfit', sans-serif;
    font-size: 2.15rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 0.6rem;
    background: linear-gradient(120deg, var(--text-primary) 25%, var(--accent-orange-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="light"] .login-title {
    background: linear-gradient(120deg, #1c1917 25%, #ea580c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-subtitle {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 2rem;
    max-width: 34ch;
}

.login-feature-list {
    /* --feat-h + gap = distance the pointer travels between cards */
    --feat-h: 66px;
    --feat-gap: 12px;
    --feat-step: calc(var(--feat-h) + var(--feat-gap));
    display: flex;
    flex-direction: column;
    gap: var(--feat-gap);
    position: relative;
}

.login-feature {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 16px;
    min-height: var(--feat-h);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: var(--blur-sm);
    -webkit-backdrop-filter: var(--blur-sm);
    transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

[data-theme="light"] .login-feature {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(234, 88, 12, 0.10);
}

.login-feature:hover {
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 123, 0, 0.28);
}

[data-theme="light"] .login-feature:hover {
    background: #fff;
    border-color: rgba(234, 88, 12, 0.24);
}

.login-feature-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    background: rgba(255, 123, 0, 0.15);
    color: var(--accent-orange);
    border: 1px solid rgba(255, 123, 0, 0.22);
}

.login-feature-icon i {
    color: inherit !important;
}

.login-feature-icon.is-green {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
    border-color: rgba(16, 185, 129, 0.22);
}

.login-feature-icon.is-blue {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-blue);
    border-color: rgba(59, 130, 246, 0.22);
}

.login-feature-title {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.login-feature-desc {
    font-size: 0.74rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ── Auto "hand tap" demo tour over the feature cards ──
   Pure CSS, transform/opacity only — no layout reflow, no JS timers. */
.login-hand {
    position: absolute;
    top: 0;
    right: 14px;
    height: var(--feat-h);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
    color: var(--accent-orange-light);
    font-size: 1.55rem;
    text-shadow: 0 4px 12px rgba(255, 123, 0, 0.6);
    will-change: transform;
    animation: loginHandTour 9s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.login-hand i {
    color: inherit !important;
}

/* Tap ripple */
.login-hand::before {
    content: '';
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2.5px solid rgba(255, 123, 0, 0.6);
    opacity: 0;
    will-change: transform, opacity;
    animation: loginHandRipple 9s linear infinite;
}

@keyframes loginHandTour {

    0%,
    3% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    5% {
        transform: translate3d(0, 0, 0) scale(0.78);
    }

    8%,
    28% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    36% {
        transform: translate3d(0, var(--feat-step), 0) scale(1);
    }

    38% {
        transform: translate3d(0, var(--feat-step), 0) scale(0.78);
    }

    41%,
    61% {
        transform: translate3d(0, var(--feat-step), 0) scale(1);
    }

    69% {
        transform: translate3d(0, calc(var(--feat-step) * 2), 0) scale(1);
    }

    71% {
        transform: translate3d(0, calc(var(--feat-step) * 2), 0) scale(0.78);
    }

    74%,
    94% {
        transform: translate3d(0, calc(var(--feat-step) * 2), 0) scale(1);
    }

    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes loginHandRipple {

    0%,
    4% {
        opacity: 0.9;
        transform: scale(0.3);
    }

    14% {
        opacity: 0;
        transform: scale(1.5);
    }

    36% {
        opacity: 0;
        transform: scale(0.3);
    }

    37% {
        opacity: 0.9;
        transform: scale(0.3);
    }

    47% {
        opacity: 0;
        transform: scale(1.5);
    }

    69% {
        opacity: 0;
        transform: scale(0.3);
    }

    70% {
        opacity: 0.9;
        transform: scale(0.3);
    }

    80%,
    100% {
        opacity: 0;
        transform: scale(1.5);
    }
}

/* Card reacts to the tap: lifts, glows and reveals its accent rail.
   Rest/tap colors come from theme-aware custom properties so a single
   keyframes animation covers both themes — switching --feat-* values on
   theme toggle never restarts the animation (only swapping animation-name
   would), which keeps every card in sync with the hand pointer. */
.login-feature {
    --feat-rest-border: rgba(255, 255, 255, 0.08);
    --feat-rest-bg: rgba(255, 255, 255, 0.05);
    --feat-tap-border: rgba(255, 123, 0, 0.45);
    --feat-tap-bg: rgba(255, 123, 0, 0.10);
    animation: loginFeatureTap 9s ease-in-out infinite;
}

.login-feature:nth-child(2) {
    animation-delay: 3s;
}

.login-feature:nth-child(3) {
    animation-delay: 6s;
}

[data-theme="light"] .login-feature {
    --feat-rest-border: rgba(234, 88, 12, 0.10);
    --feat-rest-bg: rgba(255, 255, 255, 0.72);
    --feat-tap-border: rgba(234, 88, 12, 0.35);
    --feat-tap-bg: #ffffff;
}

@keyframes loginFeatureTap {

    0%,
    4% {
        transform: translate3d(0, 0, 0) scale(1);
        border-color: var(--feat-rest-border);
        background: var(--feat-rest-bg);
    }

    9%,
    30% {
        transform: translate3d(7px, 0, 0) scale(1.035);
        border-color: var(--feat-tap-border);
        background: var(--feat-tap-bg);
    }

    36%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
        border-color: var(--feat-rest-border);
        background: var(--feat-rest-bg);
    }
}

/* Icon tile pops with the tap */
.login-feature-icon {
    animation: loginFeatureIconTap 9s ease-in-out infinite;
}

.login-feature:nth-child(2) .login-feature-icon {
    animation-delay: 3s;
}

.login-feature:nth-child(3) .login-feature-icon {
    animation-delay: 6s;
}

@keyframes loginFeatureIconTap {

    0%,
    4% {
        transform: scale(1) rotate(0deg);
    }

    9%,
    30% {
        transform: scale(1.12) rotate(-6deg);
    }

    36%,
    100% {
        transform: scale(1) rotate(0deg);
    }
}

/* Hovering the list hands control back to the user. The tour keeps running
   underneath (paused, never reset) so it resumes with no jump once the
   pointer leaves — but every card is forced back to its resting look while
   hovering, so no card is left looking "stuck expanded" from the tour. */
.login-feature-list:hover .login-hand,
.login-feature-list:hover .login-hand::before,
.login-feature-list:hover .login-feature,
.login-feature-list:hover .login-feature-icon {
    animation-play-state: paused;
}

.login-feature-list:hover .login-hand {
    opacity: 0;
    transition: opacity 0.25s ease;
}

.login-feature-list:hover .login-feature {
    transform: translate3d(0, 0, 0) scale(1) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

[data-theme="light"] .login-feature-list:hover .login-feature {
    border-color: rgba(234, 88, 12, 0.10) !important;
    background: rgba(255, 255, 255, 0.72) !important;
}

.login-feature-list:hover .login-feature-icon {
    transform: scale(1) rotate(0deg) !important;
}

/* The one card actually under the cursor gets the exact same "expand"
   look as the auto-tour's tap state — just triggered by the real cursor. */
.login-feature-list:hover .login-feature:hover {
    transform: translate3d(7px, 0, 0) scale(1.035) !important;
    border-color: rgba(255, 123, 0, 0.45) !important;
    background: rgba(255, 123, 0, 0.10) !important;
}

[data-theme="light"] .login-feature-list:hover .login-feature:hover {
    border-color: rgba(234, 88, 12, 0.35) !important;
    background: #ffffff !important;
}

.login-feature-list:hover .login-feature:hover .login-feature-icon {
    transform: scale(1.12) rotate(-6deg) !important;
}

@media (prefers-reduced-motion: reduce) {

    .login-hand,
    .login-hand::before,
    .login-feature,
    .login-feature-icon {
        animation: none !important;
    }

    .login-hand {
        display: none;
    }
}

.login-panel-footer {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 2rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text-muted);
}

.login-panel-footer i {
    color: var(--accent-orange) !important;
}

/* ── Right: form panel ── */
.login-form-panel {
    position: relative;
    overflow: hidden;
    padding: 3rem 2.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-form-panel>*:not(.login-form-rain) {
    position: relative;
    z-index: 1;
}

/* Scoped top-to-bottom fast glowing spark rain shower background (Dark Mode Only) */
.login-form-rain {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

/* Hide rain animation completely in Light Mode */
[data-theme="light"] .login-form-rain {
    display: none !important;
}

/* Ambient warm spark lighting aura behind the falling spark rain */
.login-form-rain::before {
    content: '';
    position: absolute;
    top: -25%;
    right: -15%;
    width: 85%;
    height: 75%;
    background: radial-gradient(ellipse at center, rgba(255, 123, 0, 0.14) 0%, rgba(255, 153, 51, 0.04) 50%, transparent 75%);
    pointer-events: none;
}

.rain-drop {
    position: absolute;
    top: -80px;
    border-radius: 99px;
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(255, 123, 0, 0.20) 25%,
            var(--accent-orange) 65%,
            #ffeedd 92%,
            #ffffff 100%);
    box-shadow: 0 0 12px rgba(255, 123, 0, 0.8), 0 0 5px rgba(255, 220, 150, 0.95);
    animation: loginSparkRainShower var(--rain-dur, 1.2s) cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
    animation-delay: var(--rain-delay, 0s);
    opacity: var(--rain-op, 0.55);
    will-change: transform, opacity;
}

/* Intense glowing ember spark tip */
.rain-drop::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: var(--tip-sz, 4.5px);
    height: var(--tip-sz, 4.5px);
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 10px #ffffff, 0 0 16px var(--accent-orange), 0 0 24px #ff9900;
}

/* Layer 1: Fast Foreground Sparks (Compact, bright, snappy) */
.rd-fg {
    width: 2.4px;
    height: 38px;
    --tip-sz: 4.5px;
    filter: drop-shadow(0 0 8px rgba(255, 123, 0, 0.85));
}

/* Layer 2: Midground Sparks (Medium size & speed) */
.rd-md {
    width: 1.8px;
    height: 26px;
    --tip-sz: 3.2px;
}

/* Layer 3: Background Sparks (Short fine distant sparks) */
.rd-bg {
    width: 1.2px;
    height: 16px;
    --tip-sz: 2px;
    opacity: 0.30 !important;
    filter: blur(0.4px);
}

/* Gentle staggered timing and positions across the form panel width */
.rd-1 {
    left: 3%;
    --rain-dur: 3.2s;
    --rain-delay: 0.0s;
    --rain-op: 0.65;
}

.rd-2 {
    left: 9%;
    --rain-dur: 4.6s;
    --rain-delay: 1.2s;
    --rain-op: 0.45;
}

.rd-3 {
    left: 16%;
    --rain-dur: 6.2s;
    --rain-delay: 0.5s;
}

.rd-4 {
    left: 23%;
    --rain-dur: 3.0s;
    --rain-delay: 2.1s;
    --rain-op: 0.70;
}

.rd-5 {
    left: 31%;
    --rain-dur: 4.8s;
    --rain-delay: 0.4s;
    --rain-op: 0.50;
}

.rd-6 {
    left: 38%;
    --rain-dur: 6.5s;
    --rain-delay: 2.8s;
}

.rd-7 {
    left: 45%;
    --rain-dur: 3.4s;
    --rain-delay: 1.1s;
    --rain-op: 0.68;
}

.rd-8 {
    left: 53%;
    --rain-dur: 5.2s;
    --rain-delay: 1.7s;
    --rain-op: 0.48;
}

.rd-9 {
    left: 61%;
    --rain-dur: 6.8s;
    --rain-delay: 3.2s;
}

.rd-10 {
    left: 69%;
    --rain-dur: 2.9s;
    --rain-delay: 0.6s;
    --rain-op: 0.72;
}

.rd-11 {
    left: 77%;
    --rain-dur: 4.9s;
    --rain-delay: 2.4s;
    --rain-op: 0.45;
}

.rd-12 {
    left: 84%;
    --rain-dur: 5.8s;
    --rain-delay: 3.9s;
}

.rd-13 {
    left: 90%;
    --rain-dur: 3.6s;
    --rain-delay: 1.5s;
    --rain-op: 0.62;
}

.rd-14 {
    left: 95%;
    --rain-dur: 4.4s;
    --rain-delay: 0.8s;
    --rain-op: 0.50;
}

.rd-15 {
    left: 18%;
    --rain-dur: 3.8s;
    --rain-delay: 2.7s;
    --rain-op: 0.65;
}

.rd-16 {
    left: 72%;
    --rain-dur: 6.0s;
    --rain-delay: 1.0s;
}

/* Windswept spark shower (-6deg slant) falling gently and smoothly top to bottom */
@keyframes loginSparkRainShower {
    0% {
        transform: translate3d(-10px, 0, 0) rotate(6deg);
        opacity: 0;
    }

    12% {
        opacity: var(--rain-op, 0.55);
    }

    85% {
        opacity: var(--rain-op, 0.55);
    }

    100% {
        transform: translate3d(20px, 800px, 0) rotate(6deg);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rain-drop {
        animation: none !important;
        display: none !important;
    }
}

.login-form-head {
    margin-bottom: 1.6rem;
}

.login-form-head h2 {
    font-family: 'Fredoka', 'Outfit', sans-serif;
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 5px;
}

.login-form-head p {
    font-size: 0.84rem;
    color: var(--text-muted);
}

/* Input with leading icon */
.login-field {
    position: relative;
}

.login-field .login-field-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: color var(--transition-fast);
}

.login-field .form-control {
    padding: 13px 15px 13px 42px;
    font-size: 0.9rem;
    border-radius: 14px;
}

.login-field:focus-within .login-field-icon {
    color: var(--accent-orange);
}

.login-field .form-control:focus {
    border-color: rgba(255, 123, 0, 0.55);
    box-shadow: 0 0 0 3px rgba(255, 123, 0, 0.14), inset 0 1px 2px rgba(0, 0, 0, 0.08);
}

.login-eye {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    border-radius: 9px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    transition: color var(--transition-fast), background var(--transition-fast);
}

.login-eye:hover {
    color: var(--accent-orange);
    background: rgba(255, 123, 0, 0.10);
}

.login-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
}

.login-remember input {
    width: 15px;
    height: 15px;
    accent-color: var(--accent-orange);
    cursor: pointer;
}

.login-alert {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 14px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: rgba(239, 68, 68, 0.10);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: var(--accent-red);
    font-size: 0.82rem;
    font-weight: 600;
}

.login-alert i {
    color: var(--accent-red) !important;
}

.login-submit {
    width: 100%;
    justify-content: center;
    gap: 9px;
    padding: 14px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    border-radius: 14px;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 1.35rem 0 1.1rem;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    white-space: nowrap;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

/* ── PIN pad ── */
.login-pin-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 11px;
}

.login-pin-label i {
    color: var(--accent-orange) !important;
}

.login-pin-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

.pin-digit {
    width: 52px;
    height: 58px;
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid var(--border-color);
    border-radius: 14px;
    outline: none;
    backdrop-filter: var(--blur-sm);
    -webkit-backdrop-filter: var(--blur-sm);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast), background var(--transition-fast);
}

[data-theme="light"] .pin-digit {
    background: rgba(255, 255, 255, 0.75);
    border-color: rgba(234, 88, 12, 0.16);
}

.pin-digit:focus,
.pin-digit.is-filled {
    border-color: var(--accent-orange);
    background: rgba(255, 123, 0, 0.08);
    box-shadow: 0 0 0 3px rgba(255, 123, 0, 0.15), 0 6px 18px rgba(255, 123, 0, 0.18);
    transform: translateY(-2px);
}

.pin-digit.is-error {
    border-color: rgba(239, 68, 68, 0.65);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.14);
    animation: pinShake 0.35s ease;
}

@keyframes pinShake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.login-pin-error {
    text-align: center;
    color: var(--accent-red);
    font-size: 0.8rem;
    font-weight: 600;
    display: none;
}

.login-demo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 1.35rem;
    padding: 9px 12px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed var(--border-color);
    font-size: 0.72rem;
    color: var(--text-muted);
}

[data-theme="light"] .login-demo {
    background: rgba(255, 247, 237, 0.7);
    border-color: rgba(234, 88, 12, 0.22);
}

.login-demo i {
    color: var(--accent-orange) !important;
    font-size: 0.7rem;
}

.login-demo-sep {
    opacity: 0.4;
}

/* Compact brand row — only shown when the info panel collapses */
.login-mobile-brand {
    display: none;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
}

.login-mobile-brand img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    padding: 6px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-subtle);
}

.login-mobile-brand-name {
    font-family: 'Fredoka', 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.login-mobile-brand-tag {
    font-size: 0.7rem;
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .login-split-card {
        grid-template-columns: 1fr;
        max-width: 440px;
    }

    .login-info-panel {
        display: none;
    }

    .login-form-panel {
        padding: 2.25rem 1.6rem;
    }

    .login-mobile-brand {
        display: flex;
    }
}

@media (max-width: 400px) {
    .pin-digit {
        width: 46px;
        height: 54px;
        font-size: 1.3rem;
    }
}

/* ═══════════════════════════════════════════
   DASHBOARD — Glass stat cards
   ═══════════════════════════════════════════ */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.dashboard-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1rem;
}

@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* ═══════════════════════════════════════════
   RECEIPT — Clean print style
   ═══════════════════════════════════════════ */
.receipt {
    background: white;
    color: #000;
    padding: 20px;
    border-radius: var(--radius-md);
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    font-weight: 700; /* BOLD ALL TEXT */
    max-width: 320px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    line-height: 1.5;
}

.receipt * {
    font-weight: 700;
}

.receipt .receipt-header strong {
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
}

.receipt-header {
    text-align: center;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 700;
}

.receipt-divider {
    border-top: 1.5px dashed #000;
    margin: 8px 0;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 3px;
}

.receipt-total {
    font-weight: 900;
    font-size: 18px;
    border-top: 2px solid #000;
    padding-top: 4px;
    margin-top: 4px;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .pos-cart {
        width: 100%;
        position: fixed;
        bottom: 0;
        height: 50vh;
        z-index: 90;
        transform: translateY(calc(100% - 60px));
        transition: transform var(--transition-normal);
    }

    .pos-cart.open {
        transform: translateY(0);
    }

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

/* ═══════════════════════════════════════════
   THEME TOGGLE — Glass sun/moon
   ═══════════════════════════════════════════ */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: var(--blur-md);
    -webkit-backdrop-filter: var(--blur-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 1rem;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: rgba(136, 152, 170, 0.12);
    color: var(--accent-slate);
    border-color: var(--accent-slate);
    box-shadow: var(--shadow-glow-slate), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .theme-toggle {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(0, 0, 0, 0.07);
}

.theme-toggle i {
    color: var(--accent-slate) !important;
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun,
:root:not([data-theme]) .theme-toggle .icon-sun {
    display: inline;
}

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

/* Login page floating theme toggle */
.theme-toggle-float {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
}

/* ── POS sun/moon icons ── */
.pos-nav-btn .icon-sun,
.pos-nav-btn .icon-moon {
    display: none;
}

[data-theme="dark"] .pos-nav-btn .icon-sun,
:root:not([data-theme]) .pos-nav-btn .icon-sun {
    display: inline;
}

[data-theme="light"] .pos-nav-btn .icon-moon {
    display: inline;
}

/* ═══════════════════════════════════════════
   LIGHT THEME OVERRIDES
   ═══════════════════════════════════════════ */
[data-theme="light"] .card:hover {
    border-color: var(--border-gold);
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* ── Smooth theme transition ── */
html.theme-transition,
html.theme-transition *,
html.theme-transition *::before,
html.theme-transition *::after {
    transition: background-color 0.3s ease, color 0.2s ease, border-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease !important;
}

/* ═══════════════════════════════════════════
   ADDITIONAL GOLD POLISH
   ═══════════════════════════════════════════ */

/* Refined shimmer on primary buttons */
.btn-primary {
    background-size: 200% auto;
    animation: shimmerGold 4s linear infinite;
    background-image: linear-gradient(90deg, #a68a30, #e0c068, #c9a84c, #e0c068, #a68a30);
}

/* Gold accent line under active page title */
.topbar-title::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: var(--gradient-gold);
    border-radius: 2px;
    margin-top: 2px;
}

/* Table row accent on hover */
.table tr:hover {
    position: relative;
}

.table tr:hover td:first-child {
    box-shadow: inset 3px 0 0 var(--accent-slate);
}

/* Divider utility */
.divider-gold {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-slate), var(--accent-gold), var(--accent-slate));
    opacity: 0.2;
    margin: 1rem 0;
}

/* Pagination styling */
.pagination {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.pagination a,
.pagination span {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    transition: all var(--transition-fast);
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: var(--blur-sm);
}

.pagination a:hover {
    background: rgba(136, 152, 170, 0.10);
    border-color: var(--accent-slate);
    color: var(--accent-slate);
    box-shadow: 0 0 10px rgba(136, 152, 170, 0.08);
}

.pagination .active span {
    background: var(--gradient-gold);
    color: #1a1000;
    border-color: transparent;
    box-shadow: var(--shadow-gold);
}

/* Logout button in sidebar */
.btn-icon.btn-ghost {
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: var(--blur-sm);
}

.btn-icon.btn-ghost i {
    color: var(--accent-slate) !important;
}

.btn-icon.btn-ghost:hover {
    background: rgba(239, 68, 68, 0.10);
    border-color: rgba(239, 68, 68, 0.30);
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.10);
}

.btn-icon.btn-ghost:hover i {
    color: var(--accent-red) !important;
}

/* ═══════════════════════════════════════════
   SVG CATEGORY ICONS — Slate tint
   ═══════════════════════════════════════════ */
.category-icon svg,
.pos-product-icon svg {
    color: var(--accent-slate);
    fill: var(--accent-slate);
    stroke: var(--accent-slate);
}

[data-theme="light"] .category-icon svg,
[data-theme="light"] .pos-product-icon svg {
    color: var(--accent-slate-dark);
    fill: var(--accent-slate-dark);
    stroke: var(--accent-slate-dark);
}

/* ═══════════════════════════════════════════
   POS PROMOTIONS
   ═══════════════════════════════════════════ */

/* Promotions Banner */
.pos-promo-banner {
    padding: 8px 16px;
    background: rgba(201, 168, 76, 0.05);
    backdrop-filter: var(--blur-sm);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
}

.pos-promo-banner::-webkit-scrollbar {
    display: none;
}

.pos-promo-banner-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gold);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pos-promo-banner-list {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
}

.pos-promo-banner-list::-webkit-scrollbar {
    display: none;
}

.pos-promo-chip {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 20px;
    border: 1px solid var(--promo-color, var(--gold));
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: var(--blur-sm);
    color: var(--text-primary);
    font-size: 0.72rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.pos-promo-chip i {
    color: var(--promo-color, var(--gold));
    font-size: 0.7rem;
}

.pos-promo-chip:hover {
    background: rgba(201, 168, 76, 0.10);
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(201, 168, 76, 0.08);
}

.pos-promo-chip.active {
    background: var(--promo-color, var(--gold));
    color: #1a1a00;
    border-color: var(--promo-color, var(--gold));
    box-shadow: 0 2px 12px rgba(201, 168, 76, 0.30);
}

.pos-promo-chip.active i {
    color: #1a1a00;
}

.pos-promo-chip-value {
    font-size: 0.65rem;
    opacity: 0.7;
    padding-left: 4px;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    margin-left: 2px;
}

/* Promo Code Input */
.pos-promo-code-section {
    padding: 6px 12px;
    border-top: 1px solid var(--border-color);
}

.pos-promo-code-input {
    display: flex;
    gap: 4px;
}

.pos-promo-input {
    flex: 1;
    padding: 5px 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: var(--blur-sm);
    color: var(--text-primary);
    font-size: 0.75rem;
    font-family: monospace;
    letter-spacing: 1px;
    text-transform: uppercase;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.pos-promo-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.10);
}

.pos-promo-input::placeholder {
    text-transform: none;
    letter-spacing: 0;
    font-family: var(--font-base);
}

.pos-promo-apply-btn {
    padding: 5px 12px;
    border: 1px solid var(--gold);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: var(--blur-sm);
    color: var(--gold);
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.pos-promo-apply-btn:hover {
    background: var(--gold);
    color: #1a1a00;
    box-shadow: 0 0 14px rgba(201, 168, 76, 0.20);
}

/* Promo Message */
.pos-promo-msg {
    font-size: 0.7rem;
    padding: 3px 0;
    color: var(--text-muted);
}

.pos-promo-msg-success {
    color: #27ae60;
}

.pos-promo-msg-error {
    color: #e74c3c;
}

.pos-promo-msg-warning {
    color: #f39c12;
}

/* Applied Promos */
.pos-applied-promos {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 4px;
}

.pos-applied-promo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 8px;
    background: rgba(39, 174, 96, 0.07);
    backdrop-filter: var(--blur-sm);
    border: 1px solid rgba(39, 174, 96, 0.18);
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
}

.pos-applied-promo-info {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #27ae60;
}

.pos-applied-promo-save {
    font-weight: 700;
}

.pos-applied-promo-remove {
    border: none;
    background: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px 4px;
    font-size: 0.7rem;
    border-radius: 3px;
    transition: all 0.2s;
}

.pos-applied-promo-remove:hover {
    background: rgba(231, 76, 60, 0.12);
    color: #e74c3c;
}

/* Stat cards for promotions page */
.stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
}

.stat-icon {
    font-size: 1.5rem;
    opacity: 0.8;
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    font-family: var(--font-display);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Grid layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

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

@media (max-width: 768px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Text helpers */
.text-green {
    color: #27ae60 !important;
}

/* Badge ghost */
.badge-ghost {
    background: rgba(136, 152, 170, 0.10);
    backdrop-filter: var(--blur-sm);
    color: var(--text-secondary);
    border: 1px solid rgba(136, 152, 170, 0.14);
}

.badge-purple {
    background: rgba(155, 89, 182, 0.12);
    color: #9b59b6;
    border: 1px solid rgba(155, 89, 182, 0.20);
}

/* ═══════════════════════════════════════════
   RESPONSIVE UTILITIES & UI POLISH
   ═══════════════════════════════════════════ */

/* Consistent border radius */
.rounded {
    border-radius: var(--radius-md) !important;
}

.rounded-sm {
    border-radius: var(--radius-sm) !important;
}

.rounded-lg {
    border-radius: var(--radius-lg) !important;
}

.rounded-xl {
    border-radius: var(--radius-xl) !important;
}

.rounded-full {
    border-radius: var(--radius-full) !important;
}

/* Table wrapper with scroll */
.table-wrapper {
    position: relative;
    overflow-x: auto;
    overflow-y: auto;
    max-height: 600px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.table-wrapper::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.table-wrapper::-webkit-scrollbar-track {
    background: var(--bg-glass);
    border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb {
    background: var(--accent-slate);
    border-radius: 4px;
    opacity: 0.5;
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);
    opacity: 1;
}

/* Compact spacing for dense layouts */
.compact-card {
    padding: 0.75rem !important;
}

.compact-table td,
.compact-table th {
    padding: 8px 12px !important;
    font-size: 0.8rem !important;
}

/* Better light theme form controls */
[data-theme="light"] .form-control {
    background: rgba(255, 255, 255, 0.90);
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: var(--text-primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .form-control:focus {
    background: rgba(255, 255, 255, 1);
    border-color: var(--accent-gold-dark);
    box-shadow: 0 0 0 3px rgba(166, 138, 48, 0.15), 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Light theme glass improvements */
[data-theme="light"] .glass-strong {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: var(--shadow-md), 0 2px 8px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .table-container {
    background: rgba(255, 255, 255, 0.90);
    border: 1px solid rgba(0, 0, 0, 0.12);
}

/* Responsive grid improvements */
@media (max-width: 1200px) {
    .page-content {
        padding: 1rem;
    }

    .card {
        padding: 0.875rem;
    }
}

@media (max-width: 768px) {
    .page-content {
        padding: 0.75rem;
    }

    .card {
        padding: 0.75rem;
    }

    .table-wrapper,
    .table-container {
        max-height: 400px;
    }

    .btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

/* Ensure all dropdowns have visible arrows */
select,
.form-select,
.select-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px 14px;
    padding-right: 36px !important;
}

/* Dark theme dropdown arrow */
[data-theme="dark"] select,
[data-theme="dark"] .form-select,
[data-theme="dark"] .select-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%23c9a84c' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
}

/* Light theme dropdown arrow */
[data-theme="light"] select,
[data-theme="light"] .form-select,
[data-theme="light"] .select-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%233d4758' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
}

/* Improved hover states for light theme */
[data-theme="light"] .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.18);
    transform: translateY(-1px);
}

[data-theme="light"] .card:hover {
    transform: translateY(-2px);
    border-color: var(--border-gold-strong);
}

/* Better table hover in light theme */
[data-theme="light"] .table tr:hover td {
    background: rgba(166, 138, 48, 0.08);
    color: var(--text-primary);
}

/* Scrollbar styling for light theme */
[data-theme="light"] .table-container::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.35);
}

[data-theme="light"] .table-container::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold-dark);
}

.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 35, 0.65);
    /* dark blur bg */
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 🔥 Glass popup style */
.popup-box {
    background: linear-gradient(145deg,
            rgba(255, 255, 255, 0.05),
            rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    padding: 30px;
    border-radius: 18px;
    text-align: center;
    min-width: 340px;
    color: #fff;

    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.product-name {
    font-weight: bold;
    color: white;
    font-size: 18px;
}

.product-code {
    color: #9ca3af;
    font-size: 13px;
}

.product-category {
    background: #374151;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 12px;
}

/* Fix: Remove white cross-hair lines on discount modal */
#discountModal .modal::before {
    display: none;
}