:root{
  --bg0:#b7d1e8;
  --bg1:#d9e9f7;
  --bg2:#9fc0dd;

  --panel:#0e2441;
  --panel2:#0b1c33;

  --ink:#eaf2ff;
  --muted:#b3c7e6;

  --brand:#9ab8ee;
  --border:#2a4468;
}

/* ✅ Tipografía base pensada para móvil + evita autoscaling raro en WebView/iOS */
html{
  font-size:15px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

*{box-sizing:border-box}

body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial;
  font-size:1rem;
  color:var(--ink);
  background:
    radial-gradient(1200px 700px at 20% -10%, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(900px 600px at 100% 10%, rgba(224,238,252,.32), transparent 60%),
    radial-gradient(900px 600px at 30% 110%, rgba(122,165,203,.26), transparent 60%),
    linear-gradient(180deg, var(--bg1), var(--bg0) 55%, #8fb4d4 100%);
}

header{
  position:relative;
  z-index:200;
  padding:10px 12px 8px;
  border-bottom:1px solid var(--border);
  background:linear-gradient(180deg, rgba(154,184,238,.12), transparent 55%), rgba(11,28,51,.75);
  backdrop-filter: blur(10px);
}

.wrap{max-width:520px;margin:0 auto;padding:10px 12px 16px}

/* ✅ Header compacto (logo a la izquierda + marca) */
.topbar{
  max-width:520px;
  margin:0 auto;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  text-align:left;
}

.topbarBrand{
  display:flex;
  align-items:center;
  gap:10px;
  text-align:left;
  padding-left:4px;
  padding-right:0;
  min-height:38px;
  flex:1 1 auto;
}

.brandText{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap:2px;
  min-width:0;
}

.userMenu{
  position:relative;
  top:auto;
  right:auto;
  z-index:40;
  flex:0 0 auto;
  align-self:center;
}

.userMenu > summary{
  list-style:none;
}

.userMenu > summary::marker{
  content:"";
}

.userMenu > summary::-webkit-details-marker{
  display:none;
}

.userMenuToggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(12,27,48,.86);
  cursor:pointer;
  user-select:none;
  color:#c7d9f8;
}

.userMenu[open] .userMenuToggle{
  background:rgba(28,56,96,.82);
}

.userMenuIcon{
  width:16px;
  height:16px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.userMenuPanel{
  position:absolute;
  right:0;
  top:calc(100% + 8px);
  z-index:201;
  width:min(84vw, 252px);
  background:linear-gradient(180deg, rgba(14,36,65,.98), rgba(11,28,51,.96));
  border:1px solid rgba(255,255,255,.14);
  border-radius:14px;
  padding:8px;
  box-shadow:0 14px 30px rgba(0,0,0,.34);
  display:flex;
  flex-direction:column;
  gap:6px;
  font-size:.66rem;
}

.srOnly{
  position:absolute !important;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0, 0, 0, 0);
  white-space:nowrap;
  border:0;
}

.userMenuLang{
  display:flex;
  align-items:center;
  gap:6px;
}

.userMenuLangIcon{
  width:18px;
  height:18px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
  color:var(--muted);
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.10);
}

.userMenuActions{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.userMenuLang select,
.userMenuLang .androidSelectBtn{
  flex:1 1 auto;
  width:auto;
  font-size:.66rem;
  border-radius:10px;
  min-height:30px;
  padding:5px 8px;
}

.userMenuBtn{
  width:100%;
  justify-content:center;
  min-height:30px;
  font-size:.66rem;
  font-weight:700;
  border-radius:10px;
  padding:5px 8px;
}

.userMenuPanel button.small.userMenuBtn{
  font-size:.66rem;
  line-height:1.1;
}

.userMenuCredits{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:6px;
  padding:5px 8px;
  border-radius:10px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  font-size:.66rem;
  overflow:visible;
}

.userMenuCredits #creditsValue{
  font-weight:900;
  font-size:.66rem;
}

.userMenuCreditsLabel{
  display:inline-flex;
  align-items:center;
  gap:4px;
  position:relative;
}

.creditsInfoBtn{
  width:14px;
  height:14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(255,255,255,.10);
  color:inherit;
  font-size:10px;
  line-height:1;
  font-weight:800;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0;
  cursor:help;
}

