/* XAUUSDAI institutional visual refresh. Display-only CSS, no route or API changes. */
:root {
    --bg: #f7f9fa;
    --paper: #ffffff;
    --ink: #111315;
    --muted: #647078;
    --soft: #e5ebef;
    --line: #d7e0e6;
    --accent: #176bff;
    --accent-dark: #0848b7;
    --ok: #187a52;
    --warn: #b86d11;
    --danger: #c63d52;
    --shadow: 0 30px 80px rgba(31, 49, 64, .14);
    --app-bg: #f7f9fa;
    --app-panel: #ffffff;
    --app-panel-soft: #fbfcfd;
    --app-line: #d7e0e6;
    --app-text: #111315;
    --app-muted: #647078;
    --app-gold: #176bff;
    --app-gold-soft: #eaf1ff;
    --app-blue: #176bff;
    --app-green: #187a52;
    --app-red: #c63d52;
    --app-shadow: 0 18px 48px rgba(31, 49, 64, .11);
    --dark-bg: #fbfcfd;
    --dark-panel: #ffffff;
    --dark-panel-soft: #eef3f6;
    --dark-line: #d7e0e6;
    --dark-text: #111315;
    --dark-muted: #647078;
    --panel: #ffffff;
    --panel-soft: #fbfcfd;
    --text: #111315;
    --gold: #176bff;
    --gold-soft: #eaf1ff;
}

html,
body {
    background:
        linear-gradient(90deg, rgba(17, 19, 21, .045) 1px, transparent 1px),
        linear-gradient(rgba(17, 19, 21, .035) 1px, transparent 1px),
        var(--bg) !important;
    background-size: 64px 64px !important;
    color: var(--ink) !important;
    font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei UI", Arial, sans-serif !important;
}

body::before,
body::after,
.frame::before {
    display: none !important;
}

a {
    color: inherit;
}

.shell {
    width: min(1440px, calc(100% - 48px)) !important;
    margin: 24px auto 34px !important;
}

.frame,
.panel {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: var(--ink) !important;
}

.topbar {
    min-height: 64px !important;
    padding: 0 0 18px !important;
    border-bottom: 1px solid var(--soft) !important;
    background: transparent !important;
    color: var(--ink) !important;
}

.brand,
.app-brand {
    color: var(--ink) !important;
}

.brand-mark {
    position: relative !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 8px !important;
    border: 0 !important;
    background: var(--ink) !important;
    box-shadow: none !important;
    color: transparent !important;
    font-size: 0 !important;
}

.brand-mark::after {
    content: "" !important;
    position: absolute !important;
    inset: 8px 7px 7px 8px !important;
    border-top: 3px solid #fff !important;
    border-right: 3px solid #fff !important;
    transform: rotate(45deg) !important;
}

.nav-links a,
.nav-actions a,
.back,
.auth-nav a {
    color: #4e5961 !important;
}

.nav-links a:hover,
.nav-actions a:hover,
.back:hover,
.auth-nav a:hover {
    color: var(--accent) !important;
}

.button,
button,
input[type=submit],
body.member-mode .button,
body.member-mode button,
body.member-mode input[type=submit] {
    min-height: 44px !important;
    border-radius: 8px !important;
    border: 1px solid #cdd6dc !important;
    background: #fff !important;
    color: var(--ink) !important;
    box-shadow: none !important;
    font-weight: 800 !important;
}

.button:hover,
button:hover,
input[type=submit]:hover,
body.member-mode .button:hover,
body.member-mode button:hover,
body.member-mode input[type=submit]:hover {
    transform: translateY(-1px) !important;
    border-color: #b7c4cd !important;
    background: #fbfcfd !important;
    color: var(--ink) !important;
    box-shadow: 0 12px 26px rgba(31, 49, 64, .10) !important;
}

.button.primary,
button.primary,
button:not(.secondary):not(.ghost):not(.danger):not(.linkish),
input[type=submit],
body.member-mode .button.primary,
body.member-mode button.primary {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #fff !important;
    box-shadow: 0 16px 34px rgba(23, 107, 255, .18) !important;
}

.button.secondary,
button.secondary,
.button.ghost,
button.ghost,
body.member-mode .button.secondary,
body.member-mode button.secondary,
body.member-mode .button.ghost,
body.member-mode button.ghost {
    background: #fff !important;
    color: var(--ink) !important;
    border-color: #cdd6dc !important;
}

