/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #e63946;
  --primary-dark: #c1121f;
  --primary-light: #ff6b7a;
  --secondary: #1d3557;
  --accent: #f4a261;
  --dark: #0d1b2a;
  --dark2: #1b2a3b;
  --text: #2d3748;
  --text-light: #718096;
  --bg: #f7f9fc;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 4px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.14);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: .3s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 99px; }

/* ─── UTILITIES ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 50px; font-size: .95rem;
  font-weight: 600; cursor: pointer; border: none; transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary); color: var(--white);
  box-shadow: 0 4px 16px rgba(230,57,70,.3);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(230,57,70,.4); }
.btn-outline {
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,.5);
}
.btn-outline:hover { background: rgba(255,255,255,.15); border-color: var(--white); }
.btn-full { width: 100%; justify-content: center; border-radius: var(--radius-sm); padding: 16px; font-size: 1rem; }
.btn-sm { padding: 10px 20px; font-size: .875rem; }

.section { padding: 100px 0; }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.section-header h2 { font-size: 2.5rem; font-weight: 800; color: var(--secondary); margin: 12px 0 16px; line-height: 1.2; }
.section-header p { color: var(--text-light); font-size: 1.05rem; }
.section-header.light h2 { color: var(--white); }
.section-header.light p { color: rgba(255,255,255,.75); }

.section-tag {
  display: inline-block; background: rgba(230,57,70,.1); color: var(--primary);
  padding: 6px 18px; border-radius: 50px; font-size: .8rem;
  font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.services .section-tag, .section-header.light .section-tag {
  background: rgba(255,255,255,.15); color: var(--white);
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── NAVBAR ─── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 16px 0; transition: var(--transition);
}
.navbar.scrolled {
  background: var(--white); box-shadow: var(--shadow);
  padding: 12px 0;
}
.navbar.scrolled .nav-links a { color: var(--secondary); }
.navbar.scrolled .nav-links a:hover { color: var(--primary); }
.navbar.scrolled .logo-text { color: var(--secondary); }
.navbar.scrolled .btn-outline { border-color: var(--primary); color: var(--primary); }
.navbar.scrolled .btn-outline:hover { background: var(--primary); color: var(--white); }

.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 32px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-img {
  height: 52px; width: auto; object-fit: contain;
  background: rgba(255,255,255,0.92);
  border-radius: 10px;
  padding: 3px 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: var(--transition);
}
.navbar.scrolled .logo-img {
  background: transparent;
  box-shadow: none;
  padding: 0;
}
.logo-img-footer {
  height: 52px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 4px 8px;
}
.logo-text { font-size: 1.4rem; font-weight: 800; color: var(--white); }
.logo-accent { color: var(--accent); }

.nav-links { display: flex; list-style: none; gap: 4px; margin-left: auto; }
.nav-links a {
  color: rgba(255,255,255,.85); padding: 8px 14px; border-radius: 8px;
  font-size: .92rem; font-weight: 500; transition: var(--transition);
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,.1); }

.nav-actions { display: flex; gap: 12px; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }
.navbar.scrolled .hamburger span { background: var(--secondary); }

/* ─── HERO ─── */
.hero {
  min-height: 100vh; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 120px 24px 60px; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: #0d1b2a;
}

.hero-slides {
  position: absolute; inset: 0;
  overflow: hidden;
}

.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1);
  transition: opacity 1.4s ease-in-out;
  will-change: opacity, transform;
}
.hero-slide.active {
  opacity: 1;
  animation: heroKenBurns 7s ease-out forwards;
}
.hero-slide.leaving {
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
}

@keyframes heroKenBurns {
  from { transform: scale(1); }
  to   { transform: scale(1.1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
  .hero-slide.active { animation: none; }
}

.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(13, 27, 42, 0.45) 0%, rgba(13, 27, 42, 0.55) 40%, rgba(13, 27, 42, 0.72) 100%),
    linear-gradient(135deg, rgba(193, 18, 31, 0.12) 0%, transparent 50%);
  pointer-events: none;
}

