:root {
    --bg: #f4f6fb;
    --bg-soft: #eaf0fa;
    --surface: #ffffff;
    --surface-2: #f1f5fb;
    --text: #0c1524;
    --muted: #5a6b84;
    --border: #dce4f0;
    --primary: #2563eb;
    --primary-strong: #1e40af;
    --primary-soft: #e3ecff;
    --accent: #06b6d4;
    --success: #059669;
    --warning: #d97706;
    --danger: #dc2626;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 12px 32px rgba(15, 23, 42, .08);
    --shadow-sm: 0 4px 14px rgba(15, 23, 42, .06);
    --header-bg: rgba(255, 255, 255, .86);
    --code-bg: #eef2f8;
    color-scheme: light;
}

[data-theme="dark"] {
    --bg: #070c16;
    --bg-soft: #0b1322;
    --surface: #0f1828;
    --surface-2: #142034;
    --text: #e8eefb;
    --muted: #94a3b8;
    --border: #24314a;
    --primary: #5b8cff;
    --primary-strong: #7aa2ff;
    --primary-soft: #172749;
    --accent: #22d3ee;
    --success: #34d399;
    --warning: #fbbf24;
    --danger: #f87171;
    --shadow: 0 18px 40px rgba(0, 0, 0, .45);
    --shadow-sm: 0 6px 18px rgba(0, 0, 0, .35);
    --header-bg: rgba(7, 12, 22, .86);
    --code-bg: #101c30;
    color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-strong); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.02em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-inline-start: 1.2em; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
code { background: var(--code-bg); padding: .1em .35em; border-radius: 6px; font-size: .9em; }
pre { background: var(--code-bg); padding: 1rem; border-radius: var(--radius-sm); overflow: auto; }
hr.divider { border: 0; border-top: 1px solid var(--border); margin: 1.6rem 0; }

.container { width: min(1200px, 100% - 2rem); margin-inline: auto; }
.container.narrow { width: min(820px, 100% - 2rem); }
.site-main { min-height: 60vh; padding-bottom: 3rem; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; inset-inline-start: 1rem; top: -4rem; background: var(--primary);
    color: #fff; padding: .6rem 1rem; border-radius: 8px; z-index: 1000; transition: top .2s;
}
.skip-link:focus { top: 1rem; color: #fff; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.block { display: block; }
.break { word-break: break-all; }
.plain-list { list-style: none; margin: 0; padding: 0; }
.center { text-align: center; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 90;
    background: var(--header-bg);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 1.2rem; padding-block: .7rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--text); min-width: 0; }
.brand:hover { color: var(--text); }
.brand-logo { border-radius: 10px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text strong { font-size: 1rem; white-space: nowrap; }
.brand-text small { color: var(--muted); font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.primary-nav { display: flex; align-items: center; gap: .2rem; margin-inline-start: auto; }
.primary-nav a, .primary-nav summary {
    display: inline-flex; align-items: center; gap: .3rem; padding: .45rem .7rem; border-radius: 9px;
    color: var(--text); font-size: .93rem; cursor: pointer; list-style: none;
}
.primary-nav a:hover, .primary-nav summary:hover { background: var(--surface-2); color: var(--primary); }
.primary-nav summary::-webkit-details-marker { display: none; }
.header-actions { display: flex; align-items: center; gap: .35rem; }
.icon-btn {
    display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
    background: transparent; border: 1px solid transparent; border-radius: 10px; color: var(--text);
    cursor: pointer; font-size: 1rem;
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--border); color: var(--primary); }
.theme-moon { display: none; }
[data-theme="dark"] .theme-sun { display: none; }
[data-theme="dark"] .theme-moon { display: block; }
.avatar {
    width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem;
}
.dropdown { position: relative; }
.dropdown > summary { list-style: none; cursor: pointer; }
.dropdown > summary::-webkit-details-marker { display: none; }
.dropdown-panel {
    position: absolute; inset-inline-end: 0; top: calc(100% + .55rem); min-width: 190px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
    box-shadow: var(--shadow); padding: .4rem; display: grid; gap: .1rem; z-index: 100;
}
.dropdown-panel a, .dropdown-panel .link-btn {
    display: block; width: 100%; text-align: start; padding: .5rem .65rem; border-radius: 8px;
    color: var(--text); font-size: .9rem; background: none; border: 0; cursor: pointer;
}
.dropdown-panel a:hover, .dropdown-panel .link-btn:hover { background: var(--surface-2); }
.dropdown-panel a[aria-current="true"] { color: var(--primary); font-weight: 600; }
.user-menu summary { display: inline-flex; }
.nav-toggle { display: none; }
.burger, .burger::before, .burger::after { display: block; width: 20px; height: 2px; background: currentColor; position: relative; transition: .2s; }
.burger::before, .burger::after { content: ""; position: absolute; }
.burger::before { top: -6px; }
.burger::after { top: 6px; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
    padding: .65rem 1.1rem; border-radius: 10px; border: 1px solid transparent;
    font-weight: 600; font-size: .94rem; cursor: pointer; line-height: 1.2;
    background: var(--surface-2); color: var(--text); transition: .18s ease;
}
.btn:hover { transform: translateY(-1px); color: var(--text); }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-strong); border-color: var(--primary-strong); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(.92); color: #fff; }
.btn-warning { background: var(--warning); border-color: var(--warning); color: #1b1204; }
.btn-sm { padding: .4rem .7rem; font-size: .82rem; border-radius: 8px; }
.btn-block { width: 100%; }
.btn.is-disabled { opacity: .65; pointer-events: none; }
.link-btn { background: none; border: 0; padding: 0; color: var(--primary); cursor: pointer; font: inherit; }
.button-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }

