/* ═══════════════════════════════════════════════════════════════
   TransAshanti v6.0 — Page-Specific Styles
   Auth · Home · Book · Dashboard · Admin · Driver
   ═══════════════════════════════════════════════════════════════ */

/* ── PAGE SYSTEM ─────────────────────────────────────────── */
.page { display: none; min-height: 100vh; }
.page.active { display: block; }

/* ── NAVIGATION ──────────────────────────────────────────── */
#main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: var(--nav); background: rgba(11,9,4,.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--bd);
  transition: box-shadow .3s;
}
#main-nav.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.4); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 100%; padding: 0 40px; gap: 16px; }
.nav-logo  { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; flex-shrink: 0; }
.nav-mark  { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, var(--tl), #006e70); display: flex; align-items: center; justify-content: center; font-size: 20px; box-shadow: 0 0 16px rgba(226,164,0,.28); }
.nav-text  { font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; }
.nav-text span { color: var(--tl); }
.nav-links { display: flex; align-items: center; gap: 2px; flex: 1; justify-content: center; }
.nav-link  { padding: 7px 13px; border-radius: 9px; font-size: .82rem; font-weight: 500; color: var(--t2); background: transparent; border: none; cursor: pointer; transition: var(--tr); white-space: nowrap; font-family: var(--fn); }
.nav-link:hover, .nav-link.active { color: var(--t1); background: var(--gl2); }
.nav-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-select { background: var(--gl2); border: 1px solid var(--bd); border-radius: 8px; color: var(--t2); font-size: .73rem; padding: 5px 8px; cursor: pointer; outline: none; font-family: var(--fn); transition: border-color .2s; }
.nav-select:focus { border-color: var(--tl); }
.nav-select option { background: var(--bg2); }
.theme-btn { width: 34px; height: 34px; border-radius: 9px; background: var(--gl2); border: 1px solid var(--bd); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: .9rem; transition: var(--tr); }
.theme-btn:hover { border-color: var(--bd2); }
.hamburger { display: none; background: none; border: none; color: var(--t1); font-size: 1.4rem; cursor: pointer; padding: 4px; }
.user-chip { display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; background: var(--bg2); border: 1px solid var(--bd); border-radius: 100px; cursor: pointer; transition: border-color .2s; position: relative; }
.user-chip:hover { border-color: var(--bd2); }
.user-avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--tl), var(--bl)); display: flex; align-items: center; justify-content: center; font-size: .68rem; font-weight: 800; color: var(--bg0); flex-shrink: 0; }
.user-name { font-size: .79rem; font-weight: 600; }
.user-role { font-size: .64rem; color: var(--t3); }
.user-menu { display: none; position: absolute; top: calc(100% + 8px); right: 0; background: var(--bg1); border: 1px solid var(--bd); border-radius: 14px; padding: 8px; min-width: 185px; box-shadow: var(--sM); z-index: 600; animation: fadeIn .15s ease; }
.user-menu.open { display: block; }
@keyframes fadeIn { from{opacity:0;transform:translateY(-6px)} to{opacity:1;transform:translateY(0)} }
.user-menu-item { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 12px; border-radius: 9px; cursor: pointer; font-size: .83rem; font-weight: 500; color: var(--t2); border: none; background: transparent; font-family: var(--fn); transition: var(--tr); text-align: left; }
.user-menu-item:hover { background: var(--gl2); color: var(--t1); }
.user-menu-item.danger { color: var(--re); }
@media (max-width: 900px) {
  #main-nav .nav-inner { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-links.mobile-open { display: flex; flex-direction: column; position: absolute; top: var(--nav); left: 0; right: 0; background: var(--bg1); border-bottom: 1px solid var(--bd); padding: 12px 20px; gap: 4px; z-index: 490; }
  .hamburger { display: block; }
}

