@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --bg-primary: #0b0b0f;
    --bg-secondary: #111116;
    --bg-tertiary: #1a1a22;
    --text-primary: #e8e8f0;
    --text-secondary: #8a8a9a;
    --text-dim: #55556a;
    --accent-green: #00e89d;
    --accent-red: #ff3860;
    --accent-yellow: #f0c030;
    --accent-blue: #40a0ff;
    --accent-magenta: #c840ff;
    --border: #252530;
    --border-bright: #3a3a50;
    --shadow: rgba(0, 232, 157, 0.12);
    --glass: rgba(255, 255, 255, 0.03);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'JetBrains Mono', 'IBM Plex Mono', 'Courier New', monospace;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Subtle warm ambient — NOT cosmic, more like studio lighting */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 15% 10%, rgba(200, 64, 255, 0.04) 0%, transparent 40%),
        radial-gradient(ellipse at 85% 90%, rgba(0, 232, 157, 0.03) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 50%, rgba(240, 192, 48, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ============================================
   MERCURY BLOBS CANVAS
   ============================================ */
#mercuryCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* ============================================
   FLOATING CHARACTER IMAGES
   ============================================ */
.floating-character {
    pointer-events: none;
    z-index: 3;
    filter: brightness(1.2) contrast(1.05);
}

/* Levitating animation for pharaohs */
@keyframes levitate {
    0%, 100% {
        transform: translateY(0) rotate(4deg);
    }
    50% {
        transform: translateY(-15px) rotate(4deg);
    }
}

@keyframes levitate-reverse {
    0%, 100% {
        transform: translateY(0) rotate(-6deg);
    }
    50% {
        transform: translateY(-12px) rotate(-6deg);
    }
}

.floating-character.char-pharaoh-1 {
    position: fixed;
    bottom: -40px;
    left: -20px;
    width: 260px;
    opacity: 0.09;
    animation: levitate 4s ease-in-out infinite;
}

.floating-character.char-pharaoh-2 {
    position: fixed;
    top: 30px;
    right: -20px;
    width: 230px;
    opacity: 0.09;
    animation: levitate-reverse 5s ease-in-out infinite;
}

/* trans_floyd — positioned in header */
.header-character {
    position: absolute;
    top: 0;
    left: 30px;
    width: 280px;
    opacity: 0.25;
    z-index: 2;
    pointer-events: none;
    filter: brightness(1.2) contrast(1.05);
}

@media (max-width: 1200px) {
    .floating-character { opacity: 0.04 !important; }
    .header-character { opacity: 0.08 !important; }
}

@media (max-width: 768px) {
    .floating-character { display: none; }
    .header-character { display: none; }
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
    max-width: 1500px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 20px 30px;
    position: relative;
    z-index: 5;
}

/* ============================================
   SVG ICON BASE
   ============================================ */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
}

.icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.icon-lg {
    width: 1.3em;
    height: 1.3em;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    text-align: center;
    border: 1px solid var(--border-bright);
    padding: 30px;
    margin-bottom: 30px;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

/* Subtle gradient sweep — mercurome palette accent */
.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--accent-green) 20%, 
        var(--accent-blue) 35%,
        var(--accent-magenta) 50%, 
        var(--accent-yellow) 65%,
        var(--accent-green) 80%, 
        transparent 100%);
    opacity: 0.5;
}

.header::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.015), transparent);
    animation: headerSweep 6s ease-in-out infinite;
}

@keyframes headerSweep {
    0% { left: -40%; }
    100% { left: 140%; }
}

.header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.6em;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 4px;
    position: relative;
    z-index: 1;
    text-transform: uppercase;
}

.header h1 .icon {
    color: var(--accent-green);
    font-size: 0.85em;
    margin-right: 8px;
    filter: drop-shadow(0 0 8px rgba(0, 232, 157, 0.5));
}

.header p {
    color: var(--text-dim);
    font-size: 0.95em;
    position: relative;
    z-index: 1;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 8px;
}

/* ============================================
   WALLET SECTION
   ============================================ */
.wallet-section {
    border: 1px solid var(--border);
    padding: 20px;
    margin-bottom: 20px;
    background: var(--bg-secondary);
    border-radius: 2px;
}

.wallet-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.balance-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.balance-item {
    padding: 15px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 2px;
    transition: all 0.25s ease;
}

.balance-item:hover {
    border-color: var(--border-bright);
    background: rgba(26, 26, 34, 0.9);
}

