@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Share+Tech+Mono&display=swap');

:root {
    --bg:          #faf9f7;
    --bg2:         #f2f0ec;
    --bg3:         #e8e5df;
    --surface:     #ffffff;
    --border:      #d0ccc4;
    --border-dark: #9a9490;

    --accent:      #92400e;   /* dark amber — one accent, used sparingly */
    --text:        #1c1c1c;
    --text-dim:    #6b6460;
    --text-muted:  #a09890;
    --red:         #991b1b;
    --green:       #166534;

    --radius:    3px;
    --radius-sm: 2px;
    --font-ui:   'Outfit', system-ui, -apple-system, sans-serif;
    --font-mono: 'Share Tech Mono', 'Courier New', monospace;
}

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

body {
    font-family: var(--font-ui);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Navbar ──────────────────────────────────────────── */
.navbar {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0.75rem 2rem;
    background: var(--surface);
    border-bottom: 2px solid var(--text);
    position: sticky; top: 0; z-index: 100;
}

.brand {
    display: flex; align-items: baseline; gap: 0.5rem;
    text-decoration: none; flex-shrink: 0;
}
.brand-icon { display: inline-block; vertical-align: middle; color: var(--accent); }
.brand-text {
    font-size: 1rem; font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
    text-decoration: none;
}
.brand-sub {
    font-size: 0.72rem; color: var(--text-dim);
    display: none;
}
@media (min-width: 900px) { .brand-sub { display: inline; } }

.nav-search {
    display: flex; flex: 1; max-width: 400px;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius); overflow: hidden;
}
.nav-search:focus-within { border-color: var(--text); }
.nav-search input {
    flex: 1; background: var(--surface); border: none;
    color: var(--text); padding: 0.4rem 0.75rem;
    font-size: 0.88rem; outline: none;
    font-family: var(--font-ui);
}
.nav-search button {
    background: var(--text); color: var(--surface);
    border: none; padding: 0.4rem 1rem;
    font-weight: 600; font-size: 0.82rem; cursor: pointer;
    font-family: var(--font-ui); letter-spacing: 0.02em;
    transition: background 0.12s;
}
.nav-search button:hover { background: var(--accent); }

.nav-links {
    display: flex; gap: 1.25rem; flex-shrink: 0;
    font-size: 0.83rem;
}
.nav-links a { color: var(--text-dim); }
.nav-links a:hover { color: var(--text); text-decoration: none; }

.currency-switcher, .region-switcher, .lang-switcher {
    display: flex; flex-shrink: 0;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius); overflow: hidden;
}
.curr-btn, .region-btn, .lang-btn {
    background: var(--surface); border: none;
    color: var(--text-dim); padding: 0.3rem 0.65rem;
    font-size: 0.76rem; font-weight: 600; cursor: pointer;
    font-family: var(--font-mono);
    transition: background 0.1s, color 0.1s;
    border-right: 1px solid var(--border);
    white-space: nowrap;
}
.curr-btn:last-child, .region-btn:last-child, .lang-btn:last-child { border-right: none; }
.curr-btn:hover, .region-btn:hover, .lang-btn:hover { background: var(--bg2); color: var(--text); }
.curr-btn.active { background: var(--text); color: var(--surface); }
.region-btn.active { background: var(--text); color: var(--surface); }
.region-btn.region-locked { cursor: default; }
.lang-btn { text-decoration: none; display: inline-block; }
.lang-btn.active { background: var(--text); color: var(--surface); }

.region-hidden { display: none !important; }
.listings-empty-region {
    padding: 1.5rem; text-align: center;
    color: var(--text-dim); font-size: 0.9rem;
    display: none;
}
.listings-empty-region.visible { display: block; }

/* ── Container ───────────────────────────────────────── */
.container {
    flex: 1; max-width: 1200px;
    margin: 0 auto; padding: 2rem 1.5rem;
    width: 100%;
}

/* ── Hero ────────────────────────────────────────────── */
.hero {
    padding: 2.5rem 0 2rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}
.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.7rem; color: var(--text-muted);
    letter-spacing: 0.12em; text-transform: uppercase;
    margin-bottom: 0.6rem;
}
.hero h1 {
    font-size: 2rem; font-weight: 700;
    color: var(--text);
    margin-bottom: 0.4rem;
    letter-spacing: -0.02em;
    line-height: 1.15;
}
.hero p { color: var(--text-dim); margin-bottom: 1.5rem; font-size: 0.92rem; }

