/* ============================================================
   Car Profyl — light design system
   White + green (Arena Club / Urable direction): airy surfaces,
   near-black type, lime as the action color, dark reserved for
   photography, the footer, and print artifacts.
   ============================================================ */
:root {
  --bg: #ffffff;
  --bg-raised: #f6f8f3;
  --bg-card: #ffffff;
  --bg-card-2: #fbfcf9;
  --border: #e8ece2;
  --border-strong: #d7ddcb;
  --text: #141a10;
  --text-muted: #68715e;
  --accent: #84cc16;          /* lime — buttons & fills */
  --accent-hover: #76b810;
  --accent-ink: #4d7c0f;      /* readable green for links/labels on white */
  --accent-deep: #365314;
  --accent-soft: rgba(132, 204, 22, 0.13);
  --accent-glow: rgba(132, 204, 22, 0.30);
  --on-accent: #131a08;
  --dark: #10150a;            /* dark surfaces: footer, image overlays */
  --success: #16a34a;
  --success-soft: rgba(22, 163, 74, 0.10);
  --error: #dc2626;
  --error-soft: rgba(220, 38, 38, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(20, 26, 16, 0.06), 0 1px 6px rgba(20, 26, 16, 0.04);
  --shadow-md: 0 6px 24px rgba(20, 26, 16, 0.08);
  --shadow-lg: 0 20px 50px rgba(20, 26, 16, 0.12);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Archivo Black", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text); font: 16px/1.65 var(--font); font-weight: 450;
  background: var(--bg);
}
::selection { background: var(--accent); color: var(--on-accent); }

a { color: inherit; text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent-ink); }
img { max-width: 100%; }
b, strong { font-weight: 750; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5rem; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
h3 { font-size: 1.05rem; }
p { margin: .45rem 0; }
.muted { color: var(--text-muted); }
.small { font-size: .85rem; }
.inline { display: inline; }
.icon { vertical-align: -0.18em; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 1.4rem; }

/* section headings with green tick */
h2 {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  letter-spacing: .01em; font-size: 1.25rem; margin-top: 2.4rem;
  position: relative; padding-left: .85rem;
}
h2::before {
  content: ""; position: absolute; left: 0; top: .18em; bottom: .18em; width: 4px;
  border-radius: 4px; background: var(--accent);
}
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-top: 2.6rem; }
.section-head h2 { margin: 0; }

/* ------------------------------------------------ header / nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-row { display: flex; align-items: center; gap: 1.4rem; height: 64px; }
.brand {
  font-weight: 900; font-style: italic; font-size: 1.22rem; letter-spacing: -0.03em;
  display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap; color: var(--text);
}
.brand img { width: 30px; height: 30px; }
.brand span { color: var(--accent-ink); margin-left: .26rem; }
.brand-sm { font-size: 1.05rem; }
.site-nav { display: flex; gap: .3rem; flex: 1; }
.site-nav a {
  color: var(--text-muted); font-weight: 650; font-size: .92rem;
  padding: .42rem .85rem; border-radius: 999px;
}
.site-nav a:hover { color: var(--text); background: var(--bg-raised); }
.site-nav a.active { color: var(--accent-deep); background: var(--accent-soft); }
.nav-actions { display: flex; align-items: center; gap: .55rem; }
.nav-user { display: flex; align-items: center; gap: .45rem; color: var(--text-muted); font-size: .88rem; font-weight: 650; }
.nav-search { margin-left: auto; }
.nav-search input {
  margin: 0; width: 210px; padding: .48rem 1.05rem; border-radius: 999px;
  font-size: .86rem; background: var(--bg-raised); border-color: var(--border);
}
.nav-search input:focus { width: 250px; transition: width .2s; background: #fff; }
.nav-bell {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; color: var(--text-muted); transition: .15s;
}
.nav-bell:hover { color: var(--text); background: var(--bg-raised); }
.bell-badge {
  position: absolute; top: -1px; right: -3px;
  background: var(--accent); color: var(--on-accent);
  font-size: .62rem; font-weight: 900; line-height: 1;
  border-radius: 999px; padding: .22rem .38rem; border: 2px solid #fff;
}

/* ------------------------------------------------ buttons & forms */
.btn {
  display: inline-block; border: 1.5px solid var(--border-strong); border-radius: 999px;
  background: #fff; color: var(--text); padding: .6rem 1.3rem;
  font: 750 .84rem/1.4 var(--font); text-transform: uppercase; letter-spacing: .07em;
  cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s, background .15s;
}
.btn:hover { border-color: var(--accent); color: var(--text); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary {
  background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 850;
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); box-shadow: 0 6px 20px var(--accent-glow); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); border-color: var(--border-strong); box-shadow: none; }
.btn-sm { padding: .38rem .95rem; font-size: .74rem; }
.btn-danger { border-color: rgba(220, 38, 38, .4); color: var(--error); background: #fff; }
.btn-danger:hover { background: var(--error-soft); border-color: var(--error); }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }

