/* =====================================================================
   Capital Bloomer app: auth pages and client dashboard.
   Layers on top of site.css tokens. Flat fills, hairlines, no gradients.
   ===================================================================== */

.app-body, .auth-body { background: var(--paper); }
.app-body::before, .auth-body::before { display: none; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 7px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: 12.5px; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 0 16px; border-radius: 12px; font: inherit; font-size: 15px; color: var(--ink);
  background: var(--white); border: 1px solid var(--line-strong); outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.textarea { min-height: 110px; padding: 14px 16px; resize: vertical; }
.select { appearance: none; -webkit-appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234b5b56' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(var(--accent-rgb),0.15); }
.input[readonly] { background: var(--paper-2); color: var(--ink-3); }
.input-wrap { position: relative; }
.input-wrap .input { padding-left: 44px; }
.input-wrap > .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; pointer-events: none; }
.input-wrap .eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); }
.input-wrap .eye:hover { background: var(--paper-2); color: var(--ink); }
.input-wrap .prefix { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-family: var(--ff-mono); color: var(--ink-3); pointer-events: none; }
.input-wrap.money .input { padding-left: 34px; font-family: var(--ff-mono); font-size: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 6px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--ink-3); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green); }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; box-shadow: none; }
.file-drop { display: grid; gap: 8px; justify-items: center; text-align: center; padding: 26px 18px; border: 1.5px dashed var(--line-strong); border-radius: 14px; background: var(--white); cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.file-drop:hover, .file-drop.drag { border-color: var(--green); background: var(--green-soft); }
.file-drop input { display: none; }
.file-drop .i { width: 26px; height: 26px; color: var(--green-deep); }
.file-drop b { font-size: 14.5px; }
.file-drop span { font-size: 12.5px; color: var(--muted); }
.file-preview { margin-top: 10px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--paper-2); }
.file-preview img, .file-preview video { width: 100%; max-height: 260px; object-fit: contain; }

