/* ═══════════════════════════════════════════════
   علي الأكبر – Luxury Car Rental
   Dark Luxury Theme  |  Mobile-First CSS
   ═══════════════════════════════════════════════ */

/* ─── CSS Variables ─── */
:root {
  --bg:        #0a0a0f;
  --bg2:       #111118;
  --bg3:       #1a1a26;
  --bg4:       #222234;
  --card:      #14141e;
  --border:    rgba(212, 175, 55, 0.13);
  --border2:   rgba(255,255,255,0.06);

  --gold:      #d4af37;
  --gold-lt:   #f5d76e;
  --gold-dim:  rgba(212, 175, 55, 0.14);
  --gold-glow: rgba(212, 175, 55, 0.28);

  --text:      #f0f0f5;
  --text2:     #9090a8;
  --text3:     #52526a;

  --green:     #00c896;
  --red:       #ff4f6a;

  --r:         16px;
  --r-lg:      24px;
  --r-sm:      10px;
  --r-xl:      32px;

  --sh:        0 4px 28px rgba(0,0,0,0.45);
  --sh-gold:   0 4px 28px rgba(212,175,55,0.18);

  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
  --spring:    cubic-bezier(0.16, 1, 0.3, 1);
  --t:         0.28s var(--ease);

  --hdr:       60px;
  --nav:       70px;
  --safe-t:    env(safe-area-inset-top, 0px);
  --safe-b:    env(safe-area-inset-bottom, 0px);
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow: hidden;
  height: 100dvh;
  -webkit-font-smoothing: antialiased;
}
button { cursor: pointer; }
a { text-decoration: none; }
img { display: block; }

/* ─── App Shell ─── */
.app-shell {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  height: -webkit-fill-available;
  overflow: hidden;
}

/* ─── Status Bar ─── */
.status-bar-area { height: var(--safe-t); background: var(--bg); flex-shrink: 0; }

