/* =========================================================
   rental.css — машины хуудас (rental.html), бүртгэл (auth),
   захиалгын алхмууд (rental-booking.html), миний самбар (account.html)
   ========================================================= */
:root {
  --rd-line: #e6e6e0;
  --rd-muted: #5b6060;
  --rd-soft: #f1f1ea;
  --rd-shadow: 0 18px 40px rgba(31, 35, 35, 0.08);
}
.rd :where(section), .rb :where(section), .acc :where(section) { padding: 0; }

/* ---------- 1. Header: cover photo / video ---------- */
.rd { background: var(--ivory); padding-bottom: 72px; }
.rd-hero {
  position: relative;
  height: clamp(260px, 52vh, 560px);
  overflow: hidden;
  background: var(--charcoal);
}
.rd-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(31, 35, 35, 0) 55%, rgba(31, 35, 35, 0.35));
  pointer-events: none;
}
.rd-hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.rd-hero-yt { background-size: cover; background-position: center; }
/* YouTube-ийг 16:9 хадгалж бүх талбайг дүүргэнэ, дарах боломжгүй */
.rd-hero-yt iframe {
  position: absolute; top: 50%; left: 50%;
  width: max(100%, calc(100vh * 16 / 9)); height: max(100%, calc(100vw * 9 / 16));
  transform: translate(-50%, -50%);
  border: 0; pointer-events: none;
}

/* ---------- Layout: агуулга + sidebar ---------- */
.rd-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: start;
  margin-top: -64px;
  position: relative; z-index: 2;
}
.rd-hero[hidden] + .rd-layout { margin-top: 40px; }
.rd-main {
  background: #fff;
  border-radius: 16px;
  padding: 40px 44px 44px;
  box-shadow: var(--rd-shadow);
  min-width: 0;
}