/* Alerts */
.alert { border-radius: var(--radius-sm); padding: .85rem 1rem; margin: 1rem 0; border: 1px solid transparent; }
.alert-success { background: color-mix(in srgb, var(--success) 12%, var(--surface)); border-color: color-mix(in srgb, var(--success) 35%, transparent); color: var(--text); }
.alert-error { background: color-mix(in srgb, var(--danger) 10%, var(--surface)); border-color: color-mix(in srgb, var(--danger) 35%, transparent); color: var(--text); }
.alert ul { margin: 0; }

/* Hero */
.hero {
    position: relative; overflow: hidden; padding: 3.4rem 0 2.6rem;
    background:
        radial-gradient(900px 420px at 15% -10%, color-mix(in srgb, var(--primary) 20%, transparent), transparent 65%),
        radial-gradient(700px 360px at 95% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%),
        var(--bg);
    border-bottom: 1px solid var(--border);
}
.hero-inner { display: grid; gap: 1.6rem; }
.hero-copy { max-width: 820px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .76rem; font-weight: 700; color: var(--primary); margin-bottom: .7rem; }
.hero .lead { font-size: clamp(1rem, 2vw, 1.2rem); color: var(--muted); max-width: 720px; }
.hero-search .search-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); }
.stats-strip {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; margin: .4rem 0 0;
}
.stats-strip > div {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: .75rem 1rem; box-shadow: var(--shadow-sm);
}
.stats-strip dt { font-size: .76rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.stats-strip dd { margin: 0; font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; }

/* Search form */
.search-main { display: flex; gap: .6rem; }
.search-main input {
    flex: 1; min-width: 0; padding: .85rem 1rem; border-radius: 10px; border: 1px solid var(--border);
    background: var(--surface-2); color: var(--text); font-size: 1rem;
}
.search-main input:focus { outline: 2px solid color-mix(in srgb, var(--primary) 45%, transparent); border-color: var(--primary); }
.search-filters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .6rem; margin-top: .7rem; }
.search-filters label, .filter-bar label, .stack-form label, .form-grid label { display: flex; flex-direction: column; gap: .3rem; font-size: .82rem; font-weight: 600; color: var(--muted); }
.search-filters select, .search-filters input,
.filter-bar select, .filter-bar input,
input[type="text"], input[type="email"], input[type="password"], input[type="search"],
input[type="number"], input[type="date"], select, textarea {
    width: 100%; padding: .6rem .7rem; border-radius: 9px; border: 1px solid var(--border);
    background: var(--surface); color: var(--text); font: inherit; font-size: .92rem;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--primary) 40%, transparent); border-color: var(--primary); }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); }
.checkbox { flex-direction: row !important; align-items: center; gap: .55rem !important; font-weight: 500 !important; color: var(--text) !important; }

/* Sections */
.section { padding: 2.6rem 0; }
.section-alt { background: var(--bg-soft); border-block: 1px solid var(--border); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.section-head h2 { margin: 0; }
.text-link { font-weight: 600; font-size: .9rem; white-space: nowrap; }
.subsection { margin-top: 2.2rem; }
.page-head { margin-bottom: 1.4rem; }
.page-head h1 { margin-bottom: .3rem; }
.lead { color: var(--muted); }

/* Grids */
.grid { display: grid; gap: 1rem; }
.cards-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.brands-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.category-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin: 1.4rem 0; }
.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.plans-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: stretch; }