/* ── AUTH PAGE ───────────────────────────────────────────── */
.auth-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: calc(var(--nav) + 20px) 20px 40px; }
.auth-card { background: var(--bg1); border: 1px solid var(--bd); border-radius: var(--rX); padding: 44px; width: 100%; max-width: 460px; box-shadow: var(--sL); }
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-mark { width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, var(--tl), #006e70); display: flex; align-items: center; justify-content: center; font-size: 26px; margin: 0 auto 12px; box-shadow: 0 0 24px rgba(226,164,0,.28); }
.auth-logo h1 { font-weight: 900; font-size: 1.4rem; letter-spacing: -.02em; }
.auth-logo h1 span { color: var(--tl); }
.auth-logo p { color: var(--t2); font-size: .84rem; margin-top: 4px; }
.auth-tabs { display: flex; background: var(--bg0); border-radius: 11px; padding: 4px; margin-bottom: 28px; gap: 4px; }
.auth-tab { flex: 1; padding: 9px; text-align: center; border-radius: 9px; cursor: pointer; font-size: .83rem; font-weight: 700; color: var(--t2); border: none; background: transparent; transition: var(--tr); font-family: var(--fn); }
.auth-tab.active { background: var(--bg2); color: var(--t1); box-shadow: var(--sS); }
.auth-divider { text-align: center; margin: 18px 0; position: relative; color: var(--t3); font-size: .77rem; }
.auth-divider::before, .auth-divider::after { content: ''; position: absolute; top: 50%; width: 44%; height: 1px; background: var(--bd); }
.auth-divider::before { left: 0; } .auth-divider::after { right: 0; }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.demo-btn { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 6px; background: var(--gl2); border: 1px solid var(--bd); border-radius: 10px; cursor: pointer; transition: var(--tr); font-family: var(--fn); }
.demo-btn:hover { border-color: var(--bd2); background: rgba(255,255,255,.06); }
.demo-icon { font-size: 1.1rem; }
.demo-label { font-size: .68rem; color: var(--t2); font-weight: 600; }
.auth-footer { text-align: center; margin-top: 18px; font-size: .8rem; color: var(--t2); }
.auth-footer a { color: var(--tl); cursor: pointer; font-weight: 700; }
.forgot-link { display: block; text-align: right; font-size: .78rem; color: var(--tl); cursor: pointer; margin-top: 6px; font-weight: 600; transition: opacity .2s; }
.forgot-link:hover { opacity: .8; }
.lockout-banner { background: var(--re3); border: 1px solid rgba(239,68,68,.25); border-radius: 11px; padding: 12px 16px; font-size: .82rem; color: var(--re); margin-bottom: 14px; }
.hcaptcha-placeholder { background: var(--gl2); border: 1px dashed var(--bd); border-radius: 11px; padding: 14px; text-align: center; font-size: .78rem; color: var(--t3); }
.hcaptcha-inner { display: flex; align-items: center; justify-content: center; gap: 8px; }

/* ── BOOKING PAGE ────────────────────────────────────────── */
.book-layout { max-width: 1280px; margin: 0 auto; padding: calc(var(--nav) + 44px) 40px 44px; }
.book-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: start; }
.fare-box { background: var(--tl3); border: 1px solid rgba(226,164,0,.18); border-radius: 13px; padding: 18px; }
.fare-row { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; font-size: .84rem; }
.fare-row:not(:last-child) { border-bottom: 1px solid rgba(226,164,0,.1); }
.fare-row span:first-child { color: var(--t2); }
.fare-total { font-weight: 900; font-size: 1.65rem; color: var(--tl); letter-spacing: -.02em; }
.cur-sym { transition: color .3s; }
.rate-row { display: flex; justify-content: space-between; font-size: .78rem; color: var(--t2); }
@media (max-width: 1000px) { .book-grid { grid-template-columns: 1fr; } }
@media (max-width: 768px)  { .book-layout { padding: calc(var(--nav) + 24px) 20px 24px; } }

/* ── PAYMENT ─────────────────────────────────────────────── */
.pay-tabs { display: flex; background: var(--bg0); border-radius: 11px; padding: 4px; margin-bottom: 20px; gap: 4px; }
.pay-tab  { flex: 1; padding: 9px; text-align: center; border-radius: 9px; cursor: pointer; font-size: .82rem; font-weight: 700; color: var(--t2); border: none; background: transparent; transition: var(--tr); font-family: var(--fn); }
.pay-tab.active { background: var(--bg2); color: var(--t1); }
.card-input-wrap { background: rgba(255,255,255,.04); border: 1px solid var(--bd); border-radius: 11px; padding: 13px 14px; display: flex; align-items: center; gap: 10px; transition: border-color .2s; }
.card-input-wrap:focus-within { border-color: var(--tl); }
.card-input { background: transparent; border: none; color: var(--t1); font-family: var(--fm); font-size: .9rem; outline: none; flex: 1; letter-spacing: .1em; }
.pay-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .pay-grid-2 { grid-template-columns: 1fr; } }

/* ── DASHBOARD ───────────────────────────────────────────── */
.dash-layout { max-width: 1280px; margin: 0 auto; padding: calc(var(--nav) + 44px) 40px 44px; }
.dash-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 32px; gap: 16px; flex-wrap: wrap; }
.dash-title  { font-weight: 900; font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.03em; line-height: 1.2; }
.dash-title span { color: var(--tl); }
.dash-sub { color: var(--t2); font-size: .875rem; margin-top: 5px; }
@media (max-width: 768px) { .dash-layout { padding: calc(var(--nav) + 24px) 20px 24px; } }

