/* ── tokens ── */
:root {
    --bg: #12151a;
    --bg-elev: #161a21;
    --sidebar: #161a21;
    --card: #1c2128;
    --card-hover: #242a33;
    --border: rgba(255,255,255,.08);
    --text: #f4f5f7;
    --muted: #9aa3af;
    --muted2: #6b7280;
    --green: #13c45c;
    --green-dim: rgba(19,196,92,.15);
    --red: #ef4444;
    --red-dim: rgba(239,68,68,.18);
    --blue: #4a9eff;
    --radius: 12px;
    --radius-sm: 8px;
    --sidebar-w: 268px;
    --sidebar-collapsed: 68px;
    --topbar-h: 56px;
    --footer-h: 64px;
    --font: "Open Sans", system-ui, -apple-system, sans-serif;
}
html[data-theme="light"] {
    --bg: #f3f4f6;
    --bg-elev: #ffffff;
    --sidebar: #24262b;
    --card: #ffffff;
    --card-hover: #f8fafc;
    --border: rgba(15, 23, 42, 0.1);
    --text: #0f172a;
    --muted: #64748b;
    --muted2: #94a3b8;
    --green: #12a854;
    --green-dim: rgba(18,168,84,.12);
    --red: #dc2626;
    --red-dim: rgba(220,38,38,.12);
    --blue: #2563eb;
}
/* Light theme keeps a dark sidebar — remapped tokens so nav stays readable */
html[data-theme="light"] .sidebar {
    --text: #f4f5f7;
    --muted: #9aa3af;
    --muted2: #6b7280;
    --border: rgba(255, 255, 255, 0.08);
    --card: #2a2d33;
    --card-hover: #32363d;
    color: var(--text);
    border-right-color: rgba(255, 255, 255, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-weight: 400;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }

.app {
    display: grid;
    grid-template-columns: var(--sidebar-w) 1fr;
    min-height: 100vh;
    transition: grid-template-columns .22s ease;
}
.app.is-collapsed { grid-template-columns: var(--sidebar-collapsed) 1fr; }

/* ── sidebar ── */
.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    background: var(--sidebar);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 40;
}
.sb-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 10px;
    gap: 8px;
    min-height: 56px;
}
.logo {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    line-height: 0;
}
.logo img {
    display: block;
    height: 28px;
    width: auto;
    max-width: 148px;
    object-fit: contain;
}
.logo span { color: var(--green); }
.sb-toggle {
    width: 32px; height: 32px;
    display: grid; place-items: center;
    border-radius: 8px;
    color: var(--muted);
    flex-shrink: 0;
}
.sb-toggle:hover { background: rgba(255,255,255,.06); color: var(--text); }

.sb-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 12px 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.15) transparent;
}

.account-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border);
    margin-bottom: 12px;
    font-size: 13px;
}
.account-pill .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--green); flex-shrink: 0;
}
.account-pill .chev { margin-left: auto; color: var(--muted); font-size: 11px; }

.demo-account {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(19,196,92,.08);
    border: 1px solid rgba(19,196,92,.28);
    margin-bottom: 12px;
    text-align: left;
    width: 100%;
}
.demo-account.is-live {
    background: rgba(74,158,255,.08);
    border-color: rgba(74,158,255,.32);
}
.demo-account.is-live .demo-tag { color: #4a9eff; }
.demo-account-btn {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
    font: inherit;
}
.demo-account-btn:focus-visible {
    outline: 2px solid rgba(74,158,255,.55);
    outline-offset: 2px;
    border-radius: 6px;
}
.demo-account .demo-tag-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.demo-account .demo-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--green);
}
.demo-account .demo-chev {
    color: var(--muted);
    font-size: 11px;
    line-height: 1;
    transition: transform .15s ease;
}
.demo-account.is-open .demo-chev { transform: rotate(180deg); }
.demo-bal.is-bal-up {
    animation: cabBalFlashUp .7s ease;
}
.demo-bal.is-bal-down {
    animation: cabBalFlashDown .7s ease;
}
@keyframes cabBalFlashUp {
    0% { color: #13c45c; }
    100% { color: inherit; }
}
@keyframes cabBalFlashDown {
    0% { color: #ef4444; }
    100% { color: inherit; }
}
.demo-account .demo-bal {
    font-size: 16px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--text);
}
.demo-account .demo-user {
    font-size: 12px;
    color: var(--muted);
}
.demo-account .demo-note {
    margin-top: 4px;
    font-size: 10px;
    color: var(--muted2);
}
.demo-account-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px;
    border-radius: 10px;
    background: #151920;
    border: 1px solid #2a313a;
    box-shadow: 0 12px 28px rgba(0,0,0,.45);
}
.demo-account-menu[hidden] { display: none !important; }
.demo-account-option {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px 10px;
    align-items: center;
    width: 100%;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text);
    text-align: left;
    cursor: pointer;
    font: inherit;
}
.demo-account-option:hover { background: rgba(255,255,255,.06); }
.demo-account-option.is-active {
    background: rgba(19,196,92,.12);
}
.demo-account-option.is-live.is-active {
    background: rgba(74,158,255,.12);
}
.demo-account-option .opt-label {
    font-size: 12px;
    font-weight: 600;
}
.demo-account-option .opt-user {
    grid-column: 1;
    font-size: 11px;
    color: var(--muted);
}
.demo-account-option .opt-bal {
    grid-row: 1 / span 2;
    grid-column: 2;
    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--text);
}
.demo-account.is-switching { opacity: .65; pointer-events: none; }

.profile-block {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 6px;
    padding: 0 2px;
}
.avatar {
    width: 52px; height: 52px; border-radius: 12px;
    background: linear-gradient(135deg, #3a3f4b, #1e2430);
    display: grid; place-items: center;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    padding: 0;
    cursor: pointer;
    color: inherit;
    text-decoration: none;
}
a.avatar { color: inherit; }
.avatar:hover { border-color: rgba(255,255,255,.22); }
.avatar svg { width: 29px; height: 29px; opacity: .85; }
.avatar img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

/* Club Silver / Gold / Diamond — hexagon avatar + frame overlay (Free unchanged) */
.avatar.cab-avatar-club {
    position: relative;
    width: 56px;
    height: 64px;
    border-radius: 0;
    border: 0;
    background: transparent;
    overflow: visible;
}
.avatar.cab-avatar-club .cab-avatar-club-inner {
    position: absolute;
    /* Inset so photo sits inside the frame's hollow hex */
    inset: 9% 12% 9% 12%;
    display: grid;
    place-items: center;
    overflow: hidden;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    -webkit-clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: linear-gradient(135deg, #3a3f4b, #1e2430);
}
.avatar.cab-avatar-club .cab-avatar-club-inner img,
.avatar.cab-avatar-club .cab-avatar-club-inner svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.avatar.cab-avatar-club .cab-avatar-club-inner svg {
    width: 60%;
    height: 60%;
    place-self: center;
}
.avatar.cab-avatar-club .cab-avatar-club-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    z-index: 2;
}
.avatar.cab-avatar-club:hover {
    border-color: transparent;
    filter: brightness(1.06);
}

.profile-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }

/* Quick jump to Messages (paper plane) */
.profile-msg-btn {
    position: relative;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    margin-left: auto;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: var(--muted, #9aa4b2);
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}
.profile-msg-btn:hover,
.profile-msg-btn.is-active {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text, #f4f5f7);
}
html[data-theme="light"] .profile-msg-btn:hover,
html[data-theme="light"] .profile-msg-btn.is-active {
    background: rgba(0, 0, 0, 0.06);
}
.profile-msg-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #e11d48;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    pointer-events: none;
}
.profile-msg-badge[hidden] {
    display: none !important;
}
.app.is-collapsed .profile-msg-btn {
    display: none;
}
.cab-club-badge {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 0;
    text-decoration: none;
    line-height: 0;
}
.cab-club-badge img {
    display: block;
    width: 80px;
    height: auto;
    object-fit: contain;
}
.cab-club-badge.is-silver,
.cab-club-badge.is-gold,
.cab-club-badge.is-global,
.cab-club-badge.is-diamond {
    color: inherit;
    background: transparent;
    border: 0;
}
.cab-nav-club.is-silver {
    background: rgba(148, 163, 184, .22) !important;
    color: #e2e8f0 !important;
    border-color: transparent !important;
}
.cab-nav-club.is-gold,
.cab-nav-club.is-global {
    background: rgba(234, 179, 8, .22) !important;
    color: #facc15 !important;
    border-color: transparent !important;
}
.cab-nav-club.is-diamond {
    background: rgba(56, 189, 248, .22) !important;
    color: #7dd3fc !important;
    border-color: transparent !important;
}
.profile-meta .name {
    font-weight: 600;
    font-size: 14px;
    color: inherit;
    text-decoration: none;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.profile-meta .name:hover { color: var(--green); }
.profile-complete {
    display: block;
    width: 100%;
    margin: 0 0 10px;
    padding: 4px 2px 6px;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
    border-radius: 8px;
    font-family: inherit;
}
.profile-complete:hover {
    background: rgba(255,255,255,.03);
}
.profile-complete .pct-row {
    display: flex; justify-content: space-between;
    font-size: 11px; color: var(--muted);
}
.profile-complete .cta {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--green);
}
.pct-bar {
    height: 3px; border-radius: 2px;
    background: rgba(255,255,255,.1); margin-top: 4px; overflow: hidden;
}
.pct-bar > i {
    display: block; height: 100%;
    background: var(--green); border-radius: 2px;
}

/* Complete Profile modal */
.cab-profile-modal[hidden] { display: none !important; }
.cab-profile-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: 24px 16px;
}
.cab-profile-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}
.cab-profile-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    max-height: min(90vh, 760px);
    overflow: auto;
    background: #0f141e;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 24px 80px rgba(0,0,0,.55);
    padding: 36px 32px 28px;
    color: #fff;
}
.cab-profile-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 22px;
    line-height: 1;
    display: grid;
    place-items: center;
}
.cab-profile-modal-close:hover { background: rgba(255,255,255,.06); color: #fff; }
.cab-pf-section { margin-bottom: 32px; }
.cab-pf-section:last-of-type { margin-bottom: 28px; }
.cab-pf-q {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #fff;
}
.cab-pf-hint {
    margin: 0 0 18px;
    font-size: 13px;
    color: #9aa3af;
    line-height: 1.4;
}
.cab-pf-fields {
    display: grid;
    gap: 16px 20px;
}
.cab-pf-fields.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cab-pf-fields.is-1 { grid-template-columns: 1fr; }
.cab-pf-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.cab-pf-field label {
    font-size: 12px;
    color: #9aa3af;
}
.cab-pf-field input {
    width: 100%;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.28);
    background: transparent;
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    padding: 4px 0 8px;
    border-radius: 0;
    outline: none;
}
.cab-pf-field input:focus {
    border-bottom-color: var(--green);
}
.cab-pf-field input.is-invalid,
.cab-pf-field input.is-invalid:focus {
    border-bottom-color: #ef4444;
}
.cab-pf-field input::placeholder { color: transparent; }
.cab-pf-error {
    display: none;
    margin: 8px 0 0;
    font-size: 12px;
    font-weight: 500;
    color: #ef4444;
    line-height: 1.35;
}
.cab-pf-error.is-visible { display: block; }
.cab-pf-dob-wrap .cab-pf-error { grid-column: 1 / -1; }
.cab-pf-gender {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.cab-pf-gender-btn {
    padding: 16px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.28);
    background: transparent;
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    text-align: center;
}
.cab-pf-gender-btn:hover { border-color: rgba(255,255,255,.5); }
.cab-pf-gender-btn.is-active {
    border-color: var(--green);
    background: rgba(19, 196, 92, 0.1);
    color: #fff;
}
.cab-pf-foot {
    display: flex;
    align-items: center;
    gap: 12px;
}
.cab-pf-next {
    min-width: 96px;
    padding: 10px 28px;
    border-radius: 999px;
    background: #2a3140;
    color: #9aa3af;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    border: 0;
    cursor: pointer;
}
.cab-pf-next.is-ready {
    background: var(--green);
    color: #04140a;
}
.cab-pf-next:disabled { cursor: default; opacity: 0.85; }
@media (max-width: 560px) {
    .cab-profile-modal-dialog { padding: 28px 18px 22px; }
    .cab-pf-q { font-size: 18px; }
    .cab-pf-fields.is-3 { grid-template-columns: 1fr; }
}

