/* ── Design tokens ──────────────────────────────────────────────────────────── */
:root {
    --bg: #070c15;
    --surface: #0d1525;
    --surface-2: #111e32;
    --border: #1a2b45;
    --border-2: #233a5a;
    --text: #b8cce0;
    --text-muted: #425870;
    --text-bright: #e4eeff;
    --green: #00d68f;
    --green-dim: rgba(0, 214, 143, 0.12);
    --green-glow: rgba(0, 214, 143, 0.25);
    --red: #ff4d6d;
    --red-dim: rgba(255, 77, 109, 0.12);
    --amber: #f5a623;
    --amber-dim: rgba(245, 166, 35, 0.12);
    --blue: #4488ff;
    --blue-dim: rgba(68, 136, 255, 0.12);
    --mono: "IBM Plex Mono", "Courier New", monospace;
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    /* Bootstrap variable overrides */
    --bs-body-bg: var(--bg);
    --bs-body-color: var(--text);
    --bs-border-color: var(--border);
    --bs-card-bg: var(--surface);
    --bs-card-border-color: var(--border);
    --bs-card-border-radius: 12px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 13px;
    line-height: 1.5;
    min-height: 100vh;
}

/* ── Header ─────────────────────────────────────────────────────────────────── */
header {
    position: sticky;
    top: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 76px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(8px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-bright);
    white-space: nowrap;
}

.logo-mark {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--green), var(--blue));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 16px var(--green-glow);
    overflow: hidden;
}

.logo-mark img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

#logo-version {
    font-size: 10px;
    font-weight: 400;
    opacity: 0.35;
    letter-spacing: 0.05em;
    text-transform: none;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border-radius: 20px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text-muted);
    flex-shrink: 0;
}
.dot.live {
    background: var(--green);
    animation: glow 2s infinite;
}
.dot.open {
    background: var(--green);
}
.dot.closed {
    background: var(--red);
}
.dot.warn {
    background: var(--amber);
}

@keyframes glow {
    0%,
    100% {
        box-shadow: 0 0 0 0 var(--green-glow);
    }
    50% {
        box-shadow: 0 0 0 4px transparent;
    }
}

.clock {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.report-link {
    color: var(--green);
    text-decoration: none;
    border-color: rgba(0, 212, 150, 0.3);
}
.report-link:hover {
    background: rgba(0, 212, 150, 0.08);
    color: var(--green);
}

/* ── Cards ──────────────────────────────────────────────────────────────────── */
.card {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
    color: var(--text);
}

.card-body {
    padding: 18px 20px;
}

.card-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.big-number {
    font-family: var(--mono);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-bright);
    letter-spacing: -0.02em;
    line-height: 1;
}

.sub-text {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* ── Main container ─────────────────────────────────────────────────────────── */
.main-container {
    max-width: 1440px;
    margin: 0 auto;
}

/* ── Next market event card ─────────────────────────────────────────────────── */
#next-event {
    font-size: 18px;
    line-height: 1.3;
}

/* ── Position card ──────────────────────────────────────────────────────────── */
.pos-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.pos-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pos-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pos-symbol {
    font-family: var(--mono);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-bright);
    letter-spacing: 0.02em;
}

.hv-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.hv-badge.long {
    background: var(--green-dim);
    color: var(--green);
    border: 1px solid rgba(0, 214, 143, 0.3);
}
.hv-badge.short {
    background: var(--red-dim);
    color: var(--red);
    border: 1px solid rgba(255, 77, 109, 0.3);
}
.hv-badge.none {
    background: var(--surface-2);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.hv-badge-sm {
    font-size: 10px;
    padding: 3px 8px;
}

.btn-force-close {
    padding: 0 5px;
    align-self: stretch;
    background: transparent;
    border: 1px solid var(--red);
    border-radius: 6px;
    color: var(--red);
    cursor: pointer;
    opacity: 0.55;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.15s;
}
.btn-force-close:hover {
    opacity: 1;
}

.close-icon {
    font-size: 15px;
    user-select: none;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.stat-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.stat-value {
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-bright);
}
.stat-value.pos {
    color: var(--green);
}
.stat-value.neg {
    color: var(--red);
}
.stat-value.mut {
    color: var(--text-muted);
}

.unrealized-sub {
    font-size: 11px;
    opacity: 0.8;
}

.prog-row {
    display: flex;
    justify-content: space-between;
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.prog-track {
    height: 4px;
    background: var(--surface-2);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 16px;
}

.prog-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--blue), var(--amber));
    border-radius: 2px;
    transition: width 0.6s ease;
    min-width: 4px;
}

