/* ==========================================================================
   Richer components: coin logos, sparklines, balance card, KYC,
   status screens, bottom navigation. Loaded after app.css.
   ========================================================================== */

/* Coin logos (with symbol fallback) */
.coin { position: relative; overflow: hidden; }
.coin img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--panel); }
.coin.has-img { background: transparent; }
.coin.has-img .coin-sym { visibility: hidden; }

.sparkline { display: block; }
.icon-btn { display: inline-grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: var(--r); background: transparent; color: var(--text-3); cursor: pointer; }
.icon-btn:hover, .icon-btn.active { background: var(--panel-2); color: var(--text); }
.icon-btn svg { width: 15px; height: 15px; }

/* Balance card */
.balance-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; padding: 20px 22px 6px; }
.balance-head .label { color: var(--text-2); font-size: 13px; }
.balance-amount { font-size: 32px; font-weight: 600; letter-spacing: -.015em; margin: 4px 0 2px; line-height: 1.15; }
.balance-amount .unit { font-size: 14px; font-weight: 500; color: var(--text-2); margin-left: 4px; letter-spacing: 0; }
.pnl { display: flex; align-items: baseline; gap: 8px; font-size: 13px; flex-wrap: wrap; }
.balance-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.chart-head { display: flex; justify-content: space-between; padding: 14px 22px 4px; }
.chart-box.sm { height: 190px; padding: 0 12px 0 14px; }
.strip { display: flex; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 10px; }
.strip > * { flex: 1 1 0; min-width: 140px; display: flex; justify-content: space-between; gap: 8px; padding: 11px 22px; font-size: 12.5px; border-right: 1px solid var(--line); }
.strip > *:last-child { border-right: 0; }
.strip a:hover { background: var(--panel-2); }
.strip b { font-weight: 600; }

/* Allocation donut */
.donut-wrap { position: relative; width: 180px; height: 180px; margin: 0 auto; }
.donut-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }

/* Coin stats row */
.stats-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.stats-row > div { display: flex; flex-direction: column; gap: 2px; padding: 12px 18px; border-right: 1px solid var(--line); min-width: 0; }
.stats-row > div:last-child { border-right: 0; }
.stats-row b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Clickable rows */
.table-click tbody tr[data-href] { cursor: pointer; }

/* Notices (KYC banner) */
.notice { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--panel); flex-wrap: wrap; }
.notice-icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: var(--panel-3); }
.notice-icon svg { width: 17px; height: 17px; }
.notice-warning { border-color: color-mix(in srgb, var(--warn) 40%, var(--line)); }
.notice-warning .notice-icon { background: var(--warn-tint); color: var(--warn); }
.notice-info .notice-icon { background: var(--info-tint); color: var(--info); }
.notice-danger { border-color: color-mix(in srgb, var(--down) 40%, var(--line)); }
.notice-danger .notice-icon { background: var(--down-tint); color: var(--down); }

/* Status screens */
.status-card { padding: 40px 24px; text-align: center; }
.status-card h2 { font-size: 18px; margin-top: 14px; }
.status-card p { margin-top: 6px; }
.status-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto; }
.status-icon svg { width: 24px; height: 24px; }
.status-icon.success { background: var(--up-tint); color: var(--up); }
.status-icon.info { background: var(--info-tint); color: var(--info); }
.status-icon.warning { background: var(--warn-tint); color: var(--warn); }