.hero-search {
    display: flex; max-width: 520px;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius); overflow: hidden;
}
.hero-search input {
    flex: 1; background: var(--surface); border: none;
    color: var(--text); padding: 0.7rem 1rem;
    font-size: 0.92rem; outline: none;
    font-family: var(--font-mono);
}
.hero-search input::placeholder { color: var(--text-muted); font-family: var(--font-ui); }
.hero-search:focus-within { border-color: var(--text); }
.hero-search button {
    background: var(--text); color: var(--surface);
    border: none; padding: 0.7rem 1.5rem;
    font-weight: 700; font-size: 0.85rem; cursor: pointer;
    font-family: var(--font-ui); letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: background 0.12s;
}
.hero-search button:hover { background: var(--accent); }

/* ── Stats bar ───────────────────────────────────────── */
.stats-bar {
    display: flex; gap: 0; flex-wrap: wrap;
    align-items: stretch;
    margin: 0 0 2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
}
.stat {
    display: flex; flex-direction: column; align-items: flex-start;
    padding: 0.9rem 1.5rem;
    border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat-num {
    font-family: var(--font-mono);
    font-size: 1.5rem; font-weight: 400;
    color: var(--accent);
    letter-spacing: 0.02em;
}
.stat-label {
    font-size: 0.65rem; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.1em;
    margin-top: 0.15rem;
}
.sources {
    flex-direction: row; gap: 0.35rem;
    flex-wrap: wrap; justify-content: flex-start;
    align-items: center;
    padding: 0.75rem 1rem;
    flex: 1;
}

/* ── Source badges ───────────────────────────────────── */
.source-badge {
    display: inline-flex; align-items: center;
    padding: 0.12rem 0.45rem;
    border-radius: var(--radius-sm); font-size: 0.68rem; font-weight: 600;
    font-family: var(--font-mono); letter-spacing: 0.03em;
    background: var(--bg2); color: var(--text-dim);
    border: 1px solid var(--border);
}
.source-badge.qth,
.source-badge.eham,
.source-badge.qrzpl,
.source-badge.ebay,
.source-badge.olx,
.source-badge.alk,
.source-badge.fa,
.source-badge.marktplaats,
.source-badge.kleinanzeigen,
.source-badge.dehands,
.source-badge.subito,
.source-badge.leboncoin,
.source-badge.willhaben,
.source-badge.bazos,
.source-badge.finn,
.source-badge.tori,
.source-badge.blocket { background: var(--bg2); color: var(--text-dim); border-color: var(--border); }
.source-badge[data-source-badge="2dehands"] {
    background: var(--bg2); color: var(--text-dim); border-color: var(--border);
    display: inline-flex; align-items: center;
    padding: 0.12rem 0.45rem;
    border-radius: var(--radius-sm); font-size: 0.68rem; font-weight: 600;
    font-family: var(--font-mono); letter-spacing: 0.03em;
    border: 1px solid var(--border);
}

/* ── Shop prices ──────────────────────────────────────── */
.shop-prices-badge {
    font-size: 0.68rem; font-weight: 600; padding: 0.12rem 0.5rem;
    background: var(--bg2); color: var(--text-dim);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-family: var(--font-mono);
}
.shop-prices-header { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.shop-prices-header h2 { margin-bottom: 0; }
.savings-callout {
    font-size: 0.83rem; color: var(--text-dim);
    background: #fef3c7;
    border: 1px solid #d97706;
    border-radius: var(--radius); padding: 0.3rem 0.8rem;
}
.savings-callout strong { color: var(--accent); }
.savings-pct {
    margin-left: 0.4rem; font-size: 0.76rem; font-weight: 700;
    color: var(--accent);
    font-family: var(--font-mono);
}
.shop-prices-list { display: flex; flex-direction: column; }
.shop-price-row {
    display: flex; align-items: center; gap: 1rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
}
.shop-price-row:last-child { border-bottom: none; }
.shop-price-row.out-of-stock { opacity: 0.45; }
.shop-name   { flex: 1; font-size: 0.88rem; color: var(--text); }
.shop-price  {
    font-family: var(--font-mono); font-size: 1rem;
    font-weight: 400; color: var(--text);
}
.shop-stock.in  { font-size: 0.72rem; color: var(--green); font-family: var(--font-mono); }
.shop-stock.out { font-size: 0.72rem; color: var(--text-muted); font-family: var(--font-mono); }
.shop-trend { font-size: 0.7rem; margin-left: 0.3rem; font-family: var(--font-mono); color: var(--text-muted); }
.trend-up   { color: var(--red); }
.trend-down { color: var(--green); }
.shop-link {
    font-size: 0.78rem; color: var(--accent); text-decoration: none;
    padding: 0.18rem 0.5rem; border: 1px solid var(--border);
    border-radius: var(--radius-sm); font-family: var(--font-mono);
    transition: border-color 0.12s, background 0.12s;
}
.shop-link:hover { background: var(--bg2); border-color: var(--border-dark); text-decoration: none; }
.shop-note { margin-top: 0.4rem; font-size: 0.73rem; color: var(--text-muted); }

/* ── Section ─────────────────────────────────────────── */
.section { margin-top: 2.5rem; }
.section h2 {
    font-size: 0.68rem; font-weight: 700;
    margin-bottom: 1rem; color: var(--text-muted);
    display: flex; align-items: center; gap: 0.75rem;
    text-transform: uppercase; letter-spacing: 0.15em;
    font-family: var(--font-mono);
}
.section h2::after {
    content: '';
    flex: 1; height: 1px;
    background: var(--border);
}

/* ── Model grid ──────────────────────────────────────── */
.model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
    gap: 1px;
    border: 1px solid var(--border);
    background: var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.model-card {
    display: flex; flex-direction: column; gap: 0.3rem;
    background: var(--surface);
    padding: 0.9rem 1rem;
    text-decoration: none; color: var(--text);
    transition: background 0.12s;
}
.model-card:hover { background: var(--bg2); text-decoration: none; }

.model-card-header {
    display: flex; justify-content: space-between; align-items: center;
}
.manufacturer { font-size: 0.68rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.category-tag {
    font-size: 0.58rem; color: var(--text-muted);
    background: var(--bg2);
    border: 1px solid var(--border);
    padding: 0.06rem 0.35rem; border-radius: var(--radius-sm);
    font-family: var(--font-mono); letter-spacing: 0.03em;
}
.model-name {
    font-size: 0.98rem; font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text);
}
.model-price { margin-top: 0.25rem; }
.price-med {
    font-family: var(--font-mono);
    font-size: 1.1rem; font-weight: 400;
    color: var(--accent);
    letter-spacing: 0.02em;
}
.price-range {
    font-size: 0.7rem; color: var(--text-muted);
    margin-left: 0.35rem; font-family: var(--font-mono);
}
.price-none { font-size: 0.76rem; color: var(--text-muted); font-family: var(--font-mono); }
.price-label-small { font-size: 0.63rem; color: var(--text-muted); margin-left: 0.2rem; }
.model-meta { margin-top: auto; }
.listing-count { font-size: 0.66rem; color: var(--text-muted); font-family: var(--font-mono); }

/* ── Category grid ───────────────────────────────────── */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1px;
    border: 1px solid var(--border);
    background: var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.cat-card {
    display: flex; flex-direction: column; gap: 0.15rem;
    padding: 0.75rem 1rem;
    background: var(--surface);
    text-decoration: none; color: var(--text);
    transition: background 0.12s;
}
.cat-card:hover { background: var(--bg2); text-decoration: none; }
.cat-name { font-size: 0.82rem; font-weight: 600; }
.cat-count { font-size: 0.66rem; color: var(--text-muted); font-family: var(--font-mono); }

/* ── Sources info ────────────────────────────────────── */
.sources-list { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.source-info {
    display: flex; gap: 1rem; align-items: baseline;
    padding: 0.6rem 1rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}
.source-info:last-child { border-bottom: none; }
.source-info:hover { background: var(--bg2); }
.source-info strong { min-width: 160px; font-size: 0.86rem; }
.source-info span { font-size: 0.8rem; color: var(--text-dim); }

/* ── Model hero ──────────────────────────────────────── */
.model-hero { padding: 1.5rem 0 1rem; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; }
.breadcrumb { font-size: 0.73rem; color: var(--text-muted); margin-bottom: 0.5rem; font-family: var(--font-mono); }
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--text); }
.model-hero h1 {
    font-size: 2rem; font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}
.model-category-tag {
    display: inline-block; margin-top: 0.35rem;
    font-size: 0.68rem; color: var(--text-muted);
    background: var(--bg2);
    border: 1px solid var(--border);
    padding: 0.15rem 0.6rem; border-radius: var(--radius-sm);
    font-family: var(--font-mono); letter-spacing: 0.04em;
}
.model-intro {
    margin-top: 0.6rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}
.model-intro span { color: var(--text-dim); }

/* ── Price summary ───────────────────────────────────── */
.price-summary {
    display: flex; gap: 0; flex-wrap: nowrap;
    margin: 0 0 2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--border);
    overflow: hidden;
}
.price-box {
    flex: 1; min-width: 140px;
    background: var(--surface);
    padding: 1rem 1.25rem;
}
.price-box.main-price {
    border-right: 2px solid var(--text);
}
.price-label {
    font-size: 0.62rem; color: var(--text-muted); margin-bottom: 0.4rem;
    text-transform: uppercase; letter-spacing: 0.1em;
    font-family: var(--font-mono);
}
.price-value {
    font-family: var(--font-mono);
    font-size: 1.7rem; font-weight: 400; letter-spacing: 0.02em;
    color: var(--text);
}
.price-box.main-price .price-value { color: var(--accent); }
.price-value.range { font-size: 1.1rem; color: var(--text); }
.price-value.low  { color: var(--text); }
.price-value.high { color: var(--text); }
.price-sub  { font-size: 0.66rem; color: var(--text-muted); margin-top: 0.3rem; font-family: var(--font-mono); }