/* Avatar upload modal */
.cab-avatar-modal[hidden] { display: none !important; }
.cab-avatar-modal {
    position: fixed;
    inset: 0;
    z-index: 210;
    display: grid;
    place-items: center;
    padding: 24px 16px;
}
.cab-avatar-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}
.cab-avatar-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(420px, 100%);
    background: #0f141e;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 24px 80px rgba(0,0,0,.55);
    padding: 28px 24px 22px;
    color: #fff;
    text-align: center;
}
.cab-avatar-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 22px;
    line-height: 1;
    display: grid;
    place-items: center;
}
.cab-avatar-modal-close:hover { background: rgba(255,255,255,.06); color: #fff; }
.cab-av-title {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
}
.cab-av-hint {
    margin: 0 auto 18px;
    max-width: 320px;
    font-size: 13px;
    color: #9aa3af;
    line-height: 1.4;
    text-align: center;
}
.cab-av-preview {
    width: 96px;
    height: 96px;
    margin: 0 auto 18px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: linear-gradient(135deg, #3a3f4b, #1e2430);
    display: grid;
    place-items: center;
}
.cab-av-preview.is-empty {
    background: rgba(19, 196, 92, .08);
    border: 1px solid rgba(19, 196, 92, .28);
}
.cab-av-preview img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.cab-av-preview .cab-av-none {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    letter-spacing: .04em;
}
.cab-av-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
}
.cab-av-file {
    position: absolute;
    width: 1px; height: 1px;
    opacity: 0;
    overflow: hidden;
}
.cab-av-delete,
.cab-av-pick,
.cab-av-save {
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    border: 0;
    cursor: pointer;
}
.cab-av-delete {
    background: rgba(239, 68, 68, .15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, .35);
}
.cab-av-delete:hover { background: rgba(239, 68, 68, .25); color: #fff; }
.cab-av-delete:disabled {
    opacity: 0.45;
    cursor: default;
}
.cab-av-pick {
    background: rgba(255,255,255,.08);
    color: #fff;
}
.cab-av-pick:hover { background: rgba(255,255,255,.12); }
.cab-av-save {
    background: #2a3140;
    color: #9aa3af;
}
.cab-av-save.is-ready {
    background: var(--green);
    color: #04140a;
}
.cab-av-save:disabled { cursor: default; opacity: 0.85; }
.cab-av-error {
    display: none;
    margin: 12px 0 0;
    font-size: 12px;
    font-weight: 500;
    color: #ef4444;
    text-align: center;
}
.cab-av-error.is-visible { display: block; }
.cab-av-meta {
    margin: 10px 0 0;
    font-size: 12px;
    color: #9aa3af;
    text-align: center;
}

/* Display settings modal */
.cab-display-modal[hidden] { display: none !important; }
.cab-display-modal {
    position: fixed;
    inset: 0;
    z-index: 210;
    display: grid;
    place-items: center;
    padding: 24px 16px;
}
.cab-display-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}
.cab-display-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
    max-height: min(90vh, 820px);
    overflow: auto;
    background: #161920;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 24px 80px rgba(0,0,0,.55);
    padding: 28px 24px 24px;
    color: #fff;
}
html[data-theme="light"] .cab-display-modal-dialog {
    background: #fff;
    color: #0f172a;
    border-color: rgba(15,23,42,.1);
}
.cab-display-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 22px;
    line-height: 1;
    display: grid;
    place-items: center;
}
.cab-display-modal-close:hover { background: rgba(255,255,255,.06); color: #fff; }
html[data-theme="light"] .cab-display-modal-close:hover { background: rgba(15,23,42,.06); color: #0f172a; }
.cab-disp-section { margin-bottom: 28px; }
.cab-disp-section:last-child { margin-bottom: 0; }
.cab-disp-h {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 700;
}
.cab-theme-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.cab-theme-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    background: transparent;
    border: 0;
    text-align: left;
    color: inherit;
    font-family: inherit;
    cursor: pointer;
}
.cab-theme-preview {
    position: relative;
    height: 112px;
    border-radius: 12px;
    border: 2px solid transparent;
    overflow: hidden;
    box-shadow: 0 1px 0 rgba(255,255,255,.04) inset;
}
.cab-theme-card.is-active .cab-theme-preview {
    border-color: #fff;
}
html[data-theme="light"] .cab-theme-card.is-active .cab-theme-preview {
    border-color: #0f172a;
}
.cab-theme-preview.is-light {
    background: #f4f5f7;
}
.cab-theme-preview.is-dark {
    background: #2a2f38;
}
.cab-theme-preview-ui {
    position: absolute;
    inset: 14px 14px 12px;
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 8px;
}
.cab-theme-preview-rail {
    border-radius: 4px;
    background: rgba(148,163,184,.35);
}
.cab-theme-preview.is-dark .cab-theme-preview-rail {
    background: rgba(255,255,255,.12);
}
.cab-theme-preview-main {
    border-radius: 6px;
    background: rgba(255,255,255,.92);
    padding: 8px 8px 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.cab-theme-preview.is-dark .cab-theme-preview-main {
    background: rgba(18,21,26,.92);
}
.cab-theme-preview-line {
    height: 4px;
    border-radius: 2px;
    background: rgba(148,163,184,.45);
    width: 70%;
}
.cab-theme-preview.is-dark .cab-theme-preview-line {
    background: rgba(255,255,255,.18);
}
.cab-theme-preview-chart {
    flex: 1;
    min-height: 36px;
}
.cab-theme-preview-chart svg {
    width: 100%;
    height: 100%;
    display: block;
}
.cab-theme-name {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}
html[data-theme="light"] .cab-theme-name { color: #0f172a; }
.cab-theme-card.is-active .cab-theme-name { font-weight: 700; }
.cab-theme-desc {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
    color: #9aa3af;
}
.cab-lang-box {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    padding: 16px;
}
html[data-theme="light"] .cab-lang-box {
    background: #f8fafc;
    border-color: rgba(15,23,42,.08);
}
.cab-lang-row {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 4px;
    background: transparent;
    border: 0;
    color: inherit;
    font-family: inherit;
    font-size: 15px;
    text-align: left;
    cursor: pointer;
}
.cab-lang-flag {
    font-size: 18px;
    line-height: 1;
}
.cab-lang-label { flex: 1; font-weight: 500; }
.cab-lang-chev {
    color: #9aa3af;
    font-size: 18px;
}
.cab-lang-menu {
    display: none;
    margin-top: 8px;
    max-height: 240px;
    overflow: auto;
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 8px;
}
.cab-lang-menu.is-open { display: block; }
.cab-lang-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 8px;
    border-radius: 8px;
    font-size: 14px;
    color: #e5e7eb;
}
html[data-theme="light"] .cab-lang-menu a { color: #0f172a; }
.cab-lang-menu a:hover { background: rgba(255,255,255,.06); }
html[data-theme="light"] .cab-lang-menu a:hover { background: rgba(15,23,42,.05); }
.cab-lang-menu a.is-active {
    color: var(--green);
    font-weight: 600;
}
.cab-tz-box {
    margin-top: 18px;
    padding: 14px 14px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.02);
}
html[data-theme="light"] .cab-tz-box {
    background: #f8fafc;
}
.cab-tz-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}
.cab-tz-hint {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.4;
}
.cab-tz-select {
    width: 100%;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid var(--border);
    background-color: #171b22;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239aa3af' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    color: var(--text);
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 36px 12px 12px;
    border-radius: 10px;
    cursor: pointer;
}
html[data-theme="light"] .cab-tz-select {
    background-color: #fff;
    color: #0f172a;
}
.cab-tz-select:focus {
    outline: none;
    border-color: rgba(19,196,92,.55);
}
.cab-disp-foot {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.08);
}
html[data-theme="light"] .cab-disp-foot {
    border-top-color: rgba(15,23,42,.08);
}
.cab-disp-ok {
    min-width: 96px;
    padding: 10px 28px;
    border-radius: 999px;
    background: var(--green);
    color: #04140a;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    border: 0;
    cursor: pointer;
}
.cab-disp-ok:hover { filter: brightness(1.06); }
@media (max-width: 720px) {
    .cab-theme-grid { grid-template-columns: 1fr; }
    .cab-theme-preview { height: 96px; }
}

/* Account modal */
.cab-account-modal[hidden] { display: none !important; }
.cab-account-modal {
    position: fixed;
    inset: 0;
    z-index: 210;
    display: grid;
    place-items: center;
    padding: 24px 16px;
}
.cab-account-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}
.cab-account-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(640px, 100%);
    max-height: min(92vh, 900px);
    overflow: auto;
    background: #161920;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 24px 80px rgba(0,0,0,.55);
    padding: 28px 24px 22px;
    color: #fff;
}
html[data-theme="light"] .cab-account-modal-dialog {
    background: #fff;
    color: #0f172a;
    border-color: rgba(15,23,42,.1);
}
.cab-account-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 22px;
    line-height: 1;
    display: grid;
    place-items: center;
}
.cab-account-modal-close:hover { background: rgba(255,255,255,.06); color: #fff; }
html[data-theme="light"] .cab-account-modal-close:hover { background: rgba(15,23,42,.06); color: #0f172a; }
.cab-acc-h {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 700;
}
.cab-acc-hint {
    margin: 0 0 20px;
    font-size: 13px;
    color: #9aa3af;
    line-height: 1.4;
}
.cab-acc-section {
    margin-bottom: 22px;
}
.cab-acc-section-title {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 650;
}
.cab-acc-avatar-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.cab-acc-avatar-preview {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: linear-gradient(135deg, #3a3f4b, #1e2430);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.cab-acc-avatar-preview.is-empty {
    background: rgba(19, 196, 92, .08);
    border: 1px solid rgba(19, 196, 92, .28);
}
.cab-acc-avatar-preview img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.cab-acc-avatar-preview .cab-av-none {
    font-size: 11px;
    font-weight: 600;
    color: #fff;
}
.cab-acc-avatar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.cab-acc-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.cab-acc-fields.is-1 { grid-template-columns: 1fr; }
.cab-acc-fields.is-2 { grid-template-columns: 1fr 1fr; }
.cab-acc-email-row {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}
.cab-acc-email-row .cab-acc-field {
    flex: 1;
    min-width: 0;
}
.cab-acc-email-add {
    flex-shrink: 0;
    margin-bottom: 2px;
    padding: 8px 18px;
    border-radius: 999px;
    background: #2a3140;
    color: #9aa3af;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    border: 0;
    cursor: default;
    opacity: .7;
}
html[data-theme="light"] .cab-acc-email-add {
    background: #e8ecf2;
    color: #64748b;
}
.cab-acc-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.cab-acc-field label {
    font-size: 12px;
    color: #9aa3af;
}
.cab-acc-field input {
    width: 100%;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.28);
    background: transparent;
    color: inherit;
    font-size: 15px;
    font-family: inherit;
    padding: 4px 0 8px;
    outline: none;
}
html[data-theme="light"] .cab-acc-field input {
    border-bottom-color: rgba(15,23,42,.22);
}
.cab-acc-field input:focus { border-bottom-color: var(--green); }
.cab-acc-error {
    display: none;
    margin: 8px 0 0;
    font-size: 12px;
    font-weight: 500;
    color: #ef4444;
}
.cab-acc-error.is-visible { display: block; }
.cab-acc-ok {
    margin: 8px 0 0;
    font-size: 12px;
    color: var(--green);
    display: none;
}
.cab-acc-ok.is-visible { display: block; }
.cab-conn-table-wrap {
    overflow: auto;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
}
html[data-theme="light"] .cab-conn-table-wrap {
    border-color: rgba(15,23,42,.1);
}
.cab-conn-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.cab-conn-table th,
.cab-conn-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,.06);
    white-space: nowrap;
}
html[data-theme="light"] .cab-conn-table th,
html[data-theme="light"] .cab-conn-table td {
    border-bottom-color: rgba(15,23,42,.06);
}
.cab-conn-table th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #9aa3af;
    background: rgba(255,255,255,.03);
}
.cab-conn-table tr:last-child td { border-bottom: 0; }
.cab-conn-empty {
    margin: 0;
    padding: 14px;
    font-size: 13px;
    color: #9aa3af;
}
.cab-acc-foot {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.08);
}
html[data-theme="light"] .cab-acc-foot {
    border-top-color: rgba(15,23,42,.08);
}
.cab-acc-cancel {
    min-width: 96px;
    padding: 10px 22px;
    border-radius: 999px;
    background: #2a3140;
    color: #9aa3af;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    border: 0;
    cursor: pointer;
}
html[data-theme="light"] .cab-acc-cancel {
    background: #e8ecf2;
    color: #64748b;
}
.cab-acc-cancel:hover { filter: brightness(1.06); }
.cab-acc-save {
    min-width: 96px;
    padding: 10px 28px;
    border-radius: 999px;
    background: var(--green);
    color: #04140a;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    border: 0;
    cursor: pointer;
}
.cab-acc-save:hover { filter: brightness(1.06); }
.cab-acc-save:disabled { opacity: .7; cursor: default; }