input, select, textarea {
  width: 100%; background: #fff; border: 1.5px solid var(--border-strong);
  border-radius: 12px; color: var(--text); padding: .66rem .95rem;
  font: inherit; margin: .25rem 0 1rem; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
label { font-size: .76rem; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; }
input[type="checkbox"] { width: auto; margin-right: .45rem; }
input[type="file"] { padding: .5rem; }
.form-narrow { max-width: 440px; }
.form-wide { max-width: 760px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.1rem; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 1.1rem; }
fieldset {
  border: 1px solid var(--border); border-radius: var(--radius);
  margin: 0 0 1.4rem; padding: 1.2rem 1.4rem; background: var(--bg-card-2);
}
legend { padding: 0 .6rem; font-weight: 800; font-size: .76rem; color: var(--accent-ink); text-transform: uppercase; letter-spacing: .12em; }

/* ------------------------------------------------ flash */
.flash { margin: 1.1rem 0 0; padding: .8rem 1.15rem; border-radius: var(--radius-sm); font-weight: 600; font-size: .93rem; }
.flash-success { background: var(--success-soft); color: #15803d; border: 1px solid rgba(22, 163, 74, .35); }
.flash-error { background: var(--error-soft); color: var(--error); border: 1px solid rgba(220, 38, 38, .3); }

/* ------------------------------------------------ cards & grids */
.grid { display: grid; gap: 1.3rem; margin: 1.4rem 0; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); display: block;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-static:hover { border-color: var(--border); transform: none; box-shadow: var(--shadow-sm); }
.card-body { padding: 1rem 1.15rem 1.1rem; }
.card h3 { margin: 0 0 .2rem; font-size: 1.02rem; font-weight: 800; }
.card .meta-line { color: var(--text-muted); font-size: .84rem; line-height: 1.55; }
.card-cover { aspect-ratio: 16/10; object-fit: cover; width: 100%; display: block; background: var(--dark); transition: transform .3s; }
.card:hover .card-cover { transform: scale(1.03); }

.cover-wrap { position: relative; overflow: hidden; background: var(--dark); }
.card-cover-placeholder {
  aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center; position: relative; transition: transform .3s;
}
.card:hover .card-cover-placeholder { transform: scale(1.03); }
.card-cover-placeholder span {
  position: absolute; left: .9rem; bottom: .6rem; font-size: .9rem;
  font-style: italic; font-weight: 900; letter-spacing: -0.01em; text-transform: uppercase;
  color: rgba(255, 255, 255, .5); text-shadow: 0 2px 10px rgba(0, 0, 0, .8);
}
.cover-chip {
  position: absolute; top: .75rem; right: .75rem; z-index: 2;
  background: rgba(16, 21, 10, .82); backdrop-filter: blur(6px);
  border: 1px solid rgba(183, 229, 31, .4); border-radius: 999px;
  padding: .22rem .75rem; font-size: .76rem; font-weight: 900; font-style: italic;
  color: #b7e51f;
}
.cover-chip-left { left: .75rem; right: auto; color: #ff8080; border-color: rgba(255, 92, 92, .4); }
.card-owner { display: flex; align-items: center; gap: .5rem; margin-top: .65rem; font-size: .82rem; color: var(--text-muted); font-weight: 600; }
.card-owner-stats { margin-left: auto; font-weight: 500; }
.mini-avatar {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft); border: 1px solid var(--border-strong);
  color: var(--accent-deep); font-weight: 900; font-style: italic; font-size: .68rem;
}

.panel {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.35rem 1.5rem; margin: 1.3rem 0; box-shadow: var(--shadow-sm);
}

/* ------------------------------------------------ hero */
.hero-split {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 3.5rem;
  align-items: center; padding: 4.6rem 0 3.4rem; position: relative;
}
.hero-split::before {
  content: ""; position: absolute; inset: -60px -40vw 0;
  background:
    radial-gradient(800px 380px at 18% 0%, var(--accent-soft), transparent 65%),
    radial-gradient(600px 320px at 88% 30%, rgba(132, 204, 22, .07), transparent 70%);
  pointer-events: none; z-index: -1;
}
h1.display, .display-h2 {
  font-family: var(--font-display); font-weight: 400; font-style: normal;
  text-transform: uppercase; letter-spacing: -0.015em;
}
.hero-copy h1.display { font-size: clamp(2.7rem, 7vw, 5rem); line-height: .98; margin: 0 0 1.2rem; }
.hero-copy h1.display em, .display-h2 em { color: #65a30d; font-style: normal; }
.hero-copy p { color: var(--text-muted); font-size: 1.15rem; font-weight: 500; max-width: 520px; margin: 0 0 1.6rem; }
.hero-copy .hero-actions { justify-content: flex-start; }
.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; }
.hero-actions .btn { padding: .9rem 1.9rem; font-size: .9rem; }
.hero-proof { margin-top: 2rem; color: var(--text-muted); font-size: .9rem; }
.hero-proof b { color: var(--accent-deep); font-style: italic; font-weight: 900; font-size: 1.05rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--accent-ink); font-size: .8rem; font-weight: 800;
  letter-spacing: .28em; text-transform: uppercase; margin-bottom: 1.5rem;
}
.eyebrow .icon { color: var(--accent-ink); }

.hero-search { display: flex; gap: .6rem; max-width: 480px; margin: 0 0 .9rem; }
.hero-search input {
  margin: 0; padding: .85rem 1.2rem; font-size: 1rem; border-radius: 999px;
  background: #fff; border-color: var(--border-strong); box-shadow: var(--shadow-sm);
}
.hero-search .btn { padding: .85rem 1.6rem; }
.part-chips { display: flex; gap: .45rem; align-items: center; flex-wrap: wrap; }
.part-chips .badge { margin: 0; }

.hero-visual { position: relative; min-width: 0; padding-bottom: 74px; }
.hero-stage {
  border-radius: 22px; overflow: hidden; border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.hero-stage-img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: center 58%; }
.featured-chip {
  position: absolute; right: -10px; bottom: 0; z-index: 2;
  display: flex; flex-direction: column; gap: .12rem;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px);
  border: 1px solid var(--border); border-radius: 16px;
  padding: .9rem 1.2rem; min-width: 240px; box-shadow: var(--shadow-lg);
  transition: border-color .15s, transform .15s;
}
.featured-chip:hover { border-color: var(--accent); transform: translateY(-2px); color: inherit; }
.chip-label { color: var(--accent-ink); font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .18em; }
.featured-chip b { font-size: 1rem; }
.chip-meta { color: var(--text-muted); font-size: .8rem; }
.chip-cta { color: var(--accent-ink); font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; margin-top: .35rem; display: inline-flex; align-items: center; gap: .3rem; }

