/* =====================================================================
   PREMIUM DESIGN SYSTEM — Controle Financeiro
   Token-driven, dark-first, finance-grade aesthetic.
   Inspired by: Linear · Mercury · Stripe · Vercel · Arc
====================================================================== */

:root {
    /* ── Surfaces (warm-cool blacks with subtle hue) ────────────────── */
    --bg-0:           #06060F;   /* App canvas */
    --bg-1:           #09091E;   /* Elevated surface */
    --bg-2:           #0E0E26;   /* Cards */
    --bg-3:           #141434;   /* Highest elevation */
    --bg-hover:       rgba(255, 255, 255, 0.025);
    --bg-active:      rgba(255, 255, 255, 0.045);

    /* ── Text ───────────────────────────────────────────────────────── */
    --text-hi:        #F4F4FE;   /* Headings, hero numbers */
    --text-md:        #C5C5E5;   /* Body */
    --text-lo:        #9898C0;   /* Secondary */
    --text-mute:      #5A5A82;   /* Tertiary */
    --text-dim:       #3A3A5E;   /* Disabled/quaternary */

    /* ── Borders (hairlines) ────────────────────────────────────────── */
    --border-1:       rgba(255, 255, 255, 0.055);
    --border-2:       rgba(255, 255, 255, 0.085);
    --border-3:       rgba(255, 255, 255, 0.12);
    --border-focus:   rgba(0, 207, 124, 0.45);

    /* ── Brand ──────────────────────────────────────────────────────── */
    --brand:          #00CF7C;
    --brand-2:        #00A862;
    --brand-3:        #14F08E;
    --brand-glow:     rgba(0, 207, 124, 0.38);
    --brand-soft:     rgba(0, 207, 124, 0.12);
    --brand-ring:     rgba(0, 207, 124, 0.20);

    --accent:         #6366F1;
    --accent-2:       #818CF8;
    --accent-soft:    rgba(99, 102, 241, 0.12);
    --accent-glow:    rgba(99, 102, 241, 0.34);

    /* ── Semantic ───────────────────────────────────────────────────── */
    --success:        #00CF7C;
    --success-soft:   rgba(0, 207, 124, 0.10);
    --danger:         #FF4361;
    --danger-soft:    rgba(255, 67, 97, 0.10);
    --warning:        #FBBF24;
    --warning-soft:   rgba(251, 191, 36, 0.10);
    --info:           #6366F1;
    --info-soft:      rgba(99, 102, 241, 0.10);

    /* ── Shadows (layered, dark-aware) ──────────────────────────────── */
    --sh-sm:    0 1px 2px rgba(0, 0, 0, 0.4);
    --sh-md:    0 2px 8px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.045);
    --sh-lg:    0 8px 24px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    --sh-xl:    0 20px 50px rgba(0, 0, 0, 0.7),  inset 0 1px 0 rgba(255, 255, 255, 0.07);
    --sh-2xl:   0 32px 80px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    --sh-brand: 0 0 24px var(--brand-glow), 0 6px 16px rgba(0, 0, 0, 0.5);
    --sh-card-hover: 0 12px 32px rgba(0, 0, 0, 0.65), 0 0 0 1px var(--border-2), inset 0 1px 0 rgba(255, 255, 255, 0.07);

    /* ── Radius ─────────────────────────────────────────────────────── */
    --r-xs:  6px;
    --r-sm:  8px;
    --r-md:  12px;
    --r-lg:  16px;
    --r-xl:  20px;
    --r-2xl: 24px;
    --r-full: 9999px;

    /* ── Motion ─────────────────────────────────────────────────────── */
    --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in:   cubic-bezier(0.4, 0, 1, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --t-fast:    140ms;
    --t-base:    220ms;
    --t-slow:    420ms;
}

