/* ============ Lawha — "Your number. Your signature." ============ */
/* Light luxury theme: ivory, white and Bahraini red, with the flag's serrated edge as a motif. */
:root {
  --bg: #fbf8f4;           /* warm ivory */
  --bg-2: #f4efe8;
  --surface: #ffffff;
  --line: #ebe4da;
  --line-strong: #d9cfc2;
  --text: #1c1516;
  --text-2: #5d5352;
  --muted: #988c86;
  --red: #ce1126;          /* Bahrain red */
  --red-deep: #9f0c1d;
  --red-soft: #fbeaec;
  --green: #1fa855;
  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(60, 20, 20, .04), 0 4px 14px rgba(60, 20, 20, .05);
  --shadow: 0 2px 4px rgba(60, 20, 20, .04), 0 24px 50px rgba(60, 20, 20, .10);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --serration: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='11'%3E%3Cpolygon points='0,0 26,0 13,11' fill='%23ce1126'/%3E%3C/svg%3E");
}
html[dir="rtl"] { --sans: "Tajawal", "Inter", system-ui, sans-serif; --serif: "Tajawal", serif; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--red); color: #fff; }
.container { width: min(1240px, 92%); margin-inline: auto; }
.muted { color: var(--muted); font-weight: 400; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 24px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 500; font-size: 14px; letter-spacing: .04em; cursor: pointer; white-space: nowrap;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s, color .2s;
}
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 8px 22px rgba(206, 17, 38, .22); }
.btn--primary:hover { background: var(--red-deep); transform: translateY(-1px); }
.btn--ghost { background: var(--surface); border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--red); color: var(--red); }
.btn--whatsapp { background: var(--green); color: #fff; font-weight: 600; }
.btn--whatsapp:hover { filter: brightness(.95); }
.btn--danger { background: none; color: var(--red); border-color: #f0c3c9; margin-top: 12px; }
.btn--block { width: 100%; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .9); backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.header::before { /* thin red line along the very top */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--red);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo__mark {
  position: relative; width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: var(--red); color: #fff; font-family: var(--serif); font-size: 24px; font-weight: 700;
  overflow: hidden;
}
.logo__mark::before { /* tiny flag zigzag on the logo */
  content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 9px; background: #fff;
  clip-path: polygon(0 0, 100% 0, 30% 10%, 100% 20%, 30% 30%, 100% 40%, 30% 50%, 100% 60%, 30% 70%, 100% 80%, 30% 90%, 100% 100%, 0 100%);
}
.logo__words { display: flex; flex-direction: column; line-height: 1.1; }
.logo__text { font-family: var(--serif); font-size: 26px; font-weight: 700; letter-spacing: .01em; }
.logo__ar { font-family: "Tajawal", sans-serif; font-size: 17px; font-weight: 500; color: var(--red); margin-inline-start: 4px; }
.logo__tag { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
html[dir="rtl"] .logo__tag { letter-spacing: 0; font-size: 12px; }
.nav { display: flex; gap: 34px; font-size: 14px; letter-spacing: .05em; color: var(--text-2); }
.nav a { transition: color .2s; }
.nav a:hover { color: var(--red); }
.badge { background: var(--red); color: #fff; font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 99px; margin-inline-start: 4px; }
.header__actions { display: flex; gap: 10px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--surface); }
.hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; padding: 100px 0 110px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 600;
  letter-spacing: .26em; text-transform: uppercase; color: var(--red);
}
html[dir="rtl"] .eyebrow { letter-spacing: 0; font-size: 14px; }
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--red); }
.hero h1 { font-size: clamp(46px, 6vw, 84px); line-height: 1; margin-top: 20px; font-weight: 600; letter-spacing: -.01em; }
.hero p { color: var(--text-2); font-size: 17px; font-weight: 400; margin: 24px 0 34px; max-width: 500px; }
.search {
  display: flex; gap: 8px; padding: 7px; max-width: 520px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; box-shadow: var(--shadow);
}
.search:focus-within { border-color: var(--red); }
.search input { flex: 1; border: 0; outline: 0; padding: 10px 20px; font-size: 18px; letter-spacing: .14em; background: none; }
.search input::placeholder { color: var(--muted); letter-spacing: .03em; font-size: 15px; }
.hero__stats { display: flex; gap: 48px; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); max-width: 520px; }
.hero__stats strong { display: block; font-family: var(--serif); font-size: 36px; font-weight: 700; color: var(--red); line-height: 1.1; }
.hero__stats span { color: var(--muted); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; }
html[dir="rtl"] .hero__stats span { letter-spacing: 0; font-size: 13px; }