/* ---------- Auth layout ---------- */
.auth { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); min-height: 100vh; }
.auth-brand { position: relative; display: flex; flex-direction: column; gap: 32px; padding: 36px 44px; background: var(--forest); color: var(--paper); overflow: hidden; }
.auth-brand .brand img { height: 32px; filter: brightness(0) invert(1); }
.auth-brand .eyebrow { color: var(--accent-mid); }
.auth-brand .eyebrow::before { background: var(--accent-mid); }
.auth-brand h2 { font-size: clamp(30px, 3vw, 40px); line-height: 1.02; letter-spacing: -0.02em; max-width: 13ch; }
.auth-brand h2 em { font-style: italic; color: var(--accent-soft); font-weight: 400; }
.auth-brand p { color: rgba(var(--paper-rgb),0.7); max-width: 40ch; margin-top: 14px; font-size: 15px; }
.auth-mirror { display: grid; gap: 0; justify-items: stretch; margin-top: auto; }
.auth-mirror .mcard { max-width: none; }
.auth-mirror .mcard.expert { transform: none; }
.auth-mirror .mirror-link { max-width: none; height: 56px; }
.auth-brand-foot { font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(var(--paper-rgb),0.45); }
.auth-main { display: flex; flex-direction: column; padding: 24px clamp(20px, 5vw, 64px) 32px; }
.auth-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: clamp(24px, 6vh, 72px); }
.auth-topbar .brand { display: none; }
.auth-topbar .brand img { height: 30px; }
.auth-card { width: min(520px, 100%); margin: auto; }
.auth-card.wide { width: min(680px, 100%); }
.auth-card .eyebrow { margin-bottom: 12px; }
.auth-card h1 { font-size: clamp(32px, 3.6vw, 44px); letter-spacing: -0.02em; line-height: 1.02; }
.auth-card > p.lede { font-size: 16px; margin-top: 12px; margin-bottom: 30px; }
.auth-form { display: grid; gap: 18px; }
.auth-alt { margin-top: 26px; font-size: 14.5px; color: var(--ink-3); }
.auth-alt a { font-weight: 700; color: var(--green-deep); }
.auth-foot { margin-top: 40px; font-size: 12.5px; color: var(--muted); text-align: center; }
.auth-foot a { color: var(--ink-3); text-decoration: underline; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.row-between a { font-size: 13.5px; font-weight: 600; color: var(--green-deep); }
.success-panel { text-align: center; display: grid; justify-items: center; gap: 14px; }
.success-panel .ok { width: 76px; height: 76px; border-radius: 50%; background: var(--green-soft); color: var(--green-deep); display: grid; place-items: center; }
.success-panel .ok .i { width: 34px; height: 34px; }
.url-check { display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); font-family: var(--ff-mono); font-size: 13px; }
.url-check .i { width: 16px; height: 16px; color: var(--green-deep); }
@media (max-width: 960px) {
  .auth { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-topbar .brand { display: inline-flex; }
}

/* ---------- Dashboard layout ---------- */
.app { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.app-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--forest); color: var(--paper); padding: 22px 16px; z-index: 60; }
.app-side-top { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 22px; }
.app-side-top .brand img { height: 30px; filter: brightness(0) invert(1); }
.app-side-top .brand { min-width: 0; }
.app-side-top .wordmark { font-size: 18px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.auth-brand .wordmark { font-size: 22px; }
.auth-topbar .wordmark { font-size: 19px; }
.app-side-close { display: none; width: 40px; height: 40px; border-radius: 10px; place-items: center; background: rgba(var(--paper-rgb),0.08); }
.app-nav { display: grid; gap: 4px; }
.app-nav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; font-size: 14.5px; font-weight: 600; color: rgba(var(--paper-rgb),0.72); transition: background 0.2s, color 0.2s; }
.app-nav a .i { width: 19px; height: 19px; }
.app-nav a:hover { background: rgba(var(--paper-rgb),0.06); color: #fff; }
.app-nav a.active { background: var(--green); color: var(--on-accent); }
.nav-dot { position: absolute; right: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.app-side-bottom { margin-top: auto; border-top: 1px solid rgba(var(--paper-rgb),0.12); padding-top: 16px; display: grid; gap: 10px; }
.side-user { display: flex; align-items: center; gap: 12px; padding: 6px 8px; }
.side-user img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--forest-3); }
.side-user b { display: block; font-size: 14px; }
.side-user span { font-size: 12px; color: rgba(var(--paper-rgb),0.55); }
.side-logout { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; font-size: 14px; font-weight: 600; color: rgba(var(--paper-rgb),0.72); }
.side-logout:hover { background: rgba(var(--paper-rgb),0.06); color: #fff; }
.side-logout .i { width: 18px; height: 18px; }
.app-side-backdrop { display: none; position: fixed; inset: 0; background: rgba(var(--forest-rgb),0.55); z-index: 55; }

.app-main { display: flex; flex-direction: column; min-width: 0; }
.app-top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 16px; padding: 14px clamp(16px, 3vw, 36px); background: rgba(var(--paper-rgb),0.92); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.app-burger { display: none; width: 42px; height: 42px; border-radius: 10px; place-items: center; border: 1px solid var(--line-strong); background: var(--white); }
.app-top-title h1 { font-size: 24px; letter-spacing: -0.01em; }
.app-top-title p { font-size: 13px; color: var(--muted); margin-top: 2px; }
.app-top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn { position: relative; width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line-strong); background: var(--white); color: var(--ink); }
.icon-btn:hover { background: var(--paper-2); }
.notif-count { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--green); color: var(--on-accent); font-family: var(--ff-mono); font-size: 10.5px; display: grid; place-items: center; }
.notif { position: relative; }
.notif-panel { position: absolute; right: 0; top: calc(100% + 10px); width: min(360px, 90vw); background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 50px -24px rgba(var(--ink-rgb),0.4); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 0.2s, transform 0.2s, visibility 0.2s; max-height: 70vh; overflow-y: auto; }
.notif.open .notif-panel { opacity: 1; visibility: visible; transform: none; }
.notif-head { padding: 12px 16px; font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.notif-empty { padding: 22px 16px; font-size: 14px; color: var(--muted); }
.notif-item { padding: 12px 16px 12px 18px; border-bottom: 1px solid var(--line); border-left: 3px solid var(--line-strong); }
.notif-item:last-child { border-bottom: 0; }
.notif-item.type-success { border-left-color: var(--green); }
.notif-item.type-warning { border-left-color: var(--gold); }
.notif-item.type-alert { border-left-color: var(--danger); }
.notif-item b { display: block; font-size: 14px; }
.notif-item p { font-size: 13px; color: var(--ink-3); margin: 3px 0 4px; }
.notif-item time { font-family: var(--ff-mono); font-size: 11px; color: var(--muted); }
.top-user { display: inline-flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--white); font-size: 14px; font-weight: 600; }
.top-user img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.app-content { padding: clamp(18px, 3vw, 36px); display: grid; gap: 20px; align-content: start; }
.app-content > *, .grid-main > *, .stack > *, .pay-grid > *, .live-panel > * { min-width: 0; }
.app-foot { margin-top: auto; padding: 18px clamp(16px, 3vw, 36px); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--muted); }
.app-foot a { color: var(--ink-3); }

@media (max-width: 1020px) {
  .app { grid-template-columns: 1fr; }
  .app-side { position: fixed; left: 0; top: 0; width: min(300px, 86vw); transform: translateX(-100%); transition: transform 0.35s var(--ease); }
  .app-side.open { transform: none; }
  .app-side-close { display: grid; }
  .app-side-backdrop.show { display: block; }
  .app-burger { display: grid; }
  .top-user span { display: none; }
  .top-user { padding: 5px; }
}

