/* ==========================================================================
   508 Life Vault Companion Audio PWA
   Coastal Sky & Gold Design System (Self-Hosted Cormorant + Figtree, SIL OFL 1.1)
   ========================================================================== */

@font-face {
  font-family: "Cormorant";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/cormorant/cormorant-garamond-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/cormorant/cormorant-garamond-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/cormorant/cormorant-garamond-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/cormorant/cormorant-garamond-latin-500-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/figtree/figtree-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/figtree/figtree-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/figtree/figtree-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/figtree/figtree-latin-700-normal.woff2") format("woff2");
}

:root {
  --sky-top: #49A9E6;
  --sky-mid: #9ED9F8;
  --sky-mist: #DDF2FC;
  --ocean-foam: #3CB6BE;
  --ocean-deep: #0A5660;
  --sand-light: #F7EEDB;
  --sand-warm: #EAD8B8;
  --ivory-glass: rgba(255, 253, 247, 0.94);
  --ivory-solid: #FFFDF7;
  --ivory-soft: #F9F4E8;
  --navy: #0B1B3A;
  --navy-ink: #1A325C;
  --gold-main: #D4AF37;
  --gold-bright: #F0CD7A;
  --gold-btn: #E6BC57;
  --gold-border: rgba(180, 140, 48, 0.36);
  --crimson: #9E1B1B;
  --crimson-hover: #7F1515;
  --emerald-dark: #0D5C43;
  --emerald-soft: #E5F6EE;
  --shadow-card: 0 10px 28px rgba(11, 27, 58, 0.12), 0 2px 6px rgba(11, 27, 58, 0.06);
  --shadow-orb: 0 14px 36px rgba(168, 128, 36, 0.38), 0 0 0 8px rgba(240, 205, 122, 0.32);
  --radius-card: 22px;
  --radius-pill: 999px;
  --font-display: "Cormorant", Georgia, "Times New Roman", serif;
  --font-ui: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --nav-height: 74px;
}

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

/* Keep standalone companion app viewport unobstructed on mobile */
#m508-chat-host,
#m508-totop {
  display: none !important;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: var(--font-ui);
  color: var(--navy);
  background: #DCEEF8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button, input, textarea, select {
  font-family: inherit;
  color: inherit;
}

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

/* ==========================================================================
   Desktop Outer Backdrop & Mobile-First App Shell
   ========================================================================== */

body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  min-height: 100dvh;
  padding: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 248, 224, 0.72), transparent 42%),
    radial-gradient(circle at 86% 24%, rgba(60, 182, 190, 0.32), transparent 48%),
    linear-gradient(165deg, #2D84C7 0%, #6CC0EC 42%, #BBE5F5 74%, #EFE1C4 100%);
}

#n5Header.n5-nav {
  width: 100%;
  align-self: stretch;
  flex: 0 0 auto;
}

.app-shell {
  position: relative;
  width: 100%;
  max-width: 480px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: linear-gradient(180deg, #49A9E6 0%, #9ED9F8 26%, #DDF2FC 45%, #56C2C9 66%, #94D9DA 77%, #F5E8CE 90%, #EAD7B5 100%);
  box-shadow: 0 22px 64px rgba(11, 27, 58, 0.28);
}

/* Lightweight Coastal Sky, Horizon, Waves & Lighthouse Scenic Backdrop */
.coastal-backdrop {
  position: fixed;
  inset: 0;
  max-width: 480px;
  margin: 0 auto;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.coastal-backdrop svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Desktop frame & optional wide companion layout */
@media (min-width: 540px) {
  body {
    padding: 0;
  }
  .app-shell {
    margin: 18px auto 28px;
    min-height: calc(100dvh - 118px);
    border-radius: 32px;
    border: 2px solid rgba(255, 253, 247, 0.72);
    overflow: clip;
  }
  body.gallery-mode .app-shell {
    margin: 0;
  }
  .coastal-backdrop {
    position: absolute;
    max-width: none;
  }
  .bottom-nav {
    position: sticky;
    bottom: 0;
  }
}

.desktop-wide-toggle {
  display: none;
}

@media (min-width: 920px) {
  .desktop-wide-toggle {
    display: inline-flex;
  }
  body.wide-mode:not(.gallery-mode) .app-shell {
    max-width: 1120px;
    display: grid;
    grid-template-columns: 240px 1fr;
    grid-template-rows: auto 1fr;
  }
  body.wide-mode:not(.gallery-mode) .top-utility-bar {
    grid-column: 1 / -1;
  }
  body.wide-mode:not(.gallery-mode) .bottom-nav {
    grid-column: 1;
    grid-row: 2;
    position: static;
    height: auto;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 8px;
    padding: 18px 14px;
    border-top: none;
    border-right: 1px solid var(--gold-border);
    background: rgba(255, 253, 247, 0.92);
  }
  body.wide-mode:not(.gallery-mode) .nav-tab {
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 0.92rem;
  }
  body.wide-mode:not(.gallery-mode) .app-viewport {
    grid-column: 2;
    grid-row: 2;
    padding-bottom: 32px;
    max-width: 820px;
    width: 100%;
    margin: 0 auto;
  }
}

/* ==========================================================================
   Top Utility Strip (Install / Wide View / Network Status)
   ========================================================================== */

.top-utility-bar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 4px;
}

.utility-left, .utility-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mini-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(11, 27, 58, 0.22);
  background: rgba(255, 253, 247, 0.92);
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(11, 27, 58, 0.08);
  transition: transform 0.15s ease, background 0.15s ease;
}

.mini-pill-btn:hover {
  background: var(--ivory-solid);
  transform: translateY(-1px);
}

.mini-pill-btn.is-gold {
  background: var(--gold-btn);
  border-color: #9E781C;
  color: var(--navy);
}

.desktop-wide-toggle {
  display: none;
}

@media (min-width: 920px) {
  .desktop-wide-toggle {
    display: inline-flex;
  }
}

/* ==========================================================================
   Main Viewport & Screen Transitions
   ========================================================================== */

.app-viewport {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  padding: 6px 16px calc(var(--nav-height) + 22px + env(safe-area-inset-bottom));
}

.screen {
  display: none;
  animation: fadeSlideIn 0.22s ease-out;
}

.screen.is-active {
  display: block;
}

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

/* ==========================================================================
   Coastal Screen Header & Medallion Emblem
   ========================================================================== */

.screen-header {
  text-align: center;
  padding: 4px 4px 12px;
}

.header-medallion-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(145deg, #FFF7DF 0%, #D4AF37 55%, #8F6B16 100%);
  box-shadow: 0 6px 20px rgba(11, 27, 58, 0.22), 0 0 0 4px rgba(255, 253, 247, 0.65);
  margin-bottom: 8px;
}

.header-medallion-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.screen-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  background: rgba(255, 253, 247, 0.78);
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 4px;
}

.screen-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2.05rem;
  font-weight: 600;
  line-height: 1.08;
  color: var(--navy);
  text-shadow: 0 1px 12px rgba(255, 253, 247, 0.85);
}

.screen-subtitle {
  margin: 4px auto 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  max-width: 340px;
  text-shadow: 0 1px 10px rgba(255, 253, 247, 0.9);
}

/* Connection Status Pill Row */
.status-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--ocean-deep);
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1.5px solid rgba(255, 253, 247, 0.5);
  box-shadow: 0 4px 14px rgba(11, 27, 58, 0.18);
}

.status-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6BF2C2;
  box-shadow: 0 0 0 3px rgba(107, 242, 194, 0.28);
}

.status-pill.is-recording {
  background: var(--crimson);
}

.status-pill.is-recording .dot {
  background: #FFFFFF;
  animation: pulseDot 1s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(1.25); }
}

.ble-quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--navy);
  background: var(--ivory-solid);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.ble-quick-btn:hover {
  background: var(--gold-bright);
}

/* ==========================================================================
   Warm Ivory Sand Glass Cards
   ========================================================================== */

.glass-card {
  background: var(--ivory-glass);
  border: 1.5px solid var(--gold-border);
  border-radius: var(--radius-card);
  padding: 16px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin-bottom: 14px;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.38rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.15;
}

.card-meta-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: #E9F4FA;
  color: var(--navy);
  border: 1px solid rgba(11, 27, 58, 0.16);
}

/* ==========================================================================
   Screen 1: Centerpiece Glowing Gold Capture Orb
   ========================================================================== */

.orb-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 0 20px;
}

.capture-orb {
  position: relative;
  width: 196px;
  height: 196px;
  border-radius: 50%;
  border: 5px solid #D4AF37;
  background:
    radial-gradient(circle at 32% 24%, #FFFFFF 0%, #FFF8E6 52%, #F3DFAC 100%);
  color: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px;
  cursor: pointer;
  box-shadow:
    0 0 0 7px rgba(240, 205, 122, 0.45),
    0 0 0 14px rgba(255, 253, 247, 0.45),
    0 16px 38px rgba(11, 27, 58, 0.24);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  animation: orbGlow 3.6s ease-in-out infinite;
}

.capture-orb:hover {
  transform: scale(1.03);
}

.capture-orb:active {
  transform: scale(0.97);
}

@keyframes orbGlow {
  0%, 100% {
    box-shadow:
      0 0 0 7px rgba(240, 205, 122, 0.45),
      0 0 0 14px rgba(255, 253, 247, 0.42),
      0 16px 38px rgba(11, 27, 58, 0.22);
  }
  50% {
    box-shadow:
      0 0 0 10px rgba(240, 205, 122, 0.65),
      0 0 0 20px rgba(255, 253, 247, 0.56),
      0 18px 44px rgba(180, 138, 34, 0.34);
  }
}

.capture-orb .orb-mic {
  width: 48px;
  height: 48px;
  color: var(--navy);
}

.capture-orb .orb-label {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 600;
  line-height: 1.12;
  text-align: center;
  color: var(--navy);
}

.capture-orb .orb-sub {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ocean-deep);
}