.trend {
    font-size: 0.74rem; font-weight: 600;
    padding: 0.08rem 0.4rem; border-radius: var(--radius-sm); margin-left: 0.4rem;
    font-family: var(--font-mono);
    background: var(--bg2); color: var(--text-muted);
}
.trend.up   { background: #fee2e2; color: var(--red); }
.trend.down { background: #dcfce7; color: var(--green); }
.trend.flat { background: var(--bg2); color: var(--text-muted); }

/* ── Chart ───────────────────────────────────────────── */
.chart-controls { display: flex; gap: 0; margin-bottom: 1rem; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; width: fit-content; }
.range-btn {
    padding: 0.28rem 0.8rem;
    background: var(--surface); border: none; border-right: 1px solid var(--border);
    color: var(--text-dim); cursor: pointer; font-size: 0.74rem;
    font-family: var(--font-mono);
    transition: background 0.1s, color 0.1s;
}
.range-btn:last-child { border-right: none; }
.range-btn:hover { background: var(--bg2); color: var(--text); }
.range-btn.active { background: var(--text); color: var(--surface); }

.chart-section { }
.chart-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    height: 280px;
}
.chart-wrap canvas { max-height: 240px; }

.chart-legend {
    display: flex; gap: 1.5rem;
    font-size: 0.7rem; color: var(--text-muted);
    margin-top: 0.5rem; font-family: var(--font-mono);
}
.legend-median { color: var(--accent); }
.legend-range  { color: var(--text-muted); }

.empty-chart {
    padding: 3rem; text-align: center;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); color: var(--text-dim);
    font-family: var(--font-mono);
}

