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

/* ══════════════════════════════════════════════════════
   TrcSwaps — Brand: Red #e31e24 + Silver #9ca3af + Black
   ══════════════════════════════════════════════════════ */

:root {
    /* Backgrounds */
    --bg:          #050508;
    --surface:     #09090e;
    --card:        #0e0e16;
    --card-hi:     #13131e;
    --border:      rgba(255,255,255,0.06);
    --border-hi:   rgba(227,30,36,0.5);

    /* Brand — Red */
    --red:         #e31e24;
    --red-bright:  #ff3b41;
    --red-dark:    #991b1b;
    --red-lo:      rgba(227,30,36,0.10);
    --red-mid:     rgba(227,30,36,0.22);

    /* Brand — Silver */
    --silver:      #b0b8c8;
    --silver-lo:   rgba(176,184,200,0.08);
    --silver-mid:  rgba(176,184,200,0.18);

    /* Semantic aliases (used in existing inline styles) */
    --purple:      #e31e24;
    --purple-lo:   rgba(227,30,36,0.10);
    --purple-mid:  rgba(227,30,36,0.22);
    --cyan:        #b0b8c8;
    --cyan-lo:     rgba(176,184,200,0.08);

    /* Status colors — unchanged */
    --green:       #10b981;
    --green-lo:    rgba(16,185,129,0.12);
    --gold:        #f59e0b;
    --gold-lo:     rgba(245,158,11,0.12);
    --blue:        #3b82f6;
    --blue-lo:     rgba(59,130,246,0.12);
    --indigo:      #6366f1;
    --indigo-lo:   rgba(99,102,241,0.12);

    /* Text */
    --text:        #f2f2f5;
    --muted:       #6b7280;
    --dim:         #9ca3af;

    /* Gradients — Red to Silver (mirrors the logo letterforms) */
    --gradient:    linear-gradient(135deg, #e31e24 0%, #7f1d1d 100%);
    --gradient-2:  linear-gradient(135deg, #e31e24 0%, #c8ccd6 100%);
    --gradient-h:  linear-gradient(90deg,  #e31e24 0%, #c8ccd6 100%);

    /* Shadows */
    --shadow-card: 0 4px 28px rgba(0,0,0,0.55);
    --shadow-glow: 0 0 48px rgba(227,30,36,0.14);

    /* Radii */
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-sm: 8px;
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Background grid — red tint */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(227,30,36,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(227,30,36,0.025) 1px, transparent 1px);
    background-size: 52px 52px;
    pointer-events: none;
    z-index: 0;
}

/* Ambient glows */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 45% at 5%  0%,  rgba(227,30,36,0.10)  0%, transparent 60%),
        radial-gradient(ellipse 45% 35% at 95% 85%, rgba(176,184,200,0.05) 0%, transparent 55%),
        radial-gradient(ellipse 35% 30% at 50% 110%,rgba(127,29,29,0.08)  0%, transparent 55%);
    pointer-events: none;
    z-index: 0;
}

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

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(227,30,36,0.4); border-radius: 99px; }
::selection { background: rgba(227,30,36,0.35); color: #fff; }

/* ── Brand Gradient — Red → Silver (logo match) ─────────────────── */
.brand-gradient {
    background: var(--gradient-h);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* ── Logo ──────────────────────────────────────────────────────── */
.site-logo {
    height: 38px;
    width: auto;
    display: block;
}
.site-logo-lg {
    height: 56px;
    width: auto;
    display: block;
}

/* ── Navbar ────────────────────────────────────────────────────── */
#mainNav {
    background: rgba(5,5,8,0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: .6rem 0;
}

#mainNav .nav-link {
    color: var(--dim);
    border-radius: var(--radius-sm);
    padding: .4rem .85rem;
    font-size: .875rem;
    font-weight: 500;
    transition: color .2s, background .2s;
    position: relative;
}
#mainNav .nav-link:hover { color: #fff; background: rgba(255,255,255,0.04); }
#mainNav .nav-link.active {
    color: #fff;
    background: var(--red-lo);
}
#mainNav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 20%; right: 20%;
    height: 2px;
    background: var(--gradient-h);
    border-radius: 99px;
}

