/* ==========================================================================
   LA BÓVEDA DE LOS DESEOS — Diseño Navideño Premium
   Paleta: Pino Profundo, Carmesí Navideño, Dorado Champán y Nieve Cálida
   ========================================================================== */

:root {
  --pine-950: #081e17;
  --pine-900: #0d2b21;
  --pine-800: #143d2f;
  --pine-700: #1d5440;
  --pine-600: #246a50;

  --crimson-700: #911a23;
  --crimson-600: #b7242e;
  --crimson-500: #cf2f3a;
  --crimson-100: #fdebec;

  --gold-600: #b28028;
  --gold-500: #d4a348;
  --gold-400: #e7c275;
  --gold-100: #fbf3df;

  --snow: #fffdf8;
  --cream: #f7f1e3;
  --cream-dark: #ece2cd;

  --ink-900: #1e2421;
  --ink-700: #424f49;
  --ink-500: #697871;
  --border-warm: rgba(180, 146, 87, 0.28);
  --border-subtle: rgba(20, 61, 47, 0.12);

  --danger: #c62828;
  --danger-bg: #fdecec;
  --success: #1b6e46;
  --success-bg: #e7f6ee;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-card: 0 12px 32px rgba(6, 22, 16, 0.22);
  --shadow-soft: 0 4px 16px rgba(13, 43, 33, 0.08);
  --shadow-gold: 0 8px 24px rgba(212, 163, 72, 0.28);

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-sans);
  color: var(--ink-900);
  background:
    radial-gradient(circle at 12% 10%, rgba(212, 163, 72, 0.18), transparent 40%),
    radial-gradient(circle at 88% 14%, rgba(183, 36, 46, 0.22), transparent 42%),
    radial-gradient(circle at 50% 95%, rgba(29, 84, 64, 0.45), transparent 55%),
    linear-gradient(165deg, var(--pine-950) 0%, var(--pine-900) 48%, var(--pine-800) 100%);
  background-attachment: fixed;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

[hidden] {
  display: none !important;
}

.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

/* ---------- Luces Navideñas Superiores ---------- */
.christmas-lights {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 22px;
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  pointer-events: none;
  z-index: 40;
  overflow: hidden;
  border-top: 2px solid rgba(255, 232, 179, 0.25);
}

.christmas-lights span {
  position: relative;
  width: 10px;
  height: 15px;
  border-radius: 50% 50% 45% 45%;
  margin-top: 2px;
  animation: twinkle 2.8s ease-in-out infinite;
}

.christmas-lights span::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 2px;
  width: 6px;
  height: 5px;
  background: #233c31;
  border-radius: 2px;
}

.christmas-lights span:nth-child(4n + 1) {
  background: #ff5964;
  box-shadow: 0 2px 12px rgba(255, 89, 100, 0.85);
  animation-delay: 0s;
}
.christmas-lights span:nth-child(4n + 2) {
  background: #ffd166;
  box-shadow: 0 2px 12px rgba(255, 209, 102, 0.9);
  animation-delay: 0.7s;
}
.christmas-lights span:nth-child(4n + 3) {
  background: #4cd995;
  box-shadow: 0 2px 12px rgba(76, 217, 149, 0.85);
  animation-delay: 1.4s;
}
.christmas-lights span:nth-child(4n + 4) {
  background: #fff5d6;
  box-shadow: 0 2px 12px rgba(255, 245, 214, 0.9);
  animation-delay: 2.1s;
}

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

/* ---------- Nieve Ambiental Sutil ---------- */
.snow-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.snow-drift {
  position: absolute;
  inset: -120px 0 0;
  background-repeat: repeat;
  opacity: 0.32;
}

