/* RevenueOverview, dark dashboard theme on top of Bootstrap 5 */

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 600; font-display: swap; src: url("../fonts/bricolage-grotesque-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 700; font-display: swap; src: url("../fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); }

:root {
    --cr-bg: #0f1211;
    --cr-sidebar: #121514;
    --cr-panel: #181b1a;
    --cr-panel-2: #1f2321;
    --cr-border: #272b29;
    --cr-text: #eef0ec;
    --cr-muted: #9aa19c;
    --cr-faint: #6d736f;
    --cr-accent: #c9f23d;
    --cr-accent-ink: #12160a;
    --cr-down: #f3a73b;
    --cr-danger: #ff6b5e;
    --cr-play: #4f8ef7;
    --cr-apple: #eef0ec;
    --cr-admob: #f3a73b;
    --cr-steam: #8b6cf0;
    --cr-radius: 18px;
    --cr-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;

    --bs-body-bg: var(--cr-bg);
    --bs-body-color: var(--cr-text);
    --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --bs-border-color: var(--cr-border);
    --bs-secondary-color: var(--cr-muted);
    --bs-link-color: var(--cr-accent);
    --bs-link-hover-color: #def98a;
    --bs-link-color-rgb: 201, 242, 61;
    --bs-emphasis-color: var(--cr-text);
    --bs-tertiary-bg: var(--cr-panel-2);
}

html, body { background: var(--cr-bg); }
body { font-size: 15px; -webkit-font-smoothing: antialiased; font-feature-settings: "tnum" 1, "cv11" 1; }
h1, h2, h3, .display-amount, .brand { font-family: var(--cr-display); letter-spacing: -0.01em; }
a { text-decoration: none; }
.text-muted, .text-secondary { color: var(--cr-muted) !important; }
.text-faint { color: var(--cr-faint); }
.text-accent { color: var(--cr-accent) !important; }
.tabular { font-variant-numeric: tabular-nums; }