/* ------------------------------------------------ stat band */
.stat-band {
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  margin: 1rem 0 2rem; overflow: hidden; box-shadow: var(--shadow-sm);
}
.stat-cell { padding: 1.6rem 1rem; text-align: center; border-right: 1px solid var(--border); }
.stat-cell:last-child { border-right: none; }
.stat-icon { color: var(--accent-ink); margin-bottom: .45rem; display: inline-flex; }
.stat-icon .icon { width: 24px; height: 24px; stroke-width: 2; }
.stat-cell b { display: block; font-family: var(--font-display); font-size: 1.8rem; letter-spacing: -0.01em; }
.stat-cell > span:last-child { color: var(--text-muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; }

/* ------------------------------------------------ category tiles */
.cat-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: .9rem; margin: 1.2rem 0 1rem; }
.cat-tile {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.3rem 1rem 1.1rem; text-align: center; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; align-items: center; gap: .3rem;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.cat-tile:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-md); color: inherit; }
.cat-icon {
  width: 46px; height: 46px; border-radius: 14px; display: inline-flex;
  align-items: center; justify-content: center; color: var(--accent-ink);
  background: var(--accent-soft); margin-bottom: .3rem;
}
.cat-tile b { font-size: .88rem; line-height: 1.25; }

/* ------------------------------------------------ showcases */
.showcase {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3.4rem; align-items: center;
  padding: 3.8rem 0; border-top: 1px solid var(--border);
}
.showcase-flip .showcase-copy { order: 2; }
.showcase-flip .showcase-visual { order: 1; }
.display-h2 { font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.0; padding-left: 0; }
.display-h2::before { display: none; }
.showcase-copy p { font-size: 1.06rem; max-width: 440px; margin: .9rem 0 1.4rem; }
.showcase-visual { min-width: 0; }
.visual-frame {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem 1.8rem 1rem; box-shadow: var(--shadow-md);
}
.visual-frame .timeline { margin: 0; }
.demo-timeline li { margin-bottom: 1.05rem; }
.demo-timeline .tl-title { font-size: 1.05rem; }