/* ── ADMIN ───────────────────────────────────────────────── */
.admin-shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: calc(100vh - var(--nav)); margin-top: var(--nav); }
.admin-sidebar { background: var(--bg1); border-right: 1px solid var(--bd); padding: 20px 10px; display: flex; flex-direction: column; gap: 3px; position: sticky; top: var(--nav); height: calc(100vh - var(--nav)); overflow-y: auto; }
.sidebar-section { font-size: .66rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--t3); padding: 8px 12px; margin-top: 8px; }
.sidebar-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; cursor: pointer; font-size: .83rem; font-weight: 500; color: var(--t2); border: none; background: transparent; width: 100%; text-align: left; transition: var(--tr); font-family: var(--fn); }
.sidebar-link:hover { background: var(--gl2); color: var(--t1); }
.sidebar-link.active { background: var(--tl3); color: var(--tl); font-weight: 700; }
.sidebar-badge { margin-left: auto; background: var(--am3); color: var(--am); padding: 1px 7px; border-radius: 100px; font-size: .65rem; font-weight: 800; }
.admin-main { padding: 36px 40px; overflow-y: auto; min-height: calc(100vh - var(--nav)); }
.admin-section { display: none; }
.admin-section.active { display: block; }
/* Mobile admin */
.admin-mobile-bar { display: none; background: var(--bg1); border-bottom: 1px solid var(--bd); padding: 12px 20px; align-items: center; gap: 12px; position: sticky; top: var(--nav); z-index: 10; }
@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .admin-mobile-bar { display: flex; }
  .admin-main { padding: 20px; }
}

/* ── DRIVER ──────────────────────────────────────────────── */
.driver-layout { max-width: 1000px; margin: 0 auto; padding: calc(var(--nav) + 44px) 40px 44px; }
.trip-card { background: var(--gl); border: 1px solid var(--bd); border-radius: var(--rL); padding: 24px; margin-bottom: 16px; transition: border-color .2s; }
.trip-card:hover { border-color: var(--bd2); }
.trip-ref { font-family: var(--fm); font-size: .77rem; color: var(--t3); }
@media (max-width: 768px) { .driver-layout { padding: calc(var(--nav) + 24px) 20px 24px; } }

/* ── HOME PAGE ───────────────────────────────────────────── */
#page-home { padding-top: var(--nav); }
.hero { min-height: calc(100vh - var(--nav)); display: flex; align-items: center; justify-content: center; text-align: center; padding: 60px 40px; position: relative; overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-content { position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(226,164,0,.08); border: 1px solid rgba(226,164,0,.2); border-radius: 100px; padding: 6px 18px; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--tl); margin-bottom: 28px; }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--tl); animation: pulse-dot 2s infinite; }
.hero-h1 { font-weight: 900; font-size: clamp(3rem, 8vw, 6rem); line-height: .96; letter-spacing: -.04em; margin-bottom: 22px; }
.hero-sub { font-size: 1.08rem; color: var(--t2); max-width: 520px; margin: 0 auto 40px; line-height: 1.75; font-weight: 300; }
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 54px; justify-content: center; flex-wrap: wrap; margin-top: 70px; padding-top: 48px; border-top: 1px solid var(--bd); }
.stat-item { text-align: center; }
.stat-num { font-weight: 900; font-size: 2.5rem; color: var(--tl); display: block; line-height: 1; letter-spacing: -.03em; }
.stat-lbl { font-size: .73rem; color: var(--t2); text-transform: uppercase; letter-spacing: .07em; margin-top: 5px; }
.float-card { position: absolute; background: var(--gl); border: 1px solid var(--bd); border-radius: 14px; padding: 13px 17px; backdrop-filter: blur(24px); font-size: .79rem; box-shadow: var(--sM); animation: float-anim 7s ease-in-out infinite; z-index: 2; }
.float-card-1 { left: 3%; top: 26%; animation-delay: -2s; }
.float-card-2 { right: 3%; top: 36%; animation-delay: -5s; }
@keyframes float-anim { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-11px)} }
.float-card-title { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--tl); margin-bottom: 5px; }
@media (max-width: 900px) { .float-card{display:none} .hero-stats{gap:28px} }