/* =====================================================================
   GLOBAL TYPOGRAPHY
====================================================================== */
html {
    background: var(--bg-0);
    color-scheme: dark;
}
body {
    font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-feature-settings: 'cv11', 'ss01', 'ss03';
    letter-spacing: -0.012em;
    color: var(--text-md);
    background: var(--bg-0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
.tabular { font-variant-numeric: tabular-nums; }
.font-display { font-weight: 800; letter-spacing: -0.025em; }
.text-balance { text-wrap: balance; }
.text-pretty  { text-wrap: pretty; }

/* Hero numerals — heavier negative tracking */
.numeral-hero {
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'cv11', 'ss03';
    letter-spacing: -0.04em;
    font-weight: 800;
}

/* Premium gradient text */
.text-gradient {
    background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.text-gradient-emerald {
    background: linear-gradient(135deg, var(--brand-3) 0%, var(--brand) 50%, var(--brand-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =====================================================================
   AMBIENT BACKGROUND — animated mesh gradient + noise overlay
====================================================================== */
.ambient-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.ambient-bg::before,
.ambient-bg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
    animation: meshFloat 18s ease-in-out infinite;
}
.ambient-bg::before {
    top: -25%;
    left: -15%;
    width: 60vw;
    height: 60vw;
    max-width: 720px;
    max-height: 720px;
    background: radial-gradient(circle, rgba(0, 207, 124, 0.13) 0%, transparent 65%);
}
.ambient-bg::after {
    bottom: -25%;
    right: -15%;
    width: 55vw;
    height: 55vw;
    max-width: 680px;
    max-height: 680px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.11) 0%, transparent 65%);
    animation-delay: -9s;
}
@keyframes meshFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(8%, -4%) scale(1.06); }
    66%      { transform: translate(-6%, 6%) scale(0.96); }
}

/* Noise texture for premium tactile depth */
.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.035;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Subtle grid overlay (optional, used in auth) */
.grid-overlay {
    background-image: radial-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 32px 32px;
}

/* =====================================================================
   CARD — base, hover, spotlight (cursor-tracked)
====================================================================== */
.card {
    position: relative;
    background: var(--bg-2);
    border: 1px solid var(--border-1);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-md);
    transition: border-color var(--t-base) var(--ease-out),
                box-shadow var(--t-base) var(--ease-out),
                transform var(--t-base) var(--ease-out);
}
.card:hover {
    border-color: var(--border-2);
    box-shadow: var(--sh-card-hover);
}

/* Spotlight card — illuminated where the cursor hovers */
.card-spotlight {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}
.card-spotlight::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        600px circle at var(--mx, 50%) var(--my, 50%),
        rgba(0, 207, 124, 0.07),
        transparent 40%
    );
    opacity: 0;
    transition: opacity var(--t-base) var(--ease-out);
    pointer-events: none;
    z-index: 0;
}
.card-spotlight:hover::before { opacity: 1; }
.card-spotlight > * { position: relative; z-index: 1; }

/* Gradient-stroked card (for hero/featured) */
.card-glow {
    position: relative;
    background: var(--bg-2);
    border-radius: var(--r-lg);
    overflow: hidden;
}
.card-glow::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 50%, transparent 100%);
    -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;
    opacity: 0.55;
    pointer-events: none;
}

/* =====================================================================
   BUTTONS
====================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: var(--r-md);
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.005em;
    cursor: pointer;
    transition: all var(--t-base) var(--ease-out);
    user-select: none;
    white-space: nowrap;
    text-decoration: none;
}
.btn:active { transform: scale(0.97); }
.btn:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
    color: #06060F;
    font-weight: 700;
    box-shadow: 0 0 20px var(--brand-soft),
                0 4px 14px rgba(0, 0, 0, 0.35),
                inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-primary:hover {
    filter: brightness(1.08);
    box-shadow: 0 0 28px var(--brand-glow),
                0 6px 18px rgba(0, 0, 0, 0.45),
                inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-1);
    border-color: var(--border-2);
    color: var(--text-md);
}
.btn-secondary:hover {
    background: var(--bg-3);
    border-color: var(--border-3);
    color: var(--text-hi);
}

.btn-ghost {
    background: transparent;
    color: var(--text-lo);
}
.btn-ghost:hover {
    background: var(--bg-hover);
    color: var(--text-md);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #D63050 100%);
    color: white;
    box-shadow: 0 0 20px rgba(255, 67, 97, 0.28),
                0 4px 14px rgba(0, 0, 0, 0.35);
}

/* Sizes */
.btn-sm { padding: 7px 13px; font-size: 12px; }
.btn-lg { padding: 13px 22px; font-size: 14px; }

/* =====================================================================
   INPUTS
====================================================================== */
.input,
.select,
.textarea {
    width: 100%;
    background: var(--bg-1);
    border: 1px solid var(--border-2);
    border-radius: var(--r-md);
    padding: 10px 14px;
    font-family: inherit;
    font-size: 13px;
    color: var(--text-hi);
    transition: border-color var(--t-base) var(--ease-out),
                box-shadow var(--t-base) var(--ease-out),
                background var(--t-base) var(--ease-out);
}
.input::placeholder,
.textarea::placeholder { color: var(--text-dim); }
.input:hover,
.select:hover,
.textarea:hover { border-color: var(--border-3); }
.input:focus,
.select:focus,
.textarea:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 4px var(--brand-ring),
                inset 0 1px 2px rgba(0, 0, 0, 0.25);
    background: var(--bg-2);
}
.input.has-icon { padding-left: 38px; }