/* Today's Living Memories List */
.memory-mini-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.memory-mini-item {
  background: var(--ivory-solid);
  border: 1.5px solid rgba(180, 140, 48, 0.28);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.memory-mini-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.play-circle-btn {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid #9E781C;
  background: linear-gradient(145deg, #F5D98E 0%, #DFB34C 100%);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.14s ease;
}

.play-circle-btn:hover {
  transform: scale(1.05);
}

.play-circle-btn.is-playing {
  background: var(--navy);
  border-color: var(--navy);
  color: #FFFFFF;
}

.memory-mini-info {
  flex: 1 1 auto;
  min-width: 0;
}

.memory-mini-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.memory-mini-meta {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy-ink);
  margin-top: 2px;
}

.memory-mini-snippet {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.42;
  color: var(--navy-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.memory-mini-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Shared AAA High-Contrast Buttons & Pills
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 15px;
  border-radius: 13px;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.14s ease, filter 0.14s ease, background 0.14s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-gold {
  background: linear-gradient(180deg, #F3D179 0%, #DFB34C 100%);
  border-color: #9A741B;
  color: var(--navy);
}

.btn-gold:hover {
  filter: brightness(1.04);
}

.btn-navy {
  background: var(--navy);
  border-color: var(--navy);
  color: #FFFFFF;
}

.btn-navy:hover {
  background: #142B57;
}

.btn-teal {
  background: var(--ocean-deep);
  border-color: var(--ocean-deep);
  color: #FFFFFF;
}

.btn-teal:hover {
  background: #08444C;
}

.btn-ivory {
  background: var(--ivory-solid);
  border-color: rgba(11, 27, 58, 0.28);
  color: var(--navy);
}

.btn-ivory:hover {
  background: var(--sand-light);
}

.btn-crimson {
  background: var(--crimson);
  border-color: #701111;
  color: #FFFFFF;
}

.btn-crimson:hover {
  background: var(--crimson-hover);
}

.btn-sm {
  padding: 7px 11px;
  font-size: 0.78rem;
  border-radius: 10px;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   Screen 2: Live Voice Capture & Real-Time Transcript
   ========================================================================== */

.waveform-card {
  padding: 12px 14px;
  text-align: center;
}

.waveform-canvas {
  width: 100%;
  height: 76px;
  display: block;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(221, 242, 252, 0.55) 0%, rgba(255, 253, 247, 0.9) 100%);
}

.title-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1.5px solid rgba(11, 27, 58, 0.24);
  background: #FFFFFF;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.transcript-box {
  width: 100%;
  min-height: 126px;
  padding: 12px;
  border-radius: 14px;
  border: 1.5px solid rgba(11, 27, 58, 0.22);
  background: #FFFFFF;
  color: var(--navy);
  font-size: 0.95rem;
  line-height: 1.52;
  resize: vertical;
}

.speech-hint {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy-ink);
  margin-top: 6px;
}

.bookmark-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.bookmark-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: #FBF1D6;
  border: 1px solid #B08826;
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.tag-pill {
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(11, 27, 58, 0.24);
  background: var(--ivory-solid);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.tag-pill.is-selected {
  background: var(--gold-btn);
  border-color: #9A741B;
  color: var(--navy);
}

.capture-action-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  gap: 8px;
  align-items: stretch;
}

.capture-side-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 6px;
  border-radius: 16px;
  border: 1.5px solid var(--gold-border);
  background: var(--ivory-glass);
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--shadow-card);
}

.capture-side-card.is-on {
  background: #E5F6EE;
  border-color: var(--emerald-dark);
  color: var(--navy);
}

.capture-main-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 10px;
  border-radius: 20px;
  border: 2px solid #701111;
  background: var(--crimson);
  color: #FFFFFF;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(158, 27, 27, 0.32);
}

.capture-main-btn.is-idle {
  background: var(--navy);
  border-color: var(--navy);
  box-shadow: 0 8px 22px rgba(11, 27, 58, 0.28);
}

.capture-secondary-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

/* ==========================================================================
   Screen 3: Living Memories & Book Library
   ========================================================================== */

.search-wrap {
  position: relative;
  margin-bottom: 10px;
}

.search-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--navy-ink);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--gold-border);
  background: var(--ivory-solid);
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(11, 27, 58, 0.08);
}

.filter-pills {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 12px;
  scrollbar-width: none;
}

.filter-pills::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(11, 27, 58, 0.22);
  background: var(--ivory-solid);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.filter-pill.is-active {
  background: var(--gold-btn);
  border-color: #9A741B;
  color: var(--navy);
}

.library-card {
  background: var(--ivory-glass);
  border: 1.5px solid var(--gold-border);
  border-radius: var(--radius-card);
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-card);
}

.library-card-head {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.library-card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.15;
}

.library-card-sub {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy-ink);
  margin-top: 3px;
}

.library-card-body {
  margin: 9px 0 10px;
  font-size: 0.88rem;
  line-height: 1.48;
  color: var(--navy-ink);
}

.audio-progress-track {
  width: 100%;
  height: 6px;
  border-radius: var(--radius-pill);
  background: rgba(11, 27, 58, 0.14);
  overflow: hidden;
  margin: 8px 0 10px;
}

.audio-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--ocean-deep), var(--gold-main));
  border-radius: var(--radius-pill);
  transition: width 0.12s linear;
}

.library-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.library-actions-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.vault-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--emerald-soft);
  border: 1px solid var(--emerald-dark);
  color: var(--navy);
  font-size: 0.74rem;
  font-weight: 700;
}

/* ==========================================================================
   Screen 4: Broadcast Master & Global Reach (37 Languages)
   ========================================================================== */

.select-field {
  width: 100%;
  padding: 11px 13px;
  border-radius: 13px;
  border: 1.5px solid rgba(11, 27, 58, 0.28);
  background: #FFFFFF;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 700;
}

.ba-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #FFFFFF;
  border: 1.5px solid rgba(11, 27, 58, 0.14);
  margin-bottom: 9px;
}

.ba-label {
  width: 52px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
}

.ba-wave-bars {
  flex: 1 1 auto;
  height: 28px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.ba-bar {
  flex: 1 1 0;
  border-radius: 4px;
  background: #9DB2C8;
}

.ba-row.is-after .ba-bar {
  background: linear-gradient(180deg, #0A5660 0%, #3CB6BE 100%);
}

/* Toggle Switch Rows (Screens 4 & 5) */
.toggle-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 14px;
  background: #FFFFFF;
  border: 1.5px solid rgba(11, 27, 58, 0.14);
}

.toggle-row-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toggle-row-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
}

.toggle-row-sub {
  font-size: 0.77rem;
  font-weight: 600;
  color: var(--navy-ink);
}

.switch-btn {
  flex: 0 0 auto;
  position: relative;
  width: 50px;
  height: 28px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(11, 27, 58, 0.35);
  background: #D9E2EC;
  cursor: pointer;
  padding: 0;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.switch-btn::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 2px 5px rgba(11, 27, 58, 0.25);
  transition: transform 0.16s ease;
}

.switch-btn[aria-checked="true"] {
  background: var(--ocean-deep);
  border-color: var(--ocean-deep);
}

.switch-btn[aria-checked="true"]::after {
  transform: translateX(22px);
}

.lang-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: 10px 0 12px;
}

.lang-chip {
  padding: 9px 6px;
  border-radius: 12px;
  border: 1.5px solid rgba(11, 27, 58, 0.22);
  background: #FFFFFF;
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}

.lang-chip.is-selected {
  background: var(--gold-btn);
  border-color: #9A741B;
  color: var(--navy);
}

.lang-chip.is-more {
  background: #E9F4FA;
  border-color: var(--ocean-deep);
  color: var(--navy);
}

.all-langs-drawer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px;
  border-radius: 14px;
  background: var(--ivory-soft);
  border: 1px solid var(--gold-border);
  margin-bottom: 12px;
  max-height: 190px;
  overflow-y: auto;
}

.all-langs-drawer[hidden] {
  display: none;
}

.all-langs-drawer .lang-chip {
  padding: 6px 10px;
  font-size: 0.76rem;
}

.notice-banner {
  padding: 10px 12px;
  border-radius: 12px;
  background: #E9F4FA;
  border: 1.5px solid rgba(10, 86, 96, 0.35);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.42;
  margin-top: 10px;
}

/* ==========================================================================
   Screen 5: Pendant & Privacy Settings
   ========================================================================== */

.pendant-hero-card {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pendant-visual {
  position: relative;
  flex: 0 0 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pendant-lanyard {
  width: 66px;
  height: 22px;
  display: block;
}

.pendant-disc {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(145deg, #FFF7DF 0%, #D4AF37 60%, #8C6815 100%);
  box-shadow: 0 8px 20px rgba(11, 27, 58, 0.24);
  margin-top: -5px;
}

.pendant-disc img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
}

.battery-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 10px;
}

.battery-shell {
  width: 58px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--navy);
  padding: 2px;
  display: flex;
  gap: 2px;
  background: #FFFFFF;
}

.battery-cell {
  flex: 1;
  border-radius: 2px;
  background: var(--emerald-dark);
}

.battery-pct {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
}

/* ==========================================================================
   Screen 6: Profile & Fair-to-Share Hub
   ========================================================================== */

.ambassador-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: var(--ivory-solid);
  border: 1.5px solid #B68D28;
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(11, 27, 58, 0.1);
}

.units-hero-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.units-number {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 600;
  line-height: 1;
  color: var(--navy);
}

.units-label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--navy-ink);
  margin-top: 3px;
}

.sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  padding: 7px 12px;
  border-radius: 12px;
  background: var(--emerald-soft);
  border: 1.5px solid var(--emerald-dark);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 700;
}

.share-preview-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, #DDF2FC 0%, #FFFDF7 62%, #F6E9CB 100%);
  border: 1.5px solid var(--gold-border);
  margin: 10px 0 12px;
}

.share-preview-box img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  flex: 0 0 64px;
  box-shadow: 0 4px 12px rgba(11, 27, 58, 0.18);
}

.share-url-input {
  width: 100%;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1.5px solid rgba(11, 27, 58, 0.24);
  background: #FFFFFF;
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}

/* ==========================================================================
   Fixed 6-Tab Bottom Navigation Bar (All 6 Screens 1-Tap Accessible)
   ========================================================================== */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 2px;
  padding: 6px 6px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 253, 247, 0.97);
  border-top: 1.5px solid var(--gold-border);
  box-shadow: 0 -8px 26px rgba(11, 27, 58, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

@media (min-width: 540px) {
  .bottom-nav {
    position: sticky;
    bottom: 0;
    left: auto;
    transform: none;
    max-width: none;
  }
}

.nav-tab {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 7px 2px;
  border: none;
  border-radius: 13px;
  background: transparent;
  color: var(--navy-ink);
  font-size: 0.69rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-tab svg {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
}

.nav-tab.is-active {
  background: linear-gradient(180deg, #F5D98E 0%, #E5BC56 100%);
  color: var(--navy);
  box-shadow: inset 0 0 0 1.5px #9A741B;
}

/* ==========================================================================
   Modals & Toast Notifications
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(11, 27, 58, 0.62);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop[hidden] {
  display: none;
}

@media (min-width: 540px) {
  .modal-backdrop {
    align-items: center;
  }
}

.modal-sheet {
  width: 100%;
  max-width: 480px;
  max-height: 86dvh;
  overflow-y: auto;
  background: var(--ivory-solid);
  border: 2px solid var(--gold-main);
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 24px 60px rgba(11, 27, 58, 0.36);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(11, 27, 58, 0.28);
  background: var(--ivory-soft);
  color: var(--navy);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
}

.chapter-preview {
  background: #FFFFFF;
  border: 1.5px solid rgba(11, 27, 58, 0.16);
  border-radius: 14px;
  padding: 14px;
  font-size: 0.88rem;
  line-height: 1.58;
  white-space: pre-wrap;
  max-height: 44dvh;
  overflow-y: auto;
  margin-bottom: 12px;
  color: var(--navy);
}

.toast {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 70;
  max-width: 420px;
  width: calc(100% - 32px);
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--navy);
  color: #FFFFFF;
  border: 1.5px solid var(--gold-bright);
  font-size: 0.86rem;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 12px 32px rgba(11, 27, 58, 0.34);
}

.toast[hidden] {
  display: none;
}

.empty-state {
  text-align: center;
  padding: 20px 14px;
  color: var(--navy-ink);
  font-size: 0.88rem;
  font-weight: 600;
}

@media print {
  body { background: #FFFFFF; padding: 0; }
  .app-shell, .toast { display: none !important; }
  .modal-backdrop { position: static; background: none; padding: 0; }
  .modal-sheet { max-width: none; max-height: none; border: none; box-shadow: none; }
  .modal-close, .no-print { display: none !important; }
  .chapter-preview { max-height: none; border: none; }
}


/* ==========================================================================
   Gallery-First Gate, Worldwide Roaming License Badge & Lightbox
   ========================================================================== */

body.gallery-mode {
  display: block;
}

#live-app-root:not([hidden]) {
  display: contents;
}

body.gallery-mode {
  padding: 0;
}

body.gallery-mode .app-shell {
  max-width: 100%;
  min-height: 100dvh;
  border-radius: 0;
  border: none;
  overflow: visible;
  box-shadow: none;
  background: transparent;
}

body.gallery-mode .coastal-backdrop {
  max-width: 100%;
}

.admin-mode-toggle {
  position: fixed;
  top: 84px;
  right: 14px;
  z-index: 95;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(212, 175, 55, 0.78);
  background: rgba(11, 27, 58, 0.92);
  color: #FFF4CC;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(11, 27, 58, 0.34);
  backdrop-filter: blur(8px);
  transition: transform 0.16s ease, background 0.16s ease;
}

.admin-mode-toggle:hover {
  transform: translateY(-1px);
  background: #132A57;
}

.admin-mode-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.28);
}

