/* ============ Radars — dizaina sistēma ============ */
:root {
    color-scheme: light;
    --bg: #f5f6fb;
    --surface: #ffffff;
    --surface-2: #f0f2f8;
    --text: #0f172a;
    --text-2: #334155;
    --muted: #64748b;
    --border: #e3e7f0;
    --border-strong: #cbd2e1;

    --primary: #4f46e5;
    --primary-600: #4338ca;
    --primary-50: #eef2ff;
    --primary-100: #e0e7ff;
    --accent: #7c3aed;
    --grad: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #a21caf 100%);
    --hero: radial-gradient(1200px 500px at 85% -10%, rgba(167, 139, 250, .45), transparent 60%),
            radial-gradient(900px 400px at -10% 110%, rgba(56, 189, 248, .25), transparent 60%),
            linear-gradient(160deg, #1e1b4b 0%, #312e81 45%, #4c1d95 100%);

    --green: #059669;
    --green-50: #ecfdf5;
    --red: #dc2626;
    --red-50: #fef2f2;
    --amber: #d97706;
    --amber-50: #fffbeb;

    --radius: 14px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
    --shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 8px 24px -12px rgba(15, 23, 42, .12);
    --shadow-lg: 0 20px 50px -20px rgba(30, 27, 75, .35);
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-600); }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.02em; color: var(--text); }
h1 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 800; }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.65rem); font-weight: 750; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 12px; }
h1:focus { outline: none; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Ikonas (Lucide caur CSS masku) ---------- */
.i {
    display: inline-block; width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em;
    background-color: currentColor;
    -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat;
}

/* ---------- Galvene ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .86);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; gap: 24px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--text); letter-spacing: -0.03em; }
.brand:hover { color: var(--text); }
.brand-mark {
    width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff;
    background: var(--grad); box-shadow: 0 6px 16px -6px rgba(79, 70, 229, .7);
}
.brand-mark .i { width: 20px; height: 20px; }
.brand small { font-weight: 600; color: var(--muted); font-size: .8rem; margin-left: -6px; }
.main-nav { display: flex; gap: 4px; flex: 1; }
.main-nav a { white-space: nowrap;
    display: flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 9px;
    color: var(--text-2); font-weight: 550; font-size: .93rem;
}
.main-nav a:hover { background: var(--surface-2); color: var(--text); }
.main-nav a.active { color: var(--primary); background: var(--primary-50); }
.header-cta { margin-left: auto; display: flex; gap: 8px; }

/* ---------- Pogas ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: 1px solid transparent; border-radius: 10px; padding: 10px 18px;
    font: inherit; font-weight: 650; font-size: .94rem; line-height: 1.2;
    cursor: pointer; text-decoration: none; transition: transform .08s, box-shadow .15s, background .15s;
    background: var(--primary); color: #fff; white-space: nowrap;
}
.btn:hover { background: var(--primary-600); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn.grad { background: var(--grad); box-shadow: 0 8px 20px -8px rgba(124, 58, 237, .6); }
.btn.grad:hover { filter: brightness(1.07); }
.btn.light { background: var(--surface); color: var(--text); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn.light:hover { background: var(--surface-2); color: var(--text); }
.btn.ghost { background: transparent; color: var(--text-2); border-color: var(--border-strong); }
.btn.ghost:hover { background: var(--surface-2); color: var(--text); }
.btn.white { background: #fff; color: var(--primary-600); }
.btn.white:hover { background: var(--primary-50); color: var(--primary-600); }
.btn.danger { background: transparent; color: var(--red); border-color: #fecaca; }
.btn.danger:hover { background: var(--red-50); color: var(--red); }
.btn.sm { padding: 7px 12px; font-size: .85rem; border-radius: 8px; }
.btn.lg { padding: 13px 22px; font-size: 1rem; border-radius: 12px; }
.btn.block { width: 100%; }

/* ---------- Kartītes, sekcijas ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 22px; }
.card + .card { margin-top: 16px; }
.section { padding-block: 44px; }
.section.tight { padding-block: 28px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.section-head p { margin: 6px 0 0; color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: .93rem; }

.page-head { padding: 30px 0 8px; }
.page-head p { color: var(--muted); margin: 8px 0 0; max-width: 720px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--primary); }
.crumbs .sep { opacity: .5; }

/* ---------- Hero ---------- */
.hero { background: var(--hero); color: #fff; position: relative; overflow: hidden; }
.hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .14;
    background-image: radial-gradient(rgba(255,255,255,.7) 1px, transparent 1px); background-size: 22px 22px;
    mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .9fr; gap: 48px; padding-top: 64px; padding-bottom: 72px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.2rem); }
