:root {
    --bg: #050508;
    --panel: #10131d;
    --muted: #92a0b8;
    --text: #f7faff;
    --line: #24314a;
    --brand: #6366f1;
    --green: #22c55e;
}
* { box-sizing: border-box; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.mavex-tagline .mavex-inline-stripe,
.mavex-tagline .mavex-inline-circle {
    height: 0.92em;
    width: auto;
    vertical-align: -0.14em;
    margin: 0;
}
.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    vertical-align: baseline;
    white-space: nowrap;
}
.quote-meta-left .brand-lockup {
    vertical-align: middle;
}
.brand-lockup-label {
    font-size: 13px;
    font-weight: 700;
    color: #e2e8f0;
    letter-spacing: 0.01em;
}
.brand-lockup .brand-logo-inline {
    margin: 0;
    vertical-align: middle;
}
body {
    margin: 0;
    font-family: Inter, sans-serif;
    background: var(--bg);
    color: var(--text);
}
.shell {
    max-width: 980px;
    margin: 22px auto 50px;
    padding: 0 16px;
}
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid #162032;
    background: #0a0d14;
}
.top-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}
.top-brand-logo {
    color: #5eead4;
    font-size: 12px;
    line-height: 1;
}
.top-brand-logo-img {
    width: 26px;
    height: 26px;
    border-radius: 4px;
    object-fit: cover;
    display: block;
}
.top-brand-logo-svg {
    width: 26px;
    height: 26px;
    display: block;
}
.top-brand-name {
    color: #e5e7eb;
    font-weight: 800;
    letter-spacing: 0.02em;
    font-size: 14px;
}
.top-nav-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    overflow: visible;
}
.top-nav-btn {
    text-decoration: none;
    border: 1px solid #334155;
    color: #dbeafe;
    background: #0f172a;
    border-radius: 7px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
}
.top-nav-btn:hover {
    border-color: #6366f1;
    color: #e0e7ff;
}
.ticker-wrap {
    display: grid;
    grid-template-columns: 160px 1fr auto;
    border-bottom: 1px solid #162032;
    border-top: 1px solid #162032;
    background: #070a12;
}
.ticker-label {
    padding: 9px 12px;
    color: #5eead4;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    border-right: 1px solid #162032;
}
.ticker-track {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: #bdd7ff;
    font-size: 13px;
    padding: 9px 12px 9px 10px;
}
.ticker-live-pill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #86efac;
    text-transform: uppercase;
    user-select: none;
}
.ticker-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
    animation: ticker-live-pulse 1.6s ease-out infinite, ticker-live-blink 1.1s ease-in-out infinite;
}
@keyframes ticker-live-pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); }
    70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