.targets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.target {
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--surface-2);
    border: 1px solid var(--border);
}
.target.hit {
    border-color: rgba(0, 214, 143, 0.4);
    background: var(--green-dim);
}
.target.stop {
    border-color: rgba(255, 77, 109, 0.3);
}
.target.time {
    border-color: rgba(245, 166, 35, 0.3);
}

.target-label {
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.target-value {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 700;
}
.target-value-amber {
    color: var(--amber);
}
.target-note {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 3px;
}

.no-pos {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 36px 0;
    gap: 8px;
    color: var(--text-muted);
}
.no-pos-icon {
    font-size: 32px;
    opacity: 0.35;
}

/* ── Bot status rows ────────────────────────────────────────────────────────── */
.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
    gap: 8px;
}
.stat-row:last-child {
    border-bottom: none;
}
.stat-row-label {
    font-size: 11px;
    color: var(--text-muted);
}
.stat-row-value {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-bright);
    text-align: right;
}

#halt-row {
    display: none;
}
.txt-red {
    color: var(--red);
}

/* ── Table cards ────────────────────────────────────────────────────────────── */
.table-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.table-title {
    padding: 13px 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    background: var(--surface-2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.table-subtitle {
    font-weight: 400;
    font-size: 9px;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

/* Bootstrap table-responsive — allow horizontal scroll without clipping rounded corners */
.table-card .table-responsive {
    border-radius: 0;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    padding: 9px 20px;
    text-align: left;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    background: var(--surface-2);
    white-space: nowrap;
}

td {
    padding: 10px 20px;
    border-bottom: 1px solid var(--border);
    font-family: var(--mono);
    font-size: 12px;
    vertical-align: middle;
    color: var(--text);
}

tr:last-child td {
    border-bottom: none;
}
tbody tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.empty td {
    text-align: center;
    padding: 28px;
    color: var(--text-muted);
    font-family: var(--sans);
    font-style: italic;
    font-size: 12px;
}

.positive {
    color: var(--green);
}
.negative {
    color: var(--red);
}
.muted {
    color: var(--text-muted);
}
.bright {
    color: var(--text-bright);
    font-weight: 700;
}
.pl-cell {
    font-weight: 600;
}
.nowrap {
    white-space: nowrap;
}

/* ── News table ─────────────────────────────────────────────────────────────── */
.news-headline {
    display: block;
    max-width: 440px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-bright);
    font-family: var(--sans);
    font-size: 12px;
    text-decoration: none;
}
a.news-headline:hover {
    color: var(--blue);
    text-decoration: underline;
}

.impact-bar {
    display: flex;
    align-items: center;
    gap: 6px;
}

.impact-fill {
    height: 3px;
    border-radius: 2px;
    min-width: 4px;
    max-width: 60px;
}
.impact-fill.bull {
    background: var(--green);
}
.impact-fill.bear {
    background: var(--red);
}

.impact-label {
    font-size: 11px;
}

.age-cell {
    color: var(--text-muted);
    font-size: 11px;
    white-space: nowrap;
}

/* ── Signals table ──────────────────────────────────────────────────────────── */
.price-mult-note {
    font-size: 10px;
    color: var(--amber);
}

.emoji-badge {
    cursor: default;
    font-size: 18px;
    line-height: 1;
}
.emoji-badge-sm {
    cursor: default;
    font-size: 13px;
    vertical-align: middle;
}
.emoji-badge-md {
    cursor: default;
    font-size: 14px;
    vertical-align: middle;
}

/* ── Startup overlay ────────────────────────────────────────────────────────── */
#startup-overlay {
    position: fixed;
    inset: 54px 0 0 0;
    z-index: 150;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    transition: opacity 0.4s ease;
}
#startup-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.spin-ring {
    width: 52px;
    height: 52px;
    border: 3px solid var(--border-2);
    border-top-color: var(--green);
    border-radius: 50%;
    animation: spin 0.85s linear infinite;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spin-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-bright);
    letter-spacing: 0.06em;
}
.spin-sub {
    font-size: 12px;
    color: var(--text-muted);
}

