/* =========================================================================
   Beyr Invoicing — theme.css  (Premium design system)
   Ink + porcelain, iris→azure brand, settled-green for money.
   Display: Bricolage Grotesque · UI/numbers: Geist (tabular figures)
   Loaded on EVERY page; landing/auth/dashboard add page-specific styles.
   ========================================================================= */

:root {
    /* ---- Brand: obsidian black + chrome / titanium metal ------------------ */
    --accent-rgb: 228, 228, 235;                 /* platinum (used in glows/rings) */
    --iris:   #E4E4EA;                           /* accent text/icons (platinum) */
    --azure:  #A1A1AA;
    --brand-blue: #E4E4EA;                       /* chart line colour */
    --brand-violet: #9C9CA6;                     /* chart secondary */
    --brand-cyan: #71717A;
    --chart-fill: rgba(228,228,235,.22);
    /* chrome: polished silver with specular bands */
    --metal: linear-gradient(115deg, #8E8F96 0%, #F4F4F6 18%, #A9AAB2 34%, #E9E9EE 50%, #85868E 66%, #F2F2F5 82%, #9B9CA4 100%);
    --on-metal: #0A0A0B;
    /* dark titanium: brushed graphite with a soft highlight */
    --grad-brand: linear-gradient(145deg, #3B3C42 0%, #1B1B1F 38%, #2C2D33 62%, #121214 100%);
    --grad-brand-soft: linear-gradient(140deg, rgba(255,255,255,.07), rgba(255,255,255,.015));
    --metal-border: linear-gradient(140deg, rgba(255,255,255,.26), rgba(255,255,255,.05) 28%, rgba(255,255,255,.02) 60%, rgba(255,255,255,.18));
    --paid:   #22C58B;

    /* Dark (default) — obsidian */
    --bg:            #050506;
    --bg-2:          #09090B;
    --surface:       #0E0E10;
    --surface-2:     #131316;
    --surface-3:     #1A1A1E;
    --surface-glass: rgba(14, 14, 16, .7);
    --border:        rgba(255, 255, 255, .09);
    --border-strong: rgba(255, 255, 255, .17);
    --border-soft:   rgba(255, 255, 255, .055);
    --highlight:     inset 0 1px 0 rgba(255,255,255,.07);

    --text:      #F4F4F5;
    --text-soft: #A6A6AF;
    --text-mute: #66666F;

    --success: #3DDC97;  --success-bg: rgba(61,220,151,.10);
    --warning: #F5B94A;  --warning-bg: rgba(245,185,74,.10);
    --danger:  #FF6B7A;  --danger-bg:  rgba(255,107,122,.10);
    --info:    #C9CBD3;  --info-bg:    rgba(201,203,211,.08);

    --font-display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
    --font-body:    'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-data:    'Geist', ui-sans-serif, system-ui, sans-serif;

    --r-xs: 8px; --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-pill: 999px;

    --shadow-sm: 0 1px 2px rgba(0,0,0,.6);
    --shadow-md: 0 1px 2px rgba(0,0,0,.55), 0 14px 34px -14px rgba(0,0,0,.85);
    --shadow-lg: 0 2px 6px rgba(0,0,0,.6), 0 44px 90px -26px rgba(0,0,0,.95);
    --shadow-glow: 0 10px 34px -12px rgba(228,228,235,.28);

    --ease: cubic-bezier(.2,.7,.2,1);
    --ease-out: cubic-bezier(.16,1,.3,1);
    --dur: .25s;

    --container: 1240px;
    --gutter: clamp(20px, 4.5vw, 72px);
    --sidebar-w: 268px;
    color-scheme: dark;
}

[data-theme="light"] {
    --accent-rgb: 24, 24, 27;
    --iris:   #18181B;
    --azure:  #52525B;
    --brand-blue: #27272A;
    --brand-violet: #71717A;
    --brand-cyan: #A1A1AA;
    --chart-fill: rgba(24,24,27,.10);
    --metal: linear-gradient(115deg, #1C1C1F 0%, #4A4B52 20%, #18181B 40%, #3E3F45 58%, #121214 78%, #3A3B41 100%);
    --on-metal: #FAFAFA;
    --grad-brand: linear-gradient(145deg, #3B3C42 0%, #1B1B1F 38%, #2C2D33 62%, #121214 100%);
    --grad-brand-soft: linear-gradient(140deg, rgba(0,0,0,.05), rgba(0,0,0,.015));
    --metal-border: linear-gradient(140deg, rgba(0,0,0,.16), rgba(0,0,0,.05) 30%, rgba(0,0,0,.03) 65%, rgba(0,0,0,.12));

    --bg:            #F4F4F5;
    --bg-2:          #EDEDEF;
    --surface:       #FFFFFF;
    --surface-2:     #F8F8F9;
    --surface-3:     #EFEFF1;
    --surface-glass: rgba(255,255,255,.8);
    --border:        rgba(9, 9, 11, .10);
    --border-strong: rgba(9, 9, 11, .18);
    --border-soft:   rgba(9, 9, 11, .06);
    --highlight:     inset 0 1px 0 rgba(255,255,255,.95);

    --text:      #09090B;
    --text-soft: #4B4B53;
    --text-mute: #8A8A93;

    --success: #0B9E6A;  --success-bg: rgba(11,158,106,.09);
    --warning: #B26A00;  --warning-bg: rgba(255,170,40,.13);
    --danger:  #D3324C;  --danger-bg:  rgba(211,50,76,.08);
    --info:    #3F3F46;  --info-bg:    rgba(63,63,70,.07);

    --shadow-sm: 0 1px 2px rgba(9,9,11,.06);
    --shadow-md: 0 1px 2px rgba(9,9,11,.05), 0 12px 32px -14px rgba(9,9,11,.18);
    --shadow-lg: 0 2px 6px rgba(9,9,11,.05), 0 40px 80px -28px rgba(9,9,11,.28);
    --shadow-glow: 0 10px 30px -12px rgba(9,9,11,.45);
    color-scheme: light;
}

/* ---- Reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "ss01", "cv11";
    transition: background-color .4s var(--ease), color .4s var(--ease);
    overflow-x: hidden;
}
h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.025em;
    font-variation-settings: "opsz" 48;
    color: var(--text);
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; padding: .1em .4em; border-radius: 6px; background: var(--surface-3); }
.num, .st-value, .wc-amount, .table td, .tot-row b { font-variant-numeric: tabular-nums; }

::selection { background: rgba(var(--accent-rgb), .32); color: var(--text); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; border: 2px solid var(--bg); }

/* ---- Layout helpers ---------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding: clamp(72px, 9vw, 128px) 0; }
.text-center { text-align: center; }
.text-gradient { background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .82rem; font-weight: 600; color: var(--text-soft);
    padding: 6px 12px 6px 8px; border-radius: var(--r-pill);
    background: var(--surface); border: 1px solid var(--border); box-shadow: var(--highlight);
}
.eyebrow i { color: var(--iris); }

/* ---- Brand lock-up ----------------------------------------------------- */
.brand, .brand-lockup { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 32px; height: 32px; flex: none; border-radius: 9px; box-shadow: 0 6px 18px -6px rgba(var(--accent-rgb), .7); }
.brand-word { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; letter-spacing: -.03em; color: var(--text); }
.brand img { height: 32px; width: auto; }

/* ---- Buttons ----------------------------------------------------------- */
.btn {
    --btn-h: 42px;
    position: relative; isolation: isolate; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: var(--btn-h); padding: 0 18px;
    border-radius: 12px; border: 1px solid transparent;
    font-weight: 600; font-size: .92rem; letter-spacing: -.005em; white-space: nowrap;
    cursor: pointer; user-select: none;
    transition: transform .2s var(--ease), box-shadow .25s var(--ease), background-color .2s, border-color .2s, color .2s;
}
.btn i { font-size: 1.02em; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.985); }
.btn-primary {
    color: #fff; background: var(--grad-brand);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 1px 2px rgba(20,16,90,.4), 0 10px 26px -12px rgba(var(--accent-rgb), .9);
}
.btn-primary::after {                      /* light sweep on hover */
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%);
    transform: translateX(-120%); transition: transform .7s var(--ease-out);
}
.btn-primary:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 1px 2px rgba(20,16,90,.4), 0 16px 36px -12px rgba(var(--accent-rgb), 1); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); box-shadow: var(--highlight), var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--border-strong); background: var(--surface-2); }
.btn-glass { background: var(--surface-glass); color: var(--text); border-color: var(--border); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.btn-glass:hover { border-color: var(--border-strong); }
.btn-danger  { background: var(--danger); color: #fff; }
.btn-success { background: var(--paid); color: #fff; }
.btn-sm { --btn-h: 34px; padding: 0 12px; font-size: .85rem; border-radius: 10px; }
.btn-lg { --btn-h: 52px; padding: 0 26px; font-size: 1rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn:disabled, .btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---- Icon buttons + theme icon swap ------------------------------------ */
.icon-btn {
    position: relative; display: inline-grid; place-items: center;
    width: 38px; height: 38px; border-radius: 11px; cursor: pointer;
    background: var(--surface); color: var(--text-soft);
    border: 1px solid var(--border); box-shadow: var(--highlight);
    transition: color .2s, border-color .2s, transform .2s var(--ease), background-color .2s;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-1px); }
.icon-btn .dot { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 2px var(--surface); animation: mh-ping 2.4s var(--ease) infinite; }
@keyframes mh-ping { 0%, 100% { box-shadow: 0 0 0 2px var(--surface), 0 0 0 0 rgba(255,107,129,.5); } 50% { box-shadow: 0 0 0 2px var(--surface), 0 0 0 6px rgba(255,107,129,0); } }
.icon-btn.danger:hover { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
[data-theme="dark"] .icon-sun, [data-theme="light"] .icon-moon { display: none; }

/* ---- Surfaces ---------------------------------------------------------- */
.card {
    position: relative;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
    box-shadow: var(--highlight), var(--shadow-md);
    padding: 24px;
}
.glass { background: var(--surface-glass); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); }

/* Cursor spotlight (JS sets --mx/--my on [data-spotlight]) */
[data-spotlight] { --mx: 50%; --my: 50%; isolation: isolate; }
[data-spotlight]::before {
    content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; z-index: -1;
    background: radial-gradient(420px circle at var(--mx) var(--my), rgba(var(--accent-rgb), .16), transparent 45%);
    opacity: 0; transition: opacity .35s var(--ease);
}
[data-spotlight]:hover::before { opacity: 1; }

/* ---- Forms ------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label, .field-label { font-size: .84rem; font-weight: 600; color: var(--text-soft); }
.field .req, .req { color: var(--danger); }
.input, .select, .textarea {
    width: 100%; min-height: 44px; padding: 10px 14px;
    background: var(--surface-2); color: var(--text);
    border: 1px solid var(--border); border-radius: 12px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.08);
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.input::placeholder, .textarea::placeholder { color: var(--text-mute); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--border-strong); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--iris); background: var(--surface); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .16); }
.input[readonly] { opacity: .8; }
.textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.select {
    appearance: none; -webkit-appearance: none; padding-right: 38px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%238790B2' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
}
.input.has-error, .select.has-error, .textarea.has-error { border-color: var(--danger); box-shadow: 0 0 0 4px var(--danger-bg); }
.field-error { color: var(--danger); font-size: .8rem; font-weight: 500; }
.field-hint  { color: var(--text-mute); font-size: .8rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.file-drop {
    position: relative; display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; border-radius: 14px; cursor: pointer;
    border: 1.5px dashed var(--border-strong); background: var(--surface-2);
    color: var(--text-soft); font-size: .9rem; transition: border-color .2s, background-color .2s;
}
.file-drop:hover { border-color: var(--iris); background: var(--grad-brand-soft); }
.file-drop i { font-size: 1.3rem; color: var(--iris); }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.checkbox { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: .9rem; color: var(--text-soft); }
.checkbox input { width: 17px; height: 17px; accent-color: var(--iris); }

/* ---- Badges ------------------------------------------------------------ */
.badge {
    display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px;
    border-radius: var(--r-pill); font-size: .74rem; font-weight: 600; letter-spacing: .01em; white-space: nowrap;
    background: var(--surface-3); color: var(--text-soft); border: 1px solid var(--border-soft);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.badge-success { background: var(--success-bg); color: var(--success); border-color: transparent; }
.badge-warning { background: var(--warning-bg); color: var(--warning); border-color: transparent; }
.badge-danger  { background: var(--danger-bg);  color: var(--danger);  border-color: transparent; }
.badge-info    { background: var(--info-bg);    color: var(--info);    border-color: transparent; }
.badge-muted   { background: var(--surface-3);  color: var(--text-mute); }
a.badge:hover { filter: brightness(1.08); }

/* ---- Alerts ------------------------------------------------------------ */
.alert {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 13px 16px; border-radius: 14px; margin-bottom: 16px;
    font-size: .9rem; line-height: 1.5; border: 1px solid transparent;
    animation: mh-alert-in .45s var(--ease-out) both;
}
.alert i { font-size: 1.05rem; margin-top: 1px; flex: none; }
.alert a { text-decoration: underline; text-underline-offset: 2px; }
.alert-success { background: var(--success-bg); color: var(--success); border-color: color-mix(in srgb, var(--success) 22%, transparent); }
.alert-error, .alert-danger { background: var(--danger-bg); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 22%, transparent); }
.alert-warning { background: var(--warning-bg); color: var(--warning); border-color: color-mix(in srgb, var(--warning) 25%, transparent); }
.alert-info    { background: var(--info-bg); color: var(--info); border-color: color-mix(in srgb, var(--info) 22%, transparent); }
.alert > div, .alert > span { color: var(--text); }
.alert b, .alert strong { color: inherit; }
@keyframes mh-alert-in { from { opacity: 0; transform: translateY(-6px); } }

/* ---- Tables ------------------------------------------------------------ */
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .9rem; }
.table thead th {
    position: sticky; top: 0; z-index: 1;
    text-align: left; font-size: .76rem; font-weight: 600; color: var(--text-mute); letter-spacing: .02em;
    padding: 12px 18px; background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap;
}
.table tbody td { padding: 14px 18px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
.table tbody tr { transition: background-color .18s; }
.table tbody tr:hover { background: color-mix(in srgb, var(--iris) 5%, transparent); }
.table tbody tr:last-child td { border-bottom: 0; }
.table a:not(.btn):not(.icon-btn) { color: var(--text); font-weight: 600; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .25s var(--ease); }
.table a:not(.btn):not(.icon-btn):hover { background-size: 100% 1px; }
.cell-strong, .table .cell-strong { font-weight: 600; color: var(--text); }
.cell-sub, .table .cell-sub { font-size: .8rem; color: var(--text-mute); margin-top: 2px; }
.ta-right, .table .ta-right, th.ta-right, td.ta-right { text-align: right; }

/* ---- Empty state ------------------------------------------------------- */
.empty-state { text-align: center; color: var(--text-mute); padding: 48px 20px; }
.empty-state > i, .empty-state .es-icon {
    display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 14px;
    font-size: 1.5rem; color: var(--iris); border-radius: 16px; background: var(--grad-brand-soft); border: 1px solid var(--border);
}
.empty-state p { color: var(--text-soft); }

/* ---- Utilities --------------------------------------------------------- */
.flex { display: flex; } .gap-2 { gap: 8px; }
.mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; } .mb-6 { margin-bottom: 24px; }
.muted { color: var(--text-mute); } .w-full { width: 100%; } .hidden { display: none !important; }
.spin { animation: mh-spin 1s linear infinite; } @keyframes mh-spin { to { transform: rotate(360deg); } }

/* ---- Focus (always visible for keyboard users) ------------------------- */
:focus-visible { outline: 2px solid var(--iris); outline-offset: 2px; border-radius: 6px; }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: none; }

/* ---- Scroll reveal (JS adds .is-in) ------------------------------------ */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--d, 0ms); }
[data-reveal="fade"] { transform: none; }
[data-reveal="scale"] { transform: translateY(14px) scale(.97); }
[data-reveal].is-in { opacity: 1; transform: none; }
html:not(.js) [data-reveal] { opacity: 1; transform: none; }

