/* ==========================================================================
   Base / reset / theme tokens
   ========================================================================== */

@font-face {
    font-family: 'Inter';
    font-display: swap;
    font-style: normal;
    font-weight: 400;
    src: url('../font.php?name=Inter-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Inter';
    font-display: swap;
    font-style: normal;
    font-weight: 700;
    src: url('../font.php?name=Inter-Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'Eternalo';
    font-display: swap;
    font-style: normal;
    font-weight: 700;
    src: url('../font.php?name=Eternalo.ttf') format('truetype');
}

* {
    box-sizing: border-box;
}

html {
    scrollbar-color: rgba(201, 150, 69, 0.7) rgba(11, 23, 35, 0.45);
    scrollbar-width: thin;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 6px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
    background: rgba(11, 23, 35, 0.45);
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
    background: rgba(201, 150, 69, 0.7);
    border-radius: 999px;
}

body {
    margin: 0;
    background: #06101a;
    color: #f8edd1;
    font-family: 'Inter', Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ==========================================================================
   Utilities: spacing, grid, flex, visibility
   ========================================================================== */

.mt-12 { margin-top: 12px; }
.mt-14 { margin-top: 14px; }
.mt-16 { margin-top: 16px; }
.mt-18 { margin-top: 18px; }
.mb-18 { margin-bottom: 18px; }
.stack-sm > * + * { margin-top: 12px; }
.stack-md > * + * { margin-top: 18px; }
.cluster,
.cluster-between {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.cluster-between {
    align-items: flex-start;
    justify-content: space-between;
}
.grid-auto-200 {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.grid-auto-300 {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.panel-section { margin-top: 18px; }
.no-margin { margin: 0; }
.inline-heading { display: inline; margin: 0; }
.block-muted { display: block; margin-top: 8px; }
.two-column-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr);
}
@media (max-width: 760px) {
    .two-column-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Layout shell / sidebar / topbar / footer
   ========================================================================== */

.topbar {
    align-items: center;
    background: #0b1723;
    border-bottom: 1px solid rgba(209, 160, 82, 0.34);
    display: flex;
    gap: 20px;
    justify-content: space-between;
    min-height: 64px;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.brand {
    align-items: center;
    color: #f4c76a;
    display: inline-flex;
    font-size: 22px;
    font-weight: 800;
    gap: 10px;
    white-space: nowrap;
}

.brand span {
    font-family: 'Eternalo', Arial, Helvetica, sans-serif;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.brand-logo {
    display: block;
    height: 38px;
    width: 38px;
}

.coin-logo {
    background: rgba(248, 237, 209, 0.08);
    border: 1px solid rgba(209, 160, 82, 0.26);
    border-radius: 999px;
    display: block;
    object-fit: contain;
}

.coin-logo-under {
    height: 30px;
    margin-top: 6px;
    padding: 4px;
    width: 30px;
}

.nav {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.nav form {
    margin: 0;
}

.button .action-icon,
button .action-icon {
    display: inline-block;
    flex: 0 0 auto;
    height: 18px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
    fill: none;
    vertical-align: -3px;
    width: 18px;
}

.button .action-icon path,
button .action-icon path {
    vector-effect: non-scaling-stroke;
}

.button-label {
    display: inline-block;
    margin-left: 4px;
}

.sidebar-view-submit {
    font-size: 12px;
    padding: 8px 10px;
}

.nav a {
    border-radius: 8px;
    color: #e2c892;
    font-size: 14px;
    padding: 9px 11px;
}

.nav-button {
    background: #17263a;
    border-radius: 8px;
    font-size: 14px;
    padding: 9px 11px;
}

.nav a:hover,
.nav a.active,
.nav-button:hover {
    background: #2a2418;
    color: #f8edd1;
}

.shell {
    margin: 0 auto;
    max-width: 1240px;
    padding: 28px;
}

.site-footer {
    color: #b89f6e;
    font-family: 'Eternalo', Arial, Helvetica, sans-serif;
    font-size: 18px;
    padding: 10px 28px 26px;
    text-align: center;
}

.wide-page .shell {
    max-width: none;
    padding-left: 18px;
    padding-right: 18px;
}

/* ==========================================================================
   Components: hero, panel, table, badge, button, forms, pagination, toast, loading overlay
   ========================================================================== */

.hero,
.panel,
.table-wrap {
    background: #0b1723;
    border: 1px solid rgba(209, 160, 82, 0.32);
    border-radius: 8px;
}

.hero {
    display: grid;
    gap: 20px;
    grid-template-columns: 1.4fr 0.6fr;
    margin-bottom: 22px;
    padding: 28px;
}

.screener-page .hero {
    background:
        radial-gradient(circle at 12% 18%, rgba(94, 234, 212, 0.12), transparent 30%),
        radial-gradient(circle at 88% 16%, rgba(244, 199, 106, 0.14), transparent 32%),
        linear-gradient(135deg, rgba(11, 23, 35, 0.98), rgba(10, 18, 31, 0.98));
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(248, 237, 209, 0.04);
    overflow: hidden;
    position: relative;
}

.screener-page .hero::after {
    background: linear-gradient(90deg, transparent, rgba(244, 199, 106, 0.18), transparent);
    content: '';
    height: 1px;
    left: 28px;
    opacity: 0.8;
    position: absolute;
    right: 28px;
    top: 0;
}

.screener-hero-pulse {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.screener-hero-pulse span {
    background: rgba(248, 237, 209, 0.06);
    border: 1px solid rgba(209, 160, 82, 0.26);
    border-radius: 999px;
    color: #d3bf91;
    display: inline-flex;
    font-size: 12px;
    gap: 5px;
    padding: 7px 10px;
}

.screener-hero-pulse strong {
    color: #f4c76a;
}

.hero.single-hero {
    grid-template-columns: 1fr;
}

.page-hero-single {
    grid-template-columns: 1fr;
}

.page-hero-command {
    align-items: stretch;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
    overflow: hidden;
    position: relative;
}

.page-hero-default,
.page-hero-command {
    background:
        radial-gradient(circle at 12% 18%, rgba(94, 234, 212, 0.12), transparent 30%),
        radial-gradient(circle at 88% 16%, rgba(244, 199, 106, 0.14), transparent 32%),
        linear-gradient(135deg, rgba(11, 23, 35, 0.98), rgba(10, 18, 31, 0.98));
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(248, 237, 209, 0.04);
    overflow: hidden;
    position: relative;
}

.page-hero-default::after,
.page-hero-command::after {
    background: linear-gradient(90deg, transparent, rgba(244, 199, 106, 0.18), transparent);
    content: '';
    height: 1px;
    left: 28px;
    opacity: 0.8;
    position: absolute;
    right: 28px;
    top: 0;
}

.page-hero-pills,
.page-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.page-hero-pills span {
    background: rgba(248, 237, 209, 0.06);
    border: 1px solid rgba(209, 160, 82, 0.26);
    border-radius: 999px;
    color: #d3bf91;
    display: inline-flex;
    font-size: 12px;
    gap: 5px;
    padding: 7px 10px;
}

.page-hero-pills strong {
    color: #f4c76a;
}

h1,
h2,
h3 {
    margin: 0 0 10px;
}

p {
    color: #d3bf91;
    line-height: 1.6;
    margin: 0 0 14px;
}

.muted {
    color: #b89f6e;
}

.grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel {
    padding: 20px;
}


.profile-grid {
    align-items: stretch;
}

.profile-card {
    background:
        radial-gradient(circle at 12% 18%, rgba(94, 234, 212, 0.12), transparent 28%),
        radial-gradient(circle at 88% 8%, rgba(244, 199, 106, 0.16), transparent 30%),
        #0b1723;
    display: grid;
    gap: 14px 22px;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
    overflow: hidden;
    position: relative;
}

.profile-card h1,
.profile-card > p,
.profile-card .credit-balance,
.profile-card .profile-spoiler {
    grid-column: 1;
}

.profile-card .actions,
.profile-card .avatar,
.profile-card h3,
.profile-card > p:last-child {
    grid-column: 2;
    justify-self: start;
}

.profile-card .actions {
    align-self: end;
    margin-top: 0;
}

.profile-card .avatar {
    border: 2px solid rgba(244, 199, 106, 0.5);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
    height: 76px;
    margin-top: 0;
    width: 76px;
}

.profile-card h3 {
    margin-bottom: 0;
}

.payment-card,
.coupon-card {
    background:
        linear-gradient(180deg, rgba(248, 237, 209, 0.035), transparent 34%),
        #0b1723;
}

.coupon-card {
    border-color: rgba(94, 234, 212, 0.34);
}

.profile-side-stack {
    display: grid;
    gap: 18px;
}

.tooltip-help-card {
    background:
        linear-gradient(180deg, rgba(248, 237, 209, 0.035), transparent 34%),
        #0b1723;
}

.stat {
    color: #f8edd1;
    font-size: 24px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.action-bar {
    margin-top: 14px;
}

.actions form {
    margin: 0;
}

.inline-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.section-heading {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 16px;
}

.button,
button,
input[type="submit"] {
    background: #c89645;
    border: 0;
    border-radius: 8px;
    color: #07101a;
    cursor: pointer;
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 14px;
}

.button.secondary,
button.secondary {
    background: #17263a;
    color: #f8edd1;
}

.button.ghost,
button.ghost {
    background: transparent;
    border: 1px solid rgba(209, 160, 82, 0.42);
    color: #f8edd1;
}

.button.active-filter {
    background: #d9ad5f;
    color: #07101a;
}

.button.danger,
button.danger {
    background: #b42318;
}

.button.disabled {
    background: #17263a;
    color: #9d895f;
    cursor: not-allowed;
    pointer-events: none;
}

.button[aria-label],
button[aria-label] {
    text-align: center;
}

.table-action[aria-label],
.compact-action[aria-label] {
    min-width: 42px;
    padding-left: 11px;
    padding-right: 11px;
}

/* --------------------------------------------------------------------------
   Component: forms
   -------------------------------------------------------------------------- */

input,
select,
textarea {
    background: #06101a;
    border: 1px solid rgba(209, 160, 82, 0.38);
    border-radius: 8px;
    color: #f8edd1;
    font-size: 14px;
    padding: 10px 12px;
    width: 100%;
}

label {
    color: #e2c892;
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 7px;
}

.field {
    margin-bottom: 14px;
}

.inline-checkbox {
    align-items: center;
    display: inline-flex;
    gap: 8px;
    margin: 10px 0 0;
}

.inline-checkbox input {
    width: auto;
}

.table-wrap {
    overflow-x: auto;
}

table {
    border-collapse: collapse;
    min-width: 820px;
    width: 100%;
}

th,
td {
    border-bottom: 1px solid rgba(209, 160, 82, 0.28);
    font-size: 14px;
    padding: 13px 14px;
    text-align: left;
    vertical-align: top;
}

th {
    background: #101d2c;
    color: #f4c76a;
    font-size: 12px;
    letter-spacing: 0;
    text-transform: uppercase;
}

tr:hover td {
    background: rgba(201, 150, 69, 0.08);
}

/* --------------------------------------------------------------------------
   Component: badges and labels
   -------------------------------------------------------------------------- */

.badge {
    --badge-bg: rgba(148, 163, 184, 0.16);
    --badge-border: rgba(203, 213, 225, 0.3);
    --badge-color: #cbd5e1;
    align-items: center;
    background: var(--badge-bg);
    border: 1px solid var(--badge-border);
    border-radius: 999px;
    color: var(--badge-color);
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    gap: 4px;
    line-height: 1.2;
    max-width: 100%;
    padding: 5px 9px;
    vertical-align: middle;
    white-space: nowrap;
}

.badge-variant-success,
.badge.approved,
.badge.success,
.badge.good,
.badge.target_hit {
    --badge-bg: rgba(45, 212, 191, 0.2);
    --badge-border: rgba(94, 234, 212, 0.45);
    --badge-color: #7dd3fc;
}

.badge.label-golden {
    --badge-bg: rgba(245, 158, 11, 0.16);
    --badge-border: rgba(252, 211, 77, 0.28);
    --badge-color: #fcd34d;
}

.badge-variant-good,
.badge.label-good {
    --badge-bg: rgba(6, 182, 212, 0.14);
    --badge-border: rgba(103, 232, 249, 0.28);
    --badge-color: #67e8f9;
}

.badge-variant-warning,
.badge-variant-watch,
.badge-variant-pending,
.badge.pending,
.badge.warning,
.badge.watch,
.badge.open,
.badge.waiting_admin {
    --badge-bg: rgba(201, 150, 69, 0.22);
    --badge-border: rgba(251, 191, 36, 0.36);
    --badge-color: #f4c76a;
}

.badge.label-watch {
    --badge-bg: rgba(129, 140, 248, 0.16);
    --badge-border: rgba(165, 180, 252, 0.28);
    --badge-color: #c4b5fd;
}

.badge-variant-danger,
.badge-variant-sell,
.badge-variant-rejected,
.badge.label-sell,
.badge.rejected,
.badge.danger,
.badge.sell,
.badge.stoploss_hit,
.badge.closed {
    --badge-bg: rgba(248, 113, 113, 0.18);
    --badge-border: rgba(252, 165, 165, 0.42);
    --badge-color: #fca5a5;
}

.badge-variant-neutral,
.badge-variant-empty,
.badge.label-empty,
.badge.empty,
.badge.neutral,
.badge.no_signal {
    --badge-bg: rgba(148, 163, 184, 0.16);
    --badge-border: rgba(203, 213, 225, 0.3);
    --badge-color: #cbd5e1;
}

.badge-variant-info,
.badge-variant-user-waiting,
.badge.waiting_user,
.badge.info,
.badge.user_waiting {
    --badge-bg: rgba(99, 102, 241, 0.22);
    --badge-border: rgba(165, 180, 252, 0.38);
    --badge-color: #c4b5fd;
}

.badge.Low,
.badge.high {
    --badge-bg: rgba(45, 212, 191, 0.2);
    --badge-border: rgba(94, 234, 212, 0.45);
    --badge-color: #7dd3fc;
}

.badge.Medium,
.badge.medium {
    --badge-bg: rgba(201, 150, 69, 0.22);
    --badge-border: rgba(251, 191, 36, 0.36);
    --badge-color: #f4c76a;
}

.badge.High,
.badge.low {
    --badge-bg: rgba(248, 113, 113, 0.18);
    --badge-border: rgba(252, 165, 165, 0.42);
    --badge-color: #fca5a5;
}

.badge.warning-badge {
    --badge-bg: rgba(245, 158, 11, 0.16);
    --badge-border: rgba(252, 211, 77, 0.34);
    --badge-color: #fcd34d;
    margin-top: 6px;
}

.score-badge {
    border-radius: 999px;
    display: inline-flex;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
    min-width: 44px;
    justify-content: center;
    padding: 9px 12px;
}

.score-badge.score-high {
    background: #103c2f;
    color: #5ee0aa;
}

.score-badge.score-mid {
    background: rgba(201, 150, 69, 0.26);
    color: #f4c76a;
}

.score-badge.score-low {
    background: #4a1f1f;
    color: #ff938c;
}

.score-confidence-stack {
    align-items: flex-start;
    display: grid;
    gap: 6px;
}

.score-line {
    align-items: center;
    display: flex;
    gap: 6px;
}

.score-label {
    color: #b89f6e;
    font-size: 12px;
    font-weight: 800;
}

.confidence-line {
    align-items: center;
    color: #b89f6e;
    display: flex;
    flex-wrap: wrap;
    font-size: 11px;
    font-weight: 800;
    gap: 5px;
    letter-spacing: 0.02em;
}

.confidence-badge {
    border-radius: 999px;
    display: inline-flex;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    padding: 5px 7px;
}

.confidence-badge.confidence-high {
    background: rgba(16, 60, 47, 0.92);
    color: #5ee0aa;
}

.confidence-badge.confidence-mid {
    background: rgba(201, 150, 69, 0.26);
    color: #f4c76a;
}

.confidence-badge.confidence-low {
    background: rgba(74, 31, 31, 0.92);
    color: #ff938c;
}

.signal-label {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 7px;
    max-width: 100%;
    padding: 6px 10px;
    vertical-align: middle;
    white-space: nowrap;
}

.signal-label.badge-variant-success {
    background: rgba(45, 212, 191, 0.2);
    border: 1px solid rgba(94, 234, 212, 0.45);
    color: #7dd3fc;
}

.signal-label.label-golden {
    background: rgba(245, 158, 11, 0.16);
    border: 1px solid rgba(252, 211, 77, 0.28);
    color: #fcd34d;
}

.signal-label.badge-variant-good,
.signal-label.label-good {
    background: rgba(6, 182, 212, 0.14);
    border: 1px solid rgba(103, 232, 249, 0.28);
    color: #67e8f9;
}

.signal-label.badge-variant-warning,
.signal-label.badge-variant-watch,
.signal-label.badge-variant-pending {
    background: rgba(201, 150, 69, 0.22);
    border: 1px solid rgba(251, 191, 36, 0.36);
    color: #f4c76a;
}

.signal-label.label-watch {
    background: rgba(129, 140, 248, 0.16);
    border: 1px solid rgba(165, 180, 252, 0.28);
    color: #c4b5fd;
}

.signal-label.badge-variant-danger,
.signal-label.badge-variant-sell,
.signal-label.badge-variant-rejected,
.signal-label.label-sell {
    background: rgba(248, 113, 113, 0.18);
    border: 1px solid rgba(252, 165, 165, 0.42);
    color: #fca5a5;
}

.signal-label.badge-variant-neutral,
.signal-label.badge-variant-empty,
.signal-label.label-empty {
    background: rgba(148, 163, 184, 0.16);
    border: 1px solid rgba(203, 213, 225, 0.3);
    color: #cbd5e1;
}

.signal-label.badge-variant-info,
.signal-label.badge-variant-user-waiting {
    background: rgba(99, 102, 241, 0.22);
    border: 1px solid rgba(165, 180, 252, 0.38);
    color: #c4b5fd;
}

.alert {
    border-radius: 8px;
    margin-bottom: 18px;
    padding: 13px 15px;
    white-space: pre-wrap;
}

.alert.success {
    background: #103c2f;
}

.alert.warning {
    background: rgba(201, 150, 69, 0.16);
}

.alert.error {
    background: #4a1f1f;
}

/* ==========================================================================
   Pages: screener, advanced screener, indodax, market radar, market overview, admin status, news/blog
   ========================================================================== */

/* Page: screener */

.filters {
    align-items: end;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    margin-bottom: 18px;
}

.filters button {
    align-self: end;
}

.filters.search-filter {
    grid-template-columns: 1fr auto;
}

.filters.users-filter {
    grid-template-columns: minmax(220px, 1fr) minmax(180px, 240px) auto;
}

.screener-filter-strip {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
    max-width: 100%;
    min-width: 0;
    width: 100%;
}

.screener-filters {
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(170px, 1.1fr) minmax(140px, 1fr) minmax(132px, 0.92fr) repeat(3, minmax(112px, 0.78fr)) minmax(98px, 0.62fr);
    justify-content: center;
    margin-bottom: 0;
    max-width: 1500px;
    min-width: 0;
    width: 100%;
}

.screener-filters > div,
.screener-filters button {
    min-width: 0;
}

.screener-filters button {
    min-width: 112px;
}

.range-filter {
    min-width: 0;
}

.range-filter-head {
    align-items: center;
    display: flex;
    gap: 5px;
    justify-content: space-between;
    margin-bottom: 5px;
}

.range-filter-head label {
    margin-bottom: 0;
}

.range-filter output {
    color: #f4c76a;
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 800;
}

.range-filter input[type="range"] {
    accent-color: #c89645;
    cursor: pointer;
    padding: 0;
}

/* Page: news / blog */

.blog-category-nav {
    align-items: center;
}

.blog-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
}


.app-watermarked-image {
    container-type: inline-size;
    display: block;
    position: relative;
    user-select: none;
    width: 100%;
}

.app-watermarked-image img {
    display: block;
    height: auto;
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
    width: 100%;
}

.app-watermarked-image::after {
    content: '';
    inset: 0;
    position: absolute;
    z-index: 2;
}

.app-watermark-overlay {
    background: #d59a38;
    border-radius: 999px;
    bottom: var(--app-watermark-bottom-offset, 14px);
    color: var(--app-watermark-color, #102032);
    font-family: var(--app-watermark-font-family, 'Eternalo'), Arial, Helvetica, sans-serif;
    font-size: var(--app-watermark-font-size, max(8.4pt, 1.4cqw));
    font-weight: 700;
    left: 50%;
    line-height: 1;
    max-width: calc(100% - 28px);
    opacity: var(--app-watermark-opacity, 1);
    overflow: hidden;
    padding: var(--app-watermark-padding-y, max(4px, 0.5cqw)) var(--app-watermark-padding-x, max(8px, 1cqw));
    pointer-events: none;
    position: absolute;
    text-align: center;
    text-overflow: ellipsis;
    text-shadow: none;
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 3;
}

.blog-card-watermark {
    margin-bottom: 14px;
}

.blog-hero-watermark {
    margin: 18px 0;
}

.blog-card-watermark .blog-card-image,
.blog-hero-watermark .blog-hero-image {
    margin: 0;
}

.blog-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.blog-card h2,
.blog-card h3 {
    margin-top: 8px;
}

.blog-card p {
    flex: 1 1 auto;
}

.blog-card-image,
.blog-hero-image {
    background: #06101a;
    border: 1px solid rgba(209, 160, 82, 0.3);
    border-radius: 8px;
    display: block;
    object-fit: cover;
    width: 100%;
}

.blog-card-image {
    aspect-ratio: 16 / 9;
    margin-bottom: 14px;
}

.blog-hero-image {
    height: auto;
    margin: 18px 0;
    max-height: none;
    object-fit: contain;
}

.blog-category {
    align-self: flex-start;
    background: rgba(201, 150, 69, 0.18);
    border: 1px solid rgba(209, 160, 82, 0.42);
    border-radius: 999px;
    color: #f4c76a;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 9px;
}

.blog-post {
    margin: 0 auto;
    max-width: 900px;
}

.blog-post-header h1 {
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.05;
    margin-top: 16px;
}

.blog-body {
    color: #e2c892;
    font-size: 17px;
    line-height: 1.85;
}

.blog-body p {
    color: #e2c892;
    font-size: 17px;
    line-height: 1.85;
    margin-bottom: 18px;
}

.blog-body h1,
.blog-body h2,
.blog-body h3,
.blog-body h4 {
    color: #f8edd1;
    line-height: 1.25;
    margin: 30px 0 12px;
}

.blog-body h1 {
    font-size: 30px;
    margin-left: 0;
}

.blog-body h2 {
    font-size: 24px;
    margin-left: 12px;
}

.blog-body h3 {
    font-size: 20px;
    margin-left: 28px;
}

.blog-body h4 {
    font-size: 18px;
    margin-left: 44px;
}

.blog-body ul,
.blog-body ol {
    color: #e2c892;
    line-height: 1.8;
    margin: 0 0 18px 0;
    padding-left: 32px;
}

.blog-body li {
    margin-bottom: 8px;
}

.blog-body li > ul,
.blog-body li > ol {
    margin: 8px 0 0;
    padding-left: 28px;
}

.blog-table-wrap {
    margin: 18px 0 24px;
    overflow-x: auto;
}

.blog-body table {
    border-collapse: collapse;
    min-width: 520px;
    width: 100%;
}

.blog-body th,
.blog-body td {
    border: 1px solid rgba(209, 160, 82, 0.28);
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

.blog-body th {
    background: rgba(209, 160, 82, 0.12);
    color: #f8edd1;
    font-weight: 700;
}

.blog-body hr {
    background: linear-gradient(90deg, transparent, rgba(209, 160, 82, 0.62), transparent);
    border: 0;
    height: 1px;
    margin: 28px 0;
}

.blog-body blockquote {
    background: #06101a;
    border-left: 4px solid #c89645;
    border-radius: 8px;
    margin: 18px 0;
    padding: 12px 16px;
}

.blog-body blockquote p {
    margin-bottom: 0;
}

.blog-body pre {
    background: #050914;
    border: 1px solid rgba(209, 160, 82, 0.28);
    border-radius: 8px;
    color: #e2c892;
    overflow-x: auto;
    padding: 14px;
}

.blog-body code {
    background: #050914;
    border: 1px solid rgba(209, 160, 82, 0.28);
    border-radius: 6px;
    color: #f4c76a;
    font-family: Consolas, Monaco, monospace;
    font-size: 0.92em;
    padding: 2px 5px;
}

.blog-body pre code {
    background: transparent;
    border: 0;
    padding: 0;
}

.blog-body a {
    color: #f4c76a;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.blog-body-preview {
    position: relative;
}

.blog-body-preview::after {
    content: none;
}

.medium-login-wall {
    align-items: center;
    background: #06101a;
    border: 1px solid rgba(209, 160, 82, 0.38);
    border-radius: 8px;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-top: 20px;
    padding: 20px;
}

.medium-login-wall p {
    margin-bottom: 0;
}

.blog-admin-grid {
    align-items: start;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
}

.blog-admin-grid > .panel {
    min-width: 0;
}

.blog-admin-list-panel {
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    padding: 14px;
}

.blog-admin-list-panel h2 {
    font-size: 22px;
    margin-bottom: 10px;
}

.blog-admin-image-preview {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.blog-admin-image-preview img {
    border: 1px solid rgba(209, 160, 82, 0.28);
    border-radius: 8px;
    max-height: 180px;
    object-fit: cover;
    width: 100%;
}

.blog-admin-list {
    display: grid;
    gap: 6px;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.blog-admin-filters {
    gap: 8px;
    grid-template-columns: minmax(150px, 0.8fr) minmax(180px, 1fr) auto auto;
    margin-bottom: 8px;
}

.blog-admin-filters .field {
    margin-bottom: 0;
}

.blog-admin-filters label {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
}

.blog-admin-filters input,
.blog-admin-filters select,
.blog-admin-filters button,
.blog-admin-filters .button {
    min-height: 36px;
    padding: 7px 10px;
}

.blog-admin-list-panel > .muted {
    font-size: 13px;
    margin-bottom: 8px;
}

.blog-admin-row {
    align-items: center;
    background: #0d1428;
    border: 1px solid rgba(209, 160, 82, 0.28);
    border-radius: 8px;
    display: flex;
    gap: 8px;
    justify-content: space-between;
    max-width: 100%;
    min-height: 42px;
    min-width: 0;
    overflow: hidden;
    padding: 7px 9px;
    width: 100%;
}

.blog-admin-row h3 {
    flex: 1 1 auto;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.25;
    margin: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.blog-admin-row-actions {
    flex: 0 0 auto;
    gap: 4px;
    margin-top: 0;
}

.compact-action {
    align-items: center;
    display: inline-flex;
    font-size: 12px;
    height: 28px;
    justify-content: center;
    min-width: 28px;
    padding: 0 8px;
}

/* Page: market radar */

.radar-section {
    scroll-margin-top: 86px;
}

.radar-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.radar-board {
    background: #0b1723;
    border: 1px solid rgba(209, 160, 82, 0.28);
    border-radius: 8px;
    padding: 14px;
}

.radar-board-special {
    background: linear-gradient(160deg, rgba(201, 150, 69, 0.18), rgba(11, 23, 35, 0.98) 42%, rgba(6, 16, 26, 0.98));
    border-color: rgba(244, 199, 106, 0.36);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 12px 28px rgba(0, 0, 0, 0.16);
    position: relative;
}

.radar-board-special::before {
    border-radius: 999px;
    content: "";
    height: 4px;
    left: 14px;
    position: absolute;
    right: 14px;
    top: 0;
}

.radar-board-gatotkaca::before {
    background: linear-gradient(90deg, #fbbf24, #ef4444);
}

.radar-board-srikandi::before {
    background: linear-gradient(90deg, #22d3ee, #a78bfa);
}

.radar-board-semar::before {
    background: linear-gradient(90deg, #34d399, #facc15);
}

.radar-board-head {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 10px;
}

.radar-board h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.radar-board p {
    font-size: 13px;
    margin-bottom: 0;
}

.radar-logic-detail {
    background: rgba(6, 16, 26, 0.52);
    border: 1px solid rgba(209, 160, 82, 0.2);
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 8px 10px;
}

.radar-persona-image {
    background: #06101a;
    border: 1px solid rgba(209, 160, 82, 0.22);
    border-radius: 8px;
    display: block;
    height: auto;
    margin: 0 0 10px;
    object-fit: contain;
    width: 100%;
}


.radar-persona-watermark {
    margin: 0 0 10px;
}

.radar-persona-watermark .radar-persona-image {
    margin: 0;
}

.radar-logic-detail summary {
    color: #e2c892;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
}

.radar-logic-detail p {
    font-size: 12px;
    line-height: 1.45;
    margin: 8px 0 0;
}

.radar-list {
    display: grid;
    gap: 8px;
}

.radar-row {
    align-items: center;
    background: #0d1a28;
    border: 1px solid rgba(209, 160, 82, 0.24);
    border-radius: 8px;
    display: grid;
    gap: 10px;
    grid-template-columns: 32px 34px minmax(92px, 1fr) minmax(72px, auto) auto;
    padding: 10px;
}

.radar-rank {
    align-items: center;
    background: #2a2418;
    border-radius: 999px;
    color: #f4c76a;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    height: 28px;
    justify-content: center;
    width: 28px;
}

.radar-coin strong,
.radar-metric strong {
    color: #f8edd1;
    display: block;
}

.radar-coin span,
.radar-metric span,
.radar-extra span {
    color: #b89f6e;
    display: block;
    font-size: 12px;
}

.radar-logo-cell {
    align-items: center;
    display: flex;
    justify-content: center;
    min-width: 0;
}

.radar-coin-logo {
    height: 30px;
    padding: 4px;
    width: 30px;
}

.radar-extra {
    display: grid;
    gap: 3px;
}

.radar-actions {
    align-self: center;
    display: flex;
    gap: 7px;
    grid-column: 5;
    grid-row: 1;
    justify-content: flex-end;
    justify-self: end;
    min-width: 0;
}

.radar-actions .button {
    flex: 0 0 auto;
    white-space: nowrap;
}

.visual-pattern-note {
    color: #b89f6e;
    font-size: 12px;
    line-height: 1.4;
    margin-top: 8px;
    text-align: center;
}

.visual-pattern-note strong {
    color: #e2c892;
}

.avatar {
    border-radius: 50%;
    height: 54px;
    margin-top: 18px;
    object-fit: cover;
    width: 54px;
}

.credit-balance {
    margin: 16px 0;
}

.credit-balance .stat {
    font-size: 38px;
}

.compact-credit-form {
    align-items: center;
    display: inline-flex;
    gap: 8px;
    max-width: none;
    min-width: 0;
    white-space: nowrap;
    width: max-content;
}

.compact-credit-form input[type="number"] {
    flex: 0 0 96px;
    min-width: 96px;
    padding-left: 8px;
    padding-right: 8px;
    width: 96px !important;
}

.compact-credit-form input[type="text"],
.compact-credit-form input:not([type]) {
    flex: 0 0 150px;
    min-width: 150px;
    padding-left: 8px;
    padding-right: 8px;
    width: 150px !important;
}

.compact-credit-form button {
    flex: 0 0 auto;
    padding-left: 10px;
    padding-right: 10px;
}

.compact-credit-form button.icon-only {
    align-items: center;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    padding: 0;
    width: 34px;
}

.credit-edit-col {
    min-width: 210px;
    width: 210px;
    white-space: nowrap;
}

.admin-actions-col {
    min-width: 96px;
    width: 96px;
    white-space: nowrap;
}

.user-management-table {
    min-width: 1160px;
}

.login-card {
    margin: 80px auto;
    max-width: 520px;
}

.score-detail {
    font-size: 12px;
    line-height: 1.5;
    min-width: 420px;
}

.screener-table {
    min-width: 1280px;
    table-layout: fixed;
    width: 100%;
}

.screener-table .screener-col-rank {
    width: 64px;
}

.screener-table .screener-col-coin {
    width: 170px;
}

.screener-table .screener-col-market {
    width: 250px;
}

.screener-table .screener-col-score {
    width: 150px;
}

.screener-table .screener-col-actions {
    width: 112px;
}

.screener-table th,
.screener-table td {
    overflow-wrap: anywhere;
}

.screener-table th:nth-child(1),
.screener-table td[data-label="#"] {
    text-align: center;
}

.screener-rank-cell {
    vertical-align: middle;
}

.screener-rank-cell .rank-number {
    display: block;
    font-weight: 800;
    margin-bottom: 8px;
}

.screener-rank-cell .watch-toggle {
    margin-left: auto;
    margin-right: auto;
}

.screener-coin-cell .coin-logo-under {
    height: 44px;
    width: 44px;
}

.screener-coin-cell .mobile-coin-main {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.screener-coin-cell .coin-full-name {
    color: #b89f6e;
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.1;
}

.market-metrics-cell {
    min-width: 0;
}

.market-metric-chip {
    align-items: baseline;
    background: rgba(6, 16, 26, 0.36);
    border: 1px solid rgba(209, 160, 82, 0.14);
    border-radius: 8px;
    display: flex;
    gap: 6px;
    justify-content: space-between;
    margin-bottom: 6px;
    padding: 6px 8px;
}

.market-metric-chip:last-child {
    margin-bottom: 0;
}

.market-metric-chip span {
    color: #b89f6e;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.market-metric-chip strong {
    font-size: 12px;
    text-align: right;
}

.screener-table th:nth-child(5),
.screener-table td.score-detail {
    min-width: 0;
    width: auto;
}

.screener-table th:nth-child(6),
.screener-table td.row-actions-cell {
    min-width: 0;
    width: auto;
}

.screener-table .score-chip-list {
    max-width: none;
}

.market-radar-content.is-loading {
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    visibility: hidden;
}

.score-chip-list {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-width: 520px;
}

.score-chip {
    border-radius: 999px;
    display: inline-flex;
    font-weight: 400 !important;
    line-height: 1;
    padding: 6px 9px;
    white-space: nowrap;
}

.score-chip.plus {
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(94, 224, 170, 0.28);
    color: #6ee7b7;
}

.score-chip.volume {
    background: rgba(59, 130, 246, 0.16);
    border: 1px solid rgba(147, 197, 253, 0.28);
    color: #93c5fd;
}

.score-chip.momentum {
    background: rgba(217, 70, 239, 0.14);
    border: 1px solid rgba(240, 171, 252, 0.28);
    color: #f0abfc;
}

.score-chip.spread {
    background: rgba(6, 182, 212, 0.14);
    border: 1px solid rgba(103, 232, 249, 0.28);
    color: #67e8f9;
}

.score-chip.trend {
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(94, 224, 170, 0.28);
    color: #6ee7b7;
}

.score-chip.history {
    background: rgba(245, 158, 11, 0.16);
    border: 1px solid rgba(252, 211, 77, 0.28);
    color: #fcd34d;
}

.score-chip.liquidity {
    background: rgba(20, 184, 166, 0.16);
    border: 1px solid rgba(94, 234, 212, 0.28);
    color: #5eead4;
}

.score-chip.volatility {
    background: rgba(249, 115, 22, 0.16);
    border: 1px solid rgba(253, 186, 116, 0.28);
    color: #fdba74;
}

.score-chip.target {
    background: rgba(45, 212, 191, 0.16);
    border: 1px solid rgba(94, 234, 212, 0.28);
    color: #5eead4;
}

.score-chip.signal {
    background: rgba(129, 140, 248, 0.16);
    border: 1px solid rgba(165, 180, 252, 0.28);
    color: #c4b5fd;
}

.score-chip.minus {
    background: rgba(239, 68, 68, 0.16);
    border: 1px solid rgba(255, 147, 140, 0.28);
    color: #ff938c;
}

.ai-screener-context {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-top: 14px;
}

.timeframe-summary {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    margin-top: 14px;
}

.ai-screener-context > div,
.timeframe-summary > div {
    background: rgba(6, 16, 26, 0.62);
    border: 1px solid rgba(209, 160, 82, 0.3);
    border-radius: 8px;
    padding: 12px;
}

.ai-screener-context strong,
.timeframe-summary strong {
    display: block;
    font-size: 18px;
    margin-top: 4px;
}

.timeframe-summary small {
    color: #e2c892;
    display: block;
    margin-top: 4px;
}

.ai-screener-score-detail {
    grid-column: 1 / -1;
}


.ai-history-mobile-time {
    color: #b89f6e;
    display: none;
    font-size: 12px;
    font-weight: 700;
}

.ai-history-detail-grid {
    display: grid;
    gap: 8px;
}

.ai-history-detail-grid span {
    color: #b89f6e;
    font-weight: 700;
}

@media (max-width: 1100px) {
    .ai-screener-context {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .ai-screener-context {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 420px) {
    .ai-screener-context {
        grid-template-columns: 1fr;
    }
}

/* Page: AI analysis and shared screener detail */

.ai-info-groups {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
    margin-top: 18px;
}

.ai-info-group,
.ai-text-panel {
    background: rgba(6, 16, 26, 0.62);
    border: 1px solid rgba(209, 160, 82, 0.3);
    border-radius: 8px;
    padding: 16px;
}

.ai-info-group h3,
.ai-text-panel h3 {
    font-size: 15px;
    margin: 0 0 10px;
}

.ai-metric-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ai-metric-grid > div {
    align-items: center;
    background: rgba(11, 16, 32, 0.45);
    border: 1px solid rgba(209, 160, 82, 0.26);
    border-radius: 8px;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(96px, 0.85fr) minmax(0, 1.15fr);
    min-width: 0;
    padding: 10px 12px;
}

.ai-metric-grid > div.ai-metric-wide {
    grid-column: 1 / -1;
}

.ai-metric-label {
    color: #b89f6e;
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 0;
    text-transform: uppercase;
}

.ai-help-label {
    align-items: center;
    display: inline-flex;
    gap: 5px;
    line-height: 1.2;
    max-width: 100%;
    vertical-align: middle;
}

.ai-help-dot {
    align-items: center;
    background: rgba(201, 150, 69, 0.22);
    border: 1px solid rgba(209, 160, 82, 0.44);
    border-radius: 999px;
    color: #f4c76a;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 10px;
    font-weight: 800;
    height: 16px;
    justify-content: center;
    line-height: 1;
    text-transform: none;
    width: 16px;
}

.timeframe-summary small .ai-help-label {
    color: #e2c892;
    font-weight: 700;
}

.timeframe-summary small .ai-help-dot {
    height: 14px;
    width: 14px;
}

.ai-metric-grid strong {
    color: #f8edd1;
    display: block;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.45;
    overflow-wrap: anywhere;
    text-align: right;
}

.ai-text-panel {
    margin-top: 14px;
}

.ai-analysis-narrative {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ai-analysis-narrative p {
    color: #e2c892;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.ai-analysis-narrative p {
    background: rgba(248, 237, 209, 0.035);
    border: 1px solid rgba(209, 160, 82, 0.16);
    border-radius: 12px;
    padding: 12px 14px;
}

.ai-analysis-actions {
    align-items: stretch;
    display: flex;
    gap: 10px;
}

.ai-analysis-actions button,
.ai-analysis-actions .button {
    min-height: 44px;
}

.score-meta {
    color: #b89f6e;
    font-size: 12px;
    margin-top: 8px;
}

.risk-warning-list {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.risk-warning-title {
    color: #b89f6e;
    font-size: 12px;
    font-weight: 700;
}

.risk-warning-chip {
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;
    line-height: 1;
    padding: 6px 9px;
}

.risk-warning-chip.high {
    background: rgba(239, 68, 68, 0.16);
    border: 1px solid rgba(255, 147, 140, 0.28);
    color: #ff938c;
}

.risk-warning-chip.medium {
    background: rgba(245, 158, 11, 0.16);
    border: 1px solid rgba(252, 211, 77, 0.28);
    color: #fcd34d;
}

.detail-spoiler summary {
    display: none;
}

.metadata-cell {
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    word-break: break-word;
}

.user-log-table th:nth-child(3),
.user-log-table td:nth-child(3) {
    min-width: 320px;
    width: 34%;
}

.user-log-table th:nth-child(5),
.user-log-table td:nth-child(5) {
    max-width: 420px;
    width: 30%;
}

.profile-spoiler summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    font-size: 24px;
    font-weight: 800;
    justify-content: space-between;
    line-height: 1.2;
}

.profile-spoiler summary span {
    color: #b89f6e;
    font-size: 13px;
    font-weight: 500;
}

.profile-spoiler summary::-webkit-details-marker {
    display: none;
}

.profile-spoiler summary::after {
    color: #b89f6e;
    content: '+';
    font-size: 24px;
    line-height: 1;
    margin-left: 12px;
}

.profile-spoiler[open] summary {
    margin-bottom: 16px;
}

.profile-spoiler[open] summary::after {
    content: '-';
}

.toggle-setting {
    align-items: center;
    display: inline-flex;
    gap: 10px;
    margin-top: 8px;
}

.toggle-setting input {
    height: 18px;
    width: 18px;
}

.table-action {
    min-width: 86px;
    padding: 9px 12px;
    text-align: center;
}

.table-action.compact-action,
button.table-action.compact-action {
    min-width: 34px;
    padding: 9px 10px;
    width: auto;
}

.row-actions-cell {
    white-space: nowrap;
}

.row-actions-cell .table-action {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    min-height: 38px;
}

.row-actions-cell .button + .button,
.row-actions-cell .button + .disabled,
.row-actions-cell .disabled + .button {
    margin-left: 8px;
}

.screener-table .screener-row {
    position: relative;
    transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.screener-table .screener-row::before {
    content: none;
}

.screener-table .screener-row td:first-child {
    position: relative;
}

.screener-table .screener-row td:first-child::before {
    background: linear-gradient(180deg, rgba(184, 159, 110, 0.25), rgba(184, 159, 110, 0.02));
    bottom: 10px;
    content: '';
    left: 0;
    position: absolute;
    top: 10px;
    width: 3px;
}

.screener-table .screener-row.score-tier-high td:first-child::before {
    background: linear-gradient(180deg, #6ee7b7, rgba(94, 234, 212, 0.08));
}

.screener-table .screener-row.score-tier-mid td:first-child::before {
    background: linear-gradient(180deg, #f4c76a, rgba(244, 199, 106, 0.08));
}

.screener-table .screener-row:hover {
    background: rgba(248, 237, 209, 0.025);
    box-shadow: inset 0 0 0 1px rgba(209, 160, 82, 0.1);
}

.mobile-inline-label,
.mobile-price-under-score {
    display: none;
}

.coin-full-name,
.mobile-coin-price {
    display: none;
}

.mobile-coin-signal,
.mobile-score-signal {
    display: none;
}

.mobile-coin-main {
    display: contents;
}

.mobile-extra-metrics,
.mobile-detail-actions {
    display: none;
}

.mobile-performance-details {
    display: none;
}

.table-action.tiny-action,
button.table-action.tiny-action {
    border-radius: 8px;
    font-size: 13px;
    line-height: 1;
    min-height: 28px;
    min-width: 28px;
    padding: 6px 8px;
}

.help-tip {
    align-items: center;
    background: #2a2418;
    border: 1px solid rgba(209, 160, 82, 0.42);
    border-radius: 999px;
    color: #f4c76a;
    cursor: help;
    display: inline-flex;
    font-size: 11px;
    font-weight: 800;
    height: 18px;
    justify-content: center;
    margin-left: 5px;
    text-transform: none;
    vertical-align: middle;
    width: 18px;
}

body.tooltips-off .help-tip,
body.tooltips-off .ai-help-dot {
    display: none;
}

body.tooltips-off .has-tooltip {
    cursor: inherit;
}

.has-tooltip {
    cursor: help;
}

.tooltip-popover {
    animation: tooltipCardIn 0.22s ease both;
    background:
        radial-gradient(circle at 18% 0%, rgba(126, 231, 255, 0.16), transparent 34%),
        linear-gradient(145deg, rgba(8, 19, 31, 0.98), rgba(15, 32, 52, 0.98));
    border: 1px solid rgba(244, 199, 106, 0.46);
    border-radius: 18px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.46), 0 0 0 1px rgba(126, 231, 255, 0.08) inset;
    color: #f8edd1;
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
    max-width: calc(100vw - 36px);
    min-width: 260px;
    overflow-wrap: break-word;
    padding: 16px 18px;
    pointer-events: none;
    position: fixed;
    text-align: left;
    text-transform: none;
    white-space: normal;
    width: 380px;
    z-index: 9999;
}

.tooltip-popover.is-intro-tooltip {
    border-color: rgba(126, 231, 255, 0.58);
    padding: 18px 20px 18px 56px;
    width: min(430px, calc(100vw - 36px));
}

.tooltip-popover.is-intro-tooltip::before {
    align-items: center;
    background: linear-gradient(135deg, #f4c76a, #7ee7ff);
    border-radius: 16px;
    color: #06101a;
    content: '✦';
    display: flex;
    font-size: 18px;
    font-weight: 900;
    height: 34px;
    justify-content: center;
    left: 14px;
    position: absolute;
    top: 16px;
    width: 34px;
}

.tooltip-popover strong {
    color: #7ee7ff;
    display: block;
    font-size: 12px;
    letter-spacing: 0.12em;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.tooltip-popover p {
    margin: 0;
}

@keyframes tooltipCardIn {
    from { opacity: 0; transform: translate3d(0, 8px, 0) scale(0.96); }
    to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

.inline-action-form {
    display: inline-block;
    margin: 0;
}

.inline-action-form input[type="hidden"] {
    display: none;
}

.inline-action-form .table-action {
    width: 100%;
}

.ai-hit-box {
    background: #06101a;
    border: 1px solid rgba(209, 160, 82, 0.28);
    border-radius: 8px;
    margin-top: 18px;
    padding: 16px;
}

.ai-hit-box p:last-child {
    color: #f8edd1;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 0;
}

.analysis-meta-box {
    background: #06101a;
    border: 1px solid rgba(209, 160, 82, 0.28);
    border-radius: 8px;
    color: #b89f6e;
    font-size: 13px;
    line-height: 1.5;
    margin-top: 8px;
    padding: 12px 14px;
}

.analysis-coin-header {
    align-items: center;
    display: flex;
    gap: 16px;
    margin: 12px 0 18px;
    min-width: 0;
}

.analysis-coin-logo {
    background: rgba(248, 237, 209, 0.08);
    border: 1px solid rgba(209, 160, 82, 0.28);
    border-radius: 999px;
    display: block;
    flex: 0 0 auto;
    height: 72px;
    object-fit: contain;
    padding: 8px;
    width: 72px;
}

.analysis-pair {
    color: #f8edd1;
    font-size: 30px;
    font-weight: 800;
    margin: 0;
    overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
   Component: pagination
   -------------------------------------------------------------------------- */

.pagination {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 18px;
}

.json-pre {
    background: #06101a;
    border: 1px solid rgba(209, 160, 82, 0.28);
    border-radius: 8px;
    color: #e2c892;
    font-size: 12px;
    line-height: 1.55;
    margin: 0;
    max-height: 520px;
    overflow: auto;
    padding: 14px;
    white-space: pre-wrap;
    word-break: break-word;
}

.watchlist-col {
    text-align: center;
    width: 48px;
}

.watch-toggle {
    background: #17263a;
    border: 1px solid rgba(209, 160, 82, 0.38);
    border-radius: 999px;
    height: 26px;
    min-width: 0;
    padding: 0;
    position: relative;
    width: 26px;
}

.watch-toggle::before {
    background: #b89f6e;
    border-radius: 999px;
    content: "";
    display: block;
    height: 10px;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
}

.watch-toggle.saved {
    background: #103c2f;
    border-color: rgba(94, 224, 170, 0.45);
}

.watch-toggle.saved::before {
    background: #5ee0aa;
}

.visual-toolbar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.visual-canvas {
    background: #06101a;
    border: 1px solid rgba(209, 160, 82, 0.3);
    border-radius: 8px;
    display: block;
    max-width: 100%;
    width: 100%;
}

.visual-legend {
    align-items: center;
    color: #e2c892;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-top: 8px;
    text-align: center;
}

.visual-note {
    color: #b89f6e;
    font-size: 13px;
}

.smart-card-actions {
    align-items: center;
    background: rgba(6, 16, 26, 0.72);
    border: 1px solid rgba(209, 160, 82, 0.3);
    border-radius: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    justify-content: center;
    margin-top: 14px;
    padding: 14px;
}

.smart-card-actions .smart-card-download {
    background: linear-gradient(135deg, #c89645, #f4c76a);
    color: #07101a;
}

.smart-card-actions .muted {
    font-size: 13px;
    margin: 0;
}

.legend {
    border-radius: 999px;
    display: inline-block;
    height: 10px;
    margin-right: 6px;
    width: 18px;
}

.legend.candle-up {
    background: #5ee0aa;
}

.legend.candle-down {
    background: #ff938c;
}

.legend.ema20,
.legend.target {
    background: #5ee0aa;
}

.legend.ema20 {
    background: #fcd34d;
}

.legend.buy {
    background: #d9ad5f;
}

.legend.support {
    background: #5eead4;
}

.legend.resistance {
    background: #f0abfc;
}

/* --------------------------------------------------------------------------
   Component: loading overlay
   -------------------------------------------------------------------------- */

.loading-overlay {
    align-items: center;
    background: rgba(6, 16, 26, 0.88);
    display: none;
    inset: 0;
    justify-content: center;
    padding: 24px;
    position: fixed;
    z-index: 100;
}

.loading-overlay.active {
    display: flex;
}

.loading-box {
    background: #0b1723;
    border: 1px solid rgba(209, 160, 82, 0.38);
    border-radius: 8px;
    max-width: 420px;
    padding: 24px;
    text-align: center;
}

.spinner {
    animation: spin 0.8s linear infinite;
    border: 3px solid rgba(209, 160, 82, 0.25);
    border-top-color: #f4c76a;
    border-radius: 50%;
    height: 34px;
    margin: 0 auto 16px;
    width: 34px;
}

.support-grid,
.support-admin-grid {
    align-items: start;
    grid-template-columns: minmax(320px, 0.75fr) minmax(420px, 1.25fr);
}

.support-ticket-list {
    display: grid;
    gap: 8px;
}

.support-admin-filters {
    grid-template-columns: minmax(150px, 0.8fr) minmax(180px, 1fr) auto;
}

.support-ticket-row {
    align-items: center;
    background: #0d1428;
    border: 1px solid rgba(209, 160, 82, 0.26);
    border-radius: 8px;
    color: #fff4d8;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 12px 14px;
    text-decoration: none;
}

.support-ticket-row:hover,
.support-ticket-row.active {
    background: rgba(201, 150, 69, 0.1);
    border-color: rgba(209, 160, 82, 0.5);
}

.support-ticket-row span {
    min-width: 0;
}

.support-ticket-row strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.support-ticket-row small {
    color: #d6bb82;
    display: block;
    font-size: 12px;
    margin-top: 3px;
}

.support-thread-panel,
.support-admin-thread {
    min-width: 0;
}

.support-thread-head {
    align-items: flex-start;
    border-bottom: 1px solid rgba(209, 160, 82, 0.22);
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 14px;
}

.support-thread-head h2 {
    margin-bottom: 4px;
}

.support-messages {
    display: grid;
    gap: 12px;
}

.support-message {
    background: #0d1428;
    border: 1px solid rgba(209, 160, 82, 0.24);
    border-radius: 8px;
    padding: 14px;
}

.support-message.admin {
    background: rgba(201, 150, 69, 0.08);
}

.support-message header {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.support-message header strong {
    color: #fff4d8;
}

.support-message header span {
    color: #d6bb82;
    font-size: 13px;
}

.support-message p {
    line-height: 1.6;
    margin-bottom: 0;
    overflow-wrap: anywhere;
}

.support-attachment {
    display: inline-block;
    margin-top: 8px;
}

.support-attachment img {
    border: 1px solid rgba(209, 160, 82, 0.36);
    border-radius: 8px;
    display: block;
    max-height: 220px;
    max-width: min(360px, 100%);
    object-fit: contain;
}

.support-reply-form {
    border-top: 1px solid rgba(209, 160, 82, 0.22);
    margin-top: 18px;
    padding-top: 18px;
}

.premium-loading,
.ai-premium-loading {
    border-color: rgba(209, 160, 82, 0.38);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45), 0 0 70px rgba(201, 150, 69, 0.12);
    overflow: hidden;
    position: relative;
}

.premium-loading::before,
.ai-premium-loading::before {
    background: linear-gradient(90deg, transparent, rgba(244, 199, 106, 0.16), transparent);
    content: "";
    height: 100%;
    left: -70%;
    position: absolute;
    top: 0;
    transform: skewX(-16deg);
    width: 58%;
    animation: aiSweep 1.8s ease-in-out infinite;
}

.orbit-loader,
.ai-orbit-loader {
    height: 54px;
    margin: 0 auto 16px;
    position: relative;
    width: 54px;
}

.orbit-loader::before,
.ai-orbit-loader::before {
    background: rgba(244, 199, 106, 0.18);
    border-radius: 999px;
    content: "";
    height: 18px;
    left: 18px;
    position: absolute;
    top: 18px;
    width: 18px;
}

.orbit-loader span,
.ai-orbit-loader span {
    animation: aiOrbit 1.25s linear infinite;
    border: 1px solid rgba(244, 199, 106, 0.34);
    border-radius: 999px;
    inset: 0;
    position: absolute;
}

.orbit-loader span:nth-child(2),
.ai-orbit-loader span:nth-child(2) {
    animation-duration: 1.65s;
    inset: 7px;
}

.orbit-loader span:nth-child(3),
.ai-orbit-loader span:nth-child(3) {
    animation-duration: 2.05s;
    inset: 14px;
}

.orbit-loader span::after,
.ai-orbit-loader span::after {
    background: #f4c76a;
    border-radius: 999px;
    box-shadow: 0 0 18px rgba(244, 199, 106, 0.62);
    content: "";
    height: 7px;
    position: absolute;
    right: 4px;
    top: 6px;
    width: 7px;
}

.loading-steps,
.ai-loading-steps {
    display: grid;
    gap: 7px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 16px;
    position: relative;
    z-index: 1;
}

.loading-steps span,
.ai-loading-steps span {
    background: rgba(6, 16, 26, 0.72);
    border: 1px solid rgba(209, 160, 82, 0.28);
    border-radius: 999px;
    color: #e2c892;
    font-size: 11px;
    font-weight: 700;
    padding: 7px 8px;
}

/* Page: admin status */

.status-ajax-panel {
    overflow: hidden;
    position: relative;
}

.status-ajax-loading {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: center;
    min-height: 180px;
    text-align: left;
}

.status-ajax-loading .orbit-loader {
    flex: 0 0 auto;
    margin: 0;
}

.status-ajax-loading h2 {
    margin: 0 0 8px;
}

.status-ajax-loading p {
    margin: 0;
    max-width: 640px;
}

.status-summary-grid,
.status-cron-grid {
    display: grid;
    gap: 12px;
}

.status-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 16px;
}

.status-summary-grid > div,
.status-cron-item {
    background: rgba(6, 16, 26, 0.62);
    border: 1px solid rgba(209, 160, 82, 0.3);
    border-radius: 8px;
    padding: 14px;
}

.status-summary-grid span {
    color: #b89f6e;
    display: block;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.status-summary-grid strong {
    color: #f8edd1;
    display: block;
    font-size: 22px;
    margin-top: 5px;
}

.status-cron-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.status-cron-primary {
    margin-bottom: 12px;
}
.status-card-three-grid,
.status-cron-stats-grid,
.status-cron-detail-grid {
    display: grid;
    gap: 12px;
}

.status-card-three-grid,
.status-cron-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.status-card-three-grid .status-cron-list-group {
    background: rgba(11, 16, 32, 0.48);
    border: 1px solid rgba(209, 160, 82, 0.28);
    border-radius: 8px;
    padding: 12px;
}

.status-cron-stats-grid {
    margin-top: 14px;
}

.status-cron-stat-card {
    background: rgba(11, 16, 32, 0.48);
    border: 1px solid rgba(209, 160, 82, 0.28);
    border-radius: 8px;
    min-width: 0;
    padding: 12px;
}

.status-cron-stat-card h3 {
    color: #f8edd1;
    font-size: 13px;
    line-height: 1.2;
    margin: 0 0 10px;
}

.status-cron-detail-grid {
    align-items: start;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
}

.status-cron-detail-grid .status-cron-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}


.status-cron-primary-item {
    padding: 18px;
}

.status-cron-primary-layout {
    align-items: start;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(320px, 1fr);
    margin-top: 14px;
}

.status-cron-metric-list {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.status-cron-list-group {
    border-bottom: 1px solid rgba(209, 160, 82, 0.22);
    padding-bottom: 10px;
}

.status-cron-list-group:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.status-cron-list-group h3 {
    color: #f4c76a;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 8px;
}

.status-cron-list-row {
    align-items: baseline;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(120px, 1fr) minmax(90px, auto);
    padding: 5px 0;
}

.status-cron-list-row span {
    color: #b89f6e;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.25;
}

.status-cron-list-row strong {
    color: #f8edd1;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    overflow-wrap: anywhere;
    text-align: right;
}

.status-cron-side {
    background: rgba(11, 16, 32, 0.42);
    border: 1px solid rgba(209, 160, 82, 0.28);
    border-radius: 8px;
    min-width: 0;
    padding: 13px;
}

.status-cron-secondary-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.status-cron-head {
    align-items: flex-start;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.status-cron-item p,
.status-list p {
    margin: 9px 0 0;
}

.status-cron-metric-groups {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.status-cron-primary-item .status-cron-metric-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.status-cron-metric-group {
    background: rgba(11, 16, 32, 0.48);
    border: 1px solid rgba(209, 160, 82, 0.28);
    border-radius: 8px;
    min-width: 0;
    padding: 12px;
}

.status-cron-metric-group h3 {
    color: #f8edd1;
    font-size: 13px;
    line-height: 1.2;
    margin: 0 0 10px;
}

.status-cron-metrics {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.status-cron-metric {
    background: rgba(6, 16, 26, 0.68);
    border: 1px solid rgba(209, 160, 82, 0.24);
    border-radius: 8px;
    min-width: 0;
    padding: 9px 10px;
}

.status-cron-metric span {
    color: #b89f6e;
    display: block;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

.status-cron-metric strong {
    color: #f8edd1;
    display: block;
    font-size: 20px;
    line-height: 1.15;
    margin-top: 5px;
    overflow-wrap: anywhere;
}

.status-cron-metric em {
    color: #b89f6e;
    display: block;
    font-size: 11px;
    font-style: normal;
    line-height: 1.2;
    margin-top: 2px;
}

.status-cron-note {
    color: #e2c892;
    font-size: 13px;
}

.status-cron-flow {
    border-top: 1px solid rgba(209, 160, 82, 0.28);
    margin-top: 8px;
    padding-top: 12px;
}

.status-cron-flow strong {
    color: #f8edd1;
    display: block;
    margin-bottom: 7px;
}

.status-cron-flow ol {
    color: #e2c892;
    margin: 0;
    padding-left: 20px;
}

.status-cron-flow li {
    margin-bottom: 5px;
}

.status-signal-chart-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 14px;
}

.status-signal-chart-card {
    background: rgba(11, 16, 32, 0.48);
    border: 1px solid rgba(209, 160, 82, 0.28);
    border-radius: 10px;
    min-width: 0;
    padding: 14px;
}

.status-signal-chart-head {
    align-items: baseline;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 10px;
}

.status-signal-chart-head h3 {
    color: #f8edd1;
    font-size: 15px;
    margin: 0;
}

.status-signal-chart {
    align-items: end;
    border-bottom: 1px solid rgba(209, 160, 82, 0.24);
    border-left: 1px solid rgba(209, 160, 82, 0.18);
    display: grid;
    gap: 3px;
    grid-template-columns: repeat(30, minmax(0, 1fr));
    height: 190px;
    padding: 22px 4px 0;
}

.status-signal-bar-item {
    align-items: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: end;
    min-width: 0;
    position: relative;
}

.status-signal-bar-value {
    color: #f8edd1;
    font-size: 10px;
    line-height: 1;
    margin-bottom: 4px;
    opacity: 0;
    transform: translateY(3px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.status-signal-bar-item:hover .status-signal-bar-value,
.status-signal-bar-item:focus-within .status-signal-bar-value {
    opacity: 1;
    transform: translateY(0);
}

.status-signal-bar {
    background: linear-gradient(180deg, #f4c76a, #b97924);
    border-radius: 6px 6px 0 0;
    box-shadow: 0 0 10px rgba(244, 199, 106, 0.18);
    display: block;
    min-height: 2px;
    width: 100%;
}


.ai-ajax-refreshing,
.ajax-shell-refreshing {
    opacity: 0.45;
    transform: translateY(4px);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.ai-ajax-refreshed,
.ajax-shell-refreshed {
    animation: aiResultIn 0.5s ease both;
}

@keyframes aiSweep {
    to {
        left: 116%;
    }
}

@keyframes aiOrbit {
    to {
        transform: rotate(360deg);
    }
}

@keyframes aiResultIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

button:disabled,
input[type="submit"]:disabled {
    cursor: wait;
    opacity: 0.72;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 800px) {
    .status-ajax-loading {
        align-items: center;
        flex-direction: column;
        text-align: center;
    }

    body:not(.has-app-shell) .topbar {
        align-items: flex-start;
        flex-direction: column;
        position: static;
    }

    .section-heading,
    .medium-login-wall {
        align-items: stretch;
        flex-direction: column;
    }

    .blog-admin-grid,
    .blog-grid,
    .support-grid,
    .support-admin-grid {
        grid-template-columns: 1fr;
    }

    .blog-admin-filters {
        grid-template-columns: 1fr;
    }

    .blog-admin-row {
        align-items: stretch;
        flex-direction: column;
    }

    .blog-admin-row h3 {
        white-space: normal;
    }

    .support-thread-head {
        align-items: stretch;
        flex-direction: column;
    }

    .support-thread-head .actions,
    .support-thread-head form,
    .support-thread-head button {
        width: 100%;
    }

    .support-ticket-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .support-ticket-row strong {
        white-space: normal;
    }

    .blog-post-header h1 {
        font-size: 30px;
    }

    .blog-body,
    .blog-body p {
        font-size: 15px;
        line-height: 1.75;
    }

    .blog-hero-image {
        height: auto;
    }

    .topbar {
        gap: 12px;
        padding: 14px 16px;
    }

    .brand {
        font-size: 17px;
    }

    .brand-logo {
        height: 34px;
        width: 34px;
    }

    .coin-logo-under {
        height: 28px;
        width: 28px;
    }

    .nav {
        gap: 6px;
        justify-content: flex-start;
        width: 100%;
    }

    .nav a,
    .nav-button {
        font-size: 13px;
        padding: 8px 9px;
    }

    .shell {
        padding: 14px;
    }

    .wide-page .shell {
        padding-left: 10px;
        padding-right: 10px;
    }

    .hero,
    .grid,
    .grid.three,
    .grid.four,
    .grid.two,
    .filters.search-filter {
        grid-template-columns: 1fr;
    }

    .filters:not(.screener-filters) {
        grid-template-columns: 1fr;
    }

    .screener-filter-strip {
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
        width: 100%;
    }

    .screener-filters {
        grid-template-columns: 1fr;
    }


    .profile-card {
        grid-template-columns: 1fr;
    }

    .profile-card h1,
    .profile-card > p,
    .profile-card .credit-balance,
    .profile-card .profile-spoiler,
    .profile-card .actions,
    .profile-card .avatar,
    .profile-card h3,
    .profile-card > p:last-child {
        grid-column: 1;
    }

    .hero,
    .panel {
        padding: 16px;
    }

    h1 {
        font-size: 28px;
        line-height: 1.15;
    }

    h2 {
        font-size: 21px;
    }

    p {
        font-size: 14px;
    }

    .stat {
        font-size: 22px;
    }

    .credit-balance .stat {
        font-size: 34px;
    }

    .analysis-pair {
        font-size: 26px;
    }

    .analysis-coin-header {
        gap: 12px;
        margin-top: 8px;
    }

    .analysis-coin-logo {
        height: 56px;
        padding: 6px;
        width: 56px;
    }

    .filters button,
    .filters .button,
    .table-action,
    .mobile-card-table .button,
    .mobile-card-table button:not(.watch-toggle) {
        text-align: center;
        width: 100%;
    }

    .screener-filters button {
        min-width: 104px;
        width: 100%;
    }

    .mobile-card-table .compact-action,
    .mobile-card-table button.compact-action {
        min-width: 34px;
        width: auto;
    }

    .actions {
        width: 100%;
    }

    .actions .button,
    .actions button {
        flex: 1 1 auto;
        text-align: center;
    }

    .table-wrap.mobile-cards {
        background: transparent;
        border: 0;
        border-radius: 0;
        overflow: visible;
    }

    .mobile-card-table {
        border-collapse: separate;
        border-spacing: 0 12px;
        min-width: 0;
        width: 100%;
    }

    .mobile-card-table thead {
        display: none;
    }

    .mobile-card-table tbody,
    .mobile-card-table tr,
    .mobile-card-table td {
        box-sizing: border-box;
        display: block;
        max-width: 100%;
        width: 100%;
    }

    .mobile-card-table tr {
        background: #0b1723;
        border: 1px solid rgba(209, 160, 82, 0.28);
        border-radius: 8px;
        padding: 8px;
    }

    .mobile-card-table th {
        display: none;
    }

    .mobile-card-table td {
        border-bottom: 1px solid rgba(38, 49, 79, 0.8);
        display: grid;
        gap: 10px;
        grid-template-columns: 104px minmax(0, 1fr);
        padding: 10px 6px;
    }

    .mobile-card-table td:last-child {
        border-bottom: 0;
    }

    .mobile-card-table td::before {
        color: #b89f6e;
        content: attr(data-label);
        font-size: 12px;
        font-weight: 800;
        line-height: 1.4;
        text-transform: uppercase;
    }

    .mobile-card-table td[colspan] {
        grid-template-columns: 104px minmax(0, 1fr);
    }

    .mobile-card-table tr:hover td {
        background: transparent;
    }

    .status-summary-grid,
    .status-cron-grid,
    .status-card-three-grid,
    .status-cron-stats-grid,
    .status-cron-detail-grid,
    .status-signal-chart-grid {
        grid-template-columns: 1fr;
    }

    .status-cron-primary-item {
        padding: 14px;
    }

    .status-cron-primary-layout {
        grid-template-columns: 1fr;
    }

    .status-cron-list-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 3px;
    }

    .status-cron-list-row strong {
        text-align: left;
    }

    .status-cron-primary-item .status-cron-metric-groups,
    .status-cron-metrics,
    .status-cron-detail-grid .status-cron-metrics {
        grid-template-columns: 1fr;
    }

    .status-summary-grid strong {
        font-size: 18px;
    }

    .radar-grid {
        grid-template-columns: 1fr;
    }

    .radar-row {
        align-items: start;
        grid-template-columns: 28px 32px minmax(0, 1fr) auto;
    }

    .radar-rank {
        grid-column: 1;
        grid-row: 1;
    }

    .radar-coin {
        grid-column: 3;
        grid-row: 1;
        min-width: 0;
    }

    .radar-metric {
        grid-column: 4;
        grid-row: 1;
        text-align: right;
    }

    .radar-actions {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .radar-actions {
        justify-content: stretch;
        justify-self: stretch;
    }

    .radar-actions .button {
        flex: 1 1 0;
        text-align: center;
    }

    .status-cron-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .score-detail {
        min-width: 0;
    }

    .score-chip-list {
        max-width: none;
    }

    .score-chip {
        white-space: normal;
    }

    .score-meta {
        font-size: 11px;
    }

    .detail-spoiler {
        box-sizing: border-box;
        max-width: 100%;
        min-width: 0;
        overflow: hidden;
        width: 100%;
    }

    .detail-spoiler summary {
        align-items: center;
        background: #2a2418;
        border: 1px solid rgba(209, 160, 82, 0.42);
        border-radius: 8px;
        color: #f8edd1;
        cursor: pointer;
        display: inline-flex;
        font-size: 13px;
        font-weight: 700;
        justify-content: center;
        line-height: 1.15;
        max-width: 100%;
        box-sizing: border-box;
        min-height: 38px;
        padding: 7px 12px;
        text-align: center;
        width: 100%;
    }

    .detail-spoiler[open] summary {
        margin-bottom: 8px;
    }

    .compact-credit-form {
        display: grid;
        gap: 8px;
        grid-template-columns: minmax(0, 1fr) auto;
        width: 100%;
    }

    .compact-credit-form input[type="number"],
    .compact-credit-form input[type="text"],
    .compact-credit-form input:not([type]) {
        flex-basis: auto;
        min-width: 0;
        width: 100% !important;
    }

    .compact-credit-form button.icon-only {
        width: 100%;
    }

    .credit-edit-col,
    .admin-actions-col {
        min-width: 0;
        width: 100%;
    }

    .user-management-table {
        min-width: 0;
    }

    .pagination {
        justify-content: stretch;
    }

    .pagination .button {
        flex: 1 1 auto;
        text-align: center;
    }

    .watchlist-col {
        text-align: left;
        width: 100%;
    }

    .mobile-card-table td.watchlist-col {
        grid-template-columns: 104px 32px;
    }

    .screener-table,
    .screener-table tbody {
        display: block;
        width: 100%;
    }

    .screener-table tr {
        box-sizing: border-box;
        display: block;
        max-width: 100%;
        overflow: visible;
        padding: 12px;
        padding-left: 48px;
        position: relative;
        width: 100%;
    }

    .screener-table .screener-row {
        background:
            radial-gradient(circle at 8% 0%, rgba(244, 199, 106, 0.08), transparent 34%),
            rgba(11, 23, 35, 0.82);
        border: 1px solid rgba(209, 160, 82, 0.2);
        border-radius: 12px;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
        min-height: 112px;
    }

    .screener-table .screener-row::before {
        border-radius: 999px;
        bottom: 12px;
        content: '';
        left: 0;
        position: absolute;
        top: 12px;
        width: 4px;
    }

    .screener-table .screener-row.score-tier-high::before {
        background: linear-gradient(180deg, #6ee7b7, rgba(94, 234, 212, 0.08));
    }

    .screener-table .screener-row.score-tier-mid::before {
        background: linear-gradient(180deg, #f4c76a, rgba(244, 199, 106, 0.08));
    }

    .screener-table .screener-row td:first-child::before {
        content: none;
    }

    .screener-table td {
        border-bottom: 0;
        display: block;
        padding: 0;
    }

    .screener-table td::before {
        display: none;
    }

    .screener-table .watch-toggle {
        flex: 0 0 auto;
        height: 22px;
        width: 22px;
    }

    .screener-table td[data-label="#"] {
        align-items: center;
        background: rgba(6, 16, 26, 0.58);
        border: 1px solid rgba(209, 160, 82, 0.18);
        border-radius: 10px;
        display: flex;
        flex-direction: column;
        gap: 7px;
        justify-content: center;
        left: 12px;
        min-height: 74px;
        padding: 7px 6px;
        position: absolute;
        top: 12px;
        width: 42px;
    }

    .screener-rank-cell .rank-number {
        font-size: 13px;
        line-height: 1;
        margin-bottom: 0;
    }

    .screener-table td[data-label="Coin"] {
        align-items: center;
        display: flex;
        flex-wrap: wrap;
        gap: 4px 7px;
        line-height: 1.15;
        min-width: 0;
        padding-left: 54px;
        padding-right: 92px;
        padding-top: 0;
        width: 100%;
    }

    .screener-table td[data-label="Coin"].has-logo {
        column-gap: 10px;
        display: grid;
        grid-template-columns: 56px minmax(0, 1fr);
        grid-template-rows: auto auto;
        row-gap: 5px;
    }

    .screener-table .mobile-coin-main {
        align-items: center;
        display: inline-flex;
        gap: 7px;
        max-width: 100%;
        min-width: 0;
    }

    .screener-table td[data-label="Coin"].has-logo .mobile-coin-main {
        grid-column: 2;
        grid-row: 1;
    }

    .screener-table td[data-label="Coin"] strong {
        display: block;
        font-size: 20px;
        line-height: 1.05;
        max-width: 100%;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .screener-table td[data-label="Coin"] .coin-full-name {
        display: block;
        font-size: 11px;
        letter-spacing: 0.08em;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .screener-table td[data-label="Coin"] .coin-logo-under {
        flex-basis: 100%;
    }

    .screener-table td[data-label="Coin"].has-logo .coin-logo-under {
        align-self: center;
        grid-column: 1;
        grid-row: 1 / span 2;
        height: 54px;
        justify-self: start;
        margin-top: 0;
        padding: 5px;
        width: 54px;
    }

    .screener-table .mobile-coin-price {
        color: #b89f6e;
        display: inline;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.2;
        margin-left: 0;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .screener-table td[data-label="Coin"].has-logo .mobile-coin-price {
        grid-column: 2;
        grid-row: 2;
    }

    .screener-table .mobile-coin-signal {
        display: inline-flex;
        font-size: 10px;
        line-height: 1;
        margin-left: 0;
        max-width: 100%;
        padding: 4px 7px;
        white-space: nowrap;
        width: fit-content;
    }

    .screener-table td[data-label="Coin"].has-logo .mobile-coin-signal {
        grid-column: 2;
        grid-row: 3;
        justify-self: start;
    }

    .screener-table td[data-label="Market Metrics"] {
        display: none;
    }

    .screener-table .mobile-inline-label,
    .screener-table .mobile-price-under-score {
        color: #b89f6e;
        display: inline-flex;
        font-weight: 700;
        gap: 4px;
        justify-content: flex-end;
    }

    .screener-table .mobile-price-under-score strong {
        color: #f8edd1;
    }

    .screener-table .desktop-only-line {
        display: none;
    }

    .screener-table td[data-label="Sinyal / Score"] {
        align-items: flex-end;
        display: flex;
        flex-direction: column;
        gap: 5px;
        line-height: 1.1;
        position: absolute;
        right: 12px;
        top: 12px;
        width: 92px;
    }

    .screener-table .score-badge {
        font-size: 14px;
        min-width: 34px;
        padding: 6px 9px;
        width: auto;
    }

    .screener-table .mobile-score-signal {
        display: inline-flex;
        justify-content: center;
        line-height: 1;
        max-width: 100%;
        white-space: nowrap;
        width: fit-content;
    }

    .screener-table .signal-label {
        font-size: 10px;
        margin-top: 0;
        padding: 5px 7px;
        max-width: 100%;
        text-align: center;
        white-space: normal;
    }

    .screener-table .desktop-signal-label {
        display: none;
    }

    .screener-table td[data-label="Sinyal / Score"] .mobile-inline-label {
        font-size: 11px;
        line-height: 1;
    }

    .mobile-extra-metrics {
        background: rgba(6, 16, 26, 0.58);
        border: 1px solid rgba(209, 160, 82, 0.24);
        border-radius: 8px;
        color: #e2c892;
        display: grid;
        gap: 6px;
        margin-bottom: 10px;
        padding: 9px;
    }

    .mobile-detail-actions {
        display: flex;
        gap: 8px;
        margin-bottom: 10px;
        width: 100%;
    }

    .mobile-detail-actions .table-action {
        align-items: center;
        display: inline-flex;
        flex: 1 1 0;
        justify-content: center;
        margin-left: 0;
        min-height: 38px;
        width: auto;
    }

    .mobile-extra-metrics span {
        color: #b89f6e;
        font-weight: 700;
    }

    .screener-table td.score-detail,
    .screener-table .score-detail {
        box-sizing: border-box;
        clear: both;
        display: block;
        margin-top: 12px;
        max-width: 100%;
        min-width: 0;
        overflow: visible;
        padding-top: 4px;
        width: 100%;
    }

    .screener-table .score-chip-list,
    .screener-table .risk-warning-list {
        max-width: 100%;
        min-width: 0;
        overflow: hidden;
    }

    .screener-table .score-chip,
    .screener-table .risk-warning-chip {
        min-width: 0;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .screener-table .score-detail,
    .screener-table .score-meta,
    .screener-table .risk-warning-list,
    .screener-table .mobile-extra-metrics {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .screener-table .row-actions-cell {
        display: none;
    }

    .ai-history-table tr {
        box-sizing: border-box;
        display: grid;
        gap: 8px;
        grid-template-columns: minmax(0, 1fr) minmax(86px, auto);
        max-width: 100%;
        overflow: visible;
        padding: 10px;
        width: 100%;
    }

    .ai-history-table td {
        border-bottom: 0;
        display: block;
        padding: 0;
    }

    .ai-history-table td::before {
        display: none;
    }

    .ai-history-table td[data-label="#"],
    .ai-history-table td[data-label="Waktu"] {
        display: none;
    }

    .ai-history-table td[data-label="User"] {
        color: #b89f6e;
        font-size: 12px;
        grid-column: 1 / -1;
        grid-row: 2;
        line-height: 1.25;
    }

    .ai-history-table td[data-label="User"] .muted {
        display: none;
    }

    .ai-history-table .ai-history-coin-cell {
        align-items: center;
        display: grid;
        gap: 3px 9px;
        grid-column: 1;
        grid-row: 1;
        grid-template-columns: 40px minmax(0, 1fr);
        min-width: 0;
    }

    .ai-history-table .ai-history-coin-cell.no-logo {
        grid-template-columns: minmax(0, 1fr);
    }

    .ai-history-table .ai-history-coin-cell .coin-logo-under {
        grid-column: 1;
        grid-row: 1 / span 2;
        height: 38px;
        margin-top: 0;
        padding: 5px;
        width: 38px;
    }

    .ai-history-table .ai-history-coin-cell strong {
        font-size: 18px;
        grid-column: 2;
        line-height: 1.1;
        min-width: 0;
    }

    .ai-history-table .ai-history-coin-cell.no-logo strong {
        grid-column: 1;
    }

    .ai-history-mobile-time {
        display: block;
        grid-column: 2;
        line-height: 1.2;
    }

    .ai-history-table .ai-history-coin-cell.no-logo .ai-history-mobile-time {
        grid-column: 1;
    }

    .ai-history-table td[data-label="Sinyal"] {
        align-self: start;
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        min-width: 0;
    }

    .ai-history-table td[data-label="Sinyal"] .badge {
        font-size: 10px;
        line-height: 1;
        max-width: 100%;
        padding: 5px 7px;
        white-space: normal;
    }

    .ai-history-table .ai-history-detail-cell {
        grid-column: 1 / -1;
        grid-row: 2;
        max-width: 100%;
        min-width: 0;
        overflow: hidden;
        padding-top: 2px;
        width: 100%;
    }

    .ai-history-table .ai-history-detail-grid {
        background: rgba(6, 16, 26, 0.58);
        border: 1px solid rgba(209, 160, 82, 0.24);
        border-radius: 8px;
        color: #e2c892;
        font-size: 13px;
        gap: 6px;
        padding: 9px;
    }

    .ai-history-table td[data-label="Aksi"] {
        display: flex;
        grid-column: 1 / -1;
        grid-row: 3;
        padding-top: 0;
    }

    .ai-history-table.is-admin-history .ai-history-detail-cell {
        grid-row: 3;
    }

    .ai-history-table.is-admin-history td[data-label="Aksi"] {
        grid-row: 4;
    }

    .ai-history-table td[data-label="Aksi"] .inline-actions {
        display: flex;
        gap: 8px;
        width: 100%;
    }

    .ai-history-table td[data-label="Aksi"] .button {
        flex: 1 1 0;
        margin-left: 0;
        text-align: center;
        width: auto;
    }

    .ai-performance-table tr {
        display: grid;
        gap: 8px 10px;
        grid-template-columns: 36px minmax(0, 1fr) minmax(92px, auto);
        padding: 10px;
    }

    .ai-performance-table td {
        border-bottom: 0;
        display: block;
        padding: 0;
    }

    .ai-performance-table td::before {
        display: none;
    }

    .ai-performance-table td[data-label="Delete"] {
        align-self: start;
        grid-column: 1;
        grid-row: 1 / span 2;
    }

    .ai-performance-table .ai-run-delete {
        min-height: 30px;
        min-width: 30px;
        padding: 6px 8px;
        width: 30px;
    }

    .ai-performance-table td[data-label="#"],
    .ai-performance-table td[data-label="Setup"],
    .ai-performance-table td[data-label="Hit"],
    .ai-performance-table td[data-label="Gain/Loss"],
    .ai-performance-table td[data-label="Detail"]:not(.mobile-performance-details) {
        display: none;
    }

    .ai-performance-table td[data-label="Pair"] {
        grid-column: 2;
        grid-row: 1 / span 2;
    }

    .ai-performance-table td[data-label="Pair"] strong {
        font-size: 16px;
    }

    .ai-performance-table td[data-label="Status"] {
        align-self: start;
        grid-column: 3;
        grid-row: 1 / span 2;
        text-align: right;
    }

    .ai-performance-table td.mobile-performance-details {
        display: block;
        grid-column: 1 / -1;
        grid-row: 3;
    }

    .mobile-performance-grid {
        background: rgba(15, 23, 42, 0.45);
        border: 1px solid rgba(38, 49, 79, 0.8);
        border-radius: 8px;
        display: grid;
        gap: 10px;
        grid-template-columns: 1fr 1fr;
        padding: 10px;
    }

    .mobile-performance-grid > div {
        color: #f8edd1;
        font-size: 13px;
        line-height: 1.45;
    }

    .mobile-performance-grid span:first-child {
        color: #b89f6e;
        display: block;
        font-size: 11px;
        font-weight: 800;
        margin-bottom: 4px;
        text-transform: uppercase;
    }

    .mobile-performance-actions {
        display: flex;
        gap: 8px;
        grid-column: 1 / -1;
    }

    .mobile-performance-actions .button {
        flex: 1 1 0;
        width: auto;
    }

    .grid.four.ai-summary-grid {
        display: grid;
        gap: 12px;
        grid-template-columns: 1fr 1fr;
    }

    .ai-metric-grid {
        grid-template-columns: 1fr;
    }

    .ai-analysis-narrative {
        grid-template-columns: 1fr;
    }

    .ai-summary-grid .stat {
        font-size: 24px;
    }

    .analysis-table.mobile-card-table {
        border-collapse: collapse;
        border-spacing: 0;
        display: table;
        width: 100%;
    }

    .analysis-table.mobile-card-table tbody {
        display: table-row-group;
    }

    .analysis-table.mobile-card-table tr {
        border: 0;
        border-radius: 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
        padding: 0;
    }

    .analysis-table.mobile-card-table td {
        border: 1px solid rgba(38, 49, 79, 0.8);
        display: block;
        font-size: 13px;
        min-width: 0;
        padding: 8px;
    }

    .analysis-table.mobile-card-table td::before {
        display: block;
        margin-bottom: 4px;
    }

    .analysis-table.mobile-card-table td[colspan],
    .analysis-table.mobile-card-table td[data-label="Analisa"],
    .analysis-table.mobile-card-table td[data-label="Volume"],
    .analysis-table.mobile-card-table td[data-label="MACD"] {
        grid-column: 1 / -1;
    }

    .analysis-table.mobile-card-table td[data-label="Analisa"] {
        line-height: 1.5;
        overflow-wrap: anywhere;
    }

    .visual-toolbar .button {
        flex: 1 1 auto;
        text-align: center;
    }
}

@media (min-width: 801px) and (max-width: 1180px) {
    .screener-filters {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 520px) {
    .mobile-card-table td,
    .mobile-card-table td[colspan] {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .nav {
        max-height: 45vh;
        overflow-y: auto;
    }
}

@media (max-width: 520px) {
    .screener-table tr {
        padding: 12px 10px 12px 16px;
    }

    .screener-table .screener-row {
        display: grid;
        gap: 10px 8px;
        grid-template-columns: minmax(0, 1fr) 92px;
        min-height: 0;
    }

    .screener-table .screener-row::before {
        bottom: 12px;
        left: 0;
        top: 12px;
        width: 4px;
    }

    .screener-table .watch-toggle {
        box-shadow: 0 0 0 3px rgba(11, 23, 35, 0.88);
        height: 18px;
        width: 18px;
    }

    .screener-table td[data-label="#"] {
        grid-column: 1;
        grid-row: 1;
        left: auto;
        position: static;
        top: auto;
        width: 42px;
    }

    .screener-table td[data-label="Coin"] {
        grid-column: 1;
        grid-row: 1;
        margin-left: 50px;
        min-width: 0;
        padding-left: 0;
        padding-right: 0;
    }

    .screener-table td[data-label="Coin"].has-logo {
        column-gap: 10px;
        grid-template-columns: 54px minmax(0, 1fr);
        min-height: 58px;
        row-gap: 3px;
    }

    .screener-table td[data-label="Coin"].has-logo .coin-logo-under {
        height: 52px;
        padding: 5px;
        width: 52px;
    }

    .screener-table td[data-label="Coin"] strong {
        font-size: clamp(18px, 6vw, 24px);
        letter-spacing: -0.03em;
    }

    .screener-table .mobile-coin-price {
        font-size: 12px;
    }

    .screener-table td[data-label="Market Metrics"] {
        grid-column: 1 / -1;
        grid-row: 2;
        margin-top: 0;
        padding-left: 0;
        padding-right: 0;
    }

    .screener-table .mobile-coin-signal {
        font-size: 11px;
        padding: 5px 9px;
    }

    .screener-table td[data-label="Sinyal / Score"] {
        align-items: flex-end;
        align-self: start;
        display: flex;
        flex-direction: column;
        gap: 5px;
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        position: static;
        right: auto;
        top: auto;
        width: auto;
    }

    .screener-table td[data-label="Sinyal / Score"] .mobile-inline-label {
        display: block;
        font-size: 11px;
        line-height: 1;
    }

    .screener-table .score-confidence-stack {
        justify-items: end;
    }

    .screener-table td[data-label="Sinyal / Score"] > .score-confidence-stack > .confidence-line {
        display: none;
    }

    .screener-table .score-badge {
        font-size: 14px;
        min-width: 36px;
        padding: 7px 9px;
    }

    .screener-table td.score-detail,
    .screener-table .score-detail {
        display: block;
        grid-column: 1 / -1;
        grid-row: 3;
        margin-top: 0;
        padding-top: 0;
    }

    .screener-table .detail-spoiler summary {
        border-radius: 10px;
        font-size: 14px;
        min-height: 38px;
        padding: 8px 12px;
    }
}

@media (max-width: 380px) {
    .screener-table .screener-row {
        grid-template-columns: minmax(0, 1fr) 82px;
    }

    .screener-table td[data-label="Coin"].has-logo {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .screener-table td[data-label="Coin"].has-logo .coin-logo-under {
        height: 42px;
        width: 42px;
    }

    .screener-table td[data-label="Market Metrics"] {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   Component: toast and skeleton loading
   -------------------------------------------------------------------------- */

.toast-stack {
    bottom: 18px;
    display: grid;
    gap: 10px;
    position: fixed;
    right: 18px;
    width: min(360px, calc(100vw - 36px));
    z-index: 200;
}

.toast {
    background: #0b1723;
    border: 1px solid rgba(209, 160, 82, 0.38);
    border-radius: 12px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
    color: #f8edd1;
    padding: 13px 15px;
    transform: translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.success {
    border-color: rgba(94, 224, 170, 0.42);
}

.toast.error {
    border-color: rgba(255, 147, 140, 0.42);
}

.toast.hide {
    opacity: 0;
    transform: translateY(8px);
}

.skeleton-row td {
    background: rgba(6, 16, 26, 0.32);
}

.skeleton-line {
    animation: skeletonSweep 1.2s ease-in-out infinite;
    background: linear-gradient(
        90deg,
        rgba(248, 237, 209, 0.06),
        rgba(248, 237, 209, 0.14),
        rgba(248, 237, 209, 0.06)
    );
    background-size: 220% 100%;
    border-radius: 999px;
    height: 14px;
    max-width: 100%;
    width: 52%;
}

.skeleton-line.wide {
    margin-bottom: 10px;
    width: 80%;
}

@keyframes skeletonSweep {
    from {
        background-position: 120% 0;
    }
    to {
        background-position: -120% 0;
    }
}

.screener-table-wrap.is-loading {
    pointer-events: none;
}

@media (max-width: 800px) {
    .toast-stack {
        bottom: 12px;
        right: 12px;
        width: min(360px, calc(100vw - 24px));
    }

    .screener-table .skeleton-row {
        display: block;
    }

    .screener-table .skeleton-row td {
        display: block;
        padding: 12px;
    }
}

/* Layout shell / sidebar navigation */

/* Phase 2 app shell navigation */
.app-topbar {
    background: rgba(11, 23, 35, 0.88);
    backdrop-filter: blur(18px);
    gap: 16px;
    padding: 0 22px;
    z-index: 90;
}

.has-app-shell .shell {
    max-width: none;
    padding-left: 294px;
}

.has-app-shell.wide-page .shell {
    padding-left: 274px;
}

.has-app-shell.sidebar-hidden .shell,
.has-app-shell.sidebar-hidden.wide-page .shell {
    padding-left: 28px;
}

.has-app-shell .site-footer {
    padding-left: 274px;
}

.has-app-shell.sidebar-hidden .site-footer {
    padding-left: 28px;
}

.mobile-menu-button,
.sidebar-close {
    align-items: center;
    background: rgba(23, 38, 58, 0.86);
    border: 1px solid rgba(209, 160, 82, 0.3);
    border-radius: 12px;
    color: #f8edd1;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    justify-content: center;
}

.mobile-menu-button {
    display: inline-flex;
    height: 40px;
    width: 42px;
}

.topbar-account-summary {
    align-items: center;
    background: rgba(6, 16, 26, 0.72);
    border: 1px solid rgba(209, 160, 82, 0.26);
    border-radius: 999px;
    color: #f8edd1;
    display: flex;
    gap: 10px;
    margin-left: auto;
    max-width: min(100%, 360px);
    min-width: 0;
    padding: 6px 12px 6px 6px;
    text-decoration: none;
}

.topbar-account-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    min-width: 0;
}

.topbar-account-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-account-copy em {
    color: rgba(226, 200, 146, 0.78);
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
}

.avatar-circle {
    align-items: center;
    background: linear-gradient(135deg, #f4c76a, #c89645);
    border-radius: 999px;
    color: #06101a;
    display: inline-flex;
    font-weight: 900;
    height: 32px;
    justify-content: center;
    width: 32px;
}

.app-sidebar {
    background: rgba(8, 18, 29, 0.96);
    border-right: 1px solid rgba(209, 160, 82, 0.26);
    bottom: 0;
    box-shadow: 18px 0 60px rgba(0, 0, 0, 0.24);
    left: 0;
    overflow-y: auto;
    padding: 12px 10px;
    position: fixed;
    scrollbar-color: rgba(201, 150, 69, 0.7) rgba(11, 23, 35, 0.45);
    scrollbar-width: thin;
    top: 64px;
    transition: transform 0.22s ease;
    width: 246px;
    z-index: 70;
}

.app-sidebar::-webkit-scrollbar {
    width: 6px;
}

.app-sidebar::-webkit-scrollbar-track {
    background: rgba(11, 23, 35, 0.45);
}

.app-sidebar::-webkit-scrollbar-thumb {
    background: rgba(201, 150, 69, 0.7);
    border-radius: 999px;
}

body.sidebar-hidden .app-sidebar {
    transform: translateX(-105%);
}

.sidebar-head {
    align-items: center;
    color: #f4c76a;
    display: flex;
    font-size: 13px;
    font-weight: 900;
    justify-content: space-between;
    letter-spacing: 0.08em;
    padding: 2px 8px 8px;
    text-transform: uppercase;
}

.sidebar-close {
    display: none;
    height: 34px;
    width: 34px;
}

.sidebar-account {
    border-bottom: 1px solid rgba(209, 160, 82, 0.16);
    display: grid;
    gap: 6px;
    margin-bottom: 8px;
    padding: 0 4px 8px;
}

.sidebar-profile {
    align-items: center;
    border: 1px solid rgba(209, 160, 82, 0.24);
    border-radius: 14px;
    display: flex;
    gap: 8px;
    min-width: 0;
    padding: 7px 8px;
}

.sidebar-profile span:last-child {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.sidebar-profile strong {
    color: #f8edd1;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-profile em {
    color: #f4c76a;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.sidebar-nav,
.sidebar-group {
    display: grid;
    gap: 3px;
}

.sidebar-nav {
    gap: 8px;
}

.sidebar-group-title {
    color: #b89f6e;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    padding: 0 8px;
    text-transform: uppercase;
}

.sidebar-link {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #e2c892;
    display: flex;
    font-size: 14px;
    gap: 8px;
    padding: 6px 9px;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: linear-gradient(135deg, rgba(201, 150, 69, 0.2), rgba(23, 38, 58, 0.82));
    border-color: rgba(244, 199, 106, 0.28);
    color: #f8edd1;
}

.sidebar-icon {
    align-items: center;
    background: rgba(248, 237, 209, 0.07);
    border-radius: 8px;
    display: inline-flex;
    flex: 0 0 auto;
    height: 24px;
    justify-content: center;
    width: 24px;
}

.sidebar-logout {
    margin-top: 8px;
}

.sidebar-backdrop {
    display: none;
}

.mobile-bottom-nav {
    display: none;
}

@media (max-width: 900px) {
    .app-topbar {
        display: grid;
        grid-template-columns: auto auto minmax(0, 1fr);
        justify-content: start;
        min-height: 58px;
        padding: 0 12px;
    }

    .mobile-menu-button {
        display: inline-flex;
    }

    .topbar-account-summary {
        display: none;
    }

    .brand span {
        max-width: none;
        overflow: visible;
        text-overflow: clip;
    }

    .has-app-shell .shell,
    .has-app-shell.wide-page .shell {
        padding: 18px 14px 88px;
    }

    .has-app-shell .site-footer {
        padding: 8px 14px 86px;
    }

    .app-sidebar {
        border-right-color: rgba(244, 199, 106, 0.32);
        max-width: min(86vw, 320px);
        padding-bottom: 90px;
        top: 0;
        transform: translateX(-105%);
        width: 300px;
        z-index: 140;
    }

    body.sidebar-open .app-sidebar {
        transform: translateX(0);
    }

    .sidebar-head {
        padding-top: 8px;
    }

    .sidebar-close {
        display: inline-flex;
    }

    .sidebar-backdrop {
        background: rgba(0, 0, 0, 0.5);
        bottom: 0;
        left: 0;
        opacity: 0;
        pointer-events: none;
        position: fixed;
        right: 0;
        top: 0;
        transition: opacity 0.2s ease;
        z-index: 130;
    }

    body.sidebar-open .sidebar-backdrop {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-bottom-nav {
        background: rgba(11, 23, 35, 0.96);
        backdrop-filter: blur(16px);
        border-top: 1px solid rgba(209, 160, 82, 0.32);
        bottom: 0;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        left: 0;
        position: fixed;
        right: 0;
        z-index: 80;
    }

    .mobile-bottom-nav a {
        color: #b89f6e;
        display: grid;
        font-size: 11px;
        gap: 3px;
        justify-items: center;
        padding: 9px 6px 10px;
        text-align: center;
    }

    .mobile-bottom-nav a span {
        font-size: 16px;
        line-height: 1;
    }

    .mobile-bottom-nav a strong {
        font-size: 11px;
        font-weight: 800;
    }

    .mobile-bottom-nav a.active {
        color: #f4c76a;
    }

    .toast-stack {
        bottom: 82px;
    }
}

@media (max-width: 560px) {
    .brand-logo {
        height: 32px;
        width: 32px;
    }
}

/* Page: home */

.eyebrow {
    color: #f4c76a;
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.home-hero {
    background:
        radial-gradient(circle at 80% 0%, rgba(201, 150, 69, 0.22), transparent 34%),
        linear-gradient(135deg, #0b1723 0%, #0b1723 54%, #10243a 100%);
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    overflow: hidden;
}

.home-hero h1 {
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.02;
    max-width: 860px;
}

.home-hero p {
    font-size: 17px;
    max-width: 760px;
}

.home-hero-card,
.home-feature-card,
.home-logic-card,
.home-radar-card,
.home-ai-note,
.home-final-cta {
    background: rgba(6, 16, 26, 0.62);
    border: 1px solid rgba(209, 160, 82, 0.28);
    border-radius: 10px;
}

.home-hero-card {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

.home-check-list {
    color: #e2c892;
    display: grid;
    gap: 10px;
    margin: 18px 0 0;
    padding-left: 20px;
}

.home-section {
    margin-bottom: 22px;
}

.home-feature-grid,
.home-logic-grid,
.home-radar-grid {
    display: grid;
    gap: 14px;
}

.home-feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-feature-card,
.home-logic-card,
.home-radar-card {
    padding: 16px;
}

.home-feature-card h3,
.home-logic-card h3,
.home-radar-card h3,
.home-ai-note h3 {
    color: #f8edd1;
}

.home-feature-card p,
.home-logic-card p,
.home-radar-card p,
.home-ai-note p {
    font-size: 14px;
    margin-bottom: 0;
}

.home-logic-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-logic-card span {
    align-items: center;
    background: rgba(201, 150, 69, 0.18);
    border: 1px solid rgba(244, 199, 106, 0.36);
    border-radius: 999px;
    color: #f4c76a;
    display: inline-flex;
    font-size: 13px;
    font-weight: 900;
    height: 30px;
    justify-content: center;
    margin-bottom: 12px;
    width: 30px;
}

.home-ai-note {
    margin-top: 14px;
    padding: 16px;
}

.home-radar-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-radar-card {
    min-height: 190px;
    position: relative;
}

.home-radar-card::before {
    border-radius: 999px;
    content: "";
    height: 4px;
    left: 16px;
    position: absolute;
    right: 16px;
    top: 0;
}

.home-radar-gatotkaca::before {
    background: linear-gradient(90deg, #fbbf24, #ef4444);
}

.home-radar-srikandi::before {
    background: linear-gradient(90deg, #22d3ee, #a78bfa);
}

.home-radar-semar::before {
    background: linear-gradient(90deg, #34d399, #facc15);
}

.home-radar-badge {
    color: #f4c76a;
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    margin: 10px 0 12px;
}

.home-final-cta {
    margin-bottom: 22px;
    padding: 28px;
    text-align: center;
}

.home-final-cta p {
    margin-left: auto;
    margin-right: auto;
    max-width: 680px;
}

@media (max-width: 980px) {
    .home-hero,
    .home-feature-grid,
    .home-logic-grid,
    .home-radar-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 800px) {
    .home-hero,
    .home-feature-grid,
    .home-logic-grid,
    .home-radar-grid {
        grid-template-columns: 1fr;
    }

    .home-hero h1 {
        font-size: 36px;
    }
}

.error-log-summary a.status-cron-metric {
    color: inherit;
    text-decoration: none;
}

.error-log-summary a.status-cron-metric.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.24), 0 16px 40px rgba(250, 204, 21, 0.08);
}

.error-log-table .metadata-cell {
    margin-top: 10px;
    max-height: 220px;
    overflow: auto;
    white-space: pre-wrap;
}

.error-log-scope {
    margin-bottom: 18px;
}

.error-log-priority-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: 2fr 1fr;
    margin-bottom: 18px;
}

.error-log-level-box {
    margin-bottom: 0;
}

.error-log-level-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

@media (max-width: 760px) {
    .error-log-priority-grid {
        grid-template-columns: 1fr;
    }
}

/* Page: intro */

/* Interactive crypto intro deck */
.intro-page {
    background:
        radial-gradient(circle at 18% 14%, rgba(244, 199, 106, 0.16), transparent 27rem),
        radial-gradient(circle at 85% 8%, rgba(80, 180, 255, 0.13), transparent 25rem),
        #06101a;
}

.intro-shell {
    display: grid;
    gap: 24px;
    overflow: hidden;
    position: relative;
}

.intro-ambient {
    animation: introFloat 10s ease-in-out infinite;
    background: linear-gradient(135deg, rgba(244, 199, 106, 0.22), rgba(126, 231, 255, 0.1));
    border-radius: 999px;
    filter: blur(10px);
    height: 220px;
    opacity: 0.52;
    position: absolute;
    right: -92px;
    top: 24px;
    width: 220px;
    z-index: 0;
}

.intro-hero-copy,
.intro-deck-card,
.intro-final-cta {
    position: relative;
    z-index: 1;
}

.intro-hero-copy {
    background: linear-gradient(135deg, rgba(13, 23, 38, 0.94), rgba(20, 38, 62, 0.76));
    border: 1px solid rgba(244, 199, 106, 0.22);
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
    overflow: hidden;
    padding: clamp(26px, 5vw, 48px);
}

.intro-hero-copy::after {
    background: linear-gradient(90deg, transparent, rgba(244, 199, 106, 0.24), transparent);
    content: '';
    height: 1px;
    left: 8%;
    position: absolute;
    right: 8%;
    top: 0;
}

.intro-hero-copy h1 {
    font-size: clamp(34px, 6vw, 64px);
    line-height: 1.02;
    max-width: 980px;
}

.intro-hero-copy p {
    color: #d8cdb5;
    font-size: 18px;
    max-width: 850px;
}

.intro-deck-card {
    background:
        radial-gradient(circle at 0% 0%, rgba(126, 231, 255, 0.09), transparent 34%),
        rgba(8, 15, 27, 0.92);
    border: 1px solid rgba(244, 199, 106, 0.24);
    border-radius: 30px;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
    overflow: hidden;
}

.intro-deck-toolbar {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: 18px clamp(20px, 4vw, 38px) 12px;
}

.intro-path-label {
    align-items: center;
    color: #7ee7ff;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    gap: 8px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.intro-path-label::before {
    background: linear-gradient(135deg, #f4c76a, #7ee7ff);
    border-radius: 999px;
    box-shadow: 0 0 24px rgba(126, 231, 255, 0.32);
    content: '';
    height: 10px;
    width: 10px;
}

.intro-progress {
    background: rgba(226, 200, 146, 0.16);
    height: 6px;
}

.intro-progress span {
    background: linear-gradient(90deg, #f4c76a, #7ee7ff);
    display: block;
    height: 100%;
    transition: width 0.35s ease;
    width: 0;
}

.intro-count {
    color: #f4c76a;
    font-weight: 900;
    text-align: right;
}

.intro-count span:first-child {
    display: inline-block;
    min-width: 1.2em;
    transition: transform 0.2s ease;
}

.intro-progress-steps {
    display: grid;
    gap: 7px;
    grid-template-columns: repeat(auto-fit, minmax(24px, 1fr));
    padding: 12px clamp(20px, 4vw, 38px) 0;
}

.intro-progress-steps span {
    background: rgba(226, 200, 146, 0.16);
    border-radius: 999px;
    height: 4px;
    overflow: hidden;
    position: relative;
}

.intro-progress-steps span::after {
    background: linear-gradient(90deg, #f4c76a, #7ee7ff);
    content: '';
    inset: 0;
    opacity: 0;
    position: absolute;
    transform: scaleX(0);
    transform-origin: left;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.intro-progress-steps span.active::after {
    opacity: 1;
    transform: scaleX(1);
}

.intro-slides {
    min-height: 680px;
    position: relative;
}

.intro-slide {
    --intro-accent: #f4c76a;
    --intro-accent-rgb: 244, 199, 106;
    --intro-accent-soft: rgba(244, 199, 106, 0.16);
}

.intro-theme-cyan {
    --intro-accent: #7ee7ff;
    --intro-accent-rgb: 126, 231, 255;
    --intro-accent-soft: rgba(126, 231, 255, 0.15);
}

.intro-theme-violet {
    --intro-accent: #a991ff;
    --intro-accent-rgb: 169, 145, 255;
    --intro-accent-soft: rgba(169, 145, 255, 0.15);
}

.intro-theme-blue {
    --intro-accent: #58a6ff;
    --intro-accent-rgb: 88, 166, 255;
    --intro-accent-soft: rgba(88, 166, 255, 0.15);
}

.intro-theme-green {
    --intro-accent: #35d39d;
    --intro-accent-rgb: 53, 211, 157;
    --intro-accent-soft: rgba(53, 211, 157, 0.14);
}

.intro-theme-teal {
    --intro-accent: #59f0d8;
    --intro-accent-rgb: 89, 240, 216;
    --intro-accent-soft: rgba(89, 240, 216, 0.14);
}

.intro-theme-amber {
    --intro-accent: #ffb86b;
    --intro-accent-rgb: 255, 184, 107;
    --intro-accent-soft: rgba(255, 184, 107, 0.15);
}

.intro-slide {
    align-items: center;
    display: grid;
    gap: clamp(22px, 4vw, 46px);
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
    inset: 0;
    opacity: 0;
    padding: clamp(24px, 4vw, 44px);
    pointer-events: none;
    position: absolute;
    transform: translateX(24px) scale(0.98);
    transition: opacity 0.38s ease, transform 0.38s ease;
}

.intro-slide-content .eyebrow {
    color: var(--intro-accent);
}

.intro-slide.active .intro-slide-content > .eyebrow,
.intro-slide.active .intro-slide-content h2,
.intro-slide.active .intro-slide-content > p,
.intro-slide.active .intro-point-list li,
.intro-slide.active .intro-mood,
.intro-slide.active .intro-tutorial-panel {
    animation: introContentPop 0.52s ease both;
}

.intro-slide.active .intro-slide-content h2 { animation-delay: 0.06s; }
.intro-slide.active .intro-slide-content > p { animation-delay: 0.12s; }
.intro-slide.active .intro-point-list li:nth-child(1) { animation-delay: 0.18s; }
.intro-slide.active .intro-point-list li:nth-child(2) { animation-delay: 0.24s; }
.intro-slide.active .intro-point-list li:nth-child(3) { animation-delay: 0.3s; }
.intro-slide.active .intro-point-list li:nth-child(4) { animation-delay: 0.36s; }
.intro-slide.active .intro-mood,
.intro-slide.active .intro-tutorial-panel { animation-delay: 0.42s; }

.intro-slide.active {
    opacity: 1;
    pointer-events: auto;
    position: relative;
    transform: translateX(0) scale(1);
}

.intro-slide-content h2 {
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.08;
    margin: 10px 0 16px;
}

.intro-slide-content > p {
    color: #d6c8ac;
    font-size: 17px;
    line-height: 1.75;
}

.intro-point-list {
    display: grid;
    gap: 12px;
    list-style: none;
    margin: 22px 0;
    padding: 0;
}

.intro-point-list li {
    background: linear-gradient(135deg, rgba(18, 33, 54, 0.82), rgba(12, 25, 44, 0.74));
    border: 1px solid rgba(244, 199, 106, 0.2);
    border-radius: 18px;
    color: #f5ead0;
    cursor: help;
    font-weight: 800;
    padding: 15px 18px 15px 48px;
    position: relative;
}

.intro-point-list li::before {
    align-items: center;
    background: rgba(var(--intro-accent-rgb), 0.14);
    border: 1px solid rgba(var(--intro-accent-rgb), 0.28);
    border-radius: 999px;
    color: var(--intro-accent);
    content: '✦';
    display: flex;
    font-weight: 900;
    height: 24px;
    justify-content: center;
    left: 14px;
    position: absolute;
    top: 13px;
    width: 24px;
}

.intro-point-list li {
    isolation: isolate;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.intro-point-list li::after {
    background: radial-gradient(circle at center, rgba(var(--intro-accent-rgb), 0.34), transparent 65%);
    border-radius: inherit;
    content: '';
    inset: 0;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    transition: opacity 0.2s ease;
    z-index: -1;
}

.intro-point-list li:hover,
.intro-point-list li:focus-visible {
    background: linear-gradient(135deg, rgba(24, 48, 76, 0.94), rgba(18, 40, 66, 0.9));
    border-color: rgba(var(--intro-accent-rgb), 0.58);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34), 0 0 0 4px rgba(var(--intro-accent-rgb), 0.12);
    outline: none;
    transform: translateX(6px);
}

.intro-point-list li:hover::after,
.intro-point-list li:focus-visible::after {
    opacity: 1;
}

.intro-mood,
.intro-tutorial-card {
    background: rgba(10, 25, 43, 0.84);
    border: 1px solid rgba(126, 231, 255, 0.22);
    border-radius: 18px;
    color: #f8e6bb;
}

.intro-mood {
    margin-top: 18px;
    padding: 18px;
}

.intro-mood label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.intro-mood input {
    accent-color: #f4c76a;
    width: 100%;
}

.intro-mood p {
    color: #d6c8ac;
    margin-bottom: 0;
}

.intro-visual {
    aspect-ratio: 1 / 1;
    background: linear-gradient(145deg, rgba(244, 199, 106, 0.18), rgba(126, 231, 255, 0.1));
    border: 1px solid rgba(244, 199, 106, 0.22);
    border-radius: 26px;
    margin: 0;
    max-width: min(100%, 560px);
    overflow: hidden;
    perspective: 1200px;
    position: relative;
    width: 100%;
}

.intro-visual::before,
.intro-visual::after {
    border-color: rgba(var(--intro-accent-rgb), 0.72);
    content: '';
    height: 52px;
    pointer-events: none;
    position: absolute;
    width: 52px;
    z-index: 4;
}

.intro-visual::before {
    border-left: 2px solid;
    border-top: 2px solid;
    left: 16px;
    top: 16px;
}

.intro-visual::after {
    border-bottom: 2px solid;
    border-right: 2px solid;
    bottom: 16px;
    right: 16px;
}

.intro-visual-metrics {
    display: contents;
}

.intro-visual-metrics span {
    backdrop-filter: blur(14px);
    background: rgba(6, 16, 26, 0.72);
    border: 1px solid rgba(var(--intro-accent-rgb), 0.42);
    border-radius: 999px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28), 0 0 24px rgba(var(--intro-accent-rgb), 0.12);
    color: #fff8df;
    font-size: clamp(11px, 1vw, 13px);
    font-weight: 900;
    letter-spacing: 0.04em;
    padding: 9px 13px;
    position: absolute;
    text-transform: uppercase;
    z-index: 5;
}

.intro-visual-metrics span:nth-child(1) {
    left: 18px;
    top: 18px;
}

.intro-visual-metrics span:nth-child(2) {
    right: 18px;
    top: 18px;
}

.intro-visual-metrics span:nth-child(3) {
    bottom: 18px;
    right: 18px;
}

.intro-visual-stack::after {
    background-image:
        linear-gradient(rgba(var(--intro-accent-rgb), 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--intro-accent-rgb), 0.1) 1px, transparent 1px);
    background-size: 46px 46px;
    content: '';
    inset: 0;
    opacity: 0.22;
    pointer-events: none;
    position: absolute;
    z-index: 2;
}

.intro-visual:focus-visible {
    outline: 3px solid rgba(126, 231, 255, 0.5);
    outline-offset: 5px;
}

.intro-visual-stack {
    display: grid;
    height: 100%;
    transform-style: preserve-3d;
}

.intro-visual-face {
    backface-visibility: hidden;
    border-radius: inherit;
    grid-area: 1 / 1;
    height: 100%;
    overflow: hidden;
    transition: transform 0.65s ease, filter 0.65s ease;
}

.intro-visual-front {
    position: relative;
}

.intro-visual-back {
    align-items: flex-start;
    background:
        radial-gradient(circle at 18% 18%, rgba(126, 231, 255, 0.2), transparent 34%),
        radial-gradient(circle at 82% 28%, rgba(244, 199, 106, 0.24), transparent 30%),
        linear-gradient(145deg, rgba(7, 20, 34, 0.98), rgba(18, 35, 54, 0.98));
    color: #f8edd1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(24px, 4vw, 42px);
    transform: rotateY(180deg);
}

.intro-visual-back-label {
    background: rgba(126, 231, 255, 0.1);
    border: 1px solid rgba(126, 231, 255, 0.28);
    border-radius: 999px;
    color: #7ee7ff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.14em;
    margin-bottom: 14px;
    padding: 8px 12px;
    text-transform: uppercase;
}

.intro-visual-back p {
    background: linear-gradient(135deg, rgba(244, 199, 106, 0.13), rgba(126, 231, 255, 0.08));
    border: 1px solid rgba(244, 199, 106, 0.18);
    border-radius: 22px;
    color: #fff4d8;
    font-size: clamp(14px, 1.45vw, 17px);
    font-weight: 800;
    line-height: 1.58;
    margin: 0;
    max-width: 640px;
    padding: clamp(18px, 3vw, 26px);
    position: relative;
}

.intro-visual-back p::first-letter {
    color: #f4c76a;
    font-size: 1.35em;
}

.intro-visual:hover .intro-visual-front,
.intro-visual:focus-visible .intro-visual-front {
    filter: saturate(1.12) brightness(0.86);
    transform: rotateY(180deg);
}

.intro-visual:hover .intro-visual-back,
.intro-visual:focus-visible .intro-visual-back {
    transform: rotateY(360deg);
}

.intro-visual img {
    display: block;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 0.5s ease, filter 0.5s ease;
    width: 100%;
}

.intro-slide.active .intro-visual img {
    animation: introKenBurns 9s ease-in-out infinite alternate;
}

.intro-visual figcaption {
    background: rgba(6, 16, 26, 0.72);
    border: 1px solid rgba(244, 199, 106, 0.24);
    border-radius: 999px;
    bottom: 18px;
    color: #f4c76a;
    font-weight: 900;
    left: 18px;
    padding: 9px 14px;
    position: absolute;
}

.intro-controls {
    align-items: center;
    border-top: 1px solid rgba(244, 199, 106, 0.18);
    display: flex;
    gap: 14px;
    justify-content: space-between;
    padding: 18px clamp(20px, 4vw, 38px);
}

.intro-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    justify-content: center;
}

.intro-dot {
    align-items: center;
    background: rgba(226, 200, 146, 0.18);
    border: 1px solid rgba(226, 200, 146, 0.2);
    border-radius: 999px;
    color: #d8cdb5;
    display: inline-flex;
    font-size: 0;
    font-weight: 900;
    height: 28px;
    justify-content: center;
    min-width: 28px;
    overflow: hidden;
    padding: 0 9px;
    transition: min-width 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.intro-dot span {
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.intro-dot:hover {
    border-color: rgba(244, 199, 106, 0.42);
    transform: translateY(-2px);
}

.intro-dot.active {
    background: rgba(244, 199, 106, 0.2);
    border-color: rgba(244, 199, 106, 0.58);
    color: #f4c76a;
    font-size: 12px;
    min-width: 92px;
}

.intro-dot.active span {
    opacity: 1;
    transform: translateX(0);
}

.intro-tutorial-panel {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.intro-tutorial-status {
    color: #7ee7ff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.intro-tutorial-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.intro-tutorial-card {
    color: inherit;
    display: grid;
    gap: 8px;
    padding: 16px;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.intro-tutorial-card:hover {
    border-color: rgba(244, 199, 106, 0.44);
    transform: translateY(-3px);
}

.intro-tutorial-card span {
    color: #7ee7ff;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.intro-tutorial-card h3 {
    font-size: 17px;
    line-height: 1.35;
    margin: 0;
}

.intro-tutorial-card p {
    color: #b9c7d9;
    font-size: 13px;
    line-height: 1.45;
    margin: 0;
}

.intro-tutorial-card strong {
    color: #f4c76a;
    font-size: 12px;
    text-transform: uppercase;
}

.intro-final-cta {
    align-items: center;
    background: linear-gradient(135deg, rgba(244, 199, 106, 0.18), rgba(23, 38, 58, 0.86));
    border: 1px solid rgba(244, 199, 106, 0.3);
    border-radius: 24px;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    padding: clamp(22px, 4vw, 34px);
}

.intro-mood[data-mood-level="0"] {
    background: linear-gradient(135deg, rgba(88, 166, 255, 0.14), rgba(10, 25, 43, 0.9));
    border-color: rgba(88, 166, 255, 0.38);
}

.intro-mood[data-mood-level="1"] {
    background: linear-gradient(135deg, rgba(244, 199, 106, 0.13), rgba(10, 25, 43, 0.9));
    border-color: rgba(244, 199, 106, 0.32);
}

.intro-mood[data-mood-level="2"] {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.14), rgba(10, 25, 43, 0.9));
    border-color: rgba(255, 107, 107, 0.38);
}

.intro-complete-badge {
    background: rgba(126, 231, 255, 0.12);
    border: 1px solid rgba(126, 231, 255, 0.28);
    border-radius: 999px;
    color: #7ee7ff;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    margin: 8px 0 12px;
    padding: 8px 12px;
    text-transform: uppercase;
}

.intro-final-checklist {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
}

.intro-final-checklist li {
    align-items: center;
    background: rgba(6, 16, 26, 0.38);
    border: 1px solid rgba(244, 199, 106, 0.24);
    border-radius: 999px;
    color: #fff4d8;
    display: inline-flex;
    font-size: 13px;
    font-weight: 900;
    gap: 7px;
    padding: 8px 12px;
}

.intro-final-checklist li::before {
    color: #35d39d;
    content: '✓';
}


.intro-visual-stack {
    margin: clamp(18px, 3vw, 28px);
    height: calc(100% - clamp(36px, 6vw, 56px));
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38), 0 0 46px rgba(var(--intro-accent-rgb), 0.16);
}

.intro-visual-front::before {
    background: radial-gradient(circle at 50% 44%, rgba(var(--intro-accent-rgb), 0.2), transparent 54%);
    content: '';
    inset: 0;
    mix-blend-mode: screen;
    pointer-events: none;
    position: absolute;
    z-index: 2;
}

.intro-story-overlay {
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    position: absolute;
    z-index: 3;
}

.intro-story-chip,
.intro-indicator-chip,
.intro-lesson-card,
.intro-flow-step,
.intro-ai-core {
    backdrop-filter: blur(14px);
    background: rgba(6, 16, 26, 0.72);
    border: 1px solid rgba(var(--intro-accent-rgb), 0.46);
    border-radius: 999px;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.34), 0 0 28px rgba(var(--intro-accent-rgb), 0.18);
    color: #fff8df;
    font-size: clamp(11px, 1vw, 13px);
    font-weight: 900;
    letter-spacing: 0.05em;
    padding: 9px 13px;
    position: absolute;
    text-transform: uppercase;
}

.intro-story-chip-top { right: 22px; top: 22px; }
.intro-story-chip-bottom { bottom: 22px; left: 22px; }

.intro-clock-ring,
.intro-ai-radar {
    aspect-ratio: 1 / 1;
    border: 2px solid rgba(var(--intro-accent-rgb), 0.58);
    border-radius: 50%;
    box-shadow: inset 0 0 40px rgba(var(--intro-accent-rgb), 0.14), 0 0 42px rgba(var(--intro-accent-rgb), 0.2);
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 54%;
}

.intro-clock-ring::before,
.intro-clock-ring::after {
    background: rgba(var(--intro-accent-rgb), 0.84);
    border-radius: 999px;
    content: '';
    position: absolute;
}

.intro-clock-ring::before { height: 12px; left: calc(50% - 6px); top: -6px; width: 12px; }
.intro-clock-ring::after { bottom: -6px; height: 12px; left: calc(50% - 6px); width: 12px; }

.intro-clock-hand {
    animation: introClockSweep 8s linear infinite;
    background: linear-gradient(180deg, rgba(var(--intro-accent-rgb), 0.92), transparent);
    border-radius: 999px;
    height: 25%;
    left: 50%;
    position: absolute;
    top: 25%;
    transform-origin: bottom center;
    width: 3px;
}

.intro-story-market::after {
    animation: introAmbientGlow 5.5s ease-in-out infinite alternate;
    background: radial-gradient(circle, rgba(var(--intro-accent-rgb), 0.28), transparent 56%);
    content: '';
    filter: blur(6px);
    inset: 16%;
    position: absolute;
}

.intro-tech-line {
    background: rgba(var(--intro-accent-rgb), 0.84);
    border-radius: 999px;
    box-shadow: 0 0 20px rgba(var(--intro-accent-rgb), 0.32);
    height: 2px;
    left: 14%;
    position: absolute;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
    width: 72%;
}

.intro-tech-line.support { bottom: 32%; }
.intro-tech-line.resistance { top: 31%; }
.intro-tech-line.trend { top: 52%; transform: rotate(-18deg) scaleX(0); }
.intro-slide.active .intro-tech-line.support { animation: introLineDraw 0.85s 0.16s ease both; }
.intro-slide.active .intro-tech-line.resistance { animation: introLineDraw 0.85s 0.34s ease both; }
.intro-slide.active .intro-tech-line.trend { animation: introTrendDraw 0.85s 0.52s ease both; }

.intro-indicator-chip { transition: background 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease; }
.intro-indicator-chip-1 { left: 8%; top: 12%; }
.intro-indicator-chip-2 { right: 8%; top: 22%; }
.intro-indicator-chip-3 { bottom: 24%; left: 10%; }
.intro-indicator-chip-4 { bottom: 12%; right: 9%; }
.intro-visual:hover .intro-indicator-chip,
.intro-visual:focus-visible .intro-indicator-chip {
    background: rgba(var(--intro-accent-rgb), 0.22);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.36), 0 0 34px rgba(var(--intro-accent-rgb), 0.34);
    transform: translateY(-4px);
}

.intro-ai-radar {
    animation: introRadarScan 2.8s ease-out infinite;
    width: 60%;
}

.intro-ai-core {
    align-items: center;
    border-radius: 50%;
    display: flex;
    font-size: 18px;
    height: 68px;
    justify-content: center;
    left: 50%;
    padding: 0;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
}

.intro-mood-meter {
    background: linear-gradient(90deg, #58a6ff, #f4c76a, #ff6b6b);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    bottom: 26px;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.34);
    height: 18px;
    left: 13%;
    position: absolute;
    right: 13%;
}

.intro-mood-meter i {
    background: #fff8df;
    border-radius: 50%;
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.48);
    display: block;
    height: 30px;
    left: 48%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: left 0.24s ease;
    width: 30px;
}

.intro-slide[data-mood-level="0"] { --intro-accent: #58a6ff; --intro-accent-rgb: 88, 166, 255; }
.intro-slide[data-mood-level="1"] { --intro-accent: #35d39d; --intro-accent-rgb: 53, 211, 157; }
.intro-slide[data-mood-level="2"] { --intro-accent: #ff6b6b; --intro-accent-rgb: 255, 107, 107; }
.intro-slide[data-mood-level="0"] .intro-mood-meter i { left: 16%; }
.intro-slide[data-mood-level="1"] .intro-mood-meter i { left: 50%; }
.intro-slide[data-mood-level="2"] .intro-mood-meter i { left: 84%; }
.intro-slide[data-mood-level="0"] .intro-visual { background: linear-gradient(145deg, rgba(88, 166, 255, 0.2), rgba(10, 25, 43, 0.84)); }
.intro-slide[data-mood-level="1"] .intro-visual { background: linear-gradient(145deg, rgba(53, 211, 157, 0.18), rgba(10, 25, 43, 0.84)); }
.intro-slide[data-mood-level="2"] .intro-visual { background: linear-gradient(145deg, rgba(255, 107, 107, 0.18), rgba(10, 25, 43, 0.84)); }

.intro-mood-dot {
    animation: introMoodBlink 2.4s ease-in-out infinite;
    background: rgba(var(--intro-accent-rgb), 0.7);
    border-radius: 50%;
    height: 12px;
    position: absolute;
    width: 12px;
}
.intro-mood-dot-1 { left: 18%; top: 28%; }
.intro-mood-dot-2 { animation-delay: 0.35s; right: 22%; top: 36%; }
.intro-mood-dot-3 { animation-delay: 0.7s; left: 44%; top: 18%; }

.intro-flow-path {
    background: linear-gradient(90deg, rgba(var(--intro-accent-rgb), 0.1), rgba(var(--intro-accent-rgb), 0.86), rgba(var(--intro-accent-rgb), 0.1));
    border-radius: 999px;
    height: 4px;
    left: 15%;
    position: absolute;
    right: 15%;
    top: 50%;
}

.intro-flow-step {
    align-items: center;
    animation: introFlowPulse 3.2s ease-in-out infinite;
    border-radius: 50%;
    display: flex;
    font-size: 18px;
    height: 48px;
    justify-content: center;
    padding: 0;
    top: calc(50% - 24px);
    width: 48px;
}
.intro-flow-step-1 { animation-delay: 0s; left: 12%; }
.intro-flow-step-2 { animation-delay: 0.35s; left: 36%; }
.intro-flow-step-3 { animation-delay: 0.7s; right: 36%; }
.intro-flow-step-4 { animation-delay: 1.05s; right: 12%; }

.intro-lesson-card {
    border-radius: 18px;
    left: 50%;
    padding: 14px 16px;
    transform: translateX(-50%);
    width: min(72%, 260px);
}
.intro-lesson-card-1 { top: 18%; }
.intro-lesson-card-2 { top: 39%; transform: translateX(-50%) scale(1.04); }
.intro-lesson-card-3 { top: 60%; }
.intro-slide.active .intro-lesson-card-2 {
    animation: introRecommendedLesson 2.6s ease-in-out infinite;
}


@keyframes introClockSweep {
    to { transform: rotate(360deg); }
}

@keyframes introAmbientGlow {
    from { opacity: 0.34; transform: scale(0.88); }
    to { opacity: 0.78; transform: scale(1.08); }
}

@keyframes introLineDraw {
    from { opacity: 0; transform: scaleX(0); }
    to { opacity: 1; transform: scaleX(1); }
}

@keyframes introTrendDraw {
    from { opacity: 0; transform: rotate(-18deg) scaleX(0); }
    to { opacity: 1; transform: rotate(-18deg) scaleX(1); }
}

@keyframes introRadarScan {
    0% { opacity: 0.9; transform: translate(-50%, -50%) scale(0.42); }
    70% { opacity: 0.22; transform: translate(-50%, -50%) scale(1.08); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1.16); }
}

@keyframes introMoodBlink {
    0%, 100% { opacity: 0.32; transform: scale(0.82); }
    50% { opacity: 1; transform: scale(1.18); }
}

@keyframes introFlowPulse {
    0%, 100% { background: rgba(6, 16, 26, 0.72); transform: translateY(0) scale(1); }
    45% { background: rgba(var(--intro-accent-rgb), 0.26); transform: translateY(-5px) scale(1.08); }
}

@keyframes introRecommendedLesson {
    0%, 100% { box-shadow: 0 16px 38px rgba(0, 0, 0, 0.34), 0 0 28px rgba(var(--intro-accent-rgb), 0.18); }
    50% { box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4), 0 0 46px rgba(var(--intro-accent-rgb), 0.42); }
}

@keyframes introFloat {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(-28px, 34px, 0) scale(1.08); }
}

@keyframes introKenBurns {
    from { filter: saturate(1); transform: scale(1.02); }
    to { filter: saturate(1.12); transform: scale(1.08); }
}

@keyframes introContentPop {
    from { opacity: 0; transform: translate3d(0, 14px, 0) scale(0.98); }
    to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}


/* Clean intro slide visuals: image-only front, breathing zoom, instant hover flip reset, and rotating light ring. */
.intro-visual {
    border-color: rgba(var(--intro-accent-rgb), 0.28);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34), 0 0 34px rgba(var(--intro-accent-rgb), 0.14);
    isolation: isolate;
}

.intro-visual::before {
    animation: introOrbitLight 5.5s linear infinite;
    background: conic-gradient(from 0deg, transparent 0 62%, rgba(var(--intro-accent-rgb), 0.14) 68%, rgba(var(--intro-accent-rgb), 0.95) 74%, #fff6cf 78%, rgba(var(--intro-accent-rgb), 0.18) 84%, transparent 90% 100%);
    border: 0;
    border-radius: inherit;
    content: '';
    height: auto;
    inset: 0;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    padding: 2px;
    position: absolute;
    width: auto;
    z-index: 5;
}

.intro-visual::after {
    animation: introBreathingGlow 4.8s ease-in-out infinite;
    background: radial-gradient(circle at 50% 50%, rgba(var(--intro-accent-rgb), 0.2), transparent 62%);
    border: 0;
    border-radius: inherit;
    content: '';
    height: auto;
    inset: 10px;
    position: absolute;
    width: auto;
    z-index: 0;
}

.intro-visual-stack {
    position: relative;
    z-index: 1;
}

.intro-visual-stack::after,
.intro-visual-front::before,
.intro-visual-metrics,
.intro-story-overlay,
.intro-visual figcaption {
    display: none;
}

.intro-visual-face {
    transition: transform 0.38s ease-out, filter 0.24s ease-out;
}

.intro-visual:hover .intro-visual-front,
.intro-visual:focus-visible .intro-visual-front,
.intro-visual.is-flipped .intro-visual-front {
    filter: saturate(1.08) brightness(0.86);
    transform: rotateY(180deg);
}

.intro-visual:hover .intro-visual-back,
.intro-visual:focus-visible .intro-visual-back,
.intro-visual.is-flipped .intro-visual-back {
    transform: rotateY(360deg);
}

.intro-slide.active .intro-visual img {
    animation: introImageBreath 4.8s ease-in-out infinite;
}

@keyframes introImageBreath {
    0%, 100% { filter: saturate(1) contrast(1); transform: scale(1.015); }
    50% { filter: saturate(1.12) contrast(1.04); transform: scale(1.075); }
}

@keyframes introOrbitLight {
    to { transform: rotate(360deg); }
}

@keyframes introBreathingGlow {
    0%, 100% { opacity: 0.36; transform: scale(0.96); }
    50% { opacity: 0.82; transform: scale(1.04); }
}

@media (max-width: 980px) {
    .intro-slides {
        min-height: 0;
    }

    .intro-slide {
        grid-template-columns: 1fr;
    }

    .intro-visual {
        margin-inline: auto;
        max-width: min(100%, 520px);
    }
}

@media (max-width: 680px) {
    .intro-tutorial-grid {
        grid-template-columns: 1fr;
    }

    .intro-final-cta,
    .intro-controls {
        align-items: stretch;
        flex-direction: column;
    }

    .intro-controls .button {
        text-align: center;
    }

    .intro-deck-toolbar,
    .intro-progress-steps {
        padding-inline: 18px;
    }

    .intro-dot.active {
        min-width: 76px;
    }

    .intro-visual-metrics span {
        font-size: 10px;
        padding: 7px 9px;
    }

    .intro-visual-metrics span:nth-child(1) {
        left: 12px;
        top: 12px;
    }

    .intro-visual-metrics span:nth-child(2) {
        right: 12px;
        top: 12px;
    }

    .intro-visual-metrics span:nth-child(3) {
        bottom: 12px;
        right: 12px;
    }

    .tooltip-popover.is-intro-tooltip {
        padding-left: 18px;
    }

    .tooltip-popover.is-intro-tooltip::before {
        display: none;
    }
}

/* Error log management refinements */
.error-logs-page.has-app-shell .shell {
    min-width: 0;
    padding-left: 266px;
    padding-right: 18px;
}

.error-logs-page.has-app-shell.sidebar-hidden .shell {
    padding-left: 18px;
}

.error-log-table-wrap {
    max-width: 100%;
    overflow-x: auto;
}

.error-log-table {
    min-width: 980px;
    table-layout: fixed;
}

.error-log-col-time {
    width: 142px;
}

.error-log-col-level {
    width: 150px;
}

.error-log-col-message {
    width: 28%;
}

.error-log-col-location {
    width: 26%;
}

.error-log-col-user {
    width: 150px;
}

.error-log-col-status {
    width: 108px;
}

.error-log-table td,
.error-log-table th {
    overflow-wrap: anywhere;
}

.error-log-message {
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.error-log-table .metadata-cell {
    max-height: 92px;
}

.error-log-status-form {
    display: block;
}

button.error-log-status-toggle {
    border: 1px solid currentColor;
    display: inline-flex;
    font-size: 12px;
    justify-content: center;
    line-height: 1.1;
    min-width: 76px;
    padding: 6px 10px;
}

button.error-log-status-toggle:hover,
button.error-log-status-toggle:focus-visible {
    filter: brightness(1.15);
    outline: 1px solid rgba(248, 237, 209, 0.55);
    outline-offset: 2px;
}

@media (max-width: 900px) {
    .error-logs-page.has-app-shell .shell,
    .error-logs-page.has-app-shell.sidebar-hidden .shell {
        padding: 18px 14px 88px;
    }
}

@media (max-width: 760px) {
    .error-log-table {
        min-width: 0;
        table-layout: auto;
    }

    .error-log-table colgroup {
        display: none;
    }

    .error-log-message {
        display: block;
    }
}

.referral-link-field {
    max-width: 640px;
}

.referral-link-row {
    align-items: stretch;
    display: flex;
    gap: 10px;
}

.referral-link-row input {
    flex: 1 1 auto;
    min-width: 0;
}

.referral-copy-button {
    flex: 0 0 auto;
    min-width: 92px;
    white-space: nowrap;
}

.referral-copy-button.copied {
    border-color: rgba(34, 197, 94, 0.6);
    color: #bbf7d0;
}

.referral-bonus-layout {
    display: grid;
    gap: 18px;
    margin: 12px 0 18px;
}

.referral-bonus-card {
    background: rgba(6, 16, 26, 0.72);
    border: 1px solid rgba(209, 160, 82, 0.24);
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
    padding: 18px;
}

.referral-bonus-card-credit {
    background: linear-gradient(135deg, rgba(200, 150, 69, 0.14), rgba(6, 16, 26, 0.72));
}

.referral-bonus-card-money {
    background: linear-gradient(135deg, rgba(200, 150, 69, 0.14), rgba(6, 16, 26, 0.72));
}

.referral-bonus-card-head {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    justify-content: space-between;
    margin-bottom: 10px;
}

.referral-bonus-card-head h3 {
    margin: 0;
}

.referral-bonus-eyebrow {
    background: rgba(209, 160, 82, 0.16);
    border: 1px solid rgba(209, 160, 82, 0.32);
    border-radius: 999px;
    color: #f8edd1;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 5px 10px;
    text-transform: uppercase;
}

.referral-bonus-notes {
    margin: 12px 0 0;
    padding-left: 20px;
}

.referral-bonus-notes li + li {
    margin-top: 6px;
}

.referral-stat-grid > div {
    background: rgba(6, 16, 26, 0.72);
    border: 1px solid rgba(209, 160, 82, 0.24);
    border-radius: 14px;
    padding: 14px;
}

.bonus-progress {
    background:
        radial-gradient(circle at top left, rgba(244, 211, 138, 0.18), transparent 34%),
        linear-gradient(135deg, rgba(7, 16, 26, 0.9), rgba(18, 31, 45, 0.72));
    border: 1px solid rgba(209, 160, 82, 0.28);
    border-radius: 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 36px rgba(0, 0, 0, 0.2);
    margin: 18px 0;
    overflow: hidden;
    padding: 18px;
}

.bonus-progress-head {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 24px;
}

.bonus-progress-head div {
    display: grid;
    gap: 4px;
}

.bonus-progress-head span:not(.bonus-progress-pill) {
    color: var(--muted);
    font-size: 13px;
}

.bonus-progress-pill {
    background: rgba(209, 160, 82, 0.16);
    border: 1px solid rgba(209, 160, 82, 0.34);
    border-radius: 999px;
    color: #f8edd1;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 10px;
    white-space: nowrap;
}

.bonus-progress-track {
    background: rgba(7, 16, 26, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    height: 18px;
    margin-bottom: 34px;
    position: relative;
}

.bonus-progress-fill {
    background: linear-gradient(90deg, #c89645, #f4d38a 70%, #fff1bd);
    border-radius: inherit;
    box-shadow: 0 0 20px rgba(244, 211, 138, 0.38);
    height: 100%;
    min-width: 0;
    position: relative;
}

.bonus-progress-fill::after {
    background: rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    content: '';
    height: 4px;
    left: 10px;
    opacity: 0.55;
    position: absolute;
    right: 10px;
    top: 4px;
}

.bonus-milestone {
    color: #f8edd1;
    display: grid;
    font-size: 12px;
    font-weight: 800;
    gap: 2px;
    position: absolute;
    text-align: center;
    top: -10px;
    transform: translateX(-50%);
    white-space: nowrap;
}

.bonus-milestone::before {
    background: #07101a;
    border: 2px solid #d9ad5f;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(217, 173, 95, 0.14);
    content: '';
    display: block;
    height: 16px;
    margin: 0 auto 5px;
    width: 16px;
}

.bonus-milestone span {
    color: #b89f6e;
    font-size: 10px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.bonus-progress-foot {
    align-items: center;
    color: var(--muted);
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.bonus-progress-foot strong {
    color: #f8edd1;
    white-space: nowrap;
}

.referral-stat-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    margin: 18px 0;
}

.referral-stat-grid-compact {
    margin-bottom: 0;
}

@media (min-width: 1024px) {
    .referral-bonus-layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .referral-link-row {
        flex-direction: column;
    }

    .referral-copy-button {
        width: 100%;
    }

    .referral-bonus-card {
        padding: 14px;
    }

    .bonus-progress-head,
    .bonus-progress-foot {
        align-items: flex-start;
        flex-direction: column;
    }
}

.error-log-hero-stats {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(92px, 1fr));
    min-width: min(100%, 420px);
}

.error-log-hero-stats > div {
    background: rgba(24, 18, 10, 0.28);
    border: 1px solid rgba(184, 159, 110, 0.18);
    border-radius: 14px;
    padding: 12px;
}

.error-log-spoiler {
    background: rgba(24, 18, 10, 0.24);
    border: 1px solid rgba(184, 159, 110, 0.18);
    border-radius: 14px;
    margin-bottom: 16px;
    padding: 0;
}

.error-log-spoiler summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    list-style: none;
    padding: 16px 18px;
}

.error-log-spoiler summary::-webkit-details-marker {
    display: none;
}

.error-log-spoiler summary strong {
    color: #f8edd1;
    display: block;
    font-size: 20px;
    line-height: 1.2;
}

.error-log-spoiler summary small {
    color: #b89f6e;
    font-size: 12px;
    white-space: nowrap;
}

.error-log-spoiler summary::after {
    color: #b89f6e;
    content: '+';
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

.error-log-spoiler[open] summary {
    border-bottom: 1px solid rgba(184, 159, 110, 0.16);
}

.error-log-spoiler[open] summary::after {
    content: '-';
}

.error-log-spoiler .section-heading,
.error-log-spoiler .status-cron-flow {
    margin: 0;
    padding: 16px 18px 18px;
}

.error-log-level-list a.badge {
    text-decoration: none;
}

.error-log-message-row {
    align-items: flex-start;
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

.error-log-message-row .error-log-message {
    flex: 1 1 auto;
}

.error-log-copy-button {
    flex: 0 0 auto;
    font-size: 11px;
    line-height: 1;
    min-height: 0;
    padding: 5px 8px;
}

.error-log-copy-button.copied {
    border-color: rgba(34, 197, 94, 0.55);
    color: #86efac;
}

.error-log-table .metadata-cell + .error-log-copy-button {
    margin-top: 6px;
}

@media (max-width: 760px) {
    .error-log-hero-stats {
        grid-template-columns: 1fr;
    }

    .error-log-spoiler summary,
    .error-log-spoiler .section-heading,
    .error-log-spoiler .status-cron-flow {
        padding-left: 14px;
        padding-right: 14px;
    }

    .error-log-message-row {
        display: block;
    }

    .error-log-message-row .error-log-copy-button {
        margin-top: 8px;
    }
}

/* Page: news / blog refinements */

.news-updated-meta {
    margin-top: 8px;
}

.news-login-note {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin-bottom: 18px;
}

.news-login-note p {
    margin: 0;
}

.news-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.news-card {
    background: linear-gradient(160deg, rgba(201, 150, 69, 0.12), rgba(11, 23, 35, 0.98) 38%, rgba(6, 16, 26, 0.98));
    border-color: rgba(244, 199, 106, 0.28);
    display: flex;
    flex-direction: column;
    min-height: 260px;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.news-card-removing {
    opacity: 0;
    transform: scale(0.98);
}

.news-card-meta {
    align-items: center;
    color: #d8c086;
    display: flex;
    flex-wrap: wrap;
    font-size: 12px;
    gap: 7px;
    margin-bottom: 10px;
}

.news-card h2 {
    font-size: 19px;
    line-height: 1.3;
    margin-bottom: 10px;
}

.news-card p {
    flex: 1 1 auto;
}

.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0;
}

.news-footer-row {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin: 4px 0 12px;
}

.news-footer-row .news-tags {
    flex: 1 1 auto;
}

.news-image-icon-button {
    align-items: center;
    border: 1px solid rgba(209, 160, 82, 0.34);
    border-radius: 999px;
    display: inline-flex;
    flex: 0 0 auto;
    height: 34px;
    justify-content: center;
    margin-left: auto;
    padding: 0;
    width: 34px;
}

.news-image-icon-button .action-icon {
    height: 17px;
    width: 17px;
}

.news-card-actions {
    margin-top: auto;
}

.news-empty-state {
    grid-column: 1 / -1;
}

.news-pagination {
    justify-content: center;
}

.status-cron-controls {
    display: grid;
    gap: 12px;
}

.status-cron-controls-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.status-cron-controls-daily-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.status-config-spoiler summary,
.status-database-spoiler summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.status-config-spoiler summary strong {
    display: block;
    font-size: 1.25rem;
}

.status-snapshot-help {
    display: grid;
    gap: 8px;
    margin: 0 0 16px;
}

.status-snapshot-help p {
    color: var(--muted);
    margin: 0;
}

.status-toggle-row {
    align-items: center;
    background: #0d1a28;
    border: 1px solid rgba(209, 160, 82, 0.24);
    border-radius: 8px;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 0;
    min-height: 74px;
    padding: 10px 12px;
}

.status-toggle-row-third {
    grid-column: span 2;
}

.status-toggle-row-source {
    align-items: stretch;
    flex-direction: column;
    grid-column: span 3;
}

.status-toggle-row-third input[type="number"] {
    flex-basis: 104px;
    max-width: 104px;
}

.status-toggle-row-wide {
    grid-column: 1 / -1;
}

.status-toggle-row span {
    display: grid;
    gap: 4px;
}

.status-toggle-row em {
    color: #9d895f;
    font-size: 12px;
    font-style: normal;
}

.status-toggle-row input[type="checkbox"] {
    accent-color: #c89645;
    flex: 0 0 auto;
    height: 22px;
    width: 22px;
}

.status-toggle-row input[type="number"],
.status-toggle-row select {
    flex: 0 0 240px;
    max-width: 240px;
}

.status-toggle-row textarea {
    flex: 1 1 360px;
    min-width: 260px;
}

.status-toggle-row-source textarea {
    flex-basis: auto;
    min-height: 96px;
    min-width: 0;
    width: 100%;
}

.status-cron-actions {
    display: flex;
    justify-content: flex-end;
}

.status-refresh-news-form {
    margin-top: 10px;
}

.status-refresh-news-form button {
    flex: 0 0 auto;
}

@media (max-width: 760px) {
    .status-cron-controls-grid {
        grid-template-columns: 1fr;
    }

    .status-toggle-row-third,
    .status-toggle-row-source {
        grid-column: 1 / -1;
    }

    .news-login-note,
    .status-toggle-row {
        align-items: stretch;
        flex-direction: column;
    }

    .status-toggle-row input[type="number"],
    .status-toggle-row select,
    .status-toggle-row textarea {
        flex-basis: auto;
        max-width: none;
        min-width: 0;
    }

    .status-cron-actions {
        justify-content: stretch;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }
}

.news-title-link {
    color: inherit;
    text-decoration: none;
}

.news-title-link:hover,
.news-title-link:focus {
    color: #f4c76a;
    text-decoration: underline;
}

.news-card-actions form {
    margin: 0;
}


/* Page: advanced screener */

.advanced-screener-sections {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin: 1rem 0;
}

.advanced-screener-sections a {
    background: rgba(248, 237, 209, 0.06);
    border: 1px solid rgba(244, 199, 106, 0.24);
    border-radius: 999px;
    color: #f8edd1;
    font-weight: 700;
    padding: .55rem .85rem;
    text-decoration: none;
}

.advanced-screener-sections a:hover,
.advanced-screener-sections a:focus {
    background: rgba(244, 199, 106, 0.16);
    border-color: rgba(244, 199, 106, 0.44);
}

.advanced-screener-workspace {
    display: grid;
    gap: 1rem;
    margin: 1rem 0 1.5rem;
}

.advanced-screener-workspace.card-like,
.advanced-screener-secondary-grid .card-like {
    background: rgba(8, 18, 29, 0.72);
    border: 1px solid rgba(209, 160, 82, 0.2);
    border-radius: 20px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16);
    padding: 1rem;
}

.advanced-screener-panel h3,
.advanced-screener-section-title h3 {
    margin: 0 0 .35rem;
}

.advanced-screener-panel {
    background: rgba(6, 16, 26, 0.36);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 16px;
    display: grid;
    gap: .85rem;
    padding: 1rem;
}

.advanced-screener-manual-header {
    border-top: 1px solid rgba(209, 160, 82, 0.16);
    margin-top: .15rem;
    padding-top: 1rem;
}

.advanced-screener-section-title {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: space-between;
}

.advanced-screener-panel > .form-actions {
    background: rgba(248, 237, 209, 0.05);
    border: 1px solid rgba(209, 160, 82, 0.2);
    border-radius: 14px;
    padding: .85rem;
}

.advanced-screener-import h2,
.advanced-screener-chatbot h2 {
    margin-bottom: .35rem;
}

@media (max-width: 760px) {
    .advanced-screener-section-title {
        align-items: stretch;
    }

    .advanced-screener-section-title .button {
        width: 100%;
    }
}

.advanced-screener-form {
    display: grid;
    gap: 1rem;
    margin: 0;
}

.advanced-screener-secondary-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr);
    margin: 1rem 0 1.5rem;
}

.advanced-screener-secondary-grid details > summary,
.advanced-screener-results > summary {
    cursor: pointer;
    font-weight: 800;
}

.advanced-screener-secondary-grid details > summary {
    align-items: center;
    background: rgba(248, 237, 209, 0.05);
    border: 1px solid rgba(209, 160, 82, 0.18);
    border-radius: 14px;
    color: #f8edd1;
    display: flex;
    font-size: 1.1rem;
    justify-content: space-between;
    list-style-position: inside;
    padding: .85rem 1rem;
}

.advanced-screener-secondary-grid details > form,
.advanced-screener-secondary-grid details > .muted,
.advanced-screener-secondary-grid details > .chatbot-json-result {
    margin-top: .85rem;
}

@media (max-width: 860px) {
    .advanced-screener-secondary-grid {
        grid-template-columns: 1fr;
    }
}

.rule-preview,
.rule-builder-helper {
    background: rgba(248, 237, 209, 0.05);
    border: 1px solid rgba(209, 160, 82, 0.24);
    border-radius: 14px;
    padding: 1rem;
}

.rule-builder-helper {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.rule-builder-helper .guide-button {
    background: #f4c542;
    box-shadow: 0 10px 24px rgba(244, 197, 66, 0.22);
    color: #07101a;
}

.rule-builder-helper .guide-button:hover {
    background: #ffd45a;
    color: #07101a;
}

.rule-preview h2 {
    font-size: 1rem;
    margin: 0 0 .35rem;
}

.rule-builder-table select,
.rule-builder-table input,
.advanced-screener-form textarea {
    width: 100%;
}


.rule-choice-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.rule-choice-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .55rem;
    border: 1px solid rgba(148, 163, 184, .45);
    border-radius: 999px;
    background: rgba(148, 163, 184, .08);
    font-size: .9rem;
}

.rule-choice-chip input {
    width: auto;
}

.rule-value-range {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
}

.rule-row-summary {
    font-size: .82rem;
    line-height: 1.35;
    margin-top: .45rem;
}

.rule-preview p {
    margin: .35rem 0 0;
}

.rule-preview-empty {
    color: var(--muted, #9ca3af);
    font-style: italic;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;
}

button.danger,
.button.danger {
    background: #b42318;
    border-color: #b42318;
    color: #fff;
}


.advanced-screener-results {
    background: rgba(248, 237, 209, 0.04);
    border: 1px solid rgba(209, 160, 82, 0.18);
    border-radius: 14px;
    margin-top: .25rem;
    padding: .85rem;
}

.advanced-screener-results summary {
    cursor: pointer;
    font-size: 1rem;
    font-weight: 800;
}

.advanced-screener-results[open] summary {
    margin-bottom: .75rem;
}

.empty-state {
    padding: 1rem;
    border: 1px dashed rgba(148, 163, 184, .55);
    border-radius: 14px;
    color: var(--muted, #64748b);
    background: rgba(148, 163, 184, .08);
}

.advanced-screener-file-row {
    align-items: end;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 0;
}

.advanced-screener-file-row > div:first-child {
    flex: 1 1 260px;
}

.advanced-screener-rule-actions {
    align-items: center;
    display: flex;
    flex-wrap: nowrap;
    gap: .75rem;
    justify-content: space-between;
}

.advanced-screener-primary-actions,
.advanced-screener-import-actions {
    align-items: center;
    display: flex;
    flex-wrap: nowrap;
    gap: .5rem;
}

.advanced-screener-primary-actions {
    flex: 0 0 auto;
}

.advanced-screener-import-actions {
    flex: 1 1 auto;
    justify-content: flex-end;
    margin-left: auto;
    min-width: 260px;
}

.advanced-screener-import-actions input[type="file"] {
    max-width: 230px;
}


.advanced-screener-desktop-note {
    color: rgba(226, 232, 240, 0.82);
    display: block;
    font-size: .9em;
    font-style: italic;
    margin-top: .35rem;
}

@media (max-width: 760px) {
    .advanced-screener-page {
        overflow-x: hidden;
    }

    .advanced-screener-workspace.card-like,
    .advanced-screener-secondary-grid .card-like,
    .advanced-screener-panel,
    .advanced-screener-results {
        border-radius: 14px;
        padding: .75rem;
    }

    .advanced-screener-workspace,
    .advanced-screener-secondary-grid,
    .advanced-screener-form,
    .advanced-screener-panel {
        min-width: 0;
    }

    .advanced-screener-rule-actions,
    .advanced-screener-primary-actions,
    .advanced-screener-import-actions,
    .advanced-screener-file-row {
        align-items: stretch;
        flex-direction: column;
        flex-wrap: nowrap;
        width: 100%;
    }

    .advanced-screener-primary-actions,
    .advanced-screener-import-actions {
        margin-left: 0;
        min-width: 0;
    }

    .advanced-screener-primary-actions > *,
    .advanced-screener-import-actions > *,
    .advanced-screener-file-row > *,
    .advanced-screener-file-row > div:first-child {
        flex: 0 1 auto;
        width: 100%;
    }

    .advanced-screener-import-actions input[type="file"] {
        max-width: none;
    }

    .rule-builder-table,
    .rule-builder-table tbody,
    .rule-builder-table tr,
    .rule-builder-table td {
        display: block;
        width: 100%;
    }

    .rule-builder-table {
        min-width: 0;
    }

    .rule-builder-table thead {
        display: none;
    }

    .rule-builder-table tr {
        background: rgba(15, 23, 42, 0.72);
        border: 1px solid rgba(148, 163, 184, 0.24);
        border-radius: 14px;
        margin-bottom: .75rem;
        padding: .75rem;
    }

    .rule-builder-table td {
        border: 0;
        padding: .45rem 0;
    }

    .rule-builder-table td::before {
        color: var(--muted, #9ca3af);
        content: attr(data-label);
        display: block;
        font-size: .78rem;
        font-weight: 800;
        letter-spacing: .02em;
        margin-bottom: .25rem;
        text-transform: uppercase;
    }

    .rule-choice-grid,
    .rule-value-range {
        grid-template-columns: 1fr;
    }

    .rule-choice-chip {
        border-radius: 12px;
        width: 100%;
    }
}

/* Utilities: visibility */

.sr-only {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}



/* Page: indodax */

.indodax-balance-heading {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.indodax-balance-heading .coin-logo {
    height: 28px;
    object-fit: contain;
    width: 28px;
}

.indodax-balance-row-idr { background: rgba(34, 197, 94, 0.14); }

.indodax-balance-row-incomplete {
    background: rgba(15, 23, 42, 0.62);
    color: #e5e7eb;
}

.indodax-balance-row-incomplete .muted { color: #cbd5e1; }

.indodax-balance-row-no-estimate {
    background: rgba(2, 6, 23, 0.28);
    color: #64748b;
}

.indodax-balance-row-no-estimate .muted { color: #475569; }
.indodax-balance-row-no-estimate .coin-logo { opacity: 0.45; }

.indodax-mobile-details,
.indodax-mobile-total,
.indodax-mobile-coin-action,
.indodax-mobile-inline-action {
    display: none;
}

.indodax-inline-coin-action {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    width: 100%;
}

.indodax-inline-coin-action .indodax-balance-heading { min-width: 0; }
.indodax-inline-coin-action .badge { flex: 0 0 auto; }

.indodax-row-actions {
    align-items: center;
    display: inline-flex;
    gap: 8px;
    justify-content: flex-end;
    white-space: nowrap;
}

.indodax-actions-cell { text-align: right; }
.indodax-mobile-spoiler-action { display: none; }

@media (max-width: 700px) {
    .indodax-desktop-only,
    .indodax-mobile-hidden {
        display: none !important;
    }

    .indodax-mobile-total {
        color: #f8edd1;
        display: block;
        font-weight: 800;
        margin-top: 4px;
    }

    .indodax-mobile-coin-action {
        align-items: center;
        display: flex;
        gap: 10px;
        justify-content: space-between;
        width: 100%;
    }

    .indodax-mobile-coin-action .badge,
    .indodax-mobile-inline-action {
        flex: 0 0 auto;
    }

    .indodax-mobile-inline-action { display: inline-flex; }

    .indodax-action-cell,
    .indodax-actions-cell {
        display: none !important;
    }

    .indodax-mobile-spoiler-action { display: block; }
    .mobile-card-table td.indodax-coin-cell { display: block; }
    .mobile-card-table td.indodax-coin-cell::before { display: none; }

    .indodax-mobile-details {
        display: block;
        margin-top: 8px;
    }

    .indodax-mobile-details summary {
        color: #f8edd1;
        cursor: pointer;
        font-weight: 700;
    }

    .indodax-mobile-details dl {
        display: grid;
        gap: 6px 12px;
        grid-template-columns: max-content 1fr;
        margin: 8px 0 0;
    }

    .indodax-mobile-details dt { font-weight: 700; }
    .indodax-mobile-details dd { margin: 0; }
    .mobile-card-table .indodax-compact-row { padding-bottom: 6px; }
    .mobile-card-table .indodax-compact-row::before { display: none; }
}

/* Page: market overview */

.market-overview-hero {
    background:
        radial-gradient(circle at 12% 16%, rgba(45, 212, 191, 0.14), transparent 30%),
        radial-gradient(circle at 88% 12%, rgba(244, 199, 106, 0.16), transparent 34%),
        linear-gradient(135deg, rgba(11, 23, 35, 0.98), rgba(6, 16, 26, 0.98));
}

.overview-command-center {
    align-items: stretch;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
    overflow: hidden;
    position: relative;
}

.overview-command-center::after {
    background: linear-gradient(90deg, transparent, rgba(244, 199, 106, 0.18), transparent);
    content: "";
    height: 1px;
    left: 28px;
    position: absolute;
    right: 28px;
    top: 0;
}

.overview-command-copy {
    align-self: center;
}

.overview-hero-pills,
.overview-card-head,
.overview-section-head,
.overview-action-list > div {
    align-items: center;
    display: flex;
    gap: 10px;
}

.overview-hero-pills {
    flex-wrap: wrap;
    margin-top: 16px;
}

.overview-hero-pills span,
.overview-label,
.overview-chip,
.overview-metric {
    border: 1px solid rgba(209, 160, 82, 0.28);
    border-radius: 999px;
}

.overview-hero-pills span {
    background: rgba(248, 237, 209, 0.06);
    color: #d3bf91;
    font-size: 13px;
    padding: 8px 12px;
}

.overview-hero-pills strong {
    color: #f8edd1;
}

.overview-main-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 18px;
}

.overview-decision-banner {
    align-items: stretch;
    background: rgba(6, 16, 26, 0.44);
    border: 1px solid rgba(209, 160, 82, 0.28);
    border-radius: 18px;
    display: grid;
    gap: 14px;
    padding: 18px;
}

.overview-decision-banner span,
.overview-freshness-grid span,
.overview-opportunity-row span,
.overview-opportunity-row small,
.overview-heatmap-tile em,
.overview-empty {
    color: #d3bf91;
    font-size: 13px;
}

.overview-decision-banner > div:first-child span {
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.overview-decision-banner strong {
    color: #f8edd1;
}

.overview-decision-banner > div:first-child > strong {
    font-size: 24px;
}

.overview-decision-banner p {
    margin: 6px 0 0;
}

.overview-decision-actions {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.overview-command-cta {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.overview-command-cta a,
.overview-command-cta button {
    background: rgba(248, 237, 209, 0.1);
    border: 1px solid rgba(248, 237, 209, 0.18);
    border-radius: 12px;
    color: #f8edd1;
    font-size: 12px;
    font-weight: 900;
    padding: 10px 12px;
    text-align: center;
    text-decoration: none;
}

.overview-command-cta a:hover,
.overview-command-cta a:focus-visible,
.overview-command-cta button:hover,
.overview-command-cta button:focus-visible {
    border-color: rgba(248, 237, 209, 0.55);
    transform: translateY(-1px);
}

.overview-decision-actions span,
.overview-freshness-grid span {
    background: rgba(6, 16, 26, 0.4);
    border: 1px solid rgba(248, 237, 209, 0.12);
    border-radius: 12px;
    padding: 10px 12px;
}

.overview-toggle-group,
.overview-action-tabs {
    align-items: center;
    background: rgba(6, 16, 26, 0.46);
    border: 1px solid rgba(209, 160, 82, 0.16);
    border-radius: 999px;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 5px;
}

.overview-toggle-group button,
.overview-action-tabs button {
    background: transparent;
    border: 0;
    border-radius: 999px;
    color: #d3bf91;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    padding: 8px 10px;
}

.overview-toggle-group button.active,
.overview-action-tabs button.active {
    background: rgba(248, 237, 209, 0.13);
    color: #f8edd1;
}

.overview-card,
.overview-section {
    overflow: hidden;
    position: relative;
}

.overview-card-primary {
    background:
        linear-gradient(160deg, rgba(201, 150, 69, 0.18), rgba(11, 23, 35, 0.98) 44%, rgba(6, 16, 26, 0.98));
}

.overview-card-head {
    justify-content: space-between;
    margin-bottom: 12px;
}

.overview-card-head > span,
.overview-section-head h2 {
    color: #f8edd1;
    font-size: 18px;
    font-weight: 800;
}

.overview-card-head > strong {
    color: #f4c76a;
    font-size: 12px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.overview-label {
    padding: 7px 10px;
}

.overview-list {
    color: #d3bf91;
    margin: 0;
    padding-left: 18px;
}

.overview-list li + li {
    margin-top: 6px;
}

.overview-spectrum,
.overview-risk-meter {
    background: rgba(6, 16, 26, 0.5);
    border: 1px solid rgba(209, 160, 82, 0.16);
    border-radius: 999px;
    display: grid;
    gap: 6px;
    margin: 14px 0;
    padding: 6px;
    position: relative;
}

.overview-spectrum {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.overview-risk-meter {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.overview-spectrum::before,
.overview-risk-meter::before {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.65), rgba(244, 199, 106, 0.68), rgba(45, 212, 191, 0.68));
    border-radius: inherit;
    content: "";
    inset: 6px;
    opacity: 0.18;
    position: absolute;
}

.overview-risk-meter::before {
    background: linear-gradient(90deg, rgba(45, 212, 191, 0.7), rgba(244, 199, 106, 0.7), rgba(248, 113, 113, 0.75));
}

.overview-spectrum span,
.overview-risk-meter span {
    border-radius: 999px;
    color: #b89f6e;
    font-size: 11px;
    font-weight: 800;
    padding: 8px 6px;
    position: relative;
    text-align: center;
    text-transform: uppercase;
    z-index: 1;
}

.overview-spectrum span.active,
.overview-risk-meter span.active {
    background: rgba(248, 237, 209, 0.13);
    box-shadow: 0 0 22px rgba(244, 199, 106, 0.16);
    color: #f8edd1;
}

.overview-section {
    background:
        radial-gradient(circle at top left, rgba(45, 212, 191, 0.06), transparent 34%),
        linear-gradient(180deg, rgba(248, 237, 209, 0.035), rgba(6, 16, 26, 0.16));
    margin-bottom: 18px;
}

.overview-section-head {
    justify-content: space-between;
    margin-bottom: 14px;
}

.overview-section-head p {
    font-size: 13px;
    margin-bottom: 0;
    text-align: right;
}

.overview-metric-grid,
.overview-chip-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.overview-metric-grid.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.overview-breadth-layout,
.overview-movement-panel {
    display: grid;
    gap: 18px;
}

.overview-breadth-layout {
    grid-template-columns: minmax(260px, 0.58fr) minmax(0, 1.42fr);
}

.overview-movement-panel {
    grid-template-columns: minmax(0, 1.05fr) minmax(240px, 0.95fr);
}

.overview-donut-card,
.overview-movement-score,
.overview-movement-distribution {
    background:
        radial-gradient(circle at 18% 12%, rgba(45, 212, 191, 0.12), transparent 34%),
        rgba(248, 237, 209, 0.045);
    border: 1px solid rgba(209, 160, 82, 0.22);
    border-radius: 16px;
    padding: 16px;
}

.overview-donut-card {
    align-items: center;
    display: grid;
    gap: 14px;
    justify-items: center;
    min-height: 100%;
}

.overview-donut {
    --bullish-end: calc(var(--bullish) * 1%);
    --sideways-end: calc((var(--bullish) + var(--sideways)) * 1%);
    align-items: center;
    aspect-ratio: 1;
    background:
        conic-gradient(#2dd4bf 0 var(--bullish-end), #f4c76a var(--bullish-end) var(--sideways-end), #ef4444 var(--sideways-end) 100%);
    border-radius: 50%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.24);
    display: grid;
    max-width: 240px;
    padding: 20px;
    width: min(100%, 240px);
}

.overview-donut > div {
    align-items: center;
    background: #07111c;
    border: 1px solid rgba(248, 237, 209, 0.12);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.overview-donut span,
.overview-overheated-badge span,
.overview-movement-score span {
    color: #b89f6e;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.overview-donut strong {
    color: #f8edd1;
    font-size: 24px;
}

.overview-donut em,
.overview-overheated-badge em,
.overview-movement-score em {
    color: #d3bf91;
    font-size: 12px;
    font-style: normal;
}

.overview-overheated-badge {
    align-items: center;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.26);
    border-radius: 12px;
    display: grid;
    gap: 2px;
    padding: 12px;
    width: 100%;
}

.overview-overheated-badge strong {
    color: #ff938c;
    font-size: 24px;
}

.overview-legend-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.overview-breadth-toolbar {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin-bottom: 14px;
}

.overview-breadth-toolbar p,
.overview-inline-note {
    color: #d3bf91;
    font-size: 13px;
    margin: 0;
}

.overview-breadth-toolbar strong {
    color: #f8edd1;
}

.overview-breadth-row {
    align-content: stretch;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.overview-breadth-row .overview-metric {
    min-height: 100%;
}

.overview-metric {
    align-items: flex-start;
    background: rgba(248, 237, 209, 0.045);
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(248, 237, 209, 0.05);
    display: flex;
    flex-direction: column;
    padding: 14px;
}

.overview-metric span,
.overview-chip span {
    color: #d3bf91;
    font-size: 13px;
}

.overview-metric strong {
    color: #f8edd1;
    font-size: 26px;
    margin-top: 4px;
}

.overview-metric em {
    color: #b89f6e;
    font-size: 12px;
    font-style: normal;
    margin-top: 4px;
}

.overview-chip-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.overview-chip {
    align-items: center;
    background: rgba(248, 237, 209, 0.05);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: space-between;
    padding: 12px 14px;
    text-decoration: none;
}

.overview-chip:hover,
.overview-chip:focus-visible {
    border-color: rgba(248, 237, 209, 0.55);
    transform: translateY(-1px);
}

.overview-chip strong {
    color: #f8edd1;
    font-size: 22px;
}

.overview-chip em {
    background: rgba(6, 16, 26, 0.5);
    border-radius: 999px;
    display: block;
    height: 7px;
    overflow: hidden;
    width: 100%;
}

.overview-chip em i {
    background: currentColor;
    border-radius: inherit;
    display: block;
    height: 100%;
    min-width: 4px;
    opacity: 0.8;
}

.overview-chip small {
    color: #f8edd1;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.35;
    text-align: center;
}

.overview-freshness-grid,
.overview-opportunity-board,
.overview-heatmap-grid {
    display: grid;
    gap: 10px;
}

.overview-freshness-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.overview-freshness-grid strong {
    color: #f8edd1;
    display: block;
    font-size: 13px;
    margin-top: 4px;
}

.overview-opportunity-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.overview-opportunity-row {
    align-items: center;
    background: rgba(248, 237, 209, 0.05);
    border: 1px solid rgba(209, 160, 82, 0.2);
    border-radius: 14px;
    display: grid;
    gap: 8px;
    grid-template-columns: auto 1fr auto;
    padding: 12px;
    text-decoration: none;
}

.overview-opportunity-row:hover,
.overview-opportunity-row:focus-visible,
.overview-heatmap-tile:hover,
.overview-heatmap-tile:focus-visible {
    border-color: rgba(248, 237, 209, 0.55);
    transform: translateY(-1px);
}

.overview-opportunity-row .rank {
    align-items: center;
    background: rgba(6, 16, 26, 0.45);
    border-radius: 999px;
    display: inline-flex;
    font-weight: 900;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.overview-opportunity-row strong {
    color: #f8edd1;
}

.overview-opportunity-row em {
    color: #f8edd1;
    font-style: normal;
    font-weight: 800;
}

.overview-opportunity-row small {
    grid-column: 2 / -1;
}

.overview-heatmap-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.overview-heatmap-tile {
    border: 1px solid rgba(209, 160, 82, 0.2);
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(248, 237, 209, 0.06), 0 calc(var(--heatmap-scale, 0) * 18px) 34px rgba(0, 0, 0, calc(0.12 + var(--heatmap-scale, 0) * 0.14));
    display: grid;
    gap: 6px;
    min-height: calc(88px + var(--heatmap-scale, 0) * 28px);
    opacity: calc(0.72 + var(--heatmap-scale, 0) * 0.28);
    padding: 12px;
    text-decoration: none;
    transition: border-color 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

.overview-heatmap-tile[hidden] {
    display: none !important;
}

.overview-heatmap-tile strong {
    color: #f8edd1;
    font-size: 13px;
}

.overview-heatmap-tile span {
    color: currentColor;
    font-size: 24px;
    font-weight: 900;
}

.overview-empty {
    grid-column: 1 / -1;
    margin: 0;
}

/* Market movement uses graph left and average momentum right. */

.overview-movement-score {
    align-items: flex-start;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
}

.overview-movement-score strong {
    color: #f8edd1;
    font-size: 42px;
    line-height: 1;
    margin: 10px 0 6px;
}

.overview-movement-score em {
    line-height: 1.5;
}

.overview-movement-distribution {
    align-content: center;
    display: grid;
    gap: 16px;
}

.overview-stacked-bar {
    background: rgba(6, 16, 26, 0.58);
    border: 1px solid rgba(248, 237, 209, 0.11);
    border-radius: 999px;
    display: flex;
    height: 24px;
    overflow: hidden;
}

.overview-stacked-bar span {
    min-width: 3px;
}

.overview-stacked-bar .down,
.overview-movement-legend .down {
    background: #ef4444;
}

.overview-stacked-bar .flat,
.overview-movement-legend .flat {
    background: #f4c76a;
}

.overview-stacked-bar .up,
.overview-movement-legend .up {
    background: #2dd4bf;
}

.overview-movement-legend {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.overview-movement-legend span {
    align-items: center;
    background: rgba(6, 16, 26, 0.38);
    border: 1px solid rgba(209, 160, 82, 0.14);
    border-radius: 12px;
    color: #d3bf91;
    display: flex;
    gap: 8px;
    justify-content: space-between;
    padding: 10px;
}

.overview-movement-legend b {
    border-radius: 50%;
    height: 10px;
    width: 10px;
}

.overview-movement-legend strong {
    color: #f8edd1;
}

.overview-positive {
    background: rgba(45, 212, 191, 0.14);
    border-color: rgba(94, 234, 212, 0.38);
    color: #7dd3fc;
}

.overview-neutral {
    background: rgba(201, 150, 69, 0.16);
    border-color: rgba(244, 199, 106, 0.32);
    color: #f4c76a;
}

.overview-risk {
    background: rgba(239, 68, 68, 0.16);
    border-color: rgba(248, 113, 113, 0.34);
    color: #ff938c;
}

.overview-muted {
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(203, 213, 225, 0.24);
    color: #cbd5e1;
}

.overview-action-list {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.overview-action-tabs {
    margin-bottom: 12px;
}

.overview-action-list > div {
    align-items: flex-start;
    background: rgba(6, 16, 26, 0.44);
    border: 1px solid rgba(209, 160, 82, 0.18);
    border-radius: 10px;
    flex-direction: column;
    padding: 12px;
}


.overview-action-list strong {
    align-items: center;
    color: #f8edd1;
    display: flex;
    gap: 8px;
}

.overview-action-list strong span {
    align-items: center;
    background: rgba(248, 237, 209, 0.08);
    border-radius: 10px;
    display: inline-flex;
    height: 30px;
    justify-content: center;
    width: 30px;
}

.overview-action-list p {
    font-size: 13px;
    margin-bottom: 0;
}

.overview-placeholder {
    border-style: dashed;
    opacity: 0.78;
}

@media (max-width: 980px) {
    .overview-command-center,
    .overview-main-grid,
    .overview-breadth-layout,
    .overview-breadth-toolbar,
    .overview-movement-panel,
    .overview-metric-grid,
    .overview-metric-grid.four,
    .overview-opportunity-board,
    .overview-heatmap-grid,
    .overview-chip-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .overview-breadth-row {
        grid-column: 1 / -1;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .overview-command-center,
    .overview-main-grid,
    .overview-breadth-layout,
    .overview-breadth-toolbar,
    .overview-movement-panel,
    .overview-metric-grid,
    .overview-metric-grid.four,
    .overview-legend-grid,
    .overview-movement-legend,
    .overview-action-list,
    .overview-freshness-grid,
    .overview-opportunity-board,
    .overview-heatmap-grid,
    .overview-chip-grid {
        grid-template-columns: 1fr;
    }

    .overview-decision-actions,
    .overview-command-cta {
        grid-template-columns: 1fr;
    }

    .overview-spectrum,
    .overview-risk-meter {
        border-radius: 16px;
        grid-template-columns: 1fr;
    }

    .overview-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .overview-section-head p {
        text-align: left;
    }

    .overview-breadth-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .overview-breadth-row {
        display: grid;
        grid-template-columns: repeat(3, minmax(168px, 1fr));
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .overview-toggle-group,
    .overview-action-tabs {
        border-radius: 16px;
        width: 100%;
    }

    .overview-toggle-group button,
    .overview-action-tabs button {
        flex: 1 1 auto;
    }
}

/* Market Overview density improvements */
.overview-guide-strip {
    align-items: center;
    background: rgba(6, 16, 26, 0.34);
    border: 1px solid rgba(209, 160, 82, 0.16);
    border-radius: 14px;
    color: #d3bf91;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0 0 14px;
    padding: 10px 12px;
}

.overview-guide-strip span {
    align-items: center;
    display: flex;
    font-size: 12px;
    gap: 8px;
    line-height: 1.35;
}

.overview-guide-strip .dot,
.overview-breadth-row .overview-metric::before {
    border-radius: 999px;
    content: "";
    display: inline-block;
    flex: 0 0 auto;
    height: 10px;
    width: 10px;
}

.overview-guide-strip .dot.up,
.breadth-color-bullish::before {
    background: #2dd4bf;
    box-shadow: 0 0 14px rgba(45, 212, 191, 0.45);
}

.overview-guide-strip .dot.flat,
.breadth-color-sideways::before {
    background: #f4c76a;
    box-shadow: 0 0 14px rgba(244, 199, 106, 0.4);
}

.overview-guide-strip .dot.down,
.breadth-color-bearish::before {
    background: #ef4444;
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.42);
}

.overview-guide-strip .dot.hot {
    background: #ff938c;
    box-shadow: 0 0 14px rgba(255, 147, 140, 0.42);
}

.overview-breadth-row .overview-metric {
    display: grid;
    grid-template-columns: auto 1fr;
    min-height: 0;
}

.overview-breadth-row .overview-metric span,
.overview-breadth-row .overview-metric strong,
.overview-breadth-row .overview-metric em {
    grid-column: 2;
}

.overview-heatmap-grid {
    gap: 8px;
    grid-template-columns: repeat(8, minmax(0, 1fr));
}

.overview-heatmap-tile {
    border-radius: 12px;
    gap: 3px;
    min-height: 76px;
    padding: 9px 10px;
}

.overview-heatmap-tile span {
    font-size: 20px;
}

.overview-action-section {
    margin-bottom: 18px;
}

.overview-action-section .overview-action-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.overview-action-section .overview-action-list > div {
    min-height: 100%;
}

@media (max-width: 1180px) {
    .overview-heatmap-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .overview-action-section .overview-action-list,
    .overview-guide-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .overview-breadth-layout {
        grid-template-columns: minmax(260px, 0.95fr) minmax(280px, 1.05fr);
    }

    .overview-breadth-row {
        grid-column: auto;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .overview-guide-strip,
    .overview-action-section .overview-action-list,
    .overview-breadth-layout,
    .overview-breadth-row {
        grid-template-columns: 1fr;
    }

    .overview-heatmap-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


.market-overview-page .overview-status-panel {
    display: flex;
    align-items: center;
    border: 1px solid rgba(148, 163, 184, 0.22);
}

.market-overview-page .overview-status-panel p {
    margin: 4px 0 0;
}

.market-overview-page .overview-status-stale {
    background: linear-gradient(135deg, rgba(201, 150, 69, 0.2), rgba(74, 31, 31, 0.14));
    border-color: rgba(251, 191, 36, 0.55);
    box-shadow: 0 18px 42px rgba(201, 150, 69, 0.16);
}

.market-overview-page .overview-status-stale strong {
    color: #fbbf24;
}

/* Market Overview: livelier density and signal-aligned opportunity colors */
.market-overview-page .panel,
.market-overview-page .overview-decision-banner,
.market-overview-page .overview-heatmap-tile,
.market-overview-page .overview-opportunity-row {
    animation: overview-live-breathe 5.5s ease-in-out infinite;
}

.market-overview-page .overview-section:nth-of-type(2) { animation-delay: -0.8s; }
.market-overview-page .overview-section:nth-of-type(3) { animation-delay: -1.6s; }
.market-overview-page .overview-section:nth-of-type(4) { animation-delay: -2.4s; }

@keyframes overview-live-breathe {
    0%, 100% {
        box-shadow: inset 0 1px 0 rgba(248, 237, 209, 0.05), 0 14px 30px rgba(0, 0, 0, 0.12);
        transform: translateY(0);
    }
    50% {
        box-shadow: inset 0 1px 0 rgba(248, 237, 209, 0.09), 0 18px 38px rgba(0, 0, 0, 0.18);
        transform: translateY(-2px);
    }
}

.overview-donut {
    animation: overview-donut-pulse 3.8s ease-in-out infinite;
}

@keyframes overview-donut-pulse {
    0%, 100% { filter: drop-shadow(0 0 0 rgba(45, 212, 191, 0)); }
    50% { filter: drop-shadow(0 0 18px rgba(45, 212, 191, 0.18)); }
}

.overview-stacked-bar span {
    animation: overview-bar-glow 2.8s ease-in-out infinite;
}

@keyframes overview-bar-glow {
    0%, 100% { opacity: 0.82; }
    50% { opacity: 1; }
}

.overview-opportunity-row.overview-positive {
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.18), rgba(14, 165, 233, 0.12));
    border-color: rgba(94, 234, 212, 0.46);
    color: #7dd3fc;
}

.overview-opportunity-row.overview-neutral {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(201, 150, 69, 0.1));
    border-color: rgba(165, 180, 252, 0.38);
    color: #c4b5fd;
}

.overview-opportunity-row.overview-risk {
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.18), rgba(74, 31, 31, 0.18));
    border-color: rgba(252, 165, 165, 0.42);
    color: #fca5a5;
}

.overview-opportunity-row.overview-muted {
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(203, 213, 225, 0.24);
    color: #cbd5e1;
}

.overview-chip-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 640px) {
    .market-overview-page .overview-chip-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .market-overview-page .panel,
    .market-overview-page .overview-decision-banner,
    .market-overview-page .overview-heatmap-tile,
    .market-overview-page .overview-opportunity-row,
    .overview-donut,
    .overview-stacked-bar span {
        animation: none;
    }
}

.ai-candle-history-card {
    margin-top: 18px;
}

.ai-candle-history-spoiler {
    background: linear-gradient(145deg, rgba(6, 16, 26, 0.9), rgba(12, 27, 42, 0.76));
    border: 1px solid rgba(209, 160, 82, 0.36);
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
    overflow: hidden;
    padding: 0;
}

.ai-candle-history-spoiler summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    font-size: 18px;
    font-weight: 500;
    gap: 8px;
    list-style: none;
    padding: 14px 16px;
}

.ai-candle-history-spoiler summary::-webkit-details-marker {
    display: none;
}

.ai-candle-history-spoiler summary::after {
    color: var(--muted);
    content: "Tampilkan";
    font-size: 12px;
    font-weight: 600;
    margin-left: auto;
}

.ai-candle-history-spoiler[open] summary::after {
    content: "Sembunyikan";
}

.ai-candle-history-body {
    border-top: 1px solid rgba(209, 160, 82, 0.18);
}

.ai-candle-history-intro {
    line-height: 1.6;
    margin: 0;
    padding: 14px 16px 0;
}

.ai-candle-history-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 16px;
}

.ai-candle-history-grid > div {
    background: rgba(11, 16, 32, 0.45);
    border: 1px solid rgba(209, 160, 82, 0.26);
    border-radius: 8px;
    min-width: 0;
    padding: 10px 12px;
}

.ai-candle-history-grid p {
    color: var(--text);
    font-size: 15px;
    line-height: 1.5;
    margin: 6px 0 0;
}

.ai-candle-history-meaning {
    color: var(--muted);
    display: block;
    font-size: 13px;
    line-height: 1.45;
    margin-top: 8px;
}

.ai-candle-history-loading {
    margin: 0;
    padding: 16px;
}

.ai-candle-history-note {
    border-top: 1px solid rgba(209, 160, 82, 0.2);
    margin: 0;
    padding: 12px 16px 14px;
}

@media (max-width: 760px) {
    .ai-candle-history-grid {
        grid-template-columns: 1fr;
    }
}

/* Market Overview desktop compaction and calmer live animations */
@media (min-width: 1181px) {
    .market-overview-page .overview-section,
    .market-overview-page .overview-card {
        padding: 22px 28px;
    }

    .market-overview-page .overview-section-head {
        align-items: flex-start;
        gap: 24px;
        margin-bottom: 16px;
    }

    .market-overview-page .overview-section-head h2 {
        flex: 0 0 auto;
        min-width: max-content;
    }

    .market-overview-page .overview-section-head p {
        max-width: 860px;
    }

    .market-overview-page .overview-opportunity-board {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .market-overview-page .overview-opportunity-row {
        align-items: start;
        gap: 8px 10px;
        grid-template-columns: auto minmax(0, 1fr) auto;
        min-height: 104px;
        padding: 14px 16px;
    }

    .market-overview-page .overview-opportunity-row strong {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .market-overview-page .overview-opportunity-row em {
        grid-column: 2;
    }

    .market-overview-page .overview-opportunity-row small {
        grid-column: 2 / -1;
    }

    .market-overview-page .overview-breadth-layout {
        align-items: stretch;
        grid-template-columns: minmax(250px, .7fr) minmax(0, 1.3fr);
    }

    .market-overview-page .overview-donut-card {
        grid-template-columns: minmax(148px, 180px) minmax(160px, 1fr);
        justify-items: stretch;
        min-height: 0;
        padding: 14px 16px;
    }

    .market-overview-page .overview-donut {
        max-width: 180px;
        padding: 16px;
        width: 180px;
    }

    .market-overview-page .overview-donut strong {
        font-size: 22px;
    }

    .market-overview-page .overview-overheated-badge {
        align-self: center;
    }

    .market-overview-page .overview-breadth-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .market-overview-page .overview-breadth-row .overview-metric {
        justify-content: center;
        min-height: 166px;
        padding: 16px 18px;
    }

    .market-overview-page .overview-chip-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .market-overview-page .overview-action-section .overview-action-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1500px) {
    .market-overview-page .overview-chip-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

.market-overview-page .panel,
.market-overview-page .overview-decision-banner,
.market-overview-page .overview-heatmap-tile,
.market-overview-page .overview-opportunity-row {
    animation: none;
}

.market-overview-page .overview-section::before,
.market-overview-page .overview-card::before,
.market-overview-page .overview-decision-banner::before,
.market-overview-page .overview-opportunity-row::before,
.market-overview-page .overview-heatmap-tile::before,
.market-overview-page .overview-chip::before {
    background: radial-gradient(circle, rgba(248, 237, 209, .18), transparent 58%);
    content: "";
    height: 120px;
    opacity: .45;
    pointer-events: none;
    position: absolute;
    right: -64px;
    top: -72px;
    transform: scale(.82);
    width: 120px;
}

.market-overview-page .overview-section::before,
.market-overview-page .overview-card::before,
.market-overview-page .overview-decision-banner::before {
    animation: overview-ambient-orb 8s ease-in-out infinite;
}

.market-overview-page .overview-opportunity-row,
.market-overview-page .overview-heatmap-tile,
.market-overview-page .overview-chip {
    position: relative;
}

.market-overview-page .overview-opportunity-row::after,
.market-overview-page .overview-heatmap-tile::after,
.market-overview-page .overview-chip::after,
.market-overview-page .overview-metric::after {
    background: linear-gradient(90deg, transparent, rgba(248, 237, 209, .13), transparent);
    content: "";
    height: 1px;
    left: 14px;
    opacity: .65;
    pointer-events: none;
    position: absolute;
    right: 14px;
    top: 0;
}

.market-overview-page .overview-donut {
    animation: overview-donut-orbit 12s linear infinite, overview-donut-pulse 4.8s ease-in-out infinite;
}

.market-overview-page .overview-stacked-bar,
.market-overview-page .overview-chip em {
    position: relative;
}

.market-overview-page .overview-stacked-bar::after,
.market-overview-page .overview-chip em::after {
    animation: overview-track-sheen 3.8s ease-in-out infinite;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .28), transparent);
    content: "";
    inset: 0;
    position: absolute;
    transform: translateX(-105%);
}

@keyframes overview-ambient-orb {
    0%, 100% { opacity: .24; transform: translate3d(0, 0, 0) scale(.82); }
    50% { opacity: .52; transform: translate3d(-18px, 18px, 0) scale(1); }
}

@keyframes overview-donut-orbit {
    to { transform: rotate(360deg); }
}

.market-overview-page .overview-donut > div {
    animation: overview-donut-label-still 12s linear infinite reverse;
}

@keyframes overview-donut-label-still {
    to { transform: rotate(360deg); }
}

@keyframes overview-track-sheen {
    0%, 35% { transform: translateX(-105%); }
    70%, 100% { transform: translateX(105%); }
}

.market-overview-page .overview-metric {
    position: relative;
}

@media (prefers-reduced-motion: reduce) {
    .market-overview-page .overview-section::before,
    .market-overview-page .overview-card::before,
    .market-overview-page .overview-decision-banner::before,
    .market-overview-page .overview-donut,
    .market-overview-page .overview-donut > div,
    .market-overview-page .overview-stacked-bar::after,
    .market-overview-page .overview-chip em::after {
        animation: none;
    }
}

/* Market Overview pair/logo polish and compact breadth layout */
.overview-tutorial-cta {
    grid-template-columns: minmax(220px, max-content) minmax(0, max-content);
    margin-top: 12px;
}

.overview-tutorial-cta a {
    background: linear-gradient(135deg, rgba(244, 199, 106, 0.2), rgba(45, 212, 191, 0.12));
    border-color: rgba(244, 199, 106, 0.42);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
    display: inline-flex;
    justify-content: center;
}

.overview-coin-title {
    align-items: center;
    display: inline-flex;
    gap: 8px;
    min-width: 0;
}

.overview-coin-logo {
    flex: 0 0 auto;
    height: 28px;
    padding: 3px;
    width: 28px;
}

.overview-opportunity-row .overview-coin-title {
    color: #f8edd1;
}

.overview-opportunity-row .overview-coin-title strong,
.overview-heatmap-tile .overview-coin-title strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.overview-heatmap-tile .overview-coin-title {
    color: #f8edd1;
    font-size: 13px;
    font-weight: 900;
}

.overview-heatmap-tile .overview-coin-title strong {
    font-size: 13px;
}

@media (min-width: 981px) {
    .market-overview-page .overview-heatmap-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

@media (min-width: 1181px) {
    .market-overview-page .overview-breadth-layout {
        gap: 14px;
        grid-template-columns: minmax(320px, .52fr) minmax(0, 1.48fr);
    }

    .market-overview-page .overview-donut-card {
        grid-template-columns: minmax(132px, 160px) minmax(150px, 1fr);
        padding: 12px 14px;
    }

    .market-overview-page .overview-donut {
        max-width: 160px;
        padding: 14px;
        width: 160px;
    }

    .market-overview-page .overview-overheated-badge {
        min-height: 92px;
        padding: 10px 12px;
    }

    .market-overview-page .overview-breadth-row .overview-metric {
        justify-content: center;
        min-height: 126px;
        padding: 14px 16px;
    }

    .market-overview-page .overview-breadth-row .overview-metric strong {
        font-size: 30px;
    }
}

@media (min-width: 1500px) {
    .market-overview-page .overview-breadth-layout {
        grid-template-columns: minmax(440px, .46fr) minmax(0, 1.54fr);
    }
}

@media (max-width: 640px) {
    .overview-tutorial-cta {
        grid-template-columns: 1fr;
    }
}

/* Analisa AI: Market Overview-inspired candle history summary */
.ai-candle-history-spoiler {
    background:
        radial-gradient(circle at top left, rgba(45, 212, 191, 0.12), transparent 28%),
        radial-gradient(circle at 85% 12%, rgba(201, 150, 69, 0.16), transparent 34%),
        linear-gradient(145deg, rgba(6, 16, 26, 0.96), rgba(11, 24, 38, 0.9));
    border-color: rgba(209, 160, 82, 0.44);
    box-shadow: inset 0 1px 0 rgba(248, 237, 209, 0.06), 0 18px 42px rgba(0, 0, 0, 0.24);
}

.ai-candle-history-spoiler[open] {
    animation: overview-live-breathe 6s ease-in-out infinite;
}

.ai-candle-history-spoiler summary {
    background: linear-gradient(90deg, rgba(4, 12, 22, 0.76), rgba(8, 22, 35, 0.54));
    color: #f8edd1;
    font-size: 20px;
    letter-spacing: -0.01em;
    padding: 18px 20px;
}

.ai-candle-history-spoiler summary::before {
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.88), rgba(244, 199, 106, 0.88));
    border-radius: 999px;
    box-shadow: 0 0 18px rgba(45, 212, 191, 0.22);
    content: "";
    flex: 0 0 auto;
    height: 10px;
    width: 10px;
}

.ai-candle-history-spoiler summary::after {
    color: #f8edd1;
    font-size: 13px;
}

.ai-candle-history-body {
    border-top-color: rgba(209, 160, 82, 0.24);
}

.ai-candle-history-intro {
    color: #d3bf91;
    font-size: 15px;
    padding: 16px 20px 0;
}

.ai-candle-history-grid {
    gap: 12px;
    padding: 18px 20px 20px;
}

.ai-candle-history-grid > div.ai-candle-history-tile {
    background:
        linear-gradient(135deg, rgba(8, 19, 32, 0.86), rgba(10, 17, 31, 0.72));
    border-color: rgba(209, 160, 82, 0.3);
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(248, 237, 209, 0.04), 0 10px 24px rgba(0, 0, 0, 0.16);
    display: grid;
    gap: 12px;
    grid-template-columns: auto 1fr;
    overflow: hidden;
    padding: 14px;
    position: relative;
}

.ai-candle-history-grid > div.ai-candle-history-tile::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent);
    content: "";
    inset: 0;
    opacity: 0.55;
    pointer-events: none;
    position: absolute;
}

.ai-candle-history-icon {
    align-items: center;
    background: rgba(209, 160, 82, 0.14);
    border: 1px solid rgba(209, 160, 82, 0.34);
    border-radius: 12px;
    color: #f4c76a;
    display: inline-flex;
    font-size: 18px;
    height: 38px;
    justify-content: center;
    position: relative;
    width: 38px;
    z-index: 1;
}

.ai-candle-history-content {
    min-width: 0;
    position: relative;
    z-index: 1;
}

.ai-candle-history-tile-period .ai-candle-history-icon::before { content: "◷"; }
.ai-candle-history-tile-price .ai-candle-history-icon::before { content: "⌁"; }
.ai-candle-history-tile-change .ai-candle-history-icon::before { content: "↗"; }
.ai-candle-history-tile-high .ai-candle-history-icon::before { content: "◆"; }
.ai-candle-history-tile-volume .ai-candle-history-icon::before { content: "▥"; }
.ai-candle-history-tile-trend .ai-candle-history-icon::before { content: "≋"; }
.ai-candle-history-tile-dominance .ai-candle-history-icon::before { content: "◐"; }
.ai-candle-history-tile-volatility .ai-candle-history-icon::before { content: "≈"; }

.ai-candle-history-tile-change,
.ai-candle-history-tile-volume {
    border-color: rgba(45, 212, 191, 0.28) !important;
}

.ai-candle-history-tile-change .ai-candle-history-icon,
.ai-candle-history-tile-volume .ai-candle-history-icon {
    background: rgba(45, 212, 191, 0.12);
    border-color: rgba(94, 234, 212, 0.32);
    color: #5eead4;
}

.ai-candle-history-tile-high,
.ai-candle-history-tile-volatility {
    border-color: rgba(248, 113, 113, 0.26) !important;
}

.ai-candle-history-tile-high .ai-candle-history-icon,
.ai-candle-history-tile-volatility .ai-candle-history-icon {
    background: rgba(248, 113, 113, 0.12);
    border-color: rgba(252, 165, 165, 0.3);
    color: #fca5a5;
}

.ai-candle-history-grid p {
    font-size: 16px;
    margin-top: 8px;
}

.ai-candle-history-meaning {
    color: #d3bf91;
}

.ai-candle-history-note {
    background: rgba(209, 160, 82, 0.06);
    border-top-color: rgba(209, 160, 82, 0.24);
    color: #d3bf91;
    padding: 14px 20px 16px;
}

.ai-candle-history-loading {
    align-items: center;
    background: rgba(8, 19, 32, 0.72);
    border: 1px solid rgba(45, 212, 191, 0.22);
    border-radius: 14px;
    color: #f8edd1;
    display: flex;
    gap: 14px;
    margin: 18px 20px;
    padding: 16px;
}

.ai-candle-history-loading p {
    margin: 4px 0 0;
}

.ai-candle-history-spinner {
    animation: ai-candle-history-spin 0.85s linear infinite;
    border: 3px solid rgba(209, 160, 82, 0.22);
    border-top-color: #5eead4;
    border-radius: 999px;
    flex: 0 0 auto;
    height: 34px;
    width: 34px;
}

@keyframes ai-candle-history-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 640px) {
    .ai-candle-history-spoiler[open] {
        animation: none;
    }

    .ai-candle-history-spoiler summary {
        font-size: 17px;
        padding: 15px 14px;
    }

    .ai-candle-history-intro,
    .ai-candle-history-grid,
    .ai-candle-history-note {
        padding-left: 14px;
        padding-right: 14px;
    }

    .ai-candle-history-grid > div.ai-candle-history-tile {
        grid-template-columns: 1fr;
    }
}

/* Compact profile hero */
.profile-card {
    isolation: isolate;
    min-height: 0;
    padding: 24px 28px;
}

.profile-card::before,
.profile-card::after {
    content: '';
    pointer-events: none;
    position: absolute;
    z-index: 0;
}

.profile-card::before {
    background: linear-gradient(115deg, transparent 0 18%, rgba(244, 199, 106, 0.16) 42%, transparent 66%);
    height: 140%;
    opacity: 0.65;
    right: 28%;
    top: -40%;
    transform: rotate(9deg);
    width: 1px;
}

.profile-card::after {
    background: radial-gradient(circle, rgba(94, 234, 212, 0.18), transparent 58%);
    filter: blur(2px);
    height: 160px;
    right: -34px;
    top: -46px;
    width: 160px;
}

.profile-main,
.profile-identity {
    position: relative;
    z-index: 1;
}

.profile-main {
    display: grid;
    gap: 14px;
}

.profile-heading p,
.profile-identity p,
.profile-credit-note {
    margin-bottom: 0;
}

.profile-kicker {
    color: #5eead4;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.profile-card .credit-balance {
    background: linear-gradient(135deg, rgba(248, 237, 209, 0.075), rgba(94, 234, 212, 0.035));
    border: 1px solid rgba(209, 160, 82, 0.24);
    border-radius: 14px;
    margin: 0;
    padding: 14px 16px;
}

.profile-card .credit-balance .stat {
    font-size: clamp(32px, 4vw, 50px);
    line-height: 1;
    margin-top: 3px;
    text-shadow: 0 0 28px rgba(244, 199, 106, 0.18);
}

.profile-credit-chips,
.profile-role-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-credit-chips {
    margin-top: 10px;
}

.profile-credit-chips span {
    background: rgba(5, 13, 22, 0.52);
    border: 1px solid rgba(94, 234, 212, 0.22);
    border-radius: 999px;
    color: #d3bf91;
    font-size: 12px;
    padding: 6px 9px;
}

.profile-credit-note {
    font-size: 13px;
    margin-top: 10px;
}

.profile-rules {
    margin-top: 0;
}

.profile-identity {
    align-self: stretch;
    background: rgba(5, 13, 22, 0.38);
    border: 1px solid rgba(244, 199, 106, 0.22);
    border-radius: 16px;
    display: grid;
    justify-items: center;
    padding: 16px;
    text-align: center;
}

.profile-role-row {
    justify-content: center;
    margin-bottom: 0;
    width: 100%;
}

.profile-spark {
    color: #f4c76a;
    filter: drop-shadow(0 0 10px rgba(244, 199, 106, 0.55));
    font-size: 18px;
}

.profile-card .profile-identity .avatar {
    height: 86px;
    margin: 0 0 12px;
    width: 86px;
}

.profile-identity h3 {
    margin-bottom: 4px;
}

@media (max-width: 720px) {
    .profile-card {
        padding: 18px;
    }

    .profile-identity {
        justify-items: center;
        text-align: center;
    }

    .profile-role-row {
        justify-content: center;
    }
}

/* Profile page compact layout refinements */
.profile-card {
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
    padding: 18px 24px;
}

.profile-main {
    gap: 12px;
}

.profile-heading h1 {
    margin-bottom: 6px;
}

.profile-heading p {
    font-size: 15px;
}

.profile-card .credit-balance {
    padding: 12px 14px;
}

.profile-card .credit-balance .stat {
    font-size: clamp(34px, 5vw, 48px);
}

.profile-credit-note {
    line-height: 1.45;
    margin-top: 8px;
}

.profile-rules {
    background: rgba(5, 13, 22, 0.32);
    border: 1px solid rgba(94, 234, 212, 0.16);
    border-radius: 14px;
    margin: 0;
    padding: 12px 14px;
}

.profile-rules h2 {
    font-size: 20px;
    margin-bottom: 8px;
}

.profile-rules ul {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr;
    margin: 0;
    padding-left: 18px;
}

.profile-rules li {
    line-height: 1.35;
    margin: 0;
}

.profile-identity {
    align-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    padding: 14px;
}

.profile-card .profile-identity .avatar {
    flex: 0 0 auto;
    height: 72px;
    justify-self: center;
    margin: 0;
    width: 72px;
}

.profile-identity h3 {
    font-size: 18px;
    justify-self: center;
    line-height: 1.15;
    margin: 0;
    text-align: center;
}

.profile-identity p {
    font-size: 14px;
    justify-self: center;
    margin: 0;
    overflow-wrap: anywhere;
    text-align: center;
}

@media (max-width: 860px) {
    .profile-card {
        grid-template-columns: 1fr;
    }

    .profile-identity {
        align-items: center;
        display: flex;
        flex-direction: column;
        gap: 10px;
        justify-content: center;
        text-align: center;
    }

    .profile-role-row {
        grid-column: auto;
        grid-row: auto;
        justify-content: center;
        margin-bottom: 0;
    }

    .profile-card .profile-identity .avatar {
        grid-row: auto;
        margin: 0;
    }
}

@media (max-width: 560px) {
    .profile-card {
        padding: 14px;
    }

    .profile-identity {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .profile-role-row {
        grid-column: auto;
        justify-content: center;
    }

    .profile-card .profile-identity .avatar {
        grid-row: auto;
    }
}

.advanced-screener-chatbot {
    display: grid;
    gap: 1rem;
    margin: 1rem 0 1.5rem;
}

.advanced-screener-chatbot form {
    display: grid;
    gap: .85rem;
}

.chatbot-json-result pre {
    background: rgba(6, 16, 26, 0.72);
    border: 1px solid rgba(248, 237, 209, 0.14);
    border-radius: 14px;
    color: #f8edd1;
    max-height: 420px;
    overflow: auto;
    padding: 1rem;
    white-space: pre-wrap;
}

.overview-command-cta a.is-disabled {
    cursor: not-allowed;
    opacity: .52;
    pointer-events: none;
}

.portfolio-summary-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.portfolio-pnl-card {
    background: rgba(15, 23, 42, .42);
    border: 1px solid rgba(248, 237, 209, .12);
    border-radius: 16px;
    display: grid;
    gap: 8px;
    padding: 16px;
}

.portfolio-pnl-card strong,
.portfolio-total-value {
    font-size: clamp(20px, 2.4vw, 30px);
    line-height: 1.1;
}

.portfolio-allocation-list {
    background: rgba(2, 6, 23, .24);
    border: 1px solid rgba(148, 163, 184, .14);
    border-radius: 16px;
    display: grid;
    gap: 10px;
    padding: 16px;
}

.portfolio-allocation-list h3 {
    margin: 0;
}

.portfolio-allocation-item {
    align-items: center;
    border-top: 1px solid rgba(148, 163, 184, .12);
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding-top: 10px;
}

.text-success { color: #22c55e; }
.text-danger { color: #ef4444; }

@media (max-width: 560px) {
    .portfolio-allocation-item {
        align-items: flex-start;
        flex-direction: column;
    }
}

.indodax-api-settings-grid {
    align-items: stretch;
}

.indodax-account-fetch-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.portfolio-pie-layout {
    align-items: center;
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(320px, 460px) 1fr;
}

.portfolio-pie-chart {
    aspect-ratio: 1;
    background: conic-gradient(#38bdf8 0 100%);
    border: 1px solid rgba(248, 237, 209, .2);
    border-radius: 50%;
    box-shadow: inset 0 0 0 22px rgba(2, 6, 23, .72), 0 22px 46px rgba(2, 6, 23, .28);
    min-height: 320px;
    overflow: hidden;
    position: relative;
    width: min(460px, 100%);
}

.portfolio-pie-label {
    background: rgba(2, 6, 23, .78);
    border: 1px solid rgba(248, 237, 209, .32);
    border-radius: 999px;
    color: #f8edd1;
    font-size: .78rem;
    font-weight: 800;
    left: var(--pie-label-x, 50%);
    line-height: 1;
    max-width: 76px;
    overflow: hidden;
    padding: 6px 8px;
    position: absolute;
    text-overflow: ellipsis;
    top: var(--pie-label-y, 50%);
    transform: translate(-50%, -50%);
    white-space: nowrap;
}

.portfolio-pie-legend {
    display: grid;
    gap: 10px;
}

.portfolio-allocation-item i {
    border-radius: 999px;
    display: inline-block;
    height: 10px;
    margin-right: 8px;
    width: 10px;
}

@media (max-width: 720px) {
    .portfolio-pie-layout {
        grid-template-columns: 1fr;
    }

    .portfolio-pie-chart {
        justify-self: center;
        width: min(340px, 100%);
    }
}

.market-overview-page .overview-heatmap-opportunities {
    border-top: 1px solid rgba(209, 160, 82, 0.16);
    margin-top: 18px;
    padding-top: 18px;
}

.market-overview-page .overview-subsection-head {
    align-items: flex-start;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 14px;
}

.market-overview-page .overview-subsection-head h3 {
    color: #f8edd1;
    font-size: 18px;
    font-weight: 800;
    margin: 0;
}

.market-overview-page .overview-subsection-head p {
    font-size: 13px;
    line-height: 1.55;
    margin: 0;
    max-width: 760px;
    text-align: right;
}

@media (max-width: 760px) {
    .market-overview-page .overview-subsection-head {
        display: block;
    }

    .market-overview-page .overview-subsection-head p {
        margin-top: 8px;
    }
}

.status-hero {
    align-items: stretch;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
}

.status-hero-note,
.status-overview-card,
.status-info-panel {
    background: linear-gradient(145deg, rgba(11, 16, 32, 0.72), rgba(6, 16, 26, 0.62));
    border: 1px solid rgba(209, 160, 82, 0.28);
    border-radius: 14px;
}

.status-hero-note {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    padding: 18px;
}

.status-hero-note strong,
.status-overview-card strong {
    color: #f8edd1;
}

.status-hero-note span,
.status-overview-card em {
    color: #e2c892;
}

.status-overview-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.status-overview-card {
    min-width: 0;
    padding: 16px;
}

.status-overview-card span {
    color: #b89f6e;
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.status-overview-card strong {
    display: block;
    font-size: 24px;
    line-height: 1.15;
    margin-top: 8px;
    overflow-wrap: anywhere;
}

.status-overview-card em {
    display: block;
    font-size: 12px;
    font-style: normal;
    line-height: 1.35;
    margin-top: 6px;
}

.status-overview-card-healthy {
    border-color: rgba(86, 211, 146, 0.42);
}

.status-config-grid,
.status-signal-rule-grid {
    display: grid;
    gap: 18px;
}

.status-config-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.status-signal-rule-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.status-info-panel .eyebrow {
    margin-bottom: 6px;
}

.status-info-panel p {
    line-height: 1.55;
}

@media (max-width: 900px) {
    .status-hero,
    .status-overview-grid,
    .status-config-grid,
    .status-cron-controls-daily-grid {
        grid-template-columns: 1fr;
    }
}

.status-daily-credit-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
    margin-top: 14px;
}

.status-card-description {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
    margin: 4px 0 12px;
}

.status-config-group-grid {
    display: grid;
    gap: 16px;
}

.status-config-fieldset {
    border: 1px solid rgba(209, 160, 82, 0.24);
    border-radius: 10px;
    margin: 0;
    padding: 14px;
}

.status-config-fieldset legend {
    color: #f8edd1;
    font-weight: 700;
    padding: 0 8px;
}

.status-config-fieldset > p {
    color: var(--muted);
    margin: 0 0 12px;
}

.status-hero {
    grid-template-columns: minmax(0, 1fr);
}

.status-config-form .status-cron-actions {
    margin-top: 14px;
}

/* Admin mobile polish: user management and top-up review pages */
.admin-mobile-page .hero {
    align-items: stretch;
}

.admin-mobile-page .hero > div:last-child {
    min-width: 140px;
}

.admin-users-table td[data-label="User"] strong,
.admin-payments-table td[data-label="User"] strong {
    overflow-wrap: anywhere;
}

.admin-users-table td[data-label="User"] .muted,
.admin-payments-table td[data-label="User"] .muted {
    overflow-wrap: anywhere;
}

.payment-review-cell form {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.payment-review-cell .actions {
    gap: 8px;
}

@media (max-width: 760px) {
    .admin-mobile-page .shell {
        padding-left: 12px;
        padding-right: 12px;
    }

    .admin-mobile-page .hero {
        gap: 14px;
        margin-bottom: 14px;
    }

    .admin-mobile-page .hero > div:last-child {
        background: rgba(209, 160, 82, 0.08);
        border: 1px solid rgba(209, 160, 82, 0.2);
        border-radius: 10px;
        padding: 12px;
    }

    .admin-mobile-filter {
        grid-template-columns: 1fr;
        margin-bottom: 14px;
    }

    .admin-mobile-filter button,
    .admin-mobile-filter .button {
        min-height: 44px;
    }

    .admin-mobile-action-bar {
        display: flex;
        gap: 8px;
        margin-left: -12px;
        margin-right: -12px;
        overflow-x: auto;
        padding: 0 12px 8px;
        scroll-snap-type: x proximity;
        scrollbar-width: thin;
    }

    .admin-mobile-action-bar .button,
    .admin-mobile-action-bar a {
        flex: 0 0 auto;
        min-height: 40px;
        scroll-snap-align: start;
        white-space: nowrap;
        width: auto;
    }

    .admin-mobile-panels {
        gap: 12px;
        grid-template-columns: 1fr;
    }

    .admin-mobile-panels .panel,
    .admin-payments-page .panel {
        border-radius: 12px;
    }

    .admin-users-table.mobile-card-table tr,
    .admin-payments-table.mobile-card-table tr {
        border-radius: 14px;
        box-shadow: 0 14px 30px rgba(2, 8, 20, 0.22);
        padding: 10px;
    }

    .admin-users-table.mobile-card-table td,
    .admin-payments-table.mobile-card-table td {
        align-items: start;
        grid-template-columns: 92px minmax(0, 1fr);
        padding: 11px 6px;
    }

    .admin-users-table.mobile-card-table td::before,
    .admin-payments-table.mobile-card-table td::before {
        letter-spacing: 0.03em;
        word-break: break-word;
    }

    .admin-users-table .compact-credit-form {
        align-items: stretch;
        gap: 8px;
        grid-template-columns: minmax(0, 1fr) 42px;
    }

    .admin-users-table .compact-credit-form input[type="number"],
    .admin-users-table .compact-credit-form input[type="text"],
    .admin-users-table .compact-credit-form input:not([type]) {
        min-height: 42px;
    }

    .admin-users-table .compact-credit-form button.icon-only {
        height: 42px;
        min-height: 42px;
    }

    .admin-users-table .payout-form {
        grid-template-columns: 1fr 42px;
    }

    .admin-users-table .payout-form input[name="referral_bonus_note"] {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .admin-users-table .payout-form button {
        grid-column: 2;
        grid-row: 1;
    }

    .admin-payments-table .payment-review-cell {
        display: block;
    }

    .admin-payments-table .payment-review-cell::before {
        display: block;
        margin-bottom: 8px;
    }

    .admin-payments-table .payment-review-cell .field,
    .admin-payments-table .payment-review-cell select,
    .admin-payments-table .payment-review-cell textarea {
        width: 100%;
    }

    .admin-payments-table .payment-review-cell .actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .admin-payments-table .payment-review-cell .actions button {
        min-height: 42px;
        width: 100%;
    }
}

@media (max-width: 420px) {
    .admin-users-table.mobile-card-table td,
    .admin-payments-table.mobile-card-table td {
        display: block;
    }

    .admin-users-table.mobile-card-table td::before,
    .admin-payments-table.mobile-card-table td::before {
        display: block;
        margin-bottom: 6px;
    }
}

.admin-settings-spoiler > .admin-credit-actions {
    margin-top: 16px;
}

.admin-row-spoiler {
    background: rgba(6, 16, 26, 0.36);
    border: 1px solid rgba(209, 160, 82, 0.18);
    border-radius: 10px;
    padding: 10px 12px;
}

.admin-row-spoiler summary {
    font-size: 14px;
    line-height: 1.2;
}

.admin-row-spoiler[open] summary {
    margin-bottom: 12px;
}

.admin-row-detail-grid,
.admin-row-actions-grid {
    display: grid;
    gap: 10px;
}

.admin-row-detail-grid {
    color: #d7e0ef;
    font-size: 13px;
    margin-bottom: 12px;
}

.admin-row-detail-grid p,
.admin-row-actions-grid p {
    margin: 0;
}

.admin-row-actions-grid .compact-credit-form,
.admin-row-actions-grid form {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 10px;
    padding: 10px;
}

@media (max-width: 760px) {
    .admin-compact-table.mobile-card-table tr {
        display: grid;
        gap: 8px;
        grid-template-columns: 1fr 1fr;
        padding: 10px;
    }

    .admin-compact-table.mobile-card-table td {
        border-bottom: 0;
        display: block;
        padding: 0;
    }

    .admin-compact-table.mobile-card-table td::before {
        display: block;
        margin-bottom: 4px;
    }

    .admin-compact-table.mobile-card-table .admin-compact-detail-cell {
        grid-column: 1 / -1;
    }

    .admin-compact-table.mobile-card-table .admin-row-spoiler summary::before {
        display: none;
    }
}

.market-overview-page .overview-heatmap-tile.overview-risk {
    order: 1;
}

.market-overview-page .overview-heatmap-tile.overview-neutral {
    order: 2;
}

.market-overview-page .overview-heatmap-tile.overview-positive {
    order: 3;
}