.creditsInfoTooltip{
  position:absolute;
  left:0;
  top:calc(100% + 6px);
  width:min(300px, calc(100vw - 42px));
  padding:8px 9px;
  border-radius:10px;
  border:1px solid rgba(61,104,143,.35) !important;
  background:rgba(244,250,255,.98) !important;
  color:#133857 !important;
  font-size:.63rem;
  line-height:1.35;
  box-shadow:0 12px 26px rgba(9,38,66,.22);
  white-space:pre-line;
  opacity:0;
  transform:translateY(-4px);
  pointer-events:none;
  transition:opacity .14s ease, transform .14s ease;
  z-index:5;
}

.userMenuCreditsLabel:hover .creditsInfoTooltip,
.userMenuCreditsLabel:focus-within .creditsInfoTooltip{
  opacity:1;
  transform:translateY(0);
}

.userMenuPanel .authBadge{
  width:100%;
  text-align:center;
  font-size:.66rem;
  padding:4px 8px;
  border-radius:999px;
}

.logoImg{
  width:40px;
  height:40px;
  border-radius:12px;
  padding:3px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  box-shadow: 0 6px 14px rgba(0,0,0,.2);
  object-fit:contain;
  flex:0 0 auto;
}

.brandName{
  font-weight:950;
  letter-spacing:.2px;
  font-size:1.22rem;
  display:flex;
  align-items:baseline;
  justify-content:flex-start;
  gap:0;
  line-height:1.05;
  overflow-wrap:anywhere;
}

.brandTagline{
  color:var(--muted);
  font-size:.68rem;
  line-height:1.15;
  white-space:normal;
}

.brandFabl{color:#ffffff}
.brandAI{
  font-weight:950;
  background: linear-gradient(90deg, #60a5fa, #a78bfa, #f472b6, #f59e0b, #34d399);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  margin-left:1px;
}

label{
  display:block;
  color:var(--muted);
  font-size:.75rem; /* 11-12px */
  margin:0 0 6px;
}

textarea{
  width:100%;
  min-height:88px;
  background:rgba(8,18,32,.55);
  color:var(--ink);
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  padding:9px 10px;
  resize:vertical;
  outline:none;
  font-size:1rem;
  line-height:1.35;
}

select,input[type=number]{
    width:100%;
    background:rgba(8,18,32,.55);
    color:var(--ink);
    border:1px solid rgba(255,255,255,.10);
    border-radius:14px;
    padding:9px 10px;
    outline:none;
    font-size:1rem;
  }
  
  /* Android custom dropdown (native picker is oversized) */
  .androidSelectWrap{
    position: relative;
    width: 100%;
  }
  .androidSelectBtn{
    width:100%;
    text-align:left;
    background:rgba(8,18,32,.55);
    color:var(--ink);
    border:1px solid rgba(255,255,255,.10);
    border-radius:14px;
    padding:9px 10px;
    font-size:1rem;
    line-height:1.2;
  }
  .androidSelectBtn::after{
    content:"▾";
    float:right;
    opacity:.7;
  }
  .androidSelectMenu{
    position:absolute;
    left:0;
    right:0;
    top: calc(100% + 8px);
    max-height: 46vh;
    overflow:auto;
    border-radius:14px;
    background: rgba(12, 20, 36, .98);
    color:#eaf4ff;
    border:1px solid rgba(255,255,255,.12);
    box-shadow: 0 16px 40px rgba(0,0,0,.45);
    z-index: 9999;
    padding:6px;
  }
  .androidSelectItem{
    padding:8px 10px;
    border-radius:10px;
    cursor:pointer;
    font-size:0.95rem;
    color:#eaf4ff;
  }
  .androidSelectItem:hover{
    background: rgba(255,255,255,.08);
  }
  .androidSelectItem:active{
    background: rgba(96,165,250,.18);
  }
  .androidSelectGroup{
    padding:6px 10px 4px;
    font-size:0.75rem;
    opacity:1;
    color:#9fc5ff;
    text-transform:uppercase;
    letter-spacing:.06em;
  }

.panel{
  background:linear-gradient(180deg, rgba(14,36,65,.9), rgba(11,28,51,.88));
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  padding:11px;
  box-shadow: 0 10px 28px rgba(0,0,0,.25);
}

.controlsGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
  align-items:end;
}
.controlsGrid .full{grid-column:1 / -1;}

.composerPanel{
  margin-inline:-6px;
  padding:8px;
}

.plotShell{
  position:relative;
}

.plotShell textarea{
  min-height:132px;
  padding:9px 104px 50px 10px;
}

.plotActions{
  position:absolute;
  right:8px;
  bottom:8px;
  display:flex;
  align-items:center;
  gap:6px;
}

.plotActions #go{
  width:auto;
  min-width:80px;
  border-radius:12px;
  padding:8px 12px;
  font-size:.94rem;
}

