/* ==========================================================================
   PRECISION TUNING SUITE — Design System
   Shared across public site, user portal, and admin.
   ========================================================================== */

:root {
    /* Precision-instrument palette — mirrors the tuner app's dark theme
       (styles.css :root.dark) so the panel and the app look like one
       product: near-black surfaces, hairline borders, amber accent.
       Green/cyan stay reserved for status (OK / info), never branding. */
    --green: #22c55e;
    --blue: #06b6d4;
    --purple: #a855f7;
    --amber: #fb2525;
    --red: #fb2525;
    --bg-deep: #0b0d12;
    --bg-raised: #10131a;
    --bg-raised-2: #151923;
    --border: #242b3a;
    --border-bright: #343e52;
    --text: #e7ebf2;
    --text-dim: #8f97ab;
    --text-faint: #5f6880;
    --sidebar-w: 270px;
    --radius: 10px;
    --radius-sm: 8px;
    --font-body: 'Inter', sans-serif;
    --font-display: 'Outfit', sans-serif;

    /* Bootstrap tokens (dark-theme re-point) — loaded after bootstrap.min.css.
       Bootstrap's LIGHT-theme values paint our dark surfaces near-black:
         .card   { color: var(--bs-body-color) }        → #212529 on #10131a
         .text-muted { color: var(--bs-secondary-color)!important }
                                        → rgba(33,37,41,.75) on a #212529 modal
       That's why profile values, card titles and every modal label were
       invisible. Re-point them at the design system — all129 text-muted
       usages, cards, tables, badges and dropdowns come back to life. */
    --bs-body-color: #e7ebf2;
    --bs-body-color-rgb: 231, 235, 242;
    --bs-secondary-color: rgba(231, 235, 242, 0.78);
    --bs-secondary-color-rgb: 231, 235, 242;
    --bs-tertiary-color: rgba(231, 235, 242, 0.55);
    --bs-tertiary-color-rgb: 231, 235, 242;
    --bs-emphasis-color: #ffffff;
    --bs-emphasis-color-rgb: 255, 255, 255;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg-deep);
    color: var(--text);
    min-height: 100vh;
    background-image:
        radial-gradient(circle at 0% 0%, rgba(251, 37, 37, 0.05) 0%, transparent 45%),
        radial-gradient(circle at 100% 100%, rgba(6, 182, 212, 0.04) 0%, transparent 45%);
    background-attachment: fixed;
}

a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--blue); }

::selection { background: rgba(251, 37, 37, 0.3); }

/* Scrollbars */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(251, 37, 37, 0.5); }

/* ---------- Typography ---------- */
h1, h2, h3, .display {
    font-family: var(--font-display);
    letter-spacing: -0.5px;
}

.grad-text {
    background: linear-gradient(120deg, #fff 20%, #fb2525 75%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.grad-text-blue {
    background: linear-gradient(120deg, #fff 20%, var(--blue) 75%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.muted { color: var(--text-dim); }
.faint { color: var(--text-faint); }
.mono { font-family: 'JetBrains Mono', 'Consolas', monospace; }

/* ---------- Layout ---------- */
.shell { display: flex; min-height: 100vh; }

.page {
    flex: 1;
    margin-left: var(--sidebar-w);
    padding: 36px 44px;
    max-width: 1500px;
    animation: pageIn 0.45s ease both;
}

@keyframes pageIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.page-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.page-head h1 { font-size: 2rem; font-weight: 800; }
.page-head .sub { color: var(--text-dim); margin-top: 4px; font-size: 0.92rem; }

.section-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-faint);
    margin: 28px 0 14px;
}

/* ---------- Sidebar ---------- */
.sidebar {
    width: var(--sidebar-w);
    background: rgba(5, 7, 10, 0.85);
    backdrop-filter: blur(22px);
    border-right: 1px solid var(--border);
    height: 100vh;
    position: fixed;
    padding: 34px 22px 24px;
    display: flex;
    flex-direction: column;
    z-index: 200;
    transition: transform 0.3s ease;
}

.sidebar .brand {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.02rem;
    letter-spacing: 0.5px;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar .brand .bolt {
    width: 34px; height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, #fb2525, #991b1b);
    display: inline-flex; align-items: center; justify-content: center;
    color: #000; font-size: 1rem;
    box-shadow: 0 0 18px rgba(251, 37, 37, 0.4);
}

.sidebar .brand-sub {
    font-size: 0.62rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 40px;
    padding-left: 44px;
}

.nav-group { list-style: none; flex: 1; overflow-y: auto; }

.nav-label {
    font-size: 0.62rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-faint);
    padding: 18px 14px 8px;
    font-weight: 700;
}

.nav-item { margin-bottom: 4px; }

.nav-link {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--text-dim);
    font-weight: 500;
    font-size: 0.92rem;
    transition: 0.2s;
    border: 1px solid transparent;
}