.hero-location {
  position: absolute; bottom: 28px; left: 32px; z-index: 2;
  display: flex; align-items: center; gap: 8px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.hero-location i { color: var(--accent); font-size: 0.75rem; }

.hero-content { position: relative; z-index: 1; text-align: center; max-width: 720px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(244,162,97,.2); border: 1px solid rgba(244,162,97,.3);
  color: var(--accent); padding: 8px 20px; border-radius: 50px;
  font-size: .85rem; font-weight: 600; margin-bottom: 24px; letter-spacing: .04em;
}
.hero-title {
  font-size: clamp(2.8rem, 7vw, 5rem); font-weight: 900;
  color: var(--white); line-height: 1.1; margin-bottom: 24px;
}
.hero-subtitle {
  color: rgba(255,255,255,.75); font-size: 1.1rem;
  max-width: 560px; margin: 0 auto 40px; line-height: 1.7;
}
.hero-stats {
  display: flex; align-items: center; justify-content: center; gap: 32px; flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num { display: block; font-size: 2rem; font-weight: 800; color: var(--white); }
.stat-label { font-size: .8rem; color: rgba(255,255,255,.6); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
.stat-divider { width: 1px; height: 48px; background: rgba(255,255,255,.2); }

/* ─── BOOKING CARD ─── */
.booking-card {
  position: relative; z-index: 1; width: 100%; max-width: 900px;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); margin-top: 60px; overflow: hidden;
}
.booking-tabs { display: flex; border-bottom: 2px solid var(--border); }
.tab-btn {
  flex: 1; padding: 18px; background: none; border: none; cursor: pointer;
  font-size: .95rem; font-weight: 600; color: var(--text-light); transition: var(--transition);
  border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.booking-form { padding: 28px; }

.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 0; }
.form-group label {
  font-size: .8rem; font-weight: 600; color: var(--text-light);
  text-transform: uppercase; letter-spacing: .06em; display: flex; align-items: center; gap: 6px;
}
.form-group label i { color: var(--primary); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px; border: 2px solid var(--border); border-radius: var(--radius-sm);
  font-size: .95rem; font-family: inherit; color: var(--text);
  background: var(--bg); transition: var(--transition); outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--primary); background: var(--white); }
.form-group textarea { resize: vertical; }

/* ─── FLEET ─── */
.fleet { background: var(--bg); }
.fleet-filters { display: flex; justify-content: center; gap: 12px; margin-bottom: 48px; flex-wrap: wrap; }
.filter-btn {
  padding: 10px 24px; border-radius: 50px; border: 2px solid var(--border);
  background: var(--white); color: var(--text-light); font-weight: 600; cursor: pointer;
  transition: var(--transition); font-size: .875rem;
}
.filter-btn.active,
.filter-btn:hover { background: var(--primary); border-color: var(--primary); color: var(--white); }

.cars-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px;
}
.car-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: var(--transition); position: relative;
}
.car-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.car-card.hidden { display: none; }

.car-badge {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  background: var(--primary); color: var(--white);
  padding: 4px 12px; border-radius: 50px; font-size: .75rem; font-weight: 700;
}
.badge-suv     { background: #2980b9; }
.badge-luxury  { background: #8e44ad; }
.badge-sport   { background: #e67e22; }
.badge-compact { background: #16a085; }

.car-image {
  height: 200px; overflow: hidden;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.car-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
  display: block;
}
.car-card:hover .car-image img { transform: scale(1.06); }

.car-info { padding: 20px; }
.car-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.car-header h3 { font-size: 1.15rem; font-weight: 700; color: var(--secondary); }
.car-category {
  background: rgba(230,57,70,.1); color: var(--primary);
  padding: 3px 10px; border-radius: 50px; font-size: .75rem; font-weight: 600;
}
.car-specs {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px;
  padding-bottom: 18px; border-bottom: 1px solid var(--border);
}
.car-specs span {
  display: flex; align-items: center; gap: 5px;
  font-size: .8rem; color: var(--text-light); font-weight: 500;
}
.car-specs i { color: var(--primary); }
.car-footer { display: flex; align-items: center; justify-content: space-between; }
.car-price { display: flex; align-items: baseline; gap: 4px; }
.price-amount { font-size: 1.5rem; font-weight: 800; color: var(--secondary); }
.price-period { font-size: .85rem; color: var(--text-light); }

/* ─── SERVICES ─── */
.services {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--dark) 100%);
}
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px;
}
.service-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); padding: 32px; transition: var(--transition);
}
.service-card:hover { background: rgba(255,255,255,.1); transform: translateY(-4px); }
.service-icon {
  width: 60px; height: 60px; background: var(--primary);
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--white); margin-bottom: 20px;
}
.service-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.service-card p { color: rgba(255,255,255,.65); font-size: .92rem; line-height: 1.7; }

