/* RouteHash shared visual language. Page templates add layout-specific rules after this file. */
:root {
    --rh-bg: #0b0f19;
    --rh-surface: #111827;
    --rh-surface-raised: #162235;
    --rh-input: #030712;
    --rh-border: #1f2937;
    --rh-border-strong: #334155;
    --rh-text: #e2e8f0;
    --rh-heading: #f8fafc;
    --rh-muted: #94a3b8;
    --rh-subtle: #64748b;
    --rh-blue: #2563eb;
    --rh-blue-bright: #38bdf8;
    --rh-green: #34d399;
    --rh-amber: #fbbf24;
    --rh-red: #f87171;
    --rh-radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0;
    padding: 24px;
    background: var(--rh-bg);
    color: var(--rh-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
button, input, select, textarea {
    font: inherit;
}
button, input, select, textarea {
    border: 1px solid var(--rh-border-strong);
    border-radius: var(--rh-radius);
}
button {
    min-height: 40px;
    padding: 0 14px;
    background: var(--rh-blue);
    color: #fff;
    font-weight: 650;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
button:hover { background: #1d4ed8; }
button:disabled { cursor: not-allowed; opacity: .5; }
input, select, textarea {
    min-height: 40px;
    padding: 0 12px;
    background: var(--rh-input);
    color: var(--rh-heading);
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--rh-blue-bright);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, .12);
}
a { color: #93c5fd; }
.rh-panel, .panel {
    background: var(--rh-surface);
    border: 1px solid var(--rh-border);
    border-radius: var(--rh-radius);
}
.rh-muted, .muted { color: var(--rh-subtle); }
.rh-status { font-weight: 700; }
.rh-status-good { color: var(--rh-green); }
.rh-status-warn { color: var(--rh-amber); }
.rh-status-bad { color: var(--rh-red); }
.rh-button-secondary { background: #1e293b; border-color: var(--rh-border-strong); color: #cbd5e1; }
.rh-button-secondary:hover { background: #334155; color: #fff; }
.rh-button-danger { background: #4d1d25; border-color: #7f1d1d; color: #fecdd3; }
.rh-button-danger:hover { background: #7f1d1d; }
.rh-table-wrap { overflow: auto; border: 1px solid var(--rh-border); border-radius: var(--rh-radius); }
.rh-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12px; }
.rh-table th, .rh-table td { padding: 12px; border-bottom: 1px solid #1d2a3d; text-align: left; vertical-align: middle; }
.rh-table th { background: #101a2a; color: #7890ad; font-size: 10px; letter-spacing: .7px; text-transform: uppercase; }
.rh-table tbody tr:hover { background: #111f32; }
.rh-table tbody tr:last-child td { border-bottom: 0; }

#rh-notify-root {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 10030;
    font: 12px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
#rh-notify-toggle {
    position: relative;
    width: 40px;
    min-height: 40px;
    padding: 0;
    border-radius: 50%;
    background: #111827;
    border: 1px solid #334155;
    color: #e2e8f0;
    font-size: 16px;
}
#rh-notify-toggle:hover { background: #1e293b; }
#rh-notify-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 99px;
    background: #dc2626;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    align-items: center;
    justify-content: center;
    display: none;
}
#rh-notify-badge.has-unread {
    display: flex;
}
#rh-notify-panel {
    display: none;
    position: absolute;
    top: 46px;
    right: 0;
    width: min(360px, calc(100vw - 24px));
    max-height: 420px;
    overflow: auto;
    background: #111827;
    border: 1px solid #334155;
    border-radius: 10px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}
#rh-notify-panel.open { display: block; }
#rh-notify-panel header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid #1f2937;
    font-weight: 700;
    color: #f8fafc;
}
#rh-notify-panel header button {
    min-height: 28px;
    padding: 0 8px;
    font-size: 11px;
    background: #1e293b;
}
.rh-notify-item {
    display: block;
    padding: 10px 12px;
    border-bottom: 1px solid #1d2a3d;
    color: #cbd5e1;
    text-decoration: none;
}
.rh-notify-item:hover { background: #162235; }
.rh-notify-item.unread { background: rgba(37, 99, 235, .12); }
.rh-notify-item strong { display: block; color: #f8fafc; margin-bottom: 3px; }
.rh-notify-empty { padding: 16px 12px; color: #64748b; }

/* Compact wallet/deposit pattern used across financial and operational panels. */
.compact-wallet-panel { padding: 12px; }
.compact-wallet-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--rh-border-strong); padding-bottom: 8px; }
.compact-wallet-header h2 { margin: 0; font-size: 18px; }
.compact-metrics { display: flex; gap: 8px; }
.compact-metrics > div { background: rgba(0,0,0,.25); border: 1px solid var(--rh-border-strong); border-radius: 6px; padding: 4px 10px; text-align: right; }
.compact-metrics span { display: block; color: var(--rh-muted); font-size: 10px; }
.compact-metrics strong { color: var(--rh-blue-bright); font-size: 14px; font-family: ui-monospace, monospace; }
.compact-metrics > div:last-child strong { color: var(--rh-green); }
.compact-toolbar { display: flex; gap: 8px; align-items: end; margin-top: 10px; }
.compact-toolbar > div { flex: 1; }
.compact-toolbar label { display: block; color: var(--rh-muted); font-size: 11px; margin-bottom: 3px; }
.compact-toolbar input, .compact-toolbar select { width: 100%; }
.compact-toolbar button { flex: 0 0 24%; font-weight: 650; }
.compact-result { margin-top: 10px; border: 1px solid #059669; border-radius: 7px; padding: 10px; }
.compact-address-header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.compact-address-header strong { color: var(--rh-green); font-size: 13px; }
.compact-warning { margin: 8px 0; padding: 7px 9px; background: #422006; border: 1px solid #f59e0b; border-radius: 5px; color: #fde68a; font-size: 12px; }
.compact-warning a { color: #fef3c7; }
.compact-address-row { display: flex; gap: 8px; }
.compact-address-row input { flex: 1; min-width: 0; font-family: monospace; color: #67e8f9; }
.compact-address-row button, .compact-check { background: transparent; border: 1px solid var(--rh-blue-bright); color: #bae6fd; padding: 6px 9px; border-radius: 5px; white-space: nowrap; }
.compact-actions { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.compact-actions small { color: var(--rh-muted); }
.renter-portal-nav { position: sticky; top: 10px; z-index: 20; display: flex; gap: 5px; flex-wrap: wrap; margin: 16px 0 22px; padding: 6px; background: rgba(15, 23, 38, .94); border: 1px solid var(--rh-border-strong); border-radius: 9px; box-shadow: 0 8px 22px rgba(0,0,0,.2); backdrop-filter: blur(10px); }
.renter-portal-nav a { color: var(--rh-muted); text-decoration: none; padding: 8px 12px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.renter-portal-nav a:hover, .renter-portal-nav a.active { color: #fff; background: #1e3a5f; }
.renter-section-heading { color: var(--rh-heading); font-size: 15px; letter-spacing: .3px; }
.renter-section-panel { border-color: #263b55; }
.renter-help-accordion { margin: 10px 0; border-radius: 7px; background: rgba(15, 23, 42, .55); color: #cbd5e1; }
.renter-help-accordion summary { cursor: pointer; list-style: none; padding: 11px 13px; color: var(--rh-blue-bright); font-size: 12px; font-weight: 750; }
.renter-help-accordion summary::-webkit-details-marker { display: none; }
.renter-help-accordion summary::before { content: '▸'; display: inline-block; margin-right: 8px; color: var(--rh-muted); transition: transform .15s ease; }
.renter-help-accordion[open] summary::before { transform: rotate(90deg); }
.renter-help-copy { padding: 0 13px 13px; color: #cbd5e1; font-size: 12px; line-height: 1.5; }
.renter-help-copy h4 { margin: 14px 0 6px; color: #f8fafc; font-size: 12px; font-weight: 700; }
.renter-help-copy h4:first-child { margin-top: 4px; }
.renter-help-copy p { margin: 0 0 8px; }
.renter-help-copy ol, .renter-help-copy ul { margin: 4px 0 10px 18px; padding: 0; }
.renter-help-copy li { margin-bottom: 6px; }
.renter-help-copy ul ul { margin: 6px 0 4px 16px; }
.renter-help-copy .help-callout { background: #0f172a; border: 1px solid #1e3a5f; border-radius: 6px; padding: 8px 10px; margin: 8px 0; color: #bae6fd; }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }
.rh-input-group { display: flex; flex-wrap: nowrap; align-items: stretch; }
.rh-input-group-addon { display: flex; align-items: center; padding: 0 10px; background: #1e293b; border: 1px solid var(--rh-border-strong); border-right: none; border-radius: var(--rh-radius) 0 0 var(--rh-radius); color: var(--rh-muted); font-size: 12px; white-space: nowrap; }
.rh-input-group input { flex: 1; min-width: 0; border-radius: 0 var(--rh-radius) var(--rh-radius) 0; }
html { scroll-padding-top: 82px; }
@media (max-width: 720px) { .compact-toolbar { align-items: stretch; flex-direction: column; } .compact-toolbar button { flex-basis: auto; width: 100%; } .compact-address-row { flex-direction: column; } }
@media (max-width: 720px) { .renter-portal-nav { overflow-x: auto; flex-wrap: nowrap; } .renter-portal-nav a { white-space: nowrap; } }
@media (max-width: 720px) { body { padding: 14px; } }

/* Public marketing landings for anonymous /owner and /renter, plus staff-gated /admin. */
body.mkt-body {
    padding: 0;
    min-height: 100vh;
    background:
        radial-gradient(1200px 600px at 12% -10%, rgba(56, 189, 248, .16), transparent 55%),
        radial-gradient(900px 500px at 100% 0%, rgba(16, 185, 129, .12), transparent 50%),
        linear-gradient(180deg, #070b14 0%, #0b0f19 40%, #080c16 100%);
    color: var(--rh-text);
}
body.mkt-body.mkt-forbidden {
    background:
        radial-gradient(900px 480px at 50% -8%, rgba(220, 38, 38, .18), transparent 55%),
        radial-gradient(700px 400px at 100% 20%, rgba(245, 158, 11, .1), transparent 50%),
        linear-gradient(180deg, #140808 0%, #0b0f19 45%, #080c16 100%);
}
.mkt-grid-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(56, 189, 248, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, .045) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at 50% 20%, #000 30%, transparent 78%);
}
.mkt-shell {
    position: relative;
    max-width: 1080px;
    margin: 0 auto;
    padding: 22px 22px 72px;
}
.mkt-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(51, 65, 85, .7);
}
.mkt-brand {
    color: #f8fafc;
    font-weight: 800;
    letter-spacing: .4px;
    text-decoration: none;
    font-size: 18px;
}
.mkt-nav-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.mkt-nav-actions a, .mkt-nav-actions button {
    height: 36px;
    padding: 0 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    width: auto;
    min-height: 36px;
}
.mkt-nav-ghost {
    background: #1e293b;
    color: #cbd5e1;
    border-color: #334155;
}
.mkt-nav-ghost:hover { background: #334155; color: #fff; }
.mkt-hero { padding: 48px 0 28px; }
.mkt-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: #67e8f9;
    margin-bottom: 14px;
}
.mkt-eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22d3ee;
    box-shadow: 0 0 0 4px rgba(34, 211, 238, .15);
}
.mkt-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(28px, 4.4vw, 46px);
    line-height: 1.12;
    color: #f8fafc;
    letter-spacing: -.4px;
    max-width: 18em;
}
.mkt-lead {
    margin: 0;
    max-width: 62ch;
    color: #94a3b8;
    font-size: 16px;
    line-height: 1.6;
}
.mkt-cta-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 24px;
}
.mkt-cta-row button, .mkt-cta-row a {
    width: auto;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 8px;
    font-weight: 750;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.mkt-cta-secondary {
    background: transparent;
    color: #e2e8f0;
    border-color: #334155;
}
.mkt-cta-secondary:hover { background: #1e293b; }
.mkt-spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
    margin: 10px 0 28px;
}
.mkt-card {
    background: rgba(17, 24, 39, .82);
    border: 1px solid #1f2937;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}
.mkt-card h2 {
    margin: 0 0 8px;
    font-size: 15px;
    color: #f8fafc;
}
.mkt-card p {
    margin: 0;
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.55;
}
.mkt-card code, .mkt-terminal code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    color: #67e8f9;
    font-size: 12px;
}
.mkt-split {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 18px;
    align-items: stretch;
}
.mkt-terminal {
    background: #030712;
    border: 1px solid #1e3a5f;
    border-radius: 12px;
    padding: 16px 18px;
    color: #7dd3fc;
    font: 12.5px/1.65 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    box-shadow: inset 0 0 0 1px rgba(56, 189, 248, .08);
}
.mkt-terminal .mkt-term-title {
    color: #64748b;
    font-size: 11px;
    letter-spacing: .8px;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.mkt-footnote {
    margin-top: 28px;
    color: #64748b;
    font-size: 12px;
}
.mkt-forbidden-card {
    max-width: 640px;
    margin: 72px auto 0;
    text-align: center;
    padding: 36px 28px 32px;
    background: rgba(17, 24, 39, .9);
    border: 1px solid #7f1d1d;
    border-radius: 16px;
    box-shadow: 0 0 0 1px rgba(251, 191, 36, .08), 0 24px 60px rgba(127, 29, 29, .25);
    position: relative;
    overflow: hidden;
}
.mkt-forbidden-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 8px;
    background: repeating-linear-gradient(
        45deg,
        #f59e0b 0 12px,
        #111827 12px 24px
    );
}
.mkt-lock {
    width: 64px;
    height: 64px;
    margin: 10px auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: rgba(127, 29, 29, .4);
    border: 1px solid #b91c1c;
    box-shadow: 0 0 24px rgba(220, 38, 38, .25);
}
.mkt-forbidden-card h1 {
    margin: 0 0 10px;
    font-size: 28px;
    color: #fee2e2;
}
.mkt-forbidden-card p {
    margin: 0 auto 12px;
    max-width: 52ch;
    color: #cbd5e1;
    line-height: 1.6;
}
.mkt-discord {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 8px;
    background: #5865f2;
    border-color: #5865f2;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    width: auto;
}
.mkt-discord:hover { background: #4752c4; }
@media (max-width: 800px) {
    .mkt-split { grid-template-columns: 1fr; }
    .mkt-hero { padding-top: 28px; }
    .mkt-hero h1 { max-width: none; }
}