.plotActions #stop{
  width:34px;
  min-width:34px;
  height:34px;
  padding:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
}

.iconOnly{
  font-size:14px;
  line-height:1;
}

.compactSettings{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  overflow:visible;
  white-space:normal;
  padding:2px 0 4px;
  justify-content:flex-start;
}
.compactSettings::-webkit-scrollbar{display:none}

.compactSetting{
  display:inline-flex;
  align-items:center;
  gap:4px;
  min-width:0;
  flex:0 1 auto;
}

.settingIcon{
  width:12px;
  font-size:10px;
  opacity:.72;
  text-align:center;
}

.settingControl label:not(.uploadLabel){
  display:none;
}

.settingField{
  min-width:0;
}

.settingControl{
  display:inline-flex;
  align-items:center;
  min-width:0;
}

.settingControl select,
.settingControl input[type=number]{
  padding:4px 6px;
  border-radius:9px;
  font-size:.68rem;
  min-height:28px;
  width:auto;
  max-width:22ch;
}

.settingControl select{
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  padding-right:6px;
}

.compactSetting .androidSelectBtn{
  padding:4px 6px;
  border-radius:9px;
  font-size:.68rem;
}

.compactSetting .androidSelectBtn::after{
  content:"";
}

.compactSetting .androidSelectMenu{
  min-width:160px;
}

.settingChevron{
  display:none;
}

.settingChevron.muted{
  opacity:.58;
}

.compactUploader{
  align-items:center;
}

.compactUploaderBtns{
  display:inline-flex;
  gap:6px;
  flex-wrap:nowrap;
  width:auto;
}

.compactUploader .uploader{
  width:auto;
  flex-wrap:nowrap;
}

.settingControl .uploadLabel{
  display:inline-flex;
}

.compactUploaderBtns .uploadLabel{
  margin:0;
  min-height:28px;
  padding:4px 6px;
  border-radius:9px;
  font-size:.66rem;
  min-width:0;
  text-align:center;
  border-color:rgba(255,255,255,.16);
}

.compactUploaderBtns #clearPhoto{
  min-height:28px;
  width:20px;
  min-width:20px;
  border-radius:9px;
  padding:0;
  font-size:0;
  position:relative;
}

.compactUploaderBtns #clearPhoto::before{
  content:"×";
  font-size:12px;
  line-height:1;
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
}

.statusPill{
  display:none;
}

/* Dropdown header (disabled first option) readable in native picker */
select option[disabled]{
  color:#3a4f72;
  font-weight:700;
}

/* Android custom picker: stronger section/header contrast */
.androidSelectGroup{
  opacity:.95;
  color:#b9c8e2;
  text-transform:none;
  letter-spacing:0;
}

/* Remove number spinners in Pages */
#pages::-webkit-outer-spin-button,
#pages::-webkit-inner-spin-button{
  -webkit-appearance:none;
  margin:0;
}
#pages{
  -moz-appearance:textfield;
  appearance:textfield;
  width:4.5ch;
  min-width:4.5ch;
  text-align:center;
  padding-inline:4px;
}

@media (min-width: 700px){
  .composerPanel{
    margin-inline:0;
    padding:11px;
  }
}

button{
  background:linear-gradient(135deg, rgba(154,184,238,1), rgba(154,184,238,.75));
  border:0;
  color:#06101f;
  padding:10px 12px;
  border-radius:14px;
  font-weight:950;
  cursor:pointer;
  width:100%;
  box-shadow: 0 10px 22px rgba(0,0,0,.25);
  font-size:1rem;
}

button.secondary{
  background:rgba(19,46,82,.70);
  color:var(--ink);
  border:1px solid rgba(255,255,255,.10);
  box-shadow:none;
}

button.small{
  padding:8px 10px;
  border-radius:14px;
  font-weight:850;
  width:auto;
  font-size:.95rem;
}

button[disabled]{opacity:.6;cursor:not-allowed}

.mono{font-family:ui-monospace,Menlo,Consolas,monospace}

/* ✅ Título del cuento arriba del visor */
.storyTitle{
  margin:10px 2px 8px;
  font-weight:950;
  font-size:1.05rem; /* antes 16px */
  color:var(--ink);
  opacity:.95;
  overflow-wrap:anywhere;
}

.storyTitle .muted{
  font-weight:700;
  color:var(--muted);
  opacity:.9;
  font-size:.75rem;
  display:block;
  margin-top:3px;
  overflow-wrap:anywhere;
}