/* ─── WHY US ─── */
.why-us { background: var(--white); }
.why-us-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.why-us-text .section-tag { text-align: left; }
.why-us-text h2 { font-size: 2.2rem; font-weight: 800; color: var(--secondary); margin: 12px 0 20px; }
.why-us-text > p { color: var(--text-light); margin-bottom: 36px; }
.why-list { list-style: none; display: flex; flex-direction: column; gap: 24px; }
.why-list li { display: flex; gap: 16px; align-items: flex-start; }
.why-icon { font-size: 1.3rem; color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.why-list h4 { font-size: 1rem; font-weight: 700; color: var(--secondary); margin-bottom: 4px; }
.why-list p { color: var(--text-light); font-size: .9rem; }

.why-us-visual { position: relative; height: 400px; }
.visual-card {
  position: absolute; background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 24px; display: flex; flex-direction: column;
  gap: 6px; min-width: 180px;
}
.visual-card i { font-size: 1.8rem; color: var(--primary); }
.visual-card strong { font-size: 1rem; font-weight: 700; color: var(--secondary); }
.visual-card span { font-size: .8rem; color: var(--text-light); }
.main-card { top: 40px; left: 20px; flex-direction: row; align-items: center; gap: 16px; min-width: 230px; }
.rating-card { top: 180px; right: 20px; text-align: center; align-items: center; }
.price-card { bottom: 20px; left: 60px; text-align: center; align-items: center; }
.stars { color: #f4c430; font-size: 1rem; }
.why-bg-circle {
  position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(230,57,70,.12), rgba(29,53,87,.12));
  top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: -1;
}
.visual-bg-circle {
  position: absolute; width: 260px; height: 260px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(230,57,70,.08), rgba(244,162,97,.08));
  top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: -1;
}

/* ─── TESTIMONIALS ─── */
.testimonials { background: var(--bg); }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.testimonial-card {
  background: var(--white); border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow); transition: var(--transition);
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.testimonial-stars { color: #f4c430; font-size: 1rem; margin-bottom: 16px; }
.testimonial-card p {
  color: var(--text-light); font-size: .95rem; line-height: 1.7;
  font-style: italic; margin-bottom: 24px;
}
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.author-avatar {
  width: 44px; height: 44px; background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1.1rem;
}
.testimonial-author strong { display: block; font-weight: 700; color: var(--secondary); }
.testimonial-author span { font-size: .8rem; color: var(--text-light); }

/* ─── CONTACT ─── */
.contact { background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; }
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-icon {
  width: 48px; height: 48px; background: rgba(230,57,70,.1);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: 1.1rem; flex-shrink: 0;
}
.contact-item h4 { font-weight: 700; color: var(--secondary); margin-bottom: 4px; }
.contact-item p { color: var(--text-light); font-size: .9rem; }
.contact-item a { color: var(--text-light); transition: var(--transition); }
.contact-item a:hover { color: var(--primary); }

.contact-socials { display: flex; gap: 12px; margin-top: 8px; }
.social-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(230,57,70,.1); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); font-size: .95rem;
}
.social-btn:hover { background: var(--primary); color: var(--white); transform: translateY(-3px); }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form .form-row { margin-bottom: 0; }
.contact-form .form-group { margin-bottom: 0; }

