/* ============================================
   EDGAR'S TRADER — Premium Dashboard
   BlackQuantum-inspired: deep space + orange glow
   ============================================ */

:root {
    --bg-deep: #08080c;
    --bg-base: #0e0e14;
    --bg-card: #14141d;
    --bg-card-hover: #1a1a25;
    --border: rgba(255, 255, 255, 0.06);
    --border-strong: rgba(255, 107, 53, 0.18);

    --text-primary: #f5f5f7;
    --text-secondary: #9b9ba8;
    --text-muted: #5d5d70;

    --orange: #ff6b35;
    --orange-bright: #ff8c42;
    --orange-dim: rgba(255, 107, 53, 0.12);
    --orange-glow: rgba(255, 107, 53, 0.4);

    --green: #2ecc71;
    --green-bright: #4ade80;
    --green-dim: rgba(46, 204, 113, 0.12);

    --red: #ef4444;
    --red-bright: #f87171;
    --red-dim: rgba(239, 68, 68, 0.12);

    --radius: 14px;
    --radius-sm: 8px;
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px rgba(255, 107, 53, 0.25);

    --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

html, body {
    height: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-primary);
    background: var(--bg-deep);
    background-image:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(255, 107, 53, 0.08), transparent 50%),
        radial-gradient(ellipse 60% 50% at 10% 110%, rgba(120, 30, 200, 0.05), transparent 50%),
        radial-gradient(circle at 50% 50%, transparent 0%, var(--bg-deep) 70%);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtle starfield */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 25% 30%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 75% 75%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 15% 80%, rgba(255, 255, 255, 0.35), transparent),
        radial-gradient(1px 1px at 85% 20%, rgba(255, 255, 255, 0.45), transparent),
        radial-gradient(1px 1px at 40% 90%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 90% 60%, rgba(255, 255, 255, 0.4), transparent);
    background-size: 800px 800px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

/* ============================================
   LOGIN
   ============================================ */

.login-wrap {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: linear-gradient(180deg, rgba(20, 20, 29, 0.95), rgba(10, 10, 15, 0.95));
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 3rem 2.5rem 2.5rem;
    box-shadow: var(--shadow-card), 0 0 60px rgba(255, 107, 53, 0.08);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--orange), transparent);
    opacity: 0.6;
}

.login-logo {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-logo .brand {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text-primary);
    text-transform: uppercase;
}

.login-logo .brand .accent {
    color: var(--orange);
}

.login-logo .tagline {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.login-form label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.6rem;
}

.login-form input[type="password"] {
    width: 100%;
    padding: 0.9rem 1rem;
    background: rgba(10, 10, 15, 0.6);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.login-form input[type="password"]:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px var(--orange-dim);
}

.login-form .btn-primary {
    width: 100%;
    margin-top: 1.25rem;
    padding: 0.95rem;
    background: linear-gradient(135deg, var(--orange), var(--orange-bright));
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.25);
}

.login-form .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(255, 107, 53, 0.4);
}

.login-form .btn-primary:active {
    transform: translateY(0);
}

.login-error {
    background: var(--red-dim);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--red-bright);
    padding: 0.7rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
    text-align: center;
}

/* ============================================
   APP SHELL
   ============================================ */

.app {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem 4rem;
}

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: linear-gradient(180deg, rgba(20, 20, 29, 0.7), rgba(14, 14, 20, 0.7));
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-card);
}

.app-header .brand {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.app-header .brand .accent {
    color: var(--orange);
}

.app-header .meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.app-header .meta .pulse {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.app-header .meta .pulse::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--green-bright);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--green-bright);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.app-header .logout-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.app-header .logout-link:hover {
    color: var(--orange);
    border-color: var(--orange);
}

/* ============================================
   TABS
   ============================================ */

.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0.4rem;
    background: rgba(20, 20, 29, 0.5);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(8px);
}

.tab-btn {
    flex: 1;
    padding: 0.85rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    position: relative;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
    color: var(--orange);
    background: var(--orange-dim);
    box-shadow: inset 0 0 0 1px rgba(255, 107, 53, 0.25);
}

.tab-btn .badge {
    margin-left: 0.5rem;
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    font-weight: 500;
}

