:root {
  --bg: #fff1df;
  --surface: #fff7ef;
  --surface-strong: #ffffff;
  --surface-dark: #a5431a;
  --ink: #351b12;
  --muted: #765142;
  --accent: #ff9f1c;
  --accent-deep: #e85d04;
  --line: rgba(53, 27, 18, 0.13);
  --shadow: 0 24px 70px rgba(120, 52, 16, 0.14);
}

[data-theme="dark"] {
  --bg: #110906;
  --surface: #1a100c;
  --surface-strong: #20130e;
  --surface-dark: #130c09;
  --ink: #fff7f0;
  --muted: #e3c8b9;
  --accent: #ffb15c;
  --accent-deep: #ff7a1a;
  --line: rgba(89, 55, 38, 0.78);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(255, 177, 92, 0.28), transparent 28rem),
    radial-gradient(circle at left top, rgba(232, 93, 4, 0.18), transparent 24rem),
    radial-gradient(circle at 20% 95%, rgba(0, 185, 212, 0.12), transparent 22rem),
    var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
  padding-top: constant(safe-area-inset-top);
  padding-top: env(safe-area-inset-top);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: rgba(232, 93, 4, 0.18);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

table,
iframe,
video {
  max-width: 100%;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(255, 247, 239, 0.9);
  border-bottom: 1px solid rgba(53, 27, 18, 0.08);
  padding-top: constant(safe-area-inset-top);
  padding-top: env(safe-area-inset-top);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.brand-with-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: clamp(38px, 5vw, 44px);
  height: clamp(38px, 5vw, 44px);
  max-width: 44px;
  max-height: 44px;
  border-radius: clamp(11px, 1.6vw, 14px);
  overflow: hidden;
  flex: 0 0 auto;
  box-shadow: 0 10px 24px rgba(16, 34, 45, 0.16);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  color: var(--muted);
}

.top-nav a {
  position: relative;
  padding: 0.25rem 0;
  transition: color 160ms ease;
}

.top-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.55rem;
  height: 2px;
  border-radius: 999px;
  background: var(--accent-deep);
  opacity: 0;
  transform: scaleX(0.4);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.top-nav a.is-active {
  color: var(--ink);
}

.top-nav a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(13, 48, 66, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(13, 48, 66, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}

.theme-toggle-icon {
  font-size: 1rem;
  line-height: 1;
}

/* ---------- AUTH NAV (Sign In button / avatar dropdown) ---------- */
.auth-signin-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #e85d04, #ff9f1c);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, opacity 160ms ease;
}

.auth-signin-btn:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

[data-theme="dark"] .auth-signin-btn {
  background: linear-gradient(135deg, #ff7a1a, #ffb15c);
}

#auth-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.auth-user {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  position: relative;
}

.auth-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.auth-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.auth-name {
  font-weight: 600;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-caret {
  font-size: 0.8rem;
  color: var(--muted);
}

.auth-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  min-width: 180px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  padding: 0.5rem;
  display: none;
  z-index: 30;
}

.auth-dropdown.open { display: block; }

.auth-dropdown a,
.auth-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.6rem 0.9rem;
  border: none;
  background: none;
  border-radius: 0.6rem;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.auth-dropdown a:hover,
.auth-dropdown button:hover {
  background: var(--bg);
}

.auth-dropdown button {
  color: #e74c3c;
}

/* ---------- AUTH ACTIONS (Sign In + Register pair) ---------- */
.auth-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Neutral placeholder shown while Clerk is loading so signed-in users never
   see a flash of the "Sign In / Register" buttons before their session is
   restored. */
.auth-pending {
  min-width: 7.5rem;
  justify-content: flex-end;
}

.auth-pending-dot {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  animation: auth-pending-pulse 1.2s ease-in-out infinite;
}

@keyframes auth-pending-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.auth-register-btn {

  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-strong);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, opacity 160ms ease;
}

.auth-register-btn:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

/* ---------- AUTH ICON LINK (Notifications bell) ---------- */
.auth-icon-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--ink);
  font-size: 1.05rem;
  text-decoration: none;
  transition: transform 160ms ease, opacity 160ms ease;
}

.auth-icon-link:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

/* Unread notification count badge on the bell icon */
.auth-bell-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent-deep, #ff7a1a);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--surface-strong, #20130e);
}

/* ---------- NOTIFICATION PANEL (bell dropdown) ---------- */
.auth-bell-wrap {
  position: relative;
}

.auth-notif-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  width: min(92vw, 340px);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  z-index: 40;
  overflow: hidden;
}

.auth-notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  color: var(--ink);
}

