/* ===== Reset & Variables ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --surface: #ffffff;
  --text: #16181d;
  --text-muted: #5b616e;
  --border: #e7e9f0;
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --accent: #06b6d4;
  --gradient: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  --shadow: 0 10px 30px rgba(20, 20, 40, 0.08);
  --radius: 16px;
  --font-head: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

:root[data-theme="dark"] {
  --bg: #0d1117;
  --bg-alt: #11151d;
  --surface: #161b25;
  --text: #eef1f8;
  --text-muted: #9aa2b1;
  --border: #262c3a;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1117;
    --bg-alt: #11151d;
    --surface: #161b25;
    --text: #eef1f8;
    --text-muted: #9aa2b1;
    --border: #262c3a;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  }
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .3s ease, color .3s ease;
}

h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; }

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

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Progress bar ===== */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--gradient);
  z-index: 1000;
  transition: width .1s ease-out;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 18px 0;
  transition: background .3s ease, padding .3s ease, box-shadow .3s ease;
}
.navbar.scrolled {
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,.06);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: .5px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--heading);
}
.logo span { color: var(--primary); }
.logo-img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-size: .95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 4px 0;
  transition: color .2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--gradient);
  transition: width .25s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--text);
  transition: transform .2s ease, border-color .2s ease;
}
.icon-btn:hover { transform: translateY(-2px); border-color: var(--primary); }

.hamburger { display: none; flex-direction: column; gap: 4px; }
.hamburger span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 24px rgba(79, 70, 229, .35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(79, 70, 229, .45); }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-3px); }
.btn-hire {
  background: #14a800;
  color: #fff;
  box-shadow: 0 8px 24px rgba(20, 168, 0, .30);
}
.btn-hire:hover { background: #108a00; transform: translateY(-3px); box-shadow: 0 12px 28px rgba(20, 168, 0, .40); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 90px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px circle at 15% 20%, rgba(79,70,229,.12), transparent 60%),
    radial-gradient(500px circle at 85% 75%, rgba(6,182,212,.12), transparent 60%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 40px;
  align-items: center;
}
.eyebrow {
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: .85rem;
  margin-bottom: 14px;
}
.hero-text h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 10px;
}
.typewriter {
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 22px;
  min-height: 1.6em;
}
.typewriter .cursor { color: var(--primary); animation: blink 1s step-start infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero-desc {
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 32px;
  font-size: 1.02rem;
}
.hero-actions { display: flex; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.hero-social { display: flex; gap: 14px; }
.hero-social a {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: all .2s ease;
}
.hero-social a:hover { color: #fff; background: var(--gradient); border-color: transparent; transform: translateY(-3px); }

.hero-photo { position: relative; display: flex; justify-content: center; }
.photo-ring {
  width: 300px; height: 300px;
  border-radius: 50%;
  padding: 8px;
  background: var(--gradient);
  animation: spin 12s linear infinite;
  display: flex; align-items: center; justify-content: center;
}
@keyframes spin { to { transform: rotate(360deg); } }
.avatar {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 4.5rem;
  color: var(--primary);
  object-fit: cover;
  animation: counterspin 12s linear infinite;
}
@keyframes counterspin { to { transform: rotate(-360deg); } }

.badge {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 10px 16px;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
}
.badge-1 { top: 10px; left: -10px; }
.badge-2 { bottom: 20px; right: -20px; }

.scroll-cue {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid var(--border);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.scroll-cue span {
  width: 4px; height: 8px;
  background: var(--primary);
  border-radius: 2px;
  animation: scrollcue 1.6s ease infinite;
}
@keyframes scrollcue {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(14px); }
}

/* ===== Section ===== */
.section { padding: 110px 0; }
.section.alt { background: var(--bg-alt); }
.section-tag {
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: .85rem;
  margin-bottom: 8px;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: 48px;
}

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 50px;
  align-items: start;
}
.about-text { color: var(--text-muted); font-size: 1.05rem; }
.info-list { display: grid; gap: 14px; }
.info-item {
  display: flex;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: .92rem;
}
.info-item span { color: var(--text-muted); }

.stats-row {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 16px;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
}
.stat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.stat-card strong {
  display: block;
  font-family: var(--font-head);
  font-size: 2.2rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-card span { color: var(--text-muted); font-size: .88rem; }

/* ===== Timeline ===== */
.timeline {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding-left: 30px;
  border-left: 2px solid var(--border);
}
.tl-item { position: relative; padding-bottom: 46px; padding-left: 30px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute;
  left: -39px;
  top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--gradient);
  border: 3px solid var(--bg-alt);
}
.tl-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.tl-content:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tl-date {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(79,70,229,.1);
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 10px;
}
.tl-content h3 { font-size: 1.15rem; margin-bottom: 10px; }
.tl-org { color: var(--text-muted); font-weight: 400; font-size: .95rem; }
.tl-content p { color: var(--text-muted); font-size: .95rem; margin-bottom: 14px; }
.tl-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tl-tags span {
  font-size: .78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 50px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* ===== Projects Carousel ===== */
.carousel-outer {
  position: relative;
  margin-left: -24px;
  margin-right: -24px;
}
.carousel-viewport {
  overflow: hidden;
  border-radius: 0;
  width: 100%;
}
.carousel-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.proj-card {
  flex: 0 0 100%;
  min-width: 100%;
  background: var(--card);
  border: none;
  border-radius: 0;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.proj-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,.15); }
.proj-img { overflow: hidden; background: var(--alt-bg); }
.proj-img img { width: 100%; height: auto; display: block; transition: transform .4s ease; }
.proj-card:hover .proj-img img { transform: scale(1.04); }
.proj-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--muted); background: linear-gradient(135deg, var(--alt-bg), var(--card)); }
.proj-body { padding: 20px; }
.proj-title { font-size: 1rem; font-weight: 700; color: var(--heading); margin-bottom: 8px; }
.proj-desc { font-size: .85rem; color: var(--muted); line-height: 1.6; margin-bottom: 12px; }
.proj-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.proj-tags span { background: rgba(79,70,229,.1); color: var(--primary); padding: 3px 10px; border-radius: 50px; font-size: .72rem; font-weight: 600; }
.proj-links { display: flex; gap: 10px; }
.proj-link { display: inline-flex; align-items: center; gap: 5px; padding: 6px 14px; border-radius: 8px; font-size: .8rem; font-weight: 600; text-decoration: none; transition: all .2s ease; }
.proj-link-live { background: var(--primary); color: #fff; }
.proj-link-live:hover { background: #4338ca; transform: translateY(-1px); }
.proj-link-gh { background: var(--alt-bg); color: var(--text); border: 1px solid var(--border); }
.proj-link-gh:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
/* Nav buttons */
.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}
.carousel-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s ease;
  flex-shrink: 0;
}
.carousel-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: scale(1.08); }
.carousel-btn:disabled { opacity: .3; cursor: default; transform: none; }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dots button { width: 8px; height: 8px; border-radius: 50%; border: none; background: var(--border); cursor: pointer; padding: 0; transition: all .25s ease; }
.carousel-dots button.active { background: var(--primary); width: 28px; border-radius: 4px; }