/* ---------- 2–3. Title, description ---------- */
.rd-kind {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--sand-gold);
  color: var(--charcoal);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
}
.rd-title { font-size: clamp(1.9rem, 3.6vw, 2.8rem); color: var(--charcoal); margin: 14px 0 18px; }
.rd-desc p { margin-bottom: 1em; color: #343939; }
.rd-features { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 6px 0 8px; }
.rd-features li {
  padding: 7px 14px;
  border: 1px solid var(--rd-line);
  border-radius: 999px;
  background: var(--ivory);
  font-size: 0.86rem; font-weight: 700; color: var(--altai-forest);
}
.rd-features li::before { content: "✓ "; color: var(--steppe-green); }

.rd-box { margin-top: 44px; }
.rd-box-title {
  font-size: 1.35rem; color: var(--charcoal);
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px;
}
.rd-box-title::after { content: ""; flex: 1; height: 1px; background: var(--rd-line); }

/* ---------- 4. Gallery ---------- */
.rd-gallery-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: var(--rd-soft);
}
.rd-gallery-stage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rd-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--charcoal);
  font-size: 1.8rem; line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: background 0.2s, transform 0.2s;
}
.rd-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.rd-arrow.prev { left: 14px; }
.rd-arrow.next { right: 14px; }
.rd-count {
  position: absolute; right: 14px; bottom: 14px;
  padding: 4px 12px; border-radius: 999px;
  background: rgba(31, 35, 35, 0.7); color: #fff;
  font-size: 0.8rem; font-weight: 700;
}
.rd-thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 12px 2px 4px; scrollbar-width: thin; }
.rd-thumbs button {
  flex: 0 0 96px; height: 66px;
  padding: 0; border: 2px solid transparent; border-radius: 8px;
  overflow: hidden; cursor: pointer; background: none;
  opacity: 0.6; transition: opacity 0.2s, border-color 0.2s;
}
.rd-thumbs button:hover, .rd-thumbs button.is-active { opacity: 1; }
.rd-thumbs button.is-active { border-color: var(--altai-forest); }
.rd-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- 5. Description box ---------- */
.rd-feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center;
  padding: 22px;
  border-radius: 14px;
  background: var(--ivory);
}
.rd-feature img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; display: block; }
.rd-feature.is-flip img { order: 2; }
.rd-feature h3 { font-size: 1.3rem; color: var(--altai-forest); margin-bottom: 10px; }
.rd-feature p { color: #343939; margin-bottom: 0.8em; }
.rd-feature:not(:has(img)) { grid-template-columns: 1fr; }

/* ---------- 6. Image box: desktop 3, мобайл 2 ---------- */
.rd-imageboxes { margin-top: 44px; }
.rd-imageboxes-intro { font-size: 1.05rem; color: #343939; margin-bottom: 18px; max-width: 62ch; }
.rd-ibox-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.rd-ibox {
  margin: 0;
  background: #fff;
  border: 1px solid var(--rd-line);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}
.rd-ibox:hover { box-shadow: 0 10px 24px rgba(31, 35, 35, 0.1); transform: translateY(-3px); }
.rd-ibox-img { aspect-ratio: 4 / 3; background: var(--rd-soft); }
.rd-ibox-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rd-ibox figcaption { padding: 12px 14px 14px; }
.rd-ibox strong { display: block; font-size: 0.98rem; line-height: 1.3; }
.rd-ibox span { display: block; font-size: 0.85rem; color: var(--rd-muted); margin-top: 4px; line-height: 1.45; }

/* ---------- 7. FAQ ---------- */
.rd-faq details { border-bottom: 1px solid var(--rd-line); }
.rd-faq details:first-of-type { border-top: 1px solid var(--rd-line); }
.rd-faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 2px;
  font-weight: 700;
}
.rd-faq summary::-webkit-details-marker { display: none; }
.rd-faq summary::after {
  content: "+"; flex: 0 0 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%; background: var(--ivory);
  color: var(--altai-forest); font-size: 1.3rem; font-weight: 400;
  transition: transform 0.2s, background 0.2s;
}
.rd-faq details[open] summary::after { transform: rotate(45deg); background: var(--altai-forest); color: #fff; }
.rd-faq details > div { padding: 0 2px 16px; color: #343939; }
.rd-faq details > div p { margin-bottom: 0.7em; }

/* ---------- YouTube video ---------- */
.rd-video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.rd-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Sidebar: үнэ, Request a booking, More rentals ---------- */
.rd-aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 20px; }
.rd-book {
  background: var(--altai-forest);
  color: var(--ivory);
  border-radius: 16px;
  padding: 26px 24px 22px;
  box-shadow: var(--rd-shadow);
}
.rd-price span { display: block; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.8; }
.rd-price strong { display: block; font-size: 2.6rem; line-height: 1.1; margin-top: 4px; }
.rd-price small { font-size: 1rem; font-weight: 400; opacity: 0.8; }
.rd-km { margin-top: 10px; font-size: 0.9rem; color: var(--sand-gold); font-weight: 700; }
.rd-book-btn {
  width: 100%; justify-content: center;
  margin-top: 20px;
  background: var(--sand-gold); color: var(--charcoal);
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.95rem;
}
.rd-book-btn:hover { background: #e6b97f; }
.rd-book-note { margin-top: 12px; font-size: 0.8rem; text-align: center; opacity: 0.8; }

.rd-more { background: #fff; border-radius: 16px; padding: 22px 20px; box-shadow: var(--rd-shadow); }
.rd-aside-title { font-size: 1.05rem; color: var(--charcoal); margin-bottom: 14px; letter-spacing: 0; }
.rd-more-list { display: grid; gap: 10px; }
.rd-more-card {
  display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: center;
  padding: 8px; border-radius: 10px;
  color: var(--charcoal); text-decoration: none;
  transition: background 0.2s;
}
.rd-more-card:hover { background: var(--ivory); }
.rd-more-card img, .rd-more-empty { width: 84px; height: 62px; border-radius: 8px; object-fit: cover; display: block; background: var(--rd-soft); }
.rd-more-text strong { display: block; font-size: 0.9rem; line-height: 1.3; }
.rd-more-text span { font-size: 0.84rem; color: var(--altai-forest); font-weight: 700; }
.rd-muted { color: var(--rd-muted); font-size: 0.9rem; }

/* =========================================================
   Бүртгэл / нэвтрэх (Google эсвэл имэйлээр 6 оронтой код)
   ========================================================= */
.auth {
  display: grid; grid-template-columns: 1fr 1.1fr;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--rd-shadow);
  max-width: 920px; margin: 0 auto;
}
.auth-side {
  background:
    radial-gradient(circle at 85% 10%, rgba(217, 169, 108, 0.35), transparent 45%),
    var(--altai-forest);
  color: var(--ivory);
  padding: 44px 40px;
}
.auth-logo { width: 150px; height: auto; filter: brightness(0) invert(1); margin-bottom: 28px; }
.auth-side h2 { color: #fff; font-size: 1.8rem; margin-bottom: 12px; }
.auth-side p { opacity: 0.88; }
.auth-points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.auth-points li { position: relative; padding-left: 32px; font-weight: 700; font-size: 0.95rem; }
.auth-points li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  width: 22px; height: 22px; display: grid; place-items: center;
  border-radius: 50%; background: var(--sand-gold); color: var(--charcoal); font-size: 0.75rem;
}
.auth-form { padding: 44px 40px; display: flex; flex-direction: column; justify-content: center; }
.auth-form form { display: grid; gap: 14px; }
.auth-form form[hidden], .rd [hidden], .rb [hidden], .acc [hidden] { display: none !important; }
.auth-form label { display: grid; gap: 6px; font-size: 0.85rem; font-weight: 700; color: var(--rd-muted); }
.auth-form input {
  font: inherit; font-size: 1rem; color: var(--charcoal);
  padding: 13px 14px;
  border: 1px solid #d6d6ce; border-radius: 10px;
  background: #fff;
}
.auth-form input:focus { outline: none; border-color: var(--altai-forest); box-shadow: 0 0 0 3px rgba(27, 94, 59, 0.15); }
.auth-google {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; padding: 13px;
  border: 1px solid #d6d6ce; border-radius: 10px;
  background: #fff; color: var(--charcoal);
  font: inherit; font-weight: 700; cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-google:hover { border-color: var(--charcoal); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06); }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: var(--rd-muted); font-size: 0.82rem; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--rd-line); }
.auth-submit { justify-content: center; width: 100%; margin-top: 4px; }
.auth-submit:disabled { opacity: 0.6; cursor: wait; }
.auth-sent { padding: 12px 14px; border-radius: 10px; background: #eef6ef; color: var(--altai-forest); font-size: 0.92rem; }
.auth-code { font-size: 1.6rem !important; letter-spacing: 0.5em; text-align: center; font-weight: 700; }
.auth-link { background: none; border: 0; color: var(--altai-forest); font: inherit; font-size: 0.9rem; font-weight: 700; cursor: pointer; text-decoration: underline; }
.auth-msg { margin-top: 12px; font-size: 0.9rem; min-height: 1.4em; }
.auth-msg[data-kind="error"] { color: #b3261e; }

/* =========================================================
   Захиалгын алхмууд
   ========================================================= */
.rb, .acc { background: var(--ivory); padding: 48px 0 80px; min-height: 70vh; }
.rb-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: var(--charcoal); margin-bottom: 24px; }
.rb-card { background: #fff; border-radius: 18px; box-shadow: var(--rd-shadow); overflow: hidden; }
.rb-card:has(#rb-auth:not([hidden])) { background: none; box-shadow: none; overflow: visible; }
.rb-loading { padding: 60px 20px; text-align: center; color: var(--rd-muted); }

.rb-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, 1fr);
  border-bottom: 1px solid var(--rd-line);
  counter-reset: step;
}
.rb-steps li { position: relative; }
.rb-steps li + li::before {
  content: ""; position: absolute; left: -50%; right: 50%; top: 31px; height: 2px;
  background: var(--rd-line); z-index: 0;
}
.rb-steps li.is-done + li::before, .rb-steps li.is-done::before { background: var(--altai-forest); }
.rb-steps button {
  position: relative; z-index: 1;
  width: 100%; display: grid; justify-items: center; gap: 6px;
  padding: 16px 4px 14px;
  border: 0; background: none;
  font: inherit; font-size: 0.85rem; font-weight: 700; color: var(--rd-muted);
  cursor: pointer;
}
.rb-steps button:disabled { cursor: default; }
.rb-steps button span {
  width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 50%; border: 2px solid var(--rd-line); background: #fff;
  font-size: 0.85rem;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.rb-steps li.is-done button { color: var(--altai-forest); }
.rb-steps li.is-done button span { background: var(--altai-forest); border-color: var(--altai-forest); color: #fff; font-size: 0; }
.rb-steps li.is-done button span::before { content: "✓"; font-size: 0.9rem; }
.rb-steps li.is-current button { color: var(--charcoal); }
.rb-steps li.is-current button span { border-color: var(--sand-gold); background: var(--sand-gold); color: var(--charcoal); font-size: 0.85rem; box-shadow: 0 0 0 5px rgba(217, 169, 108, 0.25); }
.rb-steps li.is-current button span::before { content: none; }

.rb-cols { display: grid; grid-template-columns: minmax(0, 1fr) 330px; }
.rb-step-body { padding: 32px 36px 36px; min-width: 0; }
.rb-step-title { font-size: 1.5rem; color: var(--charcoal); margin-bottom: 22px; letter-spacing: -0.01em; }
.rb-sub {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--altai-forest); margin: 26px 0 12px;
}
.rb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.rb-field { display: grid; gap: 6px; align-content: start; }
.rb-field.wide { grid-column: 1 / -1; }
.rb-field > span { font-size: 0.82rem; font-weight: 700; color: var(--rd-muted); }
.rb-field input, .rb-field select, .rb-birthday select {
  width: 100%;
  font: inherit; font-size: 0.98rem; color: var(--charcoal);
  padding: 12px 13px;
  border: 1px solid #d6d6ce; border-radius: 10px;
  background: #fff;
}
.rb-field input:focus, .rb-field select:focus, .rb-birthday select:focus { outline: none; border-color: var(--altai-forest); box-shadow: 0 0 0 3px rgba(27, 94, 59, 0.15); }
.rb-birthday { display: grid; grid-template-columns: 1fr 1.6fr 1.2fr; gap: 10px; }
.rb-hint { margin-top: 14px; color: var(--rd-muted); font-size: 0.9rem; }
#rb-days { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--ivory); color: var(--altai-forest); font-weight: 700; }

/* Машин сонгох */
.rb-cars { display: grid; gap: 14px; }
.rb-car {
  position: relative;
  display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: 18px; align-items: center;
  padding: 14px;
  border: 2px solid var(--rd-line); border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.rb-car:hover { border-color: #c9c9bf; }
.rb-car:has(input:checked) { border-color: var(--altai-forest); box-shadow: 0 0 0 4px rgba(27, 94, 59, 0.1); }
.rb-car:has(input:checked)::after {
  content: "✓"; position: absolute; top: -10px; left: -10px;
  width: 26px; height: 26px; display: grid; place-items: center;
  border-radius: 50%; background: var(--altai-forest); color: #fff; font-size: 0.8rem; font-weight: 700;
}
.rb-car.is-busy { opacity: 0.55; cursor: not-allowed; }
.rb-car input { position: absolute; opacity: 0; pointer-events: none; }
.rb-car-img { aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--rd-soft); }
.rb-car-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rb-car-body strong { display: block; font-size: 1.05rem; }
.rb-car-body small { display: block; color: var(--rd-muted); font-size: 0.85rem; margin-top: 4px; }
.rb-car-feats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.rb-car-feats i { font-style: normal; font-size: 0.75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--ivory); color: var(--altai-forest); }
.rb-car-price { display: grid; justify-items: end; gap: 4px; text-align: right; }
.rb-car-price b { font-size: 1.35rem; color: var(--altai-forest); }
.rb-car-price b small { font-size: 0.8rem; color: var(--rd-muted); font-weight: 400; }
.rb-car-price > small { font-size: 0.8rem; color: var(--rd-muted); }
.rb-car-price a { font-size: 0.82rem; color: var(--charcoal); font-weight: 700; }
.rb-tag { font-style: normal; font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #e7f3e3; color: #2f6b27; }
.rb-tag.is-busy { background: #fbe9e7; color: #b3261e; }

/* Нэмэлтүүд */
.rb-extras { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.rb-extra {
  display: flex; align-items: center; gap: 12px;
  padding: 16px; border: 2px solid var(--rd-line); border-radius: 12px; cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.rb-extra:has(input:checked) { border-color: var(--altai-forest); background: #f3f8f3; }
.rb-extra input, .rb-check input, .rb-method input { width: 20px; height: 20px; accent-color: var(--altai-forest); flex: none; }
.rb-extra strong { display: block; }
.rb-extra small { color: var(--rd-muted); }

/* Шалгах, батлах */
.rb-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; background: #fff; border: 1px solid var(--rd-line); border-radius: 12px; overflow: hidden; margin: 0; }
.rb-info div { background: #fff; padding: 12px 14px; box-shadow: 0 0 0 0.5px var(--rd-line); }
.rb-info dt { font-size: 0.75rem; color: var(--rd-muted); font-weight: 700; }
.rb-info dd { margin: 2px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.rb-confirm-car { display: grid; gap: 16px; padding: 16px; border: 1px solid var(--rd-line); border-radius: 14px; }
.rb-confirm-car img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 10px; display: block; }
.rb-confirm-car strong { font-size: 1.15rem; display: block; }
.rb-confirm-car small { color: var(--rd-muted); display: block; }
.rb-confirm-price { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px dashed var(--rd-line); }
.rb-confirm-price b { font-size: 1.4rem; color: var(--altai-forest); }
.rb-confirm-price b small { display: inline; font-size: 0.85rem; font-weight: 400; }
.rb-check { display: flex; align-items: flex-start; gap: 12px; margin-top: 12px; cursor: pointer; }
.rb-check a { color: var(--altai-forest); font-weight: 700; }

/* Төлбөр: банкны шилжүүлэг */
.rb-method { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 2px solid var(--altai-forest); border-radius: 12px 12px 0 0; background: #f3f8f3; }
.rb-bank { border: 2px solid var(--altai-forest); border-top: 0; border-radius: 0 0 12px 12px; padding: 16px; }
.rb-bank .rb-info { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rb-bank .rb-info dd { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 0.95rem; letter-spacing: 0.02em; }
.rb-bank .rb-hint strong { color: var(--charcoal); background: #fdf3e4; padding: 2px 8px; border-radius: 6px; }
.rb-file {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 10px; border: 2px dashed #c9c9bf; border-radius: 10px;
  cursor: pointer; transition: border-color 0.2s;
}
.rb-file:hover { border-color: var(--altai-forest); }
.rb-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.rb-file b { flex: none; padding: 8px 12px; border-radius: 8px; background: var(--altai-forest); color: #fff; font-size: 0.85rem; }
.rb-file em { font-style: normal; font-size: 0.85rem; color: var(--rd-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rb-pay-bar { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; padding: 16px 18px; border-radius: 12px; background: var(--charcoal); color: #fff; }
.rb-pay-bar strong { font-size: 1.4rem; color: var(--sand-gold); }

.rb-success { text-align: center; padding: 30px 10px 10px; }
.rb-success-icon {
  width: 78px; height: 78px; margin: 0 auto 18px;
  display: grid; place-items: center;
  border-radius: 50%; background: var(--altai-forest); color: #fff; font-size: 2.2rem;
  box-shadow: 0 0 0 10px rgba(27, 94, 59, 0.12);
}
.rb-success h2 { font-size: 1.6rem; color: var(--charcoal); }
.rb-success p { color: var(--rd-muted); max-width: 52ch; margin: 0 auto; }
.rb-dashboard {
  margin-top: 28px; justify-content: center;
  min-width: min(100%, 360px); padding: 20px 34px;
  background: var(--altai-forest); color: #fff;
  font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.1em;
  box-shadow: 0 12px 28px rgba(27, 94, 59, 0.3);
}
.rb-dashboard:hover { background: #154b2f; }

.rb-error { color: #b3261e; font-weight: 700; margin-top: 16px; min-height: 1px; }
.rb-error:empty { margin: 0; }
.rb-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--rd-line); }
.rb-back { background: none; border: 0; font: inherit; font-weight: 700; color: var(--rd-muted); cursor: pointer; }
.rb-back:hover { color: var(--charcoal); }
.rb-next { background: var(--altai-forest); color: #fff; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.92rem; }
.rb-next:hover { background: #154b2f; }
.rb-next:disabled { opacity: 0.6; cursor: wait; }

/* Хураангуй (баруун тал) */
.rb-summary { background: var(--ivory); border-left: 1px solid var(--rd-line); padding: 28px 24px; position: relative; }
.rb-summary h2 { font-size: 1.2rem; color: var(--charcoal); margin-bottom: 14px; }
.rb-pill { position: absolute; top: 28px; right: 24px; padding: 3px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--rd-line); font-size: 0.72rem; font-weight: 700; color: var(--rd-muted); }
.rb-pill.is-open { background: #fdf3e4; border-color: #f0d9b5; color: #8a5a17; }
.rb-sum-dates { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0 0 16px; font-size: 0.88rem; }
.rb-sum-dates dt { color: var(--rd-muted); font-weight: 700; }
.rb-sum-dates dd { margin: 0; font-weight: 700; }
.rb-sum-dates small { display: block; font-weight: 400; color: var(--rd-muted); }
.rb-sum-car { padding: 14px; background: #fff; border-radius: 12px; border: 1px solid var(--rd-line); }
.rb-sum-car img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; display: block; margin-bottom: 10px; }
.rb-sum-car strong { display: block; font-size: 0.95rem; margin-bottom: 6px; }
.rb-sum-row { display: flex; justify-content: space-between; gap: 10px; font-size: 0.88rem; padding: 4px 0; }
.rb-sum-row span:last-child { font-weight: 700; white-space: nowrap; }
.rb-sum-block { margin-top: 12px; }
.rb-sum-block:empty { display: none; }
.rb-sum-block h3 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--rd-muted); margin-bottom: 4px; }
.rb-sum-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; padding-top: 14px; border-top: 2px solid var(--charcoal); }
.rb-sum-total strong { font-size: 1.5rem; color: var(--altai-forest); }
.rb-sum-due { display: flex; justify-content: space-between; margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--altai-forest); color: #fff; font-size: 0.88rem; }

/* =========================================================
   Миний самбар (account.html)
   ========================================================= */
.acc-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.acc-kicker { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700; color: var(--altai-forest); }
.acc-head h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.acc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.acc-stats div { background: #fff; border-radius: 14px; padding: 18px 20px; box-shadow: var(--rd-shadow); border-top: 4px solid var(--altai-forest); }
.acc-stats div:nth-child(2) { border-top-color: var(--sand-gold); }
.acc-stats div:nth-child(3) { border-top-color: var(--steppe-green); }
.acc-stats strong { display: block; font-size: 2rem; line-height: 1.1; }
.acc-stats span { font-size: 0.85rem; color: var(--rd-muted); font-weight: 700; }
.acc-card { background: #fff; border-radius: 18px; padding: 26px 28px; box-shadow: var(--rd-shadow); margin-bottom: 20px; }
.acc-card h2 { font-size: 1.3rem; color: var(--charcoal); margin-bottom: 16px; }
.acc-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.acc-booking { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 22px; padding: 18px 0; border-top: 1px solid var(--rd-line); }
.acc-booking-img { aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--rd-soft); }
.acc-booking-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acc-booking-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.acc-type { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; color: var(--rd-muted); }
.acc-booking h3 { font-size: 1.2rem; margin: 6px 0 12px; }
.acc-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 18px; margin: 0; }
.acc-facts dt { font-size: 0.75rem; font-weight: 700; color: var(--rd-muted); }
.acc-facts dd { margin: 0; font-size: 0.92rem; }
.acc-facts small { display: block; color: var(--rd-muted); font-size: 0.8rem; }
.acc-due { color: #b3261e; font-weight: 700; }
.acc-extras { margin-top: 10px; font-size: 0.85rem; color: var(--rd-muted); }
.acc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 14px; }
.acc-pay { background: var(--sand-gold); color: var(--charcoal); padding: 10px 20px; font-size: 0.9rem; }
.acc-pay:hover { background: #e6b97f; }
.acc-link { background: none; border: 0; padding: 0; font: inherit; font-size: 0.9rem; font-weight: 700; color: var(--altai-forest); text-decoration: underline; cursor: pointer; }
.acc-pill { padding: 4px 12px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; }
.acc-pill.is-warn { background: #fdf3e4; color: #8a5a17; }
.acc-pill.is-info { background: #e8f0fb; color: #1d4f91; }
.acc-pill.is-ok { background: #e7f3e3; color: #2f6b27; }
.acc-pill.is-muted { background: var(--rd-soft); color: var(--rd-muted); }
.acc-empty { text-align: center; padding: 36px 10px 16px; border-top: 1px solid var(--rd-line); }
.acc-empty p { color: var(--rd-muted); margin-bottom: 16px; }
.acc-profile { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; margin: 0; }
.acc-profile dt { font-size: 0.75rem; font-weight: 700; color: var(--rd-muted); }
.acc-profile dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.acc-note { margin-top: 18px; font-size: 0.85rem; color: var(--rd-muted); }
.acc-note a { color: var(--altai-forest); font-weight: 700; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .rd-layout { grid-template-columns: 1fr; }
  .rd-aside { position: static; }
  .rb-cols { grid-template-columns: 1fr; }
  .rb-summary { border-left: 0; border-top: 1px solid var(--rd-line); order: -1; }
}
@media (max-width: 760px) {
  .rd-layout { margin-top: -32px; }
  .rd-main { padding: 26px 20px 30px; border-radius: 14px; }
  .rd-feature, .rd-feature:not(:has(img)) { grid-template-columns: 1fr; padding: 16px; }
  .rd-feature.is-flip img { order: 0; }
  .rd-ibox-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .rd-arrow { width: 38px; height: 38px; font-size: 1.5rem; }

  .auth { grid-template-columns: 1fr; }
  .auth-side { padding: 28px 24px; }
  .auth-points { display: none; }
  .auth-logo { width: 120px; margin-bottom: 16px; }
  .auth-form { padding: 28px 24px; }

  .rb, .acc { padding: 28px 0 60px; }
  .rb-steps { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .rb-steps button { font-size: 0; gap: 0; padding: 14px 0; }
  .rb-steps li + li::before { top: 29px; }
  .rb-steps li.is-current button { font-size: 0.72rem; gap: 4px; }
  .rb-step-body { padding: 24px 18px 26px; }
  .rb-summary { padding: 22px 18px; }
  .rb-grid { grid-template-columns: 1fr; }
  .rb-car { grid-template-columns: 110px minmax(0, 1fr); gap: 12px; }
  .rb-car-price { grid-column: 1 / -1; grid-template-columns: auto 1fr auto; justify-items: start; align-items: center; text-align: left; gap: 10px; padding-top: 10px; border-top: 1px dashed var(--rd-line); }
  .rb-car-price > small { display: none; }
  .rb-info, .rb-bank .rb-info { grid-template-columns: 1fr 1fr; }
  .rb-actions { flex-direction: column-reverse; align-items: stretch; }
  .rb-next { justify-content: center; }
  .rb-back { padding: 8px; }

  .acc-head { flex-direction: column; align-items: flex-start; }
  .acc-stats { gap: 10px; }
  .acc-stats div { padding: 14px; }
  .acc-stats strong { font-size: 1.6rem; }
  .acc-card { padding: 20px 18px; }
  .acc-booking { grid-template-columns: 1fr; gap: 14px; }
  .acc-facts { grid-template-columns: 1fr 1fr; }
  .acc-profile { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .rb-info, .rb-bank .rb-info { grid-template-columns: 1fr; }
}

/* Бүртгүүлэх / нэвтрэх табууд */
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 22px; border-radius: 12px; background: #f0f1ea; }
.auth-tabs[hidden] { display: none; }
.auth-tabs button { padding: 10px; border: 0; border-radius: 9px; background: none; font: inherit; font-weight: 700; color: var(--rd-muted); cursor: pointer; }
.auth-tabs button.is-active { background: #fff; color: var(--altai-forest); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); }
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-check { display: flex !important; align-items: flex-start; gap: 10px !important; font-weight: 400 !important; color: var(--charcoal) !important; }
.auth-check input { width: 18px; height: 18px; margin-top: 2px; padding: 0; accent-color: var(--altai-forest); }
.auth-check a { color: var(--altai-forest); }
.auth-alt { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.auth-msg[data-kind="info"] { color: var(--altai-forest); }
@media (max-width: 480px) { .auth-row { grid-template-columns: 1fr; } }

/* Барьцаа (deposit) ба төлбөрийн аргууд */
.rb-deposit { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.rb-deposit > div { display: grid; gap: 2px; padding: 14px 16px; border-radius: 12px; background: #f3f8f3; }
.rb-deposit > div:last-child { background: #fbf4e8; }
.rb-deposit span { font-size: 0.85rem; color: var(--rd-muted); }
.rb-deposit strong { font-size: 1.4rem; color: var(--charcoal); }
.rb-deposit small { font-size: 0.8rem; color: #8a5a17; }
.rb-method.is-soon { border: 1px dashed #c9cbc1; border-radius: 12px; background: #fafaf7; color: var(--rd-muted); margin-bottom: 10px; }
.rb-method.is-soon em { margin-left: auto; font-style: normal; font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #eceee6; }