/* ---------- Cards and blocks ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; }
.card-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card-head h2 { font-size: 20px; }
.card-head .sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.card-head .right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.card-body { padding: 20px; min-width: 0; }
.card-body.tight { padding: 0; }
.card.forest { background: var(--forest); color: var(--paper); border-color: transparent; }
.card.forest .card-head { border-bottom-color: rgba(var(--paper-rgb),0.12); }
.card.soft { background: var(--green-soft); border-color: transparent; }

.grid-main { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1100px) { .grid-main { grid-template-columns: 1fr; } }
.stack { display: grid; gap: 20px; }

/* Balance hero */
.balance-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; padding: 26px 28px; background: var(--forest); color: var(--paper); border-radius: 18px; align-items: end; }
.balance-card .lbl { font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-mid); }
.balance-card .amt { font-family: var(--ff-display); font-size: clamp(40px, 5vw, 60px); line-height: 1; letter-spacing: -0.02em; margin-top: 10px; }
.balance-card .amt small { font-size: 0.5em; vertical-align: super; margin-right: 2px; color: rgba(var(--paper-rgb),0.6); }
.balance-card .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.balance-card .meta span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; border: 1px solid rgba(var(--paper-rgb),0.18); font-size: 12.5px; }
.balance-card .meta .i { width: 14px; height: 14px; color: var(--accent-soft); }
.balance-card .actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 640px) { .balance-card { grid-template-columns: 1fr; } .balance-card .actions .btn { flex: 1; } }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 1100px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .stat-grid { grid-template-columns: 1fr; } .stat .val { font-size: 26px; } }
.stat { padding: 18px 20px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; display: grid; gap: 6px; min-width: 0; }
.stat .lbl { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); }
.stat .lbl .i { width: 16px; height: 16px; color: var(--green-deep); }
.stat .val { font-family: var(--ff-display); font-size: clamp(22px, 2vw, 30px); line-height: 1; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.stat .sub { font-size: 12px; color: var(--muted); }

/* Tables */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; min-width: 0; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 12px 20px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 13px 20px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl td.amt, .tbl td.muted, .tbl .badge, .tbl .coin { white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .amt { font-family: var(--ff-mono); font-weight: 600; }
.tbl .amt.neg { color: var(--danger); }
.tbl .amt.pos { color: var(--green-deep); }
.tbl .muted { color: var(--muted); }
.tbl .mono { font-size: 12.5px; color: var(--ink-3); }
.tbl.compact td { padding: 10px 12px; }
.tbl.compact .coin { white-space: normal; }
.tbl.compact td:last-child { text-align: right; }
.tbl.compact .badge { padding: 3px 8px; font-size: 10px; }
.tbl-empty { padding: 36px 20px; text-align: center; color: var(--muted); font-size: 14px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.active, .badge.approved { background: var(--green-soft); color: var(--green-deep); }
.badge.pending { background: var(--gold-soft); color: var(--gold-ink); }
.badge.rejected, .badge.denied { background: var(--danger-wash); color: var(--danger); }
.badge.expired { background: var(--paper-2); color: var(--ink-3); }
.coin { display: inline-flex; align-items: center; gap: 8px; text-transform: capitalize; }
.coin img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.coin .sym { font-family: var(--ff-mono); font-size: 11px; color: var(--muted); text-transform: uppercase; }

/* Plan cards on dashboard */
.plan-mini { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.plan-mini .icon-badge { width: 42px; height: 42px; border-radius: 12px; }
.plan-mini b { display: block; font-size: 14.5px; }
.plan-mini span { font-size: 12.5px; color: var(--muted); }
.plan-mini .right { margin-left: auto; text-align: right; }
.plan-mini .right .amt { font-family: var(--ff-mono); font-weight: 600; font-size: 15px; display: block; }

/* Referral box */
.ref-box { display: grid; gap: 10px; }
.ref-box > * { min-width: 0; }
.ref-link { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 12px; background: var(--white); border: 1px solid var(--line-strong); }
.ref-link code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--ff-mono); font-size: 13px; }
.ref-list { display: grid; gap: 8px; margin-top: 8px; }
.ref-list div { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.ref-list img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }

/* Dialogs */
dialog.dlg { border: 0; padding: 0; border-radius: 18px; width: min(520px, calc(100vw - 32px)); background: var(--white); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(var(--ink-rgb),0.5); }
dialog.dlg::backdrop { background: rgba(var(--forest-rgb),0.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.dlg-head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.dlg-head h2 { font-size: 22px; }
.dlg-head .close { margin-left: auto; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; }
.dlg-head .close:hover { background: var(--paper-2); }
.dlg-body { padding: 22px; display: grid; gap: 16px; }
.dlg-note { font-size: 13px; color: var(--ink-3); padding: 12px 14px; border-radius: 10px; background: var(--paper-2); }

/* Toasts and busy */
.toast-stack { position: fixed; right: 16px; bottom: 16px; z-index: 500; display: grid; gap: 8px; width: min(380px, calc(100vw - 32px)); }
.toast { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--ink); color: var(--paper); font-size: 14px; box-shadow: 0 20px 40px -20px rgba(var(--ink-rgb),0.6); animation: toast-in 0.35s var(--ease); }
.toast .i { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--accent-soft); }
.toast.err .i { color: var(--danger-mid); }
.toast.out { opacity: 0; transform: translateY(8px); transition: opacity 0.3s, transform 0.3s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px) } to { opacity: 1; transform: none } }
.busy { position: fixed; inset: 0; z-index: 600; display: grid; place-items: center; background: rgba(var(--paper-rgb),0.6); }
.busy[hidden] { display: none; }
.busy-box { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-radius: 14px; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 600; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(var(--paper-rgb),0.3); border-top-color: var(--accent-soft); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg) } }