.gallery-gate-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 28px 18px 64px;
}

.gate-hero {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 26px;
}

.gate-medallion {
  width: 78px;
  height: 78px;
  margin: 0 auto 12px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(145deg, #F6DD93, #D4AF37, #8D6B18);
  box-shadow: 0 10px 26px rgba(11, 27, 58, 0.22);
}

.gate-medallion img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.gate-kicker {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(11, 27, 58, 0.88);
  color: #F4DA88;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.gate-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 4.4vw, 3.25rem);
  font-weight: 600;
  line-height: 1.06;
  color: var(--navy);
  text-shadow: 0 1px 14px rgba(255, 255, 255, 0.78);
}

.gate-subtitle {
  margin: 0 auto;
  max-width: 680px;
  font-size: 1rem;
  line-height: 1.56;
  font-weight: 500;
  color: #0F2347;
  background: rgba(255, 253, 247, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  padding: 12px 18px;
  backdrop-filter: blur(8px);
}

.gate-action-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 18px;
  margin-bottom: 34px;
}

.gate-card {
  border-radius: 24px;
  padding: 26px 26px 24px;
  box-shadow: 0 16px 40px rgba(11, 27, 58, 0.18);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.gate-card-navy {
  background: linear-gradient(160deg, #0B1B3A 0%, #132C59 58%, #0E2347 100%);
  border: 2px solid rgba(212, 175, 55, 0.65);
  color: #FFFDF7;
}

.gate-card-ivory {
  background: rgba(255, 253, 247, 0.96);
  border: 2px solid rgba(212, 175, 55, 0.52);
  color: var(--navy);
}

.gate-pill-gold,
.gate-pill-navy {
  display: inline-block;
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.gate-pill-gold {
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid rgba(240, 205, 122, 0.55);
  color: #F6DC93;
}

.gate-pill-navy {
  background: #EAF4FB;
  border: 1px solid rgba(11, 27, 58, 0.18);
  color: var(--navy);
}

.gate-card-title,
.gate-card-title-dark {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.5vw, 1.95rem);
  font-weight: 600;
  line-height: 1.14;
}

.gate-card-title { color: #FFFDF7; }
.gate-card-title-dark { color: var(--navy); }

.gate-card-copy {
  margin: 0 0 14px;
  font-size: 0.94rem;
  line-height: 1.56;
  color: #DBE7F8;
}

.gate-card-copy-dark {
  margin: 0 0 16px;
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--navy-ink);
}

.gate-feature-list {
  margin: 0 0 20px;
  padding-left: 18px;
  font-size: 0.9rem;
  line-height: 1.62;
  color: #F4F8FF;
}

.gate-feature-list li {
  margin-bottom: 4px;
}

.gate-cta-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gate-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.gate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.gate-btn:hover {
  transform: translateY(-1px);
}

.gate-btn-gold {
  background: linear-gradient(135deg, #F6DD93 0%, #D4AF37 100%);
  color: #0B1B3A;
  border-color: #F7E4A6;
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.34);
}

.gate-btn-navy {
  width: 100%;
  background: linear-gradient(135deg, #0B1B3A 0%, #173466 100%);
  color: #FFFDF7;
  border-color: #D4AF37;
  box-shadow: 0 8px 20px rgba(11, 27, 58, 0.24);
}

.gate-btn-outline-light {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFDF7;
  border-color: rgba(246, 221, 147, 0.55);
}

.gate-btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.18);
}

.gate-unlock-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gate-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.gate-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
}

.gate-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 13px;
  border: 1.5px solid rgba(11, 27, 58, 0.24);
  background: #FFFFFF;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.gate-input-code {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.gate-input:focus {
  border-color: #D4AF37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25);
}

.gate-unlock-status {
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.45;
}

.gate-unlock-status.is-error {
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: #991B1B;
}

.gate-unlock-status.is-success {
  background: #E5F6EE;
  border: 1px solid #6EE7B7;
  color: #0D5C43;
}

.gate-help-note {
  margin: 12px 0 0;
  font-size: 0.8rem;
  color: #475569;
}

.gate-help-note a {
  color: var(--navy);
  font-weight: 700;
}

.gate-gallery-section {
  position: relative;
  isolation: isolate;
  margin-bottom: 34px;
  padding: 36px 28px 42px;
  border-radius: 32px;
  background-color: #08152E;
  background-image: linear-gradient(160deg, #071228 0%, #0B1B3A 52%, #08152E 100%);
  border: 1.5px solid rgba(212, 168, 75, 0.48);
  box-shadow: 0 24px 62px rgba(7, 15, 31, 0.38);
  overflow: hidden;
}

/* Dual-color backing lights (strong warm gold + cool teal/blue) BEHIND the glass pane for clear refraction */
.gate-gallery-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    radial-gradient(ellipse 46% 30% at 10% 24%, rgba(226, 178, 76, 0.54) 0%, rgba(212, 168, 75, 0.24) 44%, rgba(212, 168, 75, 0) 76%),
    radial-gradient(ellipse 48% 32% at 90% 22%, rgba(36, 186, 206, 0.46) 0%, rgba(44, 146, 214, 0.20) 46%, rgba(44, 146, 214, 0) 76%),
    radial-gradient(ellipse 46% 30% at 88% 82%, rgba(232, 190, 94, 0.50) 0%, rgba(212, 168, 75, 0.20) 46%, rgba(212, 168, 75, 0) 76%),
    radial-gradient(ellipse 48% 32% at 12% 84%, rgba(46, 168, 218, 0.42) 0%, rgba(36, 142, 204, 0.16) 46%, rgba(36, 142, 204, 0) 76%),
    radial-gradient(ellipse 44% 24% at 50% 48%, rgba(212, 168, 75, 0.20) 0%, rgba(38, 172, 204, 0.12) 48%, rgba(11, 27, 58, 0) 76%);
}

@media (max-width: 699px) {
  .gate-gallery-section::before {
    background-image:
      radial-gradient(ellipse 86% 12% at 14% 9%, rgba(226, 178, 76, 0.52) 0%, rgba(212, 168, 75, 0.20) 48%, rgba(212, 168, 75, 0) 78%),
      radial-gradient(ellipse 84% 13% at 86% 24%, rgba(36, 186, 206, 0.44) 0%, rgba(44, 146, 214, 0.16) 48%, rgba(44, 146, 214, 0) 78%),
      radial-gradient(ellipse 86% 13% at 16% 48%, rgba(232, 190, 94, 0.48) 0%, rgba(212, 168, 75, 0.16) 48%, rgba(212, 168, 75, 0) 78%),
      radial-gradient(ellipse 84% 13% at 84% 68%, rgba(46, 168, 218, 0.42) 0%, rgba(36, 142, 204, 0.15) 48%, rgba(36, 142, 204, 0) 78%),
      radial-gradient(ellipse 86% 13% at 22% 88%, rgba(226, 178, 76, 0.46) 0%, rgba(212, 168, 75, 0) 78%);
  }
}

.gate-section-head {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  margin: 0 auto 26px;
}

.gate-section-kicker {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ocean-deep);
  margin-bottom: 6px;
}

.gate-gallery-section .gate-section-kicker {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(212, 168, 75, 0.16);
  border: 1px solid rgba(212, 168, 75, 0.48);
  color: #F6DC93;
  margin-bottom: 10px;
}

.gate-section-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.55rem);
  font-weight: 600;
  line-height: 1.08;
  color: var(--navy);
}

.gate-gallery-section .gate-section-title {
  color: #FFFDF7;
  text-wrap: balance;
}

.gate-section-sub {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #163057;
}

.gate-gallery-section .gate-section-sub {
  color: #D8E6FA;
  text-wrap: balance;
}

/* Frosted Glass Container (Pass 2: real surface tint, crisp gold rim, white top bevel, diagonal specular, dual-glow refraction) */
.gallery-glass-container {
  position: relative;
  z-index: 2;
  padding: 32px 26px 30px;
  border-radius: 28px;
  overflow: hidden;
  /* Solid readable fallback when backdrop-filter is unsupported */
  background-color: #1F3660;
  border: 1px solid rgba(212, 168, 75, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(5, 11, 24, 0.42),
    0 30px 80px rgba(0, 0, 0, 0.45),
    0 0 36px rgba(212, 168, 75, 0.14);
}

.gallery-glass-container::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background-image: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.12) 19%,
    rgba(255, 255, 255, 0.03) 34%,
    rgba(255, 255, 255, 0) 45%
  );
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .gallery-glass-container {
    background-color: rgba(255, 255, 255, 0.16);
    background-image: linear-gradient(
      160deg,
      rgba(255, 255, 255, 0.06) 0%,
      rgba(255, 255, 255, 0.01) 56%,
      rgba(8, 18, 38, 0.08) 100%
    );
    -webkit-backdrop-filter: blur(20px) saturate(165%);
    backdrop-filter: blur(20px) saturate(165%);
  }
}

.gallery-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px 24px;
  align-items: start;
}

.gallery-card {
  appearance: none;
  border: none;
  border-radius: 24px;
  background: transparent;
  padding: 0;
  margin: 0;
  text-align: center;
  cursor: zoom-in;
  color: #FFFDF7;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-card:hover {
  transform: translateY(-6px);
}

.gallery-card:focus-visible {
  outline: 2.5px solid #F0CD7A;
  outline-offset: 8px;
  border-radius: 36px;
}

