:root {
  --bg: #08080a;
  --surface: #121216;
  --surface-2: #1a1a20;
  --border: #2a2a32;
  --text: #f2f2f4;
  --muted: #9a9aa6;
  --red: #e31e2d;
  --red-dark: #b5121f;
  --green: #2fbf71;
  --amber: #f0a020;
  --radius: 10px;
  --heading: 'Rajdhani', 'Segoe UI', sans-serif;
  --body: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 var(--body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--red); }
h1, h2, h3 { font-family: var(--heading); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(28px, 4vw, 40px); }
h2 { font-size: 26px; }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }

/* Heading sizes you can put on any heading, e.g. <h2 class="size-xl">: the tag keeps its meaning, the class sets the size. */
.size-2xl { font-size: clamp(34px, 5vw, 48px) !important; }
.size-xl  { font-size: clamp(30px, 4vw, 36px) !important; }
.size-lg  { font-size: 32px !important; }  /* between h1 and h2 */
.size-md  { font-size: 22px !important; }  /* between h2 and h3 */
.size-sm  { font-size: 17px !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.red { color: var(--red); }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.section { padding: 40px 0; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); background: rgba(8, 8, 10, .92); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(8px); }
.nav { display: flex; align-items: center; gap: 24px; min-height: 64px; flex-wrap: wrap; }
.wordmark { font-family: var(--heading); font-weight: 700; font-size: 26px; letter-spacing: .02em; line-height: 1; display: flex; flex-direction: column; }
.wordmark .r { color: var(--red); font-style: italic; }
.wordmark small { color: var(--red); font-size: 10px; letter-spacing: .42em; margin-top: 2px; }
.wordmark:hover { color: var(--text); }
.nav-links { display: flex; gap: 20px; flex: 1; }
.nav-links a, .nav-user a { color: var(--muted); font-weight: 500; }
.nav-links a:hover, .nav-user a:hover, .nav-links a.active { color: var(--text); }
.nav-user { display: flex; align-items: center; gap: 16px; }
.credit-pill { background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; font-weight: 600; color: var(--text) !important; white-space: nowrap; }
.credit-pill b { color: var(--red); }
.link-button { background: none; border: 0; color: var(--muted); font: inherit; font-weight: 500; cursor: pointer; padding: 0; }
.link-button:hover { color: var(--text); }