.snow-drift-1 {
  background-image:
    radial-gradient(2px 2px at 20px 30px, #fff, transparent),
    radial-gradient(2.5px 2.5px at 90px 120px, #fff6df, transparent),
    radial-gradient(1.5px 1.5px at 170px 60px, #fff, transparent),
    radial-gradient(2px 2px at 250px 180px, #fff, transparent);
  background-size: 280px 240px;
  animation: snowfall 24s linear infinite;
}

.snow-drift-2 {
  background-image:
    radial-gradient(3px 3px at 60px 80px, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(2px 2px at 200px 40px, rgba(255, 241, 204, 0.8), transparent),
    radial-gradient(2.5px 2.5px at 310px 210px, rgba(255, 255, 255, 0.8), transparent);
  background-size: 360px 300px;
  animation: snowfall 36s linear infinite;
  opacity: 0.22;
}

@keyframes snowfall {
  from { transform: translateY(0); }
  to { transform: translateY(240px); }
}

@media (prefers-reduced-motion: reduce) {
  .christmas-lights span,
  .snow-drift-1,
  .snow-drift-2 {
    animation: none;
  }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 0.68rem 1.25rem;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.14s ease, box-shadow 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

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

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-lg {
  padding: 0.88rem 1.5rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.48rem 0.9rem;
  font-size: 0.84rem;
}

.btn-xs {
  padding: 0.35rem 0.72rem;
  font-size: 0.78rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--crimson-500), var(--crimson-700));
  color: #fff;
  box-shadow: 0 6px 18px rgba(183, 36, 46, 0.32);
}
.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #da3843, var(--crimson-600));
  box-shadow: 0 8px 22px rgba(183, 36, 46, 0.42);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: #1f1606;
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover:not(:disabled) {
  filter: brightness(1.05);
}

.btn-pine {
  background: linear-gradient(135deg, var(--pine-600), var(--pine-800));
  color: #fff;
}
.btn-pine:hover:not(:disabled) {
  filter: brightness(1.08);
}

.btn-secondary {
  background: var(--cream);
  color: var(--pine-900);
  border-color: var(--border-warm);
}
.btn-secondary:hover:not(:disabled) {
  background: var(--cream-dark);
}

.btn-outline-light {
  background: rgba(255, 253, 248, 0.12);
  color: var(--snow);
  border-color: rgba(255, 232, 179, 0.45);
}
.btn-outline-light:hover:not(:disabled) {
  background: rgba(255, 253, 248, 0.22);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-700);
}
.btn-ghost:hover:not(:disabled) {
  background: rgba(20, 61, 47, 0.07);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-danger:hover:not(:disabled) {
  background: #a51e1e;
}

.btn-danger-ghost {
  background: rgba(255, 235, 238, 0.12);
  color: #ffd0d4;
  border-color: rgba(255, 170, 178, 0.35);
}
.btn-danger-ghost:hover:not(:disabled) {
  background: rgba(198, 40, 40, 0.32);
  color: #fff;
}

.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--border-warm);
  background: var(--snow);
  color: var(--ink-700);
  padding: 0.46rem 0.85rem;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip-btn.is-active {
  background: var(--pine-800);
  color: var(--gold-100);
  border-color: var(--pine-800);
}

/* ---------- Formularios & Validación (:user-invalid) ---------- */
.stack-form {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}

.form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

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

.field label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--pine-900);
}

.field-hint {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-500);
}

.field input[type="text"],
.field input[type="password"],
.field input[type="url"],
.field input[type="search"],
.field select,
.field textarea {
  width: 100%;
  border: 1.5px solid rgba(20, 61, 47, 0.2);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.88rem;
  font-family: inherit;
  font-size: 0.96rem;
  color: var(--ink-900);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.field textarea {
  resize: vertical;
  min-height: 76px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold-600);
  box-shadow: 0 0 0 3px rgba(212, 163, 72, 0.22);
}

.error-msg {
  display: none;
  color: var(--danger);
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 0.12rem;
}

/* Regla :user-invalid con fallback compatible vía :is() */
:is(input, select, textarea):is(:user-invalid, .user-invalid-fallback) {
  border-color: var(--danger);
  background-color: var(--danger-bg);
}

:is(input, select, textarea):is(:user-invalid, .user-invalid-fallback) + .error-msg,
.pin-input-wrap:has(input:is(:user-invalid, .user-invalid-fallback)) + .error-msg {
  display: block;
}

:is(input, select, textarea):user-valid {
  border-color: var(--success);
}

.pin-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.pin-input-wrap input {
  padding-right: 2.7rem;
  letter-spacing: 0.25em;
  font-weight: 700;
}

.pin-toggle-btn {
  position: absolute;
  right: 0.45rem;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0.35rem;
  font-size: 1rem;
  border-radius: 8px;
}