.button.danger,
button.danger,
body.member-mode .button.danger,
body.member-mode button.danger {
    background: #fff4f5 !important;
    border-color: #f1c8cf !important;
    color: var(--danger) !important;
}

.card,
.feature-item,
.audience-item,
.flow-step,
.trial-panel,
.faq-item,
details,
.media-card,
.media-stage.empty,
.prompt-result-box,
.panel.quota-panel,
.panel.gate {
    background: var(--paper) !important;
    border: 1px solid var(--line) !important;
    border-radius: 8px !important;
    color: var(--ink) !important;
    box-shadow: 0 18px 48px rgba(31, 49, 64, .10) !important;
}

.card h2,
.card h3,
.feature-item h3,
.audience-item h3,
.flow-step strong,
.trial-copy h2,
.faq-item summary,
summary,
h1,
h2,
h3 {
    color: var(--ink) !important;
    letter-spacing: 0 !important;
}

.card p,
.feature-item p,
.audience-item p,
.flow-step p,
.trial-copy p,
.faq-answer,
.answer,
.lead,
.hero-copy p,
.intro,
.muted,
.caption,
.metric-sub,
.trial-risk,
.empty,
.meta div {
    color: var(--muted) !important;
}

.section {
    padding: 28px 0 0 !important;
}

.section-title {
    text-align: left !important;
    font-size: clamp(28px, 3vw, 42px) !important;
    margin-bottom: 14px !important;
}

.section-sub {
    width: 100% !important;
    height: 1px !important;
    margin: 0 0 18px !important;
    background: var(--soft) !important;
}

.feature-grid,
.audience-grid,
.flow-strip,
.faq-grid,
.cards {
    gap: 16px !important;
}

.icon-ring {
    width: 42px !important;
    height: 42px !important;
    border-radius: 8px !important;
    border: 0 !important;
    background: #eaf1ff !important;
    color: var(--accent) !important;
    box-shadow: none !important;
}

.flow-step:not(:last-child)::after {
    color: var(--accent) !important;
}

.hero {
    min-height: calc(100svh - 104px) !important;
    grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr) !important;
    gap: 52px !important;
    padding: 74px 0 48px !important;
}

.hero-copy {
    align-self: center !important;
    padding: 0 !important;
}