.auth-notif-mark-all {
  border: none;
  background: none;
  color: var(--accent-deep);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 0.5rem;
}

.auth-notif-mark-all:hover {
  background: var(--bg);
}

.auth-notif-list {
  max-height: 320px;
  overflow-y: auto;
  padding: 0.5rem;
}

.auth-notif-item {
  padding: 0.7rem 0.8rem;
  border-radius: 0.7rem;
  margin-bottom: 0.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
}

.auth-notif-item:last-child {
  margin-bottom: 0;
}

.auth-notif-item.unread {
  border-left: 4px solid var(--accent);
}

.auth-notif-body {
  margin: 0 0 0.2rem;
  font-size: 0.9rem;
  color: var(--ink);
}

.auth-notif-time {
  font-size: 0.75rem;
  color: var(--muted);
}

.auth-notif-empty {
  margin: 0;
  padding: 1rem 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.auth-notif-footer {
  display: block;
  padding: 0.7rem 1rem;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--accent-deep);
  font-weight: 600;
  font-size: 0.85rem;
}

.auth-notif-footer:hover {
  background: var(--bg);
}



/* ---------- EXPLORE DROPDOWN (top nav) ---------- */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0;
  border: none;
  background: none;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  transition: color 160ms ease;
}

.nav-dropdown-toggle:hover {
  color: var(--accent-deep);
}

.nav-caret {
  font-size: 0.7rem;
}

.nav-dropdown-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 0.6rem);
  min-width: 190px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  padding: 0.5rem;
  display: none;
  z-index: 30;
}

.nav-dropdown.open .nav-dropdown-menu { display: block; }

.nav-dropdown-menu a {
  display: block;
  padding: 0.6rem 0.9rem;
  border-radius: 0.6rem;
  color: var(--ink);
  text-decoration: none;
}

.nav-dropdown-menu a:hover {
  background: var(--bg);
  color: var(--accent-deep);
}

.top-nav a:hover,
.footer-links a:hover { color: var(--accent-deep); }


[data-theme="dark"] body {
  background:
    radial-gradient(circle at top right, rgba(255, 122, 26, 0.2), transparent 28rem),
    radial-gradient(circle at left top, rgba(255, 177, 92, 0.12), transparent 24rem),
    var(--bg);
}

[data-theme="dark"] .site-header {
  background: rgba(19, 12, 9, 0.92);
  border-bottom-color: rgba(89, 55, 38, 0.78);
}

[data-theme="dark"] .theme-toggle,
[data-theme="dark"] .menu-toggle {
  background: rgba(32, 19, 14, 0.96);
  border-color: rgba(89, 55, 38, 0.78);
}

[data-theme="dark"] .hero-app-badge,
[data-theme="dark"] .feature-card,
[data-theme="dark"] .gallery-card,
[data-theme="dark"] .journey-card,
[data-theme="dark"] .legal-card,
[data-theme="dark"] .store-button,
[data-theme="dark"] .phone-card {
  background: var(--surface-strong);
}

[data-theme="dark"] .mock-map,
[data-theme="dark"] .gallery-shot,
[data-theme="dark"] .video-placeholder {
  background: linear-gradient(135deg, rgba(71, 31, 14, 0.96), rgba(255, 122, 26, 0.9));
}

[data-theme="dark"] .mock-pill,
[data-theme="dark"] .mock-badge {
  background: rgba(255, 177, 92, 0.16);
  color: #ffe0c0;
}

[data-theme="dark"] .chat-bubble.light {
  background: rgba(239, 252, 255, 0.08);
}

[data-theme="dark"] .section-alt {
  background: rgba(32, 19, 14, 0.78);
}

[data-theme="dark"] .footer-links,
[data-theme="dark"] .footer-meta,
[data-theme="dark"] .logo-strip-inner {
  color: var(--muted);
}

[data-theme="dark"] .placeholder-icon {
  border-color: rgba(89, 55, 38, 0.78);
  color: var(--muted);
}