/* ── Hamburger menu ─────────────────────────────────────────────────────────── */
.hamburger-menu {
    position: relative;
}

.btn-hamburger {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--border-2);
    background: var(--surface-2);
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition:
        border-color 0.15s,
        color 0.15s,
        background 0.15s;
}
.btn-hamburger:hover,
.btn-hamburger.open {
    border-color: var(--blue);
    color: var(--blue);
}

.hamburger-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 7px);
    right: 0;
    min-width: 185px;
    background: var(--surface);
    border: 1px solid var(--border-2);
    border-radius: 10px;
    padding: 6px;
    z-index: 300;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}
.hamburger-dropdown.open {
    display: block;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 13px;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 13px;
    font-family: var(--sans);
    font-weight: 500;
    cursor: pointer;
    border-radius: 7px;
    text-align: left;
    transition:
        background 0.1s,
        color 0.1s;
    white-space: nowrap;
}
.menu-item:hover:not(:disabled) {
    background: var(--surface-2);
    color: var(--text-bright);
}
.menu-item:disabled {
    opacity: 0.38;
    cursor: not-allowed;
}
.menu-item.halt-active {
    color: var(--green);
}
.menu-item.halt-inactive {
    color: var(--red);
}

.menu-icon {
    width: 18px;
    text-align: center;
    font-size: 14px;
    flex-shrink: 0;
}

.menu-divider {
    height: 1px;
    background: var(--border);
    margin: 5px 7px;
}

/* ── Rendered markdown body ─────────────────────────────────────────────────── */
.md-body {
    font-size: 13px;
    line-height: 1.7;
    color: var(--text);
}
.md-body h1 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-bright);
    margin: 0 0 6px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.md-body h3 {
    font-size: 13px;
    font-weight: 700;
    color: var(--blue);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 22px 0 8px;
}
.md-body hr {
    border-color: var(--border);
    margin: 18px 0;
}
.md-body p {
    margin: 0 0 10px;
}
.md-body strong {
    color: var(--text-bright);
}
.md-body code {
    font-family: var(--mono);
    font-size: 11px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1px 5px;
    color: var(--amber);
}
.md-body pre {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 16px;
    margin: 10px 0 14px;
    overflow-x: auto;
}
.md-body pre code {
    background: none;
    border: none;
    padding: 0;
    font-size: 12px;
    color: var(--green);
}
.md-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0 14px;
    font-size: 12px;
}
.md-body th {
    padding: 7px 14px;
    text-align: left;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: var(--surface-2);
    border: 1px solid var(--border);
}
.md-body td {
    padding: 8px 14px;
    border: 1px solid var(--border);
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text);
}
.md-body tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.02);
}

/* ── Modal overrides ────────────────────────────────────────────────────────── */
.modal-content {
    background: var(--surface) !important;
    border: 1px solid var(--border-2) !important;
    border-radius: 14px !important;
    color: var(--text) !important;
}
.modal-header {
    border-bottom: 1px solid var(--border) !important;
    padding: 18px 22px 14px !important;
}
.modal-title {
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    color: var(--text-bright) !important;
}
.modal-body {
    padding: 20px 22px !important;
}
.modal-footer {
    border-top: 1px solid var(--border) !important;
    padding: 14px 22px 18px !important;
    justify-content: space-between !important;
}
.btn-close {
    filter: invert(1) opacity(0.5);
}

.modal-narrow {
    max-width: 360px;
}

.modal-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