/* ── Category controls ───────────────────────────────── */
.cat-controls {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem;
}
.cat-filters { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.cat-filter-btn {
    background: var(--surface); border: 1px solid var(--border);
    color: var(--text-dim); padding: 0.24rem 0.65rem;
    border-radius: var(--radius-sm); font-size: 0.76rem; cursor: pointer;
    font-family: var(--font-mono);
    transition: border-color 0.12s, background 0.12s;
}
.cat-filter-btn:hover { border-color: var(--border-dark); color: var(--text); background: var(--bg2); }
.cat-filter-btn.active { background: var(--text); color: var(--surface); border-color: var(--text); }
.cat-sort {
    background: var(--surface); border: 1px solid var(--border);
    color: var(--text); padding: 0.26rem 0.6rem;
    border-radius: var(--radius-sm); font-size: 0.8rem; cursor: pointer;
    font-family: var(--font-mono);
}
.cat-empty-msg { color: var(--text-dim); padding: 1.5rem 0; font-family: var(--font-mono); }
.cat-sort-row { display: flex; align-items: center; gap: 0.75rem; }
.cat-nodata-toggle { display: flex; align-items: center; gap: 0.35rem; font-size: 0.76rem; color: var(--text-dim); cursor: pointer; white-space: nowrap; font-family: var(--font-mono); }
.cat-nodata-toggle input { cursor: pointer; accent-color: var(--accent); }

/* ── Listings controls ────────────────────────────────── */
.listings-controls {
    display: flex; align-items: center; gap: 1rem;
    flex-wrap: wrap; margin-bottom: 0.75rem;
}
.source-filter-pills {
    display: flex; gap: 0.25rem; flex-wrap: wrap; align-items: center;
}
.source-pill {
    background: var(--surface); border: 1px solid var(--border);
    color: var(--text-dim); padding: 0.18rem 0.5rem;
    border-radius: var(--radius-sm); font-size: 0.7rem; cursor: pointer;
    font-family: var(--font-mono);
    transition: border-color 0.12s, background 0.12s;
    display: flex; align-items: center; gap: 0.3rem;
}
.source-pill:hover { border-color: var(--border-dark); color: var(--text); }
.source-pill.active { background: var(--text); color: var(--surface); border-color: var(--text); }
.source-pill .source-badge { font-size: 0.63rem; border: none; background: none; padding: 0; }

.listings-table th.sortable:hover { color: var(--accent); cursor: pointer; }
.sort-icon { font-size: 0.63rem; color: var(--text-muted); margin-left: 0.2rem; }

/* ── Listings table ──────────────────────────────────── */
.listings-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.listing-count-badge {
    display: inline-block; font-size: 0.7rem; font-weight: 600;
    background: var(--bg2); border: 1px solid var(--border);
    padding: 0.08rem 0.45rem; border-radius: var(--radius-sm); color: var(--text-dim);
    font-family: var(--font-mono);
}

.listings-table {
    width: 100%; border-collapse: collapse; font-size: 0.86rem;
    background: var(--surface);
}
.listings-table th {
    text-align: left; padding: 0.5rem 0.75rem;
    border-bottom: 2px solid var(--text);
    color: var(--text-muted); font-weight: 700; font-size: 0.65rem;
    text-transform: uppercase; letter-spacing: 0.1em;
    font-family: var(--font-mono);
    background: var(--bg2);
}
.listings-table td {
    padding: 0.48rem 0.75rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.listings-table tbody tr:last-child td { border-bottom: none; }
.listings-table tr:hover td { background: var(--bg2); }
.listings-table tr.sold { opacity: 0.45; }

.listing-title a { color: var(--text); }
.listing-title a:hover { color: var(--accent); }
.listing-price {
    font-weight: 400; white-space: nowrap;
    font-family: var(--font-mono); color: var(--accent);
    letter-spacing: 0.02em;
}
.listing-date  { color: var(--text-muted); font-size: 0.76rem; white-space: nowrap; font-family: var(--font-mono); }
.callsign      { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-dim); }
.sold-badge {
    font-size: 0.6rem; padding: 0.06rem 0.3rem;
    background: #fee2e2; color: var(--red);
    border-radius: var(--radius-sm); margin-left: 0.4rem;
    font-family: var(--font-mono);
}

.listing-country {
    display: inline-block;
    font-size: 0.6rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    letter-spacing: 0.03em;
    margin-left: 0.3rem;
    vertical-align: middle;
}

/* ── Search heading ──────────────────────────────────── */
.search-heading { font-size: 1.3rem; font-weight: 700; margin-bottom: 1.5rem; letter-spacing: -0.01em; }
.search-heading em { color: var(--accent); font-style: normal; }

/* ── Buttons ─────────────────────────────────────────── */
.btn-primary {
    display: inline-block;
    background: var(--text); color: var(--surface);
    border: none; padding: 0.55rem 1.3rem;
    border-radius: var(--radius); font-weight: 700; font-size: 0.84rem;
    cursor: pointer; text-decoration: none;
    font-family: var(--font-ui);
    transition: background 0.12s;
}
.btn-primary:hover { background: var(--accent); text-decoration: none; color: var(--surface); }

/* ── Empty state ─────────────────────────────────────── */
.empty { color: var(--text-dim); padding: 1.5rem 0; font-family: var(--font-mono); }

/* ── Footer ──────────────────────────────────────────── */
footer {
    text-align: center; padding: 1.25rem;
    font-size: 0.7rem; color: var(--text-muted);
    border-top: 1px solid var(--border);
    margin-top: auto;
    font-family: var(--font-mono);
}
footer a { color: var(--text-muted); }
footer a:hover { color: var(--text); }

/* ── Trending ─────────────────────────────────────────── */
.trending-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1px; border: 1px solid var(--border);
    background: var(--border); border-radius: var(--radius); overflow: hidden;
}
.trending-card {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.7rem 1rem;
    background: var(--surface);
    text-decoration: none; color: var(--text);
    transition: background 0.12s;
}
.trending-card:hover { background: var(--bg2); text-decoration: none; }
.trending-arrow { font-size: 0.7rem; flex-shrink: 0; color: var(--text-muted); }
.trending-arrow.up   { color: var(--red); }
.trending-arrow.down { color: var(--green); }
.trending-info { flex: 1; min-width: 0; }
.trending-name { font-size: 0.8rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--font-mono); }
.trending-price { font-size: 0.73rem; color: var(--text-dim); font-family: var(--font-mono); }
.trending-pct {
    font-size: 0.74rem; font-weight: 600; flex-shrink: 0;
    padding: 0.12rem 0.45rem; border-radius: var(--radius-sm);
    font-family: var(--font-mono);
}
.trending-pct.up   { background: #fee2e2; color: var(--red); }
.trending-pct.down { background: #dcfce7; color: var(--green); }

/* ── About page ───────────────────────────────────────── */
.about-section { max-width: 680px; margin: 2rem auto; }
.about-section h2 { margin-top: 2rem; margin-bottom: 0.5rem; font-size: 1rem; color: var(--text); }
.about-section p  { color: var(--text-dim); line-height: 1.75; margin-bottom: 0.75rem; font-size: 0.9rem; }
.about-section ul { color: var(--text-dim); line-height: 1.8; padding-left: 1.5rem; font-size: 0.9rem; }
.about-section li { margin-bottom: 0.25rem; }

/* ── Error pages ──────────────────────────────────────── */
.error-page { text-align: center; padding: 4rem 1rem; }
.error-code { font-size: 5rem; font-weight: 700; color: var(--border); line-height: 1; font-family: var(--font-mono); }
.error-msg  { font-size: 1.2rem; font-weight: 700; margin: 0.5rem 0; }
.error-sub  { color: var(--text-dim); margin-bottom: 1.5rem; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .region-btn { padding: 0.26rem 0.45rem; font-size: 0.7rem; }
    .curr-btn   { padding: 0.26rem 0.5rem; font-size: 0.7rem; }
    .lang-btn   { padding: 0.26rem 0.45rem; font-size: 0.7rem; }
}

@media (max-width: 640px) {
    .navbar { flex-wrap: wrap; padding: 0.5rem 0.75rem; gap: 0.4rem; }
    .brand  { flex-shrink: 0; }
    .nav-search { order: 3; flex: 1 1 100%; max-width: 100%; }
    .currency-switcher, .region-switcher, .lang-switcher { order: 2; }

    .container { padding: 1rem 0.75rem; }

    .hero { padding: 1.5rem 0 1rem; }
    .hero h1 { font-size: 1.5rem; }
    .hero p   { font-size: 0.86rem; }
    .hero-search { flex-direction: column; }
    .hero-search input  { padding: 0.6rem 0.85rem; }
    .hero-search button { padding: 0.6rem; }

    .stats-bar { flex-wrap: wrap; }
    .stat { padding: 0.65rem 0.9rem; border-right: none; border-bottom: 1px solid var(--border); }
    .stat:last-child { border-bottom: none; }
    .stat-num { font-size: 1.25rem; }

    .model-grid { grid-template-columns: repeat(2, 1fr); }
    .model-card { padding: 0.65rem; }
    .model-name { font-size: 0.9rem; }
    .price-med  { font-size: 1rem; }

    .cat-grid { grid-template-columns: repeat(2, 1fr); }

    .price-summary { flex-wrap: wrap; }
    .price-value   { font-size: 1.35rem; }
    .price-box.main-price { border-right: none; border-bottom: 2px solid var(--text); }

    .chart-wrap { height: 210px; padding: 0.75rem; }
    .chart-wrap canvas { max-height: 180px; }

    .cat-controls { flex-direction: column; align-items: flex-start; }
    .cat-sort-row  { width: 100%; justify-content: space-between; }

    .listings-table { font-size: 0.76rem; min-width: 480px; }
    .callsign { display: none; }

    .shop-price-row { flex-wrap: wrap; gap: 0.35rem; }
    .shop-name { flex: 1 1 100%; }

    .trending-grid { grid-template-columns: 1fr 1fr; }
    .source-info { flex-direction: column; gap: 0.2rem; }
    .source-info strong { min-width: unset; }

    .model-hero h1 { font-size: 1.4rem; }
    footer { padding: 1rem 0.75rem; font-size: 0.63rem; }
}