/* ─── FOOTER ─── */
.footer { background: var(--dark); color: rgba(255,255,255,.7); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.footer-brand .logo-text { color: var(--white); }
.footer-brand p { margin-top: 16px; font-size: .9rem; line-height: 1.7; max-width: 280px; }
.footer-brand .contact-socials { margin-top: 24px; }
.footer-brand .social-btn { background: rgba(255,255,255,.08); color: rgba(255,255,255,.7); }
.footer-brand .social-btn:hover { background: var(--primary); color: var(--white); }
.footer-links h4 { font-size: .9rem; font-weight: 700; color: var(--white); margin-bottom: 20px; text-transform: uppercase; letter-spacing: .08em; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: .9rem; transition: var(--transition); }
.footer-links a:hover { color: var(--primary); padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding: 24px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .85rem; flex-wrap: wrap; gap: 12px;
}

/* ─── MODAL ─── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,.6); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; visibility: hidden; transition: var(--transition);
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal {
  background: var(--white); border-radius: var(--radius); padding: 40px;
  max-width: 540px; width: 100%; position: relative;
  transform: scale(.95) translateY(20px); transition: var(--transition);
  max-height: 90vh; overflow-y: auto;
}
.modal-overlay.active .modal { transform: scale(1) translateY(0); }
.modal h2 { font-size: 1.6rem; font-weight: 800; color: var(--secondary); margin-bottom: 8px; }
.modal > p { color: var(--text-light); margin-bottom: 28px; }
.modal-close {
  position: absolute; top: 20px; right: 20px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg); border: none; cursor: pointer;
  color: var(--text-light); font-size: 1rem; transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--primary); color: var(--white); }
.modal .form-row { margin-bottom: 16px; }
.modal .form-group { margin-bottom: 16px; }

/* ─── TOAST ─── */
.toast {
  position: fixed; bottom: 32px; right: 32px; z-index: 9999;
  background: #27ae60; color: var(--white);
  padding: 16px 24px; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px;
  font-weight: 600; font-size: .95rem;
  transform: translateY(80px); opacity: 0; transition: var(--transition);
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ─── BACK TO TOP ─── */
.back-to-top {
  position: fixed; bottom: 32px; left: 32px; z-index: 999;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  border: none; cursor: pointer; font-size: 1rem;
  box-shadow: 0 4px 16px rgba(230,57,70,.4);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(16px); transition: var(--transition);
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); background: var(--primary-dark); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .why-us-inner { grid-template-columns: 1fr; gap: 48px; }
  .why-us-visual { height: 280px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .section-header h2 { font-size: 2rem; }

  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); padding: 16px; box-shadow: var(--shadow); gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-links a { color: var(--secondary); padding: 12px 16px; }
  .nav-actions .btn-outline { display: none; }
  .hamburger { display: flex; }
  .navbar.scrolled .hamburger span { background: var(--secondary); }

  .hero-title { font-size: 2.6rem; }
  .hero-stats { gap: 20px; }
  .stat-divider { height: 32px; }
  .booking-card { margin-top: 40px; }
  .booking-form { padding: 20px; }
  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .why-us-visual { display: none; }
}

@media (max-width: 480px) {
  .hero { padding-top: 100px; }
  .hero-location { left: 16px; bottom: 16px; font-size: 0.72rem; }
  body.rtl .hero-location { right: 16px; }
  .hero-title { font-size: 2rem; }
  .hero-stats { flex-direction: column; gap: 12px; }
  .stat-divider { display: none; }
  .cars-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .modal { padding: 28px 20px; }
}

/* ═══════════════════════════════════════════════
   AUTH STYLES
═══════════════════════════════════════════════ */

/* ─── USER MENU (NAVBAR) ─── */
.user-menu { position: relative; display: flex; align-items: center; }

.user-avatar-btn {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.15); border: 2px solid rgba(255,255,255,.3);
  border-radius: 50px; padding: 6px 14px 6px 6px;
  cursor: pointer; color: var(--white); transition: var(--transition);
}
.navbar.scrolled .user-avatar-btn {
  background: rgba(230,57,70,.1); border-color: var(--primary); color: var(--secondary);
}
.user-avatar-btn:hover,
.user-avatar-btn.open { background: var(--primary); border-color: var(--primary); color: var(--white); }

.user-initial {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  font-size: .85rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.user-avatar-btn.open .user-initial,
.user-avatar-btn:hover .user-initial { background: rgba(255,255,255,.25); }

.user-chevron {
  font-size: .7rem; transition: transform .3s ease;
}
.user-avatar-btn.open .user-chevron { transform: rotate(180deg); }

.user-dropdown {
  position: absolute; top: calc(100% + 12px); right: 0;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); min-width: 220px; z-index: 500;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: var(--transition); overflow: hidden;
}
.user-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }

.user-dropdown-header {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; background: var(--bg);
}
.user-dropdown-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white); font-size: 1rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.user-dropdown-header strong { display: block; font-size: .9rem; color: var(--secondary); }
.user-dropdown-header span { font-size: .78rem; color: var(--text-light); }

.user-dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