.hero-copy::before {
    content: "Institutional AI Trading";
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.hero-copy h1 {
    max-width: 660px !important;
    margin-bottom: 22px !important;
    font-size: clamp(40px, 4.2vw, 60px) !important;
    line-height: .98 !important;
}

.hero-copy p {
    max-width: 550px !important;
    font-size: 19px !important;
    line-height: 1.65 !important;
}

.hero-actions {
    margin-top: 28px !important;
}

.hero-proof {
    display: grid !important;
    grid-template-columns: auto auto !important;
    width: max-content !important;
    min-width: 0 !important;
    margin-top: 42px !important;
    padding: 0 0 0 16px !important;
    border-left: 1px solid #d6dee4 !important;
    border-radius: 0 !important;
    border-top: 0 !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    gap: 12px !important;
    color: var(--ink) !important;
}

.hero-proof span,
.hero-note {
    color: var(--muted) !important;
}

.hero-proof strong {
    color: var(--ink) !important;
}

.hero-visual {
    min-height: 610px !important;
    position: relative !important;
    overflow: hidden !important;
    border-radius: 8px !important;
    background:
        linear-gradient(#eef3f6 1px, transparent 1px),
        linear-gradient(90deg, #eef3f6 1px, transparent 1px),
        #fff !important;
    background-size: 42px 42px !important;
    border: 1px solid var(--line) !important;
    box-shadow: var(--shadow) !important;
}

.hero-visual::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    inset: 0 0 auto 0 !important;
    height: 48px !important;
    background:
        radial-gradient(circle at 18px 24px, #cfd7de 0 4px, transparent 5px),
        radial-gradient(circle at 36px 24px, #cfd7de 0 4px, transparent 5px),
        radial-gradient(circle at 54px 24px, #cfd7de 0 4px, transparent 5px),
        linear-gradient(#fbfcfd, #fbfcfd) !important;
    border-bottom: 1px solid #e3e9ee !important;
    pointer-events: none !important;
    z-index: 4 !important;
}

.hero-visual::after {
    content: "xauusdai.vip / dashboard" !important;
    position: absolute !important;
    left: 82px !important;
    right: 18px !important;
    top: 13px !important;
    height: 24px !important;
    border: 0 !important;
    border-radius: 6px !important;
    background: #eef3f6 !important;
    color: #89949c !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 12px !important;
    font: 12px/1 "Cascadia Mono", Consolas, monospace !important;
    z-index: 5 !important;
}

.hero-grid {
    inset: 48px 0 0 230px !important;
    background-image:
        linear-gradient(#e8eef2 1px, transparent 1px),
        linear-gradient(90deg, #e8eef2 1px, transparent 1px) !important;
    background-size: 42px 42px !important;
    mask-image: none !important;
    opacity: 1 !important;
}

.hero-orbit,
.globe,
.spark {
    display: none !important;
}

.hero-stats {
    left: 0 !important;
    top: 48px !important;
    bottom: 0 !important;
    width: 230px !important;
    padding: 24px 22px !important;
    gap: 8px !important;
    background: #fbfcfd !important;
    border-right: 1px solid #e5ebef !important;
    z-index: 2 !important;
    align-content: start !important;
    grid-auto-rows: min-content !important;
}

.hero-stat {
    padding: 0 12px !important;
    min-height: 40px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #47515a !important;
}

.hero-stat:first-child {
    background: #eaf1ff !important;
    color: var(--accent-dark) !important;
}

.hero-stat::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    flex: 0 0 auto;
}

.hero-stat strong {
    margin: 0 !important;
    font-size: 14px !important;
    color: currentColor !important;
}

.hero-stat span {
    display: none !important;
}

.chartline {
    left: 260px !important;
    right: 46px !important;
    bottom: 168px !important;
    height: 178px !important;
    gap: 10px !important;
}

.chartline span {
    border-radius: 999px 999px 3px 3px !important;
    background: var(--accent) !important;
    box-shadow: none !important;
}

.hero-band {
    left: 254px !important;
    right: 26px !important;
    bottom: 28px !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px !important;
}

.hero-band .band-item {
    min-height: 118px !important;
    padding: 16px !important;
    border-radius: 8px !important;
    border: 1px solid #e3e9ee !important;
    background: #fff !important;
    box-shadow: none !important;
}

.hero-band .band-item strong,
.price-card strong {
    color: var(--ink) !important;
}

.hero-band .band-item span,
.price-card .label,
.price-card .mini {
    color: var(--muted) !important;
}

.price-card {
    right: 36px !important;
    top: 72px !important;
    bottom: auto !important;
    width: 128px !important;
    padding: 10px 13px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: #eff8f4 !important;
    color: var(--ok) !important;
    box-shadow: none !important;
}

.price-card .label,
.price-card .mini {
    display: none !important;
}

.price-card strong {
    margin: 0 !important;
    font-size: 13px !important;
    color: var(--ok) !important;
}

.hero > .panel {
    align-self: center !important;
    min-height: auto !important;
}

.hero > .panel.gate,
.hero > .panel.quota-panel {
    min-height: 360px !important;
}

.trial-count,
.symbol-pill,
.eyebrow {
    border-radius: 8px !important;
    border: 1px solid #d8e6ff !important;
    background: #eaf1ff !important;
    color: var(--accent) !important;
}

.contact-fab,
.contact-panel {
    border-radius: 8px !important;
    border: 1px solid var(--line) !important;
    background: var(--paper) !important;
    color: var(--ink) !important;
    box-shadow: var(--shadow) !important;
}

.contact-fab strong,
.contact-panel strong,
.contact-item {
    color: var(--ink) !important;
}

.contact-panel button {
    color: var(--ink) !important;
}

.auth-shell,
.app-shell {
    background:
        linear-gradient(90deg, rgba(17, 19, 21, .045) 1px, transparent 1px),
        linear-gradient(rgba(17, 19, 21, .035) 1px, transparent 1px),
        var(--bg) !important;
    background-size: 64px 64px !important;
}

.auth-wrap,
.app-frame {
    border-radius: 8px !important;
    border: 1px solid var(--line) !important;
    background: var(--paper) !important;
    box-shadow: var(--shadow) !important;
}

.auth-side,
.app-sidebar {
    background: #fbfcfd !important;
    color: var(--ink) !important;
    border-right: 1px solid #e5ebef !important;
}

.app-brand {
    border-bottom: 1px solid #e5ebef !important;
}

.app-brand small,
.auth-side p {
    color: var(--muted) !important;
}

.app-nav a {
    border-radius: 8px !important;
    color: #47515a !important;
}

.app-nav a.active {
    background: #eaf1ff !important;
    color: var(--accent-dark) !important;
}

.app-nav a:hover {
    background: #eef3f6 !important;
    color: var(--ink) !important;
}

.avatar-dot,
.toolbar-user .avatar-dot {
    border-radius: 8px !important;
    background: #eaf1ff !important;
    color: var(--accent) !important;
}

.app-topbar {
    min-height: 72px !important;
    border-bottom: 1px solid #e5ebef !important;
    background: #fff !important;
}

.toolbar-user {
    border-radius: 8px !important;
    background: #fbfcfd !important;
}

.app-content {
    background: #fff !important;
}

.table-wrap,
table {
    background: #fff !important;
}

.table-wrap {
    border-radius: 8px !important;
}

th {
    background: #fbfcfd !important;
    color: var(--muted) !important;
}

td {
    color: var(--ink) !important;
}

input[type=text],
input[type=password],
input[type=number],
input[type=datetime-local],
textarea,
select {
    border-radius: 8px !important;
    border-color: #cdd6dc !important;
    background: #fff !important;
    color: var(--ink) !important;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(23, 107, 255, .12) !important;
}

.admin-disclosure,
.empty,
.upload-zone,
.model-option,
.segmented label,
.prompt-preview,
.prompt-output {
    border-radius: 8px !important;
    border-color: var(--line) !important;
}

.admin-disclosure,
.empty,
.upload-zone,
.model-option,
.segmented label,
.prompt-preview {
    background: #fbfcfd !important;
    color: var(--ink) !important;
}

.model-option:has(input:checked),
.segmented label:has(input:checked) {
    border-color: #b9d0ff !important;
    background: #eaf1ff !important;
    color: var(--accent-dark) !important;
}

.prompt-output,
.result-text {
    background: #fbfcfd !important;
    color: var(--ink) !important;
    border: 1px solid var(--line) !important;
}

.quota-count strong {
    color: var(--accent) !important;
}

.alert.success,
.pill-ok {
    background: #eff8f4 !important;
    border-color: #cce8d9 !important;
    color: var(--ok) !important;
}

.alert.error,
.pill-bad {
    background: #fff4f5 !important;
    border-color: #f1c8cf !important;
    color: var(--danger) !important;
}

.pill-warn,
.risk-note {
    background: #fff8eb !important;
    border-color: #f2dfb8 !important;
    color: var(--warn) !important;
}

.media-title {
    background: #fbfcfd !important;
    border-bottom: 1px solid var(--line) !important;
    color: var(--ink) !important;
}

.media-box,
img,
video {
    background: #eef3f6 !important;
}

.content {
    color: var(--ink) !important;
}

.content .card {
    box-shadow: none !important;
}

@media (max-width: 1080px) {
    .hero {
        grid-template-columns: 1fr !important;
        min-height: auto !important;
    }

    .hero-visual {
        min-height: 520px !important;
    }

    .feature-grid,
    .flow-strip,
    .audience-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 760px) {
    .shell {
        width: min(100%, calc(100% - 16px)) !important;
        margin: 8px auto 18px !important;
    }

    .topbar,
    .hero,
    .section,
    .footer,
    .media-wrap,
    .content {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .hero-copy h1 {
        font-size: 42px !important;
    }

    .hero-visual {
        min-height: 420px !important;
    }

    .hero-stats,
    .hero-grid,
    .hero-band,
    .price-card,
    .chartline {
        position: static !important;
        width: auto !important;
    }

    .hero-stats {
        padding-top: 64px !important;
        border-right: 0 !important;
    }

    .hero-band {
        display: grid !important;
        padding: 16px !important;
        grid-template-columns: 1fr !important;
    }

    .chartline,
    .price-card {
        display: none !important;
    }

    .app-frame {
        border-radius: 0 !important;
    }
}