.wallet-pill {
    background: var(--red-lo);
    border: 1px solid var(--red-mid);
    color: var(--red-bright);
    border-radius: 999px;
    padding: .28rem .95rem;
    font-size: .77rem;
    font-family: 'Courier New', monospace;
    display: flex; align-items: center; gap: .4rem;
    letter-spacing: .02em;
}

/* Dropdown */
.dropdown-menu-dark {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card), var(--shadow-glow);
    padding: .4rem;
}
.dropdown-menu-dark .dropdown-item {
    color: var(--dim);
    border-radius: var(--radius-sm);
    padding: .5rem .85rem;
    font-size: .875rem;
    transition: all .15s;
}
.dropdown-menu-dark .dropdown-item:hover { background: var(--red-lo); color: #fff; }
.dropdown-menu-dark .dropdown-divider { border-color: var(--border); margin: .3rem 0; }

/* ── Cards ─────────────────────────────────────────────────────── */
.ts-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: transform .25s, box-shadow .25s, border-color .25s;
    position: relative;
    overflow: hidden;
}
.ts-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(227,30,36,0.5), transparent);
    opacity: 0;
    transition: opacity .3s;
}
.ts-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card), var(--shadow-glow);
    border-color: rgba(227,30,36,0.18);
}
.ts-card:hover::before { opacity: 1; }

.ts-card-gradient {
    background: var(--gradient);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 36px rgba(227,30,36,0.3);
}
.ts-card-gradient::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 180px; height: 180px;
    background: rgba(255,255,255,0.06); border-radius: 50%;
}
.ts-card-gradient::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -20px;
    width: 220px; height: 220px;
    background: rgba(255,255,255,0.03); border-radius: 50%;
}
.ts-card-gradient > * { position: relative; z-index: 1; }