.user-dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 18px; font-size: .88rem; font-weight: 500;
  color: var(--text); transition: var(--transition); cursor: pointer;
}
.user-dropdown-item:hover { background: var(--bg); color: var(--primary); }
.user-dropdown-item i { width: 16px; color: var(--text-light); }
.user-dropdown-item:hover i { color: var(--primary); }
.user-dropdown-logout { color: #e74c3c; }
.user-dropdown-logout i { color: #e74c3c; }
.user-dropdown-logout:hover { background: #fef2f2; color: #c0392b; }

/* ─── AUTH MODAL ─── */
.auth-modal {
  padding: 0; max-width: 480px;
  border-radius: var(--radius);
  overflow-y: auto; overflow-x: hidden;
}

/* Tab bar row — holds tabs + close button together */
.auth-tab-bar {
  display: flex; align-items: stretch;
  border-bottom: 2px solid var(--border);
  background: var(--bg); position: sticky; top: 0; z-index: 5;
}
.auth-tabs { display: flex; flex: 1; }
.auth-tab {
  flex: 1; padding: 18px 12px; background: transparent;
  border: none; cursor: pointer; font-size: .9rem; font-weight: 600;
  color: var(--text-light); display: flex; align-items: center; justify-content: center;
  gap: 7px; transition: var(--transition);
  border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.auth-tab.active { background: var(--white); color: var(--primary); border-bottom-color: var(--primary); }
.auth-tab:hover:not(.active) { background: rgba(255,255,255,.6); color: var(--text); }

/* Close button sits inside the tab bar on the right */
.auth-modal .modal-close {
  position: static; width: 48px; flex-shrink: 0;
  background: transparent; border: none; border-radius: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-light); cursor: pointer; font-size: 1rem;
  transition: var(--transition); border-left: 1px solid var(--border);
}
.auth-modal .modal-close:hover { background: #fef2f2; color: var(--primary); }

/* panels */
#loginPanel, #signupPanel, #forgotPanel { padding: 28px 32px 32px; }

/* Override global red focus inside auth modal — use blue */
.auth-modal .form-group input:focus,
.auth-modal .form-group select:focus,
.auth-modal .form-group textarea:focus {
  border-color: #4285F4;
  box-shadow: 0 0 0 3px rgba(66,133,244,.1);
  background: var(--white);
}

/* Tighten form-group spacing inside auth panels */
#loginPanel .form-group,
#signupPanel .form-group,
#forgotPanel .form-group { margin-bottom: 14px; }

.auth-header { text-align: center; margin-bottom: 20px; }
.auth-logo {
  width: 52px; height: 52px; background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: var(--white); margin: 0 auto 12px;
}
.auth-header h2 { font-size: 1.45rem; font-weight: 800; color: var(--secondary); margin-bottom: 4px; }
.auth-header p { color: var(--text-light); font-size: .875rem; }

/* password field */
.password-wrapper { position: relative; }
.password-wrapper input { padding-right: 48px; }
.toggle-password {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-light); cursor: pointer;
  font-size: .9rem; transition: var(--transition); padding: 4px;
}
.toggle-password:hover { color: var(--primary); }

/* password strength */
.password-strength {
  display: none; flex-direction: column; gap: 4px; margin-top: 8px;
}
.strength-bar {
  height: 4px; background: var(--border); border-radius: 99px; overflow: hidden;
}
.strength-fill {
  height: 100%; width: 0; border-radius: 99px;
  background: var(--primary); transition: width .4s ease, background .4s ease;
}
#strengthLabel { font-size: .75rem; font-weight: 600; }

/* auth error / success */
.auth-error, .auth-success {
  display: none; align-items: center; gap: 8px;
  padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: .875rem; font-weight: 500; margin-bottom: 12px;
}
.auth-error {
  background: #fef2f2; color: #e74c3c; border: 1px solid #fca5a5;
}
.auth-error::before { content: '\f071'; font-family: 'Font Awesome 6 Free'; font-weight: 900; }
.auth-success {
  background: #f0fdf4; color: #16a34a; border: 1px solid #86efac;
}
.auth-success::before { content: '\f058'; font-family: 'Font Awesome 6 Free'; font-weight: 900; }

.auth-forgot { text-align: right; margin: -4px 0 16px; }
.auth-forgot a { font-size: .85rem; color: var(--primary); font-weight: 500; }
.auth-forgot a:hover { text-decoration: underline; }

.auth-checkbox {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 16px;
}
.auth-checkbox input[type="checkbox"] {
  width: 16px; height: 16px; accent-color: var(--primary); flex-shrink: 0; margin-top: 2px;
}
.auth-checkbox label { font-size: .85rem; color: var(--text-light); line-height: 1.5; }
.auth-checkbox a { color: var(--primary); }

.auth-switch {
  text-align: center; margin-top: 20px;
  font-size: .875rem; color: var(--text-light);
}
.auth-switch a { color: var(--primary); font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }

/* ─── OR DIVIDER ─── */
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0;
}
.auth-divider::before,
.auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.auth-divider span {
  font-size: .78rem; color: var(--text-light);
  font-weight: 500; text-transform: uppercase; letter-spacing: .06em;
  white-space: nowrap;
}

/* ─── GOOGLE BUTTON ─── */
.btn-google {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 13px 20px; border-radius: var(--radius-sm);
  border: 2px solid var(--border); background: var(--white);
  font-size: .95rem; font-weight: 600; color: var(--text);
  cursor: pointer; transition: var(--transition);
  font-family: inherit;
}
.btn-google:hover {
  border-color: #4285F4;
  background: #f8f9ff;
  box-shadow: 0 2px 12px rgba(66,133,244,.15);
  transform: translateY(-1px);
}
.btn-google:active { transform: translateY(0); }
.btn-google:disabled { opacity: .7; cursor: not-allowed; transform: none; }
.google-icon { width: 20px; height: 20px; flex-shrink: 0; }

/* ═══════════════════════════════════════════
   SIDE PANELS (Profile & Bookings)
═══════════════════════════════════════════ */

.side-panel-overlay {
  position: fixed; inset: 0; z-index: 9100;
  background: rgba(0,0,0,.55); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: var(--transition);
}
.side-panel-overlay.active { opacity: 1; visibility: visible; }

.side-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 100%; max-width: 480px;
  background: var(--white); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .35s cubic-bezier(.4,0,.2,1);
  box-shadow: -8px 0 40px rgba(0,0,0,.18);
}
.side-panel-overlay.active .side-panel { transform: translateX(0); }

.side-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--border);
  flex-shrink: 0; background: var(--white); position: sticky; top: 0; z-index: 2;
}
.side-panel-header h2 {
  font-size: 1.2rem; font-weight: 800; color: var(--secondary);
  display: flex; align-items: center; gap: 10px;
}
.side-panel-header h2 i { color: var(--primary); }
.side-panel-close {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg); border: none; cursor: pointer;
  color: var(--text-light); font-size: 1rem; transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.side-panel-close:hover { background: var(--primary); color: var(--white); }

