:root {
  --bg: #f3efe4;
  --panel: #fffdf7;
  --text: #1d2433;
  --muted: #6c6f74;
  --accent: #0f766e;
  --accent-strong: #0b4f4c;
  --accent-soft: #d5efe8;
  --border: #ddcfba;
  --shadow: 0 20px 60px rgba(42, 50, 67, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Segoe UI Variable Text", "Trebuchet MS", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.1), transparent 30%),
    radial-gradient(circle at bottom right, rgba(197, 138, 77, 0.15), transparent 25%),
    linear-gradient(135deg, #f5ead6 0%, #f3efe4 50%, #ebe7da 100%);
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
}

/* ── Auth page ─────────────────────────────────────────── */

.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.auth-shell {
  width: 100%;
  max-width: 420px;
}

.auth-card {
  border: 1px solid rgba(221, 207, 186, 0.85);
  border-radius: 28px;
  padding: 36px;
  background: rgba(255, 254, 248, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.auth-brand h1 {
  margin: 8px 0 6px;
  font-size: 2rem;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.1;
}

.auth-tagline {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-form label span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 600;
}

.auth-form label small {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

.auth-form input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  font-size: 0.95rem;
  background: #fffef9;
}

.auth-form input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.primary-button {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 14px;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #134e4a);
  cursor: pointer;
  margin-top: 4px;
}

.primary-button:hover {
  opacity: 0.9;
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 16px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-strong);
  background: var(--accent-soft);
  cursor: pointer;
}

.auth-message {
  margin: 0;
  font-size: 0.88rem;
  min-height: 1.2em;
  color: var(--muted);
}

.auth-message.is-error {
  color: #b91c1c;
}

.auth-message.is-success {
  color: var(--accent-strong);
}

/* ── Landing page (split hero) ─────────────────────────── */

/* Bug fix: .auth-form sets display:flex, which silently defeated the
   [hidden] attribute — all three auth views rendered stacked. Never
   let a display rule win over hidden again. */
.auth-view[hidden],
.auth-form[hidden] { display: none !important; }

/* Boutique theme (round 10, owner mockup 2026-07-05): warm cream base
   with blush glows, dark warm ink type, deep-mauve CTAs. Replaced the
   dark editorial theme — this palette matches the audience (fashion
   shoppers) AND the logged-in portal's cream, so login no longer theme-
   flips. Rose stays an accent; CTAs use a deepened mauve for contrast. */
.landing-page {
  align-items: flex-start;
  padding: clamp(20px, 4vh, 48px) 24px 24px;
  min-height: 100vh;
  position: relative;
  background:
    radial-gradient(1100px 600px at 80% -10%, rgba(201, 141, 149, 0.2), transparent 65%),
    radial-gradient(900px 500px at -10% 100%, rgba(228, 190, 178, 0.3), transparent 60%),
    linear-gradient(180deg, #faf6f0 0%, #f4ebe1 100%);
  color: #2f2a28;
}

/* Faded skyline: fixed to the bottom, behind everything */
.landing-bg {
  position: absolute;
  inset: auto 0 0 0;
  height: min(30vh, 260px);
  overflow: hidden;
  pointer-events: none;
}

.landing-bg svg { width: 100%; height: 100%; display: block; }

.skyline { fill: #2f2a28; opacity: 0.06; }

.skyline-arc {
  fill: none;
  stroke: #b98088;
  stroke-width: 2;
  stroke-dasharray: 2 9;
  stroke-linecap: round;
  opacity: 0.5;
}

.landing-shell {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 520px);
  grid-template-areas:
    "nav    nav"
    "hero   auth"
    "stats  stats"
    "brands brands"
    "strip  strip"
    "trust  trust"
    "foot   foot";
  gap: clamp(24px, 4vw, 64px);
  row-gap: 28px;
  align-items: start;
  position: relative;
  z-index: 1;
}

/* Top bar — logo left, socials right (Careers joins here later) */
.landing-nav {
  grid-area: nav;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(4px, 3vh, 28px);
}

.landing-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.landing-logo-mark {
  width: 46px;
  height: 46px;
  animation: logo-float 5s ease-in-out infinite;
}

.landing-logo-word {
  font-weight: 800;
  letter-spacing: 0.3em;
  font-size: 1.05rem;
  color: #2f2a28;
}

.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Language toggle + social icons move as one unit when the nav wraps —
   prevents a lone icon orphaning onto its own line on phones. */
.nav-cluster {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.lang-toggle {
  padding: 8px 16px;
  border-radius: 12px;
  border: 1px solid #e7d8cd;
  background: rgba(255, 255, 255, 0.55);
  color: #5c4f49;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.lang-toggle:hover { background: rgba(201, 141, 149, 0.16); color: #9d5c66; }

.social-link {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid #e7d8cd;
  color: #5c4f49;
  background: rgba(255, 255, 255, 0.55);
  transition: background 0.15s, color 0.15s;
}

.social-link:hover { background: rgba(201, 141, 149, 0.16); color: #9d5c66; }

.social-link svg { width: 19px; height: 19px; }

.landing-hero { grid-area: hero; }

/* Arch hero photo — a FADED backdrop on the right of the hero, behind
   the copy (owner 2026-07-05: photo as atmosphere, not a column, so the
   headline sentences keep one line each). The asset itself contains the
   arch alcove; edges melt into the cream via mask + opacity. Hidden
   below 1100px and until /portal/hero-rack.jpg exists (inline onerror). */
.hero-photo {
  display: none;
  margin: 0;
}

@media (min-width: 1100px) {
  .landing-hero { position: relative; }

  /* One sentence per line — the photo no longer squeezes the column */
  .landing-headline .hl-line { white-space: nowrap; }

  .landing-hero > :not(.hero-photo) { position: relative; z-index: 1; }

  /* Text protection: a cream wash over the photo's top-left so the copy
     always sits on a calm backdrop — at narrower desktops the photo
     slides under the headline and its hard lines (the gold rail) would
     otherwise strike through the text. */
  .landing-hero::before {
    content: "";
    position: absolute;
    inset-block-start: -30px;
    inset-block-end: 42%;
    inset-inline-start: -30px;
    inset-inline-end: auto;
    /* Sized to the TEXT, not the hero column — at narrow desktops the
       column shrinks and a %-based wash ended exactly where the rail
       met the headline. */
    width: min(700px, 108%);
    /* Above the photo (z0), below the text (z1 + later in DOM). */
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(249, 242, 235, 0.97) 0%, rgba(249, 242, 235, 0.93) 55%, rgba(249, 242, 235, 0) 98%);
  }

  [dir="rtl"] .landing-hero::before {
    background: linear-gradient(270deg, rgba(249, 242, 235, 0.97) 0%, rgba(249, 242, 235, 0.93) 55%, rgba(249, 242, 235, 0) 98%);
  }

  .hero-photo {
    display: block;
    position: absolute;
    inset-inline-end: -128px;
    top: -40px;
    bottom: -12px;
    width: min(40vw, 680px);
    z-index: 0;
    pointer-events: none;
  }

  .hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom;
    opacity: 0.55;
    /* Mask centered LOW so the top of the photo (the gold rail) fades
       out well before it can strike through the headline at narrower
       desktop widths (owner repro at ~1200px). */
    -webkit-mask-image: radial-gradient(85% 72% at 50% 68%, #000 42%, transparent 95%);
    mask-image: radial-gradient(85% 72% at 50% 68%, #000 42%, transparent 95%);
  }
}

.landing-headline {
  margin: 0 0 26px;
  font-family: Georgia, "Times New Roman", serif;
  /* Sized so each sentence holds ONE line on desktop — no lonely
     "love." wrap. text-wrap: balance keeps narrow screens tidy. */
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.18;
  color: #2b2320;
}

.landing-headline .hl-line {
  display: block;
  text-wrap: balance;
}

.landing-headline em {
  font-style: italic;
  color: #a4666f;
}

/* Stat band — one clean white bar of four blocks (was: floating circles;
   owner 2026-07-05: circles read as random shapes against the page's
   soft-rectangle language). Named hero-stat because .stat-chip is
   already taken by the dashboard styles further down. */
.landing-stats {
  grid-area: stats;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid #eadfd4;
  border-radius: 20px;
  background: #fffdfa;
  box-shadow: 0 14px 40px rgba(122, 79, 87, 0.1);
  padding: 22px 10px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  padding: 6px 18px;
  border-inline-start: 1px solid #f0e6db;
}

.hero-stat:first-child { border-inline-start: none; }

.hero-stat-icon {
  width: 24px;
  height: 24px;
  color: #b26e79;
  margin-bottom: 4px;
}

.hero-stat strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  color: #9d5c66;
  line-height: 1;
}

.hero-stat span {
  font-size: 0.78rem;
  color: #7c6f68;
  font-weight: 600;
  line-height: 1.35;
}

/* Mission — the one-sentence pitch */
.landing-mission {
  margin: 0 0 20px;
  max-width: 52ch;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #5f544e;
}

/* Three "ways to use LZShip" chips — vertical, staggered entrance */
.landing-ways {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 22px;
}

.way-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid #e7d8cd;
  background: rgba(255, 253, 250, 0.75);
  font-size: 0.97rem;
  font-weight: 600;
  color: #3c332e;
  opacity: 0;
  transform: translateY(10px);
  animation: fade-up 0.6s cubic-bezier(0.22, 0.8, 0.36, 1) forwards;
  transition: transform 0.15s, border-color 0.15s, background 0.15s;
}

/* Staggered entrance, then a gentle lift on hover */
.way-chip:nth-child(1) { animation-delay: 0.45s; }
.way-chip:nth-child(2) { animation-delay: 0.6s; }
.way-chip:nth-child(3) { animation-delay: 0.75s; }

.way-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(157, 92, 102, 0.45);
  background: rgba(201, 141, 149, 0.12);
}

.way-live {
  background: rgba(201, 141, 149, 0.16);
  border-color: rgba(157, 92, 102, 0.4);
  color: #2b2320;
}

.way-icon {
  width: 18px;
  height: 18px;
  color: #b26e79;
  flex: none;
}

.live-dot {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
  animation: live-pulse 1.8s ease-out infinite;
}

/* Top brands — text wordmarks, no logo assets. Live-dot chips mark the
   stores LZShip broadcasts live sessions from (owner 2026-07-05). */
.landing-brands { grid-area: brands; text-align: center; }

.brands-label {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9d5c66;
}

.brands-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.brand-chip {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 10px 18px;
  border-radius: 14px;
  border: 1px solid #eadfd4;
  background: #fffdfa;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3c332e;
  box-shadow: 0 6px 18px rgba(122, 79, 87, 0.08);
}

.brand-chip-more {
  font-family: inherit;
  text-transform: none;
  letter-spacing: 0.02em;
  color: #8a7c74;
  background: transparent;
  box-shadow: none;
}

/* Photo strip — auto-scrolling marquee of curated live-session items */
.landing-strip[hidden] { display: none !important; }

.landing-strip { grid-area: strip; min-width: 0; }

.strip-label {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9d5c66;
}

.strip-viewport {
  overflow: hidden;
  border-radius: 18px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.strip-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: strip-scroll 45s linear infinite;
}

.strip-viewport:hover .strip-track { animation-play-state: paused; }

.strip-card {
  flex: none;
  width: 150px;
  height: 190px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #eadfd4;
  background: #fff;
  box-shadow: 0 8px 24px rgba(122, 79, 87, 0.1);
}

.strip-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes strip-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Trust strip — four reassurances above the footer (owner mockup). Same
   soft-band language as the stat bar, but lighter: no card, just icon
   bubbles + copy with hairline dividers. */
.landing-trust {
  grid-area: trust;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 18px 0 4px;
  border-top: 1px solid rgba(157, 92, 102, 0.14);
}

.trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.trust-icon {
  flex: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 50%;
  color: #9d5c66;
  background: rgba(201, 141, 149, 0.14);
}

.trust-item strong {
  display: block;
  font-size: 0.92rem;
  color: #2b2320;
}

.trust-item span {
  display: block;
  font-size: 0.78rem;
  color: #8a7c74;
  margin-top: 1px;
}

.landing-auth { grid-area: auth; }

.landing-auth .auth-card {
  max-width: none;
  background: #fffdfa;
  color: var(--text);
  border-color: #eadfd4;
  box-shadow: 0 30px 80px rgba(122, 79, 87, 0.18);
}

/* Landing-scoped CTA + link colors: deep mauve (readable white-on-color)
   instead of the portal teal. Scoped so the logged-in portal keeps its
   own accent. Covers the auth card AND the contact modal (same body). */
.landing-page .primary-button {
  background: linear-gradient(135deg, #a4666f, #7f4650);
}

.landing-page .auth-link { color: #9d5c66; }

.landing-page .auth-form input:focus,
.landing-page .auth-form textarea:focus {
  outline: 2px solid #b26e79;
  outline-offset: 1px;
}

/* Bottom-left one-liner */
.landing-foot {
  grid-area: foot;
  align-self: end;
  padding-bottom: 8px;
}

.landing-foot p {
  margin: 0;
  max-width: 60ch; /* wide enough that the brand line holds one line */
  font-size: 0.9rem;
  line-height: 1.6;
  color: #8a7c74;
}

/* Auth card header row: title + switch link side by side */
.auth-head-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.auth-head-row .auth-link { white-space: nowrap; font-size: 0.85rem; }

/* Label row: field name left, helper link (Sign up / Forgot password?)
   right — both card links share the same right edge. */
.label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

/* First + Last name side by side */
.name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.label-row .auth-link { font-size: 0.8rem; text-transform: none; letter-spacing: 0; }

.auth-switch {
  margin: 2px 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.auth-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  margin-left: 4px;
}

.auth-link:hover { text-decoration: underline; }

/* Floating WhatsApp chat button */
.whatsapp-fab[hidden] { display: none !important; }

.whatsapp-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 18px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s;
}

.whatsapp-fab:hover { transform: translateY(-2px); }

.whatsapp-fab svg { width: 21px; height: 21px; }

/* Arabic (RTL): system fonts that carry Arabic well; Georgia has no
   Arabic glyphs so the serif headline falls back gracefully. */
[dir="rtl"] .landing-headline,
[dir="rtl"] .hero-stat strong,
[dir="rtl"] .auth-brand h1 {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  font-weight: 700;
}

[dir="rtl"] .landing-headline { line-height: 1.35; }

[dir="rtl"] .landing-logo-word { letter-spacing: 0.18em; }

/* Nav tabs (About / Contact / Careers) */
.nav-tab {
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: none;
  color: #5c4f49;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.nav-tab:hover { background: rgba(201, 141, 149, 0.16); color: #9d5c66; }

/* Footer legal links */
.foot-links {
  margin: 8px 0 0;
  display: flex;
  gap: 10px;
  font-size: 0.8rem;
  color: #a2938a;
}

.foot-links a { color: #8a7c74; text-decoration: none; }
.foot-links a:hover { color: #9d5c66; text-decoration: underline; }

/* Contact modal */
.modal-overlay[hidden] { display: none !important; }

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(47, 32, 35, 0.55);
  backdrop-filter: blur(4px);
}

.modal-card {
  width: 100%;
  max-width: 520px;
  background: #fffdf7;
  color: var(--text);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  border: none;
  background: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 0 4px;
}

.modal-close:hover { color: var(--text); }

.auth-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  font-size: 0.95rem;
  background: #fffef9;
  resize: vertical;
}

.auth-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* Info pages (About / Careers / Terms / Privacy) — same boutique theme */
.info-page {
  margin: 0;
  min-height: 100vh;
  padding: clamp(20px, 4vh, 48px) 24px 40px;
  background:
    radial-gradient(1100px 600px at 80% -10%, rgba(201, 141, 149, 0.2), transparent 65%),
    linear-gradient(180deg, #faf6f0 0%, #f4ebe1 100%);
  color: #2f2a28;
}

.info-shell {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.info-shell .landing-logo { text-decoration: none; }

.info-main h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin: 0 0 18px;
  color: #2b2320;
}

.info-main h2 {
  font-size: 1.05rem;
  margin: 26px 0 8px;
  color: #9d5c66;
}

.info-main p {
  margin: 0 0 12px;
  max-width: 70ch;
  line-height: 1.75;
  color: #5f544e;
  font-size: 0.98rem;
}

.info-lede { font-size: 1.05rem; }

.info-lede em { color: #a4666f; font-style: italic; }

.info-note {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(157, 92, 102, 0.3);
  background: rgba(201, 141, 149, 0.14);
  font-size: 0.88rem;
}

.info-link { color: #9d5c66; }

.info-stats { margin-top: 30px; justify-content: flex-start; }

.info-foot p {
  margin: 0;
  font-size: 0.85rem;
  color: #8a7c74;
}

/* Entry animations — gentle staggered fade-up */
.anim {
  opacity: 0;
  transform: translateY(14px);
  animation: fade-up 0.7s cubic-bezier(0.22, 0.8, 0.36, 1) forwards;
}
.anim-1 { animation-delay: 0.05s; }
.anim-2 { animation-delay: 0.15s; }
.anim-3 { animation-delay: 0.25s; }
.anim-4 { animation-delay: 0.35s; }
.anim-5 { animation-delay: 0.45s; }
.anim-6 { animation-delay: 0.55s; }

@keyframes fade-up {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(220, 38, 38, 0); }
  100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .anim, .way-chip { opacity: 1; transform: none; animation: none; }
  .landing-logo-mark, .live-dot { animation: none; }
  .strip-track { animation: none; }
  .strip-viewport { overflow-x: auto; }
}

@media (max-width: 900px) {
  .landing-page { padding-top: 18px; }
  .landing-shell {
    /* minmax(0,1fr), not 1fr: the nav's unwrapped min-content width was
       silently forcing the whole grid to ~585px on phones (horizontal
       scroll since round 9 added the About/Contact/Careers links). */
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "nav" "hero" "auth" "stats" "brands" "strip" "trust" "foot";
    gap: 22px;
  }
  .brand-chip { padding: 9px 14px; font-size: 0.85rem; }
  .landing-stats { grid-template-columns: 1fr 1fr; row-gap: 14px; padding: 16px 6px; }
  .hero-stat:nth-child(odd) { border-inline-start: none; }
  .landing-trust { grid-template-columns: 1fr 1fr; row-gap: 14px; }
  .trust-item { justify-content: flex-start; }
  /* Let the top-bar links wrap under the logo instead of stretching the page */
  .landing-nav { flex-wrap: wrap; gap: 8px; }
  .landing-nav-links { flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
  .nav-tab { padding: 7px 10px; font-size: 0.85rem; }
  .lang-toggle { padding: 7px 12px; }
  .nav-cluster { gap: 6px; }
  .hero-stat { width: 140px; height: 140px; }
  .landing-nav { margin-bottom: 4px; }
  .landing-headline { margin-bottom: 16px; }
  .landing-mission { font-size: 0.98rem; margin-bottom: 16px; }
  .landing-auth { position: static; }
  .strip-card { width: 120px; height: 152px; }
  .landing-foot { padding-bottom: 40px; } /* keep clear of the skyline */
}

/* ── Shared portal navigation (Task 3) ─────────────────── */
/* One flat markup, three responsive modes:
     ≥1100px   dark LEFT SIDEBAR (brand top, tabs, actions pinned bottom)
     761–1099  dark top bar (brand + actions, tab row below)
     ≤760px    slim brand bar + fixed BOTTOM tab bar */

#portal-nav { display: contents; }

.pnav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(180deg, #082421, #0a2d29);
  color: #f5f1e6;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "brand side"
    "tabs  tabs"
    "subs  subs";
  align-items: center;
  column-gap: 14px;
  padding: 12px 28px 0;
}

.pnav-brand {
  grid-area: brand;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.pnav-logo { width: 34px; height: 34px; }

.pnav-word {
  font-weight: 800;
  letter-spacing: 0.26em;
  font-size: 0.9rem;
  color: #f5f1e6;
}

.pnav-side {
  grid-area: side;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.pnav-welcome {
  font-size: 0.85rem;
  color: #a9bbb5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}

.pnav-action {
  padding: 7px 14px;
  border-radius: 10px;
  border: 1px solid rgba(245, 241, 230, 0.22);
  background: rgba(245, 241, 230, 0.06);
  color: #e9efec;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.pnav-action:hover { background: rgba(127, 214, 201, 0.16); color: #7fd6c9; }

.pnav-tabs {
  grid-area: tabs;
  display: flex;
  gap: 4px;
  padding-top: 2px;
}

.pnav-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 12px;
  color: #cfdad5;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.pnav-tab:hover { color: #7fd6c9; }

.pnav-tab.is-active {
  color: #fffdf7;
  border-bottom-color: #7fd6c9;
}

.pnav-icon { display: inline-flex; width: 17px; height: 17px; }

.pnav-icon svg { width: 17px; height: 17px; }

.pnav-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
  animation: live-pulse 1.8s ease-out infinite;
  margin: 3px;
}

/* Section sub-tabs (Billing: Invoices|Payments; Shop: Store|Order Anything).
   Two copies exist in the DOM: -inline (nested after the parent tab, for
   the sidebar) and -bar (the pill row, for top-tab + mobile). Exactly one
   is visible per breakpoint. */
.pnav-subtabs {
  grid-area: subs;
  display: flex;
  gap: 8px;
  margin: 0 -28px;
  padding: 10px 28px;
  background: rgba(255, 254, 248, 0.94);
  border-bottom: 1px solid rgba(221, 207, 186, 0.6);
}

.pnav-subtabs-inline { display: none; }

.pnav-subtab {
  padding: 7px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.pnav-subtab.is-active {
  background: var(--accent-strong);
  border-color: transparent;
  color: #fff;
}

/* Desktop ≥1100px: left sidebar — uses the dead margins on wide screens */
@media (min-width: 1100px) {
  body .dash-shell { flex-direction: row; align-items: stretch; }
  body.has-pnav .dash-main { flex: 1; min-width: 0; }

  .pnav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 234px;
    flex: none;
    height: 100vh;
    position: sticky;
    top: 0;
    padding: 22px 14px 16px;
    box-shadow: 8px 0 30px rgba(0, 0, 0, 0.2);
  }

  .pnav-brand { order: 0; padding: 0 10px 24px; }

  .pnav-tabs {
    order: 1;
    flex-direction: column;
    gap: 4px;
    padding: 0;
  }

  .pnav-tab {
    border-bottom: none;
    border-radius: 10px;
    padding: 11px 12px;
  }

  .pnav-tab.is-active {
    background: rgba(127, 214, 201, 0.14);
    color: #fffdf7;
  }

  .pnav-subtabs-bar { display: none; }

  .pnav-subtabs-inline {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 2px 0 0;
    padding: 0 0 0 32px;
    background: none;
    border-bottom: none;
  }

  .pnav-subtab {
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    color: #a9bbb5;
  }

  .pnav-subtab.is-active {
    background: rgba(127, 214, 201, 0.18);
    color: #7fd6c9;
  }

  .pnav-side {
    order: 3;
    margin-top: auto;
    flex-direction: column;
    align-items: stretch;
    justify-self: stretch;
    gap: 8px;
    padding-top: 16px;
  }

  .pnav-welcome {
    max-width: none;
    white-space: normal;
    font-size: 0.8rem;
    line-height: 1.4;
    padding: 0 4px 6px;
  }

  .pnav-action { text-align: center; }
}

/* Mobile: app-style bottom bar replaces the tab row */
.pnav-bottom { display: none; }

@media (max-width: 760px) {
  .pnav-tabs { display: none; }
  .pnav {
    grid-template-areas:
      "brand side"
      "subs  subs";
    padding: 10px 14px 10px;
  }
  .pnav-subtabs { margin: 8px -14px -10px; padding: 10px 14px; }
  .pnav-welcome { display: none; }

  .pnav-bottom {
    display: flex; /* flex (not a fixed grid) so a removed tab redistributes */
    position: fixed;
    inset: auto 0 0 0;
    z-index: 60;
    background: linear-gradient(180deg, #0a2d29, #082421);
    border-top: 1px solid rgba(127, 214, 201, 0.25);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  }

  .pnav-bottom-tab {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 2px;
    color: #cfdad5;
    font-size: 0.64rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
  }

  .pnav-bottom-tab.is-active { color: #7fd6c9; background: rgba(127, 214, 201, 0.12); }

  .pnav-bottom-tab .pnav-icon,
  .pnav-bottom-tab .pnav-icon svg { width: 20px; height: 20px; }

  body.has-pnav .dash-main { padding-bottom: 84px; } /* clear the bottom bar */
}

/* ── Portal Home ────────────────────────────────────────── */

.home-greeting { margin-bottom: 18px; }

.home-greeting h1 {
  margin: 0 0 2px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
}

.home-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 22px;
  margin-bottom: 18px;
}

.home-balance-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 600;
}

.home-balance-amount {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
}

.home-balance-btn { width: auto; padding: 12px 26px; text-decoration: none; text-align: center; }

.journey-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  padding: 16px 20px 20px;
}

.journey-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 10px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fffef9;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.12s, border-color 0.12s;
}

.journey-stage:hover { transform: translateY(-2px); border-color: var(--accent); }

.journey-stage.is-done { opacity: 0.75; }

.journey-stage.is-empty { opacity: 0.42; }

.journey-stage.is-empty .journey-count { color: var(--muted); }

.journey-icon { font-size: 1.3rem; }

.journey-count {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  color: var(--accent-strong);
  line-height: 1;
}

.journey-label { font-size: 0.78rem; color: var(--muted); font-weight: 600; }

.journey-fresh {
  position: absolute;
  top: -8px;
  right: -6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 0.66rem;
  font-weight: 800;
}

/* Two-column Home: main flow left, team news right (stacks on smaller) */
.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: start;
}

@media (max-width: 1150px) {
  .home-grid { grid-template-columns: 1fr; }
}

.activity-list {
  list-style: none;
  margin: 0;
  padding: 6px 22px 16px;
}

.activity-list li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(221, 207, 186, 0.4);
  font-size: 0.9rem;
}

.activity-list li:last-child { border-bottom: none; }

.activity-when {
  display: inline-block;
  min-width: 62px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

/* Grouped, clickable order-event rows */
.activity-order {
  display: flex;
  align-items: baseline;
  gap: 4px;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.12s;
}

.activity-order:hover { background: #f7f4ea; }

.activity-order .activity-text { flex: 1; }

.activity-more {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0 6px;
}

/* News box */
.news-list { padding: 4px 20px 16px; }

.news-item {
  padding: 12px 0;
  border-bottom: 1px solid rgba(221, 207, 186, 0.4);
}

.news-item:last-child { border-bottom: none; }

.news-date {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.news-title {
  display: block;
  margin: 2px 0 4px;
  font-size: 0.95rem;
}

.news-body {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--muted);
  white-space: pre-wrap;
}

.news-item video {
  width: 100%;
  border-radius: 10px;
  margin-top: 8px;
  background: #000;
}

/* Order peek modal — item photo grid */
.peek-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  margin-top: 12px;
  max-height: 55vh;
  overflow-y: auto;
}

.peek-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-decoration: none;
  color: var(--text);
}

.peek-item img,
.peek-nophoto {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #f4f2ea;
}

.peek-nophoto {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.72rem;
}

.peek-label {
  font-size: 0.72rem;
  line-height: 1.3;
  color: var(--muted);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Footer link on the stage peek — the deep path to the filtered
   My Orders view the journey tiles used to navigate to directly. */
.peek-all-link {
  display: block;
  margin-top: 14px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent, #0f5148);
  text-decoration: none;
  padding: 9px 0;
  border-top: 1px solid var(--border);
}
.peek-all-link:hover { text-decoration: underline; }

.home-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.home-action {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.12s, border-color 0.12s;
}

.home-action:hover { transform: translateY(-2px); border-color: var(--accent); }

/* Live quick-action dot states (Home) */
.pnav-live-dot.dot-idle {
  animation: none;
  box-shadow: none;
  background: #b6c2bd;
}

.pnav-live-dot.dot-scheduled {
  animation: none;
  box-shadow: none;
  background: var(--accent, #0f766e);
}

/* ── Live: collapsible session groups (My reservations) ─── */

.res-session-summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.res-session-summary::-webkit-details-marker { display: none; }

.res-chevron {
  display: inline-block;
  color: var(--muted);
  transition: transform 0.15s;
}

details[open] > .res-session-summary .res-chevron { transform: rotate(180deg); }

.res-session-summary:hover .res-chevron { color: var(--accent); }

/* ── My Profile ─────────────────────────────────────────── */

.profile-head {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 20px 24px;
  margin-bottom: 16px;
}

.profile-avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-strong);
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  flex: none;
}

.profile-id h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
}

.profile-id p { margin: 2px 0 0; }

.profile-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}

.profile-badge {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
}

.profile-badge.tier-silver { background: #eef0f2; border-color: #c9ced4; color: #5b6572; }
.profile-badge.tier-gold { background: #fbf3dc; border-color: #e3c96e; color: #8a6d1a; }
.profile-badge.tier-platinum { background: #e9ecf5; border-color: #aab4cc; color: #45507a; }
.profile-badge.badge-rate { background: var(--accent-soft); border-color: rgba(15, 118, 110, 0.35); color: var(--accent-strong); }

.profile-tabs { display: flex; gap: 8px; margin-bottom: 14px; }

.profile-tabs .pnav-subtab { cursor: pointer; font: inherit; font-size: 0.85rem; font-weight: 600; background: var(--panel); }

.profile-tabs .pnav-subtab.is-active { background: var(--accent-strong); color: #fff; border-color: transparent; }

.profile-pane[hidden] { display: none !important; }

.profile-form { padding: 4px 22px 20px; }

.pf-field { display: block; margin-bottom: 12px; }

.pf-field span {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.pf-field .req { color: #b91c1c; font-weight: 700; }

.pf-field input,
.pf-field select,
.pf-field textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  font-size: 0.95rem;
  background: #fff;
  resize: vertical;
}

.pf-field input:disabled { background: #f4f2ea; color: var(--muted); }

.pf-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pf-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }

.pf-actions { display: flex; gap: 12px; align-items: center; margin-top: 6px; }

.pf-actions .primary-button { width: auto; padding: 12px 26px; }

.pf-actions .auth-message { margin: 0; }

@media (max-width: 700px) {
  .pf-grid-2, .pf-grid-3 { grid-template-columns: 1fr; }
  .profile-badges { margin-left: 0; }
}

/* ── Chat bubble (shared, rendered by portal-nav.js) ────── */

.chat-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 70;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: none;
  display: grid;
  place-items: center;
  background: var(--accent-strong);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s;
}

.chat-fab:hover { transform: translateY(-2px); }

.chat-fab svg { width: 24px; height: 24px; }

.chat-panel[hidden] { display: none !important; }

.chat-panel {
  position: fixed;
  right: 20px;
  bottom: 84px;
  z-index: 70;
  width: min(340px, calc(100vw - 40px));
  background: #fffdf7;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  padding: 16px;
}

.chat-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.chat-panel-head strong { font-size: 0.95rem; }

.chat-panel-sub {
  margin: 4px 0 10px;
  font-size: 0.78rem;
  color: var(--muted);
}

.chat-panel textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 0.9rem;
  resize: vertical;
  margin-bottom: 8px;
  background: #fffef9;
}

@media (max-width: 760px) {
  /* keep the bubble clear of the bottom tab bar */
  .chat-fab { bottom: 86px; }
  .chat-panel { bottom: 150px; }
  .pnav-bottom { grid-template-columns: repeat(5, 1fr); }
}

/* ── Dashboard ─────────────────────────────────────────── */

.dash-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  border-bottom: 1px solid rgba(221, 207, 186, 0.6);
  background: rgba(255, 254, 248, 0.88);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.dash-brand strong {
  display: block;
  margin-top: 2px;
  font-size: 1.1rem;
  font-family: Georgia, "Times New Roman", serif;
}

.dash-main {
  flex: 1;
  padding: 28px 32px;
  max-width: 1500px;
  width: 100%;
  margin: 0 auto;
}

.dash-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.stat-chip {
  border: 1px solid rgba(221, 207, 186, 0.85);
  border-radius: 18px;
  padding: 16px 22px;
  background: rgba(255, 254, 248, 0.88);
  box-shadow: var(--shadow);
  min-width: 140px;
}

.stat-chip span {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 600;
}

.stat-chip strong {
  display: block;
  margin-top: 6px;
  font-size: 1.6rem;
  font-family: Georgia, "Times New Roman", serif;
}

.address-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 14px;
  background: #fef3c7;
  border: 1px solid #f59e0b;
  margin-bottom: 18px;
}
.address-banner[hidden] { display: none; }
.address-banner-icon { font-size: 1.5rem; }
.address-banner-text { flex: 1; }
.address-banner-text strong { display: block; font-size: .95rem; color: #92400e; }
.address-banner-text p { margin: 2px 0 0; font-size: .85rem; color: #a16207; }

.address-card { margin-bottom: 18px; }

.dash-card {
  border: 1px solid rgba(221, 207, 186, 0.85);
  border-radius: 22px;
  background: rgba(255, 254, 248, 0.88);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.dash-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(221, 207, 186, 0.6);
}

.dash-card-head h2 {
  margin: 0;
  font-size: 1.3rem;
  font-family: Georgia, "Times New Roman", serif;
}

.muted-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(221, 207, 186, 0.5);
  text-align: left;
  vertical-align: middle;
}

th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 700;
  background: rgba(245, 239, 225, 0.4);
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background: rgba(213, 239, 232, 0.2);
}

.empty-cell {
  padding: 40px 16px;
  text-align: center;
  color: var(--muted);
}

.item-thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
  display: block;
}

.no-photo {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px dashed var(--border);
  background: rgba(245, 239, 225, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.2;
}

.status-badge {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(213, 239, 232, 0.5);
  color: var(--accent-strong);
  white-space: nowrap;
}

.egp-amount {
  font-weight: 700;
  font-family: Georgia, "Times New Roman", serif;
  white-space: nowrap;
}

/* ── Lightbox ─────────────────────────────────────────── */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 25, 0.85);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Shop page ────────────────────────────────────────── */

.shop-header {
  margin-bottom: 24px;
}

.shop-title {
  margin: 0 0 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.shop-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.shop-card {
  background: rgba(255, 254, 248, 0.92);
  border: 1px solid rgba(221, 207, 186, 0.85);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s, transform 0.15s;
}

.shop-card:hover {
  box-shadow: 0 10px 36px rgba(42, 50, 67, 0.14);
  transform: translateY(-2px);
}

.shop-card-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: rgba(245, 239, 225, 0.6);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-card-no-photo {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}

.shop-card-body {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.shop-card-brand {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--muted);
}

.shop-card-desc {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shop-card-price {
  display: block;
  margin-top: 6px;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--accent-strong);
}


/* ── Portal invoices ──────────────────────────────────── */

.portal-invoice-row {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}

.portal-invoice-row:last-child {
  border-bottom: none;
}

.portal-invoice-row:hover {
  background: rgba(15, 118, 110, 0.04);
}

.portal-invoice-row-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.portal-invoice-row-main strong {
  font-size: 1rem;
}

.portal-invoice-row-main .muted-note {
  display: block;
  margin-top: 2px;
}

.portal-invoice-row-totals {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.88rem;
}

.portal-invoice-row-totals > div {
  display: flex;
  gap: 6px;
  align-items: baseline;
}

.portal-invoice-row-totals span {
  color: var(--muted);
}

.invoice-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.invoice-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.invoice-detail-card {
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--panel);
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.invoice-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}

.invoice-detail-head strong {
  display: block;
  font-size: 1.1rem;
  margin-top: 2px;
}

.invoice-detail-body {
  padding: 18px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.invoice-detail-body h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.invoice-detail-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px 16px;
  padding: 12px 14px;
  background: rgba(15, 118, 110, 0.04);
  border-radius: 10px;
  font-size: 0.88rem;
}

.invoice-detail-meta span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.invoice-detail-totals {
  padding: 14px 16px;
  background: rgba(15, 118, 110, 0.04);
  border-radius: 10px;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.invoice-detail-totals > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.invoice-detail-totals span {
  color: var(--muted);
}

.invoice-detail-total-line {
  font-weight: 600;
  border-top: 1px solid var(--border);
  padding-top: 8px;
  margin-top: 4px;
}

.invoice-detail-balance-line {
  font-weight: 700;
}

/* ─────────────────────────────────────────────────────────────
   MOBILE — phones (≤700px)
   ───────────────────────────────────────────────────────────── */
@media (max-width: 700px) {
  /* Header: brand + nav stack vertically, nav buttons wrap */
  .dash-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 14px;
  }
  .dash-header > div:last-child {
    display: flex !important;
    flex-wrap: wrap;
    gap: 6px !important;
    width: 100%;
    justify-content: flex-start;
  }
  .dash-header .ghost-button,
  .dash-header button {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    font-size: 0.8rem;
    padding: 8px 10px;
    text-align: center;
  }
  .dash-brand strong { font-size: 0.95rem; }
  .dash-brand .eyebrow { font-size: 0.65rem; }

  .dash-main {
    padding: 14px;
  }

  /* Auth screens (sign in / register) */
  .auth-card {
    padding: 22px 18px;
  }

  /* Stat chips wrap to 2-per-row */
  .dash-stats {
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
  }
  .stat-chip {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    padding: 12px 14px;
    border-radius: 14px;
  }
  .stat-chip strong { font-size: 1rem; word-break: break-word; }
  .stat-chip span { font-size: 0.7rem; }

  /* Cards & headings */
  .dash-card-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .dash-card-head h2 { font-size: 1.1rem; }

  /* Tables: keep horizontal scroll, smaller font */
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table { font-size: 0.8rem; }
  th, td { padding: 8px 6px; }
  .item-thumb, .no-photo { max-width: 50px; }
  /* …but NOT the gallery cards' hero photo — same class, different job.
     Without this the phone gallery squashed photos into 50px slivers. */
  .gallery-card .item-thumb { max-width: 100%; }

  /* Invoice list rows */
  .portal-invoice-row {
    padding: 12px;
  }
  .portal-invoice-row-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .portal-invoice-row-totals {
    flex-direction: column;
    gap: 4px;
    width: 100%;
  }
  .portal-invoice-row-totals > div {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }

  /* Invoice detail modal */
  .invoice-detail-card {
    width: 96vw !important;
    max-width: 96vw !important;
    max-height: 92vh;
    overflow-y: auto;
    padding: 16px;
  }
  .invoice-detail-totals > div {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
  }
  .invoice-detail-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  /* Address banner + form */
  .address-banner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .address-banner button {
    width: 100%;
    margin-top: 6px;
  }

  /* Shop grid → bigger thumbs on phone */
  .shop-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
  }

  /* Lightbox image */
  .lightbox img { max-width: 95vw; max-height: 90vh; }

  /* Touch targets */
  .ghost-button,
  button[type="submit"] {
    min-height: 38px;
  }
}

/* Very narrow (<420px) tightening */
@media (max-width: 420px) {
  .dash-main { padding: 10px; }
  .stat-chip { flex: 1 1 100%; }
  th, td { padding: 6px 4px; font-size: 0.75rem; }
  .dash-header > div:last-child .ghost-button {
    flex: 1 1 100%;
  }
}

/* ── Order Anything (order-on-behalf) ─────────────────────────────── */
.obh-form-card { padding: 20px; max-width: 720px; }

.obh-heading {
  margin: 0 0 12px;
  font-family: Georgia, serif;
  font-size: 1.15rem;
}

.obh-requests-wrap { margin-top: 26px; max-width: 720px; }

.obh-label {
  display: block;
  margin: 10px 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.obh-label input,
.obh-label textarea {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 0.9rem;
}

.obh-link-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.obh-link-row .obh-link-url { flex: 1.4; }
.obh-link-row .obh-link-note { flex: 1; }

.obh-link-row .obh-remove {
  padding: 8px 12px;
  margin-bottom: 10px;
  line-height: 1;
}

.obh-add-link {
  font-size: 0.8rem;
  padding: 6px 12px;
  margin-bottom: 4px;
}

.obh-quote {
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(15, 118, 110, 0.06);
}

.obh-quote-total { font-size: 1rem; }

.obh-req-card { padding: 14px 16px; margin-bottom: 12px; }

.obh-req-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.obh-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

.obh-pill-pending { background: #fef3c7; color: #92400e; }
.obh-pill-approved { background: #d5efe8; color: #0b4f4c; }
.obh-pill-rejected { background: #fee2e2; color: #991b1b; }
.obh-pill-ordered { background: #dbeafe; color: #1e40af; }
.obh-pill-cancelled { background: #e5e7eb; color: #4b5563; }

.obh-req-cancelled { opacity: 0.72; }
.obh-ref { font-family: ui-monospace, Menlo, monospace; font-size: 0.75rem; }
.obh-req-actions { display: inline-flex; gap: 8px; align-items: center; }
.obh-cancel-btn { font-size: 0.82rem; }

.obh-req-links { font-size: 0.88rem; line-height: 1.6; }

.obh-req-link { color: var(--accent-strong, #0b4f4c); font-weight: 600; }

.obh-req-text { margin: 6px 0 0; font-size: 0.88rem; }

.obh-req-reason {
  margin: 8px 0 0;
  font-size: 0.84rem;
  color: #991b1b;
}

.obh-req-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.obh-req-price { font-size: 0.88rem; color: var(--muted); }

.obh-deposit-btn {
  padding: 8px 18px;
  font-size: 0.85rem;
  text-decoration: none;
}

.obh-deposit-btn[disabled] { opacity: 0.45; cursor: not-allowed; }

@media (max-width: 640px) {
  .obh-link-row { flex-wrap: wrap; }
  .obh-link-row .obh-link-url { flex: 1 1 100%; }
  /* Note box + its × share the second line — the old 100%-width note
     kicked the remove button onto its own third line. */
  .obh-link-row .obh-link-note { flex: 1 1 auto; min-width: 0; }
}