/* Notifications modal */
.cab-notify-modal[hidden] { display: none !important; }
.cab-notify-modal {
    position: fixed;
    inset: 0;
    z-index: 210;
    display: grid;
    place-items: center;
    padding: 24px 16px;
}
.cab-notify-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}
.cab-notify-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    max-height: min(92vh, 720px);
    overflow: auto;
    background: #161920;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 24px 80px rgba(0,0,0,.55);
    padding: 28px 24px 22px;
    color: #fff;
}
html[data-theme="light"] .cab-notify-modal-dialog {
    background: #fff;
    color: #0f172a;
    border-color: rgba(15,23,42,.1);
}
.cab-notify-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 22px;
    line-height: 1;
    display: grid;
    place-items: center;
}
.cab-notify-modal-close:hover { background: rgba(255,255,255,.06); color: #fff; }
html[data-theme="light"] .cab-notify-modal-close:hover { background: rgba(15,23,42,.06); color: #0f172a; }
.cab-notify-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}
.cab-notify-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 14px 4px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    cursor: pointer;
    position: relative;
}
html[data-theme="light"] .cab-notify-row {
    border-bottom-color: rgba(15,23,42,.06);
}
.cab-notify-row:last-child { border-bottom: 0; }
.cab-notify-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.cab-notify-copy strong {
    font-size: 14px;
    font-weight: 650;
}
.cab-notify-copy span {
    font-size: 12px;
    color: #9aa3af;
    line-height: 1.35;
}
.cab-notify-row input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.cab-notify-switch {
    width: 44px;
    height: 26px;
    border-radius: 999px;
    background: #2a3140;
    position: relative;
    flex-shrink: 0;
    transition: background .18s ease;
}
html[data-theme="light"] .cab-notify-switch {
    background: #d1d5db;
}
.cab-notify-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    transition: transform .18s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.cab-notify-row input:checked + .cab-notify-switch {
    background: var(--green);
}
.cab-notify-row input:checked + .cab-notify-switch::after {
    transform: translateX(18px);
}
.cab-notify-row input:focus-visible + .cab-notify-switch {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

@media (max-width: 640px) {
    .cab-acc-fields,
    .cab-acc-fields.is-2 { grid-template-columns: 1fr; }
    .cab-acc-email-row {
        flex-direction: column;
        align-items: stretch;
    }
    .cab-acc-email-add { align-self: flex-end; }
}

.club-card {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 10px; border-radius: 10px;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border);
    margin-bottom: 18px;
    font-size: 13px;
}
.club-card .ico {
    width: 28px; height: 28px; border-radius: 50%;
    background: linear-gradient(135deg, #8b6914, #c4a35a);
    display: grid; place-items: center; flex-shrink: 0;
}
.btn-subscribe {
    margin-left: auto;
    padding: 5px 12px;
    border-radius: 999px;
    background: #fff; color: #111;
    font-size: 12px; font-weight: 600;
    white-space: nowrap;
}
.btn-subscribe:hover { opacity: .9; }

.nav-main { list-style: none; margin: 0 0 12px; padding: 0; }
.nav-main a {
    display: flex; align-items: center; gap: 10px;
    padding: 7px 10px;
    border-radius: 10px;
    font-size: 18px; font-weight: 400;
    color: var(--text);
    position: relative;
}
.nav-main a:hover { background: rgba(255,255,255,.04); }
.nav-main a.is-active {
    background: rgba(255,255,255,.06);
}
.nav-main a.is-active::before {
    content: "";
    position: absolute;
    left: -12px; top: 6px; bottom: 6px;
    width: 3px; border-radius: 0 3px 3px 0;
    background: #3AC054;
    box-shadow:
        0 0 6px rgba(58, 192, 84, 0.85),
        0 0 14px rgba(58, 192, 84, 0.45),
        0 0 22px rgba(58, 192, 84, 0.25);
}
.nav-main .ico { display: none; width: 22px; height: 22px; flex-shrink: 0; opacity: .9; }

/* Last news accordion */
.nav-acc { margin: 0; }
.nav-acc-head {
    display: flex;
    align-items: stretch;
    gap: 2px;
}
.nav-acc-head > a {
    flex: 1;
    min-width: 0;
}
.nav-acc-chev {
    width: 36px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: var(--muted);
    cursor: pointer;
}
.nav-acc-chev:hover { background: rgba(255,255,255,.04); color: var(--text); }
.nav-acc-chev svg {
    width: 16px;
    height: 16px;
    transition: transform .18s ease;
}
.nav-acc.is-open .nav-acc-chev svg { transform: rotate(180deg); }
.nav-acc-panel {
    list-style: none;
    margin: 0 0 4px;
    padding: 2px 0 6px 12px;
    display: none;
}
.nav-acc.is-open .nav-acc-panel { display: block; }
.nav-acc-panel a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    position: relative;
}
.nav-acc-panel a:hover {
    color: var(--text);
    background: rgba(255,255,255,.04);
}
.nav-acc-panel a.is-active {
    color: var(--text);
    background: rgba(255,255,255,.06);
}
.nav-acc-panel a.is-active::before {
    content: "";
    position: absolute;
    left: -12px; top: 6px; bottom: 6px;
    width: 3px; border-radius: 0 3px 3px 0;
    background: #3AC054;
    box-shadow:
        0 0 6px rgba(58, 192, 84, 0.85),
        0 0 14px rgba(58, 192, 84, 0.45),
        0 0 22px rgba(58, 192, 84, 0.25);
}
.nav-acc-ico {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    object-fit: contain;
    opacity: .9;
}
.nav-acc-row {
    display: flex;
    align-items: center;
    gap: 2px;
    min-width: 0;
}
.nav-acc-row > a {
    flex: 1;
    min-width: 0;
}
.nav-acc-row > a span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nav-news-bell {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin-right: 4px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    opacity: .55;
    transition: color .15s, background .15s, opacity .15s;
}
.nav-news-bell:hover {
    color: var(--text);
    background: rgba(255,255,255,.06);
    opacity: 1;
}
.nav-news-bell.is-on {
    color: var(--green, #13c45c);
    opacity: 1;
}
.nav-news-bell.is-on:hover {
    color: var(--green, #13c45c);
    background: rgba(19,196,92,.1);
}
.nav-news-bell:disabled {
    opacity: .35;
    cursor: wait;
}
.nav-news-bell svg {
    display: block;
    pointer-events: none;
}
html[data-theme="light"] .nav-news-bell:hover {
    background: rgba(15,23,42,.06);
}
.app.is-collapsed .nav-news-bell {
    display: none;
}

.content-news {
    max-width: none;
    padding: 8px 16px 40px;
    flex: 1;
    min-height: 0;
    background: #12151a;
}
.cab-news-embed {
    --bg-page: #12151a;
    --accent: #14c45c;
    --primary: #14c45c;
    --border-accent: rgba(20, 196, 92, 0.2);
    background: #12151a;
    color: var(--text-primary, #fff);
    min-height: 50vh;
    max-width: none;
    width: 100%;
    margin: 0;
}
.cab-news-embed .header,
.cab-news-embed .header-spacer { display: none !important; }
/* Keep body text neutral; accent links (tags / read-more) in green */
.cab-news-embed a { color: #14c45c; }
.cab-news-embed a:hover { color: #14c45c; }
.cab-news-embed .read-more {
    color: #14c45c !important;
    font-weight: 600;
}
.cab-news-embed .news-text a,
.cab-news-embed [style*="#ffd700"],
.cab-news-embed [style*="color:#ffd700"],
.cab-news-embed [style*="color: #ffd700"] {
    color: #14c45c !important;
}
.cab-news-embed .author-avatar {
    border-color: #14c45c !important;
}
.cab-news-embed .related-post-card {
    border: none !important;
}
.cab-news-embed .back-to-news a {
    color: #14c45c !important;
    border-color: #14c45c !important;
}
.cab-news-embed .back-to-news a::before {
    background: #14c45c !important;
}
.cab-news-embed.is-article .pp-comments {
    max-width: 900px;
    margin: 28px auto 40px;
    padding: 0 16px;
    box-sizing: border-box;
}
.cab-news-embed .page-title,
.cab-news-embed .news-headline,
.cab-news-embed h2[style*="accent"] {
    color: #14c45c !important;
}
.cab-news-embed .news-footer-info {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}
/* Article view: public news.php is single-column (no masonry) */
.cab-news-embed.is-article #new-news-container {
    column-count: 1 !important;
    column-gap: 0 !important;
    max-width: 1400px;
    width: 100%;
}
.cab-news-embed.is-article .news-item {
    display: block !important;
    width: 100% !important;
    max-width: 900px !important;
    margin: 0 auto 20px auto !important;
    break-inside: auto;
}
.cab-news-embed.is-article .container {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
/* Public pages reserve space for fixed header — not needed in cabinet */
.cab-news-embed .page-title {
    margin-top: 8px !important;
    margin-bottom: 12px !important;
    font-size: 1.6rem !important;
}
.cab-news-embed .home-esports-section .page-title,
.cab-news-embed .shorts-section .page-title,
.cab-shorts-embed .page-title {
    color: var(--green) !important;
}
.cab-shorts-embed .cab-shorts-back-wrap {
    margin: 0 0 20px !important;
    display: flex;
    justify-content: center;
}
.cab-shorts-embed a.cab-shorts-back-btn,
.cab-shorts-embed a.load-more-btn.cab-shorts-back-btn {
    text-decoration: none !important;
    min-width: 140px;
    height: 40px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid rgba(19, 196, 92, 0.35);
    background: rgba(19, 196, 92, 0.1) !important;
    color: #13c45c !important;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 650;
    box-shadow: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.cab-shorts-embed a.cab-shorts-back-btn .btn-text {
    color: inherit !important;
}
.cab-shorts-embed a.cab-shorts-back-btn:hover {
    border-color: rgba(19, 196, 92, 0.55);
    background: rgba(19, 196, 92, 0.16) !important;
    color: #13c45c !important;
}
html[data-theme="light"] .cab-shorts-embed a.cab-shorts-back-btn {
    border-color: rgba(19, 196, 92, 0.4);
    background: rgba(19, 196, 92, 0.12) !important;
    color: #0f9f4a !important;
}
.cab-news-embed .shorts-more-btn {
    min-width: 120px;
    height: 40px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid rgba(19, 196, 92, 0.35);
    background: rgba(19, 196, 92, 0.1) !important;
    color: #13c45c !important;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 650;
    text-decoration: none !important;
    box-shadow: none !important;
    transform: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.cab-news-embed .shorts-more-btn .btn-text {
    color: inherit !important;
}
html[data-theme="light"] .cab-news-embed .shorts-more-btn {
    border-color: rgba(19, 196, 92, 0.4);
    background: rgba(19, 196, 92, 0.12) !important;
    color: #0f9f4a !important;
}
.cab-news-embed .shorts-more-btn:hover {
    border-color: rgba(19, 196, 92, 0.55);
    background: rgba(19, 196, 92, 0.16) !important;
    color: #13c45c !important;
    transform: none !important;
    box-shadow: none !important;
}
html[data-theme="light"] .cab-news-embed .shorts-more-btn:hover {
    color: #0f9f4a !important;
}
.cab-news-embed .page-subtitle {
    margin-bottom: 16px !important;
}
.cab-news-embed .search-section {
    margin: 0 auto 12px auto !important;
}
.cab-news-embed .search-form-main .search-wrapper {
    border-color: #14c45c;
}
.cab-news-embed .search-form-main .search-wrapper:focus-within {
    border-color: #14c45c;
    box-shadow: 0 5px 20px rgba(20, 196, 92, 0.3);
    background: rgba(20, 196, 92, 0.05);
}
.cab-news-embed .search-form-main .search-btn-main {
    border-color: #14c45c;
}
.cab-news-embed .search-form-main .search-btn-main::before {
    background: #14c45c;
}
.cab-news-embed .hero-slider-container {
    margin-top: 8px !important;
    margin-bottom: 24px !important;
}
.cab-news-embed #new-news-container {
    max-width: 1400px;
}
.cab-news-embed .news-item {
    max-width: 900px;
}
/* Video / Shorts: 4 columns on desktop (public page uses 6) */
@media (min-width: 768px) {
    .cab-shorts-embed #new-news-container {
        column-count: 4 !important;
        max-width: none;
    }
    .cab-shorts-embed #new-news-container .news-item {
        max-width: none;
    }
}
/* Match home markets pager (pp-pager) */
.cab-news-embed #pagination-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 22px 0 8px;
}
.cab-news-embed .pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
}
.cab-news-embed .pagination a,
.cab-news-embed .pagination strong {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.14);
    background: transparent !important;
    color: var(--muted) !important;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 650;
    text-decoration: none;
    box-shadow: none !important;
    transform: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color .15s ease, border-color .15s ease, background .15s ease;
}
html[data-theme="light"] .cab-news-embed .pagination a,
html[data-theme="light"] .cab-news-embed .pagination strong {
    border-color: rgba(15,23,42,.14);
}
.cab-news-embed .pagination a:hover {
    color: var(--text) !important;
    border-color: rgba(255,255,255,.28);
    background: rgba(255,255,255,.04) !important;
    transform: none !important;
    box-shadow: none !important;
}
html[data-theme="light"] .cab-news-embed .pagination a:hover {
    color: #0f172a !important;
    border-color: rgba(15,23,42,.28);
    background: rgba(15,23,42,.04) !important;
}
.cab-news-embed .pagination strong {
    border: 1px solid rgba(19, 196, 92, 0.28) !important;
    background: rgba(19, 196, 92, 0.08) !important;
    color: #13c45c !important;
}
html[data-theme="light"] .cab-news-embed .pagination strong {
    border: 1px solid rgba(19, 196, 92, 0.35) !important;
    background: rgba(19, 196, 92, 0.1) !important;
    color: #0f9f4a !important;
}
.cab-news-embed .pagination .prev,
.cab-news-embed .pagination .next {
    min-width: 40px;
    padding: 0 14px;
    font-size: 1.15rem;
    line-height: 1;
    letter-spacing: 0;
}
.cab-news-embed .pagination .prev {
    font-size: 0;
}
.cab-news-embed .pagination .prev::before {
    content: '‹';
    font-size: 1.15rem;
    line-height: 1;
}
.cab-news-embed .pagination .next {
    font-size: 0;
}
.cab-news-embed .pagination .next::before {
    content: '›';
    font-size: 1.15rem;
    line-height: 1;
}
.cab-news-embed .load-more-container {
    display: flex;
    justify-content: center;
    margin: 8px 0 0;
}
.cab-news-embed .load-more-btn {
    min-width: 160px;
    height: 40px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid rgba(19, 196, 92, 0.35);
    background: rgba(19, 196, 92, 0.1) !important;
    color: #13c45c !important;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 650;
    box-shadow: none !important;
    transform: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: color .15s ease, border-color .15s ease, background .15s ease, opacity .15s ease;
}
html[data-theme="light"] .cab-news-embed .load-more-btn {
    border-color: rgba(19, 196, 92, 0.4);
    background: rgba(19, 196, 92, 0.12) !important;
    color: #0f9f4a !important;
}
.cab-news-embed .load-more-btn:hover:not(:disabled) {
    border-color: rgba(19, 196, 92, 0.55);
    background: rgba(19, 196, 92, 0.16) !important;
    color: #13c45c !important;
    transform: none !important;
    box-shadow: none !important;
}
html[data-theme="light"] .cab-news-embed .load-more-btn:hover:not(:disabled) {
    color: #0f9f4a !important;
}
.cab-news-embed .load-more-btn:disabled {
    opacity: .45;
    cursor: default;
    transform: none !important;
}
.cab-news-embed .stats {
    width: 100%;
    text-align: center;
    font-size: 0.8125rem;
    color: var(--muted);
    margin: 4px 0 0;
}
/* Share — same pill language as pager / Load More (listing "Share" button) */
.cab-news-embed {
    --bg-elevated: #12151a;
}
.cab-news-embed .news-footer-info {
    gap: 8px;
}
.cab-news-embed .news-footer-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}
.cab-news-embed .cab-news-repost,
.cab-news-embed .cab-news-like {
    flex-shrink: 0;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    margin: 0;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.72);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.cab-news-embed .cab-news-like-count {
    font-size: 0.75rem;
    font-weight: 650;
    line-height: 1;
    min-width: 0.75rem;
}
.cab-news-embed .cab-news-repost:hover,
.cab-news-embed .cab-news-like:hover {
    color: #13c45c;
    border-color: rgba(19, 196, 92, 0.45);
    background: rgba(19, 196, 92, 0.1);
}
.cab-news-embed .cab-news-repost.is-saved,
.cab-news-embed .cab-news-like.is-liked {
    color: #13c45c;
    border-color: rgba(19, 196, 92, 0.5);
    background: rgba(19, 196, 92, 0.14);
}
.cab-news-embed .cab-news-like.is-liked svg {
    fill: currentColor;
}
.cab-news-embed .cab-news-repost.is-busy,
.cab-news-embed .cab-news-like.is-busy {
    opacity: 0.55;
    pointer-events: none;
}
html[data-theme="light"] .cab-news-embed .cab-news-repost,
html[data-theme="light"] .cab-news-embed .cab-news-like {
    border-color: rgba(0, 0, 0, 0.12);
    background: rgba(0, 0, 0, 0.03);
    color: rgba(0, 0, 0, 0.55);
}
html[data-theme="light"] .cab-news-embed .cab-news-repost:hover,
html[data-theme="light"] .cab-news-embed .cab-news-repost.is-saved,
html[data-theme="light"] .cab-news-embed .cab-news-like:hover,
html[data-theme="light"] .cab-news-embed .cab-news-like.is-liked {
    color: #0f9f4a;
    border-color: rgba(19, 196, 92, 0.45);
    background: rgba(19, 196, 92, 0.1);
}

/* Register gate for like / repost */
.cab-news-register-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: grid;
    place-items: center;
    padding: 16px;
}
.cab-news-register-modal[hidden] {
    display: none !important;
}
.cab-news-register-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}
.cab-news-register-dialog {
    position: relative;
    z-index: 1;
    width: min(360px, 100%);
    padding: 22px 20px 18px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #1a1f27;
    color: #e8eaed;
    text-align: center;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}