.nav-link i { width: 20px; text-align: center; font-size: 0.95rem; }

.nav-link:hover { background: var(--bg-raised); color: #fff; }

.nav-link.active {
    background: linear-gradient(90deg, rgba(251, 37, 37, 0.18), rgba(251, 37, 37, 0.04));
    color: var(--amber);
    border-color: rgba(251, 37, 37, 0.35);
}

.nav-link .nav-badge {
    margin-left: auto;
    font-size: 0.62rem;
    padding: 2px 8px;
    border-radius: 20px;
    background: rgba(251, 37, 37, 0.15);
    color: var(--amber);
    font-weight: 700;
}

.sidebar-foot { border-top: 1px solid var(--border); padding-top: 16px; margin-top: 16px; }

.user-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    margin-bottom: 10px;
}

.user-chip .avatar {
    width: 38px; height: 38px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
    font-family: var(--font-display);
    color: #fff;
}

.user-chip .name { font-weight: 700; font-size: 0.9rem; line-height: 1.2; }
.user-chip .role { font-size: 0.7rem; color: var(--text-dim); text-transform: capitalize; }

.logout-link {
    display: flex; align-items: center; gap: 13px;
    padding: 12px 14px;
    border-radius: 12px;
    color: #ff6b78;
    font-weight: 600;
    font-size: 0.92rem;
    transition: 0.2s;
}

.logout-link:hover { background: rgba(255, 71, 87, 0.1); color: #ff6b78; }

/* Mobile */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 16px; left: 16px;
    z-index: 300;
    background: rgba(10, 14, 20, 0.9);
    border: 1px solid var(--border-bright);
    color: #fff;
    padding: 10px 13px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.1rem;
    backdrop-filter: blur(10px);
}

.sidebar-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 150;
}

@media (max-width: 1024px) {
    .sidebar-toggle { display: block; }
    .sidebar { transform: translateX(-100%); }
    .sidebar.mobile-open { transform: translateX(0); }
    .sidebar-overlay.active { display: block; }
    .page { margin-left: 0; padding: 76px 18px 24px; }
}

/* ---------- Cards ---------- */
.card {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    backdrop-filter: blur(12px);
}

.card.hover-lift { transition: 0.25s; }
.card.hover-lift:hover {
    transform: translateY(-4px);
    border-color: var(--border-bright);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.card-title i.lead { color: var(--green); margin-right: 8px; }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-main { grid-template-columns: 2fr 1fr; }

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

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

/* ---------- Stat cards ---------- */
.stat {
    position: relative;
    overflow: hidden;
}

.stat .stat-icon {
    width: 46px; height: 46px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.stat .stat-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-dim);
    font-weight: 700;
    margin-bottom: 6px;
}

.stat .stat-value {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.1;
}

.stat .stat-foot { margin-top: 10px; font-size: 0.78rem; color: var(--text-faint); }