/* ===== Skills ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 60px;
}
.skill-chip {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  cursor: default;
  transition: all .2s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.skill-chip:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(79,70,229,.12);
}
.skill-chip-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--heading);
}
.skill-pct {
  font-size: .75rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}
.skill-bar-wrap {
  height: 5px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.skill-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #818cf8);
  border-radius: 3px;
}

.soft-skills h3, .languages h3 { font-size: 1.2rem; margin-bottom: 22px; }
.soft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 60px;
}
.soft-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: .92rem;
}

.lang-bar { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.lang-bar span { width: 80px; font-weight: 600; font-size: .9rem; }
.bar {
  flex: 1;
  height: 8px;
  border-radius: 10px;
  background: var(--bg-alt);
  overflow: hidden;
}
.fill {
  height: 100%;
  width: 0;
  border-radius: 10px;
  background: var(--gradient);
  transition: width 1.2s ease;
}
.fill.animate { width: var(--w); }

/* ===== Education ===== */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.edu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.edu-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.edu-year {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}
.edu-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.edu-card p { color: var(--text-muted); font-size: .92rem; margin-bottom: 14px; }
.edu-gpa {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 50px;
  background: rgba(6,182,212,.1);
  color: var(--accent);
}

/* ===== Contact ===== */
.contact-lead { color: var(--text-muted); margin-bottom: 50px; max-width: 500px; }
.contact-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 40px;
}
.contact-info { display: grid; gap: 16px; align-content: start; }
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.c-icon { font-size: 1.4rem; }
.contact-card span { display: block; font-size: .78rem; color: var(--text-muted); }
.contact-card strong { font-size: .92rem; word-break: break-word; }

