/* =========================================================================
   Traveller — custom stylesheet
   Layers on top of Tailwind (CDN). Production-ready polish: brand tokens,
   components (btn / card / field / badge / alert / toast), animations,
   aurora hero, glass morphism, reveal-on-scroll, skeleton loaders,
   dark-mode variables, custom scrollbar.
   ========================================================================= */

:root {
    /* Sunset Travel palette — coral primary, warm amber, mint, cool blue.
       Designed for big CTAs that pop on a deep navy backdrop. */
    --brand-50:  #fff1ed;
    --brand-100: #ffdcd1;
    --brand-200: #ffb09b;
    --brand-300: #ff8a6e;
    --brand-400: #ff6b51;   /* coral */
    --brand-500: #fc4d2e;
    --brand-600: #e23415;
    --brand-700: #b12100;
    --brand-800: #811800;
    --brand-900: #4c0f00;

    --accent-50:  #fff8e6;
    --accent-100: #ffeab3;
    --accent-200: #ffd97a;
    --accent-300: #ffc54a;
    --accent-400: #fbb13c;   /* warm amber */
    --accent-500: #e6982a;
    --accent-600: #b67616;
    --accent-700: #85540c;

    --mint-200: #8de8c7;
    --mint-400: #2bc88f;
    --mint-500: #06d6a0;     /* mint highlight */

    --sky-200: #aec4ff;
    --sky-400: #5b8def;
    --sky-500: #3a6ed8;

    --primary-fg: #ffffff;
    --primary-bg: #0a0a0a;

    --surface:      #ffffff;
    --surface-alt:  #f8fafc;
    --surface-2:    #f1f5f9;
    --border:       #e2e8f0;
    --text:         #0f172a;
    --text-muted:   #64748b;

    --success: #10b981;
    --warn:    #f59e0b;
    --danger:  #ef4444;

    --shadow-sm: 0 1px 2px rgba(15,23,42,.05);
    --shadow-md: 0 4px 14px rgba(15,23,42,.08);
    --shadow-lg: 0 20px 40px -12px rgba(15,23,42,.18);

    --radius:     14px;
    --radius-lg:  20px;

    --nav-h: 64px;
}

[data-theme="dark"] {
    /* Deep midnight navy — coral and amber pop beautifully on this canvas. */
    --surface:     #0f1729;   /* card surface */
    --surface-alt: #07101f;   /* page background */
    --surface-2:   #182238;   /* hover / inset */
    --border:      #213049;
    --text:        #f5f3ee;   /* warm cream */
    --text-muted:  #b1bcd0;

    --primary-bg:  #ffffff;   /* invert: primary CTA is white on dark */
    --primary-fg:  #0a0a0a;

    --shadow-sm: 0 1px 2px rgba(0,0,0,.45);
    --shadow-md: 0 4px 14px rgba(0,0,0,.55);
    --shadow-lg: 0 20px 40px -12px rgba(0,0,0,.7);
}

/* ─── Tailwind utility-class remaps for dark mode ────────────────────────────
   The Blade views were written with light-mode utilities (bg-white, bg-slate-50,
   text-slate-700, border-slate-200, etc.). Rather than rewrite every view, we
   force these utilities to map to dark equivalents when [data-theme="dark"].

   Tailwind Play CDN injects its own `<style>` block at runtime which can land
   AFTER our app.css in the cascade. To win that race we (1) raise specificity
   by chaining the html selector and (2) keep `!important` everywhere. We also
   force inheritance on bare elements so any heading without a color class
   falls through to var(--text).
   ────────────────────────────────────────────────────────────────────────── */