/* KYC */
.kyc-steps { display: flex; gap: 8px; }
.kyc-step { flex: 1; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); color: var(--text-3); font-size: 13px; }
.kyc-step span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-weight: 600; border: 1px solid var(--line-2); flex-shrink: 0; }
.kyc-step.current { color: var(--text); border-color: var(--primary); }
.kyc-step.current span { background: var(--primary); border-color: var(--primary); color: #fff; }
.kyc-step.done { color: var(--text-2); }
.kyc-step.done span { background: var(--up); border-color: var(--up); color: #fff; }
.doc-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.doc-type { position: relative; }
.doc-type input { position: absolute; opacity: 0; pointer-events: none; }
.doc-type span { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--input); cursor: pointer; font-size: 13px; }
.doc-type span svg { width: 16px; height: 16px; color: var(--text-3); }
.doc-type input:checked + span { border-color: var(--primary); background: var(--primary-tint); }
.doc-type input:focus-visible + span { outline: 2px solid var(--primary); }
.upload { position: relative; display: grid; place-items: center; min-height: 128px; padding: 14px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); background: var(--input); cursor: pointer; text-align: center; overflow: hidden; }
.upload:hover { border-color: var(--primary); }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; pointer-events: none; }
.upload-empty svg { width: 22px; height: 22px; color: var(--text-3); margin-bottom: 4px; }
.upload img { max-height: 110px; border-radius: var(--r); pointer-events: none; }
.upload.filled .upload-empty { display: none; }
.upload-name { color: var(--text-2); margin-top: 6px; pointer-events: none; overflow-wrap: anywhere; }
.checklist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; color: var(--text-2); }
.checklist li { display: flex; gap: 8px; }
.checklist li::before { content: ""; width: 6px; height: 6px; margin-top: 8px; flex-shrink: 0; border-radius: 50%; background: var(--up); }

/* Admin KYC documents */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.doc-tile { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--input); }
.doc-tile a { display: grid; place-items: center; height: 170px; background: var(--panel-2); }
.doc-tile img { max-height: 170px; width: 100%; object-fit: contain; }
.doc-tile .cap { padding: 8px 10px; font-size: 12.5px; color: var(--text-2); border-top: 1px solid var(--line); }