@keyframes ticker-live-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}
.ticker-scroll {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}
.ticker-rail {
    font-weight: 700;
    color: #93c5fd;
}
.ticker-rail--stripe {
    color: #a78bfa;
}
.ticker-corridor,
.ticker-bracket {
    font-weight: 700;
    color: #e2e8f0;
}
.ticker-pct {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.ticker-pct--market-up {
    color: #4ade80;
}
.ticker-pct--market-down {
    color: #f87171;
}
.ticker-pct--efficiency {
    color: #7dd3fc;
}
.ticker-pct--soft.ticker-pct--market-up,
.ticker-pct--soft.ticker-pct--market-down {
    opacity: 0.85;
    font-weight: 600;
}
.ticker-share {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 6px 10px;
    border-left: 1px solid #162032;
}
.share-btn {
    border: 1px solid #5eead4;
    background: #5eead4;
    color: #062826;
    border-radius: 7px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.share-btn svg {
    width: 16px;
    height: 16px;
}
.share-btn:hover {
    border-color: #7ff5e2;
    background: #7ff5e2;
    color: #031e1c;
}
/* Duplicated segments + translateX(-50%) = seamless loop; duration set in JS from text length. */
.ticker-scroll .ticker-marquee {
    display: inline-flex;
    flex-wrap: nowrap;
    width: max-content;
    will-change: transform;
    animation: ticker-marquee 150s linear infinite;
}
.ticker-scroll .ticker-seg {
    display: inline-block;
    white-space: nowrap;
    flex: 0 0 auto;
}
.ticker-scroll .ticker-gap {
    display: inline;
}
.ticker-scroll .ticker-chunk {
    cursor: help;
}
.ticker-scroll .ticker-static {
    display: inline-block;
    white-space: nowrap;
}
.ticker-track:hover .ticker-marquee {
    animation-play-state: paused;
}
@keyframes ticker-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin: 18px 0;
}
.hero h1 { margin: 0 0 4px; font-size: 34px; }
.hero p { margin: 0; color: var(--muted); }
.hero .mavex-tagline { margin-top: 6px; margin-bottom: 0; line-height: 1.45; color: var(--muted); font-size: 0.95rem; }
.hero-actions { display: flex; gap: 10px; }
.btn {
    text-decoration: none;
    color: #fff;
    background: var(--brand);
    border: 1px solid #7c83ff;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
}
.btn.ghost { background: transparent; border-color: #334155; color: #dbeafe; }
.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 16px 16px;
    margin-bottom: 14px;
}
.card-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}
.card h2 { margin: 0; font-size: 15px; }
.card small { color: var(--muted); }
.quote-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr 1fr;
}
label span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #263249;
    background: #090d16;
    color: #fff;
    font-weight: 700;
}
.receive-box {
    border: 1px solid #24314a;
    border-radius: 8px;
    background: #090d16;
    padding: 10px 12px;
}
.receive-box span { display:block; color:var(--muted); font-size: 12px; }
.receive-box strong { font-size: 30px; line-height: 1.2; color: #86efac; }
.quote-meta-strip {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #1f2a3c;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}
.quote-meta-left { color: #b8c6df; }
.muted-inline { color: #91a0bb; }
.brand-stripe { color: #ffffff; }
.brand-circle { color: #ffffff; }
.dot { color: #3a4a68; padding: 0 6px; }
.brand-logo-inline {
    height: 16px;
    width: auto;
    vertical-align: -3px;
    margin: 0 6px 0 4px;
}
.provider-cell {
    display: inline-grid;
    grid-template-columns: auto auto;
    align-items: center;
    column-gap: 5px;
    justify-content: start;
}
.provider-logo {
    height: 17px;
    width: auto;
    max-width: 52px;
    object-fit: contain;
    object-position: left center;
    display: block;
}
.quote-meta-right {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 10px;
    justify-content: flex-end;
    text-align: right;
}
.live-rate-label {
    color: #4ade80;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.live-rate-value {
    color: #e2e8f0;
    font-weight: 600;
    font-size: 13px;
}
.cmp-table { width: 100%; border-collapse: collapse; }
.cmp-table th, .cmp-table td {
    border-top: 1px solid #1f2a3c;
    padding: 10px 8px;
    font-size: 13px;
}
.cmp-table th { color: var(--muted); text-align: left; font-size: 12px; }
.cmp-table th:last-child,
.cmp-table td:last-child {
    text-align: center;
}
.cmp-table td.cmp-action-cell {
    vertical-align: middle;
}
.send-btn {
    border: 1px solid #1a6f3e;
    background: #15803d;
    color: #f0fdf4;
    font-weight: 700;
    border-radius: 7px;
    padding: 6px 10px;
    min-width: 118px;
    cursor: pointer;
}
.send-btn[disabled] {
    border-color: #334155;
    background: #1e293b;
    color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.9;
}
.intel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.intel-chip {
    border: 1px solid #223047;
    border-radius: 10px;
    padding: 10px 12px;
    background: #0a0f1a;
}
.intel-chip h3 { margin: 0 0 6px; font-size: 12px; color: #93c5fd; text-transform: uppercase; }
.intel-chip p { margin: 0; color: #ecfeff; font-weight: 600; font-size: 14px; }
.intel-premium {
    border: 1px solid rgba(34, 197, 94, 0.45);
    border-radius: 10px;
    padding: 12px 14px;
    background: linear-gradient(180deg, rgba(22, 101, 52, 0.28), rgba(20, 83, 45, 0.22));
}
.intel-premium p {
    margin: 0;
    color: #dcfce7;
    font-weight: 700;
    font-size: 14px;
}
.muted { color: var(--muted); text-align: center; }
.good { color: var(--green); font-weight: 700; }
@media (max-width: 820px) {
    .ticker-wrap { grid-template-columns: 1fr; }
    .ticker-label { border-right: 0; border-bottom: 1px solid #162032; }
    .ticker-share {
        border-left: 0;
        border-top: 1px solid #162032;
        justify-content: flex-start;
    }
    .quote-grid, .intel-grid { grid-template-columns: 1fr; }
    .hero { flex-direction: column; align-items: flex-start; }
    .top-nav {
        flex-direction: column;
        align-items: flex-start;
    }
    .quote-meta-strip {
        flex-direction: column;
        align-items: flex-start;
    }
}

.shell > footer .mavex-rails-attribution {
    justify-content: center;
    width: 100%;
    margin: 0 0 14px;
    font-size: 0.82rem;
    color: #94a3b8;
}