.check-list { list-style: none; margin: 1rem 0 1.4rem; padding: 0; }
.check-list li { padding: .3rem 0 .3rem 1.7rem; position: relative; font-weight: 650; font-size: .95rem; }
.check-list li::before { content: "✔"; position: absolute; left: 0; color: var(--accent-ink); font-weight: 900; }

.verify-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem 1.7rem; box-shadow: var(--shadow-md);
}
.verify-badge { display: inline-flex; align-items: center; gap: .45rem; color: var(--success); font-size: .72rem; font-weight: 800; letter-spacing: .14em; margin-bottom: .7rem; }

/* ------------------------------------------------ badges & chips */
.badge {
  display: inline-block; background: var(--accent-soft); color: var(--accent-deep);
  border: 1px solid rgba(132, 204, 22, .35); border-radius: 999px;
  padding: .2rem .8rem; font-size: .76rem; font-weight: 750; margin: 0 .35rem .35rem 0;
}
.badge-verified { background: var(--success-soft); color: #15803d; border-color: rgba(22, 163, 74, .3); }
.badge-neutral { background: var(--bg-raised); color: var(--text-muted); border: 1px solid var(--border-strong); }
.badge-active { border-color: var(--accent); color: var(--accent-deep); }
.chip-row { margin: .6rem 0; }

/* ------------------------------------------------ page head / avatars */
.page-head { display: flex; gap: 1.6rem; align-items: flex-start; margin: 2.4rem 0 1.2rem; flex-wrap: wrap; }
.page-head .grow { flex: 1; min-width: 260px; }
.page-head h1 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: -0.01em; }
.avatar { border-radius: 50%; object-fit: cover; }
.avatar-sm { width: 28px; height: 28px; }
.avatar-lg { width: 92px; height: 92px; border: 2px solid var(--border-strong); }
.avatar-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); border: 2px solid var(--border-strong);
  font-size: 2rem; font-weight: 900; font-style: italic; color: var(--accent-deep);
}