/* ---------- Subtle gradient accents ---------- */
.brand img { height: 32px; width: auto; }
.logo-for-light { display: none; }
[data-theme="light"] .logo-for-dark { display: none; }
[data-theme="light"] .logo-for-light { display: block; }
.brand-mark { background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 75%, #fff), var(--primary) 55%, color-mix(in srgb, var(--primary) 80%, #000)); }
.btn-primary { background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 88%, #fff), var(--primary)); }
.btn-primary:hover { background: linear-gradient(180deg, var(--primary), color-mix(in srgb, var(--primary) 85%, #000)); }
.card-tint { background: linear-gradient(140deg, color-mix(in srgb, var(--primary) 10%, var(--panel)) 0%, var(--panel) 45%); }
.avatar { background: linear-gradient(140deg, var(--panel-3), var(--panel-2)); }
.auth { background: radial-gradient(70% 45% at 50% 0%, color-mix(in srgb, var(--primary) 13%, transparent), transparent 75%), var(--bg); }
.auth-top { background: transparent; border-bottom-color: transparent; }

/* ---------- Registration ---------- */
.auth-box-wide { max-width: 720px; }
.form-section { padding: 20px 22px; border-bottom: 1px solid var(--line); }
.form-section:last-of-type { border-bottom: 0; }
.form-section-head { display: flex; align-items: center; gap: 10px; font-weight: 600; margin-bottom: 14px; }
.form-section-head span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; color: #fff; background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 75%, #fff), var(--primary)); }
.strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 2px; }
.strength span { height: 3px; border-radius: 2px; background: var(--panel-3); }
.strength span.on.s1 { background: var(--down); }
.strength span.on.s2 { background: var(--warn); }
.strength span.on.s3, .strength span.on.s4 { background: var(--up); }
@media (max-width: 760px) { .form-section { padding: 16px; } }

/* ---------- Presence (online status) ---------- */
.presence { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-size: 12.5px; }
.presence-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); flex-shrink: 0; }
.presence.is-online .presence-dot { background: var(--up); box-shadow: 0 0 0 3px var(--up-tint); animation: presence-pulse 2s ease-in-out infinite; }
.presence-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.presence-state { color: var(--text-2); }
.presence.is-online .presence-state { color: var(--up); font-weight: 500; }
.presence-page { color: var(--text-3); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.presence.is-online .presence-page { color: var(--text); }
@keyframes presence-pulse { 50% { box-shadow: 0 0 0 5px transparent; } }

/* Empty select shows like a placeholder */
.select:has(option[value=""]:checked) { color: var(--text-3); }
.select option { color: var(--text); }

/* ---------- Notification bell ---------- */
.bell { position: relative; }
.bell-count { position: absolute; top: 3px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--down); color: #fff; font-size: 10px; font-weight: 600; display: grid; place-items: center; line-height: 1; }
.notif-menu { width: min(360px, calc(100vw - 24px)); padding: 0; overflow: hidden; }
.notif-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.notif-head .link { color: var(--primary); }
.dropdown-menu a.notif-item { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; border-radius: 0; border-bottom: 1px solid var(--line); color: var(--text); }
.notif-item.unread, .notif-row.unread { background: color-mix(in srgb, var(--primary) 6%, transparent); }
.notif-icon { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: var(--panel-3); }
.notif-icon svg { width: 15px; height: 15px; }
.tone-success { background: var(--up-tint); color: var(--up); }
.tone-danger { background: var(--down-tint); color: var(--down); }
.tone-warning { background: var(--warn-tint); color: var(--warn); }
.tone-info { background: var(--info-tint); color: var(--info); }
.notif-title { display: block; font-weight: 500; font-size: 13px; }
.notif-text { display: block; font-size: 12.5px; color: var(--text-2); white-space: normal; }
.notif-time { display: block; font-size: 11px; color: var(--text-3); margin-top: 2px; }
.dropdown-menu a.notif-all { justify-content: center; padding: 10px; color: var(--primary); font-size: 12.5px; border-radius: 0; }
.nav-link .count { background: var(--primary); color: #fff; }

/* ---------- Swap ---------- */
.swap-card { align-self: start; }
.swap-box { padding: 14px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--input); display: flex; flex-direction: column; gap: 6px; }
.swap-row { display: flex; align-items: center; gap: 10px; }
.swap-input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 24px; font-weight: 600; outline: none; padding: 2px 0; font-variant-numeric: tabular-nums; }
.swap-input::placeholder { color: var(--text-3); }
.swap-output { overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.swap-select { width: 110px; flex-shrink: 0; font-weight: 600; }
.swap-flip-wrap { display: flex; justify-content: center; margin: -10px 0; position: relative; z-index: 1; }
.swap-flip { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--panel); color: var(--text-2); display: grid; place-items: center; cursor: pointer; transition: transform .2s, color .15s; }
.swap-flip:hover { color: var(--primary); transform: rotate(180deg); }
.swap-flip svg { width: 16px; height: 16px; transform: rotate(90deg); }
.swap-pair { display: flex; }
.swap-pair .coin + .coin { margin-left: -8px; box-shadow: 0 0 0 2px var(--panel); }

/* ---------- Support thread ---------- */
.thread { display: flex; flex-direction: column; gap: 14px; padding: 18px; }
.msg { max-width: 82%; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel-2); padding: 12px 14px; }
.msg-mine { align-self: flex-end; background: color-mix(in srgb, var(--primary) 9%, var(--panel)); border-color: color-mix(in srgb, var(--primary) 25%, var(--line)); }
.msg-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 13px; }
.msg-body { white-space: pre-line; overflow-wrap: anywhere; line-height: 1.55; }
.msg-file { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--panel); max-width: 100%; }
.msg-file img { max-height: 140px; max-width: 220px; border-radius: var(--r); }
.msg-file svg { width: 16px; height: 16px; }
@media (max-width: 760px) { .msg { max-width: 100%; } .thread { padding: 14px; } }

/* ---------- Wider content on large screens ---------- */
.content { max-width: 1840px; margin: 0 auto; }

/* ---------- Dashboard grid (12 columns) ---------- */
.dash { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .span-6 { grid-column: span 6; }
.span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; }
@media (max-width: 1400px) { .dash .span-3 { grid-column: span 6; } }
@media (max-width: 1100px) { .dash .span-4, .dash .span-8, .dash .span-6 { grid-column: span 12; } }
@media (max-width: 600px) { .dash .span-3 { grid-column: span 12; } .dash { gap: 12px; } }

/* ---------- Live indicators ---------- */
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--up); display: inline-block; flex-shrink: 0; box-shadow: 0 0 0 3px var(--up-tint); animation: presence-pulse 2s ease-in-out infinite; }
.tick-up { animation: tick-up 1.2s ease-out; }
.tick-down { animation: tick-down 1.2s ease-out; }
@keyframes tick-up { 0% { color: var(--up); background: var(--up-tint); } 100% { background: transparent; } }
@keyframes tick-down { 0% { color: var(--down); background: var(--down-tint); } 100% { background: transparent; } }