.side-panel-body { flex: 1; overflow-y: auto; padding: 24px; }

.side-panel-divider { height: 1px; background: var(--border); margin: 24px 0; }

/* ── PROFILE ── */
.profile-avatar-section {
  display: flex; align-items: center; gap: 20px; margin-bottom: 4px;
}
.profile-avatar-big {
  width: 72px; height: 72px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white); font-size: 1.8rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(230,57,70,.3);
}
.profile-name-display { font-size: 1.1rem; font-weight: 700; color: var(--secondary); }
.profile-email-display { font-size: .875rem; color: var(--text-light); margin: 2px 0 8px; }
.profile-provider-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--bg); border: 1px solid var(--border);
  padding: 3px 10px; border-radius: 50px;
  font-size: .75rem; font-weight: 600; color: var(--text-light);
}

.field-note { font-size: .78rem; color: var(--text-light); margin-top: 4px; display: block; }

.profile-action-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.profile-action-row strong { display: block; font-size: .95rem; color: var(--secondary); margin-bottom: 2px; }
.profile-action-row p { font-size: .82rem; color: var(--text-light); }

.btn-outline-dark {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 18px; border-radius: 50px;
  border: 2px solid var(--border); background: var(--white);
  color: var(--text); font-size: .875rem; font-weight: 600;
  cursor: pointer; transition: var(--transition); white-space: nowrap;
  font-family: inherit;
}
.btn-outline-dark:hover { border-color: var(--primary); color: var(--primary); }