html[data-theme="dark"] .bg-white            { background-color: var(--surface)    !important; }
html[data-theme="dark"] .bg-slate-50         { background-color: var(--surface-alt)!important; }
html[data-theme="dark"] .bg-slate-100        { background-color: var(--surface-2)  !important; }
html[data-theme="dark"] .bg-slate-200        { background-color: #2a1a6b           !important; }

html[data-theme="dark"] .text-slate-900,
html[data-theme="dark"] .text-slate-800      { color: var(--text)       !important; }
html[data-theme="dark"] .text-slate-700      { color: #e8e3d8           !important; }
html[data-theme="dark"] .text-slate-600      { color: #d6cfbe           !important; }
html[data-theme="dark"] .text-slate-500      { color: #b1bcd0           !important; }
html[data-theme="dark"] .text-slate-400      { color: #94a0b8           !important; }
html[data-theme="dark"] .text-slate-300      { color: #c0c8d8           !important; }
html[data-theme="dark"] .text-slate-200      { color: #d8dee8           !important; }
html[data-theme="dark"] .text-slate-100      { color: #f5f3ee           !important; }

/* Belt + braces: any heading without an explicit color class is forced to the
   primary text color in dark mode. This catches admin/dashboard pages that
   write <h1 class="text-2xl font-bold"> without text-slate-900. */
html[data-theme="dark"] body,
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6,
html[data-theme="dark"] dt,
html[data-theme="dark"] dd,
html[data-theme="dark"] label,
html[data-theme="dark"] legend,
html[data-theme="dark"] strong,
html[data-theme="dark"] th,
html[data-theme="dark"] td {
    color: var(--text);
}

html[data-theme="dark"] .border-slate-100,
html[data-theme="dark"] .border-slate-200    { border-color: var(--border) !important; }
html[data-theme="dark"] .border-slate-300    { border-color: #3a2a78 !important; }
html[data-theme="dark"] .border-slate-200\/70{ border-color: rgba(42,26,107,0.7) !important; }

/* Translucent navbar bg utility used on the headers. */
html[data-theme="dark"] .bg-white\/85,
html[data-theme="dark"] .bg-white\/70,
html[data-theme="dark"] .bg-white\/80        { background-color: rgba(23,12,62,0.78) !important; }

/* Legacy indigo classes (left over from before the palette refresh) → new
   bright-lavender ramp, so old buttons / links pick up the new theme. */
[data-theme="dark"] .bg-indigo-500       { background-color: var(--brand-500) !important; }
[data-theme="dark"] .bg-indigo-600       { background-color: var(--brand-600) !important; }
[data-theme="dark"] .hover\:bg-indigo-700:hover { background-color: var(--brand-700) !important; }
[data-theme="dark"] .text-indigo-600     { color: var(--brand-300) !important; }
[data-theme="dark"] .border-indigo-300   { border-color: var(--brand-400) !important; }
[data-theme="dark"] .border-indigo-500   { border-color: var(--brand-500) !important; }

/* Same fixes for light mode (in case data-theme="dark" gets removed) */
.bg-indigo-500       { background-color: var(--brand-500); }
.bg-indigo-600       { background-color: var(--brand-600); }
.hover\:bg-indigo-700:hover { background-color: var(--brand-700); }
.text-indigo-600     { color: var(--brand-700); }

/* Form controls in dark mode */
[data-theme="dark"] input[type=text],
[data-theme="dark"] input[type=email],
[data-theme="dark"] input[type=number],
[data-theme="dark"] input[type=date],
[data-theme="dark"] input[type=password],
[data-theme="dark"] input[type=url],
[data-theme="dark"] input[type=search],
[data-theme="dark"] textarea,
[data-theme="dark"] select {
    background-color: var(--surface-2) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
    color: #6e6680;
}

/* Pastel "soft" backgrounds keep their personality but are toned to fit dark */
[data-theme="dark"] .bg-emerald-50      { background-color: rgba(16,185,129,.12) !important; }
[data-theme="dark"] .bg-amber-50        { background-color: rgba(245,158,11,.12) !important; }
[data-theme="dark"] .bg-red-50          { background-color: rgba(239,68,68,.12)  !important; }
[data-theme="dark"] .bg-brand-50        { background-color: rgba(205,180,219,.12)!important; }
[data-theme="dark"] .text-emerald-700,
[data-theme="dark"] .text-emerald-800   { color: #6ee0b3 !important; }
[data-theme="dark"] .text-amber-700,
[data-theme="dark"] .text-amber-800,
[data-theme="dark"] .text-amber-900     { color: #f5c069 !important; }
[data-theme="dark"] .text-red-600,
[data-theme="dark"] .text-red-700       { color: #ff8b8b !important; }

/* Base -------------------------------------------------------------------- */
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    letter-spacing: -0.011em;
    font-feature-settings: "cv02","cv03","cv04","cv11";
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Pastel halos against the dark surface — beautiful glow without noise. */
    background:
        radial-gradient(60% 40% at 0% 0%,    rgba(205,180,219,.10) 0%, transparent 70%),
        radial-gradient(60% 40% at 100% 30%, rgba(189,224,254,.10) 0%, transparent 70%),
        radial-gradient(60% 40% at 30% 100%, rgba(255,175,204,.10) 0%, transparent 70%),
        var(--surface-alt);
    background-attachment: fixed;
}

[data-theme="dark"] body {
    /* Subtle warm halos so the deep navy bg isn't dead flat. */
    background:
        radial-gradient(70% 50% at 0% 0%,    rgba(255,107,81,.10) 0%, transparent 70%),
        radial-gradient(60% 50% at 100% 30%, rgba(251,177,60,.08) 0%, transparent 70%),
        radial-gradient(60% 60% at 50% 110%, rgba(91,141,239,.10) 0%, transparent 70%),
        var(--surface-alt);
    background-attachment: fixed;
}
.font-display { font-family: 'Playfair Display', Georgia, serif; letter-spacing: -0.02em; }

/* Gradient headline — coral → amber → mint ------------------------------- */
.text-gradient {
    background: linear-gradient(135deg, #ff6b51 0%, #fbb13c 50%, #06d6a0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Aurora hero — warm sunset glow on deep navy --------------------------- */
.bg-aurora {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(70% 80% at 10% 10%, rgba(255,107,81,.32) 0%, transparent 60%),  /* coral */
        radial-gradient(60% 70% at 92% 15%, rgba(251,177,60,.28) 0%, transparent 60%),  /* amber */
        radial-gradient(55% 70% at 80% 95%, rgba(255,138,110,.20) 0%, transparent 60%), /* warm coral */
        radial-gradient(60% 80% at 12% 95%, rgba( 91,141,239,.25) 0%, transparent 60%), /* sky */
        radial-gradient(60% 80% at 50% 50%, rgba(  6,214,160,.10) 0%, transparent 70%), /* mint centre */
        linear-gradient(180deg, #07101f 0%, #0f1729 100%);
}
.bg-aurora::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 42%, transparent 78%);
            mask-image: radial-gradient(ellipse at center, #000 42%, transparent 78%);
    pointer-events: none;
    z-index: -1;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: .55;
    pointer-events: none;
    animation: float 12s ease-in-out infinite;
    z-index: -1;
}
.blob--a { width: 360px; height: 360px; background: #ff6b51; top: -120px; left: -120px; }                       /* coral */
.blob--b { width: 320px; height: 320px; background: #fbb13c; top: 20%; right: -80px;  animation-delay: -3s; } /* amber */
.blob--c { width: 280px; height: 280px; background: #5b8def; bottom: -80px; left: 40%; animation-delay: -6s; }/* sky */

@keyframes float {
    0%,100% { transform: translate(0,0); }
    50%     { transform: translate(22px,-28px); }
}

/* Reveal on scroll -------------------------------------------------------- */
.reveal      { opacity: 0; transform: translateY(22px); transition: opacity .75s ease, transform .75s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .16s; }
.reveal.delay-3 { transition-delay: .24s; }
.reveal.delay-4 { transition-delay: .32s; }

/* Glass + cards ----------------------------------------------------------- */
.glass {
    background: rgba(255,255,255,.7);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid rgba(226,232,240,.7);
}
[data-theme="dark"] .glass { background: rgba(11,17,32,.72); border-color: rgba(31,42,61,.7); }

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
}
.card-hover {
    transition: transform .28s cubic-bezier(.2,.8,.3,1), box-shadow .28s ease, border-color .28s ease;
}
.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px -16px rgba(255,107,81,.30), 0 8px 20px -8px rgba(0,0,0,.4);
    border-color: var(--brand-400);
}

.card-gradient {
    position: relative;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid transparent;
}
.card-gradient::before {
    content: "";
    position: absolute; inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--brand-400), var(--accent-500));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}

/* Buttons ----------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    padding: .75rem 1.4rem;
    border-radius: 14px;
    font-weight: 600;
    font-size: .92rem;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    white-space: nowrap;
    transition: transform .18s cubic-bezier(.2,.8,.3,1),
                box-shadow .22s ease, background-color .22s ease,
                color .22s ease, border-color .22s ease, filter .22s ease;
    text-decoration: none;
}
.btn:hover:not([disabled]) { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 2px; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
.btn[aria-busy="true"]::before {
    content: "";
    width: 14px; height: 14px; border-radius: 50%;
    border: 2px solid currentColor; border-top-color: transparent;
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Primary CTA — coral → amber gradient, white text. Big and warm. */
.btn-primary {
    background: linear-gradient(135deg, #ff6b51 0%, #fbb13c 100%);
    color: #ffffff;
    box-shadow: 0 10px 26px -10px rgba(255,107,81,.7);
}
.btn-primary:hover {
    color: #ffffff;
    filter: brightness(1.06) saturate(1.05);
    box-shadow: 0 14px 32px -10px rgba(255,107,81,.9);
}

/* Accent — mint highlight for fun secondary actions (e.g. WhatsApp). */
.btn-accent {
    background: linear-gradient(135deg, #06d6a0 0%, #2bc88f 100%);
    color: #03281f;
    font-weight: 700;
    box-shadow: 0 8px 22px -8px rgba(6,214,160,.55);
}
.btn-accent:hover { filter: brightness(1.05); color: #03281f; }

.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,.06); color: var(--text); }
html[data-theme="dark"] .btn-ghost:hover { background: rgba(255,255,255,.08); color: var(--text); }

/* Bare <button> with no class — keep text visible on dark. */
html[data-theme="dark"] button:not([class*="btn"]):not([class*="bg-"]) {
    color: var(--text);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: rgba(255,255,255,.18);
}
html[data-theme="dark"] .btn-outline { border-color: rgba(255,255,255,.22); }
.btn-outline:hover {
    border-color: var(--brand-400);
    color: var(--brand-300);
    background: rgba(255,107,81,.08);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #e11d48);
    color: #fff;
    box-shadow: 0 6px 18px -6px rgba(239,68,68,.55);
}
.btn-danger:hover { filter: brightness(1.07); color: #fff; }

.btn-sm { padding: .55rem 1rem;   font-size: .82rem; border-radius: 12px; }
.btn-lg { padding: 1.1rem 2rem;   font-size: 1.05rem; border-radius: 16px; }
.btn-xl { padding: 1.3rem 2.6rem; font-size: 1.18rem; border-radius: 20px; font-weight: 700; }

/* Form controls ----------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: .35rem; }
.field-label { font-size: .78rem; font-weight: 500; color: var(--text-muted); }
.field-help  { font-size: .72rem; color: var(--text-muted); }

.input, .select, .textarea {
    width: 100%;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: .68rem .9rem;
    font-size: .9rem;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .2s ease;
}
.input:hover, .select:hover, .textarea:hover { border-color: #cbd5e1; }
.input:focus, .select:focus, .textarea:focus {
    outline: none;
    border-color: var(--brand-500);
    box-shadow: 0 0 0 4px rgba(99,102,241,.18);
}
.textarea { min-height: 92px; resize: vertical; }

.check { accent-color: var(--brand-600); width: 18px; height: 18px; }

/* Badges ------------------------------------------------------------------ */
.badge {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .2rem .55rem;
    font-size: .7rem; font-weight: 600;
    border-radius: 999px;
    background: var(--surface-alt);
    color: var(--text-muted);
}
.badge-dot::before { content:""; width:6px; height:6px; border-radius:50%; background: currentColor; }
.badge-success { background:#dcfce7; color:#166534; }
.badge-warn    { background:#fef3c7; color:#92400e; }
.badge-danger  { background:#fee2e2; color:#991b1b; }
.badge-brand   { background: var(--brand-100); color: var(--brand-800); }

/* Nav --------------------------------------------------------------------- */
[data-navbar] { transition: background-color .25s ease, box-shadow .25s ease, backdrop-filter .25s ease; }
[data-navbar].is-scrolled {
    background: rgba(255,255,255,.82);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    box-shadow: 0 1px 0 rgba(15,23,42,.06), 0 6px 24px -12px rgba(15,23,42,.1);
}
[data-theme="dark"] [data-navbar].is-scrolled { background: rgba(11,17,32,.8); }

.nav-link {
    position: relative;
    color: var(--text-muted);
    font-size: .88rem;
    font-weight: 500;
    padding: .35rem 0;
    transition: color .2s ease;
    text-decoration: none;
}
.nav-link:hover   { color: var(--text); }
.nav-link.active  { color: var(--brand-700); }
.nav-link.active::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: -10px;
    height: 2px;
    background: linear-gradient(90deg, #ff6b51, #fbb13c, #06d6a0);
    border-radius: 2px;
}

.brand-mark {
    display: inline-grid; place-items: center;
    width: 36px; height: 36px;
    border-radius: 12px;
    color: #fff;
    font-weight: 700;
    background: linear-gradient(135deg, #ff6b51 0%, #fbb13c 60%, #06d6a0 100%);
    box-shadow: 0 8px 24px -8px rgba(255,107,81,.65);
}

/* Alerts ------------------------------------------------------------------ */
.alert {
    display: flex; align-items: flex-start; gap: .75rem;
    padding: .85rem 1rem;
    border-radius: 12px;
    font-size: .875rem;
    border: 1px solid var(--border);
    background: var(--surface);
    animation: slide-in .4s ease;
}
@keyframes slide-in { from { opacity:0; transform: translateY(-6px); } to { opacity:1; transform: translateY(0); } }
.alert svg { flex: none; margin-top: 1px; }
.alert-success { background:#ecfdf5; border-color:#a7f3d0; color:#065f46; }
.alert-warn    { background:#fffbeb; border-color:#fde68a; color:#92400e; }
.alert-danger  { background:#fef2f2; border-color:#fecaca; color:#991b1b; }

/* Toasts ------------------------------------------------------------------ */
#toast-root {
    position: fixed; top: 1rem; right: 1rem;
    display: flex; flex-direction: column; gap: .5rem;
    z-index: 100;
    pointer-events: none;
}
.toast {
    pointer-events: auto;
    min-width: 240px; max-width: 360px;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-left: 4px solid var(--brand-500);
    border-radius: 12px;
    padding: .8rem 1rem;
    box-shadow: var(--shadow-lg);
    animation: toast-in .28s ease-out;
    font-size: .88rem;
}
.toast-success { border-left-color: var(--success); }
.toast-warn    { border-left-color: var(--warn); }
.toast-danger  { border-left-color: var(--danger); }
.toast.toast-hide { animation: toast-out .28s ease forwards; }
@keyframes toast-in  { from { transform: translateX(18px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes toast-out { to   { transform: translateX(18px); opacity: 0; } }

/* Skeleton loader --------------------------------------------------------- */
.skeleton {
    background: linear-gradient(90deg, var(--surface-alt) 0%, var(--surface-2) 40%, var(--surface-alt) 80%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
    border-radius: 8px;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Line-clamp -------------------------------------------------------------- */
.clamp-2, .clamp-3 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}
.clamp-2 { -webkit-line-clamp: 2; line-clamp: 2; }
.clamp-3 { -webkit-line-clamp: 3; line-clamp: 3; }

/* Rich-content pages (Privacy / About) ------------------------------------ */
.prose-page {
    max-width: 72ch;
    color: var(--text);
    line-height: 1.75;
}
.prose-page h1 { font-size: 2rem; font-weight: 700; margin: 0 0 1rem; font-family: 'Playfair Display', serif; }
.prose-page h2 { font-size: 1.4rem; font-weight: 700; margin: 2rem 0 .8rem; }
.prose-page h3 { font-size: 1.1rem; font-weight: 600; margin: 1.4rem 0 .6rem; }
.prose-page p  { margin: 0 0 1rem; color: var(--text); }
.prose-page a  { color: var(--brand-600); text-decoration: underline; text-underline-offset: 3px; }
.prose-page ul, .prose-page ol { padding-left: 1.4rem; margin: 0 0 1rem; }
.prose-page li { margin: .3rem 0; }
.prose-page code { background: var(--surface-2); padding: .1rem .4rem; border-radius: 6px; font-size: .9em; }
.prose-page blockquote { border-left: 3px solid var(--brand-300); padding: .4rem 1rem; color: var(--text-muted); margin: 1.2rem 0; }

/* Utility helpers --------------------------------------------------------- */
.ring-brand { box-shadow: 0 0 0 3px rgba(99,102,241,.18); }
.divider { height: 1px; background: var(--border); margin: 1.5rem 0; }
.kbd {
    font-family: ui-monospace, SFMono-Regular, monospace;
    font-size: .75rem;
    background: var(--surface-2);
    padding: .1rem .4rem;
    border-radius: 6px;
    border: 1px solid var(--border);
}

/* Scrollbar --------------------------------------------------------------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
    border: 2px solid var(--surface-alt);
}
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #334155; }

/* Smooth theme transitions ------------------------------------------------ */
body, .card, .glass, .alert, .input, .select, .textarea, [data-navbar] {
    transition: background-color .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
}

/* Print ------------------------------------------------------------------- */
@media print {
    [data-navbar], footer, #toast-root, .no-print { display: none !important; }
    body { background: #fff !important; }
    .card, .glass { box-shadow: none !important; border: 1px solid #ddd; }
}

/* Reduced motion ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    .blob { animation: none; }
}