/* ---------- Ticker ---------- */
.ticker { display: flex; align-items: center; overflow: hidden; padding: 0; }
.ticker-live { display: flex; align-items: center; gap: 8px; padding: 0 16px; height: 46px; font-size: 12px; font-weight: 600; color: var(--up); border-right: 1px solid var(--line); flex-shrink: 0; text-transform: uppercase; letter-spacing: .04em; }
.ticker-viewport { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-track { display: flex; width: max-content; animation: ticker 55s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: flex; align-items: center; gap: 8px; padding: 0 22px; height: 46px; white-space: nowrap; font-size: 13px; border-right: 1px solid var(--line); }
.ticker-item:hover { background: var(--panel-2); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Insight tiles ---------- */
.movers { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.mover { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.mover .change { margin-left: auto; }
.sentiment { margin-top: 6px; }
.gauge { position: relative; width: 150px; margin: 0 auto; text-align: center; color: var(--text); }
.gauge svg { width: 100%; }
.gauge-value { font-size: 22px; font-weight: 700; margin-top: -6px; font-variant-numeric: tabular-nums; }
.gauge-label { font-size: 12px; color: var(--text-2); }
.skeleton { border-radius: var(--r); background: linear-gradient(90deg, var(--panel-2) 25%, var(--panel-3) 50%, var(--panel-2) 75%); background-size: 200% 100%; animation: skeleton 1.4s ease-in-out infinite; }
@keyframes skeleton { to { background-position: -200% 0; } }
.tip { display: flex; gap: 10px; padding: 10px 12px; border-radius: var(--r); background: var(--primary-tint); color: var(--text-2); }
.tip svg { width: 16px; height: 16px; color: var(--primary); flex-shrink: 0; margin-top: 2px; }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.news-card { display: flex; gap: 12px; padding: 10px; border-radius: var(--r-lg); border: 1px solid var(--line); background: color-mix(in srgb, var(--panel-2) 60%, transparent); transition: border-color .15s, transform .15s; min-width: 0; }
.news-card:hover { border-color: var(--primary); transform: translateY(-1px); }
.news-img { width: 92px; height: 76px; flex-shrink: 0; border-radius: var(--r); background: var(--panel-3) center / cover no-repeat; display: grid; place-items: center; color: var(--text-3); }
.news-img svg { width: 20px; height: 20px; }
.news-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.news-meta { font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.news-title { font-weight: 600; font-size: 13.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-summary { font-size: 12px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 900px) { .news-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Glass design ---------- */
.glass-bg {
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(38% 46% at 12% 8%, color-mix(in srgb, var(--primary) 34%, transparent), transparent 70%),
        radial-gradient(32% 40% at 88% 14%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%),
        radial-gradient(40% 48% at 62% 96%, color-mix(in srgb, #7c5cff 22%, transparent), transparent 70%),
        radial-gradient(30% 36% at 4% 92%, color-mix(in srgb, var(--up) 12%, transparent), transparent 70%),
        var(--bg);
}
body.glass { background: transparent; }
.glass .card, .glass .sidebar, .glass .topbar, .glass .bottom-nav, .glass .notice {
    background: color-mix(in srgb, var(--panel) 58%, transparent);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    border-color: rgb(255 255 255 / .08);
}
.glass .card { box-shadow: 0 8px 32px rgb(0 0 0 / .18), inset 0 1px 0 rgb(255 255 255 / .05); }
.glass .card-tint { background: linear-gradient(140deg, color-mix(in srgb, var(--primary) 20%, transparent), color-mix(in srgb, var(--panel) 55%, transparent) 55%); }
.glass .table th, .glass .table td, .glass .card-header, .glass .strip, .glass .strip > *, .glass .activity-item, .glass .ticker-item, .glass .ticker-live { border-color: rgb(255 255 255 / .06); }
.glass .table tbody tr:hover, .glass .ticker-item:hover { background: rgb(255 255 255 / .04); }
.glass .input, .glass .select, .glass .textarea, .glass .swap-box, .glass .coin-option label, .glass .coin-option a { background: color-mix(in srgb, var(--input) 70%, transparent); }
[data-theme="light"] .glass .card, [data-theme="light"] .glass .sidebar, [data-theme="light"] .glass .topbar, [data-theme="light"] .glass .bottom-nav, [data-theme="light"] .glass .notice {
    background: rgb(255 255 255 / .62); border-color: rgb(16 24 40 / .07);
}
[data-theme="light"] .glass .card { box-shadow: 0 8px 30px rgb(16 24 40 / .06), inset 0 1px 0 rgb(255 255 255 / .6); }
[data-theme="light"] .glass .table th, [data-theme="light"] .glass .table td, [data-theme="light"] .glass .card-header, [data-theme="light"] .glass .activity-item { border-color: rgb(16 24 40 / .06); }
[data-theme="light"] .glass-bg {
    background:
        radial-gradient(38% 46% at 12% 8%, color-mix(in srgb, var(--primary) 20%, transparent), transparent 70%),
        radial-gradient(32% 40% at 88% 14%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
        radial-gradient(40% 48% at 62% 96%, color-mix(in srgb, #7c5cff 14%, transparent), transparent 70%),
        var(--bg);
}

/* ---------- System page ---------- */
.checks { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.check-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
.check-row:last-child { border-bottom: 0; }
.check-icon { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.check-icon svg { width: 12px; height: 12px; }
.check-icon.ok { background: var(--up-tint); color: var(--up); }
.check-icon.fail { background: var(--down-tint); color: var(--down); }
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

/* ---------- Logs ---------- */
.log-list { display: flex; flex-direction: column; }
.log-entry { border-bottom: 1px solid var(--line); }
.log-entry:last-child { border-bottom: 0; }
.log-entry summary { display: flex; align-items: flex-start; gap: 10px; padding: 10px 18px; cursor: pointer; list-style: none; }
.log-entry summary::-webkit-details-marker { display: none; }
.log-entry summary:hover { background: var(--panel-2); }
.log-entry .badge { width: 74px; justify-content: center; flex-shrink: 0; }
.log-time { font-size: 12px; color: var(--text-3); white-space: nowrap; flex-shrink: 0; padding-top: 1px; }
.log-msg { min-width: 0; overflow-wrap: anywhere; font-size: 13px; }
.log-details { margin: 0 18px 12px; padding: 12px; max-height: 360px; overflow: auto; border-radius: var(--r); background: var(--input); border: 1px solid var(--line); font-family: var(--mono); font-size: 11.5px; line-height: 1.55; color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 760px) { .log-entry summary { flex-wrap: wrap; padding: 10px 14px; } .log-msg { width: 100%; } }

/* ---------- Mandatory KYC lock ---------- */
.is-locked { overflow: hidden; }
.is-locked .shell, .is-locked .bottom-nav { filter: blur(3px); pointer-events: none; user-select: none; }
.modal-locked { background: rgb(5 7 10 / .55); z-index: 95; }

/* Settings: KYC mode options */
.doc-type .mode-option { flex-direction: column; align-items: flex-start; gap: 2px; height: 100%; }
.mode-option b { font-weight: 600; }
.mode-option small { font-size: 11.5px; color: var(--text-3); }

/* Bottom navigation (phones) */
.bottom-nav { display: none; }

@media (max-width: 760px) {
    .client .content { padding-bottom: 84px; }
    .bottom-nav {
        display: grid; grid-template-columns: repeat(5, 1fr);
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
        height: 62px; padding-bottom: env(safe-area-inset-bottom);
        background: var(--panel); border-top: 1px solid var(--line);
    }
    .bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--text-3); font-size: 10.5px; }
    .bottom-nav a svg { width: 19px; height: 19px; }
    .bottom-nav a.active { color: var(--primary); }
    .balance-head { padding: 16px 16px 4px; }
    .balance-amount { font-size: 26px; }
    .balance-actions { width: 100%; }
    .balance-actions .btn { flex: 1; }
    .chart-head { padding: 12px 16px 2px; }
    .strip > * { padding: 10px 16px; min-width: 100%; border-right: 0; border-bottom: 1px solid var(--line); }
    .strip > *:last-child { border-bottom: 0; }
    .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats-row > div:nth-child(2) { border-right: 0; }
    .stats-row > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .doc-types { grid-template-columns: minmax(0, 1fr); }
    .kyc-step { font-size: 11.5px; padding: 8px; }
    .notice .btn { width: 100%; }
}