.balance-label {
    font-size: 0.8em;
    color: var(--text-dim);
    text-transform: uppercase;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.balance-value {
    font-size: 1.5em;
    font-weight: 600;
    color: var(--accent-green);
}

/* ============================================
   BUTTONS
   ============================================ */
button {
    background: var(--accent-green);
    color: var(--bg-primary);
    border: none;
    padding: 12px 24px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

button:hover::before {
    width: 300px;
    height: 300px;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px var(--shadow);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

button:disabled:hover {
    box-shadow: none;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-bright);
    color: var(--accent-green);
}

.btn-danger {
    background: var(--accent-red);
    color: white;
}

/* ============================================
   MAIN GRID LAYOUT
   ============================================ */
.trading-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 20px;
    margin-bottom: 20px;
}

.main-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ============================================
   PRICE DISPLAY
   ============================================ */
.price-display {
    border: 1px solid rgba(200, 160, 40, 0.4);
    border-left: 3px solid var(--accent-yellow);
    padding: 30px;
    text-align: center;
    background: var(--bg-secondary);
    position: relative;
    border-radius: 2px;
    overflow: hidden;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

/* FIXED: Static spectral gold gradient that shifts based on cursor position */
.price-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at var(--gold-x, 50%) var(--gold-y, 50%), 
            rgba(255, 248, 200, 0.15) 0%,
            rgba(255, 235, 150, 0.08) 15%,
            rgba(240, 200, 80, 0.04) 30%,
            transparent 50%
        ),
        linear-gradient(135deg,
            rgba(255, 248, 200, 0.03) 0%,
            rgba(240, 210, 100, 0.05) 25%,
            rgba(200, 165, 50, 0.04) 50%,
            rgba(180, 140, 30, 0.03) 75%,
            rgba(255, 235, 150, 0.02) 100%
        );
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 2px;
}

.price-display:hover::before {
    opacity: 1;
}

.price-display:hover {
    border-color: rgba(240, 200, 60, 0.6);
    box-shadow:
        0 0 20px rgba(240, 192, 48, 0.06),
        inset 0 0 30px rgba(240, 192, 48, 0.02);
}