/* Cards */
.card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); overflow: hidden;
}
.card.padded { padding: 1.4rem; }
.product-card { display: flex; flex-direction: column; transition: .18s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); }
.card-media { aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.card-eyebrow { font-size: .76rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.card-title { margin: 0; font-size: 1.02rem; }
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--primary); }
.card-meta { display: flex; flex-wrap: wrap; gap: .3rem; }
.card-footer { display: flex; justify-content: space-between; gap: .5rem; margin-top: auto; padding-top: .35rem; }
.tag {
    display: inline-flex; align-items: center; gap: .25rem; padding: .2rem .55rem; border-radius: 999px;
    background: var(--surface-2); border: 1px solid var(--border); font-size: .74rem; color: var(--muted);
}
.tag-strong { background: var(--primary-soft); border-color: transparent; color: var(--primary); font-weight: 700; }
.tag-success { background: color-mix(in srgb, var(--success) 14%, transparent); border-color: transparent; color: var(--success); font-weight: 700; }
.tag-row { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }

.brand-tile, .category-tile {
    display: flex; align-items: center; gap: .8rem; padding: 1rem; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); box-shadow: var(--shadow-sm);
    transition: .18s ease;
}
.brand-tile:hover, .category-tile:hover { border-color: var(--primary); transform: translateY(-2px); color: var(--text); }
.category-tile { flex-direction: column; align-items: flex-start; gap: .15rem; }
.brand-initial {
    width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--primary-soft); color: var(--primary);
    display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem;
}
.chip-list { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .8rem; }
.chip {
    display: inline-flex; align-items: center; gap: .4rem; padding: .38rem .7rem; border-radius: 999px;
    border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: .86rem;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip-count { background: var(--surface-2); border-radius: 999px; padding: 0 .45rem; font-size: .75rem; color: var(--muted); }
.chip-remove { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 1rem; line-height: 1; }

/* Brand / model pages */
.brand-head, .model-head { display: flex; gap: 1.4rem; align-items: flex-start; margin-bottom: 1.6rem; }
.brand-logo-lg { width: 96px; height: 96px; border-radius: 20px; object-fit: cover; border: 1px solid var(--border); background: var(--surface); }
.brand-logo-fallback { display: inline-flex; align-items: center; justify-content: center; font-size: 2.2rem; font-weight: 800; color: var(--primary); background: var(--primary-soft); }
.model-cover img { width: 100%; max-width: 360px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-2); }
.spec-list { display: grid; gap: .4rem; margin: .8rem 0; }
.spec-list > div { display: flex; gap: .5rem; font-size: .9rem; }
.spec-list dt { font-weight: 700; min-width: 120px; }
.spec-list dd { margin: 0; color: var(--muted); }
.inline-form select { width: auto; }
.filter-bar {
    display: flex; flex-wrap: wrap; gap: .7rem; align-items: flex-end; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius); padding: .9rem; margin-bottom: 1.4rem;
}
.filter-bar label { min-width: 140px; }
.filter-actions { display: flex; gap: .4rem; margin-inline-start: auto; }
.results-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 1.4rem; align-items: start; }
.filters { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem; }
.filters h2 { font-size: 1.05rem; }
.filters form { display: grid; gap: .8rem; }

/* Breadcrumbs */
.breadcrumbs { padding-top: 1.2rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0; font-size: .83rem; color: var(--muted); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-inline-start: .4rem; color: var(--border); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs [aria-current="page"] { color: var(--text); }

/* Product */
.product-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 1.6rem; align-items: start; }
.product-head h1 { margin-bottom: .5rem; }
.product-cover img { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface-2); }
.product-section { margin-top: 2rem; }
.product-section h2 { font-size: 1.25rem; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .7rem; margin: 0; }
.detail-grid > div { background: var(--surface-2); border-radius: 10px; padding: .7rem .8rem; }
.detail-grid dt { font-size: .76rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.detail-grid dd { margin: .15rem 0 0; font-weight: 600; }
.product-side { position: sticky; top: 90px; display: grid; gap: 1rem; }
.download-panel { padding: 1.2rem; }
.download-panel h2 { font-size: 1.15rem; }
.file-name { word-break: break-all; margin: 0; }
.file-size { font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; margin: .2rem 0 .9rem; }
.plan-mini { display: grid; gap: .35rem; margin: 0 0 .9rem; }
.plan-mini > div { display: flex; justify-content: space-between; gap: .6rem; font-size: .85rem; }
.plan-mini dt { color: var(--muted); }
.plan-mini dd { margin: 0; font-weight: 700; }
.side-note { padding: 1rem; }
.guide-list { display: grid; gap: .6rem; }
.guide, .prose details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .8rem 1rem; }
.guide summary { cursor: pointer; font-weight: 600; }
.guide .prose { margin-top: .7rem; }