/* Viewer */
.viewerWrap{margin-top:12px}

.viewerStack{
  width:100%;
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  overflow:hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
  background:#000;
  display:flex;
  flex-direction:column;
}

.viewer{
  position:relative;
  width:100%;
  aspect-ratio:1/1;
  background:#000;
  border:0;
  border-radius:0;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  touch-action:pan-y;
}

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

.caption{
  position:static !important;
  background:rgba(245,248,255,.96);
  color:#0b1020;
  padding:8px 10px;
  font-size: 12px; /* antes 15px */
  line-height:1.22;
  overflow-wrap:anywhere;

}

.caption .clamp{
  font-size: 12px;   /* mantiene consistencia */
  line-height:1.22;

  display:-webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 7 !important;

  overflow:hidden;
}

.navBtn{
  position:absolute;
  top:42%;
  transform:translateY(-50%);
  width:42px;height:42px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(6,16,31,.62);
  color:#fff;
  font-size:20px;
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;
  user-select:none;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(8px);
}

.navBtn:active{transform:translateY(-50%) scale(.98)}
.navBtn.left{left:10px}
.navBtn.right{right:10px}
.navBtn[disabled]{opacity:.35;cursor:not-allowed}

.viewerTopBar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top:8px;
  gap:10px;
  color:var(--muted);
  font-size:.75rem;
  flex-wrap:wrap; /* ✅ evita cortes */
}