/* Layout */
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
    width: 220px; flex: 0 0 220px; align-self: flex-start; background: var(--cr-sidebar); border-right: 1px solid var(--cr-border);
    display: flex; flex-direction: column; padding: 28px 18px 20px; position: sticky; top: 0; height: 100vh;
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; color: var(--cr-text); margin: 0 12px 34px; }
.brand:hover { color: var(--cr-text); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name { white-space: nowrap; }
.brand-name span { color: var(--cr-accent); }
.sidebar .brand { font-size: 17px; gap: 8px; margin: 0 2px 34px; }
.sidebar .brand-mark { width: 26px; height: 26px; }
.nav-side { list-style: none; padding: 0; margin: 0; }
.nav-side a {
    display: flex; align-items: center; gap: 14px; padding: 11px 14px; border-radius: 10px; color: var(--cr-muted);
    font-weight: 500; margin-bottom: 4px; transition: background-color .15s ease, color .15s ease;
}
.nav-side a i { width: 18px; text-align: center; }
.nav-side a:hover { color: var(--cr-text); background: rgba(255, 255, 255, .03); }
.nav-side a.active { background: var(--cr-panel-2); color: var(--cr-text); font-weight: 600; }
.sidebar-footer { margin-top: auto; }
.health-card { border: 1px solid var(--cr-border); border-radius: 12px; padding: 14px; font-size: 13px; color: var(--cr-muted); }
.health-card strong { display: block; color: var(--cr-text); font-size: 14px; margin: 3px 0; }
.sidebar .user-line { font-size: 13px; color: var(--cr-faint); margin: 14px 4px 0; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sidebar .user-line span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-link-plain { background: none; border: 0; color: var(--cr-muted); padding: 0; }
.btn-link-plain:hover { color: var(--cr-text); }

.main { flex: 1; min-width: 0; padding: 34px 36px 60px; max-width: 1240px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.page-head h1 { font-size: 30px; font-weight: 700; margin: 0; display: flex; align-items: center; gap: 12px; }
.page-head .sub { color: var(--cr-muted); margin-top: 6px; font-size: 14px; }
.sample-badge { font-family: "Inter", sans-serif; font-size: 12px; font-weight: 500; letter-spacing: 0; border: 1px dashed #59605b; color: var(--cr-muted); border-radius: 999px; padding: 3px 10px; }

/* Cards */
.panel { background: var(--cr-panel); border: 1px solid var(--cr-border); border-radius: var(--cr-radius); padding: 26px 28px; }
.row > [class*="col"] > .panel { height: 100%; }
.panel-title { font-family: var(--cr-display); font-size: 19px; font-weight: 600; margin: 0 0 18px; }
.panel-label { color: var(--cr-muted); font-size: 14px; font-weight: 500; }
.display-amount { font-size: clamp(40px, 6vw, 64px); font-weight: 700; line-height: 1.05; color: var(--cr-accent); margin: 14px 0 12px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.display-amount.neutral { color: var(--cr-text); }
.source-amount { font-family: var(--cr-display); font-size: 30px; font-weight: 700; margin: 10px 0 8px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: 0; }
.source-card .meta { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; color: var(--cr-muted); font-size: 13px; }
.source-card { transition: border-color .15s ease; display: block; color: inherit; }
a.source-card:hover { border-color: #3a403c; color: inherit; }

.change { font-size: 13px; font-weight: 600; white-space: nowrap; }
.display-amount .change { font-family: "Inter", sans-serif; font-size: 15px; }
.change-up { color: var(--cr-accent); }
.change-down { color: var(--cr-down); }
.change-none { color: var(--cr-faint); font-weight: 500; }

.split-bar { display: flex; gap: 4px; height: 10px; margin-top: 18px; }
.split-bar span { border-radius: 4px; min-width: 3px; }
.type-row { margin-bottom: 16px; }
.type-row .line { display: flex; justify-content: space-between; font-weight: 500; font-size: 15px; margin-bottom: 8px; }
.track { height: 6px; background: var(--cr-panel-2); border-radius: 99px; overflow: hidden; }
.track > span { display: block; height: 100%; background: var(--cr-accent); border-radius: 99px; width: 0; transition: width .5s cubic-bezier(.2, .7, .2, 1); }

/* Segmented range control */
.segmented { display: inline-flex; background: var(--cr-panel); border: 1px solid var(--cr-border); border-radius: 12px; padding: 4px; gap: 2px; }
.segmented a, .segmented button { color: var(--cr-muted); border: 0; background: none; padding: 8px 14px; border-radius: 9px; font-size: 14px; font-weight: 500; }
.segmented a:hover { color: var(--cr-text); }
.segmented .active { background: var(--cr-panel-2); color: var(--cr-text); font-weight: 600; }

.btn { border-radius: 11px; font-weight: 600; padding: 9px 18px; }
.btn-accent { background: var(--cr-accent); color: var(--cr-accent-ink); border: 0; }
.btn-accent:hover, .btn-accent:focus { background: #d8f86a; color: var(--cr-accent-ink); }
.btn-accent:active { transform: scale(.98); }
.btn-ghost { background: var(--cr-panel-2); color: var(--cr-text); border: 1px solid var(--cr-border); }
.btn-ghost:hover { background: #262a28; color: var(--cr-text); }
.btn-danger-ghost { background: transparent; color: var(--cr-danger); border: 1px solid #4a2522; }
.btn-danger-ghost:hover { background: #2a1513; color: var(--cr-danger); }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 9px; }
.spin { animation: cr-spin 1s linear infinite; }
@keyframes cr-spin { to { transform: rotate(360deg); } }

/* Chart */
.chart-wrap { position: relative; height: 290px; }
.chart-wrap.small { height: 190px; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--cr-muted); }

/* Tables */
.table-cr { width: 100%; margin: 0; color: var(--cr-text); font-variant-numeric: tabular-nums; }
.table-cr th { color: var(--cr-muted); font-weight: 500; font-size: 13px; padding: 0 8px 10px; border-bottom: 1px solid var(--cr-border); white-space: nowrap; }
.table-cr td { padding: 16px 8px; border-bottom: 1px solid var(--cr-border); vertical-align: middle; }
.table-cr tr:last-child td { border-bottom: 0; }
.table-cr .num { text-align: right; white-space: nowrap; }
.table-cr td.title { font-weight: 600; }
.list-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--cr-border); }
.list-row:last-child { border-bottom: 0; }
.list-row .when { color: var(--cr-muted); margin-right: 22px; font-size: 14px; }
.list-row .amt { font-weight: 600; font-variant-numeric: tabular-nums; }

/* Forms */
.form-control, .form-select { background-color: var(--cr-panel-2); border-color: var(--cr-border); color: var(--cr-text); border-radius: 10px; padding: 10px 14px; }
.form-control:focus, .form-select:focus { background-color: var(--cr-panel-2); color: var(--cr-text); border-color: #6f8a1c; box-shadow: 0 0 0 3px rgba(201, 242, 61, .15); }
.form-control::placeholder { color: var(--cr-faint); }
.form-label { font-weight: 500; font-size: 14px; }
.form-text { color: var(--cr-faint); }
textarea.mono, .mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; }

/* Status pills */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-ok { background: rgba(201, 242, 61, .1); color: var(--cr-accent); }
.pill-pending { background: rgba(255, 255, 255, .06); color: var(--cr-muted); }
.pill-error { background: rgba(255, 107, 94, .1); color: var(--cr-danger); }
.pill-needs_auth { background: rgba(243, 167, 59, .12); color: var(--cr-down); }
.pill-off { background: rgba(255, 255, 255, .04); color: var(--cr-faint); }

/* Alerts and toasts */
.alert { border-radius: 12px; border: 1px solid var(--cr-border); background: var(--cr-panel); color: var(--cr-text); }
.alert-success { border-color: rgba(201, 242, 61, .35); }
.alert-danger { border-color: rgba(255, 107, 94, .45); }
.notice { border: 1px dashed #3a403c; border-radius: 14px; padding: 18px 20px; color: var(--cr-muted); font-size: 14px; }
.callout { background: var(--cr-panel-2); border-radius: 12px; padding: 14px 16px; font-size: 14px; color: var(--cr-muted); }
.callout strong { color: var(--cr-text); }
.callout-ok { border-left: 3px solid var(--cr-accent); }
.callout-error { border-left: 3px solid var(--cr-danger); }
.debug-output { background: var(--cr-panel-2); border-radius: 12px; padding: 14px 16px; margin: 0; max-height: 520px; overflow: auto; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; color: var(--cr-text); white-space: pre-wrap; word-break: break-word; }
.toast-host { position: fixed; right: 20px; bottom: 20px; z-index: 1080; display: flex; flex-direction: column; gap: 8px; }
.toast-cr { background: var(--cr-panel-2); border: 1px solid var(--cr-border); color: var(--cr-text); border-radius: 12px; padding: 12px 16px; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); animation: cr-toast .2s ease-out; }
@keyframes cr-toast { from { opacity: 0; transform: translateY(6px); } }

/* Auth pages */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card .brand { margin: 0 0 30px; justify-content: center; font-size: 24px; }

/* Platform setup steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 14px 38px; color: var(--cr-muted); font-size: 14px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -1px; width: 24px; height: 24px; border-radius: 50%; background: var(--cr-panel-2); color: var(--cr-text); font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.steps strong, .steps code { color: var(--cr-text); }
code { color: #d8f86a; }

.modal-content { background: var(--cr-panel); border: 1px solid var(--cr-border); border-radius: var(--cr-radius); }
.modal-header, .modal-footer { border-color: var(--cr-border); }
.btn-close { filter: invert(1) grayscale(1); }

/* Mobile: sidebar becomes a bottom tab bar */
.tabbar { display: none; }
@media (max-width: 991.98px) {
    .sidebar { display: none; }
    .main { padding: 24px 16px 110px; }
    .page-head h1 { font-size: 26px; }
    .panel { padding: 20px; }
    .tabbar {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; background: var(--cr-sidebar);
        border-top: 1px solid var(--cr-border); padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
    }
    .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: var(--cr-muted); padding: 6px 0; -webkit-tap-highlight-color: transparent; }
    .tabbar a i { font-size: 19px; }
    .tabbar a.active { color: var(--cr-accent); }
    .chart-wrap { height: 220px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Platform colors (classes, no inline styles because of the CSP) */
.c-google_play { background: var(--cr-play); }
.c-app_store { background: var(--cr-apple); }
.c-admob { background: var(--cr-admob); }
.c-steam { background: var(--cr-steam); }
.c-subscription { background: var(--cr-play); }
.c-sale { background: #a9c7fb; }
.c-wl-adds { background: #c9f23d; }
.c-wl-deletes { background: #f3a73b; }
.c-wl-purchases { background: #8b6cf0; }
.c-wl-gifts { background: #a9c7fb; }
.c-ads { background: var(--cr-admob); }

/* Legal pages */
.legal-wrap { min-height: 100vh; padding: 40px 16px; }
.legal-wrap .legal { max-width: 760px; margin: 0 auto; }
.legal-wrap .legal > .brand { margin: 0 0 30px; }
.legal { max-width: 860px; }
.legal-body { line-height: 1.65; color: var(--cr-muted); }
.legal-body h2 { font-size: 19px; font-weight: 600; color: var(--cr-text); margin: 30px 0 10px; }
.legal-body h3 { font-family: "Inter", sans-serif; font-size: 15px; font-weight: 600; color: var(--cr-text); margin: 18px 0 6px; }
.legal-body p, .legal-body ul { margin-bottom: 12px; }
.legal-body ul { padding-left: 20px; }
.legal-body li { margin-bottom: 4px; }
.legal-body strong { color: var(--cr-text); font-weight: 600; }
.legal-body a { color: var(--cr-accent); }
.legal-body code { color: var(--cr-text); background: var(--cr-panel-2); padding: 1px 6px; border-radius: 6px; font-size: 13px; }
.legal-links { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; margin-top: 18px; }
.legal-links a { color: var(--cr-faint); text-decoration: none; }
.legal-links a:hover { color: var(--cr-text); }
.sidebar .legal-links { margin: 10px 4px 0; font-size: 12px; }
@media (max-width: 575.98px) { .legal-body { padding: 20px 18px; } }

/* Delete account */
.panel-danger { border-color: #4a2522; }
.danger-callout { background: #2a1513; border: 1px solid #4a2522; border-radius: 12px; padding: 14px 16px; font-size: 14px; color: var(--cr-text); }
.danger-callout strong { display: block; color: var(--cr-danger); margin-bottom: 4px; }
.btn-danger { background: var(--cr-danger); border-color: var(--cr-danger); color: #fff; }
.btn-danger:hover, .btn-danger:focus { background: var(--cr-danger); border-color: var(--cr-danger); color: #fff; filter: brightness(1.1); }
.btn-danger:disabled { background: transparent; border-color: #4a2522; color: var(--cr-danger); opacity: .6; }

/* Empty state (no stores connected) */
.empty-state { text-align: center; padding: 56px 28px; }
.empty-state .empty-icon { font-size: 40px; color: var(--cr-accent); margin-bottom: 18px; display: block; }

/* Public site (front page, contact, legal) */
.site-container { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.site-narrow { max-width: 860px; }
.site-header { position: sticky; top: 0; z-index: 1020; background: rgba(15, 18, 17, .85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--cr-border); }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.site-header .brand { margin: 0; font-size: 18px; }
.site-header .brand-mark, .site-footer .brand-mark { width: 30px; height: 30px; }
.site-nav { display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 500; }
.site-nav > a:not(.btn) { color: var(--cr-muted); text-decoration: none; }
.site-nav > a:not(.btn):hover, .site-nav > a.active { color: var(--cr-text); }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin-left: -6px; padding: 0; border: 1px solid var(--cr-border); border-radius: 10px; background: var(--cr-panel-2); color: var(--cr-text); font-size: 17px; }
.nav-toggle:focus-visible { outline: 2px solid var(--cr-accent); outline-offset: 2px; }
.nav-toggle .fa-times, .nav-toggle[aria-expanded="true"] .fa-bars { display: none; }
.nav-toggle[aria-expanded="true"] .fa-times { display: inline-block; }
.site-menu { display: flex; flex-direction: column; padding-top: 6px; padding-bottom: 14px; }
.site-menu a { color: var(--cr-muted); text-decoration: none; font-size: 17px; font-weight: 500; padding: 13px 0; border-top: 1px solid var(--cr-border); }
.site-menu a:first-child { border-top: 0; }
.site-menu a:hover, .site-menu a.active { color: var(--cr-text); }
.site-main { padding-bottom: 40px; }
.section-top { padding-top: 48px; }
.site-main .legal { padding-top: 48px; }

.hero { padding-top: 88px; padding-bottom: 40px; }
.hero h1 { font-size: clamp(38px, 6vw, 64px); font-weight: 700; line-height: 1.04; margin: 14px 0 22px; letter-spacing: -0.02em; }
.hero .lead { color: var(--cr-muted); font-size: clamp(17px, 2vw, 20px); line-height: 1.6; margin-bottom: 32px; }
.eyebrow { display: inline-block; color: var(--cr-accent); font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.btn-lg { padding: 13px 24px; font-size: 16px; border-radius: 13px; }

.section { padding-top: 72px; }
.section-title { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; margin-bottom: 10px; }
.section-lead { color: var(--cr-muted); font-size: 17px; margin-bottom: 28px; }
.section-after { color: var(--cr-muted); margin: 24px 0 0; }

.example-frame { position: relative; border: 1px solid var(--cr-border); border-radius: calc(var(--cr-radius) + 8px); padding: 28px; background: linear-gradient(180deg, rgba(201, 242, 61, .04), transparent 40%); }
.example-badge { position: absolute; top: -12px; right: 24px; background: var(--cr-bg); }
.example-frame .panel-title { font-family: var(--cr-display); }

.feature { border-top: 1px solid var(--cr-border); padding-top: 22px; }
.feature h3 { font-size: 20px; font-weight: 600; margin: 0 0 8px; }
.feature p { color: var(--cr-muted); margin: 0; }
.trust-title { display: flex; align-items: center; gap: 10px; font-weight: 600; margin-bottom: 8px; }
.trust-icon { font-size: 20px; color: var(--cr-accent); flex: none; width: 24px; text-align: center; }
.cta-panel { text-align: center; padding: 56px 28px; }

.contact-topics { color: var(--cr-muted); padding-left: 20px; margin-bottom: 24px; }
.contact-topics li { margin-bottom: 8px; }
.contact-topics strong { color: var(--cr-text); }
address { line-height: 1.8; }

.site-footer { border-top: 1px solid var(--cr-border); margin-top: 40px; padding: 36px 0 calc(36px + env(safe-area-inset-bottom)); }
.site-footer-inner { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.site-footer .brand { margin: 0 0 10px; font-size: 16px; }
.site-footer-links { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; align-content: flex-start; }
.site-footer-links a { color: var(--cr-muted); text-decoration: none; }
.site-footer-links a:hover { color: var(--cr-text); }

@media (max-width: 575.98px) {
    .site-container { padding-left: 16px; padding-right: 16px; }
    .site-nav { gap: 14px; }
    .hero { padding-top: 48px; }
    .section { padding-top: 56px; }
    .example-frame { padding: 16px; border-radius: var(--cr-radius); }
}

/* Passkeys */
.divider-text { display: flex; align-items: center; gap: 12px; color: var(--cr-faint); font-size: 13px; margin: 18px 0; }
.divider-text::before, .divider-text::after { content: ""; flex: 1; height: 1px; background: var(--cr-border); }

/* Connect guides */
.guide h3 { font-family: "Inter", sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--cr-faint); margin: 22px 0 10px; }
.guide h3:first-of-type { margin-top: 0; }
.guide > ul { color: var(--cr-muted); font-size: 14px; padding-left: 18px; margin-bottom: 0; }
.guide > ul li { margin-bottom: 6px; }
.guide > p { color: var(--cr-muted); font-size: 14px; margin: 0; }
.guide strong { color: var(--cr-text); font-weight: 600; }
.guide .steps li { padding-bottom: 16px; line-height: 1.55; }
.field-tag { display: inline-flex; align-items: center; margin-top: 6px; margin-right: 4px; padding: 2px 9px; border-radius: 999px; background: rgba(201, 242, 61, .1); color: var(--cr-accent); font-size: 12px; font-weight: 600; white-space: nowrap; }
@media (min-width: 992px) { .form-sticky { position: sticky; top: 24px; } }

/* Waiting for store access */
.pill-waiting { background: rgba(79, 142, 247, .12); color: #8db4fa; }
.info-callout { background: rgba(79, 142, 247, .08); border: 1px solid rgba(79, 142, 247, .25); border-radius: 12px; padding: 12px 14px; font-size: 13px; color: var(--cr-muted); line-height: 1.55; }
.info-callout > strong { display: block; color: #8db4fa; margin-bottom: 4px; font-size: 14px; }
.info-callout strong { color: var(--cr-text); }
.info-callout summary { cursor: pointer; color: var(--cr-text); font-weight: 500; }
.info-callout ul { padding-left: 18px; }
.info-callout li { margin-bottom: 4px; }

/* Checks in connect guides */
.check-list { display: grid; gap: 6px; font-size: 13px; }
.check-list > div { display: flex; gap: 8px; align-items: baseline; }
.check-ok i { color: var(--cr-accent); }
.check-bad { color: var(--cr-muted); }
.check-bad i { color: var(--cr-danger); }
.guide .steps ul { color: var(--cr-muted); padding-left: 18px; }

/* Two-factor QR code: dark modules on white, needed for reliable scanning */
.qr-tile { display: block; width: fit-content; background: #fff; border-radius: 12px; padding: 10px; line-height: 0; }
.qr-tile img { display: block; width: 180px; height: 180px; image-rendering: pixelated; }

/* Small Chart.js charts */
.total-split { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.total-split .mini-chart-doughnut { flex: none; }
.mini-chart { position: relative; }
.mini-chart-doughnut { width: 128px; height: 128px; }
.mini-chart-hbar { height: 190px; }
.mini-chart-hbar.rows-1 { height: 84px; }
.mini-chart-hbar.rows-2 { height: 136px; }
@media (max-width: 575.98px) {
    .mini-chart-doughnut { width: 96px; height: 96px; }
}
.total-split > div:first-child { min-width: 0; }
.total-split .display-amount { font-size: clamp(32px, 3.6vw, 52px); }
.total-split .display-amount, .money-nowrap { white-space: nowrap; }
.total-split .display-amount .change { white-space: nowrap; }
@media (max-width: 1199.98px) { .total-split .display-amount { flex-wrap: wrap; } }

/* Steam: from Steam's net figure to the amount shown */
.steam-math { font-size: 13px; color: var(--cr-muted); border-top: 1px solid var(--cr-border); padding-top: 12px; }
.steam-math strong { color: var(--cr-text); font-weight: 600; white-space: nowrap; }
.steam-math .text-faint { font-size: 12px; }

/* Clickable chart legend */
.legend-item { display: inline-flex; align-items: center; background: none; border: 1px solid transparent; border-radius: 999px; padding: 3px 10px; margin: -3px -2px; color: var(--cr-muted); font-size: 13px; cursor: pointer; transition: color .15s ease, border-color .15s ease, opacity .15s ease; }
.legend-item:hover { color: var(--cr-text); border-color: var(--cr-border); }
.legend-item:focus-visible { outline: 2px solid var(--cr-accent); outline-offset: 2px; }
.legend-item.is-off { opacity: .45; text-decoration: line-through; }
.legend-item.is-empty { cursor: default; opacity: .35; }
.legend-item.is-empty:hover { border-color: transparent; color: var(--cr-muted); }

/* Checkbox ("Keep me signed in") */
.form-check-input { background-color: var(--cr-panel-2); border-color: var(--cr-border); }
.form-check-input:focus { border-color: var(--cr-accent); box-shadow: 0 0 0 3px rgba(201, 242, 61, .2); }
.form-check-input:checked { background-color: var(--cr-accent); border-color: var(--cr-accent); background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%2312160a' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e"); }
.form-check-label { color: var(--cr-text); }
.form-check .form-text { font-size: 12px; margin-top: 2px; }

/* Collapsible sidebar: only the icons stay visible */
.sidebar { transition: width .2s ease, flex-basis .2s ease, padding .2s ease; }
.sidebar-toggle {
    position: absolute; top: 50%; right: -13px; transform: translateY(-50%); z-index: 5; width: 26px; height: 26px; padding: 0;
    display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--cr-border);
    background: var(--cr-panel-2); color: var(--cr-muted); font-size: 14px; line-height: 1; transition: color .15s ease, border-color .15s ease;
}
.sidebar-toggle:hover { color: var(--cr-text); border-color: var(--cr-muted); }
.sidebar-toggle:focus-visible { outline: 2px solid var(--cr-accent); outline-offset: 2px; }
.sidebar-toggle i { transition: transform .2s ease; }
.sidebar.is-collapsed { width: 72px; flex-basis: 72px; padding-left: 12px; padding-right: 12px; }
.sidebar.is-collapsed .sidebar-toggle i { transform: rotate(180deg); }
.sidebar.is-collapsed .brand { justify-content: center; margin-left: 0; margin-right: 0; }
.sidebar.is-collapsed .brand-name,
.sidebar.is-collapsed .nav-label,
.sidebar.is-collapsed .health-card,
.sidebar.is-collapsed .user-line span,
.sidebar.is-collapsed .legal-links { display: none !important; }
.sidebar.is-collapsed .nav-side a { justify-content: center; padding-left: 0; padding-right: 0; }
.sidebar.is-collapsed .user-line { justify-content: center; margin-left: 0; margin-right: 0; }

/* Plans and pricing */
.plan-card { display: flex; flex-direction: column; gap: 8px; }
.plan-card.is-featured { border-color: var(--cr-accent); }
.plan-name { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 600; font-size: 15px; color: var(--cr-muted); }
.plan-tag { font-size: 12px; font-weight: 600; color: var(--cr-accent); }
.plan-price { font-family: "Bricolage Grotesque", sans-serif; font-size: 34px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.plan-price span { font-family: "Inter", sans-serif; font-size: 14px; font-weight: 500; color: var(--cr-muted); }
.pricing-notes { margin-top: 20px; }
.plan-how { font-size: 16px; font-weight: 600; margin: 24px 0 8px; }
.plan-line { display: flex; align-items: center; gap: 8px; margin: 12px 4px 0; font-size: 13px; color: var(--cr-muted); text-decoration: none; }
.plan-line:hover { color: var(--cr-text); }
.plan-line.is-ended { color: var(--cr-down); }
.sidebar.is-collapsed .plan-line { justify-content: center; margin-left: 0; margin-right: 0; }
.admin-count { font-family: "Bricolage Grotesque", sans-serif; font-size: 30px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.app-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.app-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border: 1px solid var(--cr-border); border-radius: 12px; background: var(--cr-panel); color: var(--cr-text); font: inherit; font-size: 14px; font-weight: 600; line-height: 1.2; text-align: left; text-decoration: none; cursor: pointer; }
.app-badge:hover { border-color: var(--cr-muted); color: var(--cr-text); }
.app-badge i { font-size: 22px; width: 22px; text-align: center; }
.app-badge small { display: block; font-size: 11px; font-weight: 500; color: var(--cr-muted); }
.project-card { display: flex; flex-direction: column; gap: 12px; color: var(--cr-text); text-decoration: none; transition: border-color .15s ease; }
.project-card:hover { border-color: var(--cr-muted); color: var(--cr-text); }
.project-head { display: flex; align-items: center; gap: 12px; }
.project-name { font-weight: 600; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--cr-panel); border: 1px solid var(--cr-border); border-radius: 14px; }
.faq-item summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 22px; font-weight: 600; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--cr-muted); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item summary:focus-visible { outline: 2px solid var(--cr-accent); outline-offset: 2px; border-radius: 14px; }
.faq-answer { padding: 0 22px 8px; color: var(--cr-muted); }
.faq-answer strong { color: var(--cr-text); font-weight: 600; }
.faq-answer a { color: var(--cr-accent); }
.faq-item { scroll-margin-top: 84px; }

/* Guides and about */
.guide-crumbs { font-size: 14px; margin-bottom: 10px; }
.guide-crumbs a { color: var(--cr-muted); text-decoration: none; }
.guide-crumbs a::before { content: "\2190"; margin-right: 6px; }
.guide-crumbs a:hover { color: var(--cr-text); }
.site-main .guide { padding-top: 32px; }
.page-head .sub a { color: var(--cr-muted); }
.guide-summary { color: var(--cr-text); font-size: 17px; }
.legal-body h2[id] { scroll-margin-top: 84px; }
.guide-table { margin: 8px 0 20px; }
.guide-table td { vertical-align: top; }
.guide-sources { font-size: 14px; }
.guide-cta { margin-top: 24px; }
.guide-cta .btn + .btn { margin-left: 8px; }
.guide-more { font-size: clamp(22px, 2.6vw, 28px); margin: 48px 0 18px; }

/* Dashboard widgets: chrome and edit mode (drag, settings, remove) */
.widget { position: relative; }
.widget-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.widget-period { color: var(--cr-faint); font-size: 12px; font-weight: 500; white-space: nowrap; }
.panel-title .widget-period { margin-left: 6px; }
.widget-tools { display: none; position: absolute; top: 12px; right: calc(var(--bs-gutter-x) * .5 + 12px); z-index: 3; gap: 6px; }
.widget-tool { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--cr-border); background: var(--cr-panel-2); color: var(--cr-muted); display: inline-flex; align-items: center; justify-content: center; padding: 0; transition: color .15s ease, border-color .15s ease; }
.widget-tool:hover { color: var(--cr-text); border-color: #3a403c; }
.widget-tool:focus-visible { outline: 2px solid var(--cr-accent); outline-offset: 2px; }
.widget-handle { cursor: grab; touch-action: none; }
.widget-remove:hover { color: var(--cr-down); }
.dashboard-edit-actions, .dashboard-edit-hint { display: none; }
.dashboard-editing .dashboard-edit-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.dashboard-editing .dashboard-edit-hint { display: block; }
.dashboard-editing .dashboard-view-actions { display: none !important; }
.dashboard-editing .widget-tools { display: flex; }
.dashboard-editing .widget > .panel { border-style: dashed; padding-top: 58px; }
.dashboard-editing .widget a.source-card { pointer-events: none; }
.widget.is-dragging > .panel { opacity: .45; border-color: var(--cr-accent); }
.widget.is-dragging .widget-handle { cursor: grabbing; }
.dashboard-view-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.is-dragging-widget, .is-dragging-widget * { user-select: none; cursor: grabbing !important; }
.dashboard-editing .widget > .panel { user-select: none; }