.contact-form {
  display: grid;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  font-family: var(--font-body);
  font-size: .92rem;
  resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.contact-form button { justify-self: start; }
.form-note { font-size: .85rem; color: var(--accent); min-height: 1em; }

/* ===== Footer ===== */
.footer { padding: 30px 0; border-top: 1px solid var(--border); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-inner p { color: var(--text-muted); font-size: .88rem; }
.footer .hero-social a { width: 36px; height: 36px; }

/* ===== Back to top ===== */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--gradient);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(79,70,229,.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all .3s ease;
  z-index: 800;
}
.back-to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-desc { margin-inline: auto; }
  .hero-actions, .hero-social { justify-content: center; }
  .hero-photo { order: -1; margin-bottom: 20px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .edu-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 20px 24px;
    gap: 18px;
    transform: translateY(-120%);
    transition: transform .3s ease;
    z-index: 899;
  }
  .nav-links.open { transform: translateY(0); }
  .hamburger { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .photo-ring { width: 220px; height: 220px; }
  .avatar { font-size: 3.4rem; }
}

/* ===== Nav Booking Button ===== */
.nav-booking-btn {
  background: var(--primary);
  color: #fff !important;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
}
.nav-booking-btn:hover { background: #4338ca; opacity: 1; }

.nav-dashboard-btn {
  background: transparent;
  color: var(--primary) !important;
  border: 1.5px solid var(--primary);
  padding: 5px 15px;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s;
  white-space: nowrap;
}
.nav-dashboard-btn:hover { background: var(--primary); color: #fff !important; }

/* ===== Booking CTA Section ===== */
.booking-cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: linear-gradient(135deg, var(--primary) 0%, #818cf8 100%);
  border-radius: 20px;
  padding: 48px 52px;
  flex-wrap: wrap;
}
.booking-cta-text .section-tag { color: rgba(255,255,255,.7); }
.booking-cta-text h2 { color: #fff; }
.booking-cta-text p { color: rgba(255,255,255,.85); }
.booking-cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.booking-cta-actions .btn-primary {
  background: #fff;
  color: var(--primary);
  font-size: 1rem;
  padding: 14px 32px;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.booking-cta-actions .btn-primary:hover { background: #f1f5f9; }
.booking-cta-meta { display: flex; flex-direction: column; gap: 6px; }
.booking-cta-meta span { color: rgba(255,255,255,.9); font-size: .85rem; }
@media (max-width: 720px) {
  .booking-cta-box { padding: 32px 24px; flex-direction: column; }
  .booking-cta-actions { width: 100%; }
  .booking-cta-actions .btn-primary { width: 100%; text-align: center; }
}

/* ===== Booking & Legal Pages ===== */
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row-2 { grid-template-columns: 1fr; } }

.legal-page { max-width: 760px; }
.legal-page h1 { font-size: 2rem; font-weight: 800; color: var(--heading); margin-bottom: 6px; }
.legal-date { color: var(--muted); font-size: .88rem; margin-bottom: 36px; }
.legal-page h2 { font-size: 1.1rem; font-weight: 700; color: var(--heading); margin: 32px 0 10px; }
.legal-page p, .legal-page li { color: var(--text); line-height: 1.8; font-size: .95rem; margin-bottom: 12px; }
.legal-page ul { padding-left: 22px; margin-bottom: 12px; }
.legal-page a { color: var(--primary); }

/* ===== Booking Status Page ===== */
.booking-status-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
}
.booking-status-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.booking-badge {
  padding: 6px 18px;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
}
.status-timeline {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
  position: relative;
}
.status-timeline::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.timeline-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  color: var(--muted);
  position: relative;
  z-index: 1;
}
.timeline-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid var(--card);
  box-shadow: 0 0 0 2px var(--border);
}
.timeline-step.done .timeline-dot { background: var(--primary); box-shadow: 0 0 0 2px var(--primary); }
.timeline-step.current .timeline-dot { background: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,.3); }
.timeline-step.current { color: var(--primary); font-weight: 600; }
.booking-details { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.detail-row { display: flex; flex-direction: column; gap: 2px; }
.detail-label { font-size: .75rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 580px) { .booking-details { grid-template-columns: 1fr; } }