/* Pure-CSS Rose-Gold iPhone Frame */
.iphone-device {
  position: relative;
  width: 100%;
  max-width: 292px;
  min-width: 240px;
  padding: 10px;
  border-radius: 44px;
  cursor: zoom-in;
  background: linear-gradient(145deg, #f7d9cd 0%, #e8b4a0 48%, #c98b74 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 246, 242, 0.78),
    inset 0 2px 3px rgba(255, 255, 255, 0.42),
    inset 0 -2px 4px rgba(138, 78, 56, 0.35),
    0 0 0 1px rgba(136, 79, 58, 0.65),
    0 18px 40px rgba(4, 10, 24, 0.52),
    0 6px 18px rgba(212, 168, 75, 0.14);
  transition: box-shadow 0.24s ease;
}

.gallery-card:hover .iphone-device {
  box-shadow:
    inset 0 0 0 1px rgba(255, 248, 244, 0.92),
    inset 0 2px 4px rgba(255, 255, 255, 0.52),
    inset 0 -2px 4px rgba(138, 78, 56, 0.35),
    0 0 0 1px rgba(212, 168, 75, 0.74),
    0 24px 52px rgba(4, 10, 24, 0.62),
    0 10px 26px rgba(212, 168, 75, 0.26);
}

/* Subtle machined side buttons (Action, Volume Up/Down, Power) */
.iphone-side-btn {
  position: absolute;
  width: 3px;
  background: linear-gradient(180deg, #f7d9cd 0%, #e8b4a0 52%, #c98b74 100%);
  pointer-events: none;
  box-shadow: 0 0 0 0.5px rgba(136, 79, 58, 0.58);
}

.iphone-btn-action {
  left: -3px;
  top: 82px;
  height: 22px;
  border-radius: 2px 0 0 2px;
}

.iphone-btn-vol-up {
  left: -3px;
  top: 118px;
  height: 40px;
  border-radius: 2px 0 0 2px;
}

.iphone-btn-vol-down {
  left: -3px;
  top: 168px;
  height: 40px;
  border-radius: 2px 0 0 2px;
}

.iphone-btn-power {
  right: -3px;
  top: 132px;
  height: 58px;
  border-radius: 0 2px 2px 0;
}

/* Display glass area */
.iphone-screen {
  position: relative;
  border-radius: 36px;
  overflow: hidden;
  padding-top: 18px;
  background: linear-gradient(180deg, #9AD6FA 0%, #B3E2FB 100%);
  box-shadow: inset 0 0 0 1.5px rgba(12, 16, 28, 0.78);
}

/* Dynamic-Island pill at top centre */
.iphone-island {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 12px;
  border-radius: 999px;
  background: #0b0e14;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 2px 5px rgba(0, 0, 0, 0.36);
  z-index: 3;
  pointer-events: none;
}

.iphone-island::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 7px;
  width: 5px;
  height: 5px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #4a6cb0 0%, #14223d 55%, #070a12 100%);
  box-shadow: 0 0 0 0.5px rgba(130, 170, 230, 0.35);
}

.iphone-screen picture {
  display: block;
  width: 100%;
  aspect-ratio: 752 / 1344;
}

.iphone-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0 0 36px 36px;
  user-select: none;
  -webkit-user-drag: none;
}

.gallery-meta {
  width: 100%;
  max-width: 292px;
  padding: 0 6px;
  text-align: center;
}

.gallery-step-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #FCEAB4;
  margin-bottom: 3px;
}

.gallery-meta h3 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 1.42rem;
  font-weight: 600;
  color: #FFFDF7;
  line-height: 1.15;
}

.gallery-meta p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.46;
  color: #F2F6FC;
}

.gate-sheet-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;
  background: rgba(255, 253, 247, 0.96);
  border: 2px solid rgba(212, 168, 75, 0.5);
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 14px 36px rgba(11, 27, 58, 0.15);
  margin-bottom: 28px;
}

.gate-sheet-card .gate-btn-navy {
  width: auto;
}

.gate-sheet-thumb {
  appearance: none;
  border: 1.5px solid rgba(212, 168, 75, 0.55);
  border-radius: 16px;
  padding: 6px;
  background: #FFFFFF;
  cursor: zoom-in;
  box-shadow: 0 10px 26px rgba(11, 27, 58, 0.14);
  transition: transform 0.18s ease;
}

.gate-sheet-thumb:hover {
  transform: translateY(-2px);
}

.gate-sheet-thumb img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 11px;
  user-select: none;
  -webkit-user-drag: none;
}

.gate-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: linear-gradient(155deg, #0B1B3A 0%, #153161 100%);
  border: 2px solid rgba(212, 175, 55, 0.68);
  border-radius: 24px;
  padding: 24px 28px;
  color: #FFFDF7;
  box-shadow: 0 16px 38px rgba(11, 27, 58, 0.24);
}

.gate-bottom-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 600;
  color: #FFFDF7;
}

.gate-bottom-sub {
  margin: 0;
  font-size: 0.92rem;
  color: #D8E5F8;
  max-width: 600px;
}

.gate-bottom-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Emerald & Gold Worldwide Roaming License Badge (Screens 5 & 6) */
.worldwide-license-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0A4D38 0%, #0D664A 100%);
  border: 1.5px solid #D4AF37;
  color: #FFF7DB;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 16px rgba(10, 77, 56, 0.24);
  max-width: 100%;
  flex-wrap: wrap;
  text-align: center;
}

.wlb-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #D4AF37;
  color: #0B1B3A;
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* Full-Screen Lightbox (aligned with /social/ cinema modal, zero download affordances) */
html.sb-lb-open,
body.sb-lb-open {
  overflow: hidden !important;
  overscroll-behavior: none;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2147483645;
  background: rgba(7, 13, 28, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  box-sizing: border-box;
}

.lightbox-inner {
  width: 100%;
  max-width: min(980px, 96vw);
  max-height: 94dvh;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #0F1F3E;
  border: 1.5px solid rgba(212, 168, 75, 0.55);
  border-radius: 22px;
  padding: 16px 18px 18px;
  color: #FFFDF7;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.62);
}

.lightbox-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lightbox-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.lightbox-counter {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(212, 168, 75, 0.18);
  border: 1px solid rgba(253, 230, 138, 0.55);
  color: #FFF0BA;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.lightbox-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  font-weight: 700;
  color: #FFF0BA;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lightbox-close {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border-radius: 50%;
  border: 2px solid #FDE68A;
  background: #141C38;
  color: #FFF0BA;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: #D4A84B;
  color: #141C38;
}

.lightbox-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 0;
  flex: 1 1 auto;
  touch-action: pan-y;
}

.lightbox-media {
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 72dvh;
  overflow: hidden;
  border-radius: 16px;
  background: #080F20;
  border: 1.5px solid rgba(212, 168, 75, 0.45);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.55);
}

.lightbox-media img {
  display: block;
  max-width: 100%;
  max-height: 72dvh;
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox-nav {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(253, 230, 138, 0.65);
  background: #141C38;
  color: #FFF0BA;
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background 0.16s ease, color 0.16s ease;
}

.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  background: #D4A84B;
  color: #141C38;
}

.lightbox-caption {
  margin: 0;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.48;
  color: #CBD5E1;
  background: rgba(20, 32, 62, 0.85);
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

@media (max-width: 1023px) {
  .gate-action-grid {
    grid-template-columns: 1fr;
  }
  .gate-gallery-section {
    padding: 30px 20px 34px;
  }
  .gallery-glass-container {
    padding: 26px 20px 24px;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
  }
  .gate-sheet-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 699px) {
  .gallery-gate-shell {
    padding: 18px 12px 48px;
  }
  .gate-card {
    padding: 20px 18px;
  }
  .gate-gallery-section {
    padding: 24px 12px 28px;
    border-radius: 26px;
  }
  .gallery-glass-container {
    padding: 22px 14px 22px;
    border-radius: 24px;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .iphone-device {
    width: min(100%, 296px);
    min-width: 240px;
    margin: 0 auto;
  }
  .gallery-lightbox {
    padding: 10px;
  }
  .lightbox-inner {
    padding: 12px;
    border-radius: 18px;
  }
  .lightbox-stage {
    gap: 6px;
  }
  .lightbox-nav {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    font-size: 1.65rem;
  }
}

/* ==========================================================================
   COMMUNITY REPRESENTATION STRIP (FROSTED GLASS + ANTIQUE GOLD)
   ========================================================================== */
.gate-community-section {
  position: relative;
  isolation: isolate;
  margin-bottom: 34px;
  padding: 36px 28px 42px;
  border-radius: 32px;
  background-color: #08152E;
  background-image: linear-gradient(160deg, #071228 0%, #0B1B3A 52%, #08152E 100%);
  border: 1.5px solid rgba(212, 168, 75, 0.48);
  box-shadow: 0 24px 62px rgba(7, 15, 31, 0.38);
  overflow: hidden;
}

.gate-community-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    radial-gradient(ellipse 46% 34% at 12% 24%, rgba(226, 178, 76, 0.52) 0%, rgba(212, 168, 75, 0.22) 45%, rgba(212, 168, 75, 0) 76%),
    radial-gradient(ellipse 48% 36% at 88% 22%, rgba(36, 186, 206, 0.44) 0%, rgba(44, 146, 214, 0.18) 46%, rgba(44, 146, 214, 0) 76%),
    radial-gradient(ellipse 46% 34% at 86% 84%, rgba(232, 190, 94, 0.48) 0%, rgba(212, 168, 75, 0.18) 46%, rgba(212, 168, 75, 0) 76%),
    radial-gradient(ellipse 48% 34% at 14% 82%, rgba(46, 168, 218, 0.40) 0%, rgba(36, 142, 204, 0.15) 46%, rgba(36, 142, 204, 0) 76%);
}

.gate-community-section .gate-section-kicker {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(212, 168, 75, 0.16);
  border: 1px solid rgba(212, 168, 75, 0.48);
  color: #FCEAB4;
  margin-bottom: 10px;
}

.gate-community-section .gate-section-title {
  color: #FFFDF7;
  text-wrap: balance;
}

.gate-community-section .gate-section-sub {
  color: #E8F0FC;
  text-wrap: balance;
}

.community-glass-container {
  position: relative;
  z-index: 2;
  border-radius: 28px;
  padding: 26px;
  overflow: hidden;
  background-color: #1F3660;
  border: 1px solid rgba(212, 168, 75, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(5, 11, 24, 0.42),
    0 30px 80px rgba(0, 0, 0, 0.45),
    0 0 36px rgba(212, 168, 75, 0.14);
}

.community-glass-container::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background-image: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.12) 19%,
    rgba(255, 255, 255, 0.03) 34%,
    rgba(255, 255, 255, 0) 45%
  );
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .community-glass-container {
    background-color: rgba(255, 255, 255, 0.16);
    background-image: linear-gradient(
      160deg,
      rgba(255, 255, 255, 0.06) 0%,
      rgba(255, 255, 255, 0.01) 56%,
      rgba(8, 18, 38, 0.08) 100%
    );
    -webkit-backdrop-filter: blur(20px) saturate(165%);
    backdrop-filter: blur(20px) saturate(165%);
  }
}