.form-alert {
  padding: 0.72rem 0.95rem;
  border-radius: var(--radius-sm);
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(198, 40, 40, 0.28);
  font-size: 0.88rem;
  font-weight: 600;
}

.field-checkbox-align {
  justify-content: flex-end;
  padding-bottom: 0.45rem;
}

.toggle-check {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--pine-900);
}

.toggle-check input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--crimson-600);
}

/* ---------- Pantallas de Autenticación ---------- */
.auth-shell {
  position: relative;
  z-index: 5;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 2.4rem 1rem 2rem;
}

.festive-auth-card {
  width: 100%;
  max-width: 470px;
  background: linear-gradient(180deg, var(--snow) 0%, #fcf7eb 100%);
  border: 2px solid rgba(212, 163, 72, 0.55);
  border-radius: var(--radius-lg);
  padding: 2.1rem 1.85rem;
  box-shadow: 0 24px 60px rgba(4, 16, 11, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  position: relative;
}

.festive-auth-card--wide {
  max-width: 620px;
}

.wax-seal {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--crimson-500), var(--crimson-700));
  border: 3px solid var(--gold-400);
  display: grid;
  place-items: center;
  font-size: 1.95rem;
  margin: 0 auto 0.9rem;
  box-shadow: 0 8px 20px rgba(145, 26, 35, 0.35);
}

.season-kicker {
  text-align: center;
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-600);
}

.auth-top-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--pine-900);
  color: var(--gold-100);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.auth-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.25rem);
  line-height: 1.15;
  margin: 0 0 0.55rem;
  color: var(--pine-950);
  text-align: center;
}

.festive-auth-card--wide .auth-title,
.festive-auth-card--wide .auth-subtitle {
  text-align: left;
}

.auth-subtitle {
  margin: 0 0 1.4rem;
  color: var(--ink-700);
  font-size: 0.94rem;
  text-align: center;
}

.segmented-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  background: var(--cream);
  padding: 0.32rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-warm);
  margin-bottom: 1.35rem;
}

.segmented-tab {
  border: none;
  background: transparent;
  padding: 0.62rem 0.75rem;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-700);
  cursor: pointer;
  transition: all 0.16s ease;
}

.segmented-tab.is-active {
  background: var(--pine-900);
  color: var(--gold-100);
  box-shadow: 0 4px 12px rgba(13, 43, 33, 0.25);
}

/* ---------- Avatares & Selectores ---------- */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(145deg, var(--gold-100), #f6e2b3);
  border: 2px solid var(--gold-500);
  flex-shrink: 0;
}

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

.avatar svg {
  width: 78%;
  height: 78%;
}

.avatar-xs { width: 32px; height: 32px; }
.avatar-sm { width: 36px; height: 36px; }
.avatar-md { width: 48px; height: 48px; }
.avatar-lg { width: 62px; height: 62px; border-width: 3px; }
.avatar-xl { width: 96px; height: 96px; border-width: 3px; box-shadow: var(--shadow-gold); }

.avatar-mode-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.45rem;
}

.icon-picker-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.5rem;
}

.icon-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.45rem 0.25rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-subtle);
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ink-700);
  transition: all 0.14s ease;
}

.icon-choice:hover {
  border-color: var(--gold-500);
  background: var(--gold-100);
}

.icon-choice.is-selected {
  border-color: var(--crimson-600);
  background: var(--crimson-100);
  color: var(--crimson-700);
  box-shadow: 0 0 0 2px rgba(183, 36, 46, 0.16);
}

.icon-choice svg {
  width: 36px;
  height: 36px;
}

.photo-upload-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  background: var(--cream);
  border: 1.5px dashed var(--gold-600);
}

.avatar-photo-preview {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--gold-500);
  display: grid;
  place-items: center;
  overflow: hidden;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.avatar-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-upload-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.member-select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 0.65rem;
}

.member-select-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 0.5rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-subtle);
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--pine-900);
  text-align: center;
  transition: all 0.15s ease;
}

.member-select-tile:hover {
  border-color: var(--gold-500);
  transform: translateY(-1px);
}

.member-select-tile.is-selected {
  border-color: var(--crimson-600);
  background: var(--crimson-100);
  box-shadow: 0 0 0 3px rgba(183, 36, 46, 0.15);
}