.cab-news-register-title {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 700;
}
.cab-news-register-text {
    margin: 0 0 16px;
    font-size: 0.92rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.78);
}
.cab-news-register-ok {
    min-width: 96px;
    height: 38px;
    padding: 0 18px;
    border: 0;
    border-radius: 10px;
    background: #13c45c;
    color: #04140a;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.cab-news-register-ok:hover {
    filter: brightness(1.06);
}
.cab-news-embed .news-item .share-btn,
.cab-news-embed .news-footer-info .share-btn {
    min-width: 40px;
    height: 36px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(19, 196, 92, 0.35);
    background: rgba(19, 196, 92, 0.1) !important;
    color: #13c45c !important;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 650;
    box-shadow: none !important;
    transform: none !important;
    overflow: visible;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.cab-news-embed .news-item .share-btn::before,
.cab-news-embed .news-footer-info .share-btn::before {
    display: none !important;
}
html[data-theme="light"] .cab-news-embed .news-item .share-btn,
html[data-theme="light"] .cab-news-embed .news-footer-info .share-btn {
    border-color: rgba(19, 196, 92, 0.4);
    background: rgba(19, 196, 92, 0.12) !important;
    color: #0f9f4a !important;
}
.cab-news-embed .news-item .share-btn:hover,
.cab-news-embed .news-footer-info .share-btn:hover,
.cab-news-embed .social-share.active .news-item .share-btn {
    border-color: rgba(19, 196, 92, 0.55);
    background: rgba(19, 196, 92, 0.16) !important;
    color: #13c45c !important;
    transform: none !important;
}
html[data-theme="light"] .cab-news-embed .news-item .share-btn:hover,
html[data-theme="light"] .cab-news-embed .news-footer-info .share-btn:hover {
    color: #0f9f4a !important;
}
.cab-news-embed .news-item .share-btn:active,
.cab-news-embed .news-footer-info .share-btn:active {
    transform: none !important;
}
/* Article page: social icon row (Share:) */
.cab-news-embed .social-share,
.cab-news-embed.is-article .social-share {
    border: none !important;
}
.cab-news-embed .container > .social-share .share-btn,
.cab-news-embed.is-article .container .social-share .share-btn {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    color: #f4f5f7 !important;
    font-size: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    overflow: visible !important;
}
.cab-news-embed .container > .social-share .share-btn svg,
.cab-news-embed.is-article .container .social-share .share-btn svg {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    display: block !important;
    flex-shrink: 0;
}
.cab-news-embed .container > .social-share .share-btn:hover,
.cab-news-embed.is-article .container .social-share .share-btn:hover {
    transform: none !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
    color: #f4f5f7 !important;
    box-shadow: none !important;
}
.cab-news-embed .container > .social-share .share-label,
.cab-news-embed.is-article .container .social-share .share-label {
    color: #14c45c !important;
    font-size: 1rem;
}
.cab-news-embed .share-menu {
    background: #12151a !important;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0,0,0,.45);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
html[data-theme="light"] .cab-news-embed .share-menu {
    background: #12151a !important;
    border-color: rgba(255,255,255,.12);
}
.cab-news-embed .share-item,
.cab-news-embed .share-item span {
    color: #f4f5f7 !important;
}
.cab-news-embed .share-close-btn {
    color: #9aa3af !important;
}
.cab-news-error {
    padding: 24px;
    color: var(--muted);
    font-size: 14px;
}
.main.is-news .content-news,
.main.is-shorts .content-news { padding: 8px 16px 40px; }

.more-label {
    font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
    color: var(--muted2); padding: 0 12px 8px;
}
.nav-more { list-style: none; margin: 0; padding: 0; }
.nav-more a {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 13.5px;
    color: var(--muted);
}
.nav-more a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.nav-more a.is-active { color: var(--text); }
.nav-more .ico { width: 18px; height: 18px; flex-shrink: 0; opacity: .85; }
.badge {
    margin-left: auto;
    font-size: 10px; font-weight: 700;
    padding: 2px 7px; border-radius: 999px;
    background: var(--green); color: #0a0f0c;
}
.badge.outline {
    background: transparent;
    border: 1px solid var(--green);
    color: var(--green);
}
.nav-wallet-badge {
    background: #ef4444;
    color: #fff;
    min-width: 18px;
    text-align: center;
}
.nav-more a.is-disabled { opacity: .4; pointer-events: none; }

.sb-foot {
    padding: 12px;
    border-top: 1px solid var(--border);
}
.btn-deposit {
    display: block; width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(19, 196, 92, .08);
    border: 1px solid rgba(19, 196, 92, .28);
    color: #fff;
    font-weight: 600; font-size: 14px;
    text-align: center;
}
.btn-deposit:hover { filter: brightness(1.06); background: rgba(19, 196, 92, .14); }

/* collapsed sidebar */
.app.is-collapsed .logo,
.app.is-collapsed .demo-account,
.app.is-collapsed .account-pill,
.app.is-collapsed .profile-meta,
.app.is-collapsed .profile-complete,
.app.is-collapsed .more-label,
.app.is-collapsed .nav-main a span,
.app.is-collapsed .nav-more a span,
.app.is-collapsed .nav-more .badge,
.app.is-collapsed .btn-deposit span,
.app.is-collapsed .sb-foot .btn-deposit { display: none; }
.app.is-collapsed .nav-main .ico { display: block; }
.app.is-collapsed .nav-more { display: none; }
.app.is-collapsed .nav-acc-chev,
.app.is-collapsed .nav-acc-panel { display: none !important; }
.app.is-collapsed .nav-acc-head > a { justify-content: center; padding: 10px; }
.app.is-collapsed .profile-block { justify-content: center; padding: 0; }
.app.is-collapsed .sb-head { justify-content: center; padding: 16px 0 8px; }
.app.is-collapsed .sb-scroll { padding: 0 8px 12px; }
.app.is-collapsed .nav-main a {
    justify-content: center; padding: 12px 0; font-size: 0;
}
.app.is-collapsed .nav-main a.is-active::before { left: 0; }
.app.is-collapsed .sb-status {
    display: flex; justify-content: center; margin-bottom: 10px;
}
.app.is-collapsed .sb-foot {
    display: flex; justify-content: center; padding: 12px 0;
}
.app.is-collapsed .sb-settings-only { display: flex; }
.sb-status { display: none; }
.sb-settings-only {
    display: none;
    margin-top: auto;
    justify-content: center;
    padding: 8px;
}
.sb-settings-only a {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border-radius: 10px; color: var(--muted);
}
.sb-settings-only a.is-active,
.sb-settings-only a:hover { color: var(--text); background: rgba(255,255,255,.06); }

/* ── main ── */
.main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100vh;
}
.topbar {
    position: sticky; top: 0; z-index: 30;
    height: var(--topbar-h);
    display: flex; align-items: center; gap: 16px;
    padding: 0 20px;
    background: rgba(18,21,26,.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.search {
    flex: 1; max-width: 420px; margin: 0 auto;
    display: flex; align-items: center; gap: 8px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 14px;
    color: var(--muted);
}
.search:focus-within { border-color: #14c45c; }
.search input {
    flex: 1; border: 0; outline: 0;
    background: transparent; color: var(--text);
    font-size: 14px; font-family: inherit;
}
.search input::placeholder { color: var(--muted2); }

.cab-search-page { max-width: 920px; margin: 0 auto; }
.cab-search-head { margin-bottom: 22px; }
.cab-search-head h1 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 650;
    letter-spacing: -0.02em;
    color: var(--text);
}
.cab-search-head p {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}
.cab-search-section { margin-bottom: 28px; }
.cab-search-section h2 {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 8px;
}
.cab-search-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(20, 196, 92, 0.15);
    color: #14c45c;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0;
    text-transform: none;
}
.cab-search-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.cab-search-row {
    display: block;
    padding: 14px 16px;
    background: #12151a;
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s ease, background .15s ease;
}
.cab-search-row:hover {
    border-color: rgba(20, 196, 92, 0.45);
    background: #151922;
}
.cab-search-row-title {
    display: block;
    font-size: 14px;
    font-weight: 550;
    line-height: 1.45;
    color: var(--text);
}
.cab-search-row-meta {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--muted);
}
.cab-search-empty {
    padding: 36px 16px;
    text-align: center;
    color: var(--muted);
}
.cab-search-empty strong {
    display: block;
    margin-bottom: 6px;
    font-size: 16px;
    color: var(--text);
}
.cab-search-empty p {
    margin: 0;
    font-size: 13px;
}
.cab-search-kind {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #14c45c;
    margin-right: 8px;
}
/* Search pager = portfolio circles (not rounded squares) */
.cab-search-page .cab-pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 28px 0 4px;
}
.cab-search-page .cab-pagination .pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
}
.cab-search-page .cab-pagination .pagination a,
.cab-search-page .cab-pagination .pagination strong {
    min-width: 40px;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.14);
    background: transparent !important;
    color: var(--muted) !important;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 650;
    text-decoration: none;
    box-shadow: none !important;
    outline: none !important;
    transform: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color .15s ease, border-color .15s ease, background .15s ease;
}
html[data-theme="light"] .cab-search-page .cab-pagination .pagination a,
html[data-theme="light"] .cab-search-page .cab-pagination .pagination strong {
    border-color: rgba(15,23,42,.14);
}
.cab-search-page .cab-pagination .pagination a:hover,
.cab-search-page .cab-pagination .pagination a:focus {
    color: var(--text) !important;
    border-color: rgba(255,255,255,.28);
    background: rgba(255,255,255,.04) !important;
}
html[data-theme="light"] .cab-search-page .cab-pagination .pagination a:hover,
html[data-theme="light"] .cab-search-page .cab-pagination .pagination a:focus {
    color: #0f172a !important;
    border-color: rgba(15,23,42,.28);
    background: rgba(15,23,42,.04) !important;
}
.cab-search-page .cab-pagination .pagination strong {
    border: 1px solid rgba(19, 196, 92, 0.55) !important;
    background: transparent !important;
    color: #13c45c !important;
}
html[data-theme="light"] .cab-search-page .cab-pagination .pagination strong {
    border: 1px solid rgba(19, 196, 92, 0.45) !important;
    background: transparent !important;
    color: #0f9f4a !important;
}
.cab-search-page .cab-pagination .pagination .prev,
.cab-search-page .cab-pagination .pagination .next {
    min-width: 40px;
    width: 40px;
    padding: 0;
    font-size: 1.15rem;
    line-height: 1;
}
.cab-search-page .cab-pagination-ellipsis {
    color: var(--muted);
    opacity: 0.55;
    min-width: 24px;
    text-align: center;
    user-select: none;
}

.ticker {
    display: none;
}
.cab-ticker-strip {
    border-bottom: 1px solid var(--border);
    background: var(--bg-elev);
    padding: 8px 0;
}
.cab-ticker-strip .pp-related { margin: 0; }
.cab-ticker-strip .pp-related-top { margin: 0; padding: 0; }

/* Polymarket-style Live trades strip */
.cab-live-trades {
    display: flex;
    align-items: center;
    gap: 0;
    height: 44px;
    padding: 0;
    background: #0a0a0a;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.cab-lt-label {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 0 16px 0 20px;
}
.cab-lt-dot-wrap {
    position: relative;
    width: 9px;
    height: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cab-lt-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ef4444;
    position: relative;
    z-index: 1;
}
.cab-lt-ping {
    position: absolute;
    inset: -1px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ef4444;
    opacity: .75;
    animation: cab-lt-ping 1.2s cubic-bezier(0,0,.2,1) infinite;
}
@keyframes cab-lt-ping {
    75%, 100% { transform: scale(2.2); opacity: 0; }
}
.cab-lt-label-text {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #fff;
    white-space: nowrap;
}
@media (max-width: 720px) {
    .cab-lt-label-text { display: none; }
    .cab-lt-label { padding: 0 10px 0 12px; gap: 0; }
}
.cab-lt-marquee {
    flex: 1;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 48px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 48px), transparent 100%);
}
.cab-lt-track {
    display: flex;
    align-items: center;
    height: 100%;
    width: max-content;
    gap: 80px;
    /* Self-contained animation — iOS Safari often stalls inherited shorthand */
    animation: pp-related-scroll 50s linear infinite;
    -webkit-animation: pp-related-scroll 50s linear infinite;
    will-change: transform;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
.cab-lt-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    white-space: nowrap;
    text-decoration: none;
    color: inherit;
    font-size: 13px;
    line-height: 16px;
}
.cab-lt-inst {
    display: inline-flex;
    align-items: center;
    gap: 0;
    column-gap: 0;
    min-width: 0;
}
.cab-lt-inst-icon {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
    margin: 0 4px 0 0;
    padding: 0;
    display: block;
}
.cab-lt-name {
    font-weight: 600;
    color: #fff;
    margin: 0;
    padding: 0;
}
.cab-lt-price {
    color: rgba(255,255,255,.55);
    font-variant-numeric: tabular-nums;
}
.cab-lt-chg {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: rgba(255,255,255,.55);
}
.cab-lt-chg.is-up { color: #22c55e; }
.cab-lt-chg.is-down { color: #ef4444; }
.cab-lt-price.is-flash-up,
.cab-lt-chg.is-flash-up,
[data-live-pct].is-flash-up,
[data-live-odds].is-flash-up,
[data-field="mark"].is-flash-up,
[data-field="change-abs"].is-flash-up,
.pp-upnl-usd.is-flash-up,
#pf-open-upnl-val.is-flash-up,
#pf-foot-pnl.is-flash-up { color: #22c55e !important; transition: color .15s ease; }
.cab-lt-price.is-flash-down,
.cab-lt-chg.is-flash-down,
[data-live-pct].is-flash-down,
[data-live-odds].is-flash-down,
[data-field="mark"].is-flash-down,
[data-field="change-abs"].is-flash-down,
.pp-upnl-usd.is-flash-down,
#pf-open-upnl-val.is-flash-down,
#pf-foot-pnl.is-flash-down { color: #ef4444 !important; transition: color .15s ease; }

/* Optimistic close row fade */
#pp-open-table tbody tr.is-closing {
    opacity: 0;
    transform: translateX(8px);
    transition: opacity .25s ease, transform .25s ease;
}

/* Empty states with CTA */
.cab-empty-cta a,
.poly-empty.cab-empty-cta a,
.wl-empty a,
.cab-prof-activity-empty a {
    color: #13c45c;
    text-decoration: none;
    font-weight: 600;
}
.cab-empty-cta a:hover,
.poly-empty.cab-empty-cta a:hover,
.wl-empty a:hover,
.cab-prof-activity-empty a:hover { text-decoration: underline; }

/* Skeletons */
.cab-skel {
    pointer-events: none;
    user-select: none;
}
.cab-skel-row {
    display: block;
    height: 56px;
    margin: 0 0 8px;
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.09) 50%, rgba(255,255,255,.04) 100%);
    background-size: 200% 100%;
    animation: cab-skel-shimmer 1.1s ease-in-out infinite;
}
html[data-theme="light"] .cab-skel-row {
    background: linear-gradient(90deg, rgba(15,23,42,.04) 0%, rgba(15,23,42,.09) 50%, rgba(15,23,42,.04) 100%);
    background-size: 200% 100%;
}
.cab-skel-row.is-sm { height: 40px; }
@keyframes cab-skel-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}
@media (prefers-reduced-motion: reduce) {
    .cab-skel-row { animation: none; }
}
.cab-notif-toast.is-simple {
    padding: 12px 16px;
    width: auto;
    max-width: 100%;
}
.cab-notif-toast.is-simple .cab-toast-msg {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: inherit;
    line-height: 1.35;
}
@media (prefers-reduced-motion: reduce) {
    .cab-lt-ping { animation: none; opacity: .45; }
    /* Keep a slow ticker — full stop made Live trades look "frozen" on iPhones with Reduce Motion */
    .pp-related-track,
    .cab-lt-track {
        animation-duration: 120s !important;
        -webkit-animation-duration: 120s !important;
    }
}
.cab-esport-strip {
    --pm-hero-bg: #0e0f11;
    --pm-live: #ef4444;
    --pm-text: #f4f4f5;
    --pm-text-secondary: #a1a1aa;
    --pm-bar-track: rgba(255, 255, 255, 0.08);
    padding: 16px 20px 8px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}
@media (min-width: 1024px) {
    .cab-esport-strip { padding: 20px 24px 12px; gap: 20px; }
}
.cab-esport-strip .pm-hero-carousel { max-width: 1320px; margin: 0 auto; width: 100%; }
.cab-esport-strip .pm-game-pills {
    max-width: 1320px;
    margin: 0 auto;
    width: 100%;
}
.cab-esport-pills-wrap {
    max-width: 1320px;
    margin: 0 auto;
    width: 100%;
}
.cab-esport-pills-label {
    margin: 0 0 8px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #fff;
    line-height: 1.2;
}
html[data-theme="light"] .cab-esport-pills-label {
    color: #0f172a;
}