.community-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.community-card {
  appearance: none;
  display: flex;
  flex-direction: column;
  text-align: left;
  width: 100%;
  padding: 12px;
  border-radius: 20px;
  border: 1px solid rgba(212, 168, 75, 0.36);
  background-color: rgba(8, 18, 38, 0.42);
  color: #FFFDF7;
  cursor: zoom-in;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.community-card:hover,
.community-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(240, 205, 122, 0.78);
  background-color: rgba(8, 18, 38, 0.54);
  outline: none;
}

.community-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background: #0B1B3A;
  border: 1px solid rgba(240, 205, 122, 0.34);
  margin-bottom: 12px;
}

.community-photo picture,
.community-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  user-select: none;
  -webkit-user-drag: none;
}

.community-meta {
  padding: 0 4px 4px;
}

.community-meta h3 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 1.38rem;
  font-weight: 600;
  color: #FFFDF7;
  line-height: 1.18;
}

.community-meta p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.48;
  color: #F2F6FC;
}

@media (max-width: 680px) {
  .gate-community-section {
    padding: 24px 12px 28px;
    border-radius: 26px;
  }
  .community-glass-container {
    padding: 16px 14px;
    border-radius: 22px;
  }
  .community-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* ==========================================================================
   STRICT PENDANT REQUIRED MODAL & UNLICENSED CAPTURE HINT
   Warm-Ivory / Royal-Navy / 24K-Gold Museum Aesthetic
   ========================================================================== */

.capture-lock-hint-wrap {
  display: flex;
  justify-content: center;
  margin: 0 0 12px;
}

.capture-lock-hint {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  padding: 8px 15px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 253, 247, 0.96) 0%, rgba(249, 240, 214, 0.96) 100%);
  border: 1.5px solid #D4AF37;
  color: #0B1B3A;
  font-family: var(--font-ui);
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.3;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(11, 27, 58, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  text-align: center;
}

.capture-lock-hint:hover,
.capture-lock-hint:focus-visible {
  transform: translateY(-1px);
  border-color: #B48A1E;
  box-shadow: 0 8px 22px rgba(212, 175, 55, 0.28);
}

.capture-lock-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #D4AF37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25);
  flex-shrink: 0;
}

.gate-locked-tools-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.gate-tool-chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.14);
  border: 1px solid rgba(240, 205, 122, 0.62);
  color: #FFF7DC;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.gate-tool-chip:hover,
.gate-tool-chip:focus-visible {
  background: #D4AF37;
  border-color: #F0CD7A;
  color: #0B1B3A;
  transform: translateY(-1px);
}

html.sb-gate-modal-open,
body.sb-gate-modal-open {
  overflow: hidden !important;
  overscroll-behavior: none;
}

.sb-gate-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  background: rgba(7, 14, 30, 0.80);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.sb-gate-modal-card {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 92dvh;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 26px;
  background: #FFFDF7;
  border: 2px solid #D4AF37;
  box-shadow:
    0 28px 72px rgba(5, 11, 24, 0.56),
    0 0 0 1px rgba(255, 248, 224, 0.22);
  color: #0B1B3A;
  animation: sbGateModalIn 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes sbGateModalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.sb-gate-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(240, 205, 122, 0.65);
  background: rgba(11, 27, 58, 0.86);
  color: #FFF4D2;
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.16s ease, color 0.16s ease;
}

.sb-gate-modal-close:hover,
.sb-gate-modal-close:focus-visible {
  background: #D4AF37;
  color: #0B1B3A;
}

.sb-gate-modal-header {
  position: relative;
  padding: 26px 26px 22px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.26), transparent 62%),
    linear-gradient(160deg, #09162F 0%, #11264D 62%, #0B1B3A 100%);
  border-bottom: 3px solid #D4AF37;
  color: #FFFDF7;
}

.sb-gate-modal-visuals {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.sb-gate-pendant-thumb {
  display: block;
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 20px;
  border: 2px solid #D4AF37;
  background: #0F2142;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42);
}

.sb-gate-medallion-badge {
  position: absolute;
  right: -14px;
  bottom: -8px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #F0CD7A;
  background: #0B1B3A;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.44);
}

.sb-gate-modal-pill {
  display: inline-block;
  margin: 0 auto 10px;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.18);
  border: 1px solid rgba(240, 205, 122, 0.65);
  color: #FBE6A6;
  font-family: var(--font-ui);
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.sb-gate-modal-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.62rem, 3.8vw, 2.15rem);
  font-weight: 600;
  line-height: 1.14;
  color: #FFFDF7;
  text-wrap: balance;
}

.sb-gate-modal-body {
  padding: 22px 24px 24px;
  background: linear-gradient(180deg, #FFFDF7 0%, #FBF5E6 100%);
}

.sb-gate-modal-lead {
  margin: 0 0 12px;
  font-size: 0.94rem;
  line-height: 1.58;
  color: #162B4E;
}

.sb-gate-modal-heart {
  margin: 0 0 16px;
  padding: 13px 15px;
  border-radius: 14px;
  background: rgba(212, 175, 55, 0.11);
  border: 1px solid rgba(180, 140, 48, 0.34);
  font-size: 0.91rem;
  line-height: 1.58;
  color: #0B1B3A;
}

.sb-gate-feature-pills {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.sb-gate-feature-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  border-radius: 12px;
  background: #FFFFFF;
  border: 1px solid rgba(180, 140, 48, 0.36);
  font-size: 0.85rem;
  font-weight: 600;
  color: #0B1B3A;
  box-shadow: 0 2px 8px rgba(11, 27, 58, 0.05);
}

.sb-fp-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #0B1B3A;
  color: #F0CD7A;
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sb-gate-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sb-gate-buy-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  padding: 13px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #D4AF37 0%, #F0CD7A 52%, #D4AF37 100%);
  border: 1.5px solid #B58C24;
  color: #0B1B3A;
  font-family: var(--font-ui);
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 10px 24px rgba(181, 140, 36, 0.32);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.sb-gate-buy-cta:hover,
.sb-gate-buy-cta:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(181, 140, 36, 0.42);
}