/* ─── App Header ─── */
.app-header {
  height: var(--hdr);
  background: rgba(10,10,15,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  z-index: 50;
  flex-shrink: 0;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; }
.logo-emblem {
  width: 42px; height: 42px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.emblem-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  opacity: 0.7;
  animation: ring-pulse 3s ease-in-out infinite;
}
@keyframes ring-pulse {
  0%,100% { transform: scale(1); opacity: 0.7; }
  50%      { transform: scale(1.06); opacity: 1; }
}
.emblem-car { width: 28px; height: auto; position: relative; z-index: 1; }
.logo-words { display: flex; flex-direction: column; gap: 1px; }
.brand-name {
  font-size: 17px; font-weight: 800; line-height: 1.2;
  background: linear-gradient(135deg, var(--gold), var(--gold-lt));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.brand-tag {
  font-size: 8.5px; font-weight: 400;
  color: var(--text3); letter-spacing: 2.5px;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Header buttons */
.header-actions { display: flex; gap: 6px; }
.hdr-btn {
  width: 38px; height: 38px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--text2);
  display: flex; align-items: center; justify-content: center;
  transition: var(--t);
}
.hdr-btn svg { width: 17px; height: 17px; }
.hdr-btn:active { transform: scale(0.93); }
.hdr-btn:hover  { color: var(--gold); border-color: var(--gold-dim); }

/* ─── Search Bar ─── */
.search-bar-wrap {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s var(--ease);
  flex-shrink: 0;
}
.search-bar-wrap.open { max-height: 62px; }
.search-inner {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
}
.search-inner svg { width: 17px; height: 17px; color: var(--text3); flex-shrink: 0; }
.search-inner input {
  flex: 1;
  background: none; border: none; outline: none;
  font-family: 'Cairo', sans-serif;
  font-size: 15px; color: var(--text);
}
.search-inner input::placeholder { color: var(--text3); }
.clear-btn {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg4); border: none;
  color: var(--text3); font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ─── Scroll Area ─── */
.scroll-area {
  flex: 1;
  overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.scroll-area::-webkit-scrollbar { display: none; }

/* ─── Hero Section ─── */
.hero-section {
  position: relative;
  min-height: 290px;
  background: linear-gradient(145deg, #0d0d1c 0%, #18122a 45%, #0e1822 100%);
  overflow: hidden;
  display: flex; align-items: center;
}
.hero-bg-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(212,175,55,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,175,55,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.hero-glow-1 {
  position: absolute;
  top: -80px; right: -60px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(212,175,55,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.hero-glow-2 {
  position: absolute;
  bottom: -100px; left: -40px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(79,120,255,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; padding: 40px 20px 36px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(212,175,55,0.1);
  border: 1px solid rgba(212,175,55,0.22);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px; color: var(--gold-lt);
  margin-bottom: 18px;
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--gold); border-radius: 50%;
  animation: dot-blink 1.8s ease-in-out infinite;
}
@keyframes dot-blink { 0%,100%{opacity:1} 50%{opacity:.2} }

.hero-heading {
  font-size: 33px; font-weight: 900;
  line-height: 1.25; color: var(--text);
  margin-bottom: 10px;
}
.hero-accent {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-lt) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc { font-size: 14px; color: var(--text2); margin-bottom: 26px; max-width: 270px; }

.hero-metrics { display: flex; align-items: center; gap: 18px; }
.metric { display: flex; flex-direction: column; align-items: center; }
.metric strong { font-size: 19px; font-weight: 800; color: var(--gold-lt); line-height: 1; }
.metric span   { font-size: 11px; color: var(--text3); margin-top: 2px; }
.metric-divider { width: 1px; height: 28px; background: var(--border2); }

/* ─── Section Header ─── */
.section-header {
  display: flex; align-items: center; gap: 12px;
  padding: 0 16px; margin-bottom: 14px;
}
.section-header h2 { font-size: 19px; font-weight: 700; }
.gold-rule {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--gold-dim), transparent);
}
.count-pill {
  background: var(--gold-dim);
  border: 1px solid rgba(212,175,55,0.28);
  color: var(--gold);
  border-radius: 12px;
  padding: 2px 10px;
  font-size: 13px; font-weight: 700;
}

/* ─── Featured Section ─── */
.featured-section { padding: 24px 0 6px; }
.featured-track {
  display: flex; gap: 12px;
  padding: 4px 16px 12px;
  overflow-x: auto; overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.featured-track::-webkit-scrollbar { display: none; }

/* Featured card */
.feat-card {
  flex-shrink: 0; width: 200px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  scroll-snap-align: start;
  cursor: pointer;
  transition: transform 0.22s var(--ease), box-shadow 0.22s;
  box-shadow: var(--sh);
}
.feat-card:active { transform: scale(0.96); box-shadow: none; }
.feat-img {
  width: 100%; height: 116px;
  object-fit: cover; background: var(--bg3);
}
.feat-placeholder {
  width: 100%; height: 116px;
  background: linear-gradient(135deg, var(--bg3), var(--bg4));
  display: flex; align-items: center; justify-content: center;
  font-size: 38px;
}
.feat-info { padding: 10px 12px; }
.feat-name {
  font-size: 13px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 3px;
}
.feat-price { font-size: 12px; color: var(--gold); font-weight: 600; }

/* Shimmer placeholders */
.shimmer-card {
  background: linear-gradient(90deg, var(--card) 25%, var(--bg3) 50%, var(--card) 75%);
  background-size: 200% 100%;
  animation: shimmer-anim 1.6s ease-in-out infinite;
  border-radius: var(--r);
  flex-shrink: 0;
}
@keyframes shimmer-anim {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.featured-shimmer { width: 200px; height: 168px; scroll-snap-align: start; }
.car-shimmer      { height: 218px; }

/* ─── Filter Chips (Sticky) ─── */
.filter-sticky {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10,10,15,0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.filter-track {
  display: flex; gap: 8px;
  padding: 0 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}
.filter-track::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 6px;
  padding: 7px 16px;
  background: var(--bg3);
  border: 1px solid transparent;
  border-radius: 24px;
  color: var(--text2);
  font-family: 'Cairo', sans-serif;
  font-size: 13px; font-weight: 600;
  transition: var(--t);
  scroll-snap-align: start;
  white-space: nowrap;
}
.chip.active {
  background: var(--gold-dim);
  border-color: rgba(212,175,55,0.45);
  color: var(--gold-lt);
  box-shadow: 0 0 18px var(--gold-glow);
}
.chip:active { transform: scale(0.95); }

/* ─── Cars Section ─── */
.cars-section { padding: 20px 16px; }
.cars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ─── Car Card ─── */
.car-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  box-shadow: var(--sh);
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
  animation: fadeUp 0.38s var(--ease) both;
}
.car-card:active { transform: scale(0.96); box-shadow: none; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.car-card:nth-child(1) { animation-delay: 0s; }
.car-card:nth-child(2) { animation-delay: 0.06s; }
.car-card:nth-child(3) { animation-delay: 0.12s; }
.car-card:nth-child(4) { animation-delay: 0.18s; }
.car-card:nth-child(5) { animation-delay: 0.24s; }
.car-card:nth-child(6) { animation-delay: 0.30s; }
.car-card:nth-child(7) { animation-delay: 0.36s; }
.car-card:nth-child(8) { animation-delay: 0.42s; }

/* Status badge */
.status-badge {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  padding: 3px 9px; border-radius: 16px;
  font-size: 10px; font-weight: 700;
}
.badge-avail {
  background: rgba(0,200,150,0.15);
  border: 1px solid rgba(0,200,150,0.4);
  color: var(--green);
}
.badge-rent {
  background: rgba(255,79,106,0.15);
  border: 1px solid rgba(255,79,106,0.4);
  color: var(--red);
}

/* Card image */
.car-img-wrap {
  position: relative; height: 118px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg3), var(--bg4));
}
.car-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.car-card:hover .car-img { transform: scale(1.06); }
.car-img-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 46px;
}
.img-fade {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 55%;
  background: linear-gradient(transparent, rgba(10,10,15,0.85));
}

/* Card info */
.car-info { padding: 11px 12px; }
.car-name {
  font-size: 13px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 2px;
}
.car-meta {
  font-size: 11px; color: var(--text3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 7px;
}
.car-price {
  font-size: 14px; font-weight: 800;
  background: linear-gradient(135deg, var(--gold), var(--gold-lt));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.car-price em {
  font-size: 10px; font-style: normal;
  color: var(--text3); -webkit-text-fill-color: var(--text3);
}

/* ─── State Boxes ─── */
.state-box {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 52px 24px;
  gap: 12px;
}
.state-icon { font-size: 52px; }
.state-box h3 { font-size: 18px; font-weight: 700; }
.state-box p  { font-size: 14px; color: var(--text2); }

.action-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 24px;
  background: var(--gold-dim);
  border: 1px solid rgba(212,175,55,0.4);
  border-radius: var(--r);
  color: var(--gold-lt);
  font-family: 'Cairo', sans-serif;
  font-size: 15px; font-weight: 700;
  transition: var(--t);
}
.action-btn:active { transform: scale(0.96); }
.action-btn.secondary {
  background: var(--bg3);
  border-color: var(--border2);
  color: var(--text2);
}

/* ─── Contact Section ─── */
.contact-section { padding: 10px 16px 24px; }
.contact-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 20px 28px;
  text-align: center;
  overflow: hidden;
}
.contact-glow {
  position: absolute;
  top: -80px; left: 50%; transform: translateX(-50%);
  width: 280px; height: 280px;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  pointer-events: none;
}
.contact-icon { font-size: 44px; margin-bottom: 12px; position: relative; }
.contact-card h3 { font-size: 22px; font-weight: 800; margin-bottom: 6px; position: relative; }
.contact-card p  { font-size: 14px; color: var(--text2); margin-bottom: 22px; position: relative; }
.contact-btns    { display: flex; gap: 12px; justify-content: center; position: relative; }
.cbtn {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 20px;
  border-radius: 14px;
  font-family: 'Cairo', sans-serif;
  font-size: 15px; font-weight: 700;
  transition: var(--t);
}
.cbtn:active { transform: scale(0.95); }
.phone-cbtn {
  background: var(--gold-dim);
  border: 1.5px solid rgba(212,175,55,0.4);
  color: var(--gold-lt);
}
.wa-cbtn {
  background: rgba(37,211,102,0.1);
  border: 1.5px solid rgba(37,211,102,0.38);
  color: #25d366;
}

/* ─── Footer ─── */
.app-footer {
  padding: 24px 16px 16px;
  text-align: center;
  border-top: 1px solid var(--border);
}
.footer-logo {
  font-size: 22px; font-weight: 900;
  background: linear-gradient(135deg, var(--gold), var(--gold-lt));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}
.footer-sub  { font-size: 9px; letter-spacing: 2.5px; color: var(--text3); margin-bottom: 8px; font-family: -apple-system, monospace; }
.footer-copy { font-size: 12px; color: var(--text3); }
.nav-spacer  { height: calc(var(--nav) + var(--safe-b)); }

/* ─── Bottom Navigation ─── */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: calc(var(--nav) + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: rgba(10,10,15,0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--border);
  display: flex; align-items: flex-start;
  justify-content: space-around;
  padding-top: 6px;
  z-index: 50;
}
.nav-btn {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; gap: 4px;
  padding: 6px 4px;
  background: none; border: none;
  color: var(--text3);
  font-family: 'Cairo', sans-serif;
  transition: color 0.22s;
}
.nav-btn svg  { width: 22px; height: 22px; }
.nav-btn span { font-size: 11px; font-weight: 600; }
.nav-btn.active { color: var(--gold); }
.nav-btn:active { transform: scale(0.91); }

/* ─── Bottom Sheets & Backdrop ─── */
.backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.68);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 100;
  display: flex; align-items: flex-end;
  opacity: 0; pointer-events: none;
  transition: opacity 0.28s var(--ease);
}
.backdrop.open { opacity: 1; pointer-events: auto; }

.bottom-sheet {
  background: var(--bg2);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  width: 100%;
  border-top: 1px solid var(--border);
  transform: translateY(100%);
  transition: transform 0.4s var(--spring);
  padding-bottom: calc(24px + var(--safe-b));
}
.backdrop.open .bottom-sheet { transform: translateY(0); }

.sheet-handle {
  width: 44px; height: 4px;
  background: var(--bg4); border-radius: 2px;
  margin: 12px auto 6px;
}
.sheet-close {
  position: absolute; top: 10px; left: 14px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text2); font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}

/* ─── Car Detail Sheet ─── */
.car-sheet { max-height: 92dvh; overflow-y: auto; }
.car-sheet::-webkit-scrollbar { display: none; }
.sheet-body { padding: 4px 16px 20px; }

/* Modal image */
.modal-img-box {
  width: 100%; height: 220px;
  border-radius: var(--r);
  overflow: hidden; background: var(--bg3);
  margin-bottom: 16px;
}
.modal-img-box img { width: 100%; height: 100%; object-fit: cover; }
.modal-img-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 80px;
}

