/* BimmerPrint v2 — original dark theme. Not copied from any third-party stylesheet. */
@font-face { font-family: Inter; src: url("/assets/fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: Inter; src: url("/assets/fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: Inter; src: url("/assets/fonts/inter-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --bg: #07090c;
  --bg-2: #0d1117;
  --bg-3: #141a22;
  --text: #f2f4f7;
  --muted: #9aa3ae;
  --ink: #111318;
  --paper: #ffffff;
  --red: #e10e2b;
  --red-dark: #b40c22;
  --blue: #1b4f9c;
  --blue-2: #163e7a;
  --blue-link: #7eb3e8;
  --line: #232a34;
  --card: #12171e;
  --radius: 20px;
  --radius-sm: 12px;
  --max: 1220px;
  --header-h: 72px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --font: Inter, "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  min-height: 100vh;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue-link); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
h1, h2, h3 { margin: 0 0 .5rem; line-height: 1.15; letter-spacing: -0.03em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 700; }
h2 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0 0 .85rem; }
ul { margin: 0 0 .85rem; padding-left: 1.15rem; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Notice + lang */
.notice {
  background: #1a1408;
  color: #e6d7a8;
  font-size: 12.5px;
  text-align: center;
  padding: 7px 12px;
  border-bottom: 1px solid #3a3118;
}
.notice strong { color: #f3e6b8; }
.lang-note {
  display: none;
  background: #102033;
  color: #c5d8ee;
  font-size: 12.5px;
  text-align: center;
  padding: 7px 12px;
}
.lang-note.is-on { display: block; }

/* Floating white header */
.header-shell {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 10px 16px 0;
  background: linear-gradient(180deg, rgba(7,9,12,.96) 40%, rgba(7,9,12,.55) 100%);
  backdrop-filter: blur(8px);
}
.header-bar {
  max-width: var(--max);
  margin: 0 auto;
  background: var(--paper);
  color: var(--ink);
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px 11px;
  box-shadow: var(--shadow);
  position: relative;
  flex-wrap: wrap;
}
.header-bar::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 3px;
  background: var(--red);
  border-radius: 3px 3px 0 0;
}
.logo { display: flex; align-items: center; text-decoration: none !important; flex: 0 0 auto; }
.logo img { width: 200px; height: 30px; }
.topbar-spacer { flex: 1 1 20px; }
.search { display: flex; align-items: stretch; flex: 1 1 220px; max-width: 340px; }
.search input[type="search"] {
  flex: 1;
  min-width: 0;
  border: 0;
  background: #eef1f5;
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 999px 0 0 999px;
}
.search input::placeholder { color: #7a8490; }
.search button {
  background: var(--blue);
  color: #fff;
  border: 0;
  padding: 8px 14px;
  border-radius: 0 999px 999px 0;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
}
.search button:hover { background: var(--blue-2); }
.langs { display: flex; gap: 2px; }
.langs button {
  background: transparent;
  color: #4a5560;
  border: 1px solid #d5dbe3;
  padding: 5px 8px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 11px;
}
.langs button.is-active, .langs button[aria-current="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.login-btn {
  color: var(--ink) !important;
  text-decoration: none !important;
  border: 1px solid #d5dbe3;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.login-btn:hover { background: var(--ink); color: #fff !important; }

/* Main nav + chassis (blue bar) */
.nav-shell { padding: 8px 16px 0; }
.tabs {
  max-width: var(--max);
  margin: 0 auto;
  background: var(--blue);
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
}
.tabs a {
  color: #e8eef8 !important;
  text-decoration: none !important;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.tabs a:hover { background: rgba(255,255,255,.08); }
.tabs a.is-on { background: var(--blue-2); color: #fff !important; }

.subbar {
  max-width: var(--max);
  margin: 8px auto 0;
  padding: 0 2px 2px;
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.subbar .lbl {
  display: none;
}
.subbar a {
  flex: 0 0 auto;
  color: #d5dbe3;
  text-decoration: none !important;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 600;
}
.subbar a:hover, .subbar a.is-on { background: var(--red); border-color: var(--red); color: #fff; }

/* Breadcrumbs */
.crumbs { font-size: 13px; color: var(--muted); padding: 16px 0 10px; }
.crumbs a { color: #c5ccd6; }
.crumbs span { color: var(--text); font-weight: 600; }

/* Hero */
.hero {
  position: relative;
  min-height: 62vh;
  margin: 12px 0 0;
  overflow: hidden;
  background: #000;
}
.hero img {
  width: 100%;
  height: 100%;
  min-height: 62vh;
  object-fit: cover;
  object-position: center 40%;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.35) 48%, rgba(0,0,0,.15) 100%),
              linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.45) 100%);
}
.hero-copy {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 48px 0 56px;
}
.hero-copy .wrap { max-width: var(--max); }
.hero .kicker {
  color: #f3c4cb;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.hero h1 { color: #fff; max-width: 16ch; text-shadow: 0 2px 18px rgba(0,0,0,.45); }
.hero .lede { color: #e8edf3; max-width: 38ch; font-size: 1.05rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hero-credit {
  position: absolute;
  right: 16px;
  bottom: 10px;
  color: rgba(255,255,255,.7);
  font-size: 11px;
}
.hero-credit a { color: rgba(255,255,255,.85); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: #fff !important;
  text-decoration: none !important;
  border: 0;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  letter-spacing: .01em;
}
.btn:hover { background: var(--red-dark); }
.btn-ghost {
  background: transparent;
  color: #fff !important;
  border: 1.5px solid rgba(255,255,255,.7);
}
.btn-ghost:hover { background: #fff; color: var(--ink) !important; }
.btn-blue { background: var(--blue); }
.btn-blue:hover { background: var(--blue-2); }
.btn-ink { background: var(--paper); color: var(--ink) !important; }
.btn-ink:hover { background: #e8edf3; }
.btn[disabled], .btn.is-off { opacity: .55; cursor: not-allowed; }

/* Sections */
.section { padding: 48px 0; }
.section.alt { background: var(--bg-2); }
.section-hd {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.section-hd p { margin: 0; color: var(--muted); }

/* Split: featured + catch-up list */
.split {
  display: grid;
  grid-template-columns: 1.5fr .9fr;
  gap: 22px;
}
.story {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  min-height: 280px;
  display: block;
  color: inherit !important;
  text-decoration: none !important;
}
.story img { width: 100%; height: 280px; object-fit: cover; }
.story-body { padding: 16px 18px 20px; }
.story h3 { font-size: 1.2rem; margin: 0 0 6px; color: var(--text); }
.story p { color: var(--muted); margin: 0; font-size: 14.5px; }
.catchup { background: var(--bg-3); border-radius: var(--radius); padding: 8px 6px; border: 1px solid var(--line); }
.catchup h2 { font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; color: #c5ccd6; padding: 10px 14px 6px; }
.catchup a {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  color: inherit !important;
  text-decoration: none !important;
  border-radius: 10px;
}
.catchup a:hover { background: rgba(255,255,255,.05); }
.catchup img { width: 88px; height: 64px; object-fit: cover; border-radius: 8px; }
.catchup .t { font-weight: 700; font-size: 14.5px; color: var(--text); }
.catchup .m { font-size: 12.5px; color: var(--muted); }

/* Cards grids */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  color: inherit !important;
  text-decoration: none !important;
  display: flex;
  flex-direction: column;
}
.card:hover { border-color: #3a4656; transform: translateY(-2px); transition: .15s ease; }
.card img, .card .thumb-lg { width: 100%; height: 170px; object-fit: cover; background: #0a0d12; }
.card .illu { height: 160px; object-fit: contain; background: #f1f4f8; padding: 8px; }
.card-body { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { font-size: 1.05rem; margin: 0; color: var(--text); }
.card p, .card .meta { margin: 0; color: var(--muted); font-size: 13.5px; }
.card .price { font-weight: 700; color: #fff; font-size: 1.05rem; margin-top: auto; }
.card .row-btns { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.card .btn { padding: 8px 12px; font-size: 13px; }

.badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  background: #1c2430;
  color: #c5ccd6;
  margin-right: 4px;
}
.badge-ok { background: #143022; color: #8ee0ae; }
.badge-mat { background: #16263c; color: #9ec0e8; }

/* Trust + how-it-works */
.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.trust div, .step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}
.trust h3, .step h3 { font-size: 1rem; margin: 0 0 4px; }
.trust p, .step p { margin: 0; color: var(--muted); font-size: 13.5px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step .n {
  color: var(--red);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Product page */
.product {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  padding: 8px 0 24px;
}
.gallery { display: grid; gap: 10px; }
.gallery .main {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: #0a0d12;
}
.gallery .thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.gallery .thumbs img, .gallery .thumbs .illu-s {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f1f4f8;
}
.illu-cap { font-size: 12px; color: var(--muted); }
.price-lg { font-size: 1.8rem; font-weight: 700; margin: 8px 0; }
.specs { width: 100%; border-collapse: collapse; margin: 12px 0; }
.specs th, .specs td {
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  text-align: left;
  vertical-align: top;
}
.specs th { width: 38%; color: var(--muted); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.caution, .note {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  margin: 12px 0 0;
}
.caution { background: #2a1216; border: 1px solid #5a2430; color: #f0b8c0; }
.note { background: #122033; border: 1px solid #2a4a70; color: #c5d8ee; }

/* Shop filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.filters button, .chip {
  background: var(--bg-3);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}
.filters button.is-on, .chip.is-on { background: var(--red); border-color: var(--red); color: #fff; }
.hidden { display: none !important; }
.small { font-size: 13px; }
.muted { color: var(--muted); }

/* Forum-style posts, restyled dark */
.post {
  display: grid;
  grid-template-columns: 180px 1fr;
  border: 1px solid var(--line);
  border-top: 0;
  background: var(--card);
}
.posts .post:first-child { border-top: 1px solid var(--line); border-radius: var(--radius-sm) var(--radius-sm) 0 0; overflow: hidden; }
.posts .post:last-child { border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
.post-user { background: var(--bg-3); border-right: 1px solid var(--line); padding: 14px; font-size: 13px; }
.post-user .name { font-weight: 700; font-size: 14px; display: block; margin-bottom: 2px; color: var(--blue-link); }
.post-user .rank { color: var(--muted); font-style: italic; margin-bottom: 8px; }
.avatar { width: 64px; height: 64px; margin: 0 0 8px; border-radius: 10px; background: #1c2430; }
.post-body { padding: 12px 16px 18px; }
.post-meta {
  display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 12px;
  color: var(--muted); font-size: 12.5px;
}
.quote {
  border-left: 3px solid var(--red);
  background: var(--bg-3);
  padding: 8px 12px;
  margin: 0 0 10px;
  font-size: 14px;
  color: #d5dbe3;
}

/* Forms */
.form { display: grid; gap: 12px; }
.field { display: grid; gap: 5px; }
.field label { font-weight: 600; font-size: 13.5px; }
.field .hint { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.field input, .field select, .field textarea {
  border: 1px solid #3a4656;
  background: #0b0e13;
  color: var(--text);
  padding: 10px 12px;
  border-radius: 10px;
  width: 100%;
}
.field textarea { min-height: 100px; resize: vertical; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.check input { margin-top: 4px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.preview {
  background: #12151a;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  min-height: 340px;
  height: 360px;
  position: relative;
  color: #9aa3ad;
}
.preview canvas { display: block; width: 100%; height: 100%; border-radius: var(--radius-sm); }
.preview .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; pointer-events: none; }
.preview.is-live .ph { display: none; }
.box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin: 0 0 16px;
  overflow: hidden;
}
.box-hd {
  background: var(--bg-3);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  padding: 10px 14px;
  letter-spacing: .02em;
}
.box-bd { padding: 16px; }
.cat-row { background: var(--blue); color: #fff; font-weight: 700; font-size: 12.5px; padding: 8px 14px; letter-spacing: .04em; text-transform: uppercase; }

/* Dark tables (FAQ) */
.grid { width: 100%; border-collapse: collapse; }
.grid th, .grid td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.grid thead th { color: #c5ccd6; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; }
.grid tbody tr:hover { background: rgba(255,255,255,.03); }
.grid .num, .grid .price { text-align: right; white-space: nowrap; }

/* Footer */
.site-foot {
  background: #05070a;
  color: #9aa3ae;
  font-size: 13.5px;
  padding: 36px 0 40px;
  margin-top: 8px;
  border-top: 3px solid var(--red);
}
.site-foot a { color: #9ec0e8; }
.site-foot .wrap { display: grid; gap: 10px; }
.legal { color: #7a8490; }
.credit { margin-top: 6px; }
.credit a { color: #fff; font-weight: 700; }

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  z-index: 80;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal.is-on { display: flex; }
.modal-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  max-width: 440px;
  width: 100%;
  color: var(--text);
}
.kicker { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; margin-bottom: 6px; }

.credits-list { display: grid; gap: 14px; }
.credits-list article {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.credits-list img { width: 160px; height: 110px; object-fit: cover; }
.credits-list div { padding: 12px 14px 14px; }
.credits-list h3 { font-size: 1rem; margin: 0 0 4px; }

@media (max-width: 900px) {
  .split, .cards, .cards-4, .trust, .steps, .product, .form-grid, .credits-list article {
    grid-template-columns: 1fr;
  }
  .hero, .hero img { min-height: 70vw; }
  .post { grid-template-columns: 1fr; }
  .post-user { border-right: 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
  .post-user .avatar { margin: 0; }
  .logo img { width: 168px; height: 26px; }
  .header-bar {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 8px;
    border-radius: 14px;
  }
  .topbar-spacer { display: none; }
  .logo { grid-column: 1; grid-row: 1; }
  .langs { grid-column: 2; grid-row: 1; }
  .login-btn { grid-column: 3; grid-row: 1; }
  .search { grid-column: 1 / -1; grid-row: 2; max-width: none; flex: 1 1 auto; }
  .hide-sm { display: none !important; }
}
@media (max-width: 480px) {
  html { font-size: 15.5px; }
  .hero-copy { padding: 28px 0 32px; }
  .card img, .card .illu { height: 150px; }
}