.sb-gate-license-toggle {
  appearance: none;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 999px;
  background: transparent;
  border: 1.5px solid rgba(11, 27, 58, 0.24);
  color: #0B1B3A;
  font-family: var(--font-ui);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.sb-gate-license-toggle:hover,
.sb-gate-license-toggle:focus-visible {
  background: rgba(11, 27, 58, 0.06);
  border-color: #0B1B3A;
}

.sb-modal-license-panel {
  margin-top: 14px;
  padding: 15px 16px;
  border-radius: 16px;
  background: #FFFFFF;
  border: 1.5px solid rgba(11, 27, 58, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.sb-modal-license-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sb-modal-field-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0B1B3A;
  letter-spacing: 0.02em;
}

.sb-modal-license-input {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  border-radius: 12px;
  border: 1.5px solid rgba(11, 27, 58, 0.26);
  background: #FFFDF7;
  color: #0B1B3A;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sb-modal-license-input:focus {
  border-color: #D4AF37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.24);
  outline: none;
}

.sb-modal-activate-btn {
  appearance: none;
  width: 100%;
  min-height: 46px;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1.5px solid #0B1B3A;
  background: #0B1B3A;
  color: #FFFDF7;
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.16s ease, transform 0.16s ease;
}

.sb-modal-activate-btn:hover,
.sb-modal-activate-btn:focus-visible {
  background: #162E5C;
}

.sb-modal-activate-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.sb-modal-license-status {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.45;
}

.sb-modal-license-status.is-error {
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: #991B1B;
}

.sb-modal-license-status.is-success {
  background: #ECFDF5;
  border: 1px solid #6EE7B7;
  color: #065F46;
}

@media (max-width: 480px) {
  .sb-gate-modal-backdrop {
    padding: 10px;
  }
  .sb-gate-modal-card {
    border-radius: 20px;
    max-height: 94dvh;
  }
  .sb-gate-modal-header {
    padding: 20px 16px 16px;
  }
  .sb-gate-modal-body {
    padding: 16px 16px 18px;
  }
  .sb-gate-pendant-thumb {
    width: 72px;
    height: 72px;
  }
  .sb-gate-medallion-badge {
    width: 38px;
    height: 38px;
  }
  .sb-gate-modal-lead,
  .sb-gate-modal-heart {
    font-size: 0.87rem;
  }
  .sb-gate-feature-pill {
    font-size: 0.81rem;
    padding: 8px 11px;
  }
}

/* 508 Pay-in-4 callout inside Pendant Required modal */
.sb-gate-payplan{
  margin:0 0 12px;
  padding:10px 13px;
  border-radius:12px;
  background:linear-gradient(135deg,#FDF9EF 0%,#F7EBD1 100%);
  border:1.5px solid #D4A84B;
  text-align:center;
  color:#0F1E3D;
}
.sb-gate-payplan-line{
  font-size:13.5px;
  font-weight:700;
  line-height:1.38;
  color:#0F1E3D;
}
.sb-gate-payplan-line strong{
  color:#8A5A08;
  background:rgba(212,168,75,.2);
  padding:1px 6px;
  border-radius:5px;
}
.sb-gate-payplan-meta{
  margin-top:4px;
  font-size:11.5px;
  font-weight:700;
  color:#334155;
  letter-spacing:.01em;
}

/* ==========================================================================
   7-GUIDE & LIVING BOOK EXAMPLE SHOWCASE (SUNLIT COASTAL SKY + IVORY + GOLD)
   ========================================================================== */
.gate-examples-section {
  position: relative;
  margin-bottom: 34px;
  padding: 38px 28px 44px;
  border-radius: 32px;
  background: linear-gradient(165deg, #F5FBFF 0%, #E7F4FC 48%, #FDF7EA 100%);
  border: 1.5px solid rgba(200, 155, 60, 0.55);
  box-shadow: 0 22px 54px rgba(11, 27, 58, 0.14);
  overflow: hidden;
}

.gate-examples-section .gate-section-kicker {
  display: inline-block;
  padding: 6px 15px;
  border-radius: 999px;
  background: #0B1B3A;
  border: 1px solid #D4AF37;
  color: #FFF0BA;
  margin-bottom: 10px;
}

.gate-examples-section .gate-section-title {
  color: #0B1B3A;
  text-wrap: balance;
}

.gate-examples-section .gate-section-sub {
  color: #243B64;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}

.examples-head-actions {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

.examples-glass-container {
  position: relative;
  margin-top: 24px;
  border-radius: 26px;
  padding: 24px;
  background: rgba(255, 253, 247, 0.84);
  border: 1.5px solid rgba(200, 155, 60, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 16px 38px rgba(11, 27, 58, 0.08);
}

.examples-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.example-book-card {
  flex: 0 1 calc(25% - 15px);
  min-width: 220px;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1.5px solid rgba(200, 155, 60, 0.45);
  border-radius: 20px;
  padding: 14px;
  box-shadow: 0 10px 26px rgba(11, 27, 58, 0.09);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.example-book-card:hover {
  transform: translateY(-4px);
  border-color: #C89B3C;
  box-shadow: 0 18px 38px rgba(11, 27, 58, 0.16);
}

.example-cover-link {
  display: block;
  width: 100%;
  aspect-ratio: 816 / 1056;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(11, 27, 58, 0.14);
  box-shadow: 0 8px 20px rgba(11, 27, 58, 0.14);
  margin-bottom: 14px;
  background: #EBF5FB;
}

.example-cover-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.example-book-card:hover .example-cover-link img {
  transform: scale(1.025);
}

.example-book-meta {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.example-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: #F4ECD6;
  border: 1px solid rgba(200, 155, 60, 0.45);
  color: #6B4D12;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.example-book-meta h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.38rem;
  font-weight: 600;
  line-height: 1.16;
  color: #0B1B3A;
}

.example-book-meta p {
  margin: 0 0 14px;
  font-size: 0.88rem;
  line-height: 1.48;
  color: #354A6E;
  flex: 1 1 auto;
}

.example-open-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #162B54 0%, #0B1B3A 100%);
  border: 1.5px solid #D4AF37;
  color: #FFF6DC;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.example-open-btn:hover,
.example-open-btn:focus-visible {
  background: linear-gradient(135deg, #F0CD7A 0%, #D4AF37 100%);
  color: #0B1B3A;
  outline: none;
}

@media (max-width: 1060px) {
  .example-book-card {
    flex: 0 1 calc(50% - 10px);
  }
}

@media (max-width: 680px) {
  .gate-examples-section {
    padding: 26px 14px 30px;
    border-radius: 26px;
  }
  .examples-glass-container {
    padding: 14px;
    border-radius: 20px;
  }
  .example-book-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* === LV2 UNIFIED DESKTOP STUDIO + VAULT SYNC + PAYWALL STYLES === */
body.lv-unified-page {
  display: block;
  padding: 0;
  overflow-x: clip;
}

body.lv-unified-page .app-shell.lv-page-shell {
  max-width: 100%;
  width: 100%;
  margin: 0;
  min-height: 100dvh;
  border-radius: 0;
  border: none;
  box-shadow: none;
  background: transparent;
  display: block;
  overflow: visible;
}

body.lv-unified-page .coastal-backdrop {
  position: fixed;
  inset: 0;
  max-width: none;
  z-index: 0;
}

.lv-hero-wrapper {
  padding: 28px 18px 24px;
}

.lv-below-app-shell {
  padding: 18px 18px 64px;
}

.lv-checkout-banner {
  margin: 0 auto 20px;
  max-width: 960px;
  padding: 16px 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0B1B3A 0%, #153A6E 100%);
  border: 2px solid #D4AF37;
  color: #FFFDF7;
  box-shadow: 0 14px 36px rgba(11, 27, 58, 0.28);
  font-size: 0.94rem;
  line-height: 1.5;
}
.lv-checkout-banner strong { color: #F6DC88; }
.lv-checkout-banner a { color: #F6DC88; font-weight: 700; text-decoration: underline; }

.gate-unlocked-summary {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #ECFDF5;
  border: 1.5px solid #10B981;
  color: #064E3B;
}
.gate-unlocked-badge {
  font-weight: 800;
  font-size: 0.92rem;
  margin-bottom: 4px;
}
.gate-unlocked-meta {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
}

/* Live Interactive Studio Wrapper right below hero */
.lv-studio-section {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto 32px;
  padding: 0 18px;
}

.lv-studio-intro-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 20px;
  margin-bottom: 14px;
  border-radius: 18px;
  background: rgba(11, 27, 58, 0.92);
  border: 1.5px solid rgba(212, 175, 55, 0.65);
  color: #FFFDF7;
  box-shadow: 0 12px 30px rgba(11, 27, 58, 0.22);
}

.lv-studio-intro-left {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1 1 360px;
  min-width: 0;
}

.lv-live-dot {
  width: 11px;
  height: 11px;
  margin-top: 7px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.28);
  flex-shrink: 0;
}

.lv-studio-heading {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.15;
  color: #FFFDF7;
}

.lv-studio-sub {
  margin: 4px 0 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #D7E7F8;
}

.lv-studio-intro-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.lv-license-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(232, 199, 102, 0.55);
  color: #F6DC88;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
.lv-license-status-chip.is-licensed {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(52, 211, 153, 0.7);
  color: #A7F3D0;
}

.gate-btn-compact {
  padding: 9px 16px !important;
  font-size: 0.84rem !important;
  min-height: 38px !important;
}

/* Actual Interactive App Frame (Mobile & Wide Desktop Studio) */
#live-app-root.lv-app-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  border-radius: 26px;
  border: 2px solid rgba(255, 253, 247, 0.88);
  background: linear-gradient(180deg, rgba(232, 246, 253, 0.94) 0%, rgba(255, 253, 247, 0.96) 55%, rgba(246, 236, 214, 0.95) 100%);
  box-shadow: 0 24px 64px rgba(11, 27, 58, 0.22);
  overflow: hidden;
}

#live-app-root.lv-app-frame .top-utility-bar {
  background: rgba(11, 27, 58, 0.06);
  border-bottom: 1px solid rgba(212, 175, 55, 0.34);
  padding: 12px 16px;
}

#live-app-root.lv-app-frame .app-viewport {
  padding: 16px 16px 24px;
  min-height: 540px;
}

#live-app-root.lv-app-frame .bottom-nav {
  position: relative;
  bottom: auto;
  border-top: 1px solid var(--gold-border);
  background: rgba(255, 253, 247, 0.96);
}

@media (min-width: 920px) {
  body.wide-mode #live-app-root.lv-app-frame {
    max-width: 1144px;
    display: grid;
    grid-template-columns: 236px 1fr;
    grid-template-rows: auto 1fr;
  }
  body.wide-mode #live-app-root.lv-app-frame .top-utility-bar {
    grid-column: 1 / -1;
    grid-row: 1;
    padding: 12px 20px;
  }
  body.wide-mode #live-app-root.lv-app-frame .bottom-nav {
    grid-column: 1;
    grid-row: 2;
    position: static;
    height: auto;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 8px;
    padding: 18px 14px;
    border-top: none;
    border-right: 1px solid rgba(212, 175, 55, 0.42);
    background: rgba(255, 253, 247, 0.94);
  }
  body.wide-mode #live-app-root.lv-app-frame .nav-tab {
    flex: 0 0 auto;
    height: auto;
    min-height: 46px;
    width: 100%;
    flex-direction: row;
    justify-content: flex-start;
    gap: 11px;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 0.92rem;
    text-align: left;
  }
  body.wide-mode #live-app-root.lv-app-frame .app-viewport {
    grid-column: 2;
    grid-row: 2;
    max-width: none;
    width: 100%;
    padding: 20px 26px 30px;
  }
  body.wide-mode .lv-desktop-two-col {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 18px;
    align-items: start;
  }
  body.wide-mode .lv-library-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

.nav-lock-tag {
  font-style: normal;
  font-size: 0.78em;
  opacity: 0.85;
  margin-left: 2px;
}
body.lv-is-licensed .nav-lock-tag,
body.lv-is-licensed .lv-lock-badge-btn {
  display: none !important;
}

.lv-lock-badge-btn {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(212, 175, 55, 0.85);
  background: rgba(11, 27, 58, 0.92);
  color: #F6DC88;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(11, 27, 58, 0.2);
  transition: transform 0.15s ease, background 0.15s ease;
}
.lv-lock-badge-btn:hover {
  transform: translateY(-1px);
  background: #132A57;
}

/* Live Synced 508 Life Vault Document Repository Panel inside Library */
.lv-vault-repo-card {
  border: 1.5px solid rgba(212, 175, 55, 0.65);
  background: rgba(255, 253, 247, 0.96);
  margin-bottom: 18px;
}

.lv-vault-repo-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.lv-vault-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #1D7280;
  margin-bottom: 2px;
}

.lv-vault-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.38rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.15;
}

.lv-vault-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.lv-vault-signin-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #EEF7FB 0%, #FAF3E3 100%);
  border: 1px solid rgba(33, 133, 147, 0.28);
}

.lv-vault-signin-bar p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #1D3154;
  flex: 1 1 260px;
}

.lv-vault-folder-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}

.lv-folder-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(11, 27, 58, 0.18);
  background: #FFFFFF;
  color: #162848;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.lv-folder-pill:hover {
  border-color: #D4AF37;
}
.lv-folder-pill.is-active {
  background: #0B1B3A;
  color: #F6DC88;
  border-color: #D4AF37;
}
.lv-folder-count {
  font-size: 0.72rem;
  opacity: 0.82;
}

.lv-vault-docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}

.lv-vault-doc-card {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.42);
  background: #FFFFFF;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(11, 27, 58, 0.08);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.lv-vault-doc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(11, 27, 58, 0.14);
}

.lv-vault-doc-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #0B1B3A, #1D6E7D);
  overflow: hidden;
}
.lv-vault-doc-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.lv-vault-doc-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(11, 27, 58, 0.86);
  color: #F6DC88;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.lv-vault-doc-body {
  padding: 11px 12px 12px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
.lv-vault-doc-title {
  margin: 0 0 4px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #0B1B3A;
  line-height: 1.3;
}
.lv-vault-doc-meta {
  font-size: 0.74rem;
  color: #485D7E;
  margin-bottom: 10px;
  line-height: 1.35;
  flex: 1 1 auto;
}
.lv-vault-doc-actions {
  display: flex;
  gap: 6px;
}

.lv-library-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 10px;
}

.lv-sermon-cover-mini {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  object-fit: cover;
  border: 1.5px solid rgba(212, 175, 55, 0.65);
  flex-shrink: 0;
}

/* Spacious In-App PDF / Document Viewer Modal */
.modal-sheet.is-wide-viewer {
  max-width: 920px;
  width: calc(100vw - 28px);
}
.lv-doc-viewer-frame {
  width: 100%;
  height: 68vh;
  min-height: 380px;
  border: 1px solid rgba(11, 27, 58, 0.16);
  border-radius: 12px;
  background: #F4F7FA;
  margin-bottom: 12px;
}

@media (max-width: 640px) {
  .lv-studio-section {
    padding: 0 10px;
  }
  .lv-studio-intro-bar {
    padding: 14px;
  }
  .lv-vault-docs-grid {
    grid-template-columns: 1fr;
  }
  #live-app-root.lv-app-frame .bottom-nav {
    padding: 6px 4px;
  }
  #live-app-root.lv-app-frame .nav-tab {
    font-size: 0.68rem;
    padding: 6px 2px;
  }
}



/* ===== PIXEL-FAITHFUL 2-CARD SUNLIT COASTAL HERO (COREY MOCKUP UPGRADE) ===== */
body.is-embedded .n5-nav,
body.is-embedded .n5-m {
  display: none !important;
}

.lv-coastal-backdrop-v2 {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: linear-gradient(180deg, #5BB8F0 0%, #99DBFA 38%, #DFF4FD 58%, #28A9B2 58.2%, #50C7CC 72%, #F6EAD2 78%, #EAD6B3 100%);
}
.lv-coastal-backdrop-v2 svg {
  width: 100%;
  height: 100%;
  display: block;
}

.lv-mockup-hero-wrap {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 26px 20px 30px;
}

.lv-frosted-intro-pill {
  max-width: 820px;
  margin: 0 auto 24px;
  padding: 16px 28px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 36px rgba(11, 27, 58, 0.11);
  text-align: center;
  color: #13294B;
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.97rem;
  line-height: 1.54;
  font-weight: 500;
}
.lv-frosted-intro-pill strong {
  color: #0B1B3A;
  font-weight: 800;
}

.lv-two-card-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 22px;
  align-items: stretch;
}