.tab-btn.active .badge {
    background: rgba(255, 107, 53, 0.15);
    color: var(--orange-bright);
}

.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-panel.active {
    display: block;
}

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

/* ============================================
   HERO STATS
   ============================================ */

.hero {
    background: linear-gradient(135deg, rgba(20, 20, 29, 0.9), rgba(10, 10, 15, 0.9));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(ellipse at top right, var(--orange-dim), transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 2rem;
}

.hero-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.5rem;
}

.hero-value {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
}

.hero-value .currency {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-right: 0.5rem;
    font-weight: 500;
}

.hero-delta {
    margin-top: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.4rem 0.9rem;
    border-radius: 100px;
}

.hero-delta.positive {
    background: var(--green-dim);
    color: var(--green-bright);
}

.hero-delta.negative {
    background: var(--red-dim);
    color: var(--red-bright);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 2rem;
    text-align: right;
}

.hero-stat {
    min-width: 100px;
}

.hero-stat .label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
}

.hero-stat .value {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ============================================
   BOT GRID + CARDS
   ============================================ */

.section-title {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin: 1.5rem 0 0.75rem;
}

.bot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.bot-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.bot-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-strong);
    transform: translateY(-2px);
}

.bot-card .bot-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.bot-card .bot-name {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.bot-card .bot-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
    letter-spacing: 0.05em;
}

.bot-card .bot-status {
    width: 8px;
    height: 8px;
    background: var(--green-bright);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--green-bright);
    margin-top: 0.4rem;
}

.bot-card .bot-pnl {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.bot-card .bot-pnl.positive { color: var(--green-bright); }
.bot-card .bot-pnl.negative { color: var(--red-bright); }
.bot-card .bot-pnl.neutral { color: var(--text-secondary); }

.bot-card .bot-pct {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.bot-card .bot-meta {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.78rem;
}

.bot-card .bot-meta div {
    flex: 1;
}

.bot-card .bot-meta .label {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.65rem;
    margin-bottom: 0.15rem;
}

.bot-card .bot-meta .value {
    color: var(--text-primary);
    font-weight: 600;
    font-family: var(--font-mono);
}

/* ============================================
   CHART CARD
   ============================================ */

.chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-card);
}

.chart-card .chart-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.chart-card .chart-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
}

.chart-card .chart-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.chart-container {
    min-height: 280px;
    width: 100%;
}

/* ============================================
   TRADES TABLE
   ============================================ */

.table-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.table-card .table-head {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-card .table-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
}

.table-wrap {
    overflow-x: auto;
}

table.trades {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

table.trades thead th {
    text-align: left;
    padding: 0.85rem 1.5rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.015);
    border-bottom: 1px solid var(--border);
}

table.trades thead th.numeric { text-align: right; }