/* Services grid */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; }
.service-card { background: var(--gl); border: 1px solid var(--bd); border-radius: var(--rL); padding: 28px 24px; cursor: pointer; position: relative; overflow: hidden; transition: transform .35s cubic-bezier(.23,1,.32,1), border-color .3s; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--tl), transparent); transform: scaleX(0); transition: transform .4s; }
.service-card:hover { transform: translateY(-6px); border-color: rgba(226,164,0,.22); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon { width: 52px; height: 52px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 18px; background: var(--tl3); }
.service-name { font-weight: 800; font-size: 1.03rem; margin-bottom: 10px; letter-spacing: -.01em; }
.service-desc { color: var(--t2); font-size: .845rem; line-height: 1.65; }
@media (max-width: 768px) { .services-grid { grid-template-columns: 1fr; } }

/* Why grid */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.why-visual { position: relative; height: 440px; border-radius: var(--rX); background: linear-gradient(135deg, var(--bg2), var(--bg1)); border: 1px solid var(--bd); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.why-visual::after { content: ''; position: absolute; inset: 0; background: conic-gradient(from 0deg at 50% 50%, transparent, rgba(226,164,0,.055) 60deg, transparent 120deg); animation: rotate 12s linear infinite; }
@keyframes rotate { to { transform: rotate(360deg); } }
.why-badge { position: absolute; bottom: -16px; right: -16px; background: linear-gradient(135deg, var(--am), #d97706); border-radius: 15px; padding: 18px 22px; font-weight: 900; box-shadow: var(--sam); z-index: 2; }
.why-num { font-size: 2rem; line-height: 1; color: var(--bg0); }
.why-lbl { font-size: .64rem; color: rgba(11,9,4,.6); text-transform: uppercase; letter-spacing: .06em; }
.why-list { display: flex; flex-direction: column; gap: 13px; }
.why-item { display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: var(--gl); border: 1px solid var(--bd); border-radius: 13px; cursor: pointer; transition: border-color .2s, transform .3s; }
.why-item:hover { border-color: rgba(226,164,0,.2); transform: translateX(4px); }
.why-icon { color: var(--tl); font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }
.why-content h4 { font-weight: 800; font-size: .9rem; margin-bottom: 3px; }
.why-content p  { color: var(--t2); font-size: .82rem; line-height: 1.6; }
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; } }

/* Contact grid */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-card { display: flex; gap: 18px; align-items: center; padding: 22px; background: var(--gl); border: 1px solid var(--bd); border-radius: var(--rL); cursor: pointer; transition: border-color .2s, transform .3s; text-decoration: none; color: inherit; }
.contact-card:hover { border-color: rgba(226,164,0,.2); transform: translateX(5px); }
.contact-icon { width: 48px; height: 48px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; background: var(--tl3); }
.contact-card h4 { font-weight: 800; font-size: .9rem; margin-bottom: 3px; }
.contact-card p  { color: var(--t2); font-size: .82rem; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* Testimonials */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; }
@media (max-width: 768px) { .testi-grid { grid-template-columns: 1fr; } }
.testi-stars { color: var(--am); font-size: .9rem; margin-bottom: 14px; }
.testi-text  { color: var(--t2); font-size: .875rem; line-height: 1.7; margin-bottom: 18px; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 10px; }
.testi-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--tl), var(--bl)); display: flex; align-items: center; justify-content: center; font-size: .74rem; font-weight: 800; color: var(--bg0); }
.testi-name { font-weight: 700; font-size: .84rem; }
.testi-role { font-size: .72rem; color: var(--t3); }

/* CTA section */
.cta-card { background: linear-gradient(135deg, rgba(226,164,0,.08), rgba(226,164,0,.04)); border: 1px solid rgba(226,164,0,.15); border-radius: var(--r2); padding: 72px; text-align: center; position: relative; overflow: hidden; }
.cta-card::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(ellipse at center, rgba(226,164,0,.04) 0%, transparent 70%); pointer-events: none; }
.cta-badges { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 28px; }
.cta-badge  { display: flex; align-items: center; gap: 6px; padding: 5px 14px; background: var(--gl2); border: 1px solid var(--bd); border-radius: 100px; font-size: .72rem; font-weight: 600; color: var(--t2); }

/* Footer */
footer { border-top: 1px solid var(--bd); padding: 36px 40px; position: relative; z-index: 1; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.footer-copy { font-size: .79rem; color: var(--t3); }
.footer-copy strong { color: var(--tl); }
.footer-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.footer-badge { font-size: .67rem; font-weight: 600; padding: 3px 9px; border-radius: 100px; border: 1px solid var(--bd); color: var(--t3); }
@media (max-width: 768px) { footer { padding: 28px 20px; } }

/* ---- Right-to-left (Arabic) ---- */
[dir=rtl] .user-menu { right: auto; left: 0; }
[dir=rtl] .user-menu-item, [dir=rtl] .sidebar-link { text-align: right; }
[dir=rtl] .forgot-link { text-align: left; }
[dir=rtl] .admin-sidebar { border-right: 0; border-left: 1px solid var(--bd); }
[dir=rtl] .sidebar-badge { margin-left: 0; margin-right: auto; }
[dir=rtl] .why-item:hover, [dir=rtl] .contact-card:hover { transform: translateX(-4px); }
[dir=rtl] .float-card-1 { left: auto; right: 3%; } [dir=rtl] .float-card-2 { right: auto; left: 3%; }
[dir=rtl] .why-badge { right: auto; left: -16px; }