.lv-mcard {
  border-radius: 22px;
  padding: 26px 28px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.lv-mcard-navy {
  background: radial-gradient(circle at 75% 32%, rgba(28, 69, 132, 0.42) 0%, rgba(11, 27, 58, 0.98) 60%), linear-gradient(165deg, #091833 0%, #0B1B3A 55%, #07142B 100%);
  border: 1.8px solid #D4A84B;
  box-shadow: 0 24px 56px rgba(8, 22, 49, 0.34), inset 0 1px 0 rgba(246, 221, 147, 0.25);
  color: #FFFDF7;
}

.lv-mcard-ivory {
  background: linear-gradient(175deg, #FFFDF8 0%, #FDF8EC 100%);
  border: 1.8px solid #D4A84B;
  box-shadow: 0 24px 54px rgba(11, 27, 58, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  color: #0B1B3A;
}

.lv-pill-gold-dark {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 6px 15px;
  border-radius: 999px;
  background: rgba(212, 168, 75, 0.14);
  border: 1px solid rgba(212, 168, 75, 0.65);
  color: #F4D582;
  font-family: 'Figtree', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.lv-pill-sky-navy {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 6px 15px;
  border-radius: 999px;
  background: #E8F3FB;
  border: 1px solid #C5DFEE;
  color: #0F3562;
  font-family: 'Figtree', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.lv-mcard-h2 {
  margin: 0 0 12px;
  font-family: 'Cormorant', Georgia, serif;
  font-size: clamp(1.95rem, 2.75vw, 2.45rem);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.01em;
}
.lv-mcard-navy .lv-mcard-h2 { color: #FFFFFF; }
.lv-mcard-ivory .lv-mcard-h2 { color: #0B1B3A; }

.lv-gold-any {
  position: relative;
  display: inline-block;
  color: #F2C963;
  padding-bottom: 4px;
}
.lv-gold-any svg {
  position: absolute;
  left: -3px;
  right: -3px;
  bottom: -2px;
  width: calc(100% + 6px);
  height: 10px;
  pointer-events: none;
}

.lv-mcard-copy {
  margin: 0 0 14px;
  font-family: 'Figtree', sans-serif;
  font-size: 0.91rem;
  line-height: 1.56;
}
.lv-mcard-navy .lv-mcard-copy { color: rgba(226, 236, 250, 0.92); }
.lv-mcard-navy .lv-mcard-copy strong { color: #FFFFFF; font-weight: 700; }
.lv-mcard-ivory .lv-mcard-copy { color: #1E3356; font-size: 0.95rem; }
.lv-mcard-ivory .lv-mcard-copy strong { color: #0B1B3A; font-weight: 800; }

/* Seamless photorealistic hero visuals */
.lv-hero-art-navy {
  position: relative;
  margin: 2px -8px 16px;
  border-radius: 16px;
  overflow: hidden;
  background: #0B1B3A;
}
.lv-hero-art-navy img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  -webkit-mask-image: radial-gradient(ellipse 96% 94% at 50% 50%, #000 76%, transparent 100%);
  mask-image: radial-gradient(ellipse 96% 94% at 50% 50%, #000 76%, transparent 100%);
}

.lv-hero-art-ivory {
  position: relative;
  margin: 4px -6px 16px;
  border-radius: 16px;
  overflow: hidden;
  background: #FFFDF8;
}
.lv-hero-art-ivory img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  -webkit-mask-image: radial-gradient(ellipse 97% 95% at 50% 50%, #000 78%, transparent 100%);
  mask-image: radial-gradient(ellipse 97% 95% at 50% 50%, #000 78%, transparent 100%);
}

/* 4-column gold icon benefit row inside navy card */
.lv-benefit-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 4px 0 20px;
  padding: 12px 0;
  border-top: 1px solid rgba(212, 168, 75, 0.22);
  border-bottom: 1px solid rgba(212, 168, 75, 0.22);
}
.lv-benefit-col {
  padding: 2px 10px;
  text-align: center;
  border-right: 1px solid rgba(212, 168, 75, 0.2);
}
.lv-benefit-col:last-child { border-right: 0; }
.lv-benefit-ic {
  width: 28px;
  height: 28px;
  margin: 0 auto 7px;
  color: #E8BE5B;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lv-benefit-ic svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lv-benefit-col p {
  margin: 0;
  font-family: 'Figtree', sans-serif;
  font-size: 0.74rem;
  line-height: 1.38;
  color: #E8F0FC;
  font-weight: 500;
}

/* Mockup CTA stack in navy card */
.lv-cta-primary-gold {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #F6DC8A 0%, #E0B243 55%, #CFA032 100%);
  color: #0B1B3A !important;
  font-family: 'Figtree', sans-serif;
  font-size: 0.98rem;
  font-weight: 800;
  text-decoration: none;
  border: 1.5px solid #FAE8AE;
  box-shadow: 0 10px 26px rgba(212, 168, 75, 0.36);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  cursor: pointer;
}
.lv-cta-primary-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(212, 168, 75, 0.48);
}

.lv-secondary-cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 11px;
}
.lv-cta-glass-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1.25px solid rgba(212, 168, 75, 0.55);
  color: #FFFDF7 !important;
  font-family: 'Figtree', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background 0.16s ease, transform 0.16s ease;
}
.lv-cta-glass-dark:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}
.lv-cta-glass-dark svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  stroke: #F2C963;
  fill: none;
  stroke-width: 2;
}

/* Right card live form & emerald active box */
.lv-ivory-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.lv-ivory-fields-row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 10px;
}
.lv-ivory-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lv-ivory-field label {
  font-family: 'Figtree', sans-serif;
  font-size: 0.77rem;
  font-weight: 700;
  color: #0B1B3A;
}
.lv-ivory-field input {
  width: 100%;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1.5px solid rgba(11, 27, 58, 0.22);
  background: #FFFFFF;
  color: #0B1B3A;
  font-family: 'Figtree', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-sizing: border-box;
}
.lv-ivory-field input:focus {
  outline: none;
  border-color: #D4A84B;
  box-shadow: 0 0 0 3px rgba(212, 168, 75, 0.24);
}
.lv-cta-navy-unlock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0B1B3A 0%, #16366B 100%);
  color: #FFFDF7;
  font-family: 'Figtree', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  border: 1.5px solid #D4A84B;
  box-shadow: 0 10px 24px rgba(11, 27, 58, 0.22);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.lv-cta-navy-unlock:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(11, 27, 58, 0.30);
}

/* Mockup emerald active license card */
.lv-emerald-active-box {
  margin-top: 8px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #EDFBF3;
  border: 1.5px solid #75DCA9;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  color: #064E3B;
}
.lv-emerald-active-box[hidden] { display: none !important; }
.lv-emerald-check {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #10B981;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.28);
}
.lv-emerald-check svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lv-emerald-title {
  font-family: 'Figtree', sans-serif;
  font-size: 1.02rem;
  font-weight: 800;
  color: #0B3B2E;
  margin: 0 0 4px;
}
.lv-emerald-meta {
  font-family: 'Figtree', sans-serif;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #165947;
  margin: 0;
}

.lv-ivory-help-bar {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: 'Figtree', sans-serif;
  font-size: 0.84rem;
  line-height: 1.48;
  color: #364B6B;
  border-top: 1px solid rgba(11, 27, 58, 0.08);
}
.lv-ivory-help-bar .lv-info-ic {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid #4F94D4;
  color: #2A74B8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  font-weight: 800;
  margin-top: 1px;
}
.lv-ivory-help-bar a {
  color: #0B1B3A;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 980px) {
  .lv-two-card-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .lv-mockup-hero-wrap { padding: 16px 12px 22px; }
  .lv-frosted-intro-pill { padding: 14px 16px; font-size: 0.9rem; border-radius: 16px; }
  .lv-mcard { padding: 20px 16px 18px; border-radius: 18px; }
  .lv-benefit-strip { grid-template-columns: 1fr 1fr; gap: 12px 6px; }
  .lv-benefit-col:nth-child(2n) { border-right: 0; }
  .lv-secondary-cta-row { grid-template-columns: 1fr; }
  .lv-ivory-fields-row { grid-template-columns: 1fr; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
body.lv-unified-page .lv-hero-wrapper.lv-mockup-hero-wrap {
  max-width: 1200px;
  padding: 24px 20px 26px;
}

/* ==========================================================================
   Pass 16: Share Links Tab (10 Links per Licence)
   ========================================================================== */
.lv-links-counter-wrap {
  margin-top: 8px;
}
.lv-links-counter-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--emerald-soft);
  color: var(--emerald-dark);
  border: 1.5px solid rgba(13, 92, 67, 0.28);
  font-size: 0.88rem;
  font-weight: 700;
}
.lv-links-intro {
  margin: 10px auto 0;
  max-width: 560px;
  font-size: 0.9rem;
  line-height: 1.48;
  color: var(--navy-ink);
}
.lv-links-promise {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--emerald-dark);
  background: var(--emerald-soft);
  padding: 4px 10px;
  border-radius: 999px;
}
.lv-links-counter-sub {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy-ink);
}
.lv-links-toast {
  display: none;
  margin-bottom: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--emerald-dark);
  color: #FFFDF7;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(11, 27, 58, 0.16);
}
.lv-links-toast.is-visible { display: block; }
.lv-links-toast.is-err { background: var(--crimson); }
.lv-links-slots-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lv-link-row {
  background: var(--ivory-solid);
  border: 1.5px solid rgba(11, 27, 58, 0.10);
  border-radius: 16px;
  padding: 12px 14px;
  transition: border-color 0.15s;
}
.lv-link-row.lv-row-activated {
  border-color: rgba(13, 92, 67, 0.36);
  background: #F7FDF9;
}
.lv-link-row.lv-row-revoked {
  opacity: 0.72;
  background: #F8F5F0;
}
.lv-link-row-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.lv-link-num {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  background: var(--navy);
  color: #F0CD7A;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lv-link-main {
  flex: 1 1 auto;
  min-width: 0;
}
.lv-link-title-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.lv-link-label-input {
  flex: 1 1 170px;
  min-width: 0;
  height: 36px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(11, 27, 58, 0.18);
  background: #FFFFFF;
  color: var(--navy);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
}
.lv-link-label-input:focus {
  outline: 2px solid var(--gold-main);
  border-color: var(--gold-main);
}
.lv-link-state {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.lv-st-unused { background: #EBF5FB; color: #0B4F7A; }
.lv-st-sent { background: #FEF3C7; color: #92400E; }
.lv-st-activated { background: #DCFCE7; color: #0D5C43; }
.lv-st-revoked { background: #FEE2E2; color: #9E1B1B; }
.lv-link-meta {
  margin-top: 5px;
  font-size: 0.8rem;
  color: var(--navy-ink);
}
.lv-link-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding-left: 46px;
}
.lv-btn-copy {
  flex: 1 1 140px;
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #F0CD7A 0%, #D9AC3E 100%);
  color: var(--navy);
  font-family: var(--font-ui);
  font-size: 0.96rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(180, 136, 36, 0.25);
}
.lv-btn-copy:hover { filter: brightness(1.03); }
.lv-btn-text {
  min-height: 44px;
  padding: 10px 16px;
  border: 1.5px solid var(--navy);
  border-radius: 12px;
  background: #FFFFFF;
  color: var(--navy);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}
.lv-btn-text:hover { background: var(--ivory-soft); }
.lv-btn-revoke {
  min-height: 40px;
  padding: 8px 14px;
  border: 1.5px solid rgba(158, 27, 27, 0.35);
  border-radius: 12px;
  background: #FFF5F5;
  color: var(--crimson);
  font-family: var(--font-ui);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}
.lv-btn-revoke:hover { background: #FEE2E2; }
.lv-btn-items {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(11, 27, 58, 0.18);
  border-radius: 12px;
  background: var(--ivory-soft);
  color: var(--navy-ink);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.lv-revoked-note {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--crimson);
}
.lv-slot-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
  margin-top: 12px;
  padding-left: 46px;
}
.lv-slot-item-tile {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #FFFFFF;
  border: 1px solid rgba(11, 27, 58, 0.10);
  border-radius: 10px;
  overflow: hidden;
  font-size: 0.72rem;
}
.lv-slot-item-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ivory-soft);
  color: var(--navy-ink);
  font-weight: 700;
}
.lv-slot-item-tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
.lv-slot-item-name {
  padding: 4px 6px 0;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lv-slot-item-time {
  padding: 2px 6px 6px;
  color: var(--navy-ink);
  opacity: 0.8;
}
.lv-contrib-empty {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.48;
  color: var(--navy-ink);
}
.lv-contrib-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(11, 27, 58, 0.08);
}
.lv-contrib-row:last-child { border-bottom: 0; padding-bottom: 0; }
.lv-contrib-name {
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.lv-contrib-meta {
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--navy-ink);
}
.lv-revoked-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--crimson);
}
.lv-guide-preview-link {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid rgba(212, 175, 55, 0.45);
}
.lv-guide-preview-link img {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 600px) {
  .lv-link-actions { padding-left: 0; }
  .lv-slot-items-grid { padding-left: 0; }
}


/* === HOLIDAY SPECIAL & FREE 19-TRADITION SERMON REPOSITORY INSIDE LIVE APP === */
.lv-holiday-pill-row { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-bottom:10px; }
.lv-holiday-badge {
  display:inline-flex; align-items:center; gap:6px; padding:5px 12px; border-radius:999px;
  background:linear-gradient(135deg,#B91C1C 0%,#DC2626 55%,#991B1B 100%);
  color:#FFFDF7; font-size:0.72rem; font-weight:800; letter-spacing:0.08em; text-transform:uppercase;
  border:1px solid rgba(254,226,226,0.45); box-shadow:0 4px 12px rgba(185,28,28,0.32);
}
.lv-price-hero-strip {
  display:flex; flex-wrap:wrap; align-items:baseline; gap:8px 12px;
  margin:0 0 12px; padding:10px 14px; border-radius:14px;
  background:rgba(255,255,255,0.07); border:1px solid rgba(240,198,91,0.45);
}
.lv-price-was { font-family:'Cormorant',Georgia,serif; font-size:1.45rem; font-weight:700; color:rgba(226,236,250,0.62); text-decoration:line-through; text-decoration-color:#F87171; text-decoration-thickness:2.5px; }
.lv-price-now { font-family:'Cormorant',Georgia,serif; font-size:2.15rem; font-weight:800; line-height:1; color:#F4DA8C; }
.lv-price-unit { font-size:0.84rem; font-weight:700; color:#E2ECFA; }
.lv-price-save-chip { display:inline-flex; align-items:center; padding:3px 9px; border-radius:999px; background:rgba(16,185,129,0.22); border:1px solid rgba(52,211,153,0.55); color:#A7F3D0; font-size:0.7rem; font-weight:800; letter-spacing:0.04em; text-transform:uppercase; }

.lv-hero-art-navy { background:#041630 !important; border:1px solid rgba(240,198,91,0.34); }
.lv-hero-art-navy img { aspect-ratio:1264 / 848 !important; object-fit:cover !important; -webkit-mask-image:none !important; mask-image:none !important; }
.lv-hero-art-ivory { background:#FFFDF8 !important; border:1px solid rgba(197,155,58,0.42); }
.lv-hero-art-ivory img { aspect-ratio:1376 / 768 !important; object-fit:cover !important; -webkit-mask-image:none !important; mask-image:none !important; }

.app-sermon-repo-card {
  margin-top: 18px;
  margin-bottom: 22px;
  padding: 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, #FFFDF7 0%, #EFF8FC 100%);
  border: 2px solid rgba(5, 150, 105, 0.45);
  box-shadow: 0 12px 28px rgba(11, 27, 58, 0.08);
}
.app-sr-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.app-sr-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #047857;
  margin-bottom: 4px;
}
.app-sr-title {
  margin: 0;
  font-family: 'Cormorant', Georgia, serif;
  font-size: 1.6rem;
  color: #0B1B3A;
}
.app-sr-sub {
  margin: 4px 0 0;
  font-size: 0.86rem;
  color: #334155;
  line-height: 1.48;
}
.app-sr-jesus-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0B1B3A 0%, #163766 100%);
  border: 1.5px solid #D4A84B;
  color: #FFFDF7;
  margin-bottom: 14px;
}
.app-sr-jesus-bar strong { color: #F4DA8C; display: block; font-size: 0.94rem; }
.app-sr-jesus-bar span { font-size: 0.8rem; color: rgba(226, 236, 250, 0.9); }
.app-sr-jesus-bar audio { height: 36px; max-width: 100%; flex: 1 1 260px; }

.app-sr-tally {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #ECFDF5;
  border: 1px solid #6EE7B7;
  color: #065F46;
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.app-sr-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.app-sr-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 12px;
  border-radius: 12px;
  background: #FFFFFF;
  border: 1.5px solid rgba(197, 155, 58, 0.35);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.app-sr-item.is-checked {
  background: linear-gradient(135deg, #FFFDF7 0%, #ECFDF5 100%);
  border-color: #059669;
}
.app-sr-item input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #059669;
  flex: 0 0 18px;
}
.app-sr-item-body { flex: 1 1 auto; min-width: 0; }
.app-sr-item-name { font-size: 0.88rem; font-weight: 800; color: #0B1B3A; display: flex; justify-content: space-between; gap: 6px; }
.app-sr-item-preacher { font-size: 0.78rem; font-weight: 700; color: #8A5A08; margin-top: 2px; }
.app-sr-item-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; margin-top: 6px; font-size: 0.72rem; }
.app-sr-item-foot a { color: #1D4ED8; font-weight: 700; text-decoration: underline; }
.app-sr-free-badge { padding: 1px 7px; border-radius: 999px; background: #DCFCE7; color: #065F46; font-size: 0.68rem; font-weight: 800; }
@media (max-width: 900px) { .app-sr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .app-sr-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   MOBILE APP PREVIEW GRID (ALL 6 SCREENS INSIDE RIGHT LICENSE CARD)
   ========================================================================== */
.lv-mcard-navy .lv-benefit-strip {
  margin-top: auto;
}

.lv-mcard-ivory .lv-hero-art-ivory {
  margin-bottom: 12px;
}

.lv-mcard-ivory .lv-hero-art-ivory img {
  max-height: 215px;
  object-position: center 48%;
}

.lv-mobile-preview-block {
  margin: 12px 0 12px;
  padding: 11px 11px 10px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86) 0%, rgba(252, 246, 232, 0.92) 100%);
  border: 1.25px solid rgba(212, 168, 75, 0.44);
  box-shadow: 0 8px 22px rgba(11, 27, 58, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.lv-mp-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 8px;
}

.lv-mp-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.lv-mp-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0B1B3A 0%, #16366B 100%);
  border: 1px solid rgba(212, 168, 75, 0.72);
  color: #F6DC8A;
  font-family: 'Figtree', sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
}

.lv-mp-title {
  margin: 0;
  font-family: 'Cormorant', Georgia, serif;
  font-size: 1.18rem;
  font-weight: 700;
  color: #0B1B3A;
  line-height: 1.1;
}

.lv-mp-sub {
  margin: 0;
  font-family: 'Figtree', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #364B6B;
  line-height: 1.32;
}

.lv-mp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 8px;
}

.lv-mp-tile {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 100%;
  padding: 6px 5px 5px;
  margin: 0;
  border-radius: 13px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAF3E2 100%);
  border: 1.2px solid rgba(212, 168, 75, 0.34);
  box-shadow: 0 3px 10px rgba(11, 27, 58, 0.06);
  cursor: pointer;
  text-align: center;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.lv-mp-tile:hover,
.lv-mp-tile:focus-visible {
  transform: translateY(-2px);
  border-color: #D4A84B;
  box-shadow: 0 10px 22px rgba(212, 168, 75, 0.28), 0 0 0 2px rgba(212, 168, 75, 0.22);
  outline: none;
}

.lv-mp-phone {
  position: relative;
  display: block;
  width: 100%;
  max-width: 78px;
  aspect-ratio: 9 / 16;
  padding: 3px;
  border-radius: 12px;
  background: linear-gradient(155deg, #273A59 0%, #091224 52%, #192944 100%);
  box-shadow: 0 6px 14px rgba(9, 20, 42, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  box-sizing: border-box;
  transition: box-shadow 0.16s ease;
}

.lv-mp-tile:hover .lv-mp-phone,
.lv-mp-tile:focus-visible .lv-mp-phone {
  box-shadow: 0 8px 18px rgba(9, 20, 42, 0.30), 0 0 0 1.5px rgba(242, 201, 99, 0.85);
}

.lv-mp-phone::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  border-radius: 999px;
  background: rgba(9, 18, 36, 0.82);
  z-index: 2;
  pointer-events: none;
}

.lv-mp-screen {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #E8F6FD;
}

.lv-mp-screen picture,
.lv-mp-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  user-select: none;
  -webkit-user-drag: none;
}

.lv-mp-label {
  display: block;
  width: 100%;
  font-family: 'Figtree', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  color: #0B1B3A;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 980px) {
  .lv-mp-phone {
    max-width: 112px;
  }
}

@media (max-width: 479px) {
  .lv-mp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .lv-mp-phone {
    max-width: 110px;
  }
}

/* Lightbox Gold Jump-to-Live-Screen Action Bar */
.lightbox-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 2px;
}

.lightbox-actions[hidden] {
  display: none !important;
}

.lightbox-jump-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, #F6DC8A 0%, #E0B243 55%, #CFA032 100%);
  color: #0B1B3A;
  font-family: 'Figtree', sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  border: 1.5px solid #FAE8AE;
  box-shadow: 0 10px 24px rgba(212, 168, 75, 0.34);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.lightbox-jump-btn:hover,
.lightbox-jump-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(212, 168, 75, 0.50);
  outline: 2px solid #FFFDF7;
  outline-offset: 2px;
}