/* Legacy attribute support */
[data-anim] { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* =========================================================================
   METALLIC LAYER — obsidian surfaces, chrome accents, specular glints
   ========================================================================= */

/* Fine film grain over everything (very subtle, adds depth to pure black) */
body::after {
    content: ""; position: fixed; inset: 0; z-index: 200; pointer-events: none; opacity: .045; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
[data-theme="light"] body::after { opacity: .03; mix-blend-mode: multiply; }

/* Chrome text with a slow travelling shine */
.metal-text, .lp-hero-copy h1, .lp-head h2, .auth-brand h2, .pay-total, .wallet-card.available .wc-amount, .page-head .ph-title {
    background: var(--metal); background-size: 250% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: mh-chrome 9s linear infinite;
}
.page-head .ph-title .badge { -webkit-text-fill-color: currentColor; }
@keyframes mh-chrome { from { background-position: 0% 0; } to { background-position: 250% 0; } }

/* Primary button = polished chrome */
.btn-primary {
    color: var(--on-metal); background: var(--metal); background-size: 220% 100%; background-position: 0 0;
    border: 1px solid rgba(255,255,255,.45);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8), inset 0 -1px 0 rgba(0,0,0,.28), 0 1px 2px rgba(0,0,0,.5), 0 12px 30px -14px rgba(var(--accent-rgb), .5);
    transition: transform .2s var(--ease), box-shadow .3s var(--ease), background-position 1.1s var(--ease-out);
}
.btn-primary:hover { background-position: 100% 0; box-shadow: inset 0 1px 0 rgba(255,255,255,.85), inset 0 -1px 0 rgba(0,0,0,.28), 0 1px 2px rgba(0,0,0,.5), 0 18px 40px -14px rgba(var(--accent-rgb), .65); }
.btn-primary::after { background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.75) 50%, transparent 70%); mix-blend-mode: soft-light; }
[data-theme="light"] .btn-primary { border-color: rgba(0,0,0,.65); box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 1px 2px rgba(0,0,0,.2), 0 12px 28px -14px rgba(0,0,0,.6); }
.btn-ghost { background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--metal-border) border-box; border: 1px solid transparent; }