.hero {
  padding: 5.5rem 0 3rem;
  padding-top: calc(5.5rem + constant(safe-area-inset-top));
  padding-top: calc(5.5rem + env(safe-area-inset-top));
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.page-hero-grid {
  align-items: start;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.5rem 0 1rem;
}

.compact-actions {
  margin: 0;
}

.stack-grid {
  display: grid;
  gap: 1rem;
}

.stack-card {
  padding: 1.35rem;
  border-radius: 24px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.stack-card strong {
  display: block;
  margin: 0.25rem 0 0.45rem;
  font-size: 1.18rem;
  line-height: 1.2;
}

.stack-card p {
  margin: 0;
  color: var(--muted);
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(232, 93, 4, 0.1);
  color: #a5431a;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-parallax-layer {
  --parallax-y: 0px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(232, 93, 4, 0.1);
  color: #a5431a;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.eyebrow.light {
  background: rgba(255, 255, 255, 0.14);
  color: #c4fbff;
}

[data-theme="dark"] .eyebrow,
[data-theme="dark"] .eyebrow.light {
  background: rgba(255, 177, 92, 0.16);
  color: #ffe0c0;
}

.hero h1,
.section-heading h2,
.cta-card h2,
.trust-grid h2,
.legal-content h1 {
  margin: 0.9rem 0;
  line-height: 1.02;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  max-width: 10ch;
}

.hero-app-badge {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  width: fit-content;
  max-width: min(100%, 420px);
  padding: 0.8rem 1rem;
  margin: 1rem 0 0.25rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(13, 48, 66, 0.08);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-app-icon {
  display: block;
  width: clamp(60px, 8vw, 72px) !important;
  height: clamp(60px, 8vw, 72px) !important;
  max-width: 72px !important;
  max-height: 72px !important;
  min-width: 60px;
  min-height: 60px;
  aspect-ratio: 1;
  border-radius: clamp(18px, 2.5vw, 22px);
  flex-shrink: 0;
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(16, 34, 45, 0.18);
}

.placeholder-icon {
  display: grid;
  place-items: center;
  padding: 0.9rem;
  background:
    linear-gradient(145deg, rgba(255, 177, 92, 0.24), rgba(232, 93, 4, 0.18)),
    var(--surface-strong);
  border: 1px dashed rgba(13, 48, 66, 0.18);
  color: var(--muted);
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
}

[data-theme="dark"] .hero-app-icon,
[data-theme="dark"] .hero-app-badge {
  border-color: rgba(89, 55, 38, 0.78);
}

.hero-app-label {
  margin: 0 0 0.2rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f05d00;
}

[data-theme="dark"] .hero-app-label {
  color: #ffb15c;
}

.hero-app-name {
  display: block;
  max-width: 18ch;
  line-height: 1.2;
}

.hero-text,
.section-heading p,
.trust-grid p,
.hero-note { color: var(--muted); max-width: 60ch; }

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.5rem 0 1rem;
}

.store-button {
  min-width: 196px;
  padding: 0.95rem 1.15rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  display: inline-flex;
  flex-direction: column;
  gap: 0.08rem;
  transition: transform 160ms ease, border-color 160ms ease;
}

.store-button:hover {
  transform: translateY(-2px);
  border-color: rgba(223, 126, 34, 0.35);
}

.store-button.is-disabled {
  opacity: 0.72;
  cursor: default;
  pointer-events: none;
  box-shadow: none;
}

.store-button.is-disabled:hover {
  transform: none;
  border-color: var(--line);
}

.store-button.primary {
  background: linear-gradient(135deg, #e85d04, #ff9f1c);
  color: white;
}

[data-theme="dark"] .store-button.primary {
  background: linear-gradient(135deg, #ff7a1a, #ffb15c);
}

.store-label { font-size: 0.78rem; opacity: 0.78; }

.hero-visual { position: relative; min-height: 520px; }

.phone-card {
  position: absolute;
  width: min(100%, 290px);
  background: var(--surface-strong);
  border-radius: 32px;
  box-shadow: 0 28px 80px rgba(16, 34, 45, 0.14);
  border: 1px solid rgba(16, 34, 45, 0.06);
  overflow: hidden;
}

.phone-card.tall { left: 0; top: 0; }
.phone-card.offset { right: 0; top: 5rem; }
.phone-status { height: 28px; background: linear-gradient(90deg, #e85d04, #ff9f1c); }
.phone-content { padding: 1.2rem; }

[data-theme="dark"] .phone-status {
  background: linear-gradient(90deg, #ff7a1a, #ffb15c);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(10px);
}

.hero {
  position: relative;
}

.hero::before {
  width: 220px;
  height: 220px;
  right: 8%;
  top: 2rem;
  background: radial-gradient(circle, rgba(255, 152, 0, 0.24), transparent 70%);
  animation: pulseGlow 7s ease-in-out infinite;
}

[data-theme="dark"] .hero::before {
  background: radial-gradient(circle, rgba(255, 177, 92, 0.18), transparent 70%);
}

.hero::after {
  width: 180px;
  height: 180px;
  left: 3%;
  bottom: 1rem;
  background: radial-gradient(circle, rgba(255, 159, 28, 0.24), transparent 70%);
  animation: pulseGlow 8s ease-in-out infinite reverse;
}

[data-theme="dark"] .hero::after {
  background: radial-gradient(circle, rgba(255, 122, 26, 0.2), transparent 70%);
}

.mock-pill,
.mock-badge {
  display: inline-flex;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #fff0d8;
  color: #d65f00;
  font-size: 0.78rem;
  font-weight: 700;
}

.mock-map,
.gallery-shot,
.video-placeholder {
  border-radius: 22px;
  background: linear-gradient(135deg, #ff9f1c, #fff4a6);
}

.mock-map { height: 140px; margin: 1rem 0; }
.mock-list { display: grid; gap: 0.75rem; }

.mock-row,
.chart-bar,
.chart-bar.small {
  height: 14px;
  border-radius: 999px;
  background: rgba(16, 34, 45, 0.1);
}

.mock-row.short { width: 72%; }

.chat-bubble {
  padding: 0.85rem 0.95rem;
  border-radius: 18px;
  margin-top: 0.9rem;
  font-size: 0.94rem;
}

.chat-bubble.dark { background: #a5431a; color: white; }
[data-theme="dark"] .chat-bubble.dark { background: #471f0e; color: #ffe0c0; }
.chat-bubble.light { background: #effcff; }
.chart-bar { margin-top: 1rem; }
.chart-bar.small { width: 55%; margin-top: 0.65rem; }

.mock-map,
.gallery-shot,
.video-placeholder,
.cta-card,
.trust-card,
.feature-card,
.journey-card,
.gallery-card {
  position: relative;
  overflow: hidden;
}

.mock-map::after,
.gallery-shot::after,
.video-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 30%,
    transparent 60%
  );
  transform: translateX(-120%);
  animation: shimmerSweep 6.5s ease-in-out infinite;
}

.logo-strip { padding: 1rem 0 0; }

.logo-strip-inner {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
  text-align: center;
  color: #3e5663;
  font-weight: 600;
}

.section { padding: 5rem 0; }
.section-alt { background: rgba(255, 255, 255, 0.62); }
.section-dark { background: linear-gradient(135deg, #a5431a, #e85d04); color: white; }
[data-theme="dark"] .section-dark {
  background: linear-gradient(135deg, #130c09, #471f0e);
  color: var(--ink);
}
.section-heading { margin-bottom: 2rem; }

.feature-grid,
.gallery-grid,
.journey-grid { display: grid; gap: 1rem; }

.feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.journey-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.feature-card,
.gallery-card,
.journey-card,
.trust-card,
.legal-card {
  padding: 1.35rem;
  border-radius: 24px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.gallery-label {
  display: inline-block;
  margin-bottom: 0.8rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
}

.gallery-shot { height: 280px; }
.gradient-one { background: linear-gradient(160deg, #a5431a, #ffb100); }
.gradient-two { background: linear-gradient(160deg, #fff28d, #ff9f1c); }
.gradient-three { background: linear-gradient(160deg, #ff9f1c, #fff7ef); }
.video-card { background: linear-gradient(160deg, rgba(232, 93, 4, 0.08), rgba(255, 152, 0, 0.12)); }

[data-theme="dark"] .gradient-one { background: linear-gradient(160deg, #471f0e, #ff7a1a); }
[data-theme="dark"] .gradient-two { background: linear-gradient(160deg, #2a160d, #471f0e); }
[data-theme="dark"] .gradient-three { background: linear-gradient(160deg, #471f0e, #ffe0c0); }
[data-theme="dark"] .video-card {
  background: linear-gradient(160deg, rgba(18, 49, 74, 0.34), rgba(169, 184, 255, 0.16));
}

.video-placeholder {
  height: 280px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
}

.play-button {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: none;
  font-size: 1.55rem;
  cursor: pointer;
  background: #e85d04;
  color: white;
  box-shadow: var(--shadow);
}

[data-theme="dark"] .play-button {
  background: #ff7a1a;
  color: #fff7f0;
}

.journey-card ol { margin: 1rem 0 0; padding-left: 1.2rem; }
.journey-card li + li { margin-top: 0.65rem; }

.check-list {
  list-style: none;
  margin: 1.15rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.check-list li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--muted);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent-deep);
}

.compact-list {
  gap: 0.65rem;
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.trust-cards { display: grid; gap: 1rem; }

.trust-card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.cta-section { padding-top: 0; }

.cta-card {
  padding: 2rem;
  border-radius: 32px;
  background: linear-gradient(145deg, #e85d04, #a5431a);
  color: white;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
}

[data-theme="dark"] .cta-card {
  background: linear-gradient(145deg, #130c09, #471f0e);
  color: var(--ink);
}

[data-theme="dark"] .stack-card {
  background: var(--surface-strong);
}

[data-theme="dark"] .status-chip {
  background: rgba(255, 177, 92, 0.16);
  color: #ffe0c0;
}

.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid rgba(16, 34, 45, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.9fr 0.9fr;
  gap: 1.5rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  color: var(--muted);
}

.footer-meta { margin-top: 1.5rem; color: var(--muted); }

.legal-shell { min-height: 100vh; }
.legal-main { padding: 4rem 0; }
.legal-card { max-width: 860px; margin: 0 auto; }
.legal-content h2 { margin-top: 2rem; }
.legal-content p, .legal-content li { color: var(--muted); }

.js-reveal-ready .reveal-target {
  opacity: 0;
  transform: translate3d(0, calc(26px + var(--parallax-y, 0px)), 0);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.js-reveal-ready .reveal-target.is-visible {
  opacity: 1;
  transform: translate3d(0, var(--parallax-y, 0px), 0);
}

.floating-card {
  animation: floatCard 6s ease-in-out infinite;
}

.delayed-float {
  animation-delay: 1.2s;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatCard {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

@keyframes shimmerSweep {
  0%,
  70%,
  100% {
    transform: translateX(-120%);
  }
  85% {
    transform: translateX(120%);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .js-reveal-ready .reveal-target,
  .js-reveal-ready .reveal-target.is-visible {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (min-width: 1051px) {
  .happy-people-card {
    animation: fadeInScale 0.9s ease-out forwards;
  }
  
  .js-reveal-ready .happy-people-card {
    opacity: 0;
    animation: fadeInScale 0.9s ease-out forwards;
    animation-delay: var(--reveal-delay, 0ms);
  }
  
  .js-reveal-ready .happy-people-card.is-visible {
    animation: fadeInScale 0.9s ease-out forwards;
    animation-delay: 0ms;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .trust-grid,
  .footer-grid,
  .cta-card { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-visual { min-height: 640px; }
}

@media (max-width: 720px) {
  .menu-toggle { display: inline-flex; }
  .top-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 0.75rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(13, 48, 66, 0.08);
    box-shadow: var(--shadow);
  }
  .top-nav.is-open {
    display: flex;
  }
  .top-nav a {
    padding: 0.85rem 0.9rem;
    border-radius: 14px;
    background: rgba(232, 93, 4, 0.06);
  }
  .top-nav a::after {
    display: none;
  }
  [data-theme="dark"] .top-nav {
    background: rgba(17, 17, 19, 0.98);
    border-color: rgba(42, 52, 64, 0.92);
  }
  [data-theme="dark"] .top-nav a {
    background: rgba(255, 255, 255, 0.04);
  }
  .hero { padding-top: 3.5rem; }
  .hero-grid,
  .journey-grid,
  .feature-grid,
  .gallery-grid,
  .logo-strip-inner { grid-template-columns: 1fr; }
  .hero-visual { min-height: 760px; }
  .hero-actions {
    width: 100%;
  }
  .hero-actions .store-button {
    flex: 1 1 100%;
  }
  .phone-card {
    position: relative;
    width: 100%;
    max-width: 100%;
  }
  .phone-card.offset,
  .phone-card.tall {
    left: auto;
    right: auto;
    top: auto;
    margin-top: 1rem;
  }
  .download-actions.compact { width: 100%; }
  .store-button { flex: 1 1 100%; }
  .hero-app-badge {
    width: 100%;
    align-items: center;
  }
}

@media (max-width: 520px) {
  .container { width: min(100% - max(1rem, env(safe-area-inset-left) + env(safe-area-inset-right)), 1120px); }
  .header-inner {
    gap: 0.55rem;
    min-height: 64px;
  }
  .brand {
    font-size: 1.08rem;
    letter-spacing: 0.015em;
  }
  .brand-with-mark { gap: 0.5rem; }
  .brand-mark {
    width: 36px;
    height: 36px;
    max-width: 36px;
    max-height: 36px;
    border-radius: 11px;
  }
  .theme-toggle {
    padding: 0.7rem;
    justify-content: center;
  }
  .theme-toggle span:last-child {
    display: none;
  }
  .auth-name {
    display: none;
  }
  /* Keep the Sign In / Register pair perfectly aligned with the 44px
     theme + menu toggles on small screens. */
  .auth-actions {
    gap: 0.4rem;
  }
  .auth-signin-btn,
  .auth-register-btn {
    min-height: 44px;
    padding: 0.5rem 0.9rem;
    white-space: nowrap;
  }
  .hero {
    padding-top: 2.75rem;
  }


  .hero h1 {
    max-width: 100%;
  }
  .hero-app-badge {
    padding: 0.7rem;
    border-radius: 20px;
  }
  .hero-app-icon {
    width: 58px !important;
    height: 58px !important;
    max-width: 58px !important;
    max-height: 58px !important;
    min-width: 58px;
    min-height: 58px;
    border-radius: 18px;
  }
}

@media (max-width: 420px) {
  body { font-size: 0.96rem; }

  .store-buttons,
  .hero-actions,
  .cta-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .store-button,
  .primary-button,
  .secondary-button {
    justify-content: center;
    min-height: 48px;
    width: 100%;
  }
}

@media (max-width: 380px) {
  .brand {
    font-size: 1rem;
  }
  .brand-mark {
    width: 34px;
    height: 34px;
    max-width: 34px;
    max-height: 34px;
    border-radius: 10px;
  }
  .hero-app-icon {
    width: 52px !important;
    height: 52px !important;
    max-width: 52px !important;
    max-height: 52px !important;
    min-width: 52px;
    min-height: 52px;
    border-radius: 16px;
  }
  .menu-toggle,
  .theme-toggle {
    width: 44px;
    height: 44px;
  }
}

/* ===== GALLERY STYLES (moved from inline <style>) ===== */
.zanzibar-gallery-section {
  position: relative;
  overflow: hidden;
}
.zanzibar-gallery-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 0%, rgba(39, 214, 226, 0.14), transparent 34%),
    radial-gradient(circle at 88% 10%, rgba(255, 183, 77, 0.12), transparent 28%);
}
.zanzibar-gallery-intro {
  max-width: 760px;
}
.zanzibar-gallery-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}
.zanzibar-place-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: 28px;
  isolation: isolate;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
  transform: translateZ(0);
}
.zanzibar-place-card:nth-child(2),
.zanzibar-place-card:nth-child(5),
.zanzibar-place-card:nth-child(7) {
  min-height: 430px;
}
.zanzibar-place-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 650ms ease, filter 650ms ease;
}
.zanzibar-place-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(5, 12, 20, 0.04) 0%, rgba(5, 12, 20, 0.32) 42%, rgba(5, 12, 20, 0.92) 100%);
}
.zanzibar-place-card:hover img {
  transform: scale(1.09);
  filter: saturate(1.08) contrast(1.04);
}
.zanzibar-place-copy {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 22px;
  color: #ffffff;
}
.zanzibar-place-copy span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.zanzibar-place-copy h3 {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.05;
}
.zanzibar-place-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.55;
  font-size: 0.95rem;
}
@media (max-width: 1050px) {
  .zanzibar-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .zanzibar-gallery-grid {
    grid-template-columns: 1fr;
  }
  .zanzibar-place-card,
  .zanzibar-place-card:nth-child(2),
  .zanzibar-place-card:nth-child(5),
  .zanzibar-place-card:nth-child(7) {
    min-height: 340px;
  }
}

.top-cta-strip {
  position: fixed;
  top: calc(72px + constant(safe-area-inset-top));
  top: calc(72px + env(safe-area-inset-top));
    left: 0;
    right: 0;
    z-index: 19;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    padding: 0.6rem 1rem;
    transition: transform 0.4s ease, opacity 0.4s ease;
}
.top-cta-strip-inner {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    max-width: 900px;
    width: 100%;
    justify-content: space-between;
}
.top-cta-strip-text {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
.top-cta-strip a {
    padding: 0.4rem 1.2rem;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-deep), var(--accent));
    color: white;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Class to hide the strip when reaching Hotels section */
.top-cta-strip.is-hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

/* ============================================================
   CLERK "NUDGE" SIGN-IN POPUP
   Small, non-intrusive prompt for signed-out visitors.
   ============================================================ */
.zango-nudge {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1200;
    width: min(100% - 2.5rem, 340px);
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.zango-nudge.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.zango-nudge-card {
    position: relative;
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: 1rem;
    box-shadow: var(--shadow);
    padding: 1.1rem 1.25rem 1.25rem;
}
.zango-nudge-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.zango-nudge-close:hover {
    background: var(--bg);
    color: var(--ink);
}
.zango-nudge-icon {
    font-size: 1.6rem;
    line-height: 1;
    margin-bottom: 0.4rem;
}
.zango-nudge-title {
    margin: 0 0 0.9rem;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--ink);
    padding-right: 1.5rem;
}
.zango-nudge-actions {
    display: flex;
    gap: 0.6rem;
}
.zango-nudge-btn {
    flex: 1;
    padding: 0.55rem 0.9rem;
    border-radius: 0.7rem;
    font: inherit;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    border: 1px solid var(--line);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.zango-nudge-btn:active {
    transform: translateY(1px);
}
.zango-nudge-primary {
    background: linear-gradient(135deg, var(--accent-deep), var(--accent));
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}
.zango-nudge-secondary {
    background: var(--surface-strong);
    color: var(--ink);
}
.zango-nudge-secondary:hover {
    background: var(--bg);
}

@media (max-width: 480px) {
    .zango-nudge {
        right: 0.75rem;
        bottom: 0.75rem;
        width: min(100% - 1.5rem, 340px);
    }
}

/* ---------- Onboarding Wizard (shared modal) ---------- */
/* Styles for the onboarding modal that can be injected on any page after a
   fresh sign-in. Mirrors the settings styles used on profile.html. */
.hidden {
    display: none !important;
}
.onboarding-overlay {

    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
}
.onboarding-card {
    background: var(--surface, #fff);
    border-radius: 1.25rem;
    padding: 2.5rem;
    max-width: 560px;
    width: 100%;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.role-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border: 2px solid var(--line, #e2e8f0);
    border-radius: 1rem;
    cursor: pointer;
    margin-bottom: 0.75rem;
    transition: all 0.15s;
    background: var(--surface-strong, #fff);
}
.role-option:hover { border-color: var(--accent-deep, #e8902a); }
.role-option.selected { border-color: var(--accent-deep, #e8902a); background: rgba(232, 144, 42, 0.08); }
.role-option .role-icon { font-size: 2rem; }
.role-option h3 { font-size: 1.05rem; font-weight: 700; }
.role-option p { font-size: 0.85rem; color: var(--muted, #64748b); }

.settings-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted, #64748b);
    margin-bottom: 0.35rem;
}
.settings-input,
.settings-select,
.settings-textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--line, #e2e8f0);
    border-radius: 0.6rem;
    background: var(--surface-strong, #fff);
    color: var(--ink, #0f172a);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
.settings-textarea {
    min-height: 90px;
    resize: vertical;
}
.settings-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border-radius: 0.6rem;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: opacity 0.15s;
}
.settings-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.settings-btn-primary {
    background: var(--accent-deep, #e8902a);
    color: #fff;
}
.settings-btn-secondary {
    background: var(--surface-strong, #e2e8f0);
    color: var(--ink, #0f172a);
}
.settings-btn-outline {
    background: transparent;
    border: 1px solid var(--line, #e2e8f0);
    color: var(--ink, #0f172a);
}
.settings-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--line, #e2e8f0);
    cursor: pointer;
    background: var(--surface-strong, #f1f5f9);
    color: var(--ink, #0f172a);
    transition: all 0.15s;
}
.settings-chip.selected {
    background: var(--accent-deep, #e8902a);
    color: #fff;
    border-color: var(--accent-deep, #e8902a);
}
.settings-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.lang-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.lang-chip-group .settings-chip.selected {
    background: var(--accent-deep, #e8902a);
    color: #fff;
    border-color: var(--accent-deep, #e8902a);
}
.lang-count {
    font-size: 0.8rem;
    color: var(--muted, #64748b);
    margin-bottom: 0.75rem;
}
.lang-count strong { color: var(--accent-deep, #e8902a); }
.lang-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px dashed var(--line, #e2e8f0);
    background: transparent;
    color: var(--muted, #64748b);
    cursor: pointer;
    transition: all 0.15s;
}
.lang-more-btn:hover {
    border-color: var(--accent-deep, #e8902a);
    color: var(--accent-deep, #e8902a);
}

@media (max-width: 768px) {

    .onboarding-card {
        padding: 1.75rem;
    }
}
@media (max-width: 520px) {
    .onboarding-overlay {
        padding: 0.75rem;
    }
    .onboarding-card {
        padding: 1.5rem;
        max-height: calc(100vh - 1.5rem);
        overflow-y: auto;
    }
    .onboarding-card h1 {
        font-size: 1.3rem !important;
    }
    .role-option {
        padding: 1rem;
    }
    .onboarding-card div[style*="display:flex; gap:0.75rem;"] {
        flex-direction: column;
        align-items: stretch;
    }
    .onboarding-card div[style*="display:flex; gap:0.75rem;"] .settings-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== Role-aware sidebar groups ===== */
.dashboard-sidebar nav {
    display: grid;
    gap: 0.35rem;
}
.sidebar-group {
    display: grid;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}
.sidebar-group-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    padding: 0.4rem 0.9rem 0.2rem;
}
.sidebar-group:last-child {
    margin-bottom: 0;
}

/* ===== Mobile navigation (drawer + bottom tab bar) ===== */
/* The mobile drawer reuses the SAME .dashboard-sidebar nav rendered by
   renderSidebar() — CSS slides the same component in from the left. */

/* Backdrop overlay behind the drawer */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 940;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    -webkit-tap-highlight-color: transparent;
}
.drawer-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
}

/* Sliding drawer (mobile only) */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 950;
    width: min(82vw, 320px);
    background: var(--surface-strong);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.18);
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    overflow-y: auto;
    overscroll-behavior: contain;
    display: flex;
    flex-direction: column;
}
.mobile-drawer.is-open {
    transform: translateX(0);
}
.mobile-drawer .mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem 0.5rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: 0.5rem;
}
.mobile-drawer .mobile-drawer-title {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--ink);
}

.mobile-drawer .drawer-close {
    min-width: 44px;
    min-height: 44px;
    border: none;
    background: transparent;
    color: var(--ink);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 8px;
    -webkit-tap-highlight-color: transparent;
}
.mobile-drawer .drawer-close:active {
    transform: scale(0.92);
    opacity: 0.7;
}
.mobile-drawer .dashboard-sidebar {
    width: 100%;
    flex: 0 0 auto;
    background: transparent;
    border: none;
    padding: 0.5rem 0.75rem 1rem;
}
.mobile-drawer .dashboard-sidebar nav {
    display: grid;
    gap: 0.35rem;
}
.mobile-drawer .dashboard-sidebar a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.85rem 0.9rem;
    min-height: 44px;
    border-radius: 10px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s ease, transform 0.1s ease;
}
.mobile-drawer .dashboard-sidebar a:active {
    transform: scale(0.98);
    background: var(--bg);
}
.mobile-drawer .dashboard-sidebar a.is-active {
    background: var(--accent);
    color: var(--ink);
}

/* Lock background scroll while the drawer is open */
body.drawer-open {
    overflow: hidden;
}

/* Role-aware bottom tab bar (mobile only) */
.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    background: var(--surface-strong);
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.08);
}
.bottom-nav-item {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    min-height: 56px;
    padding: 0.4rem 0.25rem;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 600;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.15s ease, transform 0.1s ease;
}
.bottom-nav-item:active {
    transform: scale(0.94);
    opacity: 0.75;
}
.bottom-nav-icon {
    font-size: 1.25rem;
    line-height: 1;
}
.bottom-nav-item[aria-current="page"] {
    color: var(--accent-deep);
}

/* Reserve space so the fixed bottom nav never covers page content */
body.has-bottom-nav {
    padding-bottom: calc(56px + env(safe-area-inset-bottom));
}

/* Mobile-first responsive layout */
@media (max-width: 768px) {
    /* Hide the desktop sidebar; the drawer + bottom nav take over.
       Only target the desktop rail (direct child of .dashboard-shell) so the
       .dashboard-sidebar inside the mobile drawer stays visible. */
    .dashboard-shell > .dashboard-sidebar {
        display: none;
    }
    .dashboard-main {
        padding: 1.25rem;
        padding-bottom: calc(5rem + env(safe-area-inset-bottom));
    }
    .dashboard-shell {
        display: block;
    }
    /* Single-column stacking for cards/grids */
    .dashboard-row,
    .dashboard-grid,
    .stats-grid,
    .cards-grid {
        grid-template-columns: 1fr !important;
        flex-direction: column;
    }
    .dashboard-hero h1 {
        font-size: 1.5rem;
    }
    .dashboard-hero p {
        font-size: 0.95rem;
    }
}

/* Desktop: show the sidebar, hide the drawer + bottom nav */
@media (min-width: 769px) {
    .mobile-drawer,
    .drawer-backdrop,
    .bottom-nav {
        display: none !important;
    }
}

/* ===== Tourist profile card (shown to guides inside a booking) ===== */
.tourist-profile-card {
    margin: 0.75rem 0;
    padding: 0.9rem 1rem;
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: 12px;
}
.tourist-profile-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}
.tourist-profile-header h4 {
    margin: 0;
    font-size: 1rem;
}
.tourist-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.tourist-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}
.tourist-country,
.tourist-member-since {
    margin: 0.1rem 0 0;
    font-size: 0.8rem;
    color: var(--muted);
}
.tourist-bio,
.tourist-languages,
.tourist-trip,
.tourist-preferences,
.tourist-requests {
    margin: 0.35rem 0;
    font-size: 0.85rem;
}
.tourist-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.6rem;
}
.tourist-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(46, 204, 113, 0.14);
    color: #1e8449;
    border: 1px solid rgba(46, 204, 113, 0.35);
}
[data-theme="dark"] .tourist-trust-badge {
    background: rgba(46, 204, 113, 0.18);
    color: #7ee2a8;
}




