/* ============================================================================
   Roy4d Grand Hotel — custom design system (no Tailwind)
   ----------------------------------------------------------------------------
   Theme tokens are driven by the `data-bs-theme` attribute on <html>, which is
   toggled by the global framework menu (.app-window-menu button[data-theme]).
   :root            -> light theme
   html[data-bs-theme="dark"] -> dark theme
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=Inter:wght@400;500;600;700;800&display=swap');

/* ---------------------------------------------------------------------------
   1. Design tokens
   --------------------------------------------------------------------------- */
:root {
    color-scheme: light;

    /* Surfaces */
    --bg: #eef1f7;
    --surface: #ffffff;
    --surface-2: #f7f9fc;
    --surface-3: #eef2f8;
    --surface-glass: rgba(255, 255, 255, 0.72);

    /* Ink (text) */
    --ink: #0e1526;
    --ink-2: #3c4a63;
    --ink-3: #66748f;
    --ink-4: #98a3b8;

    /* Lines */
    --line: #e3e9f2;
    --line-2: #eef2f8;

    /* Slate scale (surfaces + text, inverted for dark) */
    --slate-50: #f8fafc;
    --slate-100: #eef2f8;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;

    /* Brand */
    --brand-50: #eef4ff;
    --brand-100: #dbe7ff;
    --brand-200: #bcd3ff;
    --brand-300: #8eb6ff;
    --brand-400: #598eff;
    --brand-500: #3567fb;
    --brand-600: #1f45f0;
    --brand-700: #1733dd;
    --brand-800: #1a2cb0;
    --brand-900: #1b2c8d;
    --brand-950: #141d55;

    /* Gold */
    --gold-300: #f5d489;
    --gold-400: #f5c76a;
    --gold-500: #e8ad3d;
    --gold-600: #d18f1f;

    /* Status */
    --emerald-50: #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-200: #a7f3d0;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --emerald-800: #065f46;
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --amber-800: #92400e;
    --rose-50: #fff1f2;
    --rose-100: #ffe4e6;
    --rose-200: #fecdd3;
    --rose-500: #f43f5e;
    --rose-600: #e11d48;
    --rose-700: #be123c;
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --violet-50: #f5f3ff;
    --violet-600: #7c3aed;
    --violet-700: #6d28d9;
    --sky-50: #f0f9ff;
    --sky-600: #0284c7;
    --sky-700: #0369a1;

    /* Deep navy (hero / footer / sidebar — constant across themes) */
    --deep: #0a1120;
    --deep-2: #101a31;
    --deep-3: #16223f;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
    --shadow: 0 1px 3px rgba(16, 24, 40, 0.08), 0 1px 2px rgba(16, 24, 40, 0.04);
    --shadow-md: 0 6px 16px -4px rgba(16, 24, 40, 0.12), 0 2px 6px -2px rgba(16, 24, 40, 0.06);
    --shadow-lg: 0 16px 40px -12px rgba(16, 24, 40, 0.22), 0 4px 12px -4px rgba(16, 24, 40, 0.08);
    --shadow-xl: 0 28px 70px -16px rgba(10, 18, 38, 0.4);

    --ring: 0 0 0 3px rgba(53, 103, 251, 0.28);

    /* Component palettes — decorative gradients that also adapt to dark */
    --stat-brand: linear-gradient(135deg, #3567fb, #1733dd);
    --stat-emerald: linear-gradient(135deg, #10b981, #047857);
    --stat-amber: linear-gradient(135deg, #f5b53a, #d18f1f);
    --stat-rose: linear-gradient(135deg, #fb7185, #be123c);
    --stat-slate: linear-gradient(135deg, #3f4f6b, #16213a);

    --hero-bg: linear-gradient(135deg, #0a1120, #111c36 55%, #0a1120);
    --hero-glow-brand: rgba(53, 103, 251, 0.42);
    --hero-glow-gold: rgba(232, 173, 61, 0.22);
    --hero-text: #c7d0e0;
    --hero-cta-solid-text: #1a1505;

    --band-bg: linear-gradient(135deg, #1733dd, #1b2c8d 55%, #141d55);
    --band-text: rgba(255, 255, 255, 0.82);

    --aside-bg: linear-gradient(180deg, #0a1120, #0e1830);
    --aside-ghost: rgba(255, 255, 255, 0.75);

    --footer-bg: linear-gradient(180deg, #0a1120, #070b16);
    --footer-text: #c7d0e0;

    --toast-success: linear-gradient(135deg, #10b981, #059669);
    --toast-error: linear-gradient(135deg, #f43f5e, #e11d48);
    --toast-info: linear-gradient(135deg, #334155, #1e293b);
    --toast-warn: linear-gradient(135deg, #f59e0b, #d97706);

    --modal-scrim: rgba(6, 10, 20, 0.55);

    /* Gradient stop palette (page-header heroes, image tiles) */
    --g-slate-800: #101a31;
    --g-slate-900: #0a1120;
    --g-brand-400: #598eff;
    --g-brand-500: #3567fb;
    --g-brand-700: #1733dd;
    --g-gold-400: #f5c76a;
    --g-brand-800: #101b63;
    --g-to-amber-950: #1d0e04;
    --g-to-brand-600: #1f45f0;
    --g-to-brand-700: #1733dd;
    --g-to-brand-950: #0c1140;
    --g-to-gold-600: #d18f1f;
    --g-to-slate-800: #101a31;
    --g-to-slate-900: #0a1120;
}

html[data-bs-theme="dark"] {
    color-scheme: dark;

    --bg: #080d18;
    --surface: #10182a;
    --surface-2: #141e35;
    --surface-3: #1a2640;
    --surface-glass: rgba(16, 24, 42, 0.75);

    --ink: #eef2fa;
    --ink-2: #c3ccdd;
    --ink-3: #8b97b0;
    --ink-4: #5d6a85;

    --line: #1d2945;
    --line-2: #17213a;

    --slate-50: #0e1526;
    --slate-100: #131c31;
    --slate-200: #1a2640;
    --slate-300: #263454;
    --slate-400: #44526f;
    --slate-500: #6b7894;
    --slate-600: #93a0ba;
    --slate-700: #b6c0d3;
    --slate-800: #d6dce8;
    --slate-900: #eef2fa;

    --brand-50: #141d40;
    --brand-100: #17234e;
    --brand-200: #1e2f6b;
    --brand-300: #2c448f;
    --brand-400: #3f5fc0;
    --brand-500: #5f7df7;
    --brand-600: #6d8dff;
    --brand-700: #8ba5ff;
    --brand-800: #b6c6ff;
    --brand-900: #dce4ff;
    --brand-950: #f0f4ff;

    --gold-300: #f8dd9e;
    --gold-400: #f3c963;
    --gold-500: #e9b64a;
    --gold-600: #d79a2c;

    --emerald-50: #0c241c;
    --emerald-100: #123728;
    --emerald-200: #18503a;
    --emerald-500: #10b981;
    --emerald-600: #34d399;
    --emerald-700: #5eead4;
    --emerald-800: #a7f3d0;
    --amber-50: #251b09;
    --amber-100: #33250c;
    --amber-200: #4a3712;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --amber-600: #fbbf24;
    --amber-700: #fcd34d;
    --amber-800: #fde68a;
    --rose-50: #2a0f17;
    --rose-100: #3a1520;
    --rose-200: #521d2c;
    --rose-500: #fb7185;
    --rose-600: #f43f5e;
    --rose-700: #fb7185;
    --blue-50: #101d38;
    --blue-100: #16294d;
    --blue-600: #60a5fa;
    --blue-700: #93c5fd;
    --violet-50: #1b1233;
    --violet-600: #a78bfa;
    --violet-700: #c4b5fd;
    --sky-50: #0c1d2e;
    --sky-600: #38bdf8;
    --sky-700: #7dd3fc;

    --deep: #05080f;
    --deep-2: #0b1220;
    --deep-3: #101a31;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.45), 0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 8px 20px -6px rgba(0, 0, 0, 0.55);
    --shadow-lg: 0 20px 50px -14px rgba(0, 0, 0, 0.65);
    --shadow-xl: 0 32px 80px -18px rgba(0, 0, 0, 0.75);

    --ring: 0 0 0 3px rgba(109, 141, 255, 0.35);

    /* Component palettes — dark variants */
    --stat-brand: linear-gradient(135deg, #2b4ce0, #0e2478);
    --stat-emerald: linear-gradient(135deg, #0a9c74, #036040);
    --stat-amber: linear-gradient(135deg, #d99a24, #9c6a12);
    --stat-rose: linear-gradient(135deg, #d94a62, #8c1830);
    --stat-slate: linear-gradient(135deg, #253047, #0b1220);

    --hero-bg: linear-gradient(135deg, #05080f, #0b1322 55%, #05080f);
    --hero-glow-brand: rgba(53, 103, 251, 0.28);
    --hero-glow-gold: rgba(232, 173, 61, 0.14);
    --hero-text: #93a0ba;
    --hero-cta-solid-text: #171204;

    --band-bg: linear-gradient(135deg, #1328a8, #111d78 55%, #0a0f38);
    --band-text: rgba(255, 255, 255, 0.8);

    --aside-bg: linear-gradient(180deg, #05080f, #0a1120);
    --aside-ghost: rgba(255, 255, 255, 0.72);

    --footer-bg: linear-gradient(180deg, #05080f, #03050b);
    --footer-text: #94a0b8;

    --toast-success: linear-gradient(135deg, #0b8a64, #03614a);
    --toast-error: linear-gradient(135deg, #d62f50, #a8183b);
    --toast-info: linear-gradient(135deg, #202b40, #121a2c);
    --toast-warn: linear-gradient(135deg, #d98a06, #a56509);

    --modal-scrim: rgba(2, 4, 10, 0.66);

    --g-slate-800: #0b1220;
    --g-slate-900: #05080f;
    --g-brand-400: #3f5fc0;
    --g-brand-500: #5f7df7;
    --g-brand-700: #2c448f;
    --g-gold-400: #f3c963;
    --g-brand-800: #16244f;
    --g-to-amber-950: #120903;
    --g-to-brand-600: #6d8dff;
    --g-to-brand-700: #2c448f;
    --g-to-brand-950: #080b2a;
    --g-to-gold-600: #d79a2c;
    --g-to-slate-800: #0b1220;
    --g-to-slate-900: #05080f;
}

/* ---------------------------------------------------------------------------
   2. Base / reset
   --------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background:
        radial-gradient(1200px 500px at 100% -10%, rgba(53, 103, 251, 0.06), transparent 60%),
        radial-gradient(1000px 500px at -10% 110%, rgba(232, 173, 61, 0.05), transparent 55%),
        var(--bg);
    color: var(--ink);
    font-family: 'Inter', 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--ink);
    line-height: 1.2;
    margin-top: 0;
}

p {
    margin-top: 0;
}

a {
    color: var(--brand-600);
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
}

input,
select,
textarea {
    font-family: inherit;
    color: var(--ink);
}

::selection {
    background: var(--brand-500);
    color: #fff;
}

/* Premium focus ring */
:focus-visible {
    outline: 2px solid var(--brand-500);
    outline-offset: 2px;
    border-radius: 6px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--slate-300);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--slate-400);
    background-clip: content-box;
    border: 2px solid transparent;
}

.font-display {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    letter-spacing: -0.01em;
}

.hu-font-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------------------------------------------------------------------------
   3. Typography utilities
   --------------------------------------------------------------------------- */
.hu-text-left {
    text-align: left;
}

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

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

.hu-text-xs {
    font-size: 12px;
    line-height: 1.45;
}

.hu-text-sm {
    font-size: 13.5px;
    line-height: 1.5;
}

.hu-text-base {
    font-size: 15px;
    line-height: 1.55;
}

.hu-text-lg {
    font-size: 17px;
    line-height: 1.5;
}

.hu-text-xl {
    font-size: 20px;
    line-height: 1.35;
}

.hu-text-2xl {
    font-size: 24px;
    line-height: 1.25;
}

.hu-text-3xl {
    font-size: 29px;
    line-height: 1.2;
}

.hu-text-4xl {
    font-size: 34px;
    line-height: 1.15;
}

.hu-text-5xl {
    font-size: 42px;
    line-height: 1.1;
}

.hu-font-normal {
    font-weight: 400;
}

.hu-font-medium {
    font-weight: 500;
}

.hu-font-semibold {
    font-weight: 600;
}

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

.hu-uppercase {
    text-transform: uppercase;
}

.hu-capitalize {
    text-transform: capitalize;
}

.hu-tracking-tight {
    letter-spacing: -0.02em;
}

.hu-tracking-wide {
    letter-spacing: 0.02em;
}

.hu-tracking-widest {
    letter-spacing: 0.12em;
}

.hu-leading-tight {
    line-height: 1.2;
}

.hu-leading-relaxed {
    line-height: 1.65;
}

.hu-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hu-whitespace-nowrap {
    white-space: nowrap;
}

.hu-line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------------------------------------------------------------------------
   4. Layout utilities
   --------------------------------------------------------------------------- */
.hu-block {
    display: block;
}

.hu-inline-flex {
    display: inline-flex;
}

.hu-flex {
    display: flex;
}

.hu-grid {
    display: grid;
}

.hu-hidden {
    display: none;
}

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

.hu-flex-wrap {
    flex-wrap: wrap;
}

.hu-flex-1 {
    flex: 1 1 0%;
}

.hu-shrink-0 {
    flex-shrink: 0;
}

.hu-items-start {
    align-items: flex-start;
}

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

.hu-items-end {
    align-items: flex-end;
}

.hu-justify-start {
    justify-content: flex-start;
}

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

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

.hu-justify-end {
    justify-content: flex-end;
}

.hu-place-items-center {
    place-items: center;
}

.hu-grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

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

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

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

.hu-grid-cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.hu-gap-1 {
    gap: 0.25rem;
}

.hu-gap-2 {
    gap: 0.5rem;
}

.hu-gap-3 {
    gap: 0.75rem;
}

.hu-gap-4 {
    gap: 1rem;
}

.hu-gap-5 {
    gap: 1.25rem;
}

.hu-gap-6 {
    gap: 1.5rem;
}

.hu-gap-8 {
    gap: 2rem;
}

.hu-space-y-1>*+* {
    margin-top: 0.25rem;
}

.hu-space-y-2>*+* {
    margin-top: 0.5rem;
}

.hu-space-y-3>*+* {
    margin-top: 0.75rem;
}

.hu-space-y-4>*+* {
    margin-top: 1rem;
}

.hu-space-y-6>*+* {
    margin-top: 1.5rem;
}

.hu-space-y-8>*+* {
    margin-top: 2rem;
}

.hu-space-y-10>*+* {
    margin-top: 2.5rem;
}

/* Spacing scale (0.125rem base) */
.hu-p-1 {
    padding: 0.25rem;
}

.hu-p-1-5 {
    padding: 0.375rem;
}

.hu-p-2 {
    padding: 0.5rem;
}

.hu-p-2-5 {
    padding: 0.625rem;
}

.hu-p-3 {
    padding: 0.75rem;
}

.hu-p-4 {
    padding: 1rem;
}

.hu-p-5 {
    padding: 1.25rem;
}

.hu-p-6 {
    padding: 1.5rem;
}

.hu-p-8 {
    padding: 2rem;
}

.hu-p-10 {
    padding: 2.5rem;
}

.hu-p-12 {
    padding: 3rem;
}

.hu-p-14 {
    padding: 3.5rem;
}

.hu-px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.hu-px-2-5 {
    padding-left: 0.625rem;
    padding-right: 0.625rem;
}

.hu-px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.hu-px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.hu-px-5 {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.hu-px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.hu-px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.hu-py-0-5 {
    padding-top: 0.125rem;
    padding-bottom: 0.125rem;
}

.hu-py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.hu-py-1-5 {
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
}

.hu-py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.hu-py-2-5 {
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
}

.hu-py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.hu-py-3-5 {
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
}

.hu-py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.hu-py-5 {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.hu-py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.hu-py-10 {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.hu-py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.hu-py-14 {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

.hu-py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.hu-py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.hu-py-24 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.hu-py-28 {
    padding-top: 7rem;
    padding-bottom: 7rem;
}

.hu-pt-2 {
    padding-top: 0.5rem;
}

.hu-pt-3 {
    padding-top: 0.75rem;
}

.hu-pt-4 {
    padding-top: 1rem;
}

.hu-pt-20 {
    padding-top: 5rem;
}

.hu-pt-24 {
    padding-top: 6rem;
}

.hu-pt-28 {
    padding-top: 7rem;
}

.hu-pb-2 {
    padding-bottom: 0.5rem;
}

.hu-pb-16 {
    padding-bottom: 4rem;
}

.hu-pb-24 {
    padding-bottom: 6rem;
}

.hu-mt-0-5 {
    margin-top: 0.125rem;
}

.hu-mt-1 {
    margin-top: 0.25rem;
}

.hu-mt-1-5 {
    margin-top: 0.375rem;
}

.hu-mt-2 {
    margin-top: 0.5rem;
}

.hu-mt-3 {
    margin-top: 0.75rem;
}

.hu-mt-4 {
    margin-top: 1rem;
}

.hu-mt-5 {
    margin-top: 1.25rem;
}

.hu-mt-6 {
    margin-top: 1.5rem;
}

.hu-mt-7 {
    margin-top: 1.75rem;
}

.hu-mt-8 {
    margin-top: 2rem;
}

.hu-mt-10 {
    margin-top: 2.5rem;
}

.hu-mt-12 {
    margin-top: 3rem;
}

.hu-mb-1 {
    margin-bottom: 0.25rem;
}

.hu-mb-1-5 {
    margin-bottom: 0.375rem;
}

.hu-mb-3 {
    margin-bottom: 0.75rem;
}

.hu-mb-4 {
    margin-bottom: 1rem;
}

.hu-mb-10 {
    margin-bottom: 2.5rem;
}

.hu-mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Sizing */
.hu-w-2 {
    width: 0.5rem;
}

.hu-w-2-5 {
    width: 0.625rem;
}

.hu-w-5 {
    width: 1.25rem;
}

.hu-w-6 {
    width: 1.5rem;
}

.hu-w-7 {
    width: 1.75rem;
}

.hu-w-8 {
    width: 2rem;
}

.hu-w-9 {
    width: 2.25rem;
}

.hu-w-10 {
    width: 2.5rem;
}

.hu-w-11 {
    width: 2.75rem;
}

.hu-w-64 {
    width: 16rem;
}

.hu-w-full {
    width: 100%;
}

.hu-min-w-0 {
    min-width: 0;
}

.hu-min-w-full {
    min-width: 100%;
}

.hu-h-2 {
    height: 0.5rem;
}

.hu-h-2-5 {
    height: 0.625rem;
}

.hu-h-5 {
    height: 1.25rem;
}

.hu-h-7 {
    height: 1.75rem;
}

.hu-h-8 {
    height: 2rem;
}

.hu-h-9 {
    height: 2.25rem;
}

.hu-h-10 {
    height: 2.5rem;
}

.hu-h-11 {
    height: 2.75rem;
}

.hu-h-28 {
    height: 7rem;
}

.hu-h-40 {
    height: 10rem;
}

.hu-h-full {
    height: 100%;
}

.hu-h-fit {
    height: fit-content;
}

.hu-min-h-screen {
    min-height: 100vh;
}

.hu-min-h-86vh {
    min-height: 86vh;
}

.hu-max-w-2xl {
    max-width: 42rem;
}

.hu-max-w-3xl {
    max-width: 48rem;
}

.hu-max-w-4xl {
    max-width: 56rem;
}

.hu-max-w-5xl {
    max-width: 64rem;
}

.hu-max-w-6xl {
    max-width: 72rem;
}

.hu-max-w-7xl {
    max-width: 80rem;
}

.hu-max-w-md {
    max-width: 28rem;
}

.hu-max-w-sm {
    max-width: 24rem;
}

.hu-max-w-xl {
    max-width: 36rem;
}

/* Positioning */
.hu-relative {
    position: relative;
}

.hu-absolute {
    position: absolute;
}

.hu-fixed {
    position: fixed;
}

.hu-inset-0 {
    inset: 0;
}

.hu-inset-x-0 {
    left: 0;
    right: 0;
}

.hu-inset-y-0 {
    top: 0;
    bottom: 0;
}

.hu-top-0 {
    top: 0;
}

.hu-bottom-0 {
    bottom: 0;
}

.hu-left-0 {
    left: 0;
}

.hu-right-0 {
    right: 0;
}

.hu-top-1 {
    top: -0.25rem;
}

.hu-right-1 {
    right: -0.25rem;
}

.hu-z-10 {
    z-index: 10;
}

.hu-z-30 {
    z-index: 30;
}

.hu-z-40 {
    z-index: 40;
}

.hu-z-50 {
    z-index: 50;
}

.hu-overflow-hidden {
    overflow: hidden;
}

.hu-overflow-x-auto {
    overflow-x: auto;
}

.hu-overflow-y-auto {
    overflow-y: auto;
}

/* ---------------------------------------------------------------------------
   5. Borders, radius, shadows, effects
   --------------------------------------------------------------------------- */
.hu-border {
    border: 1px solid var(--line);
}

.hu-border-t {
    border-top: 1px solid var(--line);
}

.hu-border-b {
    border-bottom: 1px solid var(--line);
}

.hu-border-dashed {
    border-style: dashed;
}

.hu-rounded-lg {
    border-radius: 0.6rem;
}

.hu-rounded-xl {
    border-radius: 0.8rem;
}

.hu-rounded-2xl {
    border-radius: 1.1rem;
}

.hu-rounded-full {
    border-radius: 9999px;
}

.hu-rounded-t {
    border-top-left-radius: 1.1rem;
    border-top-right-radius: 1.1rem;
}

.hu-shadow-sm {
    box-shadow: var(--shadow-sm);
}

.hu-shadow-lg {
    box-shadow: var(--shadow-lg);
}

/* Floating bottom order bar */
.order-bar {
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.1);
}

.hu-opacity-25 {
    opacity: 0.25;
}

.hu-opacity-75 {
    opacity: 0.75;
}

.hu-opacity-80 {
    opacity: 0.8;
}

.hu-opacity-90 {
    opacity: 0.9;
}

.hu-transition {
    transition: all 0.2s ease;
}

.hu-transition-all {
    transition: all 0.2s ease;
}

.hu-animate-spin {
    animation: spin 0.8s linear infinite;
}

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

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

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

.fade-up {
    animation: fadeUp 0.35s ease both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.hu-cursor-pointer {
    cursor: pointer;
}

.hu-backdrop-blur {
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.hu-accent-brand-600 {
    accent-color: var(--brand-600);
}

.hu-group:hover .hu-group-hover-text-brand-700 {
    color: var(--brand-700);
}

/* ---------------------------------------------------------------------------
   6. Color utilities (token-driven — adapt to light/dark automatically)
   --------------------------------------------------------------------------- */
/* Backgrounds */
.hu-bg-white {
    background-color: var(--surface);
}

.hu-bg-white-5 {
    background-color: rgba(255, 255, 255, 0.05);
}

.hu-bg-white-10 {
    background-color: rgba(255, 255, 255, 0.1);
}

.hu-bg-white-15 {
    background-color: rgba(255, 255, 255, 0.15);
}

.hu-bg-white-60 {
    background-color: color-mix(in srgb, var(--surface) 60%, transparent);
}

.hu-bg-white-95 {
    background-color: color-mix(in srgb, var(--surface) 95%, transparent);
}

.hu-bg-slate-50 {
    background-color: var(--slate-50);
}

.hu-bg-slate-100 {
    background-color: var(--slate-100);
}

.hu-bg-slate-200 {
    background-color: var(--slate-200);
}

.hu-bg-slate-800 {
    background-color: var(--deep-2);
}

.hu-bg-slate-900 {
    background-color: var(--deep);
}

.hu-bg-slate-900-90 {
    background-color: color-mix(in srgb, var(--deep) 92%, transparent);
}

.hu-bg-brand-50 {
    background-color: var(--brand-50);
}

.hu-bg-brand-50-60 {
    background-color: color-mix(in srgb, var(--brand-50) 60%, transparent);
}

.hu-bg-brand-100 {
    background-color: var(--brand-100);
}

.hu-bg-brand-500 {
    background-color: var(--brand-500);
}

.hu-bg-brand-600 {
    background-color: var(--brand-600);
}

.hu-bg-brand-600-90 {
    background-color: color-mix(in srgb, var(--brand-600) 90%, transparent);
}

.hu-bg-gold-500 {
    background-color: var(--gold-500);
}

.hu-bg-emerald-50 {
    background-color: var(--emerald-50);
}

.hu-bg-emerald-100 {
    background-color: var(--emerald-100);
}

.hu-bg-emerald-200 {
    background-color: var(--emerald-200);
}

.hu-bg-emerald-500 {
    background-color: var(--emerald-500);
}

.hu-bg-emerald-600 {
    background-color: var(--emerald-600);
}

.hu-bg-amber-50 {
    background-color: var(--amber-50);
}

.hu-bg-amber-100 {
    background-color: var(--amber-100);
}

.hu-bg-amber-400 {
    background-color: var(--amber-400);
}

.hu-bg-amber-500 {
    background-color: var(--amber-500);
}

.hu-bg-amber-600 {
    background-color: var(--amber-600);
}

.hu-bg-rose-50 {
    background-color: var(--rose-50);
}

.hu-bg-rose-100 {
    background-color: var(--rose-100);
}

.hu-bg-rose-500 {
    background-color: var(--rose-500);
}

.hu-bg-rose-600 {
    background-color: var(--rose-600);
}

.hu-bg-blue-50 {
    background-color: var(--blue-50);
}

.hu-bg-blue-100 {
    background-color: var(--blue-100);
}

/* Text colors */
.hu-text-white {
    color: #ffffff;
}

.hu-text-white-80 {
    color: rgba(255, 255, 255, 0.8);
}

.hu-text-white-70 {
    color: rgba(255, 255, 255, 0.7);
}

.hu-text-slate-300 {
    color: var(--slate-300);
}

.hu-text-slate-400 {
    color: var(--slate-400);
}

.hu-text-slate-500 {
    color: var(--slate-500);
}

.hu-text-slate-600 {
    color: var(--slate-600);
}

.hu-text-slate-700 {
    color: var(--slate-700);
}

.hu-text-slate-800 {
    color: var(--slate-800);
}

.hu-text-slate-900 {
    color: var(--slate-900);
}

.hu-text-brand-100 {
    color: var(--brand-100);
}

.hu-text-brand-600 {
    color: var(--brand-600);
}

.hu-text-brand-700 {
    color: var(--brand-700);
}

.hu-text-brand-800 {
    color: var(--brand-800);
}

.hu-text-gold-300 {
    color: var(--gold-300);
}

.hu-text-gold-400 {
    color: var(--gold-400);
}

.hu-text-gold-600 {
    color: var(--gold-600);
}

.hu-text-emerald-600 {
    color: var(--emerald-600);
}

.hu-text-emerald-700 {
    color: var(--emerald-700);
}

.hu-text-emerald-800 {
    color: var(--emerald-800);
}

.hu-text-amber-600 {
    color: var(--amber-600);
}

.hu-text-amber-700 {
    color: var(--amber-700);
}

.hu-text-amber-800 {
    color: var(--amber-800);
}

.hu-text-rose-500 {
    color: var(--rose-500);
}

.hu-text-rose-600 {
    color: var(--rose-600);
}

.hu-text-rose-700 {
    color: var(--rose-700);
}

.hu-text-blue-600 {
    color: var(--blue-600);
}

.hu-text-blue-700 {
    color: var(--blue-700);
}

/* Border colors */
.hu-border-slate-100 {
    border-color: var(--slate-100);
}

.hu-border-slate-200 {
    border-color: var(--slate-200);
}

.hu-border-slate-300 {
    border-color: var(--slate-300);
}

.hu-border-slate-800 {
    border-color: var(--deep-2);
}

.hu-border-brand-200 {
    border-color: var(--brand-200);
}

.hu-border-brand-500 {
    border-color: var(--brand-500);
}

.hu-border-emerald-200 {
    border-color: var(--emerald-200);
}

.hu-border-amber-200 {
    border-color: var(--amber-200);
}

.hu-border-rose-200 {
    border-color: var(--rose-200);
}

.hu-border-white-10 {
    border-color: rgba(255, 255, 255, 0.1);
}

.hu-border-white-25 {
    border-color: rgba(255, 255, 255, 0.25);
}

.hu-border-white-30 {
    border-color: rgba(255, 255, 255, 0.3);
}

.hu-divide-y>*+* {
    border-top: 1px solid var(--line);
}

.hu-divide-slate-50>*+* {
    border-top: 1px solid var(--line-2);
}

.hu-divide-slate-100>*+* {
    border-top: 1px solid var(--line);
}

/* Rings (badge pills + tone chips) */
.hu-ring-1 {
    box-shadow: 0 0 0 1px var(--ring-color, var(--line));
}

.hu-ring-inset {
    box-shadow: inset 0 0 0 1px var(--ring-color, var(--line));
}

.hu-ring-emerald-600-20 {
    --ring-color: color-mix(in srgb, var(--emerald-600) 20%, transparent);
}

.hu-ring-blue-600-20 {
    --ring-color: color-mix(in srgb, var(--blue-600) 20%, transparent);
}

.hu-ring-amber-600-20 {
    --ring-color: color-mix(in srgb, var(--amber-600) 20%, transparent);
}

.hu-ring-rose-600-20 {
    --ring-color: color-mix(in srgb, var(--rose-600) 20%, transparent);
}

.hu-ring-violet-600-20 {
    --ring-color: color-mix(in srgb, var(--violet-600) 20%, transparent);
}

.hu-ring-sky-600-20 {
    --ring-color: color-mix(in srgb, var(--sky-600) 20%, transparent);
}

.hu-ring-slate-500-20 {
    --ring-color: color-mix(in srgb, var(--slate-500) 20%, transparent);
}

/* Gradients */
.hu-bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--g-from), var(--g-via, var(--g-from)), var(--g-to));
}

.hu-bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--g-from), var(--g-via, var(--g-from)), var(--g-to));
}

.hu-from-slate-800 {
    --g-from: var(--g-slate-800);
}

.hu-from-slate-900 {
    --g-from: var(--g-slate-900);
}

.hu-from-brand-400 {
    --g-from: var(--g-brand-400);
}

.hu-from-brand-500 {
    --g-from: var(--g-brand-500);
}

.hu-from-brand-700 {
    --g-from: var(--g-brand-700);
}

.hu-from-gold-400 {
    --g-from: var(--g-gold-400);
}

.hu-via-brand-800 {
    --g-via: var(--g-brand-800);
}

.hu-via-slate-800 {
    --g-via: var(--g-slate-800);
}

.hu-to-amber-950 {
    --g-to: var(--g-to-amber-950);
}

.hu-to-brand-600 {
    --g-to: var(--g-to-brand-600);
}

.hu-to-brand-700 {
    --g-to: var(--g-to-brand-700);
}

.hu-to-brand-950 {
    --g-to: var(--g-to-brand-950);
}

.hu-to-gold-600 {
    --g-to: var(--g-to-gold-600);
}

.hu-to-slate-800 {
    --g-to: var(--g-to-slate-800);
}

.hu-to-slate-900 {
    --g-to: var(--g-to-slate-900);
}

/* ---------------------------------------------------------------------------
   7. Hover utilities
   --------------------------------------------------------------------------- */
.hu-hover-bg-slate-50:hover {
    background-color: var(--slate-50);
}

.hu-hover-bg-slate-50-60:hover {
    background-color: color-mix(in srgb, var(--slate-50) 60%, transparent);
}

.hu-hover-bg-slate-100:hover {
    background-color: var(--slate-100);
}

.hu-hover-bg-slate-200:hover {
    background-color: var(--slate-200);
}

.hu-hover-bg-slate-700:hover {
    background-color: var(--slate-700);
}

.hu-hover-bg-white-5:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.hu-hover-bg-white-10:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.hu-hover-bg-white-15:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.hu-hover-bg-white-20:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.hu-hover-bg-brand-700:hover {
    background-color: var(--brand-700);
}

.hu-hover-bg-gold-400:hover {
    background-color: var(--gold-400);
}

.hu-hover-bg-emerald-700:hover {
    background-color: var(--emerald-700);
}

.hu-hover-bg-amber-700:hover {
    background-color: var(--amber-700);
}

.hu-hover-bg-rose-50:hover {
    background-color: var(--rose-50);
}

.hu-hover-bg-rose-700:hover {
    background-color: var(--rose-700);
}

.hu-hover-text-white:hover {
    color: #ffffff;
}

.hu-hover-text-slate-300:hover {
    color: var(--slate-300);
}

.hu-hover-text-slate-600:hover {
    color: var(--slate-600);
}

.hu-hover-text-slate-700:hover {
    color: var(--slate-700);
}

.hu-hover-text-brand-700:hover {
    color: var(--brand-700);
}

.hu-hover-text-gold-300:hover {
    color: var(--gold-300);
}

.hu-hover-text-rose-700:hover {
    color: var(--rose-700);
}

.hu-hover-border-slate-300:hover {
    border-color: var(--slate-300);
}

.hu-hover-shadow-lg:hover {
    box-shadow: var(--shadow-lg);
}

.hu-hover-translate-y-1:hover {
    transform: translateY(-4px);
}

/* ---------------------------------------------------------------------------
   8. Buttons
   --------------------------------------------------------------------------- */
.hu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid transparent;
    border-radius: 0.7rem;
    padding: 0.55rem 1.1rem;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
    -webkit-user-select: none;
    user-select: none;
}

.hu-btn:active {
    transform: translateY(1px);
}

.hu-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    transform: none;
}

.hu-btn-primary {
    background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
    color: #fff;
    box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--brand-600) 70%, transparent);
}

.hu-btn-primary:hover {
    box-shadow: 0 12px 26px -8px color-mix(in srgb, var(--brand-600) 80%, transparent);
    filter: brightness(1.06);
}

.hu-btn-secondary {
    background: var(--surface);
    border-color: var(--line);
    color: var(--ink-2);
    box-shadow: var(--shadow-sm);
}

.hu-btn-secondary:hover {
    border-color: var(--slate-300);
    color: var(--ink);
    background: var(--surface-2);
}

.hu-btn-danger {
    background: linear-gradient(135deg, var(--rose-500), var(--rose-600));
    color: #fff;
    box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--rose-600) 60%, transparent);
}

.hu-btn-danger:hover {
    filter: brightness(1.06);
}

.hu-btn-ghost {
    background: transparent;
    color: var(--ink-3);
}

.hu-btn-ghost:hover {
    background: var(--surface-3);
    color: var(--ink);
}

/* ---------------------------------------------------------------------------
   9. Inputs & fields
   --------------------------------------------------------------------------- */
.ipt {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 0.65rem;
    background: var(--surface);
    padding: 0.55rem 0.75rem;
    font-size: 13.5px;
    color: var(--ink);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ipt::placeholder {
    color: var(--ink-4);
}

.ipt:focus {
    outline: none;
    border-color: var(--brand-500);
    box-shadow: var(--ring);
}

select.ipt,
input.ipt[type="date"],
input.ipt[type="datetime-local"],
input.ipt[type="time"] {
    color-scheme: inherit;
}

textarea.ipt {
    resize: vertical;
}

.fld-label {
    display: block;
    margin-bottom: 0.375rem;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-2);
}

.fld-hint {
    display: block;
    margin-top: 0.25rem;
    font-size: 12px;
    color: var(--ink-4);
}

/* ---------------------------------------------------------------------------
   10. Cards / panels / stats
   --------------------------------------------------------------------------- */
.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 1.1rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.panel:hover {
    box-shadow: var(--shadow-md);
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid var(--line-2);
}

.panel-head h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}

.panel-body {
    padding: 1.25rem;
}

/* stat cards */
.stat {
    position: relative;
    overflow: hidden;
    border-radius: 1.1rem;
    padding: 1.1rem 1.25rem;
    color: #fff;
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
}

.stat::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(120px 80px at 100% 0%, rgba(255, 255, 255, 0.25), transparent 70%);
    pointer-events: none;
}

.stat-top {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 500;
    opacity: 0.92;
}

.stat-icon {
    font-size: 20px;
}

.stat-value {
    position: relative;
    margin-top: 0.4rem;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.stat-sub {
    position: relative;
    margin-top: 0.2rem;
    font-size: 12px;
    opacity: 0.82;
}

.stat--brand {
    background: var(--stat-brand);
}

.stat--emerald {
    background: var(--stat-emerald);
}

.stat--amber {
    background: var(--stat-amber);
}

.stat--rose {
    background: var(--stat-rose);
}

.stat--slate {
    background: var(--stat-slate);
}

/* mini bar chart */
.minibar {
    display: flex;
    align-items: flex-end;
    gap: 1px;
    height: 7rem;
}

.minibar .bar {
    flex: 1;
    min-height: 4px;
    border-radius: 4px 4px 0 0;
    background: var(--brand-500);
    transition: height 0.3s ease, filter 0.2s ease;
}

.minibar .bar:hover {
    filter: brightness(1.15);
}

/* ---------------------------------------------------------------------------
   11. Tables
   --------------------------------------------------------------------------- */
.tbl-wrap {
    overflow-x: auto;
}

.tbl {
    width: 100%;
    min-width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.tbl thead th {
    padding: 0.7rem 1rem;
    text-align: left;
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-3);
    background: var(--surface-2);
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

.tbl thead th.rt {
    text-align: right;
}

.tbl tbody td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--line-2);
    vertical-align: middle;
}

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

.tbl tbody tr {
    transition: background-color 0.15s ease;
}

.tbl tbody tr:hover {
    background: color-mix(in srgb, var(--surface-3) 60%, transparent);
}

.tbl tbody tr.hu-hover-bg-slate-50-60:hover {
    background: color-mix(in srgb, var(--slate-50) 60%, transparent);
}

/* ---------------------------------------------------------------------------
   12. Pills (badges)
   --------------------------------------------------------------------------- */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.15rem 0.6rem;
    border-radius: 9999px;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
    box-shadow: inset 0 0 0 1px var(--pill-ring, transparent);
}

.pill--emerald {
    background: var(--emerald-50);
    color: var(--emerald-700);
    --pill-ring: color-mix(in srgb, var(--emerald-600) 25%, transparent);
}

.pill--blue {
    background: var(--blue-50);
    color: var(--blue-700);
    --pill-ring: color-mix(in srgb, var(--blue-600) 25%, transparent);
}

.pill--amber {
    background: var(--amber-50);
    color: var(--amber-700);
    --pill-ring: color-mix(in srgb, var(--amber-600) 25%, transparent);
}

.pill--rose {
    background: var(--rose-50);
    color: var(--rose-700);
    --pill-ring: color-mix(in srgb, var(--rose-600) 25%, transparent);
}

.pill--violet {
    background: var(--violet-50);
    color: var(--violet-700);
    --pill-ring: color-mix(in srgb, var(--violet-600) 25%, transparent);
}

.pill--sky {
    background: var(--sky-50);
    color: var(--sky-700);
    --pill-ring: color-mix(in srgb, var(--sky-600) 25%, transparent);
}

.pill--slate {
    background: var(--slate-100);
    color: var(--slate-600);
    --pill-ring: color-mix(in srgb, var(--slate-500) 25%, transparent);
}

/* ---------------------------------------------------------------------------
   13. Tabs (admin)
   --------------------------------------------------------------------------- */
.tabs {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    padding-bottom: 2px;
}

.tab {
    white-space: nowrap;
    border-radius: 9999px;
    padding: 0.45rem 1rem;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-3);
    background: var(--surface);
    border: 1px solid var(--line);
    transition: all 0.2s ease;
}

.tab:hover {
    color: var(--ink);
    border-color: var(--slate-300);
}

.tab--active {
    background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 14px -6px color-mix(in srgb, var(--brand-600) 70%, transparent);
}

/* filter pills */
.pill-btn {
    border-radius: 9999px;
    padding: 0.35rem 0.8rem;
    font-size: 12px;
    font-weight: 500;
    background: var(--surface);
    color: var(--ink-3);
    border: 1px solid var(--line);
    transition: all 0.2s ease;
}

.pill-btn:hover {
    color: var(--ink);
    border-color: var(--slate-300);
}

.pill-btn--active {
    background: var(--brand-600);
    color: #fff;
    border-color: transparent;
}

/* ---------------------------------------------------------------------------
   14. Top bar (app shell)
   --------------------------------------------------------------------------- */
.topbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 40;
    background: color-mix(in srgb, var(--deep) 88%, transparent);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 30px -12px rgba(0, 0, 0, 0.5);
}

.topbar-inner {
    margin: 0 auto;
    max-width: 80rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 1rem;
}

@media (min-width: 640px) {
    .topbar-inner {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #fff;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.8rem;
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
    box-shadow: 0 6px 16px -6px rgba(232, 173, 61, 0.6);
}

.brand-name {
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -0.01em;
    color: #fff;
}

.topnav {
    display: none;
    align-items: center;
    gap: 0.2rem;
}

@media (min-width: 768px) {
    .topnav {
        display: flex;
    }
}

.navlink {
    padding: 0.45rem 0.85rem;
    border-radius: 0.7rem;
    font-size: 13.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    transition: all 0.2s ease;
}

.navlink:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.navlink--active {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.iconbtn {
    position: relative;
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.8rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.iconbtn:hover {
    background: rgba(255, 255, 255, 0.18);
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    display: grid;
    place-items: center;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 0.25rem;
    border-radius: 9999px;
    font-size: 10.5px;
    font-weight: 700;
    color: #0e1526;
    background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.userchip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.75rem 0.3rem 0.3rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.userchip:hover {
    background: rgba(255, 255, 255, 0.18);
}

.avatar {
    display: grid;
    place-items: center;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
}

.avatar--lg {
    width: 2.4rem;
    height: 2.4rem;
    font-size: 13px;
}

.signin-btn {
    border-radius: 0.8rem;
    padding: 0.5rem 1rem;
    font-size: 13.5px;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s ease;
}

.signin-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ---------------------------------------------------------------------------
   15. Hero (dark bands)
   --------------------------------------------------------------------------- */
.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(1100px 520px at 88% -12%, var(--hero-glow-brand), transparent 60%),
        radial-gradient(900px 480px at -8% 112%, var(--hero-glow-gold), transparent 55%),
        var(--hero-bg);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(900px 500px at 50% 0%, #000, transparent 75%);
    mask-image: radial-gradient(900px 500px at 50% 0%, #000, transparent 75%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    margin: 0 auto;
    max-width: 80rem;
    padding: 1.5rem 1rem 4rem;
}

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

.hero h1,
.hero h2 {
    color: #fff;
}

.hero p {
    color: var(--hero-text);
}

.hero .eyebrow {
    color: var(--gold-400);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 12px;
}

.hero-stat {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.hero-stat p {
    color: var(--hero-text);
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 0.9rem;
    padding: 0.7rem 1.5rem;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.hero-cta--solid {
    background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
    color: var(--hero-cta-solid-text);
    box-shadow: 0 12px 30px -10px rgba(232, 173, 61, 0.7);
}

.hero-cta--solid:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.hero-cta--ghost {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
}

.hero-cta--ghost:hover {
    background: rgba(255, 255, 255, 0.16);
}

.hero-cta--light {
    background: var(--surface);
    color: var(--brand-700);
}

.hero-cta--light:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
}

/* CTA band */
.dark-band {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: var(--band-bg);
}

.dark-band::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(500px 300px at 90% -20%, rgba(255, 255, 255, 0.18), transparent 60%);
    pointer-events: none;
}

.dark-band .dark-band-inner {
    position: relative;
    z-index: 1;
    margin: 0 auto;
    max-width: 56rem;
    padding: 4rem 1rem;
    text-align: center;
}

.dark-band h2 {
    color: #fff;
}

.dark-band p {
    color: var(--band-text);
}

/* ---------------------------------------------------------------------------
   16. Admin shell (aside + content)
   --------------------------------------------------------------------------- */
.admin-shell {
    display: flex;
    min-height: 100vh;
    background: var(--bg);
}

.aside {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    width: 16rem;
    background: var(--aside-bg);
    color: #fff;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.aside-brand-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.aside .hu-btn-ghost {
    color: var(--aside-ghost);
}

.aside .hu-btn-ghost:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.aside-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1.2rem 1.25rem 1rem;
}

.aside-brand .brand-mark {
    width: 2.2rem;
    height: 2.2rem;
}

.aside-role {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
}

.aside-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0.75rem;
}

.aside-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0.75rem;
    margin-bottom: 2px;
    border-radius: 0.7rem;
    font-size: 13.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.66);
    transition: all 0.18s ease;
}

.aside-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
}

.aside-link--active {
    color: #fff;
    background: linear-gradient(90deg, rgba(53, 103, 251, 0.35), rgba(53, 103, 251, 0.08));
    box-shadow: inset 3px 0 0 var(--brand-500);
}

.aside-link .aside-count {
    display: grid;
    place-items: center;
    min-width: 1.2rem;
    height: 1.2rem;
    padding: 0 0.3rem;
    border-radius: 9999px;
    font-size: 10.5px;
    font-weight: 700;
    color: #0e1526;
    background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
}

.aside-foot {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.aside-user {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.aside-user .u-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.aside-user .u-id {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.admin-main {
    flex: 1;
    margin-left: 0;
}

@media (min-width: 1024px) {
    .admin-main {
        margin-left: 16rem;
    }
}

.admin-content {
    padding: 1.25rem 1rem 6rem;
}

@media (min-width: 1024px) {
    .admin-content {
        padding: 1.5rem 2rem 4rem;
    }
}

.mobile-tabs {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

@media (min-width: 1024px) {
    .mobile-tabs {
        display: none;
    }
}

.mtab {
    white-space: nowrap;
    border-radius: 9999px;
    padding: 0.4rem 0.9rem;
    font-size: 12px;
    font-weight: 500;
    background: var(--surface);
    color: var(--ink-3);
    border: 1px solid var(--line);
}

.mtab--active {
    background: var(--ink);
    color: var(--surface);
    border-color: transparent;
}

/* ---------------------------------------------------------------------------
   17. Footer
   --------------------------------------------------------------------------- */
.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    background: var(--footer-bg);
    color: var(--footer-text);
}

.footer-grid {
    margin: 0 auto;
    max-width: 80rem;
    display: grid;
    gap: 2rem;
    padding: 3rem 1rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

.footer-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
}

.footer-link {
    display: inline-block;
    padding: 0.2rem 0;
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.66);
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #fff;
}

.footer-muted {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.1rem 1rem;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
}

/* ---------------------------------------------------------------------------
   18. Empty / error / loader states
   --------------------------------------------------------------------------- */
.empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 3.5rem 1.5rem;
    text-align: center;
    border: 1px dashed var(--line);
    border-radius: 1.1rem;
    background: var(--surface-2);
}

.empty .empty-icon {
    font-size: 2.6rem;
}

.empty h3 {
    margin: 0.25rem 0 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
}

.empty p {
    margin: 0;
    max-width: 24rem;
    font-size: 13px;
    color: var(--ink-3);
}

.errbox {
    border: 1px solid color-mix(in srgb, var(--rose-600) 30%, transparent);
    background: var(--rose-50);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
}

.errbox p {
    margin: 0;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--rose-700);
}

.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 6rem 0;
    color: var(--ink-4);
}

.loader p {
    margin: 0;
    font-size: 13px;
}

.spin {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    border: 3px solid var(--slate-200);
    border-top-color: var(--brand-500);
    animation: spin 0.8s linear infinite;
}

/* ---------------------------------------------------------------------------
   19. Modal
   --------------------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: 1rem;
    background: var(--modal-scrim);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.18s ease both;
}

.modal-overlay.closed {
    display: none;
}

.modal-card {
    width: 100%;
    max-width: 32rem;
    margin: 1rem auto 3rem;
    border-radius: 1.2rem;
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--line);
    animation: modalPop 0.22s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

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

.modal-card.modal-wide {
    max-width: 48rem;
}

.modal-card.modal-narrow {
    max-width: 28rem;
}

.modal-card.modal-normal {
    max-width: 32rem;
}

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

.modal-head h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
}

.modal-close {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.6rem;
    color: var(--ink-4);
    transition: all 0.15s ease;
}

.modal-close:hover {
    background: var(--surface-3);
    color: var(--ink);
}

.modal-body {
    padding: 1.25rem;
}

/* ---------------------------------------------------------------------------
   20. Toast
   --------------------------------------------------------------------------- */
.hu-toast {
    position: fixed;
    right: 1rem;
    top: 1rem;
    z-index: 90;
    max-width: 22rem;
    border-radius: 0.85rem;
    padding: 0.7rem 1rem;
    font-size: 13.5px;
    font-weight: 500;
    color: #fff;
    box-shadow: var(--shadow-lg);
    animation: toastIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hu-toast-success {
    background: var(--toast-success);
}

.hu-toast-error {
    background: var(--toast-error);
}

.hu-toast-info {
    background: var(--toast-info);
}

.hu-toast-warn {
    background: var(--toast-warn);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

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

/* ---------------------------------------------------------------------------
   21. Responsive
   --------------------------------------------------------------------------- */
@media (min-width: 640px) {
    .hu-sm-inline {
        display: inline;
    }

    .hu-sm-grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hu-sm-grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hu-sm-grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .hu-sm-px-6 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .hu-sm-text-4xl {
        font-size: 34px;
        line-height: 1.15;
    }

    .hu-sm-text-6xl {
        font-size: 52px;
        line-height: 1.05;
    }
}

@media (min-width: 768px) {
    .hu-md-flex {
        display: flex;
    }

    .hu-md-grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hu-md-grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hu-md-grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .hu-md-col-span-2 {
        grid-column: span 2 / span 2;
    }
}

@media (min-width: 1024px) {
    .hu-lg-flex {
        display: flex;
    }

    .hu-lg-hidden {
        display: none;
    }

    .hu-lg-grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hu-lg-grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hu-lg-grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .hu-lg-col-span-2 {
        grid-column: span 2 / span 2;
    }

    .hu-lg-pl-64 {
        padding-left: 16rem;
    }

    .hu-lg-px-8 {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .hu-lg-pt-8 {
        padding-top: 2rem;
    }
}