/* Pay page */
.pay-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
@media (max-width: 960px) { .pay-grid { grid-template-columns: 1fr; } }
.pay-summary { display: grid; gap: 0; }
.pay-summary div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.pay-summary div:last-child { border-bottom: 0; }
.pay-summary div span:first-child { color: var(--ink-3); }
.pay-summary .mono { font-weight: 600; }
.addr-box { display: grid; gap: 10px; }
.addr { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 12px; background: var(--paper-2); border: 1px solid var(--line-strong); }
.addr code { flex: 1; min-width: 0; font-family: var(--ff-mono); font-size: 13px; word-break: break-all; white-space: normal; }
.qr { display: grid; place-items: center; padding: 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.qr img { width: 200px; height: 200px; }
.steps-list { display: grid; gap: 12px; counter-reset: s; }
.steps-list li { list-style: none; display: flex; align-items: flex-start; gap: 12px; font-size: 14.5px; color: var(--ink-2); }
.steps-list li > span { flex: 1; min-width: 0; }
.steps-list li::before { flex: none; counter-increment: s; content: counter(s); width: 28px; height: 28px; border-radius: 50%; background: var(--green-soft); color: var(--green-deep); font-family: var(--ff-mono); font-size: 12px; display: grid; place-items: center; }

/* KYC status and live panel */
.status-panel { display: flex; align-items: center; gap: 16px; min-width: 0; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--white); }
.status-panel .icon-badge { flex: none; }
.status-panel > div { min-width: 0; }
.status-panel b { display: block; font-size: 16px; }
.status-panel span { font-size: 13.5px; color: var(--ink-3); }
.live-panel { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: stretch; }
@media (max-width: 860px) { .live-panel { grid-template-columns: 1fr; } }
.live-stage { position: relative; border-radius: 16px; background: var(--forest); color: var(--paper); padding: 28px; min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end; }
.live-stage .kicker { display: inline-flex; align-items: center; gap: 8px; font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-soft); margin-bottom: 12px; }
.live-stage h2 { font-size: 30px; }
.live-stage p { color: rgba(var(--paper-rgb),0.7); max-width: 44ch; margin-top: 8px; }
.live-stage.locked { align-items: center; justify-content: center; text-align: center; }
.live-stage.locked .icon-badge { margin-bottom: 14px; }
.live-meta { display: grid; gap: 12px; }
.live-meta div { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); }
.live-meta .icon-badge { width: 40px; height: 40px; border-radius: 11px; }
.live-meta b { display: block; font-size: 14.5px; }
.live-meta span { font-size: 12.5px; color: var(--muted); }

/* Profile */
.profile-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.profile-head .pic { position: relative; width: 84px; height: 84px; border-radius: 50%; overflow: hidden; border: 3px solid var(--white); box-shadow: 0 0 0 1px var(--line-strong); cursor: pointer; }
.profile-head .pic img { width: 100%; height: 100%; object-fit: cover; }
.profile-head .pic span { position: absolute; inset: auto 0 0; padding: 4px 0; background: rgba(var(--forest-rgb),0.75); color: #fff; font-size: 10.5px; text-align: center; font-family: var(--ff-mono); letter-spacing: 0.08em; text-transform: uppercase; }
.profile-head h2 { font-size: 24px; }
.profile-head p { font-size: 13.5px; color: var(--muted); }
.tv-wrap { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #131722; min-height: 420px; }
.tv-wrap .tradingview-widget-container { height: 420px; }

@media (prefers-reduced-motion: reduce) { .toast, .spinner { animation: none !important; } }