/* Home latest-news strip — 4 visible, auto-scroll left */
.cab-home-news-strip {
    max-width: 1320px;
    margin: 4px auto 0;
    width: 100%;
}
.cab-home-news-label {
    margin: 0 0 8px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #fff;
    line-height: 1.2;
}
html[data-theme="light"] .cab-home-news-label {
    color: #0f172a;
}
.cab-home-news-viewport {
    overflow: hidden;
    width: 100%;
    border-radius: 12px;
}
.cab-home-news-track {
    display: flex;
    gap: 10px;
    width: max-content;
    will-change: transform;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-transition: transform 0.55s cubic-bezier(0.33, 1, 0.68, 1);
    transition: transform 0.55s cubic-bezier(0.33, 1, 0.68, 1);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
.cab-home-news-card {
    flex: 0 0 auto;
    width: 280px; /* JS overrides to fit exactly 4 (or fewer on narrow) */
    max-width: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #161a21;
    color: #fff;
    height: 248px;
    box-sizing: border-box;
}
html[data-theme="light"] .cab-home-news-card {
    background: #fff;
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.1);
}
.cab-home-news-card-img {
    position: relative;
    flex: 0 0 118px;
    height: 118px;
    overflow: hidden;
    background: linear-gradient(135deg, #1c2430, #0e1621);
}
.cab-home-news-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.45) 0%,
        rgba(0, 0, 0, 0.08) 55%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 1;
}
.cab-home-news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}
.cab-home-news-card-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 12px 12px;
    min-height: 0;
}
.cab-home-news-card-text {
    margin: 0;
    flex: 1 1 auto;
    font-size: 0.82rem;
    line-height: 1.35;
    font-weight: 550;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    color: inherit;
    opacity: 0.92;
    min-height: 3.9em;
    max-height: 3.9em;
}
.cab-home-news-card-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    height: 30px;
    padding: 0 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 650;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: background .15s ease, border-color .15s ease;
}
.cab-home-news-card-more:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.22);
}
html[data-theme="light"] .cab-home-news-card-more {
    background: rgba(15, 23, 42, 0.06);
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.1);
}
html[data-theme="light"] .cab-home-news-card-more:hover {
    background: rgba(15, 23, 42, 0.1);
}
@media (max-width: 720px) {
    .cab-home-news-card {
        height: 236px;
    }
    .cab-home-news-card-img {
        flex-basis: 104px;
        height: 104px;
    }
}
/* Keep autoplay even with Reduce Motion — otherwise iPhone freezes the strip. */
.pp-related { overflow: hidden; }
.pp-related-marquee {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.pp-related-track {
    display: flex;
    align-items: center;
    gap: 8px;
    width: max-content;
    animation: pp-related-scroll 48s linear infinite;
    -webkit-animation: pp-related-scroll 48s linear infinite;
    will-change: transform;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}
/* :hover pause sticks on iOS after tap — only pause on real pointer hover */
@media (hover: hover) and (pointer: fine) {
    .pp-related-marquee:hover .pp-related-track,
    .cab-lt-marquee:hover .cab-lt-track {
        animation-play-state: paused;
        -webkit-animation-play-state: paused;
    }
}
@keyframes pp-related-scroll {
    from {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
    to {
        -webkit-transform: translate3d(-50%, 0, 0);
        transform: translate3d(-50%, 0, 0);
    }
}
.pp-related-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    white-space: nowrap;
    padding: 6px 12px 6px 8px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--card);
    text-decoration: none;
    color: inherit;
    font-size: 0.8125rem;
    line-height: 1;
}
.pp-related-chip:hover { border-color: var(--muted2); }
.pp-related-chip img {
    width: 18px; height: 18px; border-radius: 50%;
    object-fit: cover; flex-shrink: 0;
}
.pp-related-chip strong { font-size: 0.8125rem; font-weight: 700; }
.pp-related-chip .pp-related-px {
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}
.pp-related-chg { font-variant-numeric: tabular-nums; font-weight: 600; }
.pp-related-chg.is-up { color: var(--green); }
.pp-related-chg.is-down { color: var(--red); }

/* Home embeds polyperps listing */
.cab-home-perps {
    --pm-bg: #12151a;
    --pm-text: var(--text);
    --pm-text-secondary: var(--muted);
    --pm-text-tertiary: var(--muted2);
    --pm-border: var(--border);
    --pm-card-bg: var(--card);
    --pm-card-text: var(--text);
    --pm-card-muted: var(--muted);
    --pm-card-hover: var(--card-hover);
    --pm-card-border: var(--border);
    --pm-input-bg: rgba(255,255,255,.06);
    font-family: var(--font);
}
.cab-home-perps .pp-cat-tab.is-active {
    background: #f4f5f7;
    color: #0e1016;
}
.cab-home-perps .pp-cat-count {
    color: var(--muted2);
}
.cab-home-perps .pp-cat-tab.is-active .pp-cat-count {
    color: rgba(14, 16, 22, 0.55);
}
.cab-home-perps .pp-cat-tab[data-wl-tab],
.cab-home-perps #pp-wl-tab {
    border: 1px solid rgba(19, 196, 92, 0.28);
    background: rgba(19, 196, 92, 0.08);
    color: #13c45c;
}
.cab-home-perps .pp-cat-tab[data-wl-tab].is-active,
.cab-home-perps #pp-wl-tab.is-active {
    background: rgba(19, 196, 92, 0.22);
    border-color: rgba(19, 196, 92, 0.45);
    color: #13c45c;
}
.cab-home-perps .pp-cat-tab[data-wl-tab] .pp-cat-count,
.cab-home-perps #pp-wl-tab .pp-cat-count {
    color: rgba(19, 196, 92, 0.85);
}
.cab-home-perps .pm-layout {
    max-width: none;
    margin: 0;
    padding: 0;
}
.content-home {
    max-width: none;
    padding-top: 12px;
}
.top-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.icon-btn {
    width: 36px; height: 36px;
    display: grid; place-items: center;
    border-radius: 10px; color: var(--muted);
    position: relative;
}
.icon-btn:hover { background: rgba(255,255,255,.06); color: var(--text); }
.icon-btn .sparkle { color: var(--green); }
.notif-dot {
    position: absolute; top: 4px; right: 4px;
    min-width: 16px; height: 16px; padding: 0 4px;
    border-radius: 999px; background: #e11d48;
    color: #fff; font-size: 10px; font-weight: 700;
    display: grid; place-items: center;
}
.notif-dot[hidden] { display: none !important; }

/* Header notifications feed */
.cab-bell-modal[hidden] { display: none !important; }
.cab-bell-modal {
    position: fixed;
    inset: 0;
    z-index: 220;
    display: grid;
    place-items: center;
    padding: 24px 16px;
}
.cab-bell-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}
.cab-bell-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    max-height: min(88vh, 720px);
    display: flex;
    flex-direction: column;
    background: #161920;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 24px 80px rgba(0,0,0,.55);
    color: #fff;
    overflow: hidden;
}
html[data-theme="light"] .cab-bell-modal-dialog {
    background: #fff;
    color: #0f172a;
    border-color: rgba(15,23,42,.1);
}
.cab-bell-modal-head {
    padding: 22px 24px 12px;
    flex-shrink: 0;
}
.cab-bell-modal-head h2 {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 700;
}
.cab-bell-modal-head p {
    margin: 0;
    font-size: 13px;
    color: #9aa3af;
}
.cab-bell-modal-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
}
.cab-bell-modal-settings,
.cab-bell-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: var(--muted);
    display: grid;
    place-items: center;
    text-decoration: none;
}
.cab-bell-modal-close {
    font-size: 22px;
    line-height: 1;
}
.cab-bell-modal-settings:hover,
.cab-bell-modal-close:hover { background: rgba(255,255,255,.06); color: #fff; }
html[data-theme="light"] .cab-bell-modal-settings:hover,
html[data-theme="light"] .cab-bell-modal-close:hover { background: rgba(15,23,42,.06); color: #0f172a; }

/* Floating notification toast under topbar */
.cab-notif-toast-host {
    position: fixed;
    top: calc(var(--topbar-h) + 10px);
    right: 16px;
    z-index: 190;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    width: min(380px, calc(100vw - 24px));
    pointer-events: none;
}
.cab-notif-toast {
    pointer-events: auto;
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border-radius: 12px;
    background: #0f1318;
    border: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 14px 40px rgba(0,0,0,.5);
    color: #fff;
    text-decoration: none;
    font-family: inherit;
    cursor: pointer;
    animation: cabNotifToastIn .22s ease-out;
}
html[data-theme="light"] .cab-notif-toast {
    background: #fff;
    color: #0f172a;
    border-color: rgba(15,23,42,.1);
    box-shadow: 0 14px 36px rgba(15,23,42,.14);
}
.cab-notif-toast.is-leaving {
    animation: cabNotifToastOut .2s ease-in forwards;
}
.cab-notif-toast .cab-bell-item-top strong { color: inherit; }
.cab-notif-toast .cab-bell-body { margin: 0; }
.cab-notif-toast p { margin: 0; font-size: 12px; color: #9aa3af; line-height: 1.4; }
.cab-notif-toast time { display: block; margin-top: 6px; font-size: 11px; color: #6b7280; }
@keyframes cabNotifToastIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes cabNotifToastOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-6px); }
}
@media (max-width: 820px) {
    .cab-notif-toast-host {
        right: 10px;
        left: 10px;
        width: auto;
        align-items: stretch;
    }
}
.cab-bell-list {
    flex: 1;
    overflow: auto;
    padding: 4px 10px 8px;
}
.cab-bell-empty {
    margin: 24px 14px;
    font-size: 13px;
    color: #9aa3af;
    text-align: center;
}
.cab-bell-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 14px;
    border-radius: 12px;
    border: 0;
    background: transparent;
    color: inherit;
    font-family: inherit;
    cursor: pointer;
    margin-bottom: 2px;
    text-decoration: none;
    box-sizing: border-box;
}
a.cab-bell-item { cursor: pointer; }
.cab-bell-item:hover { background: rgba(255,255,255,.04); }
html[data-theme="light"] .cab-bell-item:hover { background: rgba(15,23,42,.04); }
.cab-bell-item.is-unread {
    background: rgba(19, 196, 92, .06);
}
.cab-bell-item.is-unread:hover {
    background: rgba(19, 196, 92, .1);
}
.cab-bell-item-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.cab-bell-item-top strong {
    font-size: 14px;
    font-weight: 650;
    flex: 1;
    min-width: 0;
}
.cab-bell-cat {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #9aa3af;
    flex-shrink: 0;
}
.cab-bell-unread-pip {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    flex-shrink: 0;
}
.cab-bell-item.is-read .cab-bell-unread-pip { visibility: hidden; }
.cab-notif-pnl.is-pos { color: #4ade80; font-weight: 600; }
.cab-notif-pnl.is-neg { color: #f87171; font-weight: 600; }
.cab-bell-body {
    margin: 0;
}
.cab-bell-item p,
.cab-bell-desc {
    margin: 0;
    font-size: 12px;
    color: #9aa3af;
    line-height: 1.4;
}
.cab-bell-copy-from {
    margin: 6px 0 0 !important;
    font-size: 12px;
    color: #8b949e;
    line-height: 1.4;
}
.cab-bell-copy-link {
    color: #7dd3a0;
    text-decoration: none;
    font-weight: 600;
}
.cab-bell-copy-link:hover {
    text-decoration: underline;
    color: #a7f3c4;
}
.cab-bell-item time {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: #6b7280;
}
.cab-bell-foot {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px 18px;
    border-top: 1px solid rgba(255,255,255,.08);
    flex-shrink: 0;
}
html[data-theme="light"] .cab-bell-foot {
    border-top-color: rgba(15,23,42,.08);
}
.cab-bell-close-btn {
    min-width: 96px;
    padding: 10px 22px;
    border-radius: 999px;
    background: #2a3140;
    color: #9aa3af;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    border: 0;
    cursor: pointer;
}
html[data-theme="light"] .cab-bell-close-btn {
    background: #e8ecf2;
    color: #64748b;
}
.cab-bell-read-btn {
    min-width: 96px;
    padding: 10px 22px;
    border-radius: 999px;
    background: var(--green);
    color: #04140a;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    border: 0;
    cursor: pointer;
}
.cab-bell-read-btn:hover,
.cab-bell-close-btn:hover { filter: brightness(1.06); }
.cab-bell-read-btn:disabled { opacity: .7; cursor: default; }
.cab-bell-more {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 14px;
    border-radius: 12px;
    border: 0;
    margin: 4px 0 8px;
    background: rgba(19, 196, 92, .06);
    color: inherit;
    font-family: inherit;
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
    box-sizing: border-box;
}
.cab-bell-more:hover {
    background: rgba(19, 196, 92, .1);
}
.cab-bell-more:disabled {
    opacity: .7;
    cursor: default;
}
.cab-bell-more[hidden] { display: none !important; }

.content {
    flex: 1;
    padding: 20px 24px 40px;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
}
.content.has-footer-pad { padding-bottom: 88px; }

/* cards / helpers */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
}
.card-title { font-size: 15px; font-weight: 600; margin: 0 0 4px; }
.card-sub { font-size: 12px; color: var(--muted); margin: 0 0 14px; }
.btn-green {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 18px; border-radius: 10px;
    background: var(--green); color: #0a120e;
    font-weight: 700; font-size: 14px;
}
.btn-green:hover { filter: brightness(1.05); }
.btn-green-outline {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 9px 16px; border-radius: 10px;
    border: 1.5px solid var(--green); color: var(--green);
    font-weight: 600; font-size: 13px;
}
.btn-ghost {
    padding: 8px 14px; border-radius: 999px;
    background: rgba(255,255,255,.06); color: var(--text);
    font-size: 13px; font-weight: 500;
}
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.chg.up { color: var(--green); }
.chg.down { color: var(--red); }
.section-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-bottom: 14px;
}
.section-head h2 { margin: 0; font-size: 18px; font-weight: 600; }
.section-head p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.link-all { font-size: 13px; color: var(--muted); font-weight: 500; }
.link-all:hover { color: var(--text); }