.tint-green { background: rgba(34, 197, 94, 0.12); color: var(--green); }
.tint-blue { background: rgba(6, 182, 212, 0.12); color: var(--blue); }
.tint-purple { background: rgba(168, 85, 247, 0.14); color: var(--purple); }
.tint-amber { background: rgba(251, 37, 37, 0.12); color: var(--amber); }
.tint-red { background: rgba(255, 71, 87, 0.12); color: var(--red); }

/* ---------- Badges & pills ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border-radius: 30px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid transparent;
}

.badge-green { background: rgba(34,197,94,0.1); color: var(--green); border-color: rgba(34,197,94,0.3); }
.badge-blue { background: rgba(6,182,212,0.1); color: var(--blue); border-color: rgba(6,182,212,0.3); }
.badge-purple { background: rgba(168,85,247,0.12); color: var(--purple); border-color: rgba(168,85,247,0.35); }
.badge-amber { background: rgba(251, 37, 37,0.1); color: var(--amber); border-color: rgba(251, 37, 37,0.3); }
.badge-red { background: rgba(255,71,87,0.12); color: var(--red); border-color: rgba(255,71,87,0.35); }
.badge-gray { background: rgba(255,255,255,0.05); color: var(--text-dim); border-color: var(--border); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    border: 1px solid var(--border);
    background: var(--bg-raised);
    color: #fff;
    transition: 0.25s;
    font-family: var(--font-body);
    text-decoration: none;
}

.btn:hover { border-color: var(--border-bright); background: var(--bg-raised-2); color: #fff; }

.btn-primary {
    background: linear-gradient(135deg, #fb2525, #991b1b);
    border: none;
    color: #001a10;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(251, 37, 37, 0.35);
    filter: brightness(1.06);
    color: #001a10;
}

.btn-ghost { background: transparent; }

.btn-danger { background: rgba(255,71,87,0.12); border-color: rgba(255,71,87,0.35); color: #ff8493; }
.btn-danger:hover { background: rgba(255,71,87,0.2); color: #ff8493; }

.btn-sm { padding: 7px 14px; font-size: 0.8rem; border-radius: 10px; }
.btn-block { width: 100%; }

.btn-icon {
    padding: 8px 11px;
    border-radius: 9px;
    font-size: 0.82rem;
}

/* ---------- Forms ---------- */
.input, select.input, textarea.input {
    width: 100%;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 13px 16px;
    color: #fff;
    font-size: 0.92rem;
    font-family: var(--font-body);
    transition: 0.2s;
}

.input::placeholder { color: var(--text-faint); }

.input:focus {
    outline: none;
    border-color: var(--amber);
    box-shadow: 0 0 0 3px rgba(251, 37, 37, 0.15);
    background: rgba(0, 0, 0, 0.4);
}

select.input option { background: #0a0f16; color: #fff; }

.field { margin-bottom: 16px; }
.field label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    margin-bottom: 8px;
}

/* ---------- Info rows / key-value ---------- */
.kv { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--text-dim); font-size: 0.88rem; }
.kv .v { font-weight: 600; font-size: 0.88rem; }
.kv .v.mono {
    background: rgba(255,255,255,0.05);
    color: var(--text);
    padding: 3px 10px;
    border-radius: 7px;
    font-size: 0.8rem;
    word-break: break-all;
    max-width: 70%;
    text-align: right;
}

/* ---------- Alerts ---------- */
.alert {
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 0.88rem;
    margin-bottom: 22px;
    border: 1px solid;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success { background: rgba(34,197,94,0.07); border-color: rgba(34,197,94,0.3); color: var(--green); }
.alert-danger { background: rgba(255,71,87,0.08); border-color: rgba(255,71,87,0.35); color: #ff8493; }
.alert-info { background: rgba(6,182,212,0.07); border-color: rgba(6,182,212,0.3); color: var(--blue); }
.alert-warn { background: rgba(251, 37, 37,0.08); border-color: rgba(251, 37, 37,0.35); color: var(--amber); }

/* ---------- Tables ---------- */
.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-raised);
}