/* ---------- App Shell & Header ---------- */
.app-shell {
  position: relative;
  z-index: 5;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(8, 30, 23, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(212, 163, 72, 0.28);
  padding-top: 12px;
}

.app-header-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--snow);
}

.brand-emblem {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(145deg, var(--crimson-500), var(--crimson-700));
  border: 1.5px solid var(--gold-400);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  box-shadow: 0 4px 12px rgba(183, 36, 46, 0.35);
}

.brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.12rem;
  line-height: 1.15;
  color: var(--snow);
}

.brand-sub {
  display: block;
  font-size: 0.74rem;
  color: var(--gold-400);
  font-weight: 600;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 253, 248, 0.08);
  padding: 0.3rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 232, 179, 0.16);
}

.nav-pill {
  border: none;
  background: transparent;
  color: rgba(255, 253, 248, 0.85);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.15s ease;
}

.nav-pill:hover {
  color: #fff;
  background: rgba(255, 253, 248, 0.1);
}

.nav-pill.is-active {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--pine-950);
  box-shadow: 0 4px 14px rgba(212, 163, 72, 0.32);
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(255, 253, 248, 0.1);
  border: 1px solid rgba(212, 163, 72, 0.38);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.85rem 0.25rem 0.28rem;
  color: var(--snow);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
}

.user-pill:hover {
  background: rgba(255, 253, 248, 0.18);
}

.app-main {
  flex: 1;
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

/* ---------- Hero Banner ---------- */
.hero-banner {
  background:
    radial-gradient(circle at 92% 20%, rgba(212, 163, 72, 0.3), transparent 45%),
    linear-gradient(135deg, rgba(145, 26, 35, 0.92) 0%, rgba(112, 20, 29, 0.94) 55%, rgba(20, 61, 47, 0.94) 100%);
  border: 1.5px solid rgba(231, 194, 117, 0.48);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  color: var(--snow);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  box-shadow: var(--shadow-card);
  margin-bottom: 1.5rem;
}

.hero-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-400);
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.6vw, 2.35rem);
  margin: 0 0 0.45rem;
  line-height: 1.15;
}

.hero-desc {
  margin: 0;
  max-width: 600px;
  font-size: 0.94rem;
  color: rgba(255, 253, 248, 0.9);
}

.hero-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* ---------- Barra de Filtros Familiar ---------- */
.family-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.member-strip {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
  flex: 1;
  min-width: 0;
}

.member-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  padding: 0.36rem 0.85rem 0.36rem 0.4rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(255, 232, 179, 0.26);
  background: rgba(255, 253, 248, 0.1);
  color: var(--snow);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.member-filter-chip--all {
  padding-left: 0.9rem;
}

.member-filter-chip:hover {
  background: rgba(255, 253, 248, 0.18);
}

.member-filter-chip.is-active {
  background: var(--snow);
  color: var(--pine-950);
  border-color: var(--gold-400);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.member-chip-count {
  font-size: 0.74rem;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-pill);
  background: rgba(212, 163, 72, 0.24);
  color: inherit;
}

.search-box {
  position: relative;
  width: 280px;
  max-width: 100%;
}

.search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 0.92rem;
}

.search-box input {
  width: 100%;
  padding: 0.62rem 0.95rem 0.62rem 2.3rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(255, 232, 179, 0.28);
  background: rgba(255, 253, 248, 0.96);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--ink-900);
}

.search-box input:focus {
  outline: none;
  border-color: var(--gold-400);
  box-shadow: 0 0 0 3px rgba(212, 163, 72, 0.28);
}

/* ---------- Tarjetas de Miembros y Listas ---------- */
.family-feed,
.my-lists-stack {
  display: flex;
  flex-direction: column;
  gap: 1.65rem;
}

.member-section-card {
  background: linear-gradient(180deg, var(--snow) 0%, #fcf8ee 100%);
  border: 1.5px solid rgba(212, 163, 72, 0.42);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

.member-section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px dashed rgba(180, 146, 87, 0.4);
  margin-bottom: 1.25rem;
}

.member-identity {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  min-width: 0;
}

.member-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.member-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 0;
  color: var(--pine-950);
}

.badge-me {
  background: var(--pine-800);
  color: var(--gold-100);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.16rem 0.58rem;
  border-radius: var(--radius-pill);
}

.member-bio-pill {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
  color: var(--ink-700);
}