/* Modal info */
.modal-name  { font-size: 24px; font-weight: 900; margin-bottom: 3px; }
.modal-brand { font-size: 14px; color: var(--text2); margin-bottom: 16px; }

.price-row {
  display: flex; align-items: center;
  justify-content: space-between;
  background: var(--gold-dim);
  border: 1px solid rgba(212,175,55,0.22);
  border-radius: var(--r); padding: 13px 16px;
  margin-bottom: 18px;
}
.modal-price {
  font-size: 28px; font-weight: 900;
  background: linear-gradient(135deg, var(--gold), var(--gold-lt));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.price-unit { font-size: 13px; color: var(--text2); margin-top: 2px; }
.modal-status {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 20px;
  font-size: 13px; font-weight: 700;
}
.status-avail { background: rgba(0,200,150,0.12); border: 1px solid rgba(0,200,150,0.35); color: var(--green); }
.status-rent  { background: rgba(255,79,106,0.12); border: 1px solid rgba(255,79,106,0.35); color: var(--red); }

/* Specs grid */
.specs-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px; margin-bottom: 18px;
}
.spec-box {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--r-sm);
  padding: 10px 8px;
  text-align: center;
}
.spec-ico   { font-size: 18px; margin-bottom: 3px; }
.spec-lbl   { font-size: 10px; color: var(--text3); margin-bottom: 2px; }
.spec-val   { font-size: 12px; font-weight: 700; color: var(--text); }