/* HOME */
.home-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 16px;
}
.home-hero {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 16px;
    align-items: stretch;
    overflow: hidden;
    padding: 0;
}
.home-hero-copy { padding: 28px 28px 24px; }
.home-hero-copy h1 {
    margin: 0 0 8px; font-size: 26px; font-weight: 700; letter-spacing: -.02em;
}
.home-hero-copy p { margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.45; max-width: 42ch; }
.steps { display: flex; gap: 10px; margin-bottom: 18px; }
.step {
    width: 28px; height: 28px; border-radius: 50%;
    display: grid; place-items: center;
    font-size: 12px; font-weight: 700;
    border: 2px solid var(--border); color: var(--muted);
}
.step.done { background: var(--green); border-color: var(--green); color: #0a120e; }
.step.current { border-color: var(--green); color: var(--green); }
.home-hero-media {
    position: relative;
    min-height: 200px;
    background: linear-gradient(135deg, #1a2330, #0e141c);
}
.home-hero-media img {
    width: 100%; height: 100%; object-fit: cover; opacity: .85;
}
.home-hero-media .cap {
    position: absolute; left: 16px; bottom: 16px;
    background: rgba(0,0,0,.55); backdrop-filter: blur(6px);
    padding: 8px 12px; border-radius: 8px; font-size: 12px;
}

.lessons-row {
    display: flex; gap: 12px; overflow-x: auto;
    padding-bottom: 4px; scrollbar-width: thin;
}
.lesson {
    flex: 0 0 200px;
    border-radius: 10px; overflow: hidden;
    background: #0e1218; border: 1px solid var(--border);
}
.lesson .thumb { position: relative; aspect-ratio: 16/9; background: #222; }
.lesson .thumb img { width: 100%; height: 100%; object-fit: cover; }
.lesson .play {
    position: absolute; inset: 0; display: grid; place-items: center;
    background: rgba(0,0,0,.25);
}
.lesson .play i {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,.92); color: #111;
    display: grid; place-items: center;
}
.lesson .t { padding: 10px; font-size: 13px; font-weight: 500; }

.movers-bars {
    display: flex; align-items: flex-end; gap: 10px;
    height: 140px; padding: 8px 0 4px;
}
.mbar {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; gap: 6px; height: 100%; justify-content: flex-end;
}
.mbar .bar {
    width: 100%; max-width: 36px;
    border-radius: 6px 6px 2px 2px;
    background: linear-gradient(180deg, var(--green), #0a7a38);
    min-height: 8px;
}
.mbar .lbl { font-size: 10px; color: var(--muted); text-align: center; }
.mbar .val { font-size: 11px; font-weight: 600; color: var(--green); }

.investor-list { list-style: none; margin: 0; padding: 0; }
.investor-list li {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 0; border-bottom: 1px solid var(--border);
}
.investor-list li:last-child { border-bottom: 0; }
.investor-list .av {
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, #334155, #1e293b);
    display: grid; place-items: center; font-size: 12px; font-weight: 700;
}
.investor-list .nm { flex: 1; font-size: 14px; font-weight: 500; }
.promo-stock {
    display: flex; align-items: center; gap: 14px;
    background: linear-gradient(90deg, #1a2838, #243044);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
    min-height: 88px;
}
.promo-stock strong { display: block; font-size: 15px; margin-bottom: 4px; }
.promo-stock span { font-size: 12px; color: var(--muted); }

/* WATCHLIST — eToro-style board */
.wl-toolbar {
    max-width: 1100px;
    margin: 4px auto 0;
    padding: 0 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
}
.wl-toolbar .wl-add-markets {
    margin: 0;
    padding: 6px 0;
}
.wl-wrap {
    max-width: 1100px;
    margin: 8px auto 0;
    padding: 0 4px 40px;
}
.wl-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 18px;
}
.wl-chip {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.22);
    background: transparent;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    line-height: 1.2;
}
.wl-chip .n {
    margin-left: 6px;
    opacity: .65;
    font-weight: 500;
}
.wl-chip.is-active {
    background: #fff;
    color: #0f1218;
    border-color: #fff;
}
html[data-theme="light"] .wl-chip {
    border-color: rgba(15,23,42,.2);
    color: #0f172a;
}
html[data-theme="light"] .wl-chip.is-active {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
}
.wl-board {
    width: 100%;
}
.wl-head {
    display: grid;
    grid-template-columns: minmax(160px, 1.35fr) minmax(110px, 0.85fr) minmax(100px, 0.9fr) minmax(88px, 0.7fr) minmax(88px, 0.7fr) minmax(140px, 1fr) minmax(110px, 0.85fr);
    gap: 10px;
    padding: 0 8px 10px;
    font-size: 12px;
    color: #9aa3af;
    font-weight: 500;
}
.wl-head span:nth-child(2),
.wl-head span:nth-child(4),
.wl-head span:nth-child(5) { text-align: center; }
.wl-head span:nth-child(6),
.wl-head span:nth-child(7) { text-align: center; }
.wl-head-alert {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
}
.wl-head-alert-plus {
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
    color: #c5ccd6;
}
.wl-head-alert svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}
.wl-row {
    display: grid;
    grid-template-columns: minmax(160px, 1.35fr) minmax(110px, 0.85fr) minmax(100px, 0.9fr) minmax(88px, 0.7fr) minmax(88px, 0.7fr) minmax(140px, 1fr) minmax(110px, 0.85fr);
    gap: 10px;
    align-items: center;
    padding: 14px 8px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
}
.wl-row:hover { background: rgba(255,255,255,.03); }
html[data-theme="light"] .wl-row:hover { background: rgba(15,23,42,.03); }
.wl-alert-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 0 auto;
    width: 40px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.03);
    color: #c5ccd6;
    cursor: pointer;
    font-family: inherit;
    transition: color .15s, border-color .15s, background .15s;
}
.wl-alert-btn:hover {
    color: #fff;
    border-color: rgba(255,255,255,.28);
    background: rgba(255,255,255,.06);
}
.wl-alert-btn.has-alerts {
    color: var(--green);
    border-color: rgba(19,196,92,.45);
    background: rgba(19,196,92,.08);
}
html[data-theme="light"] .wl-alert-btn {
    border-color: rgba(15,23,42,.14);
    background: rgba(15,23,42,.03);
    color: #475569;
}
html[data-theme="light"] .wl-alert-btn:hover {
    color: #0f172a;
    border-color: rgba(15,23,42,.28);
}
.wl-alert-btn svg { display: block; }
.wl-alert-btn .wl-alert-plus {
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}
.wl-mkt {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.wl-ico {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    overflow: hidden;
    background: #2a3140;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
}
.wl-ico img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wl-mkt-txt { min-width: 0; }
.wl-mkt-txt b {
    display: block;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
}
.wl-mkt-txt small {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: #9aa3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wl-chg {
    text-align: center;
    font-variant-numeric: tabular-nums;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
}
.wl-chg.is-up { color: #13c45c; }
.wl-chg.is-down { color: #ef4444; }
.wl-chg .tri { font-size: 10px; margin-right: 2px; }
.wl-chg .pct { font-weight: 500; opacity: .95; }
.wl-spark-cell {
    display: flex;
    justify-content: center;
    align-items: center;
}
.wl-spark { display: block; overflow: visible; }
.wl-trade {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border-radius: 999px;
    background: #2a3140;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    text-decoration: none;
    border: 0;
    font-family: inherit;
    cursor: pointer;
    box-sizing: border-box;
    transition: background .2s ease, color .2s ease, filter .15s ease;
}
.wl-trade:hover { filter: brightness(1.08); color: #fff; }
.wl-trade.is-flash-up {
    background: #13c45c !important;
    color: #04140a !important;
    filter: none;
}
.wl-trade.is-flash-down {
    background: #ef4444 !important;
    color: #fff !important;
    filter: none;
}
html[data-theme="light"] .wl-trade {
    background: #e8ecf2;
    color: #0f172a;
}
html[data-theme="light"] .wl-trade.is-flash-up {
    background: #13c45c !important;
    color: #04140a !important;
}
html[data-theme="light"] .wl-trade.is-flash-down {
    background: #ef4444 !important;
    color: #fff !important;
}
.wl-range {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 0 4px;
}
.wl-range-bar-wrap {
    position: relative;
    height: 14px;
    display: flex;
    align-items: center;
}
.wl-range-bar {
    width: 100%;
    height: 3px;
    border-radius: 999px;
    background: rgba(255,255,255,.18);
}
html[data-theme="light"] .wl-range-bar { background: rgba(15,23,42,.15); }
.wl-range-caret {
    position: absolute;
    top: 0;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #9aa3af;
    transform: translateX(-50%);
}
.wl-range-nums {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #9aa3af;
    font-variant-numeric: tabular-nums;
}
.wl-empty {
    text-align: center;
    padding: 48px 16px 28px;
    color: #9aa3af;
    font-size: 14px;
}
.wl-add-markets {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 8px 8px 0;
    padding: 10px 4px;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}
html[data-theme="light"] .wl-add-markets { color: #0f172a; }
.wl-add-markets:hover { color: var(--green); }
.wl-add-ico {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.2);
    display: grid;
    place-items: center;
    color: #9aa3af;
}
html[data-theme="light"] .wl-add-ico { border-color: rgba(15,23,42,.15); }

/* Quick trade modal */
.wl-trade-modal[hidden] { display: none !important; }
.wl-trade-modal {
    position: fixed;
    inset: 0;
    z-index: 230;
    display: grid;
    place-items: center;
    padding: 20px 12px;
}
.wl-trade-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.65);
}
.wl-trade-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(420px, 100%);
    max-height: min(92vh, 860px);
    overflow: auto;
    background: #161920;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 24px 80px rgba(0,0,0,.55);
    color: #fff;
}
html[data-theme="light"] .wl-trade-modal-dialog {
    background: #fff;
    color: #0f172a;
    border-color: rgba(15,23,42,.1);
}
.wl-trade-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 22px;
    line-height: 1;
    display: grid;
    place-items: center;
    z-index: 2;
}
.wl-trade-modal-close:hover { background: rgba(255,255,255,.06); color: #fff; }
html[data-theme="light"] .wl-trade-modal-close:hover { background: rgba(15,23,42,.06); color: #0f172a; }
.wl-qt-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 18px 8px;
    padding-right: 44px;
}
.wl-qt-ico {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    overflow: hidden;
    background: #2a3140;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 800;
}
.wl-qt-ico img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wl-qt-head-txt { min-width: 0; flex: 1; }
.wl-qt-head-txt strong { display: block; font-size: 17px; font-weight: 700; }
.wl-qt-head-txt small { display: block; color: #9aa3af; font-size: 12px; margin-top: 2px; }
.wl-qt-mark {
    font-size: 14px;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
    color: #9aa3af;
}
.wl-qt-chart {
    display: inline-flex;
    margin: 0 18px 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--green);
    text-decoration: none;
}
.wl-qt-chart:hover { text-decoration: underline; }
.wl-trade-modal .pp-trade-panel {
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 8px 14px 18px;
    width: 100%;
    max-width: none;
}

/* Price alert modals */
.wl-pa-modal[hidden] { display: none !important; }
.wl-pa-modal {
    position: fixed;
    inset: 0;
    z-index: 240;
    display: grid;
    place-items: center;
    padding: 20px 12px;
}
.wl-pa-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.65);
}
.wl-pa-dialog {
    position: relative;
    width: min(420px, 100%);
    background: #1a1f27;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 20px;
    padding: 22px 22px 20px;
    box-shadow: 0 24px 64px rgba(0,0,0,.55);
}
html[data-theme="light"] .wl-pa-dialog {
    background: #fff;
    border-color: rgba(15,23,42,.08);
    box-shadow: 0 24px 64px rgba(15,23,42,.18);
}
.wl-pa-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #9aa3af;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.wl-pa-close:hover { background: rgba(255,255,255,.06); color: #fff; }
html[data-theme="light"] .wl-pa-close:hover { background: rgba(15,23,42,.06); color: #0f172a; }
.wl-pa-title {
    margin: 0 0 18px;
    text-align: center;
    font-size: 16px;
    font-weight: 650;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.wl-pa-title .wl-pa-info {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    display: inline-grid;
    place-items: center;
    font-size: 10px;
    font-weight: 700;
    opacity: .55;
}
.wl-pa-asset-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 0 16px;
    font-size: 14px;
    font-weight: 650;
    color: #c5ccd6;
}
.wl-pa-asset-head img {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    object-fit: cover;
}
.wl-pa-asset-head .dot { opacity: .45; margin: 0 2px; }
.wl-pa-prompt {
    margin: 8px 0 18px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
}
.wl-pa-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 8px 0 10px;
}
.wl-pa-step {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,.22);
    background: transparent;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
html[data-theme="light"] .wl-pa-step {
    border-color: rgba(15,23,42,.2);
    color: #0f172a;
}
.wl-pa-step:hover { border-color: var(--green); color: var(--green); }
.wl-pa-price-wrap {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    min-width: 0;
}
.wl-pa-currency {
    font-size: 22px;
    font-weight: 600;
    color: #9aa3af;
}
.wl-pa-price {
    border: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 34px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-align: center;
    width: 11ch;
    max-width: 50vw;
    outline: none;
    padding: 0;
}
html[data-theme="light"] .wl-pa-price { color: #0f172a; }
.wl-pa-pct {
    text-align: center;
    font-size: 13px;
    color: #9aa3af;
    margin: 0 0 6px;
}
.wl-pa-pct strong { font-weight: 650; }
.wl-pa-pct.is-up strong { color: #13c45c; }
.wl-pa-pct.is-down strong { color: #ef4444; }
.wl-pa-current {
    text-align: center;
    font-size: 13px;
    color: #7a8494;
    margin: 0 0 22px;
}
.wl-pa-error {
    color: #ef4444;
    font-size: 13px;
    text-align: center;
    margin: 0 0 12px;
}
.wl-pa-error[hidden] { display: none !important; }
.wl-pa-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 999px;
    background: #13c45c;
    color: #062416;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}
.wl-pa-submit:hover { filter: brightness(1.06); }
.wl-pa-submit:disabled { opacity: .55; cursor: wait; }
.wl-pa-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 8px 0 20px;
    max-height: min(360px, 50vh);
    overflow-y: auto;
}
.wl-pa-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 2px;
}
.wl-pa-item-copy { flex: 1; min-width: 0; }
.wl-pa-item-copy b {
    display: block;
    font-size: 22px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.wl-pa-item-copy small {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #9aa3af;
}
.wl-pa-edit {
    flex-shrink: 0;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1.5px solid rgba(255,255,255,.35);
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
}
html[data-theme="light"] .wl-pa-edit {
    border-color: rgba(15,23,42,.3);
    color: #0f172a;
}
.wl-pa-edit:hover { border-color: var(--green); color: var(--green); }
.wl-pa-empty {
    text-align: center;
    color: #9aa3af;
    font-size: 14px;
    padding: 18px 8px;
}
.wl-picker-modal[hidden] { display: none !important; }
.wl-picker-modal {
    position: fixed;
    inset: 0;
    z-index: 235;
    display: grid;
    place-items: center;
    padding: 16px 12px;
}
.wl-picker-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}
.wl-picker-dialog {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    max-height: min(86vh, 720px);
    display: flex;
    flex-direction: column;
    background: #1a1f27;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 20px 18px 14px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}
html[data-theme="light"] .wl-picker-dialog {
    background: #fff;
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18);
}
.wl-picker-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #9aa3af;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.wl-picker-close:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
html[data-theme="light"] .wl-picker-close:hover { background: rgba(15, 23, 42, 0.06); color: #0f172a; }
.wl-picker-title {
    margin: 0 36px 14px 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
}
.wl-picker-search {
    margin: 0 0 12px !important;
}
.wl-picker-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 10px;
}
.wl-picker-cat {
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 12px;
    font-weight: 650;
    cursor: pointer;
    transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.wl-picker-cat:hover {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.28);
}
.wl-picker-cat.is-active {
    border-color: rgba(19, 196, 92, 0.4);
    background: rgba(19, 196, 92, 0.12);
    color: #13c45c;
}
html[data-theme="light"] .wl-picker-cat {
    border-color: rgba(15, 23, 42, 0.14);
}
html[data-theme="light"] .wl-picker-cat.is-active {
    border-color: rgba(19, 196, 92, 0.4);
    background: rgba(19, 196, 92, 0.12);
    color: #0f9f4a;
}
.wl-picker {
    flex: 1 1 auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    display: flex;
    flex-direction: column;
}
.wl-search {
    display: flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px; padding: 10px 12px; margin: 0;
    color: var(--muted);
}
html[data-theme="light"] .wl-search {
    background: #f1f5f9;
    border-color: rgba(15,23,42,.1);
}
.wl-search svg { flex-shrink: 0; }
.wl-search input {
    flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
    color: var(--text); font: inherit; font-size: 14px;
}
.wl-picker-list {
    flex: 1 1 auto;
    min-height: 180px;
    max-height: min(52vh, 420px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -4px;
    padding: 0 4px;
}
.wl-pick-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 8px;
    border-radius: 10px;
}
.wl-pick-row:hover { background: rgba(255,255,255,.03); }
.wl-pick-row .meta { flex: 1; min-width: 0; }
.wl-pick-row .meta b { display: block; font-size: 14px; }
.wl-pick-row .meta small { color: #9aa3af; font-size: 12px; }
.wl-pick-row .px {
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-size: 13px;
}
.wl-pick-row .px .chg { display: block; font-size: 12px; font-weight: 600; }
.plus-btn {
    width: 32px; height: 32px; border-radius: 8px;
    display: grid; place-items: center;
    background: rgba(255,255,255,.06); font-size: 18px; color: var(--muted);
    flex-shrink: 0;
}
.plus-btn:hover { background: var(--green-dim); color: var(--green); }
.plus-btn.is-on {
    background: var(--green-dim); color: var(--green); font-size: 14px; font-weight: 700;
}
@media (max-width: 640px) {
    .wl-picker-modal { padding: 0; place-items: end stretch; }
    .wl-picker-dialog {
        width: 100%;
        max-height: 92vh;
        border-radius: 20px 20px 0 0;
        padding: 18px 14px calc(14px + env(safe-area-inset-bottom, 0px));
    }
    .wl-picker-list { max-height: none; }
}
@media (max-width: 900px) {
    .wl-head { display: none; }
    .wl-row {
        grid-template-columns: 1fr 1fr;
        gap: 12px 10px;
        padding: 16px 10px;
        border-bottom: 1px solid rgba(255,255,255,.06);
        border-radius: 0;
    }
    .wl-mkt { grid-column: 1 / -1; }
    .wl-chg { text-align: left; }
    .wl-spark-cell { justify-content: flex-end; }
    .wl-range { grid-column: 1 / -1; }
    .wl-alert-btn { margin: 0; width: 100%; }
}
.page-title-row {
    display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}
.page-title-row h1 { margin: 0; font-size: 24px; font-weight: 700; }
.page-title-row .chev { color: var(--muted); }

/* PORTFOLIO */
.pf-filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 32px; }
.pf-empty {
    text-align: center; padding: 48px 16px 24px;
    max-width: 480px; margin: 0 auto;
}
.pf-empty .pie {
    width: 120px; height: 120px; margin: 0 auto 20px;
    border-radius: 50%;
    background: conic-gradient(#2a313c 0 72%, #1a1f27 0);
    position: relative;
}
.pf-empty .pie::after {
    content: ""; position: absolute; inset: 28%;
    border-radius: 50%; background: var(--bg);
}
.pf-empty h2 { margin: 0 0 8px; font-size: 22px; }
.pf-empty p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }

/* Portfolio dashboard */
.pf-chart-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin: 8px 0 22px;
    padding: 28px 16px 24px;
    background:
        radial-gradient(ellipse at 50% 40%, rgba(74,158,255,.08), transparent 55%),
        var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    position: relative;
}
.pf-chart-hero-head {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    margin: -8px 0 -4px;
}
.pf-mix-ranges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.pf-mix-range {
    min-width: 40px;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 0.75rem;
    font-weight: 650;
    cursor: pointer;
    transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.pf-mix-range:hover {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.28);
}
.pf-mix-range.is-active {
    border-color: rgba(19, 196, 92, 0.35);
    background: rgba(19, 196, 92, 0.1);
    color: #13c45c;
}
html[data-theme="light"] .pf-mix-range {
    border-color: rgba(15, 23, 42, 0.14);
}
html[data-theme="light"] .pf-mix-range.is-active {
    border-color: rgba(19, 196, 92, 0.4);
    background: rgba(19, 196, 92, 0.12);
    color: #0f9f4a;
}
.pf-mix-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    width: 100%;
}
.pf-mix-panel[hidden] { display: none !important; }
.pf-polar-wrap {
    position: relative;
    width: min(420px, 92vw);
    aspect-ratio: 1;
}
.pf-polar-svg {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 12px 28px rgba(0,0,0,.35));
}
.pf-polar-center {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 38%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center;
    padding: 10px;
    pointer-events: none;
}
.pf-polar-center .net-lbl {
    font-size: 11px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted);
}
.pf-polar-center .net-val {
    font-size: clamp(16px, 4.2vw, 22px);
    font-weight: 700;
    margin-top: 4px;
    font-variant-numeric: tabular-nums;
    line-height: 1.15;
}
.pf-polar-center .net-val.is-up { color: var(--green); }
.pf-polar-center .net-val.is-down { color: var(--red); }