/* ------------------------------------------------ build banner (over photo — stays dark) */
.build-banner {
  position: relative; border-radius: var(--radius); overflow: hidden;
  margin-top: 1.6rem; border: 1px solid var(--border);
  min-height: 400px; display: flex; align-items: flex-end;
  background-size: cover; background-position: center; background-color: var(--dark);
  box-shadow: var(--shadow-lg);
}
.build-banner::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16, 21, 10, .05) 25%, rgba(16, 21, 10, .55) 60%, rgba(16, 21, 10, .95) 100%);
}
.build-banner-inner {
  position: relative; z-index: 1; width: 100%; padding: 2rem 2.2rem 1.7rem;
  display: flex; gap: 1.6rem; align-items: flex-end; flex-wrap: wrap; color: #fff;
}
.build-banner-inner .grow { flex: 1; min-width: 260px; }
.build-banner-inner h1 {
  font-family: var(--font-display); font-weight: 400; font-style: normal;
  text-transform: uppercase; letter-spacing: -0.01em;
  font-size: clamp(2rem, 4.6vw, 3.1rem); margin-bottom: .3rem; color: #fff;
}
.build-banner-inner .muted { color: rgba(255, 255, 255, .75); }
.build-banner-inner a:hover { color: #d3f36b; }
.build-banner-inner .badge-neutral { background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .85); border-color: rgba(255, 255, 255, .25); }
.build-banner-inner .btn { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .35); color: #fff; }
.build-banner-inner .btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.cover-hero { border-radius: var(--radius); overflow: hidden; margin-top: 1.6rem; border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.cover-hero img { width: 100%; max-height: 500px; object-fit: cover; display: block; }

/* ------------------------------------------------ Car DNA tiles */
.dna { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: .7rem; margin: 1.5rem 0; }
.dna div {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
  padding: .85rem 1rem; box-shadow: var(--shadow-sm);
}
.dna b { display: block; font-size: 1.2rem; font-weight: 900; letter-spacing: -0.01em; }
.dna span { color: var(--text-muted); font-size: .66rem; text-transform: uppercase; letter-spacing: .11em; font-weight: 700; }

/* ------------------------------------------------ build score */
.score-ring { display: flex; align-items: center; gap: 1.4rem; }
.score-dial {
  width: 112px; min-width: 112px; aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--pct) * 1%), var(--border) 0);
  display: flex; align-items: center; justify-content: center;
}
.score-dial-inner {
  width: 78%; aspect-ratio: 1; border-radius: 50%; background: var(--bg-card);
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1;
  box-shadow: inset 0 1px 3px rgba(20, 26, 16, .08);
}
.score-dial-inner b { font-size: 2rem; font-weight: 900; font-style: italic; }
.score-dial-inner span { color: var(--text-muted); font-size: .74rem; margin-top: .25rem; }
.score-checks { display: grid; grid-template-columns: 1fr 1fr; gap: .28rem 1.3rem; font-size: .86rem; font-weight: 550; }
.score-checks .ok { color: var(--success); }
.score-checks .no { color: var(--text-muted); opacity: .55; }

/* ------------------------------------------------ timeline */
.timeline { list-style: none; margin: 1.2rem 0; padding: 0 0 0 1.8rem; border-left: 2px solid var(--border-strong); }
.timeline li { position: relative; margin: 0 0 1.6rem; }
.timeline li::before {
  content: ""; position: absolute; left: -2.22rem; top: .5rem;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
}
.timeline .tl-date { color: var(--text-muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 750; }
.timeline .tl-title { font-weight: 800; font-size: 1.02rem; }
.timeline img { max-width: 340px; border-radius: var(--radius-sm); margin-top: .55rem; border: 1px solid var(--border); }
.tl-dyno { color: var(--accent-ink); font-weight: 850; }

/* ------------------------------------------------ mod cards */
.mod-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 1rem; margin: 1.2rem 0; }
.mod-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem 1.15rem; box-shadow: var(--shadow-sm);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.mod-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.mod-card .mod-cat { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent-ink); font-weight: 850; }
.mod-card h4 { margin: .3rem 0 .35rem; font-size: 1rem; font-weight: 800; }
.mod-card h4 a:hover { color: var(--accent-ink); text-decoration: underline; }
.mod-card dl { margin: .5rem 0 0; font-size: .85rem; display: grid; grid-template-columns: auto 1fr; gap: .16rem .7rem; }
.mod-card dt { color: var(--text-muted); }
.mod-card dd { margin: 0; font-weight: 650; }

/* ------------------------------------------------ media grids */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .9rem; margin: 1.2rem 0; }
.gallery figure { margin: 0; position: relative; }
.gallery img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-sm);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: transform .2s;
}
.gallery img:hover { transform: scale(1.02); }
.gallery figcaption { font-size: .8rem; color: var(--text-muted); margin-top: .3rem; }

.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.1rem; margin: 1.2rem 0; }
.video-embed { margin: 0; }
.video-embed iframe {
  width: 100%; aspect-ratio: 16/9; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--dark); box-shadow: var(--shadow-sm);
}
.video-embed figcaption { font-size: .82rem; color: var(--text-muted); margin-top: .3rem; }