/* Description */
.modal-desc {
  font-size: 14px; color: var(--text2); line-height: 1.9;
  background: var(--bg3); border: 1px solid var(--border2);
  border-radius: var(--r-sm); padding: 13px 14px;
  margin-bottom: 18px;
}

/* Features */
.features-sec { margin-bottom: 18px; }
.features-sec h4 { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.features-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.feat-tag {
  background: var(--bg3); border: 1px solid var(--border2);
  border-radius: 20px; padding: 5px 13px;
  font-size: 12px; color: var(--text2);
  display: flex; align-items: center; gap: 5px;
}
.feat-tag::before { content: '✓'; color: var(--gold); font-weight: 800; }

/* CTA buttons */
.modal-cta { display: flex; flex-direction: column; gap: 10px; }
.cta-wa {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px;
  background: rgba(37,211,102,0.12);
  border: 1.5px solid rgba(37,211,102,0.38);
  border-radius: var(--r); color: #25d366;
  font-family: 'Cairo', sans-serif;
  font-size: 16px; font-weight: 800;
  transition: var(--t);
}
.cta-wa:active { transform: scale(0.97); }
.cta-call {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px;
  background: var(--gold-dim);
  border: 1.5px solid rgba(212,175,55,0.38);
  border-radius: var(--r); color: var(--gold-lt);
  font-family: 'Cairo', sans-serif;
  font-size: 16px; font-weight: 800;
  transition: var(--t);
}
.cta-call:active { transform: scale(0.97); }
.cta-wa svg, .cta-call svg { width: 22px; height: 22px; flex-shrink: 0; }

/* ─── Config Sheet ─── */
.config-sheet { max-height: 88dvh; overflow-y: auto; }
.config-sheet::-webkit-scrollbar { display: none; }
.config-body { padding: 6px 16px 24px; }

.config-title {
  font-size: 18px; font-weight: 800;
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 20px;
}

.steps-box {
  background: var(--bg3); border: 1px solid var(--border2);
  border-radius: var(--r); padding: 16px;
  margin-bottom: 20px;
  display: flex; flex-direction: column; gap: 12px;
}
.step-row { display: flex; align-items: flex-start; gap: 12px; }
.step-n {
  width: 24px; height: 24px; flex-shrink: 0;
  background: var(--gold-dim);
  border: 1px solid rgba(212,175,55,0.4);
  border-radius: 50%; color: var(--gold);
  font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.step-row p { font-size: 13px; color: var(--text2); line-height: 1.5; }
.req { color: var(--red); }

.cfg-field { margin-bottom: 16px; }
.cfg-field label {
  display: block; font-size: 13px; font-weight: 700;
  color: var(--text2); margin-bottom: 7px;
}
.cfg-field input {
  width: 100%;
  background: var(--bg3); border: 1.5px solid var(--border2);
  border-radius: var(--r-sm);
  padding: 12px 13px;
  color: var(--text);
  font-size: 14px; outline: none;
  transition: border-color 0.2s;
}
.cfg-field input:focus { border-color: var(--gold); }
.cfg-field small { display: block; font-size: 11px; color: var(--text3); margin-top: 6px; }

/* Columns details */
.cols-details {
  background: var(--bg3); border: 1px solid var(--border2);
  border-radius: var(--r); padding: 12px 14px;
  margin-bottom: 20px;
}
.cols-details summary {
  font-size: 13px; font-weight: 700; color: var(--text2);
  cursor: pointer; padding: 2px 0;
  list-style: none;
}
.cols-details summary::after { content: ' ▾'; }
.cols-details[open] summary::after { content: ' ▴'; }
.cols-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6px; margin-top: 12px;
}
.cols-grid span {
  font-size: 12px; color: var(--text3);
  background: var(--bg4); padding: 4px 8px;
  border-radius: 6px;
  font-family: -apple-system, monospace;
}
.cols-note {
  font-size: 11px; color: var(--text3);
  margin-top: 10px; line-height: 1.5;
}

.save-btn {
  width: 100%; padding: 16px;
  background: linear-gradient(135deg, var(--gold), var(--gold-lt));
  border: none; border-radius: var(--r);
  color: #0a0a0f;
  font-family: 'Cairo', sans-serif;
  font-size: 16px; font-weight: 900;
  transition: var(--t);
}
.save-btn:active { transform: scale(0.98); opacity: 0.88; }

/* ─── Toast ─── */
.toast {
  position: fixed;
  top: calc(var(--hdr) + var(--safe-t) + 14px);
  left: 50%; transform: translateX(-50%) translateY(-12px);
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 10px 20px;
  font-size: 14px; font-weight: 600;
  z-index: 300;
  opacity: 0; pointer-events: none;
  transition: opacity 0.28s, transform 0.28s;
  white-space: nowrap;
  box-shadow: var(--sh);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.ok  { border-color: var(--green); color: var(--green); }
.toast.err { border-color: var(--red);   color: var(--red); }

/* ─── Desktop: center the app ─── */
@media (min-width: 480px) {
  body { background: #050509; }
  .app-shell {
    max-width: 420px; margin: 0 auto;
    box-shadow: 0 0 80px rgba(0,0,0,0.85);
  }
  .bottom-nav {
    width: 420px;
    left: 50%; right: auto;
    transform: translateX(-50%);
  }
  .toast {
    /* stays centered relative to app shell */
  }
}

/* ─── Animations: stagger for list items ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
