/* ─────────────────────────────────────────
   CSS VARIABLES — light theme
   ALL legacy var names preserved so every
   JS-rendered inline style resolves correctly:
   var(--coral), var(--coral-d), var(--coral-b),
   var(--navy), var(--teal), var(--green),
   var(--red), var(--amber), var(--slate),
   var(--text0..3), var(--bg1/2), var(--surface),
   var(--border/2), var(--outfit), var(--mono)
───────────────────────────────────────── */
:root {
    /* Surfaces */
    --cream:    #f5f9f8;
    --bg1:      #eaf4f1;
    --bg2:      #e1f5ee;
    --surface:  #ffffff;

    /* Brand dark — used in hero, raw card, timeline head, ip-head */
    --navy:     #0e2d27;
    --navy2:    #1a4a3d;

    /* Brand accent — coral replaced with site brand green */
    --coral:    #4eb39a;
    --coral2:   #3a9b83;
    --coral-d:  rgba(78,179,154,0.08);
    --coral-b:  rgba(78,179,154,0.2);

    /* Semantic colours — preserved exactly (used in JS renders) */
    --teal:     #0891b2;
    --teal-d:   rgba(8,145,178,0.08);
    --green:    #16a34a;
    --green-d:  rgba(22,163,74,0.08);
    --red:      #dc2626;
    --red-d:    rgba(220,38,38,0.08);
    --amber:    #d97706;
    --amber-d:  rgba(217,119,6,0.08);
    --slate:    #64748b;

    /* Borders */
    --border:   rgba(78,179,154,0.18);
    --border2:  rgba(78,179,154,0.32);

    /* Text — used in JS inline styles */
    --text0:    #1a2e2b;
    --text1:    #334155;
    --text2:    #5f7a74;
    --text3:    #94aaa6;

    /* Font stacks — DM Sans/Mono loaded by header.php */
    --outfit:   'DM Sans', sans-serif;
    --mono:     'DM Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Freshness strip — sits above the hero, small and unobtrusive */
.ctr-updated-strip {
    background: var(--navy2);
    border-bottom: 1px solid rgba(78,179,154,0.15);
    padding: 6px 2rem;
    text-align: center;
}
.ctr-updated-text {
    font-family: var(--mono); font-size: 0.65rem; color: rgba(255,255,255,0.55);
    display: inline-flex; align-items: center; gap: 6px; letter-spacing: .01em;
}
.ctr-updated-text svg { flex-shrink: 0; opacity: .8; }
.ctr-updated-text time { color: #6fd1b3; font-weight: 600; }
@media (max-width: 768px){ .ctr-updated-strip{ padding: 6px 1rem; } .ctr-updated-text{ text-align:left; } }

.ctr-page {
    font-family: 'DM Sans', sans-serif;
    background: var(--cream);
    min-height: 100vh;
    color: var(--text0);
}

/* ─────────────────────────────────────────
   HERO — dark gradient matching site pattern
   (replaces .ctr-header + .ctr-hero)
───────────────────────────────────────── */
.ctr-hero {
    background: linear-gradient(145deg, #0e2d27 0%, #1a4a3d 60%, #0e3530 100%);
    border-bottom: 1px solid rgba(78,179,154,0.2);
    padding: 2.25rem 2rem 2rem;
    position: relative;
    overflow: hidden;
}
.ctr-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 50% 80% at 75% 50%, rgba(78,179,154,0.08) 0%, transparent 65%);
    pointer-events: none;
}
.ctr-hero::after {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, #4eb39a, #3a9b83, #4eb39a, transparent);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}
@keyframes shimmer { 0%{background-position:200%} 100%{background-position:-200%} }

.ctr-hero-inner {
    max-width: 1200px; margin: 0 auto; position: relative; z-index: 1;
    display: grid; grid-template-columns: 1fr 320px;
    gap: 3rem; align-items: center;
}

/* Badges in hero */
.ctr-header-pills {
    display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: .9rem;
}
.h-pill {
    font-family: var(--mono); font-size: 0.62rem; font-weight: 500;
    padding: 3px 10px; border-radius: 4px; border: 1px solid;
    letter-spacing: .05em; text-transform: uppercase;
}
.hp-coral { color: #6fd1b3; border-color: rgba(111,209,179,.3); background: rgba(78,179,154,0.1); }
.hp-teal  { color: #6fd1b3; border-color: rgba(111,209,179,.25); background: rgba(78,179,154,0.08); }

/* Hero text */
.ctr-hero-kicker {
    font-family: var(--mono); font-size: 0.65rem; color: #6fd1b3;
    letter-spacing: .12em; text-transform: uppercase;
    margin-bottom: .6rem; display: flex; align-items: center; gap: 8px; opacity: .9;
}
.ctr-hero-kicker::before { content: '//'; opacity: .5; }

.ctr-hero h1, .ctr-hero h2 {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    font-weight: 700; color: #fff; line-height: 1.1;
    letter-spacing: -.02em; margin-bottom: .5rem;
}
.ctr-hero h1 em, .ctr-hero h2 em { font-style: normal; color: #6fd1b3; }
.ctr-hero p { font-size: 0.875rem; color: rgba(255,255,255,0.5); line-height: 1.8; max-width: 480px; }
.ctr-hero-feats { display: flex; flex-direction: column; gap: 6px; margin-top: 1rem; }
.ctr-feat {
    display: flex; align-items: center; gap: 8px;
    font-family: var(--mono); font-size: 0.65rem; color: rgba(255,255,255,0.4);
}
.ctr-feat::before { content: '▸'; color: #6fd1b3; font-size: 0.55rem; }

/* Stats panel inside hero */
.ctr-hero-stats {
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(78,179,154,0.2);
    border-radius: 12px; padding: 1.25rem; display: none;
    backdrop-filter: blur(4px);
}
.ctr-hero-stats.show { display: block; }
.ctr-hero-stats-title {
    font-family: var(--mono); font-size: 0.6rem; color: #6fd1b3;
    letter-spacing: .1em; text-transform: uppercase; margin-bottom: .9rem;
}
.hero-stat-rows { display: flex; flex-direction: column; gap: 5px; }
.hero-stat-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,.05);
}
.hero-stat-row:last-child { border-bottom: none; }
.hsr-key { font-family: var(--mono); font-size: 0.65rem; color: rgba(255,255,255,0.4); }
.hsr-val { font-family: var(--mono); font-size: 0.72rem; font-weight: 500; color: #fff; }
/* These classes are set dynamically via r.cls in JS — must match exactly */
.hsr-val.coral { color: #6fd1b3; }
.hsr-val.teal  { color: #6fd1b3; }
.hsr-val.amber { color: #fcd34d; }

/* ─────────────────────────────────────────
   MAIN LAYOUT
───────────────────────────────────────── */
.ctr-main { max-width: 1200px; margin: 0 auto; padding: 2rem; }

/* ─────────────────────────────────────────
   INPUT PANEL
───────────────────────────────────────── */
.input-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transition: box-shadow .2s;
}
.input-panel:hover { box-shadow: 0 4px 18px rgba(0,0,0,0.08); }

/* ip-head uses --navy background — kept dark for contrast */
.ip-head {
    background: var(--navy);
    padding: .9rem 1.5rem;
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; flex-wrap: wrap;
}
.ip-title {
    font-family: var(--mono); font-size: 0.68rem; font-weight: 600;
    color: #6fd1b3; letter-spacing: .08em; text-transform: uppercase;
    display: flex; align-items: center; gap: 8px;
}
.ip-title svg { width: 14px; height: 14px; stroke: currentColor; fill: none; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ip-foot — same dark treatment as ip-head, holds the action buttons below the
   input body so the flow reads: paste/drop → samples → act, not act-first. */
.ip-foot {
    background: var(--navy);
    padding: .9rem 1.5rem;
    border-top: 1px solid rgba(78,179,154,0.15);
    display: flex; align-items: center; justify-content: flex-end;
    gap: 1rem; flex-wrap: wrap;
}

.btn-primary {
    background: #4eb39a; border: none; border-radius: 8px;
    padding: 9px 22px; font-family: 'DM Sans', sans-serif;
    font-size: 0.875rem; font-weight: 700; color: #0e2d27;
    cursor: pointer; transition: background .15s, transform .12s;
    display: inline-flex; align-items: center; gap: 8px; letter-spacing: -.01em;
}
.btn-primary:hover { background: #3a9b83; transform: translateY(-1px); }
.btn-primary:active { transform: scale(.98); }
.btn-primary svg { width: 15px; height: 15px; stroke: currentColor; fill: none; }

/* btn-ghost — inside dark ip-head, keep contrast */
.btn-ghost {
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
    border-radius: 8px; padding: 9px 16px; font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem; font-weight: 600; color: rgba(255,255,255,.7);
    cursor: pointer; transition: background .15s, color .15s;
    display: inline-flex; align-items: center; gap: 7px;
}
.btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff; }
.btn-ghost svg { width: 14px; height: 14px; stroke: currentColor; fill: none; }

/* btn-light — used in raw-card (dark context), keep semi-transparent */
.btn-light {
    background: var(--cream); border: 1px solid var(--border2);
    border-radius: 8px; padding: 8px 14px; font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem; font-weight: 500; color: var(--text2);
    cursor: pointer; transition: border-color .15s, color .15s;
    display: inline-flex; align-items: center; gap: 6px;
}
.btn-light:hover { border-color: #4eb39a; color: #3a9b83; }
.btn-light svg { width: 13px; height: 13px; stroke: currentColor; fill: none; }

.ip-body { padding: 1.25rem 1.5rem; }

/* Drop zone */
.drop-zone {
    border: 2px dashed var(--border2); border-radius: 12px;
    padding: 1.75rem 2rem; text-align: center; cursor: pointer;
    transition: all .2s; position: relative; background: var(--bg1); margin-bottom: 1rem;
}
.drop-zone:hover, .drop-zone.drag { border-color: #4eb39a; background: var(--coral-d); }
.drop-zone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dz-icon {
    width: 40px; height: 40px; background: var(--coral-d); border: 1px solid var(--coral-b);
    border-radius: 10px; display: flex; align-items: center; justify-content: center; margin: 0 auto .75rem;
}
.dz-icon svg { width: 20px; height: 20px; stroke: #3a9b83; fill: none; }
.drop-zone h3 { font-size: 0.9rem; font-weight: 700; color: var(--text0); margin-bottom: 3px; }
.drop-zone p  { font-family: var(--mono); font-size: 0.68rem; color: var(--text2); }

/* OR divider */
.or-row {
    display: flex; align-items: center; gap: 1rem;
    font-family: var(--mono); font-size: 0.68rem; color: var(--text3); margin: .75rem 0;
}
.or-row::before, .or-row::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* Textarea — keep dark for JSON legibility */
.ctr-textarea {
    width: 100%; min-height: 200px;
    background: var(--navy); border: 1px solid rgba(78,179,154,.15);
    border-radius: 12px; padding: 1rem 1.1rem;
    font-family: var(--mono); font-size: 0.75rem; color: #e2e8f0;
    resize: vertical; outline: none; line-height: 1.65; tab-size: 2;
    transition: border-color .2s;
}
.ctr-textarea::placeholder { color: rgba(255,255,255,.2); }
.ctr-textarea:focus { border-color: rgba(78,179,154,.4); }

/* Sample row */
.sample-row {
    display: flex; gap: 8px; margin-top: .75rem; flex-wrap: wrap; align-items: center;
}
.sample-lbl { font-family: var(--mono); font-size: 0.68rem; color: var(--text3); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.sample-btn {
    font-family: var(--mono); font-size: 0.68rem; font-weight: 500;
    padding: 4px 12px; border-radius: 5px;
    border: 1px solid var(--border2); background: var(--bg1); color: var(--text2);
    cursor: pointer; transition: all .15s;
}
.sample-btn:hover { border-color: #4eb39a; color: #3a9b83; background: var(--coral-d); }

/* ─────────────────────────────────────────
   RESULTS
───────────────────────────────────────── */
#ctr-results { display: none; }

/* Anomaly banner */
.anomaly-banner {
    background: #fff8f5; border: 1px solid var(--coral-b);
    border-left: 4px solid #4eb39a; border-radius: 0 12px 12px 0;
    padding: 1rem 1.25rem; margin-bottom: 1.5rem;
    display: flex; gap: 1rem; align-items: flex-start;
}
.anomaly-banner svg { width: 18px; height: 18px; stroke: #3a9b83; fill: none; flex-shrink: 0; margin-top: 1px; }
.anomaly-title { font-size: 0.82rem; font-weight: 700; color: #3a9b83; margin-bottom: 4px; }
.anomaly-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.anomaly-badge {
    font-family: var(--mono); font-size: 0.62rem; font-weight: 500;
    padding: 3px 9px; border-radius: 4px; border: 1px solid var(--coral-b);
    background: var(--coral-d); color: #3a9b83;
}

/* Section title */
.sec-title {
    font-family: var(--mono); font-size: 0.68rem; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase; color: var(--text2);
    margin-bottom: .75rem; display: flex; align-items: center; gap: 10px;
}
.sec-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ─────────────────────────────────────────
   CONTACT TIMELINE
───────────────────────────────────────── */
.timeline-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 12px; overflow: hidden; margin-bottom: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
/* timeline-head keeps dark background for visual contrast */
.timeline-head {
    background: var(--navy); padding: .75rem 1.4rem;
    font-family: var(--mono); font-size: 0.65rem; color: rgba(255,255,255,.5);
    letter-spacing: .1em; text-transform: uppercase;
    display: flex; align-items: center; gap: 8px;
}
.timeline-head svg { width: 13px; height: 13px; stroke: #6fd1b3; fill: none; }
.timeline-body { padding: 1.5rem 1.4rem; }
.tl-track {
    display: flex; align-items: flex-start; gap: 0;
    overflow-x: auto; padding-bottom: .5rem;
}
.tl-segment {
    display: flex; flex-direction: column; align-items: flex-start;
    min-width: 80px; position: relative;
}
.tl-segment::after {
    content: ''; position: absolute;
    top: 10px; right: 0; left: 24px;
    height: 2px; background: var(--border);
}
.tl-segment:last-child::after { display: none; }
.tl-dot {
    width: 20px; height: 20px; border-radius: 50%;
    border: 2px solid; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; background: var(--surface); position: relative; z-index: 1;
    font-size: 9px;
}
.tl-segment.done   .tl-dot { border-color: var(--green); background: var(--green-d); }
.tl-segment.active .tl-dot { border-color: #4eb39a; background: var(--coral-d); }
.tl-segment.grey   .tl-dot { border-color: var(--border2); background: var(--bg1); }
.tl-segment.warn   .tl-dot { border-color: var(--amber); background: var(--amber-d); }
.tl-label { font-family: var(--mono); font-size: 0.58rem; color: var(--text2); margin-top: 5px; white-space: nowrap; }
.tl-time  { font-family: var(--mono); font-size: 0.58rem; color: var(--text3); margin-top: 2px; }
.tl-dur   { font-family: 'DM Sans', sans-serif; font-size: 0.65rem; font-weight: 600; color: var(--text0); margin-top: 1px; }

/* Duration bar */
.tl-bar-track { display: flex; height: 8px; border-radius: 4px; overflow: hidden; margin: 1.2rem 0 .5rem; background: var(--bg2); }
.tl-bar-seg { height: 100%; transition: width .6s ease; display: flex; align-items: center; justify-content: center; }
.tl-legend { display: flex; flex-wrap: wrap; gap: 10px; }
.tl-leg-item { display: flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 0.62rem; color: var(--text2); }
.tl-leg-dot { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }

/* ─────────────────────────────────────────
   STAT GRID
───────────────────────────────────────── */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px; margin-bottom: 1.5rem;
}
.stat-card {
    background: var(--surface); border: 1px solid var(--border);
    border-top: 3px solid var(--sc-color, #4eb39a);
    border-radius: 10px; padding: 1rem 1.1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    transition: box-shadow .15s;
}
.stat-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.07); }
.sc-label { font-family: var(--mono); font-size: 0.6rem; color: var(--text2); letter-spacing: .07em; text-transform: uppercase; margin-bottom: .35rem; }
.sc-value { font-family: 'DM Sans', sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--text0); line-height: 1; letter-spacing: -.02em; }
.sc-sub   { font-family: var(--mono); font-size: 0.62rem; color: var(--text3); margin-top: 3px; }

/* ─────────────────────────────────────────
   LAYOUT HELPERS
───────────────────────────────────────── */
.two-col   { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.5rem; }

/* ─────────────────────────────────────────
   INFO CARDS
───────────────────────────────────────── */
.info-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 12px; overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.ic-head {
    background: var(--bg1);
    border-bottom: 1px solid var(--border);
    padding: .75rem 1.1rem;
    display: flex; align-items: center; gap: 8px;
    font-family: var(--mono); font-size: 0.65rem; color: var(--text2);
    letter-spacing: .08em; text-transform: uppercase;
}
.ic-head svg { width: 13px; height: 13px; stroke: #3a9b83; fill: none; }
.ic-body { padding: .75rem 1.1rem; }
.ic-row {
    display: flex; justify-content: space-between; align-items: flex-start;
    padding: 5px 0; border-bottom: 1px solid var(--bg2); gap: 8px;
}
.ic-row:last-child { border-bottom: none; padding-bottom: 0; }
.ic-key { font-size: 0.78rem; color: var(--text2); white-space: nowrap; flex-shrink: 0; }
.ic-val { font-family: var(--mono); font-size: 0.72rem; font-weight: 500; color: var(--text0); text-align: right; word-break: break-all; }
.ic-val.mono-sm { font-size: 0.65rem; }
.ic-val a { color: var(--teal); text-decoration: none; }
.ic-val a:hover { text-decoration: underline; }

/* Status badges — all subclasses used in JS */
.status-badge {
    display: inline-block; padding: 2px 8px; border-radius: 4px;
    font-family: var(--mono); font-size: 0.62rem; font-weight: 600;
    border: 1px solid; letter-spacing: .03em; text-transform: uppercase;
}
.sb-green  { color: #166534;  border-color: rgba(22,163,74,.25);   background: var(--green-d); }
.sb-red    { color: #991b1b;  border-color: rgba(220,38,38,.25);   background: var(--red-d); }
.sb-amber  { color: #92400e;  border-color: rgba(217,119,6,.25);   background: var(--amber-d); }
.sb-coral  { color: #3a9b83;  border-color: var(--coral-b);        background: var(--coral-d); }
.sb-teal   { color: #155e75;  border-color: rgba(8,145,178,.25);   background: var(--teal-d); }
.sb-slate  { color: #475569;  border-color: rgba(100,116,139,.2);  background: rgba(100,116,139,.08); }

/* ─────────────────────────────────────────
   TRANSFER CHAIN
───────────────────────────────────────── */
.transfer-chain { display: flex; flex-direction: column; gap: 4px; }
.tc-item {
    display: flex; align-items: center; gap: 10px;
    background: var(--bg1); border: 1px solid var(--border);
    border-radius: 8px; padding: .55rem .85rem;
    font-family: var(--mono); font-size: 0.68rem; color: var(--text1);
}
.tc-arrow { color: #3a9b83; font-size: 14px; margin: 0 4px; }
.tc-type {
    font-family: var(--mono); font-size: 0.58rem; font-weight: 600;
    padding: 1px 7px; border-radius: 4px;
    background: var(--coral-d); color: #3a9b83; border: 1px solid var(--coral-b);
    text-transform: uppercase; letter-spacing: .04em; flex-shrink: 0;
}

/* ─────────────────────────────────────────
   CONTACT LENS
───────────────────────────────────────── */
.cl-section { margin-bottom: 1.5rem; }
.cl-sentiment-bar {
    display: flex; height: 12px; border-radius: 6px; overflow: hidden;
    background: var(--bg2); margin: .75rem 0;
}
.cl-categories { display: flex; flex-wrap: wrap; gap: 6px; margin-top: .5rem; }
.cl-cat {
    display: inline-flex; align-items: center; gap: 5px;
    font-family: var(--mono); font-size: 0.62rem; font-weight: 500;
    padding: 3px 10px; border-radius: 4px;
    background: var(--coral-d); color: #3a9b83;
    border: 1px solid var(--coral-b);
}
.cl-issues { display: flex; flex-direction: column; gap: 4px; margin-top: .5rem; }
.cl-issue {
    background: var(--bg1); border: 1px solid var(--border);
    border-radius: 8px; padding: .5rem .85rem;
    font-size: 0.78rem; color: var(--text1); line-height: 1.5;
}

/* ─────────────────────────────────────────
   ATTRIBUTES TABLE
───────────────────────────────────────── */
.attr-table { width: 100%; border-collapse: collapse; }
.attr-table th {
    padding: .45rem .85rem; text-align: left;
    font-family: var(--mono); font-size: 0.6rem; font-weight: 700;
    letter-spacing: .07em; text-transform: uppercase; color: var(--text2);
    background: var(--bg1); border-bottom: 1px solid var(--border);
}
.attr-table td {
    padding: .45rem .85rem; font-family: var(--mono); font-size: 0.72rem; color: var(--text1);
    border-bottom: 1px solid var(--bg2);
}
.attr-table tr:hover td { background: var(--bg1); }
.attr-table tr:last-child td { border-bottom: none; }

/* ─────────────────────────────────────────
   BATCH TABLE
───────────────────────────────────────── */
.batch-table-wrap {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 12px; overflow: hidden; margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.batch-table-head {
    padding: .75rem 1.25rem; border-bottom: 1px solid var(--border);
    font-family: var(--mono); font-size: 0.65rem; color: var(--text2);
    letter-spacing: .08em; text-transform: uppercase;
    display: flex; align-items: center; justify-content: space-between;
    background: var(--bg1); flex-wrap: wrap; gap: .5rem;
}
.batch-inner { overflow-x: auto; }
.bt { width: 100%; border-collapse: collapse; min-width: 800px; }
.bt th {
    padding: .5rem 1rem; text-align: left;
    font-family: var(--mono); font-size: 0.6rem; font-weight: 700;
    letter-spacing: .07em; text-transform: uppercase; color: var(--text2);
    background: var(--bg1); border-bottom: 1px solid var(--border);
    white-space: nowrap; position: sticky; top: 0; z-index: 1; cursor: pointer;
}
.bt th:hover { color: #3a9b83; }
.bt td {
    padding: .5rem 1rem; font-family: var(--mono); font-size: 0.68rem; color: var(--text1);
    border-bottom: 1px solid rgba(78,179,154,0.08);
}
.bt tr:hover td { background: var(--bg1); cursor: pointer; }
.bt tr:last-child td { border-bottom: none; }
.bt-footer {
    padding: .6rem 1rem; border-top: 1px solid var(--border);
    background: var(--bg1);
    display: flex; align-items: center; justify-content: space-between;
    font-family: var(--mono); font-size: 0.68rem; color: var(--text2);
    flex-wrap: wrap; gap: .5rem;
}
.pg-btn {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 5px; padding: 4px 10px;
    font-family: var(--mono); font-size: 0.68rem; color: var(--text2);
    cursor: pointer; transition: all .15s;
}
.pg-btn:hover { border-color: #4eb39a; color: #3a9b83; background: var(--coral-d); }

/* ─────────────────────────────────────────
   RAW JSON VIEWER — keep dark for legibility
───────────────────────────────────────── */
.raw-card {
    background: var(--navy); border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px; overflow: hidden; margin-bottom: 1.5rem;
}
.raw-head {
    padding: .7rem 1.1rem; border-bottom: 1px solid rgba(255,255,255,.08);
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
    font-family: var(--mono); font-size: 0.62rem; color: rgba(255,255,255,.4); letter-spacing: .08em; text-transform: uppercase;
}
.raw-body {
    padding: 1rem 1.1rem; font-family: var(--mono); font-size: 0.72rem; color: #94a3b8;
    max-height: 360px; overflow-y: auto; white-space: pre; overflow-x: auto; line-height: 1.65;
}
.raw-body .jk { color: #7dd3fc; }
.raw-body .jv { color: #86efac; }
.raw-body .js { color: #fcd34d; }
.raw-body .jn { color: #f9a8d4; }

/* ─────────────────────────────────────────
   SEO / FAQ
───────────────────────────────────────── */
.seo-block {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 12px; padding: 1.75rem 2rem; margin-top: 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.seo-block h2 { font-family: 'DM Sans', sans-serif; font-size: 1.05rem; font-weight: 700; color: var(--text0); margin-bottom: .6rem; }
.seo-block > p { font-size: 0.875rem; color: var(--text2); line-height: 1.8; }
.faq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 10px; margin-top: 1.25rem; }
.faq-card { background: var(--bg1); border: 1px solid var(--border); border-radius: 10px; padding: 1rem 1.1rem; }
.faq-q { font-size: 0.875rem; font-weight: 700; color: var(--text0); margin-bottom: .35rem; }
.faq-a { font-size: 0.82rem; color: var(--text2); line-height: 1.7; }

/* ─────────────────────────────────────────
   TOAST
───────────────────────────────────────── */
.ctr-toast {
    position: fixed; bottom: 2rem; right: 2rem;
    background: #0e2d27; border: 1px solid rgba(78,179,154,0.35);
    border-radius: 10px; padding: .7rem 1.2rem;
    font-family: var(--mono); font-size: 0.75rem; color: #e1f5ee;
    z-index: 999; transform: translateY(60px); opacity: 0;
    transition: all .3s; pointer-events: none;
}
.ctr-toast.show { transform: translateY(0); opacity: 1; }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 768px) {
    .ctr-hero-inner { grid-template-columns: 1fr; }
    .ctr-main { padding: 1rem; }
    .two-col, .three-col { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: repeat(2,1fr); }
    .ctr-hero { padding: 1.75rem 1.25rem 1.5rem; }
    .seo-block { padding: 1.25rem; }
}