.label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-lo);
    margin-bottom: 6px;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

/* Webkit autofill — keep our dark surface */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px var(--bg-1) inset !important;
    -webkit-text-fill-color: var(--text-hi) !important;
    caret-color: var(--text-hi);
}

/* Custom select arrow */
.select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239898C0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 34px;
}

/* =====================================================================
   BADGES & CHIPS
====================================================================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: var(--r-full);
    line-height: 1.4;
    letter-spacing: 0.005em;
}
.badge-success { background: var(--brand-soft); color: var(--brand-3); border: 1px solid rgba(0, 207, 124, 0.25); }
.badge-danger  { background: var(--danger-soft); color: var(--danger); border: 1px solid rgba(255, 67, 97, 0.25); }
.badge-warn    { background: var(--warning-soft); color: var(--warning); border: 1px solid rgba(251, 191, 36, 0.25); }
.badge-info    { background: var(--accent-soft); color: var(--accent-2); border: 1px solid rgba(99, 102, 241, 0.25); }
.badge-neutral { background: var(--bg-3); color: var(--text-lo); border: 1px solid var(--border-2); }

/* Chip — for filters & tags */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-1);
    border: 1px solid var(--border-2);
    color: var(--text-md);
    padding: 6px 12px;
    border-radius: var(--r-full);
    font-size: 12px;
    font-weight: 500;
    transition: all var(--t-fast) var(--ease-out);
    cursor: pointer;
}
.chip:hover { background: var(--bg-3); color: var(--text-hi); border-color: var(--border-3); }
.chip-active {
    background: var(--brand-soft);
    border-color: rgba(0, 207, 124, 0.35);
    color: var(--brand);
}

/* =====================================================================
   KPI CARD — premium hero block
====================================================================== */
.kpi {
    position: relative;
    background: var(--bg-2);
    border: 1px solid var(--border-1);
    border-radius: var(--r-lg);
    padding: 18px 20px;
    overflow: hidden;
    transition: border-color var(--t-base) var(--ease-out),
                box-shadow var(--t-base) var(--ease-out),
                transform var(--t-base) var(--ease-out);
}
.kpi:hover {
    transform: translateY(-2px);
    box-shadow: var(--sh-card-hover);
    border-color: var(--border-2);
}
.kpi::after {
    content: '';
    position: absolute;
    top: -1px; right: -1px;
    width: 140px; height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--kpi-color, var(--brand-soft)) 0%, transparent 70%);
    opacity: 0.5;
    pointer-events: none;
}
.kpi-icon {
    width: 36px; height: 36px;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--kpi-icon-bg, var(--brand-soft));
    color: var(--kpi-icon-color, var(--brand));
    box-shadow: inset 0 0 0 1px var(--kpi-icon-border, rgba(0, 207, 124, 0.18)),
                0 0 16px var(--kpi-icon-glow, transparent);
}
.kpi-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-lo);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.kpi-value {
    font-size: clamp(20px, 2.4vw, 28px);
    font-weight: 800;
    letter-spacing: -0.035em;
    color: var(--text-hi);
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}
.kpi-sub {
    font-size: 11.5px;
    color: var(--text-mute);
    margin-top: 4px;
}

/* =====================================================================
   TABLES
====================================================================== */
.tbl {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.tbl thead th {
    background: linear-gradient(180deg, rgba(20, 20, 52, 0.5), transparent);
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-mute);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-1);
}
.tbl tbody tr {
    transition: background var(--t-fast) var(--ease-out);
}
.tbl tbody tr:hover {
    background: var(--bg-hover);
}
.tbl tbody td {
    padding: 13px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.025);
    font-size: 13px;
    color: var(--text-md);
}
.tbl tbody tr:last-child td { border-bottom: none; }

/* =====================================================================
   NAVIGATION (sidebar + nav items)
====================================================================== */
.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-left: 2px solid transparent;
    border-radius: 0 var(--r-md) var(--r-md) 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-mute);
    text-decoration: none;
    transition: all var(--t-fast) var(--ease-out);
    position: relative;
}
.nav-item:hover {
    color: var(--text-md);
    background: var(--bg-hover);
}
.nav-item .nav-icon {
    width: 17px; height: 17px;
    flex-shrink: 0;
    transition: transform var(--t-fast) var(--ease-spring);
}
.nav-item:hover .nav-icon { transform: scale(1.12); }