.member-meta-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.meta-pill {
  background: var(--cream);
  border: 1px solid var(--border-warm);
  color: var(--pine-900);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
}

/* ---------- Bloque de Wishlist ---------- */
.wishlist-block + .wishlist-block {
  margin-top: 1.5rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--border-subtle);
}

.wishlist-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.wishlist-title-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.wishlist-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--gold-100);
  border: 1px solid var(--border-warm);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
}

.wishlist-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.18rem;
  color: var(--pine-900);
}

.wishlist-desc {
  margin: 0.1rem 0 0;
  font-size: 0.84rem;
  color: var(--ink-500);
}

.wishlist-owner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* ---------- Grid de Deseos y Bundles ---------- */
.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 1.1rem;
}

.wish-card,
.bundle-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  position: relative;
}

.wish-card:hover,
.bundle-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(13, 43, 33, 0.12);
}

.wish-card.is-claimed-other,
.bundle-card.is-claimed-other {
  opacity: 0.84;
}

.bundle-card {
  border: 2px solid rgba(212, 163, 72, 0.65);
  background: linear-gradient(180deg, #fffdf6 0%, #fff 100%);
}

.wish-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, var(--cream), #f2e8d3);
  overflow: hidden;
  display: grid;
  place-items: center;
}

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

.wish-media-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  color: var(--pine-700);
  padding: 1rem;
  text-align: center;
}

.wish-media-placeholder .big-emoji {
  font-size: 2.35rem;
}

.wish-media-placeholder span:last-child {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-500);
}

/* Collage automático de Bundle cuando no hay foto de portada */
.bundle-collage {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 2px;
  background: var(--gold-100);
}

.bundle-collage.count-1 {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.bundle-collage.count-2 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
}

.bundle-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bundle-collage-cell-fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #fbf3df, #f2e2bd);
  font-size: 1.5rem;
}

/* Badges flotantes sobre la imagen */
.card-badges-top {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  right: 0.6rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.4rem;
  pointer-events: none;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.24rem 0.62rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.16);
}

.pill-store {
  background: rgba(13, 43, 33, 0.9);
  color: #fff;
}

.pill-bundle {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: #1f1606;
}

.pill-favorite {
  background: linear-gradient(135deg, var(--crimson-500), var(--crimson-700));
  color: #fff;
}

.pill-idea {
  background: rgba(255, 253, 248, 0.94);
  color: var(--pine-900);
  border: 1px solid var(--border-warm);
}

.wish-body {
  padding: 0.95rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.wish-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--pine-950);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wish-desc {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-700);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-line;
}

.wish-price-tag {
  display: inline-flex;
  align-self: flex-start;
  background: var(--gold-100);
  color: var(--pine-900);
  border: 1px solid var(--border-warm);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.16rem 0.55rem;
  border-radius: 8px;
}

.bundle-mini-list {
  list-style: none;
  margin: 0.15rem 0 0;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius-sm);
  background: var(--cream);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--ink-700);
}

.bundle-mini-list li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wish-actions {
  margin-top: auto;
  padding-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.wish-actions .btn-link-open {
  flex: 1;
  min-width: 120px;
}

.claim-btn {
  border: 1.5px solid var(--border-warm);
  background: var(--snow);
  color: var(--pine-900);
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  transition: all 0.15s ease;
}

.claim-btn:hover:not(:disabled) {
  background: var(--gold-100);
  border-color: var(--gold-500);
}

.claim-btn.is-mine {
  background: var(--success-bg);
  color: var(--success);
  border-color: rgba(27, 110, 70, 0.4);
}

.claim-btn.is-taken {
  background: #f1f3f2;
  color: var(--ink-500);
  border-color: rgba(0, 0, 0, 0.1);
  cursor: default;
}

.owner-icon-actions {
  display: flex;
  gap: 0.35rem;
  margin-left: auto;
}

/* ---------- Sección Encabezados ---------- */
.section-header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
  color: var(--snow);
}

.section-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-400);
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  color: var(--snow);
}

.section-lead {
  margin: 0.3rem 0 0;
  font-size: 0.92rem;
  color: rgba(255, 253, 248, 0.82);
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

/* ---------- Estados Vacíos ---------- */
.empty-state {
  text-align: center;
  padding: 2.3rem 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.92);
  border: 1.5px dashed var(--border-warm);
  color: var(--ink-700);
}