.profile-danger {
  background: #fef2f2; border: 1px solid #fca5a5;
  border-radius: var(--radius-sm); padding: 18px;
}
.profile-danger strong { display: block; color: #e74c3c; margin-bottom: 4px; font-size: .95rem; }
.profile-danger p { font-size: .82rem; color: #7f1d1d; margin-bottom: 14px; }
.btn-danger {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 20px; border-radius: 50px;
  background: #e74c3c; color: var(--white); border: none;
  font-size: .875rem; font-weight: 600; cursor: pointer; transition: var(--transition);
  font-family: inherit;
}
.btn-danger:hover { background: #c0392b; transform: translateY(-1px); }

/* ── BOOKINGS ── */
.bookings-tabs {
  display: flex; gap: 6px; margin-bottom: 20px;
  background: var(--bg); padding: 5px; border-radius: 10px;
}
.booking-tab-btn {
  flex: 1; padding: 8px 6px; border-radius: 7px; border: none;
  background: transparent; cursor: pointer; font-size: .82rem; font-weight: 600;
  color: var(--text-light); transition: var(--transition); font-family: inherit;
}
.booking-tab-btn.active { background: var(--white); color: var(--primary); box-shadow: var(--shadow); }

.booking-card {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden; margin-bottom: 14px; transition: var(--transition);
}
.booking-card:hover { box-shadow: var(--shadow); }

.booking-card-header {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; background: var(--bg);
}
.booking-car-thumb {
  width: 70px; height: 52px; border-radius: 8px; overflow: hidden;
  flex-shrink: 0; background: linear-gradient(135deg, var(--secondary), var(--dark));
  display: flex; align-items: center; justify-content: center;
}
.booking-car-thumb img { width: 100%; height: 100%; object-fit: cover; }
.booking-car-thumb .thumb-icon { font-size: 1.5rem; color: rgba(255,255,255,.5); }

.booking-card-title { flex: 1; }
.booking-card-title h4 { font-size: 1rem; font-weight: 700; color: var(--secondary); }
.booking-card-title span { font-size: .78rem; color: var(--text-light); }

.booking-status {
  padding: 4px 10px; border-radius: 50px; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
}
.status-upcoming  { background: #dbeafe; color: #1d4ed8; }
.status-confirmed { background: #d1fae5; color: #065f46; }
.status-completed { background: #e9d5ff; color: #6b21a8; }
.status-cancelled { background: #fee2e2; color: #991b1b; }
.status-pending   { background: #fef9c3; color: #854d0e; }

.booking-card-body { padding: 12px 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.booking-detail { display: flex; flex-direction: column; gap: 2px; }
.booking-detail label { font-size: .72rem; color: var(--text-light); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.booking-detail span { font-size: .88rem; color: var(--secondary); font-weight: 500; }

.booking-card-footer {
  padding: 10px 16px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.booking-price-tag { font-size: 1.05rem; font-weight: 800; color: var(--secondary); }
.booking-price-tag small { font-size: .75rem; color: var(--text-light); font-weight: 400; }

.btn-cancel-booking {
  padding: 7px 14px; border-radius: 50px; border: 1px solid #fca5a5;
  background: #fef2f2; color: #e74c3c; font-size: .8rem; font-weight: 600;
  cursor: pointer; transition: var(--transition); font-family: inherit;
}
.btn-cancel-booking:hover { background: #e74c3c; color: var(--white); }

.bookings-empty {
  text-align: center; padding: 60px 20px;
}
.empty-icon {
  width: 80px; height: 80px; background: var(--bg); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--text-light); margin: 0 auto 20px;
}
.bookings-empty h3 { font-size: 1.2rem; font-weight: 700; color: var(--secondary); margin-bottom: 8px; }
.bookings-empty p { color: var(--text-light); margin-bottom: 24px; font-size: .9rem; }

/* ─── RESPONSIVE SIDE PANELS ─── */
@media (max-width: 520px) {
  .side-panel { max-width: 100%; }
}

/* ─── RESPONSIVE AUTH ─── */
@media (max-width: 480px) {
  #loginPanel, #signupPanel, #forgotPanel { padding: 20px 16px 24px; }
  .auth-tab { font-size: .82rem; padding: 15px 8px; }
  .auth-modal .modal-close { width: 44px; }
}

/* ══════════════════════════════════════════════════════
   LANGUAGE SWITCHER
══════════════════════════════════════════════════════ */
.lang-switcher {
  position: relative;
}

.lang-current {
  display: flex; align-items: center; gap: 6px;
  background: transparent; border: 1.5px solid var(--border);
  border-radius: 50px; padding: 6px 12px;
  font-size: .82rem; font-weight: 600; color: var(--secondary);
  cursor: pointer; transition: var(--transition);
  font-family: inherit;
}
.lang-current:hover { border-color: var(--primary); color: var(--primary); }

.lang-arrow {
  font-size: .65rem;
  transition: transform .25s ease;
}
.lang-menu.open ~ .lang-current .lang-arrow,
.lang-current.open .lang-arrow { transform: rotate(180deg); }

.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: 0 8px 30px rgba(0,0,0,.12);
  min-width: 140px; overflow: hidden; z-index: 9999;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.lang-menu.open {
  opacity: 1; visibility: visible; transform: translateY(0);
}

.lang-option {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 10px 16px;
  background: transparent; border: none;
  font-size: .87rem; font-weight: 500; color: var(--text);
  cursor: pointer; transition: background .15s ease;
  text-align: left; font-family: inherit;
}
.lang-option:hover { background: var(--bg); }
.lang-option.active { color: var(--primary); font-weight: 700; }

.lang-flag { font-size: 1.1rem; }

/* Scrolled navbar — adjust border */
.navbar.scrolled .lang-current { border-color: rgba(255,255,255,.3); color: var(--white); }
.navbar.scrolled .lang-current:hover { border-color: var(--primary); color: var(--primary); }

/* ══════════════════════════════════════════════════════
   ARABIC FONT & RTL LAYOUT
══════════════════════════════════════════════════════ */
:root {
  --font-ar: 'Cairo', 'Inter', sans-serif;
}

body.rtl {
  font-family: var(--font-ar);
  direction: rtl;
  text-align: right;
}

/* Navbar RTL */
body.rtl .nav-container { flex-direction: row-reverse; }
body.rtl .nav-links { flex-direction: row-reverse; }
body.rtl .nav-actions { flex-direction: row-reverse; }
body.rtl .hamburger { order: -1; }

/* Language menu: open left instead of right when RTL */
body.rtl .lang-menu { right: auto; left: 0; }

/* Hero RTL */
body.rtl .hero-content { text-align: right; }
body.rtl .hero-stats { justify-content: flex-end; }
body.rtl .hero-location { left: auto; right: 32px; }

/* Booking form RTL */
body.rtl .booking-tabs { flex-direction: row-reverse; }
body.rtl .form-group label { text-align: right; }

/* Fleet filters RTL */
body.rtl .fleet-filters { flex-direction: row-reverse; }

/* Car card RTL */
body.rtl .car-header { flex-direction: row-reverse; }
body.rtl .car-footer { flex-direction: row-reverse; }
body.rtl .car-specs { justify-content: flex-end; }

/* Section header RTL */
body.rtl .section-header { text-align: right; }
body.rtl .section-header::before { right: auto; left: auto; margin: 0 auto; }

/* Services RTL */
body.rtl .service-card { text-align: right; }

/* Why us RTL */
body.rtl .why-list li { flex-direction: row-reverse; text-align: right; }

/* Contact RTL */
body.rtl .contact-info-item { flex-direction: row-reverse; text-align: right; }
body.rtl .contact-form label { text-align: right; }

/* User dropdown RTL */
body.rtl .user-dropdown { right: auto; left: 0; }
body.rtl .user-dropdown-header { flex-direction: row-reverse; text-align: right; }
body.rtl .user-dropdown-item { flex-direction: row-reverse; }

/* Auth modal RTL */
body.rtl .auth-modal { direction: rtl; text-align: right; }
body.rtl .auth-tabs { flex-direction: row-reverse; }
body.rtl .auth-tab-bar { flex-direction: row-reverse; }
body.rtl .form-group label { text-align: right; }
body.rtl .auth-switch { text-align: right; }
body.rtl .auth-forgot { text-align: left; }
body.rtl .password-wrapper .toggle-password { right: auto; left: 12px; }

/* Side panels RTL */
body.rtl .side-panel { border-radius: 20px 0 0 20px; }
body.rtl .side-panel-overlay .side-panel {
  right: auto; left: 0;
  transform: translateX(-100%);
}
body.rtl .side-panel-overlay.open .side-panel { transform: translateX(0); }
body.rtl .side-panel-header { flex-direction: row-reverse; }
body.rtl .profile-action-row { flex-direction: row-reverse; }
body.rtl .profile-avatar-section { flex-direction: row-reverse; text-align: right; }

/* Bookings RTL */
body.rtl .bookings-tabs { flex-direction: row-reverse; }
body.rtl .booking-card-header { flex-direction: row-reverse; }
body.rtl .booking-card-title { text-align: right; }
body.rtl .booking-card-footer { flex-direction: row-reverse; }

/* Footer RTL */
body.rtl .footer-bottom { flex-direction: row-reverse; }
body.rtl .footer-grid { direction: rtl; }
body.rtl .footer-col { text-align: right; }
body.rtl .social-links { justify-content: flex-end; }

/* General icon-in-button spacing */
body.rtl .btn i, body.rtl .btn-google i {
  margin-right: 0; margin-left: 0;
}

/* Admin dropdown link */
.user-dropdown-admin {
  color: var(--primary) !important;
  font-weight: 600 !important;
}
.user-dropdown-admin:hover { background: rgba(230,57,70,.08) !important; }

/* ── Mobile RTL ── */
@media (max-width: 768px) {
  body.rtl .nav-links { text-align: right; }
  body.rtl .booking-tabs { flex-direction: column; }
}