/* Metal hairline borders on every surface */
.card, .panel, .bx, .plan, .flow-card, .faq-item, .lp-window, .pay-card, .user-chip, .table-wrap, .seg-tabs, .eyebrow, .quote {
    border: 1px solid transparent !important;
    background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--metal-border) border-box;
}
.flow-card { background: linear-gradient(color-mix(in srgb, var(--surface) 88%, transparent), color-mix(in srgb, var(--surface) 88%, transparent)) padding-box, var(--metal-border) border-box; }
.seg-tabs, .quick-tile { background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, var(--metal-border) border-box; }
.quick-tile { border: 1px solid transparent; }

/* Specular glint that sweeps across interactive cards on hover */
.stat, .bx, .plan, .quick-tile, .flow-card, .sec-list li, .wallet-card:not(.available) {
    background-image:
        linear-gradient(105deg, transparent 38%, rgba(255,255,255,.075) 50%, transparent 62%),
        linear-gradient(var(--surface), var(--surface)),
        var(--metal-border);
    background-origin: padding-box, padding-box, border-box;
    background-clip: padding-box, padding-box, border-box;
    background-size: 260% 100%, auto, auto;
    background-position: 135% 0, 0 0, 0 0;
    background-repeat: no-repeat;
    border: 1px solid transparent;
    transition: background-position 1.2s var(--ease-out), transform .45s var(--ease-out), box-shadow .45s var(--ease-out), opacity .9s var(--ease-out), filter .9s var(--ease-out);
}
.quick-tile { background-image: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.075) 50%, transparent 62%), linear-gradient(var(--surface-2), var(--surface-2)), var(--metal-border); }
.sec-list li { background-image: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.08) 50%, transparent 62%), linear-gradient(rgba(255,255,255,.03), rgba(255,255,255,.03)), linear-gradient(140deg, rgba(255,255,255,.22), rgba(255,255,255,.04) 35%, rgba(255,255,255,.14)); }
.stat:hover, .bx:hover, .plan:hover, .quick-tile:hover, .flow-card:hover, .sec-list li:hover, .wallet-card:not(.available):hover { background-position: -35% 0, 0 0, 0 0; }
[data-theme="light"] .stat, [data-theme="light"] .bx, [data-theme="light"] .plan, [data-theme="light"] .quick-tile, [data-theme="light"] .flow-card, [data-theme="light"] .wallet-card:not(.available) {
    background-image: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.9) 50%, transparent 62%), linear-gradient(var(--surface), var(--surface)), var(--metal-border);
}
.plan.is-featured {
    background-image: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.08) 50%, transparent 62%), linear-gradient(var(--surface), var(--surface)), var(--metal) !important;
    background-origin: padding-box, padding-box, border-box !important; background-clip: padding-box, padding-box, border-box !important;
    background-size: 260% 100%, auto, auto !important; background-position: 135% 0, 0 0, 0 0 !important; background-repeat: no-repeat !important;
    border: 1.5px solid transparent !important;
}
.plan.is-featured:hover { background-position: -35% 0, 0 0, 0 0 !important; }

/* Spotlight follows the cursor in soft white */
[data-spotlight]::before { background: radial-gradient(380px circle at var(--mx) var(--my), rgba(var(--accent-rgb), .07), transparent 45%); }

/* Scroll reveal: rise + de-blur */
[data-reveal] { filter: blur(6px); }
[data-reveal].is-in { filter: none; }

@media (prefers-reduced-motion: reduce) {
    .metal-text, .lp-hero-copy h1, .lp-head h2, .auth-brand h2, .pay-total, .wallet-card.available .wc-amount, .page-head .ph-title { animation: none; }
    [data-reveal] { filter: none !important; }
}

/* ---- Official logo: light/dark versions -------------------------------- */
.brand-lockup { display: inline-flex; align-items: center; line-height: 0; }
.brand-img { height: 34px; width: auto; display: block; }
.brand-img-dark { display: none; }
[data-theme="dark"] .brand-img-light { display: none; }
[data-theme="dark"] .brand-img-dark { display: block; }
.brand-lockup.on-dark .brand-img-light { display: none; }
.brand-lockup.on-dark .brand-img-dark { display: block; }
.sidebar-head .brand-img { height: 30px; }
.lp-footer .brand-img { height: 30px; }
.auth-brand .brand-img { height: 36px; }