/* Red flag panel with the serrated edge, running to the right edge of the screen */
.hero__visual { position: relative; min-height: 380px; display: grid; place-items: center; }
.hero__flagpanel {
  position: absolute; top: -100px; bottom: -110px; inset-inline-start: 40px; width: 60vw;
  background:
    radial-gradient(500px 300px at 35% 45%, rgba(255, 255, 255, .14), transparent 70%),
    linear-gradient(160deg, #d8142b 0%, var(--red) 45%, var(--red-deep) 100%);
  clip-path: polygon(70px 0, 0 10%, 70px 20%, 0 30%, 70px 40%, 0 50%, 70px 60%, 0 70%, 70px 80%, 0 90%, 70px 100%, 100% 100%, 100% 0);
}
html[dir="rtl"] .hero__flagpanel { transform: scaleX(-1); }
.hero__glow { display: none; }
.hero__plate { position: absolute; z-index: 2; inset-inline-start: 50%; }
.hero__plate--main { transform: translateX(-38%) rotate(-4deg); animation: float 6s ease-in-out infinite; z-index: 3; }
.hero__plate--back { transform: translate(-20%, 120px) rotate(5deg); opacity: .92; }
html[dir="rtl"] .hero__plate--main { transform: translateX(38%) rotate(-4deg); }
html[dir="rtl"] .hero__plate--back { transform: translate(20%, 120px) rotate(5deg); }
@keyframes float { 50% { margin-top: -14px; } }

/* serrated red edge between sections */
.serration { height: 11px; background: var(--serration) repeat-x; background-size: 26px 11px; }

/* ---------- Bahrain plate ---------- */
/* Current private plate: white, flag left, blue condensed digits, البحرين / BAHRAIN right. */
.plate {
  --h: 56px;
  position: relative; display: inline-flex; align-items: center;
  height: var(--h); width: calc(var(--h) * 4.6);
  padding: calc(var(--h) * .1) calc(var(--h) * .14);
  background: linear-gradient(170deg, #ffffff 0%, #f6f6f4 55%, #ebebe8 100%);
  border-radius: calc(var(--h) * .11);
  box-shadow:
    inset 0 0 0 calc(var(--h) * .035) #ffffff,
    inset 0 0 0 calc(var(--h) * .055) #1d1d1d,
    0 calc(var(--h) * .03) calc(var(--h) * .06) rgba(0, 0, 0, .12),
    0 calc(var(--h) * .2) calc(var(--h) * .5) rgba(80, 10, 15, .22);
  direction: ltr; overflow: hidden; flex-shrink: 0;
}
.plate::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .7) 45%, transparent 60%); opacity: .4;
}
.plate__flag { width: calc(var(--h) * .62); flex-shrink: 0; display: flex; align-items: center; }
.plate__flag svg { width: 100%; height: auto; display: block; }
.plate__num {
  flex: 1; text-align: center; color: #1b2b78;
  font-family: "Saira Condensed", "Arial Narrow", sans-serif; font-weight: 600;
  font-size: calc(var(--h) * .74); line-height: 1; letter-spacing: .05em; white-space: nowrap;
}
.plate__country {
  display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0;
  color: #1d1d1d; line-height: 1.05; padding-inline-start: calc(var(--h) * .06);
}
.plate__ar { font-family: "Tajawal", sans-serif; font-weight: 700; font-size: calc(var(--h) * .2); }
.plate__en { font-family: "Inter", sans-serif; font-weight: 700; font-size: calc(var(--h) * .13); letter-spacing: .06em; }
.plate--md { --h: 50px; }
.plate--lg { --h: 72px; }
.plate--xl { --h: 100px; }