.pill{display:inline-block;padding:2px 8px;border-radius:999px;font-size:.75rem}
.pill.ok{background:rgba(34,197,94,.15);color:#86efac}
.pill.warn{background:rgba(245,158,11,.15);color:#fbbf24}
.pill.err{background:rgba(239,68,68,.15);color:#fca5a5}

details{margin-top:12px}
summary{cursor:pointer;color:var(--muted);font-size:.75rem}

.progressNote{
  color:var(--muted);
  font-size: 11px;     /* antes ~12px */
  line-height: 1.25;
  margin-top:6px;
  overflow-wrap:anywhere;
}

#log{
  white-space:pre-wrap;
  background:rgba(8,18,32,.55);
  border:1px solid rgba(255,255,255,.10);
  color:#f6fbff;
  padding:10px;
  border-radius:14px;
  margin-top:10px;
  max-height:140px;
  overflow:auto;
  font-size: 11px;
  line-height:1.25;
}

/* Uploader */
.uploader{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
  width:100%;
}

.uploader input[type=file]{display:none}

.uploadLabel{
  background:rgba(19,46,82,.70);
  color:var(--ink);
  padding:8px 10px;
  border-radius:14px;
  cursor:pointer;
  margin:0;
  border:1px solid rgba(255,255,255,.10);
  font-size:.75rem;
  font-weight:850;
  overflow-wrap:anywhere;
  display:inline-flex;
  align-items:center;
  min-height:36px;
}

.status{font-size:.75rem;color:var(--muted)}

/* ===== AUTH UI ===== */
.authBar{
  display:flex;
  gap:8px;
  align-items:center;
  justify-content:center;
  margin-top:8px;
  flex-wrap:wrap; /* ✅ evita cortes */
}

.authBadge{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  font-size:.75rem;
  color:var(--muted);
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
}

.authDialog{
  border:0;
  padding:0;
  background:transparent;
}

.authDialog::backdrop{
  background:rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
}

.authCard{
  width:min(520px, calc(100vw - 24px));
  margin: 14vh auto 0;
  background:linear-gradient(180deg, rgba(14,36,65,.95), rgba(11,28,51,.92));
  border:1px solid rgba(255,255,255,.12);
  border-radius:16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
  padding:14px;
  color:var(--ink);
}

.authTitle{ font-weight:950; font-size:1.1rem; margin-bottom:4px; }
.authSub{ color:var(--muted); font-size:.75rem; margin-bottom:12px; line-height:1.35; }

.authLabel{ display:block; color:var(--muted); font-size:.75rem; margin:10px 0 6px; }

.authInput{
  width:100%;
  background:rgba(8,18,32,.55);
  color:var(--ink);
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  padding:9px 10px;
  outline:none;
  font-size:1rem;
}

.authRow{
  display:flex;
  gap:8px;
  justify-content:flex-end;
  flex-wrap:wrap;
  margin-top:12px;
}

.authMsg{ margin-top:10px; font-size:.75rem; color:var(--muted); min-height:16px; }

/* ✅ Extra: pantallas muy pequeñas */
@media (max-width: 380px){
  html{ font-size:14px; }
  .wrap{ padding:10px 10px 14px; }
  .panel{ padding:10px; }
  .controlsGrid{ grid-template-columns: 1fr; } /* evita que se “apriete” */
  .plotShell textarea{
    min-height:132px;
    padding-right:10px;
    padding-bottom:62px;
  }
  .plotActions{
    right:8px;
    bottom:8px;
  }
  .logoImg{
    width:36px;
    height:36px;
  }
  .caption{ padding:8px 9px; }
  .navBtn{ width:40px; height:40px; }
}

/* Story top actions */
.storyActions{
  display:flex;
  gap:10px;
  justify-content:center;
  align-items:center;
  margin-top:10px;
  flex-wrap:nowrap;
}

.storyActions .actionBtn{
  display:inline-flex;
  align-items:center;
  white-space:nowrap;
  padding:10px 14px;
  min-width:auto;
  text-decoration:none;
}

.storyActions .dangerBtn{
  background: rgba(180,40,40,.25);
  border: 1px solid rgba(255,80,80,.35);
}

/* Reset password actions: robusto en móvil (no corta "Volver") */
.resetActions{
  display:flex;
  gap:10px;
  margin-top:12px;
  align-items:center;
  flex-wrap:wrap;              /* si no cabe, baja a la siguiente línea */
}

.resetActions #save{
  flex: 1 1 220px;             /* crece y también puede bajar de línea */
  width:auto;                  /* pisa el width:100% global del button */
  min-width: 180px;
}

.resetActions .resetBack{
  flex: 0 0 auto;              /* no se estira, no se encoge */
  flex-shrink: 0;              /* ✅ clave: evita que se “aplasten” letras */
  width:auto;
  min-width: 92px;

  white-space: nowrap;         /* no partir en dos */
  overflow-wrap: normal !important; /* ✅ evita cortes por anywhere */
  word-break: keep-all;

  display:inline-flex;
  align-items:center;
  justify-content:center;
}

/* En pantallas muy estrechas, mejor en dos filas */
@media (max-width: 360px){
  .resetActions{
    flex-direction:column;
    align-items:stretch;
  }
  .resetActions .resetBack{
    width:100%;
  }
}

.modalBack{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 9999;
}

/* ✅ centrado absoluto real */
.modalCard{
    position: absolute;
    left: 50%;
    top: 64px;
    transform: translateX(-50%);

    width: min(920px, calc(100vw - 32px));
    max-height: 84vh;
    overflow: auto;

  border-radius: 18px;
  padding: 14px;
  background: rgba(20,30,50,.92);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(10px);
}

.modalHeader{
  display:flex;
  align-items:center;
  gap:10px;
}

.modalTitle{
  font-weight: 950;
  font-size: 18px;
}

.modalSubtitle{
  margin-top: 6px;
  opacity: .85;
  font-size: 13px;
}

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

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

.planBox{
  border-radius: 16px;
  padding: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}

.planName{ font-weight: 950; font-size: 16px; }
.planPrice{ margin-top: 4px; font-weight: 800; opacity: .95; }
.planLine{ margin-top: 8px; font-size: 13px; opacity: .92; }
.planDesc{ margin-top: 8px; font-size: 12px; opacity: .8; min-height: 34px; }

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

.plansNote{
  font-size: 10px;
  opacity: .68;
}

.plansCreditsNow{ font-size: 13px; opacity: .9; }

/* ✅ Respeta el atributo hidden aunque haya display:flex en la clase */
#plansModal[hidden]{
  display: none !important;
}

#ageGateModal[hidden]{
  display: none !important;
}

.ageGateCard{
  width: min(520px, calc(100vw - 32px));
}

.ageGateBody{
  margin-top: 12px;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.ageGateLabel{
  color: var(--muted);
  font-size: .75rem;
}

.ageGateInput{
  width:100%;
  background:rgba(8,18,32,.55);
  color:var(--ink);
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  padding:9px 10px;
  outline:none;
  font-size:1rem;
}

.ageGateError{
  min-height: 16px;
  font-size: 12px;
  color: #fca5a5;
}

.ageGateActions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  flex-wrap:wrap;
}

.planBox.isCurrent{
  opacity: .6;
  pointer-events: none; /* ✅ no clicable */
}

.planBox.isCurrent .planSelectBtn{
  opacity: 1; /* el botón se verá pero no será clicable por pointer-events del box */
}

#cancelWrap div[data-i18n="cancelSubHint"]{
  font-size: 10px;
  opacity: .68;
}