table.data {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    min-width: 720px;
}

table.data th {
    text-align: left;
    padding: 14px 18px;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-faint);
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.02);
    white-space: nowrap;
}

table.data td {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    vertical-align: middle;
}

table.data tbody tr { transition: 0.15s; }
table.data tbody tr:hover { background: rgba(255,255,255,0.03); }
table.data tbody tr:last-child td { border-bottom: none; }

/* ---------- Tier styling ---------- */
.tier-starter { --tier-color: var(--blue); }
.tier-pro { --tier-color: var(--green); }
.tier-max { --tier-color: var(--purple); }

.tier-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--tier-color, var(--blue));
    background: color-mix(in srgb, var(--tier-color, var(--blue)) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--tier-color, var(--blue)) 35%, transparent);
}

.tier-glow { box-shadow: 0 0 30px color-mix(in srgb, var(--tier-color, var(--blue)) 20%, transparent); }

/* Pricing cards */
.pricing-card {
    position: relative;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 34px 28px;
    display: flex;
    flex-direction: column;
    transition: 0.3s;
}

.pricing-card:hover { transform: translateY(-6px); border-color: var(--border-bright); }

.pricing-card.featured {
    border-color: rgba(251, 37, 37, 0.5);
    background: linear-gradient(180deg, rgba(251,37,37,0.07), rgba(255,255,255,0.02));
    box-shadow: 0 20px 50px rgba(251, 37, 37, 0.16);
}

.pricing-card .plan-name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-card .plan-price {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 900;
    margin: 16px 0 4px;
}

.pricing-card .plan-price small { font-size: 0.9rem; color: var(--text-dim); font-weight: 500; }

.pricing-card .plan-tag { color: var(--text-dim); font-size: 0.85rem; margin-bottom: 22px; }

.pricing-card ul.features { list-style: none; margin: 0 0 26px; flex: 1; }

.pricing-card ul.features li {
    padding: 9px 0;
    font-size: 0.9rem;
    color: var(--text-dim);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-bottom: 1px dashed rgba(255,255,255,0.06);
}

.pricing-card ul.features li:last-child { border-bottom: none; }

.pricing-card ul.features li i { color: var(--green); margin-top: 3px; font-size: 0.8rem; }

.plan-flag {
    position: absolute;
    top: -13px; right: 24px;
    background: linear-gradient(135deg, #fb2525, #991b1b);
    color: #001a10;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 20px;
}

/* ---------- Hero (public) ---------- */
.hero {
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 120px 20px 60px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    /* bg_premium.png never shipped — replaced with the amber instrument glow */
    background:
        radial-gradient(circle at 22% 28%, rgba(251, 37, 37, 0.4), transparent 55%),
        radial-gradient(circle at 78% 72%, rgba(6, 182, 212, 0.3), transparent 55%),
        linear-gradient(160deg, #10131a, #0b0d12);
    background-size: cover;
    opacity: 0.12;
    filter: blur(8px);
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -220px; left: 50%;
    transform: translateX(-50%);
    width: 900px; height: 420px;
    background: radial-gradient(ellipse, rgba(251,37,37,0.18), transparent 65%);
    z-index: -1;
}

.hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    font-weight: 900;
    line-height: 1.08;
    margin: 22px 0;
}

.hero .kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 30px;
    border: 1px solid rgba(251, 37, 37, 0.4);
    background: rgba(251, 37, 37, 0.07);
    color: var(--green);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero p.lede {
    max-width: 620px;
    margin: 0 auto 34px;
    color: var(--text-dim);
    font-size: 1.05rem;
    line-height: 1.7;
}

.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Public navbar ---------- */
.public-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px clamp(20px, 5vw, 60px);
    background: rgba(5, 7, 10, 0.75);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
}