.pf-legend {
    display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: center;
    font-size: 13px; color: var(--muted);
}
.pf-legend span {
    display: inline-flex; align-items: center; gap: 8px;
}
.pf-legend i {
    display: inline-block; width: 12px; height: 12px; border-radius: 4px;
}
.pf-legend .c-loss { background: linear-gradient(135deg, #f97316, #ef4444); }
.pf-legend .c-profit { background: linear-gradient(135deg, #22c55e, #14b8a6); }
.pf-legend .c-open { background: linear-gradient(135deg, #3b82f6, #8b5cf6); }
.pf-legend .c-esports { background: linear-gradient(135deg, #fbbf24, #f59e0b); }

.pf-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 28px;
}
.pf-stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
}
.pf-stat-card .lbl { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.pf-stat-card .val { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pf-stat-card .val.is-up { color: var(--green); }
.pf-stat-card .val.is-down { color: var(--red); }
.pf-stat-card .val.is-open { color: var(--blue); }
.pf-stat-card .val.is-esports { color: #fbbf24; }
.pf-stat-card .sub { font-size: 11px; color: var(--muted2); margin-top: 4px; }

.pf-section {
    margin-bottom: 28px;
}
.pf-section > h2 {
    margin: 0 0 12px;
    font-size: 18px; font-weight: 600;
}
.pf-section .pp-open-positions-head {
    margin-bottom: 12px;
}
.pf-section .pp-open-positions-head .pm-section-title,
.pf-section .pp-open-positions-head h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: inherit;
}
.cab-portfolio-poly {
    --pm-bg: transparent;
    --pm-text: var(--text);
    --pm-text-secondary: var(--muted);
    --pm-text-tertiary: var(--muted2);
    --pm-border: var(--border);
    --pm-card-bg: var(--card);
    --pm-card-text: var(--text);
    --pm-card-muted: var(--muted);
    --pm-card-hover: var(--card-hover);
    --pm-card-border: var(--border);
    --pm-input-bg: rgba(255,255,255,.06);
    font-family: var(--font);
}
.cab-portfolio-poly .poly-bets-table-wrap,
.cab-portfolio-poly .pp-positions-wrap {
    overflow-x: auto;
}
.cab-portfolio-poly .poly-bets-table,
.cab-portfolio-poly .pp-positions-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.cab-portfolio-poly .poly-bets-tab.is-active {
    color: var(--text);
    border-bottom-color: var(--green);
}
/* Open positions / portfolio pager — same language as cabinet news pagination */
.cab-portfolio-poly .cab-pagination,
.pp-open-kind-panel > .cab-pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 18px 0 4px;
}
.cab-portfolio-poly .cab-pagination .pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
}
.cab-portfolio-poly .cab-pagination .pagination a,
.cab-portfolio-poly .cab-pagination .pagination strong {
    min-width: 40px;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.14);
    background: transparent !important;
    color: var(--muted) !important;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 650;
    text-decoration: none;
    box-shadow: none !important;
    outline: none !important;
    transform: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color .15s ease, border-color .15s ease, background .15s ease;
}
html[data-theme="light"] .cab-portfolio-poly .cab-pagination .pagination a,
html[data-theme="light"] .cab-portfolio-poly .cab-pagination .pagination strong {
    border-color: rgba(15,23,42,.14);
}
.cab-portfolio-poly .cab-pagination .pagination a:hover,
.cab-portfolio-poly .cab-pagination .pagination a:focus {
    color: var(--text) !important;
    border-color: rgba(255,255,255,.28);
    background: rgba(255,255,255,.04) !important;
}
html[data-theme="light"] .cab-portfolio-poly .cab-pagination .pagination a:hover,
html[data-theme="light"] .cab-portfolio-poly .cab-pagination .pagination a:focus {
    color: #0f172a !important;
    border-color: rgba(15,23,42,.28);
    background: rgba(15,23,42,.04) !important;
}
.cab-portfolio-poly .cab-pagination .pagination strong {
    border: 1px solid rgba(19, 196, 92, 0.55) !important;
    background: transparent !important;
    color: #13c45c !important;
}
html[data-theme="light"] .cab-portfolio-poly .cab-pagination .pagination strong {
    border: 1px solid rgba(19, 196, 92, 0.45) !important;
    background: transparent !important;
    color: #0f9f4a !important;
}
.cab-portfolio-poly .cab-pagination .pagination .prev,
.cab-portfolio-poly .cab-pagination .pagination .next {
    min-width: 40px;
    width: 40px;
    padding: 0;
    font-size: 1.15rem;
    line-height: 1;
}
.cab-portfolio-poly .cab-pagination-ellipsis {
    color: var(--muted);
    opacity: 0.55;
    min-width: 24px;
    text-align: center;
    user-select: none;
}
@media (max-width: 900px) {
    .pf-stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
    .pf-stats-grid { grid-template-columns: 1fr; }
    .pf-polar-wrap { width: min(340px, 94vw); }
}

.portfolio-footer {
    position: fixed; left: var(--sidebar-w); right: 0; bottom: 0;
    height: var(--footer-h);
    background: var(--bg-elev);
    border-top: 1px solid var(--border);
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: center;
    padding: 0 24px;
    z-index: 25;
    transition: left .22s ease;
}
/* PC only: expand footer left when sidebar collapses */
@media (min-width: 821px) {
    .app.is-collapsed .portfolio-footer { left: var(--sidebar-collapsed); }
}
.pf-metric { text-align: center; }
.pf-metric .v { font-size: 16px; font-weight: 700; }
.pf-metric .l { font-size: 11px; color: var(--muted); margin-top: 2px; }
.pf-op { color: var(--muted2); font-size: 18px; font-weight: 300; }

/* DISCOVER */
.disc-tabs {
    display: flex; gap: 4px; overflow-x: auto;
    border-bottom: 1px solid var(--border);
    margin: 0 0 22px; padding-bottom: 0;
    scrollbar-width: none;
}
.disc-tabs a {
    padding: 12px 14px; font-size: 14px; font-weight: 500;
    color: var(--muted); white-space: nowrap;
    border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.disc-tabs a.is-active { color: var(--text); border-bottom-color: var(--green); }
.disc-tabs a:hover { color: var(--text); }

.feat-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px; margin-bottom: 28px;
}
.feat-card {
    position: relative;
    border-radius: 14px; padding: 18px;
    min-height: 150px;
    color: #fff; overflow: hidden;
}
.feat-card .tag {
    position: absolute; top: 12px; right: 12px;
    font-size: 10px; font-weight: 700;
    background: rgba(0,0,0,.35); padding: 3px 8px; border-radius: 999px;
}
.feat-card .sym { font-size: 14px; font-weight: 600; opacity: .9; }
.feat-card .price { font-size: 22px; font-weight: 700; margin-top: 28px; }
.feat-card .logo-big {
    position: absolute; right: 12px; bottom: 12px;
    font-size: 42px; font-weight: 800; opacity: .25;
}

.movers-cols {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.mover-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: 10px;
    margin-bottom: 6px;
}
.mover-item.hot-up { background: rgba(19,196,92,.18); }
.mover-item.hot-down { background: rgba(180,40,40,.35); }
.mover-item .ico {
    width: 32px; height: 32px; border-radius: 8px;
    background: rgba(255,255,255,.08);
    display: grid; place-items: center; font-size: 10px; font-weight: 800;
    overflow: hidden; flex-shrink: 0;
}
.mover-item .ico img {
    width: 100%; height: 100%; object-fit: cover; border-radius: 8px;
}
.mover-item a.meta { text-decoration: none; color: inherit; }
.disc-shell .pp-cat-tabs { margin-bottom: 18px; }
.feat-card .feat-ico {
    width: 40px; height: 40px; border-radius: 50%;
    object-fit: cover; margin-bottom: 8px;
    background: rgba(255,255,255,.12);
}
.feat-card {
    background: var(--card) !important;
    border: 1px solid var(--border);
}
.mover-item .meta { flex: 1; min-width: 0; }
.mover-item .meta b { display: block; font-size: 13px; }
.mover-item .meta small { color: var(--muted); font-size: 11px; }

/* WALLET — deposit addresses */
.cab-wallet-page { display: flex; flex-direction: column; gap: 18px; }
.cab-wallet-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 12px; flex-wrap: wrap;
}
.cab-wallet-head h1 {
    margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.02em;
}
.cab-wallet-head p {
    margin: 4px 0 0; font-size: 13px; color: var(--muted); max-width: 52ch;
}
.cab-wallet-loc {
    display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
    min-width: min(220px, 100%);
}
.cab-wallet-loc-label {
    font-size: 11px; font-weight: 600; letter-spacing: .04em;
    text-transform: uppercase; color: var(--muted2);
}
.cab-wallet-loc .cab-tz-select {
    width: 100%; min-width: 180px;
}
.cab-wallet-err {
    padding: 12px 14px; border-radius: 10px;
    background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.35);
    color: #fca5a5; font-size: 13px;
}
.cab-wallet-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
}
.cab-wallet-card-h {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border);
}
.cab-wallet-card-h h2 {
    margin: 0; font-size: 14px; font-weight: 700;
    letter-spacing: .03em; text-transform: uppercase; color: var(--muted);
}
.cab-wallet-table { width: 100%; border-collapse: collapse; }
.cab-wallet-table th {
    text-align: left; font-size: 11px; font-weight: 600;
    letter-spacing: .04em; text-transform: uppercase; color: var(--muted2);
    padding: 10px 16px; border-bottom: 1px solid var(--border);
}
.cab-wallet-table td {
    padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.04);
    vertical-align: middle; font-size: 13px;
}
.cab-wallet-table tr:last-child td { border-bottom: 0; }
.cab-wallet-chain {
    display: flex; align-items: center; gap: 10px; min-width: 0;
}
.cab-wallet-dot {
    width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
    display: grid; place-items: center;
    overflow: hidden; background: rgba(255,255,255,.06);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.cab-wallet-dot img {
    width: 100%; height: 100%; display: block; object-fit: cover;
}
.cab-wallet-chain b { display: block; font-size: 13px; font-weight: 600; }
.cab-wallet-chain small { display: block; font-size: 11px; color: var(--muted2); }
.cab-wallet-addr {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px; color: var(--text); word-break: break-all;
}
.cab-wallet-currency {
    font-size: 12px; color: var(--text); white-space: nowrap;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: .01em;
}
.cab-wallet-addr-full { display: none; }
@media (min-width: 900px) {
    .cab-wallet-addr-short { display: none; }
    .cab-wallet-addr-full { display: inline; }
}
.cab-wallet-actions {
    display: flex; align-items: center; justify-content: flex-end; gap: 8px;
    flex-wrap: wrap;
}
.cab-wallet-btn {
    display: inline-flex; align-items: center; gap: 6px;
    height: 32px; padding: 0 12px; border-radius: 8px;
    font-size: 12px; font-weight: 600; font-family: inherit;
    border: 1px solid var(--border); background: rgba(255,255,255,.04);
    color: var(--text); cursor: pointer; white-space: nowrap;
}
.cab-wallet-btn:hover { background: rgba(255,255,255,.08); }
.cab-wallet-btn.is-copied { border-color: rgba(19,196,92,.45); color: #13c45c; }
.cab-wallet-btn-dep {
    background: rgba(19,196,92,.14); border-color: rgba(19,196,92,.35); color: #13c45c;
}
.cab-wallet-btn-dep:hover { background: rgba(19,196,92,.22); }
.cab-wallet-btn-wd {
    background: rgba(74,158,255,.12); border-color: rgba(74,158,255,.35); color: #7db7ff;
}
.cab-wallet-btn-wd:hover { background: rgba(74,158,255,.2); }
.cab-wallet-empty {
    padding: 36px 20px; text-align: center; color: var(--muted); font-size: 13px;
}
.cab-wallet-note {
    margin: 0; padding: 0 16px 8px; font-size: 12px; color: var(--muted2); line-height: 1.45;
}
.cab-wallet-note:last-child { padding-bottom: 14px; }

/* Deposit modal */
.cab-dep-modal[hidden] { display: none !important; }
.cab-dep-modal {
    position: fixed; inset: 0; z-index: 220;
    display: grid; place-items: center; padding: 24px 16px;
}
.cab-dep-modal-backdrop {
    position: absolute; inset: 0; background: rgba(0,0,0,.68);
}
.cab-dep-modal-dialog {
    position: relative; z-index: 1;
    width: min(420px, 100%);
    background: #0f141e;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 24px 80px rgba(0,0,0,.55);
    padding: 28px 24px 22px;
    color: #fff;
}
.cab-dep-modal-dialog.cab-qd-dialog {
    width: min(760px, 100%);
    max-height: min(90vh, 820px);
    overflow: auto;
    padding: 24px 20px 18px;
}
.cab-qd-list { margin: 0 -4px; }
.cab-qd-table { width: 100%; border-collapse: collapse; }
.cab-qd-table th {
    text-align: left; font-size: 10px; font-weight: 600;
    letter-spacing: .04em; text-transform: uppercase; color: var(--muted2);
    padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.cab-qd-table td {
    padding: 10px; border-bottom: 1px solid rgba(255,255,255,.05);
    vertical-align: middle; font-size: 12px;
}
.cab-qd-table tr:last-child td { border-bottom: 0; }
.cab-qd-table .cab-wallet-dot { width: 24px; height: 24px; font-size: 10px; }
.cab-qd-table .cab-wallet-chain b { font-size: 12px; }
.cab-qd-table .cab-wallet-addr { font-size: 11px; }
.cab-qd-table .cab-wallet-currency { font-size: 11px; }
.cab-qd-table .cab-wallet-actions { gap: 6px; }
.cab-qd-table .cab-wallet-btn { height: 28px; padding: 0 10px; font-size: 11px; }
.cab-qd-note {
    margin: 12px 0 0; font-size: 11px; color: var(--muted2); line-height: 1.45;
}
.cab-qd-foot {
    margin-top: 14px; display: flex; justify-content: flex-end;
}
.cab-qd-foot a {
    font-size: 12px; color: #7db7ff; text-decoration: none;
}
.cab-qd-foot a:hover { text-decoration: underline; }
#cab-qd-modal { z-index: 220; }
#cab-dep-modal { z-index: 230; }
#cab-wd-modal { z-index: 230; }
.cab-dep-modal-close {
    position: absolute; top: 12px; right: 12px;
    width: 32px; height: 32px; border-radius: 8px;
    color: var(--muted); font-size: 22px; line-height: 1;
    display: grid; place-items: center; background: transparent; border: 0; cursor: pointer;
}
.cab-dep-modal-close:hover { background: rgba(255,255,255,.06); color: #fff; }
.cab-dep-title {
    margin: 0 0 4px; font-size: 18px; font-weight: 700; letter-spacing: -.02em;
}
.cab-dep-sub {
    margin: 0 0 18px; font-size: 13px; color: var(--muted);
}
.cab-dep-qr-wrap {
    display: flex; justify-content: center; margin-bottom: 16px;
}
.cab-dep-qr {
    background: #fff; padding: 12px; border-radius: 12px;
    display: inline-block; line-height: 0;
}
.cab-dep-qr img, .cab-dep-qr canvas { display: block; }
.cab-dep-addr-box {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px; padding: 12px 14px; margin-bottom: 12px;
}
.cab-dep-addr-box label {
    display: block; font-size: 11px; text-transform: uppercase;
    letter-spacing: .04em; color: var(--muted2); margin-bottom: 6px;
}
.cab-dep-addr-row {
    display: flex; align-items: flex-start; gap: 10px;
}
.cab-dep-addr-text {
    flex: 1; min-width: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px; word-break: break-all; line-height: 1.45;
}
.cab-dep-warn {
    margin: 0 0 14px; font-size: 12px; color: #fbbf24; line-height: 1.45;
}
.cab-dep-copy-full {
    width: 100%; height: 40px; border-radius: 10px;
    border: 1px solid rgba(19,196,92,.35);
    background: rgba(19,196,92,.14); color: #13c45c;
    font-size: 13px; font-weight: 700; font-family: inherit; cursor: pointer;
}
.cab-dep-copy-full:hover { background: rgba(19,196,92,.22); }
.cab-dep-copy-full.is-copied { color: #fff; background: #13c45c; border-color: #13c45c; }

/* Withdraw modal */
.cab-wd-balance {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px; padding: 14px 16px; margin-bottom: 16px;
}
.cab-wd-balance .l {
    display: block; font-size: 11px; text-transform: uppercase;
    letter-spacing: .04em; color: var(--muted2); margin-bottom: 4px;
}
.cab-wd-balance .v {
    font-size: 22px; font-weight: 700; letter-spacing: -.02em;
}
.cab-wd-balance .hint {
    display: block; margin-top: 6px; font-size: 11px; color: var(--muted2); line-height: 1.4;
}
.cab-wd-field { margin-bottom: 14px; }
.cab-wd-field label {
    display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px;
}
.cab-wd-field input {
    width: 100%; height: 42px; border-radius: 10px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.25); color: #fff;
    padding: 0 14px; font-size: 15px; font-family: inherit;
    box-sizing: border-box;
}
.cab-wd-field input:focus {
    outline: none; border-color: rgba(74,158,255,.55);
}
.cab-wd-field input.is-invalid {
    border-color: rgba(239,68,68,.55);
}
.cab-wd-err {
    margin: -6px 0 12px; font-size: 12px; color: #fca5a5; min-height: 0;
}
.cab-wd-err:empty { display: none; }
.cab-wd-submit {
    width: 100%; height: 42px; border-radius: 10px;
    border: 1px solid rgba(74,158,255,.4);
    background: rgba(74,158,255,.18); color: #9ec9ff;
    font-size: 13px; font-weight: 700; font-family: inherit; cursor: pointer;
}
.cab-wd-submit:hover { background: rgba(74,158,255,.28); }
.cab-wd-submit:disabled {
    opacity: .45; cursor: not-allowed;
}

/* PARTNER PROGRAM / REWARDS */
.cab-rewards-page { display: flex; flex-direction: column; gap: 20px; }
.cab-rewards-head {
    display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
    gap: 16px 24px;
}
.cab-rewards-head-text { flex: 1; min-width: 220px; max-width: 560px; }
.cab-rewards-head h1 {
    margin: 0 0 8px; font-size: 26px; font-weight: 700; letter-spacing: -.03em;
}
.cab-rewards-head p {
    margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5;
}
.cab-rewards-ref {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 8px 10px 8px 14px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 999px;
    max-width: 100%;
}
.cab-rewards-ref-label {
    font-size: 11px; font-weight: 600; text-transform: uppercase;
    letter-spacing: .04em; color: var(--muted2); white-space: nowrap;
}
.cab-rewards-ref-url {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px; color: var(--text); max-width: 240px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cab-rewards-copy {
    height: 32px; padding: 0 14px; border-radius: 999px;
    border: 1px solid rgba(19,196,92,.4);
    background: rgba(19,196,92,.14); color: var(--green);
    font-size: 12px; font-weight: 700; font-family: inherit; cursor: pointer;
    white-space: nowrap;
}
.cab-rewards-copy:hover { background: rgba(19,196,92,.22); }
.cab-rewards-copy.is-copied { background: var(--green); color: #fff; border-color: var(--green); }
.cab-rewards-err {
    padding: 12px 14px; border-radius: 10px;
    background: var(--red-dim); color: #fca5a5; font-size: 13px;
}
.cab-rewards-tiers {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}
.cab-rewards-tier {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 12px 14px;
    text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    min-height: 100%;
}
.cab-rewards-tier.is-current {
    border-color: rgba(19,196,92,.55);
    box-shadow: 0 0 0 1px rgba(19,196,92,.25);
}
.cab-rewards-tier.is-locked { opacity: .72; }
.cab-rewards-tier-icon img {
    width: 52px; height: 52px; object-fit: contain; display: block;
}
.cab-rewards-tier-name {
    margin: 2px 0 0; font-size: 13px; font-weight: 600;
}
.cab-rewards-tier-pct {
    font-size: 22px; font-weight: 700; color: var(--green); letter-spacing: -.02em; line-height: 1.1;
}
.cab-rewards-tier-boost {
    margin: 2px 0 0; font-size: 11px; font-weight: 600; color: var(--green); line-height: 1.3;
}
.cab-rewards-tier-req {
    margin: 0; font-size: 11px; color: var(--muted2); line-height: 1.3;
}
.cab-rewards-tier-bar {
    width: 100%; height: 4px; border-radius: 2px;
    background: rgba(255,255,255,.08); overflow: hidden; margin-top: 4px;
}
html[data-theme="light"] .cab-rewards-tier-bar { background: rgba(15,23,42,.08); }
.cab-rewards-tier-bar i {
    display: block; height: 100%; border-radius: 2px;
    background: var(--green); width: 0;
}
.cab-rewards-tier-status {
    display: inline-flex; align-items: center; justify-content: center; gap: 4px;
    font-size: 11px; color: var(--muted2); margin-top: 2px; min-height: 18px;
}
.cab-rewards-tier-status.is-current { color: var(--green); font-weight: 600; }
.cab-rewards-tier-status.is-done { color: var(--muted); }
.cab-rewards-lock { width: 12px; height: 12px; flex-shrink: 0; }
.cab-rewards-mid,
.cab-rewards-bottom {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 14px;
}
.cab-rewards-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
}
.cab-rewards-card h2 {
    margin: 0 0 14px; font-size: 15px; font-weight: 700; letter-spacing: -.01em;
}
.cab-rewards-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 18px;
}
.cab-rewards-stat .l {
    display: block; font-size: 11px; text-transform: uppercase;
    letter-spacing: .04em; color: var(--muted2); margin-bottom: 4px;
}
.cab-rewards-stat .v {
    font-size: 20px; font-weight: 700; letter-spacing: -.02em;
}
.cab-rewards-stat-level {
    display: inline-flex; align-items: center; gap: 8px;
}
.cab-rewards-stat-level img { width: 22px; height: 22px; object-fit: contain; }
.cab-rewards-earn-top {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    margin-bottom: 8px;
}
.cab-rewards-earn-top h2 { margin: 0; }
.cab-rewards-growth {
    display: inline-flex; align-items: center;
    height: 24px; padding: 0 10px; border-radius: 999px;
    background: var(--green-dim); color: var(--green);
    font-size: 12px; font-weight: 700;
}
.cab-rewards-earn-amt {
    font-size: 32px; font-weight: 700; letter-spacing: -.03em; margin-bottom: 6px;
}
.cab-rewards-earn-avail {
    margin: 0 0 16px; font-size: 13px; color: var(--muted);
}
.cab-rewards-earn-avail strong { color: var(--text); font-weight: 600; }
.cab-rewards-withdraw-btn {
    width: 100%; height: 42px; border-radius: 10px;
    border: 1px solid rgba(19,196,92,.4);
    background: rgba(19,196,92,.16); color: var(--green);
    font-size: 13px; font-weight: 700; font-family: inherit; cursor: pointer;
}
.cab-rewards-withdraw-btn:hover { background: rgba(19,196,92,.26); }
.cab-rewards-withdraw-btn:disabled { opacity: .45; cursor: not-allowed; }
.cab-rewards-steps {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: 14px;
}
.cab-rewards-steps li {
    display: flex; gap: 12px; align-items: flex-start;
}
.cab-rewards-steps .n {
    flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--green-dim); color: var(--green);
    font-size: 13px; font-weight: 700;
}
.cab-rewards-steps b { display: block; font-size: 13px; margin-bottom: 2px; }
.cab-rewards-steps p { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.45; }
.cab-rewards-checks {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: 12px;
}
.cab-rewards-checks li {
    display: flex; gap: 10px; align-items: flex-start;
    font-size: 13px; color: var(--muted); line-height: 1.45;
}
.cab-rewards-checks svg {
    flex-shrink: 0; width: 18px; height: 18px; margin-top: 1px; color: var(--green);
}
.cab-rewards-checks strong { color: var(--text); font-weight: 600; }
#cab-rewards-wd-modal { z-index: 230; }
@media (max-width: 1100px) {
    .cab-rewards-tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    /* Tiers: horizontal swipe instead of 2-col tile grid */
    .cab-rewards-tiers {
        display: flex;
        flex-wrap: nowrap;
        gap: 12px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding: 2px 2px 10px;
        margin-inline: -4px;
        scrollbar-width: thin;
        scrollbar-color: rgba(255,255,255,.2) transparent;
    }
    .cab-rewards-tiers::-webkit-scrollbar { height: 4px; }
    .cab-rewards-tiers::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,.22);
        border-radius: 4px;
    }
    .cab-rewards-tier {
        flex: 0 0 auto;
        width: min(156px, 46vw);
        min-height: 0;
        scroll-snap-align: start;
    }
    .cab-rewards-mid, .cab-rewards-bottom { grid-template-columns: 1fr; }
    .cab-rewards-ref { border-radius: 12px; }
    .cab-rewards-ref-url { max-width: 160px; }
    .cab-rewards-earn-amt { font-size: 28px; }
}

/* SETTINGS */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}
.set-card {
    grid-column: span 2;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    min-height: 120px;
    display: flex; flex-direction: column;
    transition: background .15s;
    text-align: left;
    color: inherit;
    font-family: inherit;
    cursor: pointer;
    width: 100%;
}
.set-card:hover { background: var(--card-hover); }
a.set-card { text-decoration: none; }
.set-card.wide { grid-column: span 6; }
.set-card .ico {
    width: 28px; height: 28px; margin-bottom: 12px; color: var(--muted);
}
.set-card .ico.warn { color: #ef4444; }
.set-card h3 {
    margin: 0 0 6px; font-size: 13px; font-weight: 700;
    letter-spacing: .04em; text-transform: uppercase;
}
.set-card p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.4; flex: 1; }
.set-card .chev {
    align-self: flex-end; margin-top: 10px; color: var(--muted2); font-size: 18px;
}
.set-progress {
    margin-top: 10px; height: 4px; border-radius: 2px;
    background: rgba(255,255,255,.1); overflow: hidden;
}
.set-progress > i { display: block; height: 100%; background: var(--green); }
.version {
    text-align: center; margin-top: 36px;
    font-size: 11px; color: var(--muted2); letter-spacing: .04em;
}

