/* ==========================================================================
   Alami Hub - Mobile-First Stylesheet (Progressive Enhancement)
   ========================================================================== */

/* 1. Base / Mobile default (min-width: 0) */
:root {
  --bg-page: #f0f7f9;
  --bg-card: #ffffff;
  --text-main: #0c2730;
  --text-muted: #56737a;
  --text-subtle: #7a989f;
  --primary: #00879d;
  --primary-hover: #007487;
  --primary-light: #e6f6f9;
  --border: #d4e7eb;
  --border-focus: #00879d;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --font-base: SPLArabic, system-ui, -apple-system, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-base);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  direction: rtl;
  text-align: right;
  line-height: 1.6;
}

a {
  color: var(--primary);
  text-decoration: none;
}

button {
  font-family: inherit;
}

.site-shell {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.skip-link {
  position: absolute;
  top: -999px;
  right: 1rem;
  background: var(--primary);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 1000;
}
.skip-link:focus {
  top: 1rem;
}

/* Site Header (Mobile Default) */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  height: 70px;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  position: sticky;
  top: 0;
  z-index: 90;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.brand img {
  width: 58px;
  height: auto;
  display: block;
}

.brand-divider {
  width: 1px;
  height: 24px;
  background: var(--border);
}

.brand-alami {
  display: flex;
  flex-direction: column;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-main);
}

.brand-alami small {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-inline-start: auto;
}

.header-caption {
  display: none; /* Hidden on mobile phones, shown on larger screens */
  font-size: 0.8rem;
  color: var(--text-muted);
}

.alami-about-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid #b9dfe6;
  border-radius: 999px;
  background: #effafd;
  color: #087e92;
  cursor: pointer;
  font: 700 0.8rem var(--font-base);
  white-space: nowrap;
  min-height: 38px;
}
.alami-about-button:hover {
  background: #dff5fa;
  border-color: #087e92;
}

.wishlist-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  font: 600 0.8rem var(--font-base);
  cursor: pointer;
  min-height: 38px;
}

.wish-count {
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
}

/* Experience Container (Mobile Single Column) */
.experience {
  display: block;
  flex: 1;
  width: 100%;
}

.world-panel {
  display: none; /* Hidden on mobile; mobile gets dedicated scene card */
}

.journey-panel {
  background: linear-gradient(175deg, #ffffff 35%, #f0f8fa 100%);
  padding: 1.25rem 1rem 2.5rem;
  min-height: calc(100svh - 70px);
}

.journey-inner {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

/* Stepper (Mobile Touch Friendly) */
.stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #e3eef1;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--text-subtle);
}

.stepper span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
}