/* ── Stat Cards ────────────────────────────────────────────────── */
.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.35rem 1.5rem;
    display: flex; align-items: center; gap: 1rem;
    transition: transform .25s, box-shadow .25s, border-color .25s;
    overflow: hidden; position: relative;
}
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
    border-color: rgba(227,30,36,0.15);
}
.stat-icon {
    width: 52px; height: 52px;
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; flex-shrink: 0;
}
.stat-icon.purple { background: var(--red-lo);    color: var(--red-bright); box-shadow: 0 0 20px rgba(227,30,36,0.15); }
.stat-icon.red    { background: var(--red-lo);    color: var(--red-bright); box-shadow: 0 0 20px rgba(227,30,36,0.15); }
.stat-icon.silver { background: var(--silver-lo); color: var(--silver);     box-shadow: 0 0 20px rgba(176,184,200,0.10); }
.stat-icon.cyan   { background: var(--silver-lo); color: var(--silver);     box-shadow: 0 0 20px rgba(176,184,200,0.10); }
.stat-icon.green  { background: var(--green-lo);  color: #34d399;           box-shadow: 0 0 20px rgba(16,185,129,0.12); }
.stat-icon.gold   { background: var(--gold-lo);   color: #fbbf24;           box-shadow: 0 0 20px rgba(245,158,11,0.12); }
.stat-icon.indigo { background: var(--indigo-lo); color: #818cf8;           box-shadow: 0 0 20px rgba(99,102,241,0.12); }
.stat-icon.blue   { background: var(--blue-lo);   color: #60a5fa;           box-shadow: 0 0 20px rgba(59,130,246,0.10); }

.stat-value { font-size: 1.6rem; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.stat-label { font-size: .74rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-top: 3px; }

/* ── Action Buttons ────────────────────────────────────────────── */
.action-btn {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.35rem 1rem;
    color: var(--text);
    text-align: center;
    text-decoration: none;
    display: block;
    transition: all .25s;
    position: relative;
    overflow: hidden;
}
.action-btn::before {
    content: '';
    position: absolute; inset: 0;
    background: var(--gradient);
    opacity: 0;
    transition: opacity .25s;
    border-radius: inherit;
}
.action-btn > * { position: relative; z-index: 1; }
.action-btn:hover {
    border-color: transparent;
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(227,30,36,0.3);
}
.action-btn:hover::before { opacity: 1; }
.action-btn .action-icon {
    font-size: 1.75rem;
    margin-bottom: .5rem;
    display: block;
    transition: transform .25s;
}
.action-btn:hover .action-icon { transform: scale(1.15); }

/* ── Tables ────────────────────────────────────────────────────── */
.ts-table { border-collapse: separate; border-spacing: 0; width: 100%; }
.ts-table th {
    background: rgba(255,255,255,0.02);
    color: var(--muted);
    font-size: .72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em;
    padding: .85rem 1.25rem;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.ts-table td {
    padding: .9rem 1.25rem;
    border-bottom: 1px solid var(--border);
    font-size: .875rem; vertical-align: middle;
}
.ts-table tr:last-child td { border-bottom: none; }
.ts-table tbody tr { transition: background .15s; }
.ts-table tbody tr:hover td { background: rgba(227,30,36,0.04); }

/* ── Badges ────────────────────────────────────────────────────── */
[class^="badge-"] {
    border-radius: 999px; padding: 3px 12px;
    font-size: .71rem; font-weight: 700;
    letter-spacing: .05em; display: inline-block;
    text-transform: uppercase;
}
.badge-completed { background: var(--green-lo);  color: #34d399; border: 1px solid rgba(16,185,129,0.2); }
.badge-pending   { background: var(--gold-lo);   color: #fbbf24; border: 1px solid rgba(245,158,11,0.2); }
.badge-failed    { background: rgba(227,30,36,.1); color: #f87171; border: 1px solid rgba(227,30,36,0.25); }
.badge-purchase  { background: var(--indigo-lo); color: #818cf8; border: 1px solid rgba(99,102,241,0.2); }
.badge-transfer  { background: var(--red-lo);    color: #fca5a5; border: 1px solid rgba(227,30,36,0.2); }
.badge-receive   { background: var(--green-lo);  color: #6ee7b7; border: 1px solid rgba(16,185,129,0.2); }
.badge-kyc-verified { background: var(--green-lo); color: #34d399; border: 1px solid rgba(16,185,129,0.2); }
.badge-kyc-pending  { background: var(--gold-lo);  color: #fbbf24; border: 1px solid rgba(245,158,11,0.2); }
.badge-kyc-rejected { background: rgba(227,30,36,.1); color: #f87171; border: 1px solid rgba(227,30,36,0.2); }
.badge-active    { background: var(--green-lo);  color: #34d399; border: 1px solid rgba(16,185,129,0.2); }

/* ── Forms ─────────────────────────────────────────────────────── */
.ts-input {
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid var(--border) !important;
    color: var(--text) !important;
    border-radius: var(--radius-md) !important;
    padding: .8rem 1.1rem !important;
    font-size: .9rem !important;
    font-family: inherit !important;
    transition: border-color .2s, box-shadow .2s !important;
}
.ts-input:focus {
    background: rgba(255,255,255,0.06) !important;
    border-color: var(--red) !important;
    box-shadow: 0 0 0 3px rgba(227,30,36,0.16) !important;
    outline: none !important;
}
.ts-input::placeholder { color: var(--muted) !important; }

.ts-label {
    color: var(--dim);
    font-size: .8rem; font-weight: 600;
    margin-bottom: .45rem; display: block;
    letter-spacing: .03em;
}

/* ── Buttons ───────────────────────────────────────────────────── */
.btn-ts-primary {
    background: var(--gradient);
    border: none; color: #fff;
    border-radius: var(--radius-md);
    padding: .8rem 1.75rem;
    font-weight: 700; font-size: .9rem;
    letter-spacing: .01em;
    transition: opacity .2s, transform .2s, box-shadow .2s;
    box-shadow: 0 4px 20px rgba(227,30,36,0.4);
    cursor: pointer;
}
.btn-ts-primary:hover {
    opacity: .92;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(227,30,36,0.55);
    color: #fff;
}
.btn-ts-primary:active  { transform: translateY(0); }
.btn-ts-primary:disabled { opacity: .4; transform: none; box-shadow: none; }

.btn-ts-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--dim);
    border-radius: var(--radius-md);
    padding: .8rem 1.75rem;
    font-weight: 600; font-size: .9rem;
    transition: all .2s; cursor: pointer;
}
.btn-ts-outline:hover {
    background: var(--red-lo);
    border-color: var(--border-hi);
    color: #fff;
}

/* TronLink / wallet button */
.btn-tron {
    background: rgba(176,184,200,0.06);
    border: 1px solid rgba(176,184,200,0.2);
    color: var(--silver);
    border-radius: var(--radius-md);
    padding: .8rem 1.5rem;
    font-weight: 600; font-size: .9rem;
    transition: all .2s; width: 100%; cursor: pointer;
}
.btn-tron:hover {
    background: rgba(176,184,200,0.12);
    border-color: var(--silver);
    color: #fff;
    box-shadow: 0 4px 20px rgba(176,184,200,0.1);
}

/* ── Spinner ───────────────────────────────────────────────────── */
.spin {
    display: none;
    width: 1rem; height: 1rem;
    border: 2px solid rgba(255,255,255,0.25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .65s linear infinite;
    vertical-align: middle; margin-right: 6px; flex-shrink: 0;
}
.loading .spin { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Alerts ────────────────────────────────────────────────────── */
.ts-alert {
    border-radius: var(--radius-md);
    padding: .9rem 1.1rem;
    font-size: .875rem; border: 1px solid;
    margin-bottom: 1rem;
    display: flex; align-items: flex-start; gap: .5rem;
}
.ts-alert-success { background: rgba(16,185,129,0.08);  border-color: rgba(16,185,129,0.25); color: #6ee7b7; }
.ts-alert-error   { background: rgba(227,30,36,0.08);   border-color: rgba(227,30,36,0.28);  color: #fca5a5; }
.ts-alert-info    { background: rgba(176,184,200,0.06); border-color: rgba(176,184,200,0.2); color: var(--silver); }
.ts-alert-warning { background: rgba(245,158,11,0.08);  border-color: rgba(245,158,11,0.25); color: #fcd34d; }

/* ── Hash cell ─────────────────────────────────────────────────── */
.hash-cell {
    font-family: 'Courier New', monospace;
    font-size: .78rem; color: var(--silver);
    max-width: 140px; overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap;
    cursor: help; letter-spacing: .02em;
}

/* ── Page header ───────────────────────────────────────────────── */
.page-header {
    padding: 2rem 0 1.75rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}
.page-header h2 {
    font-weight: 800; font-size: 1.65rem;
    letter-spacing: -0.02em; margin: 0;
}

/* ── Footer ────────────────────────────────────────────────────── */
.footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    margin-top: auto;
}

/* ── Auth pages ────────────────────────────────────────────────── */
.auth-wrapper {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 2rem 1rem;
}
.auth-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 2.75rem;
    width: 100%; max-width: 440px;
    box-shadow: var(--shadow-card), var(--shadow-glow);
    position: relative; overflow: hidden;
}
.auth-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: var(--gradient-h);
}
.divider-text {
    display: flex; align-items: center; gap: 1rem;
    color: var(--muted); font-size: .8rem; font-weight: 500;
    letter-spacing: .04em;
}
.divider-text::before, .divider-text::after {
    content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ── Landing Hero ──────────────────────────────────────────────── */
.hero {
    min-height: 92vh;
    display: flex; align-items: center;
    position: relative; overflow: hidden;
    padding: 5rem 0 4rem;
}
.hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 50% -5%,  rgba(227,30,36,0.18) 0%, transparent 60%),
        radial-gradient(ellipse 45% 35% at 88% 55%,  rgba(176,184,200,0.06) 0%, transparent 55%),
        radial-gradient(ellipse 40% 30% at 12% 85%,  rgba(127,29,29,0.10) 0%, transparent 55%);
    pointer-events: none;
}
.hero-title {
    font-size: clamp(2.6rem, 6.5vw, 5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.04em;
}
.hero-subtitle {
    font-size: 1.05rem;
    color: var(--dim);
    line-height: 1.7;
    max-width: 500px;
}

/* Live badge */
.live-badge {
    display: inline-flex; align-items: center; gap: .5rem;
    background: rgba(16,185,129,0.08);
    border: 1px solid rgba(16,185,129,0.22);
    color: #6ee7b7;
    border-radius: 999px;
    padding: .3rem 1rem;
    font-size: .79rem; font-weight: 600; letter-spacing: .04em;
    margin-bottom: 1.5rem;
}
.live-dot {
    width: 7px; height: 7px;
    background: #10b981; border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%,100% { opacity:1; box-shadow:0 0 6px #10b981; }
    50%      { opacity:.6; box-shadow:0 0 14px #10b981; }
}

/* Hero portfolio card */
.hero-card {
    background: var(--card);
    border: 1px solid rgba(227,30,36,0.2);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-card), var(--shadow-glow);
    position: relative; overflow: hidden;
}
.hero-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: var(--gradient-h);
}
.hero-card-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: .9rem 0; border-bottom: 1px solid var(--border);
}
.hero-card-row:last-child { border-bottom: none; padding-bottom: 0; }
.hero-card-row:first-child { padding-top: 0; }
.hero-card-label { font-size: .76rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.hero-card-value { font-weight: 700; font-size: 1.05rem; }
.hero-card-ticker { color: var(--muted); font-size: .8rem; font-weight: 400; margin-left: 4px; }

/* ── Feature cards ─────────────────────────────────────────────── */
.feature-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem; height: 100%;
    transition: border-color .25s, transform .25s, box-shadow .25s;
    position: relative; overflow: hidden;
}
.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0; height: 3px;
    background: var(--gradient-h);
    transform: scaleX(0);
    transition: transform .3s;
    transform-origin: left;
}
.feature-card:hover {
    border-color: rgba(227,30,36,0.22);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card), 0 0 24px rgba(227,30,36,0.08);
}
.feature-card:hover::after { transform: scaleX(1); }
.feature-icon {
    width: 48px; height: 48px;
    background: var(--red-lo);
    border: 1px solid rgba(227,30,36,0.18);
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.35rem; color: var(--red-bright);
    margin-bottom: 1.1rem;
    transition: background .25s, box-shadow .25s;
}
.feature-card:hover .feature-icon {
    background: var(--red-mid);
    box-shadow: 0 0 18px rgba(227,30,36,0.2);
}

/* ── Token / Rate badge ────────────────────────────────────────── */
.token-price-badge {
    background: var(--red-lo);
    border: 1px solid rgba(227,30,36,0.2);
    border-radius: 999px;
    padding: .3rem 1rem;
    font-size: .8rem; font-weight: 600;
    color: var(--red-bright);
    display: inline-flex; align-items: center; gap: .4rem;
    letter-spacing: .02em;
}

/* ── Buy page ──────────────────────────────────────────────────── */
.total-box {
    background: var(--red-lo);
    border: 1px solid rgba(227,30,36,0.18);
    border-radius: var(--radius-md);
    padding: 1.1rem 1.35rem;
}

.step-num {
    width: 38px; height: 38px;
    background: var(--red-lo);
    border: 1px solid rgba(227,30,36,0.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .85rem; font-weight: 700;
    color: var(--red-bright); flex-shrink: 0;
}

/* ── Stats section ─────────────────────────────────────────────── */
.stats-section {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.stats-number {
    font-size: 2rem; font-weight: 900; letter-spacing: -0.03em;
    background: var(--gradient-h);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── CTA section ───────────────────────────────────────────────── */
.cta-section {
    background: linear-gradient(135deg, rgba(227,30,36,0.08), rgba(127,29,29,0.04));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* ── Admin ─────────────────────────────────────────────────────── */
.admin-sidebar-link {
    display: flex; align-items: center; gap: .65rem;
    color: var(--muted); padding: .55rem .9rem;
    border-radius: var(--radius-sm); text-decoration: none;
    font-size: .875rem; font-weight: 500; transition: all .2s;
}
.admin-sidebar-link:hover,
.admin-sidebar-link.active { background: var(--red-lo); color: #fff; }

/* ── Misc ──────────────────────────────────────────────────────── */
.text-red    { color: var(--red-bright) !important; }
.text-silver { color: var(--silver) !important; }

@media (max-width: 576px) {
    .auth-card { padding: 1.75rem 1.5rem; border-radius: 18px; }
    .hero-title { letter-spacing: -0.03em; }
    .stat-value { font-size: 1.35rem; }
    .site-logo  { height: 30px; }
}