/* Bottom golden reflection */
.price-display::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 35%;
    background: linear-gradient(to top, rgba(200, 160, 40, 0.03) 0%, transparent 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.price-display:hover::after {
    opacity: 1;
}

.price-label {
    color: var(--accent-yellow);
    font-size: 0.9em;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-value {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5em;
    font-weight: 700;
    color: var(--accent-yellow);
    font-variant-numeric: tabular-nums;
}

.price-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.stat-item {
    text-align: center;
}

.stat-label {
    font-size: 0.75em;
    color: var(--text-dim);
    text-transform: uppercase;
}

.stat-value {
    font-size: 1.2em;
    font-weight: 600;
    margin-top: 5px;
}

/* ============================================
   ORDER BOOK
   ============================================ */
.orderbook-panel {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    max-height: 600px;
    border-radius: 2px;
}

.orderbook-header {
    padding: 15px;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.orderbook-content {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.orderbook-side {
    margin-bottom: 20px;
}

.orderbook-side-header {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    font-size: 0.75em;
    text-transform: uppercase;
    color: var(--text-dim);
    border-bottom: 1px solid var(--border);
}

.orderbook-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 8px;
    font-size: 0.85em;
    font-variant-numeric: tabular-nums;
    position: relative;
}

.orderbook-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: currentColor;
    opacity: 0.06;
    transition: width 0.3s;
}

.orderbook-row.buy {
    color: var(--accent-green);
}

.orderbook-row.sell {
    color: var(--accent-red);
}

.orderbook-row:hover {
    background: var(--bg-tertiary);
}

/* ============================================
   TRADING INTERFACE
   ============================================ */
.trading-interface {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.trade-panel {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 2px;
}

.trade-panel.buy {
    border-top: 3px solid var(--accent-green);
}

.trade-panel.sell {
    border-top: 3px solid var(--accent-red);
}

.trade-panel-header {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.trade-panel.buy .trade-panel-header {
    color: var(--accent-green);
}

.trade-panel.sell .trade-panel-header {
    color: var(--accent-red);
}

.order-type-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.order-type-btn {
    flex: 1;
    padding: 10px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.85em;
    border-radius: 2px;
}

.order-type-btn.active {
    background: var(--accent-green);
    color: var(--bg-primary);
    border-color: var(--accent-green);
}

.input-group {
    margin-bottom: 15px;
}

.input-label {
    display: block;
    font-size: 0.85em;
    color: var(--text-dim);
    margin-bottom: 8px;
    text-transform: uppercase;
}

input[type="number"] {
    width: 100%;
    padding: 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 1em;
    transition: border-color 0.2s;
    border-radius: 2px;
}

input[type="number"]:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 0 2px rgba(0, 232, 157, 0.08);
}

.estimate-display {
    background: var(--bg-tertiary);
    padding: 15px;
    border-radius: 2px;
    margin: 15px 0;
    font-size: 0.9em;
}

.estimate-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.estimate-row:last-child {
    margin-bottom: 0;
    padding-top: 8px;
    border-top: 1px solid var(--border);
    font-weight: 600;
}

.trade-btn {
    width: 100%;
    padding: 16px;
    font-size: 1.1em;
    margin-top: 15px;
}

.trade-btn.buy {
    background: var(--accent-green);
}

.trade-btn.sell {
    background: var(--accent-red);
}

/* ============================================
   TRADE HISTORY
   ============================================ */
.trade-history {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 2px;
}

.trade-history-header {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9em;
    margin-bottom: 15px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.trade-history-list {
    max-height: 300px;
    overflow-y: auto;
}

.trade-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    margin-bottom: 8px;
    background: var(--bg-tertiary);
    font-size: 0.85em;
    border-left: 3px solid transparent;
}

.trade-item.buy {
    border-left-color: var(--accent-green);
}

.trade-item.sell {
    border-left-color: var(--accent-red);
}

.trade-time {
    color: var(--text-dim);
    font-size: 0.9em;
}

/* ============================================
   MODAL
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-bright);
    padding: 30px;
    max-width: 450px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 4px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.modal-header {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4em;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.wallet-option {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid var(--border);
    background: var(--bg-tertiary);
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 2px;
}

.wallet-option:hover {
    background: var(--bg-primary);
    border-color: var(--accent-green);
    transform: translateX(4px);
}

.wallet-icon {
    width: 40px;
    height: 40px;
    margin-right: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2em;
    cursor: pointer;
    color: var(--text-dim);
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--accent-red);
}

/* ============================================
   STATUS INDICATORS
   ============================================ */
.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.status-connected {
    background: var(--accent-green);
    box-shadow: 0 0 8px var(--accent-green);
}

.status-disconnected {
    background: var(--accent-red);
    box-shadow: 0 0 8px var(--accent-red);
}

/* ============================================
   COUNTDOWN
   ============================================ */
.countdown-section {
    background: var(--bg-secondary);
    border: 1px solid rgba(200, 160, 40, 0.4);
    border-left: 3px solid var(--accent-yellow);
    padding: 20px;
    text-align: center;
    border-radius: 2px;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}

/* FIXED: Static spectral gold gradient that shifts based on cursor position */
.countdown-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at var(--gold-x, 50%) var(--gold-y, 50%), 
            rgba(255, 248, 200, 0.15) 0%,
            rgba(255, 235, 150, 0.08) 15%,
            rgba(240, 200, 80, 0.04) 30%,
            transparent 50%
        ),
        linear-gradient(135deg,
            rgba(255, 248, 200, 0.03) 0%,
            rgba(240, 210, 100, 0.05) 25%,
            rgba(200, 165, 50, 0.04) 50%,
            rgba(180, 140, 30, 0.03) 75%,
            rgba(255, 235, 150, 0.02) 100%
        );
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 2px;
}

.countdown-section:hover::before {
    opacity: 1;
}

.countdown-section:hover {
    border-color: rgba(240, 200, 60, 0.6);
    box-shadow:
        0 0 20px rgba(240, 192, 48, 0.06),
        inset 0 0 30px rgba(240, 192, 48, 0.02);
}

.countdown-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 35%;
    background: linear-gradient(to top, rgba(200, 160, 40, 0.03) 0%, transparent 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.countdown-section:hover::after {
    opacity: 1;
}

.countdown-label {
    font-size: 0.8em;
    color: var(--text-dim);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.countdown-value {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5em;
    font-weight: 700;
    color: var(--accent-yellow);
    font-variant-numeric: tabular-nums;
}

/* RESPONSIVE — TABLET */
@media (max-width: 1200px) {
    .trading-grid { grid-template-columns: 1fr; }
    .orderbook-panel { max-height: 400px; }
}

/* RESPONSIVE — MOBILE */
@media (max-width: 768px) {
    .container { padding: 10px 12px; }
    .header { padding: 15px; margin-bottom: 15px; }
    .header h1 { font-size: 1.4em; letter-spacing: 1px; }
    .header p { font-size: 0.75em; }
    .wallet-section { padding: 12px; }
    .wallet-status button { padding: 8px 14px; font-size: 0.8em; }
    .balance-display { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .balance-item { padding: 10px; }
    .balance-label { font-size: 0.7em; }
    .balance-value { font-size: 1.1em; }
    .price-value { font-size: 1.6em; }
    .price-stats { gap: 8px; margin-top: 10px; padding-top: 10px; }
    .stat-value { font-size: 1em; }
    .round-selector { gap: 6px; padding: 10px; }
    .round-tab { padding: 10px 8px; }
    .round-tab-title { font-size: 1em; }
    .round-tab-info { font-size: 0.7em; }
    .countdown-value { font-size: 1.5em; }
    .orderbook-panel { max-height: none; }
    .orderbook-header { padding: 10px; font-size: 0.8em; }
    .order-type-btn { padding: 8px; font-size: 0.8em; }
    .input-label { font-size: 0.75em; }
    input[type="number"] { padding: 10px; font-size: 0.9em; }
    .trading-interface { grid-template-columns: 1fr; }
    .price-stats { grid-template-columns: repeat(3, 1fr); }
    .modal-content { width: 95%; padding: 20px; max-height: 90vh; }
    .modal-header { font-size: 1.1em; letter-spacing: 0; }
    .trade-history { padding: 12px; }
    .settlement-card { padding: 12px; }
    .settlement-details { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

@media (max-width: 420px) {
    .header h1 { font-size: 1.1em; }
    .price-value { font-size: 1.3em; }
    .countdown-value { font-size: 1.3em; }
}


/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-bright);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in {
    animation: slideIn 0.5s ease-out;
}

/* ============================================
   UTILITIES
   ============================================ */
.text-green { color: var(--accent-green); }
.text-red { color: var(--accent-red); }
.text-yellow { color: var(--accent-yellow); }
.text-dim { color: var(--text-dim); }
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }

/* ============================================
   MICRO-INTERACTIONS & POLISH
   ============================================ */

/* Wallet status text glow */
.wallet-status span {
    letter-spacing: 0.5px;
}

/* Balance items — subtle left accent on hover */
.balance-item {
    border-left: 2px solid transparent;
    transition: all 0.25s ease;
}
.balance-item:hover {
    border-left-color: var(--accent-green);
    border-color: var(--border-bright);
    background: rgba(26, 26, 34, 0.9);
}

/* Round tabs — more interactive feel */
.round-tab {
    position: relative;
    overflow: hidden;
}
.round-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-green);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.round-tab:hover::after {
    width: 60%;
}
.round-tab.active::after {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
}

/* Orderbook rows — smooth highlight */
.orderbook-row {
    transition: all 0.15s ease;
    border-radius: 1px;
}
.orderbook-row:hover {
    background: rgba(255, 255, 255, 0.025);
    padding-left: 12px;
}

/* Trade items — accent bar animation */
.trade-item {
    transition: all 0.2s ease;
}
.trade-item:hover {
    background: rgba(255, 255, 255, 0.02);
    transform: translateX(3px);
}

/* Countdown — subtle pulse when low */
@keyframes countdownPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Modal backdrop shimmer */
.modal.active .modal-content {
    animation: modalIn 0.25s ease-out;
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Settlement cards — side stripe glow */
.settlement-card.won {
    border-left: 3px solid var(--accent-green);
}
.settlement-card.lost {
    border-left: 3px solid var(--accent-red);
}
.settlement-card.refund {
    border-left: 3px solid var(--accent-yellow);
}

/* Spread display — subtle border treatment */
.spread-display {
    border: 1px dashed var(--border);
    border-radius: 2px;
    transition: border-color 0.3s;
}
.spread-display:hover {
    border-color: var(--border-bright);
}

/* Stat values — tabular nums for alignment */
.stat-value {
    font-variant-numeric: tabular-nums;
}

/* Selection color */
::selection {
    background: rgba(0, 232, 157, 0.2);
    color: var(--text-primary);
}

/* Focus visible for accessibility */
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--accent-green);
    outline-offset: 2px;
}

/* Notification styling */
.notification {
    border-radius: 2px !important;
    border-left: 3px solid var(--accent-green) !important;
}

/* Main grid layout */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    grid-template-rows: auto auto 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
@media (max-width: 768px) {
    .main-grid {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
        gap: 12px;
    }
}