/* ZIP explorer */
.zip-explorer { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.zip-head, .zip-dir > details > summary, .zip-file {
    display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: .5rem; align-items: center;
    padding: .45rem .8rem; font-size: .86rem;
}
.zip-head { background: var(--surface-2); font-weight: 700; color: var(--muted); }
.zip-list { list-style: none; margin: 0; padding: 0; }
.zip-list .zip-list { padding-inline-start: 1rem; border-inline-start: 1px dashed var(--border); margin-inline-start: .9rem; }
.zip-dir > details > summary { cursor: pointer; list-style: none; }
.zip-dir > details > summary::-webkit-details-marker { display: none; }
.zip-dir > details > summary::before { content: "▸"; color: var(--muted); margin-inline-end: .4rem; }
.zip-dir > details[open] > summary::before { content: "▾"; }
.zip-file { border-top: 1px solid color-mix(in srgb, var(--border) 60%, transparent); }
.zip-name, .zip-folder { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zip-size { color: var(--muted); text-align: end; font-size: .78rem; }

/* Premium */
.plan-card { padding: 1.4rem; display: flex; flex-direction: column; position: relative; }
.plan-card h2 { font-size: 1.2rem; }
.plan-price { font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; margin: .2rem 0 .5rem; }
.plan-price span { font-size: .85rem; font-weight: 500; color: var(--muted); }
.feature-list { list-style: none; padding: 0; margin: 0 0 1.1rem; display: grid; gap: .4rem; font-size: .9rem; }
.feature-list li::before { content: "✓"; color: var(--success); font-weight: 800; margin-inline-end: .45rem; }
.plan-card .btn, .plan-card .payment-details { margin-top: auto; }
.plan-card.is-current { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), var(--shadow-sm); }
.plan-card.is-recommended::after {
    content: "Recommended"; position: absolute; inset-inline-end: 1rem; top: 1rem;
    background: var(--primary); color: #fff; font-size: .68rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px;
}
.plan-badge { font-size: .72rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .08em; }
.payment-details > summary { list-style: none; text-align: center; }
.payment-details > summary::-webkit-details-marker { display: none; }
.payment-details[open] > summary { margin-bottom: .8rem; }
.stack-form { display: grid; gap: .8rem; }
.stack-form.narrow-form { max-width: 420px; }

/* Auth */
.auth-section { padding: 3rem 0; }
.auth-card { padding: 2rem; max-width: 520px; margin-inline: auto; }
.auth-card h1 { font-size: 1.7rem; }
.auth-links { font-size: .88rem; margin: .8rem 0 0; color: var(--muted); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }

/* Account */
.account-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 1.4rem; align-items: start; padding-top: 2rem; }
.account-nav { padding: .6rem; position: sticky; top: 90px; }
.account-nav nav { display: grid; gap: .15rem; }
.account-nav a { display: block; padding: .55rem .7rem; border-radius: 8px; color: var(--text); font-size: .9rem; }
.account-nav a:hover, .account-nav a.is-active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.account-logout { border-top: 1px solid var(--border); margin-top: .5rem; padding: .6rem .7rem; }
.account-main { display: grid; gap: 1.2rem; }
.stat-card { padding: 1rem; display: flex; flex-direction: column; gap: .15rem; }
.stat-card span { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.stat-card strong { font-size: 1.4rem; }
.download-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.download-list li { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding-bottom: .6rem; border-bottom: 1px solid var(--border); }
.download-list li:last-child { border-bottom: 0; }
.detail-list { display: grid; gap: .45rem; margin: 0 0 1rem; }
.detail-list > div { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; }
.detail-list dt { color: var(--muted); }
.detail-list dd { margin: 0; font-weight: 600; }

/* Tables */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.data-table th, .data-table td { padding: .7rem .8rem; text-align: start; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table th { background: var(--surface-2); font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.data-table tr:last-child td { border-bottom: 0; }
.data-table .actions { display: flex; gap: .35rem; flex-wrap: wrap; }
.data-table .actions form { margin: 0; }
.data-table.compact th, .data-table.compact td { padding: .5rem .6rem; }
.badge { display: inline-flex; align-items: center; padding: .18rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 700; text-transform: capitalize; }
.badge-success, .badge-approved, .badge-active { background: color-mix(in srgb, var(--success) 16%, transparent); color: var(--success); }
.badge-muted, .badge-hidden { background: var(--surface-2); color: var(--muted); }
.badge-danger, .badge-rejected, .badge-blocked { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.badge-warning, .badge-pending, .badge-draft { background: color-mix(in srgb, var(--warning) 18%, transparent); color: var(--warning); }

/* Pagination */
.pagination { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: center; margin-top: 1.6rem; }
.page-link {
    min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--border); border-radius: 9px; background: var(--surface); color: var(--text); font-size: .86rem;
}
.page-link:hover { border-color: var(--primary); color: var(--primary); }
.page-link.is-current { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-ellipsis { align-self: center; color: var(--muted); }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding-top: 2.6rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 1.6rem; }
.footer-title { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.footer-grid ul { display: grid; gap: .35rem; font-size: .88rem; }
.footer-grid a { color: var(--text); }
.footer-grid a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 2rem; padding: 1rem 0; font-size: .8rem; color: var(--muted); }
.language-list { columns: 2; }

/* Misc */
.cta-panel {
    display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; flex-wrap: wrap;
    background: linear-gradient(120deg, var(--primary), var(--primary-strong)); color: #fff;
    border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow);
}
.cta-panel h2 { color: #fff; margin-bottom: .3rem; }
.cta-panel p { color: rgba(255, 255, 255, .86); margin: 0; }
.cta-panel .btn { background: #fff; color: var(--primary-strong); border-color: #fff; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.steps li { display: flex; gap: .8rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .9rem; }
.steps p { margin: .15rem 0 0; color: var(--muted); font-size: .9rem; }
.step-num { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.prose { max-width: 72ch; }
.prose h1, .prose h2, .prose h3 { margin-top: 1.2em; }
.empty-state { text-align: center; padding: 3rem 1rem; }
.empty-state .btn { margin-top: .8rem; }
.error-card { text-align: center; margin: 3rem auto; max-width: 560px; }
.error-code { font-size: 3.4rem; font-weight: 900; color: var(--primary); margin: 0; letter-spacing: -.05em; }
.error-page { display: grid; place-items: center; min-height: 100vh; padding: 2rem; }

body.modal-open { overflow: hidden; }

/* RTL nudges */
[dir="rtl"] .hero .lead { max-width: 720px; }
[dir="rtl"] .zip-dir > details > summary::before { margin-inline-end: 0; margin-inline-start: .4rem; }

/* Responsive */
@media (max-width: 1040px) {
    .primary-nav { display: none; position: absolute; inset-inline: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--border); padding: .6rem; flex-direction: column; align-items: stretch; box-shadow: var(--shadow); }
    .primary-nav.is-open { display: flex; }
    .primary-nav .dropdown-panel { position: static; box-shadow: none; border: 0; padding-inline-start: 1rem; }
    .nav-toggle { display: inline-flex; margin-inline-start: auto; }
    .header-actions { margin-inline-start: auto; }
    .search-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .results-layout { grid-template-columns: 1fr; }
    .product-layout { grid-template-columns: 1fr; }
    .product-side { position: static; }
    .account-layout { grid-template-columns: 1fr; }
    .account-nav { position: static; }
    .account-nav nav { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .split { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
    body { font-size: 15.5px; }
    .brand-text small { display: none; }
    .search-main { flex-direction: column; }
    .search-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats-strip dd { font-size: 1.25rem; }
    .hero { padding-top: 2.2rem; }
    .two-col { grid-template-columns: 1fr; }
    .brand-head, .model-head { flex-direction: column; }
    .brand-logo-lg { width: 72px; height: 72px; }
    .footer-grid { grid-template-columns: 1fr; }
    .plan-card.is-recommended::after { position: static; display: inline-block; margin-bottom: .5rem; width: fit-content; }
    .data-table thead { display: none; }
    .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
    .data-table tr { border: 1px solid var(--border); border-radius: 10px; margin-bottom: .6rem; padding: .3rem; background: var(--surface); }
    .data-table td { border: 0; display: flex; justify-content: space-between; gap: 1rem; padding: .45rem .6rem; }
    .data-table td::before { content: attr(data-label); font-weight: 600; color: var(--muted); font-size: .76rem; }
    .data-table td:not([data-label])::before { content: ""; }
    .data-table .actions { justify-content: flex-end; }
    .filters { padding: .8rem; }
}