@media (max-width: 760px) {
  .nav { gap: 12px; padding: 10px 0; }
  .nav-links { order: 3; flex-basis: 100%; gap: 16px; overflow-x: auto; }
  .nav-user { margin-left: auto; gap: 12px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: 600 14px var(--body); cursor: pointer; transition: background .15s, border-color .15s; }
.btn:hover { border-color: var(--muted); color: var(--text); }
.btn-primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Hero */
.hero { border-bottom: 1px solid var(--border); background: linear-gradient(180deg, #000, var(--bg)); }
.hero-art { height: clamp(170px, 30vw, 340px); background: #000 url("../img/logo.612eb94c7865.png") center 50% / auto 170% no-repeat; position: relative; }
.hero-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 60%, #000); }
.hero .container { padding-top: 8px; padding-bottom: 40px; text-align: center; }
.hero h1, .hero p { margin-left: auto; margin-right: auto; }
.hero .search { margin: 0 auto; }
@media (max-width: 760px) { .hero-art { background-size: auto 150%; } }
.hero h1 { max-width: 640px; }
.hero p { color: var(--muted); max-width: 560px; font-size: 16px; }

.search { display: flex; gap: 8px; max-width: 560px; }
.search input { flex: 1; }

/* Cards & grids */
.grid { display: grid; gap: 14px; }
.grid-brands { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
a.card { display: block; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--red); color: var(--text); transform: translateY(-1px); }
.card h3 { margin-bottom: 4px; }
.card .count { color: var(--muted); font-size: 13px; }
.step-num { font-family: var(--heading); color: var(--red); font-size: 30px; font-weight: 700; line-height: 1; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 13px; padding: 18px 0 6px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--red); }
.breadcrumbs span::before { content: '/'; margin-right: 6px; color: var(--border); }

.tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); }
.tag-diesel { color: #6fb4ff; }
.tag-petrol { color: #ffb46f; }
.tag-hybrid { color: #7fe0a8; }
.specs { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.specs b { color: var(--text); font-weight: 600; }

/* Engine list rows */
.engine-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.engine-row .best { text-align: right; font-family: var(--heading); font-size: 20px; font-weight: 700; }
.engine-row .best small { display: block; font: 12px var(--body); color: var(--muted); }

/* Performance chart */
.perf { display: grid; gap: 16px; }
.perf-row { display: grid; grid-template-columns: 90px 1fr; gap: 14px; align-items: center; }
.perf-label { font-family: var(--heading); font-weight: 700; font-size: 17px; }
.bars { display: grid; gap: 6px; }
.bar { position: relative; height: 26px; background: var(--surface-2); border-radius: 6px; overflow: hidden; }
.bar-fill { position: absolute; inset: 0 auto 0 0; border-radius: 6px; }
.bar-hp .bar-fill { background: linear-gradient(90deg, #7a0f18, var(--red)); }
.bar-nm .bar-fill { background: linear-gradient(90deg, #3a3a44, #8a8a96); }
.perf-row.stock .bar-fill { background: #3a3a44; }
.bar-text { position: relative; z-index: 1; display: flex; justify-content: space-between; padding: 0 10px; line-height: 26px; font-size: 13px; font-weight: 600; }
.bar-text em { font-style: normal; color: rgba(255,255,255,.75); font-weight: 500; }
@media (max-width: 560px) { .perf-row { grid-template-columns: 1fr; gap: 6px; } }

.stage-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.stage-card .gain { font-family: var(--heading); font-size: 30px; font-weight: 700; color: var(--red); line-height: 1.1; }
.stage-card .price { font-weight: 700; font-size: 18px; margin: 12px 0; }
.stage-card .req { font-size: 13px; color: var(--muted); min-height: 2.6em; }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
td.num, th.num { text-align: right; }
.plus { color: var(--green); }
.minus { color: var(--red); }

.status { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid; }
.status-submitted { color: var(--amber); border-color: rgba(240,160,32,.4); }
.status-in_progress { color: #6fb4ff; border-color: rgba(111,180,255,.4); }
.status-completed { color: var(--green); border-color: rgba(47,191,113,.4); }
.status-cancelled { color: var(--muted); border-color: var(--border); }

/* Forms */
label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=file], select, textarea {
  width: 100%; padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font: 14px var(--body);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--red); outline-offset: 0; border-color: transparent; }
.field { margin-bottom: 16px; }
.field .help { color: var(--muted); font-size: 12px; margin-top: 4px; }
.errorlist { list-style: none; padding: 0; margin: 6px 0 0; color: #ff6b75; font-size: 13px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }
.choice-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.choice-list label { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; cursor: pointer; margin: 0; }
.choice-list label:has(input:checked) { border-color: var(--red); }
.choice-list input { margin-top: 4px; accent-color: var(--red); }
.checkbox-field label { display: flex; gap: 10px; font-weight: 500; }
.checkbox-field input { accent-color: var(--red); margin-top: 4px; }
.form-card { max-width: 440px; margin: 40px auto; }

.layout-2 { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .layout-2 { grid-template-columns: 1fr; } }
.summary { position: sticky; top: 84px; }
.summary .total { font-family: var(--heading); font-size: 36px; font-weight: 700; }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 0 0 14px; font-size: 14px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; text-align: right; font-weight: 600; }

/* Pricing */
.package { text-align: center; display: flex; flex-direction: column; gap: 8px; }
.package.featured { border-color: var(--red); box-shadow: 0 0 0 1px var(--red) inset; }
.package .credits { font-family: var(--heading); font-size: 46px; font-weight: 700; line-height: 1; }
.package .price { font-size: 22px; font-weight: 700; }
.package form { margin-top: auto; }

/* Messages */
.messages { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.messages li { padding: 12px 14px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); }
.messages .success { border-color: rgba(47,191,113,.5); }
.messages .error { border-color: rgba(227,30,45,.6); }
.messages .info, .messages .warning { border-color: rgba(240,160,32,.5); }

.notice { padding: 14px 16px; border: 1px dashed var(--border); border-radius: 8px; color: var(--muted); }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.stat .value { font-family: var(--heading); font-size: 34px; font-weight: 700; line-height: 1.1; }
.stat .label { color: var(--muted); font-size: 13px; }

/* Home – hero */
.hero2 { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); padding: 56px 0 28px; background: #000; }
.hero2-bg { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 80% at 85% 20%, rgba(227,30,45,.28), transparent 60%),
    radial-gradient(40% 60% at 10% 90%, rgba(227,30,45,.12), transparent 70%),
    repeating-linear-gradient(90deg, rgba(227,30,45,.07) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 64px);
  animation: grid-drift 24s linear infinite; }
@keyframes grid-drift { from { background-position: 0 0, 0 0, 0 0, 0 0; } to { background-position: 0 0, 0 0, 64px 0, 0 64px; } }
@media (prefers-reduced-motion: reduce) { .hero2-bg { animation: none; } }
.hero2-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: center; }
@media (max-width: 900px) { .hero2-grid { grid-template-columns: 1fr; gap: 28px; } }
.hero2 h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1; margin-bottom: 16px; }
.hero2 p { color: var(--muted); font-size: 16px; max-width: 520px; }
.eyebrow { font-family: var(--heading); color: var(--red); letter-spacing: .25em; text-transform: uppercase; font-size: 13px; margin-bottom: 12px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 18px; }
.btn-lg { padding: 13px 24px; font-size: 15px; }
.hero2-logo { aspect-ratio: 16 / 9; border-radius: var(--radius); border: 1px solid var(--border); background: #000 url("../img/logo.612eb94c7865.png") center / cover no-repeat; }
.video-caption { margin-top: 10px; font-size: 14px; }
.stat-strip { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 40px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.stat-strip div { background: rgba(18,18,22,.92); padding: 16px 18px; display: flex; flex-direction: column; }
.stat-strip b { font-family: var(--heading); font-size: 28px; line-height: 1.1; }
.stat-strip span { color: var(--muted); font-size: 13px; }
@media (max-width: 640px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }

/* Videos (click to play) */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--border); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-facade { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; cursor: pointer; background: #000 center / cover no-repeat; }
.video-facade::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.55)); transition: background .2s; }
.video-facade:hover::after { background: rgba(0,0,0,.15); }
.play { position: absolute; z-index: 1; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; border-radius: 12px; background: var(--red); box-shadow: 0 6px 24px rgba(227,30,45,.5); transition: transform .2s; }
.play::before { content: ''; position: absolute; left: 27px; top: 14px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.video-facade:hover .play { transform: scale(1.08); }
.video-tile h3 { margin: 10px 0 2px; font-size: 17px; }

/* Home – services */
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.service-card { position: relative; padding: 24px; display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
.service-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--red), transparent); }
.service-tag { font-family: var(--heading); font-size: 54px; line-height: 1; color: rgba(227,30,45,.18); position: absolute; right: 18px; top: 12px; }
.service-card .btn { align-self: flex-start; margin-top: auto; }
.price-list { list-style: none; padding: 0; margin: 6px 0 18px; display: grid; gap: 6px; }
.price-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; background: var(--surface-2); border-radius: 8px; font-size: 14px; }
.price-list b { color: var(--red); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2, .section-head h1 { margin: 0; }
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 28px; background: linear-gradient(120deg, rgba(227,30,45,.18), var(--surface) 60%); }
.cta-band h2 { margin-bottom: 4px; }
.cta-band p { margin: 0; }

/* TCU gearboxes */
.gearbox-card { display: flex; flex-direction: column; gap: 4px; position: relative; }
.gearbox-code { font-family: var(--heading); font-size: 34px; font-weight: 700; color: var(--red); line-height: 1; }
.gearbox-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.gearbox-foot b { font-size: 20px; }

/* ECU platforms */
.ecu-search { margin: 18px 0 14px; max-width: 640px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tab { font: 600 14px var(--body); color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 8px 18px; cursor: pointer; }
.tab:hover { color: var(--text); border-color: var(--muted); }
.tab.active { color: #fff; background: var(--red); border-color: var(--red); }
.platform-group { margin-bottom: 30px; }
.platform-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.platform-card.is-hidden { display: none; }
.platform-code { font-family: var(--heading); font-size: 28px; font-weight: 700; color: var(--red); line-height: 1; }
.platform-card h3 { font-size: 16px; margin: 2px 0 6px; }
.option-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* Ticket */
.info-list { display: grid; grid-template-columns: 140px 1fr; gap: 8px 14px; margin: 0; font-size: 14px; }
.info-list dt { color: var(--muted); }
.info-list dd { margin: 0; font-weight: 500; }
@media (max-width: 520px) { .info-list { grid-template-columns: 1fr; } .info-list dd { margin-bottom: 6px; } }
.chat { display: flex; flex-direction: column; gap: 10px; max-height: 460px; overflow-y: auto; padding: 4px 2px 12px; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); align-self: flex-start; }
.msg-mine { align-self: flex-end; background: rgba(227,30,45,.14); border-color: rgba(227,30,45,.35); }
.msg-meta { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.msg-body { font-size: 14px; white-space: normal; overflow-wrap: anywhere; }
.msg-file { display: inline-block; margin-top: 6px; font-size: 13px; color: var(--red); text-decoration: underline; overflow-wrap: anywhere; }
.chat-empty { margin: 0; }
.chat-form { border-top: 1px solid var(--border); padding-top: 12px; display: grid; gap: 8px; }
.chat-form-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.file-pick { position: relative; margin: 0; font-weight: 500; color: var(--muted); cursor: pointer; overflow: hidden; max-width: 60%; white-space: nowrap; text-overflow: ellipsis; }
.file-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-pick span::before { content: '📎 '; }
.file-list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.file-list li { display: flex; flex-direction: column; padding: 8px 10px; background: var(--surface-2); border-radius: 8px; font-size: 14px; overflow-wrap: anywhere; }
.file-list li a { color: var(--text); text-decoration: underline; }
.file-list li span { color: var(--muted); font-size: 12px; }
.file-list li.tuned { border: 1px solid rgba(47,191,113,.5); }
.badge { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; }

/* Order page – performance graphic (stock vs selected stage) */
.perf-card { margin-top: 18px; padding: 16px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); }
.perf-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.perf-card-head h3 { margin: 0; }
.perf-metric { margin-top: 12px; }
.perf-metric-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; font-weight: 600; font-size: 14px; }
.perf-gain { font-family: var(--heading); font-size: 24px; color: var(--red); line-height: 1; }
.perf-gain small { font: 600 12px var(--body); color: var(--muted); margin-left: 6px; }
.pbar { position: relative; height: 30px; margin-bottom: 6px; background: var(--bg); border-radius: 6px; overflow: hidden; }
.pbar-fill { position: absolute; inset: 0 auto 0 0; border-radius: 6px; transition: width .35s ease; }
.pbar-stock { background: #3a3a44; }
.pbar-tuned { background: linear-gradient(90deg, #7a0f18, var(--red)); }
.pbar span { position: relative; z-index: 1; display: block; padding: 0 10px; line-height: 30px; font-size: 13px; }
.pbar-empty { border: 1px dashed var(--border); background: transparent; }
.pbar-empty span { color: var(--muted); }
.choice-row { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); margin-bottom: 10px; }
.engine-picker .field { margin-bottom: 10px; }

/* Staff: ticket list and RTMG panel */
.ticket-search { flex: 1; max-width: 460px; margin: 0; }
.tab-count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: rgba(255,255,255,.12); font-size: 12px; }
.tab.active .tab-count { background: rgba(0,0,0,.25); }
a.tab { text-decoration: none; }
.ticket-table tbody tr { cursor: pointer; }
.ticket-table tbody tr:hover td { background: var(--surface-2); }
.ticket-table td { white-space: normal; vertical-align: top; }
.ticket-vehicle { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.ticket-table td.vin { font-family: ui-monospace, Consolas, monospace; font-size: 13px; letter-spacing: .02em; white-space: nowrap; }
.summary-stack { display: grid; gap: 16px; align-self: start; position: sticky; top: 84px; }
.summary-stack > .card { margin: 0; }
@media (max-width: 900px) { .summary-stack { position: static; } }
.staff-panel { border-color: rgba(227,30,45,.55); box-shadow: 0 0 0 1px rgba(227,30,45,.25) inset; }
.staff-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.staff-panel-head h3 { margin: 0; }
.info-list.compact { grid-template-columns: 80px 1fr; gap: 4px 10px; font-size: 13px; margin-bottom: 14px; }
.staff-form { display: grid; gap: 6px; margin-bottom: 12px; }
.staff-form label { margin: 4px 0 0; }
.drop-zone { position: relative; display: flex; align-items: center; justify-content: center; min-height: 70px; padding: 12px; border: 2px dashed var(--border); border-radius: 8px; color: var(--muted); font-weight: 500; text-align: center; cursor: pointer; overflow-wrap: anywhere; }
.drop-zone.dragging, .drop-zone:hover { border-color: var(--red); color: var(--text); }
.drop-zone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.checkbox-inline { display: flex !important; gap: 8px; align-items: flex-start; font-weight: 500 !important; }
.checkbox-inline input { accent-color: var(--red); margin-top: 3px; }
.staff-buttons { display: grid; gap: 8px; margin-bottom: 12px; }
.staff-more summary { cursor: pointer; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.btn-danger { border-color: rgba(227,30,45,.6); color: #ff6b75; }
.btn-danger:hover { background: rgba(227,30,45,.15); color: #fff; }

/* Dealers map */
.dealer-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .dealer-layout { grid-template-columns: 1fr; } }
.dealer-map { height: 620px; padding: 0; overflow: hidden; position: sticky; top: 84px; z-index: 0; }
@media (max-width: 900px) { .dealer-map { height: 380px; position: static; } }
/* Dark map to match the site: invert the standard OpenStreetMap tiles. */
.dealer-map .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.9) contrast(.9) saturate(.6); }
.dealer-map .leaflet-container, .dealer-map.leaflet-container { background: #111; }
/* "#dealer-map" makes these win over leaflet.css, which loads after this file. */
#dealer-map .leaflet-popup-content-wrapper, #dealer-map .leaflet-popup-tip { background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: 0 6px 24px rgba(0,0,0,.6); }
#dealer-map .leaflet-popup-content { font: 14px/1.5 var(--body); margin: 12px 14px; }
#dealer-map .leaflet-popup-content a { color: var(--red); }
#dealer-map a.leaflet-popup-close-button { color: var(--muted); }
#dealer-map .leaflet-control-attribution { background: rgba(0,0,0,.6); color: #aaa; }
#dealer-map .leaflet-control-attribution a { color: #ddd; }
#dealer-map .leaflet-bar a { background: var(--surface); color: var(--text); border-color: var(--border); }
.popup-services { color: var(--muted); font-size: 12px; }
.dealer-pin span { display: block; width: 28px; height: 28px; background: var(--red); border: 2px solid #fff;
  border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 3px 10px rgba(0,0,0,.5); }
.dealer-pin span::after { content: ''; position: absolute; width: 8px; height: 8px; left: 8px; top: 8px; border-radius: 50%; background: #fff; }
.dealer-tools { display: flex; gap: 8px; margin-bottom: 12px; }
.dealer-tools input { flex: 1; }
.dealer-tools .btn { white-space: nowrap; }
.dealer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; max-height: 560px; overflow-y: auto; }
@media (max-width: 900px) { .dealer-list { max-height: none; } }
.dealer-item { cursor: pointer; padding: 14px 16px; transition: border-color .15s; }
.dealer-item:hover, .dealer-item.active { border-color: var(--red); }
.dealer-item-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.dealer-item h3 { font-size: 17px; margin: 0 0 4px; }
.dealer-services { margin: 0 0 6px; font-size: 13px; color: var(--red); font-weight: 600; }
.dealer-links { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; }
.dealer-links a { color: var(--text); text-decoration: underline; text-decoration-color: var(--border); }
.dealer-links a:hover { color: var(--red); }

/* Accounts: sign-up sections, approval notice, price tier */
.signup-card { max-width: 720px; }
.form-section { margin: 18px 0 10px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 17px; }
.account-pending { margin: 4px 0 18px; border-style: solid; border-color: rgba(240,160,32,.5); color: var(--text); }
.tier { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid; }
.tier-b2b { color: var(--green); border-color: rgba(47,191,113,.45); }
.tier-pending { color: var(--amber); border-color: rgba(240,160,32,.45); }
.tier-retail { color: var(--muted); border-color: var(--border); }
.retail-note { font-size: 13px; color: var(--muted); margin: -4px 0 18px; }
.login-for-prices { color: var(--red); font-size: 14px; font-weight: 600; text-decoration: underline; }
.stage-card .gain .login-for-prices, .platform-grid .login-for-prices { font-family: var(--body); }

/* Brand logos – shown on a white tile so any logo (black SVG, colour PNG) reads well on the dark theme */
.brand-logo { display: inline-flex; align-items: center; justify-content: center; flex: none; background: #fff; border-radius: 10px; width: 56px; height: 56px; padding: 8px; overflow: hidden; }
.brand-logo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.brand-logo-text { color: #111; font: 700 11px var(--heading); text-align: center; line-height: 1.1; letter-spacing: .02em; overflow-wrap: anywhere; }
.brand-logo-xs { width: 30px; height: 30px; padding: 4px; border-radius: 6px; font-size: 7px; }
.brand-logo-sm { width: 44px; height: 44px; padding: 6px; }
.brand-logo-md { width: 64px; height: 64px; padding: 9px; }
.brand-logo-lg { width: 84px; height: 84px; padding: 12px; border-radius: 14px; font-size: 13px; }
.brand-strip-section { padding-top: 32px; }
.brand-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.brand-tile { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 8px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .15s, transform .15s; }
.brand-tile:hover { border-color: var(--red); transform: translateY(-2px); color: var(--text); }
.brand-tile-name { font-size: 13px; font-weight: 600; color: var(--muted); }
.brand-card { display: flex !important; align-items: center; gap: 12px; }
.brand-heading { display: flex; align-items: center; gap: 14px; }
.group-brands { display: inline-flex; gap: 6px; }

/* Legal documents (rendered from Word) */
.legal-body { padding: 28px; line-height: 1.7; max-width: 860px; }
.legal-body h1, .legal-body h2, .legal-body h3 { margin-top: 1.4em; }
.legal-body table { white-space: normal; }
.legal-body td, .legal-body th { white-space: normal; }
.legal-body img { max-width: 100%; height: auto; }
.legal-body a { color: var(--red); text-decoration: underline; }

.site-footer { border-top: 1px solid var(--border); margin-top: 48px; padding: 24px 0; color: var(--muted); font-size: 13px; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.empty { padding: 32px; text-align: center; color: var(--muted); }