.hero h1 .hl { background: linear-gradient(90deg, #c4b5fd, #f0abfc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: #c7d2fe; font-size: 1.1rem; margin: 18px 0 26px; max-width: 580px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; font-size: .82rem; font-weight: 600; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: #e0e7ff; margin-bottom: 18px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52,211,153,.7); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,.6); } 70% { box-shadow: 0 0 0 9px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }

.searchbar { display: flex; background: #fff; border-radius: 14px; padding: 6px; box-shadow: var(--shadow-lg); gap: 6px; }
.searchbar .field { display: flex; align-items: center; gap: 10px; padding: 0 12px; flex: 1; min-width: 0; color: var(--muted); }
.searchbar input, .searchbar select { border: none; outline: none; background: transparent; font: inherit; color: var(--text); width: 100%; padding: 10px 0; font-size: 1rem; }
.searchbar select { max-width: 190px; border-left: 1px solid var(--border); padding-left: 12px; cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; font-size: .85rem; font-weight: 550; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip .count { color: var(--muted); font-weight: 500; }
.chip.on .count { color: #c7d2fe; }
.hero .chip { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #e0e7ff; }
.hero .chip:hover { background: rgba(255,255,255,.16); color: #fff; }

.hero-panel { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 20px; padding: 22px; backdrop-filter: blur(8px); }
.hero-panel h3 { color: #fff; font-size: .95rem; display: flex; align-items: center; gap: 8px; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.hero-stat { background: rgba(255,255,255,.08); border-radius: 12px; padding: 14px; }
.hero-stat b { display: block; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.hero-stat span { font-size: .8rem; color: #c7d2fe; }
.hero-panel .spark { color: #c4b5fd; margin-top: 4px; }
.hero-panel .chart text { fill: #a5b4fc; }
.hero-panel .chart .grid-line, .hero-panel .chart .axis { stroke: rgba(255,255,255,.12); }
.hero-panel .chart .bar { fill: #c4b5fd; }
.hero-panel .chart .bar.alt { fill: rgba(196,181,253,.45); }

/* ---------- Kategoriju flīzes ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cat-tile {
    display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--border); color: var(--text); transition: transform .15s, box-shadow .15s, border-color .15s;
}
.cat-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--border-strong); color: var(--text); }
.cat-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 12%, white); }
.cat-icon .i { width: 22px; height: 22px; }
.cat-tile b { font-weight: 650; font-size: .95rem; line-height: 1.25; }
.cat-tile small { color: var(--muted); font-size: .8rem; }
.cat-tile small em { font-style: normal; color: var(--green); font-weight: 600; }

/* ---------- Sludinājumu kartītes ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.l-card {
    display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; color: var(--text); transition: transform .15s, box-shadow .15s; position: relative;
}
.l-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--text); }
.l-media { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
.l-media img { width: 100%; height: 100%; object-fit: cover; }
.l-media .noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--border-strong); }
.l-media .noimg .i { width: 42px; height: 42px; }
.l-badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 99px; font-size: .74rem; font-weight: 700; line-height: 1.5; }
.badge.deal { background: var(--green); color: #fff; }
.badge.new { background: #fff; color: var(--primary); box-shadow: var(--shadow-sm); }
.badge.drop { background: var(--red); color: #fff; }
.badge.soft { background: var(--surface-2); color: var(--text-2); }
.badge.soft-green { background: var(--green-50); color: var(--green); }
.badge.soft-red { background: var(--red-50); color: var(--red); }
.badge.soft-amber { background: var(--amber-50); color: var(--amber); }
.l-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.l-cat { font-size: .76rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.l-title { font-weight: 600; font-size: .93rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.specs { display: flex; flex-wrap: wrap; gap: 6px; }
.spec { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; color: var(--text-2); background: var(--surface-2); padding: 2px 8px; border-radius: 6px; }
.spec .i { width: .95em; height: .95em; color: var(--muted); }
.l-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 6px; }
.price { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.price .unit { font-weight: 600; font-size: .8rem; color: var(--muted); }
.price.none { font-size: .9rem; color: var(--muted); font-weight: 600; }
.time { font-size: .78rem; color: var(--muted); white-space: nowrap; }

/* Saraksta rinda (cenu kritumi) */
.rows { display: flex; flex-direction: column; }
.row-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); color: var(--text); }
.row-item:last-child { border-bottom: none; }
.row-item:hover { color: var(--text); }
.row-item:hover .row-title { color: var(--primary); }
.row-thumb { width: 64px; height: 48px; border-radius: 8px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; color: var(--border-strong); }
.row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.row-title { font-weight: 600; font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.row-meta { font-size: .78rem; color: var(--muted); }
.row-price { text-align: right; }
.row-price s { color: var(--muted); font-size: .8rem; display: block; }
.row-price b { font-size: 1rem; }

/* ---------- Funkciju josla ---------- */
.feature-band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.steps { display: grid; gap: 14px; margin: 22px 0 26px; }
.step { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.step-n { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-50); color: var(--primary); font-weight: 800; }
.step b { display: block; margin-bottom: 2px; }
.step span { color: var(--muted); font-size: .92rem; }

.mail-mock { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; }
.mail-top { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.mail-top .brand-mark { width: 38px; height: 38px; }
.mail-top b { display: block; font-size: .92rem; }
.mail-top span { font-size: .8rem; color: var(--muted); }
.mail-body { padding: 8px 18px 14px; }
.mail-item { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--border); }
.mail-item:last-child { border-bottom: none; }
.mail-item .ph { width: 72px; height: 54px; border-radius: 8px; overflow: hidden; background: var(--surface-2); }
.mail-item .ph img { width: 100%; height: 100%; object-fit: cover; }
.mail-item b { font-size: .86rem; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.mail-item small { color: var(--muted); font-size: .78rem; }

/* ---------- Statistika ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: flex; gap: 14px; align-items: center; }
.kpi-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-50); color: var(--primary); flex: none; }
.kpi-icon.green { background: var(--green-50); color: var(--green); }
.kpi-icon.red { background: var(--red-50); color: var(--red); }
.kpi-icon.amber { background: var(--amber-50); color: var(--amber); }
.kpi-icon .i { width: 22px; height: 22px; }
.kpi b { display: block; font-size: 1.55rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.kpi span { font-size: .84rem; color: var(--muted); }

.chart-card h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.chart-card .sub { color: var(--muted); font-size: .85rem; margin-bottom: 14px; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .axis { stroke: var(--border); stroke-width: 1; }
.chart .grid-line { stroke: var(--border); stroke-dasharray: 3 4; }
.chart text { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart .bar { fill: var(--primary); }
.chart .bar.alt { fill: #a5b4fc; }
.chart .bar:hover { fill: var(--accent); }
.chart .line { fill: none; stroke: var(--primary); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot { fill: var(--surface); stroke: var(--primary); stroke-width: 2; }
.chart .val { fill: var(--text-2); font-weight: 600; }

.hbars { display: flex; flex-direction: column; gap: 10px; }
.hbar { display: grid; grid-template-columns: minmax(110px, 180px) 1fr auto; gap: 12px; align-items: center; font-size: .88rem; }
.hbar .label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); font-weight: 550; }
.hbar .track { display: block; height: 10px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.hbar .fill { display: block; height: 100%; border-radius: 99px; background: var(--grad); }
.hbar .num { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 70px; text-align: right; }

table.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.data th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 650; padding: 10px 12px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
table.data td { padding: 11px 12px; border-bottom: 1px solid var(--border); }
table.data tr:last-child td { border-bottom: none; }
table.data .r { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.two-col > *, .three-col > *, .split > *, .detail > *, .browse > *, .hero .container > * { min-width: 0; }

/* ---------- Saraksta lapa ---------- */
.browse { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; padding-bottom: 50px; }
.filters { position: sticky; top: 86px; }
.filters .card { padding: 18px; }
.filters h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar .count { color: var(--muted); }
.toolbar .count b { color: var(--text); }
.subcats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }

.pager { display: flex; gap: 6px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 40px; height: 40px; padding: 0 12px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-weight: 600; }
.pager a:hover { border-color: var(--primary); color: var(--primary); }
.pager .cur { background: var(--primary); border-color: var(--primary); color: #fff; }
.pager .gap { border: none; background: none; }

.empty { text-align: center; padding: 60px 20px; background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--radius); color: var(--muted); }
.empty .i { width: 40px; height: 40px; margin-bottom: 10px; color: var(--border-strong); }
.empty b { display: block; color: var(--text); font-size: 1.05rem; margin-bottom: 4px; }

.cta-box { background: var(--grad); color: #fff; border-radius: var(--radius); padding: 20px; margin-top: 16px; }
.cta-box b { display: block; font-size: 1rem; margin-bottom: 4px; }
.cta-box p { color: #e0e7ff; font-size: .88rem; }

/* ---------- Sludinājuma lapa ---------- */
.detail { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: start; }
.gallery { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.gallery .main { aspect-ratio: 4 / 3; background: var(--surface-2); display: grid; place-items: center; color: var(--border-strong); }
.gallery .main img { width: 100%; height: 100%; object-fit: contain; background: #0f172a; }
.gallery .main .i { width: 64px; height: 64px; }
.gallery .note { padding: 10px 14px; font-size: .78rem; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.detail-head h1 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 750; line-height: 1.3; }
.big-price { font-size: 2.2rem; font-weight: 850; letter-spacing: -0.03em; margin: 14px 0 4px; }
.big-price .unit { font-size: 1rem; color: var(--muted); font-weight: 600; }
.deal-box { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 12px; margin: 14px 0; font-size: .9rem; }
.deal-box.good { background: var(--green-50); color: #065f46; }
.deal-box.bad { background: var(--amber-50); color: #92400e; }
.deal-box.neutral { background: var(--surface-2); color: var(--text-2); }
.deal-box .i { width: 22px; height: 22px; flex: none; }
.spec-table { width: 100%; border-collapse: collapse; margin: 6px 0 18px; }
.spec-table td { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .92rem; vertical-align: top; }
.spec-table td:first-child { color: var(--muted); width: 42%; }
.spec-table td:last-child { font-weight: 600; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.meta-line { display: flex; gap: 16px; flex-wrap: wrap; font-size: .84rem; color: var(--muted); margin-top: 14px; }
.meta-line span { display: inline-flex; gap: 6px; align-items: center; }

.range { position: relative; height: 54px; margin: 18px 6px 4px; }
.range .bar { position: absolute; top: 20px; left: 0; right: 0; height: 10px; border-radius: 99px; background: linear-gradient(90deg, #34d399, #fbbf24 55%, #f87171); }
.range .iqr { position: absolute; top: 16px; height: 18px; border: 2px solid rgba(15,23,42,.35); border-radius: 6px; }
.range .mark { position: absolute; top: 6px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; }
.range .mark .pin { width: 4px; height: 38px; border-radius: 4px; background: var(--text); }
.range .mark .lbl { position: absolute; top: -18px; font-size: .74rem; font-weight: 700; background: var(--text); color: #fff; padding: 1px 7px; border-radius: 6px; white-space: nowrap; }
.range-ends { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.timeline li:last-child { border-bottom: none; }

/* ---------- Formas ---------- */
label { display: block; font-weight: 600; font-size: .86rem; margin: 14px 0 6px; color: var(--text-2); }
label:first-child { margin-top: 0; }
.hint { font-weight: 400; color: var(--muted); font-size: .8rem; }
input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea {
    width: 100%; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: 10px;
    background: var(--surface); color: var(--text); font: inherit; font-size: .93rem; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-100); }
.searchbar input:focus, .searchbar select:focus { box-shadow: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: .9rem; color: var(--text-2); cursor: pointer; }
.check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--primary); flex: none; }
.validation-message { color: var(--red); font-size: .8rem; margin-top: 4px; }
.msg { border-radius: 12px; padding: 14px 16px; margin-bottom: 16px; display: flex; gap: 10px; align-items: flex-start; }
.msg .i { width: 20px; height: 20px; margin-top: 1px; }
.msg.ok { background: var(--green-50); color: #065f46; }
.msg.err { background: var(--red-50); color: #991b1b; }
.form-actions { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }

/* Pārvaldība */
.sub-item { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.sub-item .meta { color: var(--muted); font-size: .86rem; word-break: break-all; margin-top: 4px; }
.sub-item .acts { display: flex; gap: 8px; flex-wrap: wrap; }
form.inline { display: inline; }

/* Saturs, FAQ */
.prose { max-width: 780px; }
.prose h2 { margin: 32px 0 12px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--text-2); padding-bottom: 14px; margin: 0; }

.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--primary-50); color: #3730a3; font-size: .88rem; }
.notice .i { width: 20px; height: 20px; flex: none; margin-top: 1px; }

/* ---------- Kājene ---------- */
.site-footer { background: #0b1020; color: #94a3b8; margin-top: 40px; font-size: .9rem; }
.site-footer .container { padding-top: 48px; padding-bottom: 28px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.site-footer .brand { color: #fff; }
.site-footer h4 { color: #e2e8f0; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #94a3b8; }
.site-footer a:hover { color: #fff; }
.foot-bottom { border-top: 1px solid #1e293b; margin-top: 32px; padding-top: 20px; font-size: .8rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

#blazor-error-ui { display: none; }

/* ---------- Pielāgošanās ekrāniem ---------- */
@media (max-width: 1100px) {
    .cat-grid { grid-template-columns: repeat(4, 1fr); }
    .grid { grid-template-columns: repeat(3, 1fr); }
    .kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .hero .container { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; padding-bottom: 48px; }
    .split, .detail, .two-col { grid-template-columns: 1fr; }
    .three-col { grid-template-columns: 1fr; }
    .browse { grid-template-columns: 1fr; }
    .filters { position: static; }
    .grid, .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
    .foot-grid { grid-template-columns: 1fr 1fr; }
    .site-header .container { height: auto; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; gap: 10px; }
    .main-nav { order: 3; flex-basis: 100%; overflow-x: auto; scrollbar-width: none; }
    .main-nav::-webkit-scrollbar { display: none; }
}
@media (max-width: 600px) {
    .container { padding: 0 16px; }
    body { font-size: 14.5px; }
    .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .grid, .grid.cols-3 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .l-body { padding: 10px 12px 12px; }
    .specs { display: none; }
    .price { font-size: 1rem; }
    .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
    .kpi { padding: 14px; flex-direction: column; align-items: flex-start; gap: 8px; }
    .searchbar { flex-wrap: wrap; }
    .searchbar select { max-width: none; border-left: none; border-top: 1px solid var(--border); flex-basis: 100%; }
    .searchbar .btn { flex: 1; }
    .header-cta .label { display: none; }
    .foot-grid { grid-template-columns: 1fr; }
    .hbar { grid-template-columns: 100px 1fr auto; }
    .section { padding-block: 32px; }
    .row2 { grid-template-columns: 1fr 1fr; }
}

/* ---------- Vēstures filtri ---------- */
.filter-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; align-items: end; }
.filter-row label { margin-top: 0; }
.filter-go .btn { width: 100%; }

/* ---------- Novērtējums / uzticamība ---------- */
.val-main { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 10px; flex-wrap: wrap; }
.val-main > div:first-child b { display: block; font-size: 1.7rem; font-weight: 850; letter-spacing: -0.02em; line-height: 1.15; }
.val-main > div:first-child span { display: block; }
.val-diff { border-radius: 12px; padding: 10px 14px; text-align: right; min-width: 150px; }
.val-diff b { display: block; font-size: 1.1rem; }
.val-diff span { font-size: .8rem; }
.val-diff.good { background: var(--green-50); color: #065f46; }
.val-diff.ok, .val-diff.neutral { background: var(--surface-2); color: var(--text-2); }
.val-diff.bad { background: var(--amber-50); color: #92400e; }
.card.valuation { border-color: #c7d2fe; background: linear-gradient(180deg, #f5f7ff, var(--surface) 60%); }

/* ---------- Rīku kartītes ---------- */
.tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tool { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
        color: var(--text); position: relative; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.tool::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--c); }
.tool:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--text); }
.tool .cat-icon { color: var(--c); background: color-mix(in srgb, var(--c) 12%, white); }
.tool b { font-size: 1.05rem; }
.tool span:not(.cat-icon) { color: var(--muted); font-size: .9rem; flex: 1; }
.tool em { font-style: normal; font-weight: 650; color: var(--c); font-size: .9rem; }
@media (max-width: 1100px) { .tools { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tools { grid-template-columns: 1fr; } }

/* ---------- Pārpublicēšana / nobraukums ---------- */
.deal-box.danger { background: var(--red-50); color: #991b1b; }
.deal-box a { color: inherit; font-weight: 650; text-decoration: underline; }
.badge.repost { background: #fff7ed; color: #c2410c; box-shadow: var(--shadow-sm); }

/* ---------- Paziņojumu kanāli ---------- */
.channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 8px; }
.channel { display: flex; flex-direction: column; gap: 12px; margin: 0 !important; }
.channel p { margin: 2px 0 0; }
.channel .btn, .channel form { margin-top: auto; align-self: flex-start; }
@media (max-width: 900px) { .channels { grid-template-columns: 1fr; } }

/* ---------- Sadaļu izvēle un priekšskatījums ---------- */
.cat-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cat-picker select:first-child { grid-column: 1 / -1; }
.cat-picker select[hidden] { display: none; }
.url-details { margin-top: 10px; font-size: .86rem; }
.url-details summary { cursor: pointer; color: var(--muted); }
.url-details[open] summary { margin-bottom: 8px; }
.url-details .hint { display: block; margin-top: 4px; }
.card.preview { border-color: #c7d2fe; background: linear-gradient(180deg, #f5f7ff, var(--surface) 70%); }
.pv-head { display: flex; align-items: baseline; gap: 10px; }
.pv-head b { font-size: 2rem; font-weight: 850; letter-spacing: -0.03em; color: var(--primary); }
.pv-head span { color: var(--text-2); font-weight: 600; }
.pv-item { display: grid; grid-template-columns: 56px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border); color: var(--text); align-items: center; }
.pv-item:hover .pv-title { color: var(--primary); }
.pv-img { width: 56px; height: 42px; border-radius: 6px; overflow: hidden; background: var(--surface-2); }
.pv-img img { width: 100%; height: 100%; object-fit: cover; }
.pv-title { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; font-size: .86rem; font-weight: 600; }
.pv-item .small { display: block; }
@media (max-width: 600px) { .cat-picker { grid-template-columns: 1fr; } }

/* ---------- Plāns / profils / cenas ---------- */
.plan-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); margin: 6px 0 18px; }
.plan-strip.pro { border-color: #a7f3d0; background: var(--green-50); }
.plan-strip .btn { margin-left: auto; }
.pricing { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 900px; margin: 0 auto; }
.price-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px; }
.price-card.featured { border: 2px solid var(--primary); box-shadow: var(--shadow-lg); }
.price-card .ribbon { position: absolute; top: -12px; left: 24px; }
.price-card .amount { font-size: 2.6rem; font-weight: 850; letter-spacing: -0.03em; line-height: 1; }
.price-card .amount small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.price-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.price-card li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); }
.price-card li .i { color: var(--green); margin-top: 3px; }
.price-card li.no { color: var(--muted); }
.price-card li.no .i { color: var(--border-strong); }
.price-card .form-actions { margin-top: auto; }
.profile-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.avatar { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; font-size: 1.4rem; }
@media (max-width: 760px) { .pricing { grid-template-columns: 1fr; } }

/* Ieslēgto filtru josla meklēšanā */
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; padding: 10px 14px; border-radius: 12px; background: var(--primary-soft, #eef2ff); color: var(--text-2); font-size: .9rem; }
.active-filters > svg, .active-filters > .icon { width: 16px; height: 16px; }
.active-filters .chip { margin: 0; }
.active-filters > a:last-child { font-weight: 600; margin-left: auto; }

/* Ienākšana / reģistrācija */
.auth-card { padding: 32px; }
.google-btn { display: flex; align-items: center; justify-content: center; gap: 10px; }
.or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted, #64748b); font-size: .85rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
details.magic { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border); }
details.magic summary { cursor: pointer; font-weight: 600; color: var(--primary); font-size: .92rem; }
details.magic[open] summary { margin-bottom: 8px; }
.perks { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.perks li { display: flex; gap: 10px; align-items: center; color: var(--text-2); font-size: .92rem; }
.perks .i { color: var(--primary); }

/* Profila panelis */
.msg.warn { background: var(--amber-50); color: #92400e; }
.dash-section { margin-top: 34px; }
.dash-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.dash-head h2 { display: flex; gap: 8px; align-items: center; font-size: 1.25rem; margin: 0; }
.empty-mini { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; color: var(--text-2); margin: 0; }
.empty-mini > span:nth-child(2) { flex: 1; min-width: 220px; }
.empty-mini > .i { color: var(--primary); width: 22px; height: 22px; }
.watch-list { display: grid; gap: 10px; }
.watch-row { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px 10px 10px; }
.watch-row.gone { opacity: .72; }
.watch-img { width: 84px; height: 64px; border-radius: 10px; overflow: hidden; flex: none; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); }
.watch-img img { width: 100%; height: 100%; object-fit: cover; }
.watch-main { flex: 1; min-width: 0; }
.watch-title { font-weight: 650; color: var(--text); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.watch-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.watch-price { text-align: right; flex: none; display: grid; gap: 2px; }
.watch-price b { font-size: 1.1rem; }
.watch-price .down { color: var(--green); font-weight: 650; font-size: .85rem; }
.watch-price .up { color: var(--red); font-weight: 650; font-size: .85rem; }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
    .watch-row { flex-wrap: wrap; }
    .watch-main { min-width: calc(100% - 100px); }
    .watch-price { text-align: left; }
}
@media (max-width: 700px) { .hide-sm { display: none !important; } }

/* Administrācija */
.admin-h { display: flex; gap: 8px; align-items: center; font-size: 1.2rem; margin: 34px 0 14px; }
.admin-list { margin: 10px 0 0; padding-left: 0; list-style: none; display: grid; gap: 8px; }
.admin-list li { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; }
.admin-list li a, .admin-list li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.admin-table th, .admin-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.admin-table th { color: var(--muted); font-weight: 600; font-size: .8rem; background: var(--surface-2); }
.admin-table form.inline { display: inline; }

/* Kārtošanas izvēlne */
.sort-menu { position: relative; }
.sort-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); font-size: .9rem; }
.sort-menu summary::-webkit-details-marker { display: none; }
.sort-menu .i { width: 16px; height: 16px; }
.sort-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 30px rgba(15,23,42,.12); padding: 6px; min-width: 210px; display: grid; }
.sort-pop a { padding: 9px 12px; border-radius: 8px; color: var(--text); font-size: .9rem; }
.sort-pop a:hover { background: var(--surface-2); }
.sort-pop a.on { font-weight: 700; color: var(--primary); }

/* Auto vēstures pārbaude */
.vc-steps { margin: 4px 0 12px; padding-left: 20px; color: var(--text-2); font-size: .9rem; display: grid; gap: 4px; }
.vc-form input { width: 100%; text-transform: uppercase; letter-spacing: .04em; }
.vc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
@media (max-width: 420px) { .vc-actions { grid-template-columns: 1fr; } }

/* ---------- Mobilā izvēlne ---------- */
.mnav { display: none; }
@media (max-width: 900px) {
    .site-header .main-nav { display: none; }
    .site-header .container { flex-wrap: nowrap; }
    .header-cta { margin-left: auto; }
    .mnav { display: block; order: 5; }
    .mnav summary {
        list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
        padding: 7px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface);
        font-weight: 650; font-size: .9rem; color: var(--text); user-select: none;
    }
    .mnav summary::-webkit-details-marker { display: none; }
    .mnav summary .i { width: 18px; height: 18px; }
    .mnav[open] summary { background: var(--primary-50); border-color: var(--primary); color: var(--primary); }
    .mnav-panel {
        position: absolute; left: 0; right: 0; top: 100%;
        background: var(--surface); border-bottom: 1px solid var(--border);
        box-shadow: 0 18px 40px rgba(15, 23, 42, .16); padding: 14px 16px 18px;
        max-height: calc(100vh - 70px); overflow-y: auto;
    }
    .mnav-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .mnav-grid a {
        display: flex; align-items: center; gap: 10px; padding: 13px 12px; border-radius: 12px;
        background: var(--surface-2); color: var(--text); font-weight: 600; font-size: .93rem;
    }
    .mnav-grid a .i { color: var(--primary); width: 20px; height: 20px; flex: none; }
    .mnav-grid a.active { background: var(--primary-50); color: var(--primary); }
    .mnav-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
    .mnav-foot .btn:only-child { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
    .site-header .container { gap: 8px; }
    .brand { font-size: 1.05rem; }
    .header-cta .hide-sm { display: none; }
}
[hidden] { display: none !important; }
.price s.old { color: var(--muted); font-weight: 500; font-size: .8em; margin-right: 6px; }

/* Cenu kritumu radars */
.drop-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
.drop-wrap { display: flex; flex-direction: column; }
.drop-wrap .l-card { flex: 1; }
.drop-meta { display: flex; justify-content: space-between; gap: 8px; font-size: .8rem; color: var(--muted); padding: 6px 4px 0; }
.drop-meta span:first-child { color: var(--green); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.drop-meta .i { width: 14px; height: 14px; }

/* Segmentu pārslēgs (karte, cenu kritumi) */
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.seg a { padding: 7px 12px; border-radius: 9px; font-weight: 600; font-size: .86rem; color: var(--text-2); }
.seg a.on { background: var(--primary); color: #fff; }

/* Auto cenas kalkulators */
.car-form { display: grid; grid-template-columns: repeat(5, 1fr) auto; gap: 12px; align-items: end; max-width: 1000px; color: var(--text); }
.car-form label { margin-top: 0; }
.car-go { min-width: 150px; }
@media (max-width: 900px) { .car-form { grid-template-columns: 1fr 1fr; } .car-go { grid-column: 1 / -1; } }
.estimate .est-mid { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -0.03em; margin: 10px 0 6px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.est-bar { height: 12px; border-radius: 99px; background: linear-gradient(90deg, #22c55e, #eab308, #ef4444); position: relative; }
.est-bar span { position: absolute; left: 50%; top: -5px; width: 4px; height: 22px; border-radius: 2px; background: var(--text); transform: translateX(-50%); }
.est-ends { display: flex; justify-content: space-between; margin-top: 8px; font-size: .82rem; color: var(--muted); }
.est-ends b { display: block; color: var(--text); font-size: 1rem; }
.est-ends span:last-child { text-align: right; }
.est-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 12px 0 16px; }
.est-facts b { display: block; font-size: 1.35rem; font-weight: 800; }
.est-facts span { font-size: .8rem; color: var(--muted); }
.calc-link { display: flex; gap: 14px; align-items: center; color: var(--text); } .calc-link b { display: block; } .calc-link:hover { border-color: var(--primary); }
.digest-card { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

/* Galvenes "Vairāk" izvēlne (dators) */
.nav-more { position: relative; }
.nav-more summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 9px; color: var(--text-2); font-weight: 550; font-size: .93rem; white-space: nowrap; }
.nav-more summary::-webkit-details-marker { display: none; }
.nav-more summary:hover, .nav-more[open] summary { background: var(--surface-2); color: var(--text); }
.nav-more summary.active { color: var(--primary); background: var(--primary-50); }
.nav-more summary .i:last-child { width: 14px; height: 14px; }
.nav-more-pop { position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 18px 40px rgba(15,23,42,.14); padding: 6px; min-width: 230px; display: grid; }
.nav-more-pop a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; color: var(--text); font-weight: 550; font-size: .92rem; }
.nav-more-pop a:hover { background: var(--surface-2); }
.nav-more-pop a.active { color: var(--primary); }
.nav-more-pop .i { color: var(--primary); }

/* Paziņojuma formas papildu filtri */
.sub-extra { margin-top: 14px; border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; }
.sub-extra summary { cursor: pointer; font-weight: 600; font-size: .9rem; display: flex; gap: 8px; align-items: center; }
.sub-extra summary .i { color: var(--primary); }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 520px) { .row3 { grid-template-columns: 1fr 1fr; } }

/* "Lietotne" poga: telefonā vienmēr, datorā — tikai, ja pārlūks piedāvā instalēšanu; lietotnē pašā — paslēpta */
.install-btn { display: none; }
.install-btn.ready { display: inline-flex; }
@media (max-width: 900px) { .install-btn { display: inline-flex; } }
@media (display-mode: standalone) { [data-install-app] { display: none !important; } }
[data-install-app].installed { display: none !important; }

/* Instalēšanas josla telefonā */
.install-banner { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 70; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 16px 40px rgba(15,23,42,.22); }
.install-banner .brand-mark { flex: none; }
.ib-text { flex: 1; color: var(--text); display: grid; line-height: 1.25; }
.ib-text b { font-size: .95rem; }
.ib-text span { font-size: .8rem; color: var(--muted); }
.ib-close { border: 0; background: var(--surface-2); color: var(--text-2); width: 34px; height: 34px; border-radius: 10px; font-size: 1.3rem; line-height: 1; cursor: pointer; flex: none; }

/* Apstiprinājuma paziņojums (toast) */
.toast { position: fixed; top: 80px; left: 50%; transform: translateX(-50%); z-index: 90; display: flex; align-items: center; gap: 12px;
    max-width: min(560px, calc(100vw - 32px)); width: max-content; padding: 14px 18px; border-radius: 14px; color: #fff;
    box-shadow: 0 18px 40px rgba(15,23,42,.28); animation: toast-in .35s ease-out, toast-out .5s ease-in 6s forwards; }
.toast.ok { background: #059669; }
.toast.err { background: #dc2626; }
.toast .i { width: 24px; height: 24px; flex: none; }
.toast b { display: block; font-size: .98rem; }
.toast span { display: block; font-size: .85rem; opacity: .9; }
.toast a { color: #fff; font-weight: 700; text-decoration: underline; white-space: nowrap; margin-left: 6px; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, -14px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes toast-out { to { opacity: 0; transform: translate(-50%, -14px); visibility: hidden; } }

/* Vidēji plats ekrāns: galvenes izvēlne kompaktāka, lai viss ietilpst vienā rindā */
@media (min-width: 901px) and (max-width: 1360px) {
    .main-nav { gap: 2px; }
    .main-nav a, .nav-more summary { padding: 8px 9px; font-size: .9rem; }
    .main-nav > a .i { display: none; }
    .header-cta .label { display: none; }
}

/* Kaulēšanās padoms */
.haggle { border: 1px solid var(--primary-50); background: linear-gradient(180deg, var(--primary-50), var(--surface) 60%); }
.hg-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0; }
.hg-facts b { display: block; font-size: 1.3rem; font-weight: 800; }
.hg-facts span { font-size: .78rem; color: var(--muted); }
.hg-offer { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.hg-offer .muted { flex-basis: 100%; }
.hg-offer b { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.badge.hg-good { background: var(--green-50); color: var(--green); }
.badge.hg-mid { background: var(--amber-50); color: var(--amber); }
.badge.hg-low { background: var(--surface-2); color: var(--text-2); }
.hg-reasons { margin: 12px 0 0; padding-left: 18px; display: grid; gap: 4px; font-size: .88rem; color: var(--text-2); }

/* Papildinājuma lapa — paneļa paraugs */
.ext-mock { background: #fff; color: #0f172a; border-radius: 16px; padding: 14px; width: 320px; max-width: 100%; justify-self: end; box-shadow: 0 30px 60px rgba(0,0,0,.35); font-size: 13px; display: grid; gap: 10px; }
.ext-head { display: flex; gap: 8px; align-items: center; border-bottom: 1px solid #eef0f5; padding-bottom: 8px; }
.ext-head span { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; color: #fff; font-weight: 800; background: linear-gradient(135deg, #4f46e5, #a21caf); }
.ext-deal { background: #ecfdf5; color: #047857; font-weight: 700; padding: 8px 10px; border-radius: 9px; }
.ext-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ext-facts div { background: #f5f6fb; border-radius: 9px; padding: 7px 9px; }
.ext-facts small { display: block; color: #64748b; font-size: 11px; }
.ext-offer { border: 1px solid #c7d2fe; background: #eef2ff; border-radius: 10px; padding: 9px 10px; }
.ext-offer small { display: block; color: #4338ca; font-size: 11px; }
.ext-offer b { font-size: 17px; }
.ext-hist { display: flex; justify-content: space-between; color: #334155; }
.ext-hist span:first-child { color: #64748b; }
@media (max-width: 900px) { .ext-mock { justify-self: start; } }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.brand-accent { color: var(--primary); }
.gone-banner { margin: 0 0 18px; }

/* ---------- Bez horizontālas pārplūdes ---------- */
/* Drošība: lapa nekad neritinās uz sāniem (clip — neietekmē "sticky" galveni). */
html, body { max-width: 100%; overflow-x: clip; }
/* Režģu un rindu elementi drīkst sarukt (citādi garš teksts tos izstiepj platāk par ekrānu). */
.grid > *, .drop-wrap, .drop-wrap .l-card, .browse > section, .two-col > *, .kpis > * { min-width: 0; }
.l-title, .l-cat { overflow-wrap: anywhere; }
/* Tabulas telefonā ritinās savā vietā, nevis visa lapa. */
@media (max-width: 900px) {
    table.data { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
/* Telefona galvene: logo + Ienākt + Izvēlne (Paziņojumi un Lietotne ir izvēlnē un apakšējā joslā). */
@media (max-width: 600px) {
    .header-cta [data-install-app], .header-cta a[href="/pazinojumi"] { display: none !important; }
    .site-header .container { gap: 8px; }
    .header-cta { gap: 6px; }
    .mnav summary { padding: 7px 10px; }
}
@media (max-width: 360px) { .mnav summary span { display: none; } }
.row-item > * { min-width: 0; }
@media (max-width: 600px) { .row-item { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; } .row-price .badge { display: none; } }
.l-foot { flex-wrap: wrap; row-gap: 2px; } .l-foot .time { white-space: nowrap; margin-left: auto; }

/* Sekoto sludinājumu rinda: garš virsraksts tiek saīsināts ar "…", nevis izstiepj kartīti */
.watch-row { min-width: 0; }
.watch-main { flex: 1 1 0; min-width: 0; }
@media (max-width: 600px) {
    .watch-main { flex: 1 1 calc(100% - 110px); }
    .watch-price { flex: 1; }
    .profile-head { gap: 12px; }
}
.admin-list li > :first-child { flex: 1; min-width: 0; } .admin-list li > b { flex: none; }
.admin-list { grid-template-columns: minmax(0, 1fr); } .admin-list li { min-width: 0; }