.stepper span b {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e2edef;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.stepper span.active {
  color: var(--primary);
}
.stepper span.active b {
  background: var(--primary);
  color: #ffffff;
}

.stepper span.complete {
  color: #0b7285;
}
.stepper span.complete b {
  background: #d4f2f7;
  color: #0b7285;
}

.stepper i {
  flex: 1;
  height: 1px;
  background: #e2edef;
}

/* Page Heading */
.page-heading {
  margin-bottom: 1.25rem;
}

.page-heading .small-kicker {
  display: inline-block;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.page-heading h1 {
  margin: 0;
  font-size: 1.95rem;
  font-weight: 900;
  line-height: 1.25;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.page-heading h1 em {
  font-style: normal;
  color: var(--primary);
}

.page-heading p {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Inline Quick Note for Alami */
.alami-quick-note {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid #c2e6ed;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #f2fbfc 0%, #e2f4f7 100%);
  color: #114550;
}

.alami-quick-note-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.6rem;
  background: var(--primary);
  color: #fff;
}

.alami-quick-note-copy {
  flex: 1;
  min-width: 0;
}
.alami-quick-note-copy strong {
  display: block;
  font-size: 0.9rem;
  color: #0b5160;
}
.alami-quick-note-copy span {
  display: block;
  font-size: 0.78rem;
  color: #4b6d74;
  margin-top: 0.1rem;
  line-height: 1.45;
}

.alami-quick-note button {
  flex: 0 0 auto;
  border: 0;
  border-bottom: 1.5px solid currentColor;
  padding: 0 0 0.1rem;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  font: 700 0.8rem var(--font-base);
  white-space: nowrap;
}

/* Forms & Fields (Touch-First 48px+ targets) */
.registration-form, .wish-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

.input-wrap {
  min-height: 52px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: #ffffff;
  display: flex;
  align-items: center;
  padding: 0 0.85rem;
  gap: 0.65rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input-wrap:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(0, 135, 157, 0.12);
}

.input-wrap svg {
  color: var(--text-subtle);
  flex-shrink: 0;
}

.input-wrap input,
.input-wrap textarea,
.field textarea {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 1rem; /* 16px minimum prevents iOS zoom */
  color: var(--text-main);
}

.input-wrap input::placeholder,
.field textarea::placeholder {
  color: #9cb1b6;
}

.field textarea {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: #ffffff;
  padding: 0.85rem;
  resize: vertical;
  min-height: 96px;
  line-height: 1.5;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(0, 135, 157, 0.12);
}

.phone-field {
  direction: ltr;
}

.phone-prefix {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.95rem;
  padding-right: 0.4rem;
  border-right: 1px solid #d9e6e8;
}

.character-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: left;
  margin-top: 0.2rem;
}

.field-help {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Checkboxes & Consents */
.consents {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.check-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.86rem;
  color: var(--text-main);
  line-height: 1.55;
  cursor: pointer;
}

.custom-checkbox-btn {
  appearance: none;
  width: 1.3rem;
  height: 1.3rem;
  min-width: 1.3rem;
  border-radius: 5px;
  border: 1.5px solid #94b5bd;
  background: #ffffff;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  margin-top: 0.1rem;
  padding: 0;
  transition: all 0.15s ease;
}

.custom-checkbox-btn[aria-checked="true"] {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.custom-checkbox-btn svg {
  display: none;
}
.custom-checkbox-btn[aria-checked="true"] svg {
  display: block;
}

.text-link {
  border: 0;
  background: transparent;
  color: var(--primary);
  padding: 0;
  font: 700 inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* Buttons */
.primary-button {
  width: 100%;
  min-height: 52px;
  background: var(--primary);
  color: #ffffff;
  border: 0;
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  box-shadow: 0 4px 12px rgba(0, 135, 157, 0.22);
}
.primary-button:hover {
  background: var(--primary-hover);
}
.primary-button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.secondary-button {
  width: 100%;
  min-height: 48px;
  background: #ffffff;
  color: var(--primary);
  border: 1.5px solid #badce2;
  border-radius: var(--radius-md);
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
}

.privacy-note {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.form-error {
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin: 0;
}

/* Category Grid (Mobile Touch Cards) */
.category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.category-card {
  position: relative;
  height: 195px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

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

.category-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 28, 34, 0.95) 10%, rgba(7, 28, 34, 0.25) 70%, transparent 100%);
}

.category-info {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  left: 0.75rem;
  color: #ffffff;
}
.category-info strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
}
.category-info small {
  display: block;
  font-size: 0.72rem;
  color: #b8dbe2;
  margin-top: 0.15rem;
}

.category-arrow {
  position: absolute;
  bottom: 0.75rem;
  left: 0.55rem;
  color: #ffffff;
}

.category-card.selected {
  border-color: #38bdf8;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Offer Card (Mobile Touch Banner) */
.offer-card {
  background: linear-gradient(135deg, #e4f7fa 0%, #f4fbfa 100%);
  border: 1px solid #bde6ee;
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  margin: 1.25rem 0;
  position: relative;
}

.offer-card.compact {
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.offer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.offer-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #067284;
  font-size: 0.75rem;
  font-weight: 800;
  background: #d3f1f7;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.offer-percent {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}
.offer-percent span {
  font-size: 1rem;
}

.offer-copy h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
}
.offer-copy p {
  margin: 0.2rem 0 0.75rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.coupon {
  width: 100%;
  min-height: 48px;
  border: 1.5px dashed #00879d;
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 0.5rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  color: var(--text-main);
  transition: background 0.15s ease;
}
.coupon:hover {
  background: #f0fafd;
}

.coupon strong {
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: var(--primary);
}

.coupon span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.offer-terms {
  display: block;
  font-size: 0.7rem;
  color: var(--text-subtle);
  margin-top: 0.5rem;
}

.offer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
}

/* Saved Wishes List */
.saved-wishes {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.saved-wish {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.saved-image {
  height: 180px;
  position: relative;
  background: #07252d;
}
.saved-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-label {
  position: absolute;
  bottom: 0.55rem;
  right: 0.55rem;
  background: rgba(7, 37, 45, 0.85);
  color: #ffffff;
  font-size: 0.72rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.saved-body {
  padding: 1rem;
}

.store-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 700;
  word-break: break-all;
}

.wish-reason {
  margin: 0.65rem 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-main);
}

.wish-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #f0f8fa;
  color: #356772;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  font-size: 0.78rem;
}

.success-banner {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.success-banner strong {
  display: block;
  font-size: 0.95rem;
}
.success-banner small {
  display: block;
  font-size: 0.8rem;
  color: #047857;
}

/* Alami Card in Step 3 */
.alami-card {
  background: linear-gradient(135deg, #09333f 0%, #115d6a 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  margin-top: 1.5rem;
  position: relative;
  overflow: hidden;
}

.alami-card .small-kicker {
  color: #8be1ed;
  font-size: 0.8rem;
  font-weight: 700;
}
.alami-card h2 {
  margin: 0.35rem 0;
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1.3;
}
.alami-card p {
  color: #c9eaf0;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0.35rem 0 1.15rem;
}

.alami-globe {
  position: absolute;
  top: 10px;
  left: -20px;
  width: 120px;
  height: 120px;
  color: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.how-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0.85rem auto 0;
  background: transparent;
  border: 0;
  color: #d6f2f7;
  font-size: 0.85rem;
  cursor: pointer;
}

/* Journey Footer */
.journey-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.journey-footer button {
  border: 0;
  background: transparent;
  color: var(--primary);
  font: 700 inherit;
  cursor: pointer;
  padding: 0;
  margin-inline-start: auto;
}

/* Dialog / Modal (Accessible & Touch Responsive) */
.dialog-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 24, 30, 0.78);
  backdrop-filter: blur(5px);
  z-index: 999;
  display: flex;
  align-items: flex-end; /* Mobile bottom sheet style or centered */
  justify-content: center;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.dialog-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.campaign-dialog-container {
  background: #0f1f26;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.25rem 1.25rem 0 0;
  width: 100%;
  max-width: 540px;
  color: #f8fafc;
  padding: 1.5rem 1.25rem 2rem;
  position: relative;
  max-height: 90svh;
  overflow-y: auto;
  transform: translateY(15px);
  transition: transform 0.2s ease;
}

.dialog-backdrop.open .campaign-dialog-container {
  transform: translateY(0);
}

.dialog-close-btn {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 0;
  color: #cbd5e1;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.campaign-dialog-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
  color: #ffffff;
}

.campaign-dialog-desc {
  font-size: 0.9rem;
  color: #94b7be;
  margin: 0 0 1.25rem;
  line-height: 1.6;
}

.how-steps {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.how-steps p {
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #d7e8ec;
}

.how-steps b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #144955;
  color: #4ed3e8;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

.alami-modal-note {
  margin: 1rem 0 0;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  background: rgba(0, 135, 157, 0.15);
  border: 1px solid rgba(0, 135, 157, 0.35);
  color: #caeff5;
  font-size: 0.85rem;
  line-height: 1.65;
}

/* ==========================================================================
   2. Progressive Enhancement: Tablet (min-width: 768px)
   ========================================================================== */
@media (min-width: 768px) {
  .site-header {
    height: 80px;
    padding: 0 2rem;
  }
  .brand img {
    width: 68px;
  }
  .brand-alami {
    font-size: 1.3rem;
  }
  .brand-alami small {
    font-size: 0.75rem;
  }
  .header-caption {
    display: block;
  }
  .alami-about-button {
    font-size: 0.86rem;
    padding: 0.5rem 0.85rem;
  }
  .journey-panel {
    padding: 2rem 2rem 3rem;
  }
  .page-heading h1 {
    font-size: 2.35rem;
  }
  .category-card {
    height: 220px;
  }
  .dialog-backdrop {
    align-items: center;
    padding: 1.5rem;
  }
  .campaign-dialog-container {
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  }
}

/* ==========================================================================
   3. Progressive Enhancement: Desktop / Large Displays (min-width: 1024px)
   ========================================================================== */
@media (min-width: 1024px) {
  .site-header {
    height: 86px;
    padding: 0 clamp(2rem, 5vw, 5.5rem);
  }
  .brand img {
    width: 76px;
  }
  .experience {
    display: grid;
    direction: ltr; /* Keeps sidebar on the left and form on the right in visual balance */
    grid-template-columns: minmax(0, 1.05fr) minmax(460px, 1fr);
    min-height: calc(100svh - 86px);
  }
  .world-panel {
    display: block;
    direction: rtl;
    background: #071d24;
    align-self: start;
    height: calc(100svh - 86px);
    min-height: 700px;
    position: sticky;
    top: 86px;
    overflow: hidden;
  }
  .world-images {
    position: absolute;
    inset: 0;
    display: flex;
  }
  .world-images img {
    width: 50%;
    height: 100%;
    object-fit: cover;
  }
  .world-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(7, 29, 36, 0.94) 0%, rgba(7, 29, 36, 0.72) 100%);
  }
  .world-copy {
    position: relative;
    z-index: 2;
    padding: 3.5rem 3rem;
    color: #ffffff;
    max-width: 500px;
  }
  .world-copy .eyebrow {
    color: #55d6eb;
    font-size: 0.9rem;
    font-weight: 700;
  }
  .world-copy h2 {
    font-size: 2.85rem;
    font-weight: 900;
    line-height: 1.25;
    margin: 0.75rem 0 1rem;
  }
  .world-copy h2 em {
    font-style: normal;
    color: #4ed3e8;
  }
  .world-copy p {
    font-size: 1.1rem;
    color: #c0dfe6;
    line-height: 1.7;
    margin: 0;
  }
  .world-footer {
    position: absolute;
    bottom: 2rem;
    right: 3rem;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: #8ebfc9;
    font-size: 0.88rem;
  }
  .journey-panel {
    direction: rtl;
    padding: 2.5rem 3.5rem 3.5rem;
  }
  .mobile-scene {
    display: none; /* Desktop uses the rich world-panel showcase */
  }
}

/* Desktop image panel: restore the campaign's original source composition. */
@media (min-width: 1001px) {
  .experience {
    direction: ltr;
    grid-template-columns: minmax(0, 1fr) minmax(440px, 1fr);
    min-height: calc(100svh - 86px);
    display: grid;
  }
  .world-panel {
    display: block;
    direction: rtl;
    background: #071d24;
    align-self: start;
    height: calc(100svh - 86px);
    min-height: 710px;
    position: sticky;
    top: 0;
    overflow: hidden;
  }
  .world-images {
    position: absolute;
    inset: 0;
    display: block;
  }
  .world-images img {
    object-fit: cover;
    width: 100%;
    height: 61%;
    position: absolute;
  }
  .world-keyboard {
    object-position: 44% 50%;
    bottom: 0;
  }
  .world-collector {
    object-position: 54% 34%;
    top: 0;
    -webkit-mask-image: linear-gradient(#000 65%, #0000);
    mask-image: linear-gradient(#000 65%, #0000);
  }
  .world-overlay {
    background: linear-gradient(90deg, #041b244d, #041a21bd), linear-gradient(#041a2133, #051a2226 48%);
    position: absolute;
    inset: 0;
  }
  .world-copy {
    color: #fff;
    max-width: 690px;
    padding: 65px clamp(35px, 6vw, 92px) clamp(35px, 6vw, 92px);
    position: relative;
  }
  .world-copy h2 {
    letter-spacing: -0.9px;
    margin-top: 28px;
    font-size: clamp(38px, 4.2vw, 65px);
    font-weight: 800;
    line-height: 1.3;
  }
  .world-copy em { color: #44d9eb; }
  .world-copy p {
    color: #d5e7e9;
    margin-top: 24px;
    font-size: 17px;
    line-height: 1.9;
  }
  .world-footer {
    color: #e0f4f6;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    display: flex;
    position: absolute;
    bottom: 35px;
    left: 30px;
    right: clamp(35px, 6vw, 92px);
  }
}
@media (min-width: 1450px) {
  .experience { grid-template-columns: 1.1fr 1fr; }
  .world-panel { min-height: 800px; }
}

/* Mobile banner is intentionally absent from desktop layouts. */
.mobile-banner-container { display: none; }

/* Mobile banner: supplied artwork at natural aspect ratio, without crop or overlay. */
@media (max-width: 1000px) {
  .mobile-banner-container {
    display: block !important;
    width: 100%;
    height: auto;
    margin: 0 0 1.25rem;
    padding: 0;
    overflow: visible;
    border-radius: 0;
    background: transparent;
  }
  .mobile-banner-container img.mobile-banner-image {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    border: 0;
    border-radius: 0;
  }
}

@media (min-width: 1001px) {
  .mobile-banner-container { display: none !important; }
}

/* Modal Navigation Tabs */
.modal-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 0.75rem;
}
.modal-tab {
  border: 0;
  background: transparent;
  color: #94b7be;
  font: 700 0.85rem var(--font-base);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}
.modal-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}
.modal-tab.active {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
}

/* Terms List Layout */
.terms-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.terms-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
}
.terms-num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #144955;
  color: #4ed3e8;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.terms-text {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #e2f1f4;
}
.terms-text strong {
  display: block;
  color: #38bdf8;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}
.terms-text span {
  display: block;
  color: #cbdde1;
}

/* Footer Legal Links */
.footer-legal-links {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-inline-start: auto;
}
.footer-link {
  border: 0;
  background: transparent;
  color: var(--primary);
  font: 700 0.8rem var(--font-base);
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease;
}
.footer-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}
.legal-sep {
  color: var(--text-subtle);
  font-size: 0.75rem;
}