.suggest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .9rem; }
.suggest-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); }
.suggest-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.suggest-meta { display: flex; gap: .5rem; align-items: center; justify-content: space-between; padding: .55rem .7rem; }
.suggest-meta .small { color: var(--text-muted); line-height: 1.35; }

/* ------------------------------------------------ comments */
.comment { display: flex; gap: .9rem; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.comment:last-child { border-bottom: none; }

/* ------------------------------------------------ tables */
table.data {
  width: 100%; border-collapse: separate; border-spacing: 0; margin: 1.2rem 0; font-size: .92rem;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
table.data th {
  text-align: left; color: var(--text-muted); font-size: .72rem; text-transform: uppercase;
  letter-spacing: .1em; font-weight: 800; padding: .75rem .95rem;
  background: var(--bg-raised); border-bottom: 1px solid var(--border);
}
table.data td { padding: .68rem .95rem; border-bottom: 1px solid var(--border); }
table.data tr:last-child td { border-bottom: none; }
table.data tr:hover td { background: var(--bg-card-2); }

/* ------------------------------------------------ cost breakdown */
.cost-rows { margin: .6rem 0; }
.cost-rows div { display: flex; justify-content: space-between; padding: .55rem 0; border-bottom: 1px dashed var(--border-strong); font-weight: 550; }
.cost-rows .total { border-bottom: none; font-weight: 900; font-size: 1.15rem; color: var(--accent-deep); font-style: italic; }

/* ------------------------------------------------ voting */
.vote-row { display: flex; align-items: center; gap: 1.1rem; }
.vote-count { font-size: 1.6rem; font-weight: 900; font-style: italic; color: var(--accent-ink); min-width: 3.2rem; text-align: center; }

/* ------------------------------------------------ replay */
.replay-stage { min-height: 140px; padding: 1.1rem 1.3rem; border: 1.5px dashed var(--border-strong); border-radius: var(--radius-sm); margin-top: .9rem; background: var(--bg-raised); }

details.manage { margin: 1rem 0; }
details.manage summary { cursor: pointer; color: var(--accent-ink); font-weight: 750; font-size: .93rem; }
details.manage summary:hover { color: var(--accent-deep); }
details.manage > div { margin-top: .9rem; }

/* ------------------------------------------------ trio */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; margin: 3.4rem 0; }
.trio-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem 1.8rem; box-shadow: var(--shadow-sm);
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.trio-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.trio-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; margin-bottom: 1rem; color: var(--accent-ink);
  background: var(--accent-soft); border-radius: 16px;
}
.trio-card h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.05rem; letter-spacing: .02em; }
.trio-card > a { color: var(--accent-ink); font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }

/* ------------------------------------------------ share / cta / brand strip */
.share-band { text-align: center; padding: 4.6rem 0 4rem; border-top: 1px solid var(--border); }
.share-band p { max-width: 520px; margin: 1rem auto 1.8rem; }
.link-pill {
  display: inline-flex; align-items: center; gap: .7rem;
  background: var(--bg-card); border: 1.5px solid var(--accent);
  border-radius: 999px; padding: 1rem 2.4rem; font-size: 1.35rem; font-weight: 600;
  color: var(--text-muted); box-shadow: var(--shadow-md);
}
.link-pill b { color: var(--accent-deep); font-weight: 900; font-style: italic; }
.link-pill .icon { color: var(--accent-ink); }