.public-nav .brand {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.02rem;
    letter-spacing: 0.5px;
    line-height: 1.15;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.public-nav .brand .bolt {
    width: 30px; height: 30px;
    border-radius: 9px;
    background: linear-gradient(135deg, #fb2525, #991b1b);
    display: inline-flex; align-items: center; justify-content: center;
    color: #000;
    box-shadow: 0 0 14px rgba(251,37,37,0.4);
}

.public-nav .links { display: flex; align-items: center; gap: 8px; }

.public-nav .links a {
    color: var(--text-dim);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 9px 15px;
    border-radius: 10px;
    transition: 0.2s;
}

.public-nav .links a:hover { color: #fff; background: var(--bg-raised); }

.public-nav .links a.btn { color: #001a10; }

@media (max-width: 700px) {
    .public-nav .links a.hide-sm { display: none; }
}

/* ---------- Auth pages ---------- */
.auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.auth-wrap .hero-bg {
    position: fixed;
    inset: 0;
    /* bg_premium.png never shipped — replaced with the amber instrument glow */
    background:
        radial-gradient(circle at 22% 28%, rgba(251, 37, 37, 0.4), transparent 55%),
        radial-gradient(circle at 78% 72%, rgba(6, 182, 212, 0.3), transparent 55%),
        linear-gradient(160deg, #10131a, #0b0d12);
    background-size: cover;
    opacity: 0.13;
    filter: blur(10px);
    z-index: -1;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--bg-raised);
    backdrop-filter: blur(25px);
    border: 1px solid var(--border-bright);
    border-radius: 26px;
    padding: 44px 38px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
    text-align: center;
    animation: pageIn 0.6s ease both;
}

.auth-card .logo {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.5rem;
    margin-bottom: 24px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.auth-card .logo .bolt {
    width: 34px; height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, #fb2525, #991b1b);
    display: inline-flex; align-items: center; justify-content: center;
    color: #000;
    box-shadow: 0 0 16px rgba(251,37,37,0.45);
}

.auth-card h2 { font-size: 1.7rem; margin-bottom: 8px; }
.auth-card .subtitle { color: var(--text-dim); font-size: 0.88rem; margin-bottom: 30px; }

.auth-field { position: relative; margin-bottom: 16px; text-align: left; }

.auth-field i {
    position: absolute;
    left: 18px; top: 50%;
    transform: translateY(-50%);
    color: var(--text-faint);
    font-size: 0.9rem;
    transition: 0.2s;
    pointer-events: none;
}

.auth-field .input { padding-left: 46px; }
.auth-field .input:focus + i, .auth-field i + .input:focus { color: var(--green); }

.auth-foot { margin-top: 26px; color: var(--text-dim); font-size: 0.85rem; }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--border); margin: 24px 0; }

.empty-state {
    text-align: center;
    padding: 54px 20px;
    color: var(--text-faint);
}

.empty-state i { font-size: 2.2rem; margin-bottom: 14px; display: block; opacity: 0.4; }

.row-flex { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.right { margin-left: auto; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }

.toast-anchor { position: fixed; bottom: 24px; right: 24px; z-index: 500; display: flex; flex-direction: column; gap: 10px; }

.toast {
    background: rgba(10, 15, 22, 0.95);
    border: 1px solid var(--border-bright);
    border-left: 3px solid var(--green);
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 0.88rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    animation: toastIn 0.3s ease both;
    max-width: 360px;
}

.toast.error { border-left-color: var(--red); }
.toast.warn { border-left-color: var(--amber); }

@keyframes toastIn {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Progress bar (subscription usage) */
.progress {
    height: 8px;
    background: rgba(255,255,255,0.06);
    border-radius: 20px;
    overflow: hidden;
}

.progress .bar {
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(90deg, #fb2525, #991b1b);
    transition: width 0.6s ease;
}

.progress .bar.warn { background: linear-gradient(90deg, var(--amber), #f97316); }
.progress .bar.danger { background: linear-gradient(90deg, var(--red), #dc2626); }