/* ── Help modal expandable sections ─────────────────────────────────────────── */
.help-details {
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-top: 16px;
    overflow: hidden;
}
.help-details[open] {
    border-color: var(--border-2);
}
.help-summary {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 11px 14px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.help-summary::-webkit-details-marker {
    display: none;
}
.help-summary::before {
    content: "▶";
    font-size: 9px;
    transition: transform 0.15s;
    color: var(--text-muted);
}
.help-details[open] .help-summary::before {
    transform: rotate(90deg);
}
.help-details[open] .help-summary {
    color: var(--text);
    border-bottom: 1px solid var(--border);
}
.help-section-body {
    padding: 14px;
}

.help-loading {
    text-align: center;
    padding: 40px 0;
    color: var(--text-muted);
}

.loading-text {
    font-size: 12px;
    color: var(--text-muted);
}

.text-error {
    color: var(--red);
}

.symbol-chip {
    display: inline-block;
    font-family: var(--mono);
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 4px;
    margin: 2px 3px 2px 0;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
}
.symbol-chip.screener {
    border-color: var(--amber);
    color: var(--amber);
}

.watchlist-chips {
    margin-bottom: 4px;
}
.watchlist-label {
    margin-top: 10px;
    margin-bottom: 4px;
    font-size: 11px;
    color: var(--text-muted);
}
.watchlist-count {
    margin-top: 10px;
    font-size: 11px;
    color: var(--text-muted);
}

.tech-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 5px 0;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
}
.tech-row:last-child {
    border-bottom: none;
}
.tech-label {
    color: var(--text-muted);
}
.tech-value {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-bright);
}

/* ── Scan / halt modals ─────────────────────────────────────────────────────── */
.scan-code-input {
    width: 100%;
    padding: 10px 14px;
    background: var(--surface-2);
    border: 1px solid var(--border-2);
    border-radius: 8px;
    color: var(--text-bright);
    font-family: var(--mono);
    font-size: 18px;
    letter-spacing: 0.2em;
    text-align: center;
    outline: none;
    transition: border-color 0.15s;
}
.scan-code-input:focus {
    border-color: var(--blue);
}
.scan-code-input.error {
    border-color: var(--red);
    animation: shake 0.25s ease;
}

@keyframes shake {
    0%,
    100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-6px);
    }
    75% {
        transform: translateX(6px);
    }
}

.scan-status {
    margin-top: 10px;
    font-size: 12px;
    text-align: center;
    min-height: 18px;
}
.scan-status.ok {
    color: var(--green);
}
.scan-status.err {
    color: var(--red);
}

.btn-confirm {
    padding: 9px 24px;
    border-radius: 8px;
    border: none;
    background: var(--blue);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.15s;
}
.btn-confirm:hover:not(:disabled) {
    opacity: 0.85;
}
.btn-confirm:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

#fc-confirm-btn {
    background: var(--red);
    border-color: var(--red);
}

.btn-cancel {
    padding: 9px 20px;
    border-radius: 8px;
    border: 1px solid var(--border-2);
    background: transparent;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.btn-cancel:hover {
    color: var(--text);
    border-color: var(--border);
}

/* ── Symbol links ───────────────────────────────────────────────────────────── */
.sym-link {
    color: inherit;
    text-decoration: none;
}
.sym-link:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* ── Multi-position grid ────────────────────────────────────────────────────── */
.positions-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pos-card-inner {
    border: 1px solid var(--border-2);
    border-radius: 10px;
    padding: 16px 18px;
    background: var(--surface-2);
}

/* ── Trailing stop / API miss badges ────────────────────────────────────────── */
.trail-active {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--amber);
    background: var(--amber-dim);
    border: 1px solid rgba(245, 166, 35, 0.3);
    border-radius: 4px;
    padding: 2px 8px;
}

.api-warn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--red);
    background: var(--red-dim);
    border: 1px solid rgba(255, 77, 109, 0.4);
    border-radius: 4px;
    padding: 2px 8px;
    animation: pulse-warn 1.8s ease-in-out infinite;
}

@keyframes pulse-warn {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ── Responsive tweaks ──────────────────────────────────────────────────────── */
@media (max-width: 575px) {
    .targets {
        grid-template-columns: repeat(2, 1fr);
    }
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .big-number {
        font-size: 22px;
    }
    .clock {
        display: none;
    }
    header {
        padding: 0 14px;
    }
    .modal-dialog {
        margin: 1rem auto !important;
    }
}