.demo-banner {
    margin-bottom: 16px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(74,158,255,.12);
    border: 1px solid rgba(74,158,255,.25);
    font-size: 12px; color: #b6d4ff;
}

/* responsive */
@media (max-width: 1100px) {
    .home-grid { grid-template-columns: 1fr; }
    .home-hero { grid-template-columns: 1fr; }
    .feat-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
    .app, .app.is-collapsed { grid-template-columns: 1fr; }
    .sidebar {
        position: fixed; left: 0; top: 0;
        width: min(280px, 86vw);
        transform: translateX(-105%);
        transition: transform .22s ease;
        box-shadow: 8px 0 32px rgba(0,0,0,.4);
    }
    .app.mobile-open .sidebar { transform: translateX(0); }
    .app.is-collapsed .logo,
    .app.is-collapsed .demo-account,
    .app.is-collapsed .account-pill,
    .app.is-collapsed .profile-meta,
    .app.is-collapsed .profile-complete,
    .app.is-collapsed .more-label,
    .app.is-collapsed .nav-main a span,
    .app.is-collapsed .nav-more a span,
    .app.is-collapsed .nav-more .badge,
    .app.is-collapsed .btn-deposit { display: revert; }
    .app.is-collapsed .nav-main .ico { display: none; }
    .app.is-collapsed .nav-more { display: block; }
    .app.is-collapsed .sb-foot .btn-deposit { display: block; }
    .portfolio-footer, .app.is-collapsed .portfolio-footer { left: 0; }
    .settings-grid { grid-template-columns: 1fr 1fr; }
    .set-card { grid-column: span 1; }
    .set-card.wide { grid-column: span 2; }
    .movers-cols { grid-template-columns: 1fr; }
    .mob-menu {
        display: grid !important;
    }
}
.mob-menu { display: none; }
@media (max-width: 560px) {
    .feat-row { grid-template-columns: 1fr; }
    .settings-grid { grid-template-columns: 1fr; }
    .content { padding: 16px 14px 40px; }
    .cab-esport-strip { padding: 12px 14px 8px; }
    .portfolio-footer {
        font-size: 12px;
        padding: 0 10px;
        grid-template-columns: 1fr 12px 1fr 12px 1fr 12px 1fr;
    }
    .pf-metric .v { font-size: 13px; }
}