.cta-band {
  text-align: center; margin: 4rem 0 1rem; padding: 3rem 2rem;
  background: var(--dark); color: #fff;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band .muted { color: rgba(255, 255, 255, .65); }
.cta-band p { max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-band .btn { background: transparent; border-color: rgba(255, 255, 255, .35); color: #fff; }
.cta-band .btn-primary { background: #b7e51f; border-color: #b7e51f; color: #131a08; }

.brand-strip { text-align: center; padding: 3.4rem 0 1rem; }
.brand-strip-label { color: var(--text-muted); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .3em; margin-bottom: 1.4rem; }
.brand-strip-row { display: flex; gap: 2.6rem; justify-content: center; flex-wrap: wrap; }
.brand-strip-row a { font-family: var(--font-display); font-size: 1.15rem; text-transform: uppercase; color: #b9c1ae; letter-spacing: .02em; }
.brand-strip-row a:hover { color: var(--accent-ink); }

/* ------------------------------------------------ shelf */
.shelf {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(290px, 320px);
  gap: 1.1rem; overflow-x: auto; padding: .4rem .2rem 1rem;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; margin: 1.2rem 0;
}
.shelf > .card { scroll-snap-align: start; }
.shelf::-webkit-scrollbar { height: 8px; }

/* ------------------------------------------------ filter bar / pager */
.filter-bar { display: grid; grid-template-columns: 1.3fr 1.3fr 1fr .7fr auto; gap: .7rem; align-items: center; margin: 1rem 0 .4rem; }
.filter-bar input, .filter-bar select { margin: 0; }
.pager { display: flex; gap: .7rem; justify-content: center; margin: 2rem 0 1rem; }

/* ------------------------------------------------ notifications */
.notif-list { display: flex; flex-direction: column; gap: .5rem; margin: 1.2rem 0; }
.notif {
  display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: .85rem 1.1rem; font-weight: 550; box-shadow: var(--shadow-sm);
}
.notif:hover { border-color: var(--accent); color: inherit; }
.notif-unread { border-left: 3px solid var(--accent); background: var(--bg-card-2); }
.notif-time { color: var(--text-muted); font-size: .78rem; white-space: nowrap; }

/* ------------------------------------------------ auth */
.auth-card {
  max-width: 420px; margin: 3.5rem auto;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px;
  padding: 2.4rem 2.2rem 2rem; box-shadow: var(--shadow-lg);
}
.auth-card .brand { justify-content: center; display: flex; margin-bottom: 1.2rem; }
.auth-card h1 { text-align: center; font-size: 1.5rem; margin-bottom: .3rem; }
.auth-card .auth-sub { text-align: center; color: var(--text-muted); font-size: .92rem; margin-bottom: 1.6rem; }

/* ------------------------------------------------ footer (dark, brand anchor) */
.site-footer { margin-top: 5rem; padding: 3.2rem 0 0; background: var(--dark); color: rgba(255, 255, 255, .85); }
.site-footer .brand { color: #fff; }
.site-footer .brand span { color: #b7e51f; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.4rem; }
.footer-grid h4 { font-size: .72rem; text-transform: uppercase; letter-spacing: .18em; color: rgba(255, 255, 255, .45); margin: 0 0 .8rem; font-weight: 800; }
.footer-grid nav { display: flex; flex-direction: column; gap: .45rem; }
.footer-grid nav a { color: rgba(255, 255, 255, .6); font-size: .9rem; font-weight: 500; }
.footer-grid nav a:hover { color: #b7e51f; }
.footer-tagline { color: rgba(255, 255, 255, .55); font-size: .92rem; max-width: 300px; margin-top: .7rem; }
.footer-bar {
  border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.1rem 0;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  color: rgba(255, 255, 255, .45); font-size: .8rem;
}
.footer-bar a:hover { color: #b7e51f; }

/* ------------------------------------------------ motion */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
.reveal.revealed { opacity: 1; transform: none; }

/* ------------------------------------------------ scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-raised); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 8px; }

/* ------------------------------------------------ responsive */
@media (max-width: 900px) { .cat-tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .site-nav { gap: .15rem; font-size: .86rem; overflow-x: auto; }
  .site-nav a { padding: .35rem .6rem; }
  .nav-user, .nav-search { display: none; }
  .form-grid, .form-grid-3 { grid-template-columns: 1fr; }
  .hero-split { grid-template-columns: 1fr; gap: 2.4rem; padding: 3rem 0 2.4rem; }
  .hero-visual { max-width: 460px; }
  .showcase { grid-template-columns: 1fr; gap: 1.8rem; padding: 2.6rem 0; }
  .showcase-flip .showcase-copy { order: 1; }
  .showcase-flip .showcase-visual { order: 2; }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .stat-cell { border-bottom: 1px solid var(--border); }
  .trio { grid-template-columns: 1fr; }
  .featured-chip { right: 8px; bottom: 8px; }
  .filter-bar { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; } }
@media (max-width: 540px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .cat-tiles { grid-template-columns: repeat(2, 1fr); }
}