/* ---------- main layout ---------- */
.main { display: grid; grid-template-columns: 270px 1fr; gap: 34px; padding: 70px 0 96px; align-items: start; }
.filters {
  position: sticky; top: 104px; display: grid; gap: 22px; padding: 26px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.filters h3 { font-size: 26px; }
.field { display: grid; gap: 9px; font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
html[dir="rtl"] .field { letter-spacing: 0; font-size: 13px; }
.field strong { color: var(--red); letter-spacing: .02em; }
.field input:not([type=checkbox]):not([type=range]), .field select, .field textarea, #sortSelect {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 11px;
  background: var(--surface); outline: none; font-size: 15px; letter-spacing: normal; text-transform: none; color: var(--text);
  transition: border-color .2s;
}
.field select, #sortSelect {
  appearance: none; padding-inline-end: 36px;
  background-image: linear-gradient(45deg, transparent 50%, var(--red) 50%), linear-gradient(135deg, var(--red) 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat;
}
html[dir="rtl"] .field select, html[dir="rtl"] #sortSelect { background-position: 13px 52%, 18px 52%; }
.field input:focus, .field select:focus, .field textarea:focus, #sortSelect:focus { border-color: var(--red); }
.field input[type=range] { accent-color: var(--red); }
.checkbox { display: flex; align-items: center; gap: 10px; cursor: pointer; text-transform: none; letter-spacing: normal; font-size: 14px; font-weight: 500; color: var(--text-2); }
.checkbox input { accent-color: var(--red); width: 16px; height: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-2); border-radius: 99px; padding: 5px 13px; cursor: pointer; font-weight: 500; font-size: 13px; transition: .2s; }
.chip:hover { border-color: var(--red); color: var(--red); }
.chip.is-active { background: var(--red); color: #fff; border-color: var(--red); }

.results__bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; gap: 12px; }
.results__bar h2 { font-size: 38px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; outline: none; box-shadow: var(--shadow-sm);
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s, border-color .3s;
}
.card:hover, .card:focus-visible { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card__plate {
  position: relative; display: grid; place-items: center; height: 156px;
  background: radial-gradient(260px 120px at 50% 55%, #ffffff, transparent 70%), linear-gradient(180deg, #f6f1ea, #efe8de);
}
.card__plate::after { /* serrated red edge at the bottom of every card image */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 7px;
  background: var(--serration) repeat-x; background-size: 16px 7px; transform: scaleY(-1);
}
.card__body { padding: 18px 20px 20px; }
.card__price { font-family: var(--serif); font-size: 28px; font-weight: 700; line-height: 1.2; }
.card__meta { color: var(--muted); font-size: 13px; margin: 4px 0 12px; }
.card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.card__fav {
  position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .9); cursor: pointer; font-size: 17px; color: var(--text-2);
  box-shadow: var(--shadow-sm); transition: .2s;
}
.card__fav:hover, .card__fav.is-active { color: var(--red); border-color: var(--red); }
.card__new {
  position: absolute; top: 14px; inset-inline-start: 14px; z-index: 2; font-size: 10px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: #fff; background: var(--text); padding: 4px 10px; border-radius: 99px;
}

.tag { font-size: 11.5px; font-weight: 500; padding: 3px 10px; border-radius: 99px; border: 1px solid var(--line-strong); color: var(--text-2); background: var(--surface); }
.tag--vip { background: var(--red); color: #fff; border-color: var(--red); font-weight: 700; letter-spacing: .14em; }
.tag--repeated, .tag--sequence, .tag--mirror, .tag--round { background: var(--red-soft); border-color: transparent; color: var(--red-deep); }
.tag--neg { color: #157a3d; background: #e9f6ee; border-color: transparent; }

.empty { text-align: center; padding: 70px 20px; color: var(--muted); background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); }

/* ---------- how it works ---------- */
.how { padding: 96px 0; background: var(--surface); border-top: 1px solid var(--line); }
.how h2 { font-size: 50px; text-align: center; margin-bottom: 46px; }
.how__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.how__step { position: relative; padding: 36px 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); overflow: hidden; transition: border-color .3s, transform .3s; }
.how__step:hover { border-color: var(--red); transform: translateY(-3px); }
.how__step span { display: block; font-family: var(--serif); font-size: 54px; font-weight: 700; line-height: 1; color: var(--red); margin-bottom: 14px; }
.how__step h4 { font-size: 26px; }
.how__step p { color: var(--text-2); font-size: 15px; margin-top: 6px; }

/* ---------- footer ---------- */
.footer { position: relative; padding: 40px 0 34px; background: var(--red); color: #fff; font-size: 13px; }
.footer::before { content: ""; position: absolute; top: -11px; left: 0; right: 0; height: 11px; background: var(--serration) repeat-x; background-size: 26px 11px; transform: scaleY(-1); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer__brand { font-family: var(--serif); font-size: 22px; }
.footer__brand em { font-style: italic; opacity: .9; }
.footer .muted { color: rgba(255, 255, 255, .75); }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(40, 15, 18, .45); backdrop-filter: blur(6px); }
.modal__card {
  position: relative; width: min(560px, 100%); max-height: 92vh; overflow-y: auto; padding: 34px;
  background: var(--surface); border-radius: 22px; box-shadow: 0 30px 90px rgba(40, 10, 15, .3);
  border-top: 4px solid var(--red); animation: pop .25s ease-out;
}
@keyframes pop { from { transform: translateY(14px) scale(.98); opacity: 0; } }
.modal__close { position: absolute; top: 14px; inset-inline-end: 18px; background: none; border: 0; font-size: 30px; cursor: pointer; color: var(--muted); line-height: 1; }
.modal__close:hover { color: var(--red); }
.modal__card h2 { font-size: 36px; margin-bottom: 18px; }

.detail { display: grid; gap: 18px; }
.detail__plate {
  position: relative; display: grid; place-items: center; padding: 44px 10px; border-radius: 14px; overflow: hidden;
  background: radial-gradient(320px 140px at 50% 55%, #fff, transparent 70%), linear-gradient(180deg, #f6f1ea, #efe8de);
}
.detail__plate .plate--xl { --h: clamp(56px, 17vw, 96px); }
.detail__tags { justify-content: center; }
.detail__price { font-family: var(--serif); font-size: 46px; font-weight: 700; text-align: center; line-height: 1.1; }
.detail__price small { display: block; font-family: var(--sans); font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--red); font-weight: 600; margin-top: 6px; }
.detail__info { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.detail__info div { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.detail__info dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.detail__info dd { font-weight: 600; }
.detail__notes { border-inline-start: 3px solid var(--red); padding: 6px 14px; font-size: 15px; color: var(--text-2); font-style: italic; }
.detail__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.detail__actions .btn--whatsapp { flex: 1; }

.form { display: grid; gap: 16px; margin-top: 22px; }
.form__row { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; }
.checkbox--inline { margin-top: 24px; }
.sell-preview {
  display: grid; place-items: center; padding: 30px 10px; border-radius: 14px;
  background: radial-gradient(280px 120px at 50% 55%, #fff, transparent 70%), linear-gradient(180deg, #f6f1ea, #efe8de);
}
.sell-preview .plate--lg { --h: clamp(48px, 13vw, 72px); }
.phone { display: flex; border: 1px solid var(--line-strong); border-radius: 11px; overflow: hidden; direction: ltr; background: var(--surface); }
.phone:focus-within { border-color: var(--red); }
.phone span { padding: 12px 14px; border-inline-end: 1px solid var(--line); font-weight: 600; color: var(--red); background: var(--bg); letter-spacing: normal; }
.phone input { border: 0 !important; border-radius: 0 !important; }
.error { color: var(--red); font-size: 12px; text-transform: none; letter-spacing: normal; }
.error:empty { display: none; }

.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 60;
  background: var(--text); color: #fff; padding: 13px 24px; border-radius: 999px; font-weight: 500; box-shadow: var(--shadow);
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .nav { display: none; }
  .hero__inner { grid-template-columns: 1fr; padding: 60px 0 0; gap: 40px; }
  .hero__visual { min-height: 300px; margin-inline: -5vw; }
  .hero__flagpanel { inset: 0; top: 0; bottom: 0; width: auto; clip-path: polygon(0 40px, 10% 0, 20% 40px, 30% 0, 40% 40px, 50% 0, 60% 40px, 70% 0, 80% 40px, 90% 0, 100% 40px, 100% 100%, 0 100%); }
  html[dir="rtl"] .hero__flagpanel { transform: none; }
  .main { grid-template-columns: 1fr; padding-top: 44px; }
  .filters { position: static; }
  .how__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .header__inner { height: 70px; }
  .logo__tag { display: none; }
  .logo__text { font-size: 22px; }
  .header__actions .btn { padding: 8px 12px; font-size: 13px; }
  .hero__stats { gap: 24px; }
  .hero .plate--xl { --h: 64px; }
  .hero .plate--lg { --h: 48px; }
  .hero__plate--back { transform: translate(-20%, 80px) rotate(5deg); }
  .results__bar { flex-direction: column; align-items: flex-start; }
}

/* ---------- layout fixes ---------- */
.hero__inner, .main { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.main { grid-template-columns: 270px minmax(0, 1fr); }
.hero__visual { align-self: stretch; }
.hero__plate--main { top: 34%; }
.hero__plate--back { top: 34%; }
#sortSelect { width: auto; min-width: 200px; }
.results__bar h2 { white-space: nowrap; }
@media (max-width: 960px) {
  .hero__inner, .main { grid-template-columns: minmax(0, 1fr); }
  .hero__plate--main { top: 28%; transform: translateX(-50%) rotate(-4deg); }
  .hero__plate--back { top: 28%; transform: translate(-42%, 100px) rotate(5deg); }
  html[dir="rtl"] .hero__plate--main { transform: translateX(50%) rotate(-4deg); }
  html[dir="rtl"] .hero__plate--back { transform: translate(42%, 100px) rotate(5deg); }
}
@media (max-width: 560px) {
  .hero__plate--back { transform: translate(-42%, 75px) rotate(5deg); }
  .hero h1 { font-size: 44px; }
}

/* ---------- logo: plate badge ---------- */
.logo { display: flex; align-items: center; gap: 16px; }
.logo-plate {
  --h: 42px;
  display: inline-flex; align-items: center; gap: calc(var(--h) * .14);
  height: var(--h); padding: 0 calc(var(--h) * .22); border-radius: calc(var(--h) * .14);
  background: #fff; direction: ltr; flex-shrink: 0;
  box-shadow: inset 0 0 0 calc(var(--h) * .05) #fff, inset 0 0 0 calc(var(--h) * .085) #1d1d1d, 0 4px 14px rgba(80, 10, 15, .12);
}
.logo-plate__flag { width: calc(var(--h) * .6); display: flex; }
.logo-plate__flag svg { width: 100%; height: auto; display: block; }
.logo-plate__name {
  font-family: "Saira Condensed", "Arial Narrow", sans-serif; font-weight: 600; color: #1b2b78;
  font-size: calc(var(--h) * .7); line-height: 1; letter-spacing: .08em; padding: 0 calc(var(--h) * .1);
}
.logo-plate__country { display: flex; flex-direction: column; align-items: center; line-height: 1.05; color: #1d1d1d; }
.logo-plate__ar { font-family: "Tajawal", sans-serif; font-weight: 700; font-size: calc(var(--h) * .27); }
.logo-plate__en { font-family: "Inter", sans-serif; font-weight: 600; font-size: calc(var(--h) * .14); letter-spacing: .08em; }
.logo-plate--sm { --h: 34px; vertical-align: middle; margin-inline-end: 10px; box-shadow: inset 0 0 0 calc(var(--h) * .05) #fff, inset 0 0 0 calc(var(--h) * .085) #1d1d1d; }
.logo .logo__tag { max-width: 120px; line-height: 1.35; }
.footer__brand { display: inline-flex; align-items: center; }
@media (max-width: 560px) { .logo-plate { --h: 36px; } }
.logo .logo__tag { max-width: 160px; letter-spacing: .16em; }
@media (max-width: 560px) {
  .logo-plate { --h: 30px; }
  .header__actions { gap: 6px; }
  .header__actions .btn { padding: 7px 10px; font-size: 12px; letter-spacing: .02em; }
}
.logo .logo__tag { max-width: 125px; }

/* ---------- plate types ---------- */
/* Motorcycle plate: smaller, squarer, two rows (flag + country on top, number below) */
.plate--moto {
  flex-direction: column; justify-content: center; gap: calc(var(--h) * .08);
  height: calc(var(--h) * 1.9); width: calc(var(--h) * 2.7);
  padding: calc(var(--h) * .16) calc(var(--h) * .2);
}
.plate--moto .plate__top { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.plate--moto .plate__flag { width: calc(var(--h) * .55); }
.plate--moto .plate__country { flex-direction: row; gap: calc(var(--h) * .1); align-items: baseline; }
.plate--moto .plate__ar { font-size: calc(var(--h) * .22); }
.plate--moto .plate__en { font-size: calc(var(--h) * .15); }
.plate--moto .plate__num { flex: 0; font-size: calc(var(--h) * .95); }
.card__type { color: var(--red); font-weight: 600; }

/* ---------- footer (multi-column) ---------- */
.footer { padding: 56px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; padding-bottom: 36px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer__col h4 { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.75); margin-bottom: 4px; }
html[dir="rtl"] .footer__col h4 { letter-spacing: 0; font-size: 14px; }
.footer__col a { color: #fff; font-size: 14px; opacity: .92; transition: opacity .2s; }
.footer__col a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.footer__logo { opacity: 1 !important; text-decoration: none !important; }
.footer__tagline { font-family: var(--serif); font-size: 22px; font-style: italic; margin-top: 6px; }
.footer__note { font-size: 13px; color: rgba(255,255,255,.75); max-width: 320px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.2); padding: 18px 0 22px; font-size: 12.5px; color: rgba(255,255,255,.75); }
.footer .logo-plate--sm { margin: 0; }

/* ---------- info pages ---------- */
[data-lang] { display: none; }
html[lang="en"] [data-lang="en"], html[lang="ar"] [data-lang="ar"] { display: block; }
.page-hero { background: var(--surface); padding: 72px 0 60px; }
.page-hero h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.05; margin-top: 16px; }
html[dir="rtl"] .page-hero h1 { font-family: "Tajawal", sans-serif; font-weight: 700; }
.prose-wrap { padding: 60px 0 90px; }
.prose { max-width: 760px; }
.prose .lead { font-size: 20px; color: var(--text); line-height: 1.6; margin-bottom: 8px; }
.prose h2 { font-size: 30px; margin: 40px 0 10px; }
html[dir="rtl"] .prose h2 { font-family: "Tajawal", sans-serif; font-weight: 700; font-size: 26px; }
.prose p { color: var(--text-2); font-size: 16.5px; margin-bottom: 12px; }
.prose ul { padding-inline-start: 22px; display: grid; gap: 10px; color: var(--text-2); font-size: 16.5px; }
.prose li::marker { color: var(--red); }
.prose strong { color: var(--text); }
.prose a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.prose .btn { text-decoration: none; }
.prose .btn--ghost { color: var(--text); }
.draft-note { background: #fff6e0; border: 1px solid #f1dfae; color: #7a5a12 !important; border-radius: 12px; padding: 10px 14px; font-size: 14px !important; }

.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; transition: border-color .2s; }
.faq[open] { border-color: var(--red); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 600; font-size: 17px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; font-weight: 400; color: var(--red); line-height: 1; }
.faq[open] summary::after { content: "–"; }
.faq p { padding: 0 22px 18px; margin: 0; }

.contact-box { margin-top: 44px; padding: 30px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: 18px; }
.contact-box h2 { margin-top: 0 !important; }
.contact-box__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

@media (max-width: 960px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__col--brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
  .page-hero { padding: 48px 0 40px; }
}

/* ---------- share & offer ---------- */
.share { border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 10px; }
.share__label { font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
html[dir="rtl"] .share__label { letter-spacing: 0; font-size: 13px; }
.share__buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.share__btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface);
  font-size: 14px; font-weight: 500; color: var(--text); cursor: pointer; transition: .2s;
}
.share__btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.share__btn:hover { border-color: var(--text); }
.share__btn--wa { color: #128c4b; } .share__btn--wa:hover { border-color: #128c4b; }
.share__btn--fb { color: #1a5bd6; } .share__btn--fb:hover { border-color: #1a5bd6; }
.share__btn--ig { color: #b3245f; } .share__btn--ig:hover { border-color: #b3245f; }
.offer { display: grid; gap: 12px; padding: 18px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.offer[hidden] { display: none; }
.offer__title { font-family: var(--serif); font-size: 22px; font-weight: 700; }
html[dir="rtl"] .offer__title { font-family: "Tajawal", sans-serif; }
.offer__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.offer__note { font-size: 13px; color: var(--muted); text-align: center; }
@media (max-width: 520px) { .offer__row { grid-template-columns: 1fr; } }

/* ---------- plate types v2 ---------- */
/* Motorcycle: white, top row BRN + bike + flag + البحرين, big blue digits */
.plate--moto { flex-direction: column; justify-content: center; align-items: stretch; gap: calc(var(--h) * .06);
  height: calc(var(--h) * 1.9); width: calc(var(--h) * 2.7); padding: calc(var(--h) * .14) calc(var(--h) * .18); }
.plate--moto .plate__top { display: flex; align-items: center; justify-content: space-between; gap: calc(var(--h) * .08); color: #1b2b78; }
.plate--moto .plate__brn { font-family: "Saira Condensed", "Arial Narrow", sans-serif; font-weight: 600; font-size: calc(var(--h) * .34); line-height: 1; letter-spacing: .04em; }
.plate--moto .plate__bike { display: flex; width: calc(var(--h) * .5); }
.plate--moto .plate__bike svg { width: 100%; height: auto; }
.plate--moto .plate__flag { width: calc(var(--h) * .5); }
.plate--moto .plate__ar { font-family: "Tajawal", sans-serif; font-weight: 700; font-size: calc(var(--h) * .3); color: #1d1d1d; line-height: 1; }
.plate--moto .plate__num { flex: 0; font-size: calc(var(--h) * 1.0); line-height: 1; }
/* Private transport (trucks & buses): orange plate */
.plate--transport { background: linear-gradient(170deg, #ffb347 0%, #f59a23 55%, #e8890f 100%);
  box-shadow: inset 0 0 0 calc(var(--h) * .035) #ffb347, inset 0 0 0 calc(var(--h) * .055) #1d1d1d,
    0 calc(var(--h) * .03) calc(var(--h) * .06) rgba(0,0,0,.12), 0 calc(var(--h) * .2) calc(var(--h) * .5) rgba(80,10,15,.22); }
.plate--transport .plate__num { color: #111; }
.plate--transport .plate__flag svg rect:first-child { fill: #fff; }
.plate--moto .plate__bike { flex: 0 0 calc(var(--h) * .52); height: calc(var(--h) * .32); }
.plate--moto .plate__bike svg { width: 100%; height: 100%; display: block; }
.plate--moto .plate__flag { flex: 0 0 calc(var(--h) * .5); }
.plate--moto { width: calc(var(--h) * 2.9); padding-inline: calc(var(--h) * .14); }
.plate--moto .plate__top { gap: calc(var(--h) * .05); }
.plate--moto .plate__brn { font-size: calc(var(--h) * .3); }
.plate--moto .plate__bike { flex: 0 0 calc(var(--h) * .44); height: calc(var(--h) * .27); }
.plate--moto .plate__flag { flex: 0 0 calc(var(--h) * .42); width: calc(var(--h) * .42); }
.plate--moto .plate__ar { font-size: calc(var(--h) * .26); white-space: nowrap; flex-shrink: 0; }


/* ===== Launching soon ===== */
.launch { padding: 80px 0 96px; }
.launch[hidden], .main[hidden], #statListingsBox[hidden] { display: none; }
.launch__inner { max-width: 760px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.launch__inner .eyebrow { justify-content: center; }
.launch__inner h2 { font-size: clamp(34px, 5vw, 52px); line-height: 1.1; }
.launch__inner p { color: var(--text-2); font-size: 17px; max-width: 600px; }
.launch__plates { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 18px; flex-wrap: nowrap; }
@media (max-width: 1000px) { .launch__plates > div:nth-child(3) { display: none; } }
.launch__plates > div:nth-child(1) { transform: rotate(-5deg); opacity: .8; }
.launch__plates > div:nth-child(3) { transform: rotate(5deg); opacity: .8; }
.launch__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.sell-note { color: var(--muted); font-size: 13.5px; text-align: center; margin: 4px 0 2px; }
@media (max-width: 640px) { .launch__plates > div:nth-child(1), .launch__plates > div:nth-child(3) { display: none; } }