table.trades tbody td {
    padding: 0.85rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

table.trades tbody td.numeric {
    text-align: right;
    font-family: var(--font-mono);
}

table.trades tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

table.trades tbody tr:last-child td { border-bottom: none; }

.pill {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pill.long { background: var(--green-dim); color: var(--green-bright); }
.pill.short { background: var(--red-dim); color: var(--red-bright); }
.pill.open { background: var(--orange-dim); color: var(--orange-bright); }
.pill.closed { background: rgba(255, 255, 255, 0.06); color: var(--text-secondary); }

/* Trade row direction tinting — subtle background hint */
table.trades tbody tr.row-long { background: linear-gradient(90deg, rgba(46, 204, 113, 0.025), transparent 30%); }
table.trades tbody tr.row-short { background: linear-gradient(90deg, rgba(239, 68, 68, 0.025), transparent 30%); }
table.trades tbody tr.row-long:hover { background: linear-gradient(90deg, rgba(46, 204, 113, 0.05), rgba(255, 255, 255, 0.015)); }
table.trades tbody tr.row-short:hover { background: linear-gradient(90deg, rgba(239, 68, 68, 0.05), rgba(255, 255, 255, 0.015)); }

/* Unrealized PnL emphasis — !important to defeat cache + ensure override */
.unr-pos,
table.trades tbody td.unr-pos,
table.trades tbody td.numeric.unr-pos {
    color: var(--green-bright) !important;
    font-weight: 700 !important;
}

.unr-neg,
table.trades tbody td.unr-neg,
table.trades tbody td.numeric.unr-neg {
    color: var(--red-bright) !important;
    font-weight: 700 !important;
}

.unr-neutral,
table.trades tbody td.unr-neutral {
    color: var(--text-secondary) !important;
}

/* Same fix for profit cells in existing trade tables */
table.trades tbody td.profit-pos,
table.trades tbody td.numeric.profit-pos {
    color: var(--green-bright) !important;
    font-weight: 600;
}
table.trades tbody td.profit-neg,
table.trades tbody td.numeric.profit-neg {
    color: var(--red-bright) !important;
    font-weight: 600;
}

.profit-pos { color: var(--green-bright); }
.profit-neg { color: var(--red-bright); }
.profit-neutral { color: var(--text-secondary); }

/* ============================================
   STATS TAB
   ============================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    transition: all 0.2s ease;
}

.stat-card:hover {
    border-color: var(--border-strong);
    background: var(--bg-card-hover);
}

.stat-card .stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.6rem;
}

.stat-card .stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.stat-card .stat-value.positive { color: var(--green-bright); }
.stat-card .stat-value.negative { color: var(--red-bright); }
.stat-card .stat-value.warning { color: var(--orange-bright); }

.stat-card .stat-sub {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 800px) {
    .split-grid { grid-template-columns: 1fr; }
    .hero-content { grid-template-columns: 1fr; }
    .hero-stats { grid-template-columns: repeat(3, 1fr); text-align: left; gap: 1rem; }
    .hero-value { font-size: 2.4rem; }
    .app { padding: 1rem; }
    .tabs { flex-wrap: wrap; }
    .tab-btn { flex: 1 1 33%; font-size: 0.75rem; padding: 0.6rem; }
}

/* ============================================
   UPDATE BANNER
   ============================================ */

.update-banner {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.18), rgba(255, 107, 53, 0.10));
    border: 1px solid rgba(255, 107, 53, 0.35);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    box-shadow: 0 0 24px rgba(255, 107, 53, 0.15);
    overflow: hidden;
    position: relative;
}

.update-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--orange), transparent);
}

.update-banner-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.25rem;
}

.update-banner-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.update-banner-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.update-banner-text strong {
    color: var(--orange-bright);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-display);
    letter-spacing: 0.02em;
}

.update-banner-text span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.update-banner-link {
    color: var(--orange);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--orange);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.update-banner-link:hover {
    background: var(--orange);
    color: white;
    box-shadow: 0 0 16px rgba(255, 107, 53, 0.4);
}

.update-banner-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0.25rem;
    transition: color 0.2s ease;
}

.update-banner-close:hover {
    color: var(--text-primary);
}

@media (max-width: 700px) {
    .update-banner-content { flex-wrap: wrap; }
    .update-banner-text { width: 100%; order: 1; }
    .update-banner-icon { order: 0; }
    .update-banner-link { order: 2; }
    .update-banner-close { order: 3; }
}

/* ============================================
   LIQTRADER DETAILED STATS MODAL
   ============================================ */

.liq-stats-btn {
    background: linear-gradient(135deg, var(--orange), var(--orange-bright));
    color: white;
    border: none;
    padding: 0.6rem 1.1rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.25);
    transition: all 0.2s ease;
}

.liq-stats-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(255, 107, 53, 0.4);
}

.liq-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
}

.liq-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
}

.liq-modal-content {
    position: relative;
    max-width: 1200px;
    margin: 2rem auto;
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    max-height: calc(100vh - 4rem);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(255, 107, 53, 0.1);
}

.liq-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255, 107, 53, 0.08), transparent);
}

.liq-modal-head h2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--orange-bright);
    letter-spacing: 0.03em;
}

.liq-modal-close {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.liq-modal-close:hover {
    color: var(--orange);
    border-color: var(--orange);
}

.liq-modal-body {
    padding: 1.5rem 2rem 2rem;
    overflow-y: auto;
    flex: 1;
}

/* ============================================
   LOADING
   ============================================ */

.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 8px;
    margin-left: 4px;
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}