.nav-active {
    color: var(--brand) !important;
    background: linear-gradient(90deg,
        rgba(0, 207, 124, 0.16) 0%,
        rgba(0, 207, 124, 0.04) 60%,
        transparent 100%);
    border-left-color: var(--brand);
    padding-left: 10px;
}
.nav-active::before {
    content: '';
    position: absolute;
    left: -2px; top: 50%;
    transform: translateY(-50%);
    width: 2px; height: 60%;
    background: var(--brand);
    box-shadow: 0 0 12px var(--brand);
    border-radius: 999px;
}

/* =====================================================================
   PROGRESS — linear + radial
====================================================================== */
.progress {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--r-full);
    overflow: hidden;
    position: relative;
}
.progress-bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand) 0%, var(--brand-3) 100%);
    box-shadow: 0 0 12px var(--brand-glow);
    transition: width var(--t-slow) var(--ease-out);
    position: relative;
}
.progress-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
    animation: shimmer 2.4s ease-in-out infinite;
}
@keyframes shimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Radial progress — used in goals & dashboard */
.radial {
    --size: 64px;
    --thickness: 6px;
    --value: 0;
    --color: var(--brand);
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    background: conic-gradient(
        var(--color) calc(var(--value) * 1%),
        rgba(255, 255, 255, 0.05) 0
    );
    display: grid;
    place-items: center;
    position: relative;
}
.radial::before {
    content: '';
    position: absolute;
    inset: var(--thickness);
    border-radius: 50%;
    background: var(--bg-2);
}
.radial-label {
    position: relative;
    z-index: 1;
    font-weight: 700;
    font-size: 13px;
    color: var(--text-hi);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

/* =====================================================================
   SEGMENTED CONTROL (e.g., type selector in transaction form)
====================================================================== */
.segmented {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--bg-0);
    border: 1px solid var(--border-1);
    border-radius: var(--r-md);
}
.segmented-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: calc(var(--r-md) - 4px);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-mute);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all var(--t-fast) var(--ease-out);
}
.segmented-item:hover { color: var(--text-md); }
.segmented-item.active {
    color: var(--text-hi);
    background: var(--bg-2);
    box-shadow: var(--sh-sm), inset 0 1px 0 rgba(255,255,255,0.05);
}

/* =====================================================================
   SCROLLBAR — slim & dark
====================================================================== */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--r-full);
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.18); }

/* =====================================================================
   SKELETON LOADER
====================================================================== */
.skeleton {
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0.025) 25%,
        rgba(255, 255, 255, 0.07)  50%,
        rgba(255, 255, 255, 0.025) 75%);
    background-size: 200% 100%;
    animation: skeleton 1.6s ease-in-out infinite;
    border-radius: var(--r-sm);
}
@keyframes skeleton {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* =====================================================================
   ANIMATIONS (utility)
====================================================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.94); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(120%); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 16px var(--brand-glow); }
    50%      { box-shadow: 0 0 28px var(--brand-glow); }
}
@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.anim-in       { animation: fadeInUp 0.6s var(--ease-out) both; }
.anim-scale-in { animation: scaleIn 0.4s var(--ease-out) both; }
.anim-toast    { animation: slideInRight 0.45s var(--ease-out); }
.anim-pulse-glow { animation: pulseGlow 3s ease-in-out infinite; }

/* Staggered entrance helper — apply via inline style="--i:N" */
[style*="--i:"] { animation-delay: calc(var(--i, 0) * 60ms); }

/* =====================================================================
   FAB (Floating Action Button) — bottom nav center
====================================================================== */
.fab {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 32px var(--brand-glow),
                0 8px 22px rgba(0, 0, 0, 0.65),
                inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: transform var(--t-base) var(--ease-spring),
                box-shadow var(--t-base) var(--ease-out);
}
.fab:hover { transform: translateY(-3px) scale(1.04); }
.fab:active { transform: scale(0.94); }

/* =====================================================================
   FOCUS RING (a11y, premium feel)
====================================================================== */
*:focus { outline: none; }
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
    border-radius: 6px;
}

/* =====================================================================
   UTILITIES
====================================================================== */
.glass {
    background: rgba(14, 14, 38, 0.65);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--border-1);
}
.glass-strong {
    background: rgba(9, 9, 30, 0.85);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
}

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-2), transparent);
}

.pb-safe { padding-bottom: env(safe-area-inset-bottom, 0px); }

/* Hide scrollbar but keep functionality */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; }

/* Reduce motion respect */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
    }
    .ambient-bg::before,
    .ambient-bg::after { animation: none; }
}