.empty-state .empty-emoji {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
}

.empty-state h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  color: var(--pine-950);
}

.empty-state p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
}

/* ---------- Mi Perfil ---------- */
.profile-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 1.35rem;
  align-items: start;
}

.card-surface {
  background: linear-gradient(180deg, var(--snow) 0%, #fcf8ee 100%);
  border: 1.5px solid rgba(212, 163, 72, 0.42);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

.profile-summary-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.profile-card-name {
  font-family: var(--font-display);
  margin: 0.85rem 0 0.25rem;
  font-size: 1.45rem;
  color: var(--pine-950);
}

.profile-card-bio {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--ink-700);
}

.profile-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  width: 100%;
}

.stat-pill {
  background: var(--cream);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-md);
  padding: 0.65rem;
  display: flex;
  flex-direction: column;
}

.stat-pill strong {
  font-size: 1.35rem;
  font-family: var(--font-display);
  color: var(--crimson-600);
}

.stat-pill span {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink-500);
}

.card-heading {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--pine-950);
}

.pin-change-box {
  background: var(--cream);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
}

.pin-change-box summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--pine-900);
}

.pin-change-fields {
  margin-top: 0.9rem;
}

.form-footer-end {
  display: flex;
  justify-content: flex-end;
}

/* ---------- Modales Nativos <dialog> (Modern Web Guidance) ---------- */
dialog.festive-dialog {
  width: min(640px, calc(100vw - 1.5rem));
  max-height: min(90dvh, 860px);
  padding: 0;
  border: 2px solid rgba(212, 163, 72, 0.6);
  border-radius: var(--radius-lg);
  background: var(--snow);
  color: var(--ink-900);
  box-shadow: 0 28px 70px rgba(4, 16, 11, 0.55);
  overflow: auto;
}

/* Nunca poner display incondicional en dialog; acotar siempre a dialog[open] */
dialog.festive-dialog[open] {
  display: flex;
  flex-direction: column;
}

dialog.festive-dialog--lg {
  width: min(760px, calc(100vw - 1.5rem));
}

dialog.festive-dialog--sm {
  width: min(440px, calc(100vw - 1.5rem));
}

/* Prevención de scroll de la página debajo del modal (sin bloquear body/html) */
dialog:modal {
  overscroll-behavior: contain;
}

dialog::backdrop {
  background: rgba(6, 22, 16, 0.7);
  backdrop-filter: blur(4px);
  overflow: hidden;
  overscroll-behavior: contain;
}

.dialog-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  background: linear-gradient(180deg, #fffdf8 0%, #faf3e4 100%);
  border-bottom: 1px solid var(--border-warm);
}

.dialog-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--pine-950);
}

.icon-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-warm);
  background: #fff;
  color: var(--ink-700);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.icon-close-btn:hover {
  background: var(--crimson-100);
  color: var(--crimson-700);
}

.dialog-body {
  padding: 1.25rem 1.35rem 1.4rem;
}

.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: 0.3rem;
}

/* ---------- Controles dentro del Modal Deseo & Bundle ---------- */
.wish-mode-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.helper-banner {
  margin: 0;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--gold-100);
  border: 1px solid var(--border-warm);
  font-size: 0.84rem;
  color: var(--pine-900);
}

.url-fetch-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.url-fetch-row input {
  flex: 1;
  min-width: 0;
}

.fetch-status {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--pine-700);
}

.fetch-status.is-warn {
  color: #9a5b00;
}

.wish-image-manager {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: var(--cream);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-warm);
}

.wish-image-preview {
  width: 110px;
  height: 86px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1.5px dashed rgba(180, 146, 87, 0.55);
  overflow: hidden;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-500);
  text-align: center;
  padding: 0.3rem;
}

.wish-image-preview:not(.is-empty) {
  padding: 0;
  border-style: solid;
}

.wish-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wish-image-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.bundle-cover-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mini-thumb {
  width: 62px;
  height: 62px;
  border-radius: 12px;
  background: var(--cream);
  border: 1.5px dashed var(--gold-500);
  display: grid;
  place-items: center;
  overflow: hidden;
  font-size: 1.45rem;
  flex-shrink: 0;
}

.mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Constructor de ítems dentro de un Bundle */
.bundle-builder-box {
  background: var(--cream);
  border: 1.5px solid var(--border-warm);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.bundle-builder-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.bundle-draft-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bundle-draft-item {
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.bundle-draft-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.bundle-draft-badge {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--pine-700);
  background: var(--gold-100);
  padding: 0.16rem 0.55rem;
  border-radius: var(--radius-pill);
}

.bundle-draft-thumb-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.bundle-draft-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--cream);
  border: 1px solid var(--border-warm);
  overflow: hidden;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 1.15rem;
}

.bundle-draft-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Detalle de Bundle */
.bundle-kicker-pill {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-600);
  margin-bottom: 0.15rem;
}

.bundle-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: var(--cream);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-warm);
  margin-bottom: 1.1rem;
}

.bundle-detail-items {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.bundle-item-row {
  display: flex;
  gap: 0.9rem;
  padding: 0.85rem;
  background: #fff;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  align-items: flex-start;
}

.bundle-item-thumb {
  width: 82px;
  height: 82px;
  border-radius: 10px;
  background: var(--cream);
  overflow: hidden;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 1.7rem;
}

.bundle-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bundle-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.bundle-item-info h4 {
  margin: 0;
  font-size: 0.98rem;
  color: var(--pine-950);
}

.bundle-item-info p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ink-700);
  white-space: pre-line;
}

.bundle-item-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.3rem;
  align-items: center;
}

.wl-icon-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.wl-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 2px solid var(--border-subtle);
  background: #fff;
  font-size: 1.35rem;
  cursor: pointer;
}

.wl-icon-btn.is-selected {
  border-color: var(--crimson-600);
  background: var(--crimson-100);
}

.confirm-text {
  margin: 0 0 1rem;
  color: var(--ink-700);
  font-size: 0.95rem;
}

/* ---------- Toast ---------- */
.toast-container {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: min(360px, calc(100vw - 2rem));
}

.toast {
  background: var(--pine-950);
  color: var(--snow);
  border: 1.5px solid var(--gold-500);
  padding: 0.78rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  animation: toast-in 0.22s ease;
}

.toast.is-error {
  background: var(--crimson-700);
  border-color: #ffadb3;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Barra Móvil Inferior ---------- */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 860px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .desktop-nav {
    display: none;
  }

  .user-pill-name {
    display: none;
  }

  .user-pill {
    padding: 0.22rem;
  }

  .app-main {
    padding: 1rem 0.9rem 5.8rem;
  }

  .hero-banner {
    padding: 1.3rem 1.2rem;
  }

  .member-section-card {
    padding: 1.1rem;
  }

  .form-row-2 {
    grid-template-columns: 1fr;
  }

  .icon-picker-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .search-box {
    width: 100%;
  }

  .url-fetch-row {
    flex-direction: column;
  }

  .wish-image-manager {
    flex-direction: column;
    align-items: stretch;
  }

  .wish-image-preview {
    width: 100%;
    height: 150px;
  }

  .bundle-item-row {
    flex-direction: column;
  }

  .bundle-item-thumb {
    width: 100%;
    height: 140px;
  }

  .mobile-bottom-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 35;
    background: rgba(8, 30, 23, 0.96);
    backdrop-filter: blur(14px);
    border-top: 1px solid rgba(212, 163, 72, 0.35);
    padding: 0.4rem 0.4rem calc(0.4rem + env(safe-area-inset-bottom, 0px));
  }

  .mobile-nav-btn {
    border: none;
    background: transparent;
    color: rgba(255, 253, 248, 0.75);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.12rem;
    padding: 0.35rem 0.2rem;
    font-family: inherit;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
  }

  .mobile-nav-btn span:first-child {
    font-size: 1.22rem;
  }

  .mobile-nav-btn.is-active {
    color: var(--gold-400);
  }

  .mobile-nav-fab {
    justify-self: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--crimson-500), var(--crimson-700));
    border: 2px solid var(--gold-400);
    color: #fff;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(183, 36, 46, 0.45);
  }

  .mobile-nav-fab span {
    font-size: 1.55rem !important;
    line-height: 1;
  }

  .toast-container {
    bottom: 5rem;
    right: 0.9rem;
    left: 0.9rem;
    max-width: none;
  }
}
