:root {
  --bg: #0a0918;
  --bg2: #131130;
  --surface: rgba(30, 26, 64, .82);
  --surface-2: rgba(44, 38, 88, .6);
  --line: rgba(226, 194, 125, .18);
  --line-2: rgba(226, 194, 125, .35);
  --gold: #e2c27d;
  --gold-2: #b8924a;
  --gold-soft: rgba(226, 194, 125, .12);
  --ink: #f4eddf;
  --muted: #a9a2c6;
  --dim: #6f6894;
  --rose: #e39aae;
  --ok: #8fd3a8;
  --no: #f09a8a;
  --maybe: #e8c77f;
  --radius: 18px;
  --serif: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --tab-h: 68px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --card-ratio: 1.732;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

/* Cielo */
.sky { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(120% 70% at 50% -10%, #2a2264 0%, transparent 60%),
    radial-gradient(80% 50% at 100% 100%, #2b1440 0%, transparent 60%),
    linear-gradient(180deg, #0d0b22 0%, var(--bg) 60%); }
.sky svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sky circle { fill: #fff; animation: tw 4s ease-in-out infinite; }
@keyframes tw { 0%, 100% { opacity: var(--o, .5); } 50% { opacity: calc(var(--o, .5) * .25); } }
@media (prefers-reduced-motion: reduce) { .sky circle { animation: none; } * { transition-duration: .01ms !important; animation-duration: .01ms !important; } }

/* Marco de app */
#app { position: relative; z-index: 1; max-width: 480px; margin: 0 auto; min-height: 100%;
  padding: calc(var(--safe-t) + 8px) 16px calc(var(--tab-h) + var(--safe-b) + 24px); }
.view { animation: in .35s ease both; }
@keyframes in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; }
.top h1 { font-family: var(--serif); font-weight: 600; font-size: 26px; margin: 0; letter-spacing: .01em; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 600; font-size: 14px; padding: 8px 8px 8px 0; }
.back svg { width: 20px; height: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 24px; font-weight: 600; letter-spacing: .06em; }
.brand svg { width: 30px; height: 30px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); }
.icon-btn svg { width: 20px; height: 20px; }

/* Tipografía */
.eyebrow { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.h2 { font-family: var(--serif); font-size: 28px; font-weight: 600; line-height: 1.1; margin: 4px 0 6px; }
.h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; margin: 0; line-height: 1.15; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.section { margin-top: 28px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.section-head a { font-size: 13px; color: var(--gold); font-weight: 600; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 22px; border-radius: 999px;
  font-weight: 700; font-size: 15px; letter-spacing: .01em; transition: transform .15s, opacity .2s; }
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; }
.btn-gold { background: linear-gradient(180deg, #f0d79e, #c9a35a); color: #1d1530; box-shadow: 0 8px 24px -8px rgba(226, 194, 125, .55); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--ink); background: rgba(255, 255, 255, .03); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  border: 1px solid var(--line); color: var(--muted); background: rgba(255, 255, 255, .02); white-space: nowrap; }
.chip.on { background: var(--gold); color: #1d1530; border-color: var(--gold); }
.chip svg { width: 14px; height: 14px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.chips::-webkit-scrollbar { display: none; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: var(--gold-soft); color: var(--gold); }
.tag.rev { background: rgba(227, 154, 174, .14); color: var(--rose); }
.kw { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.kw span { font-size: 12px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }

/* Paneles */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.panel + .panel { margin-top: 12px; }

/* Carta */
.card { position: relative; width: 100%; aspect-ratio: 1 / var(--card-ratio); perspective: 1200px; }
.card .inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.card.flipped .inner { transform: rotateY(180deg); }
.card .face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 7% / 4%; overflow: hidden;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .7), 0 0 0 1px rgba(226, 194, 125, .25); }
.card .front { transform: rotateY(180deg); background: #efe6d2; }
.card .front img { width: 100%; height: 100%; object-fit: cover; }
.card.rev .front img { transform: rotate(180deg); }
.card .back svg { width: 100%; height: 100%; display: block; }
.card.static .inner { transition: none; }
.card:not(.flipped) .front, .card.flipped .back { box-shadow: none; }
.card.glow .face { box-shadow: 0 0 0 1px rgba(226, 194, 125, .6), 0 0 40px -6px rgba(226, 194, 125, .55), 0 18px 40px -12px rgba(0, 0, 0, .8); }

/* Inicio */
.hello { margin: 6px 0 2px; }
.hello .h2 { font-size: 32px; }
.moon { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.moon svg { width: 18px; height: 18px; }
.daily { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center; }
.daily .card { width: 120px; cursor: pointer; }
.daily .tap-hint { font-size: 13px; color: var(--gold); font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.tap-hint svg { width: 16px; height: 16px; flex: none; }
.streak { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--gold); }
.streak svg { width: 15px; height: 15px; }

.spread-list { display: grid; gap: 12px; }
.spread-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); text-align: left; width: 100%; transition: border-color .2s, transform .15s; }
.spread-item:active { transform: scale(.985); }
.spread-item:hover { border-color: var(--line-2); }
.spread-item .glyph { width: 64px; height: 64px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(160deg, rgba(226, 194, 125, .16), rgba(226, 194, 125, .03)); border: 1px solid var(--line); }
.spread-item .glyph svg { width: 40px; height: 40px; }
.spread-item b { font-family: var(--serif); font-size: 20px; font-weight: 600; display: block; line-height: 1.15; }
.spread-item small { color: var(--muted); font-size: 13px; line-height: 1.4; display: block; margin-top: 2px; }
.spread-item .meta { font-size: 12px; color: var(--dim); font-weight: 700; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.lock { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; letter-spacing: .06em; color: #1d1530; background: var(--gold); padding: 3px 8px; border-radius: 999px; }
.lock svg { width: 11px; height: 11px; }

.h-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: 96px; gap: 12px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 4px 16px 8px; }
.h-scroll::-webkit-scrollbar { display: none; }
.mini { text-align: center; font-size: 12px; color: var(--muted); }
.mini .card { margin-bottom: 6px; }

/* Ritual */
.ritual-head { text-align: center; margin: 8px 0 18px; }
.ritual-head p { margin: 6px auto 0; max-width: 34ch; }
.field { display: block; margin-top: 14px; }
.field span { display: block; font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; outline: none; resize: none; }
.field input:focus, .field textarea:focus { border-color: var(--gold); }
.suggest { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.suggest button { font-size: 12.5px; color: var(--muted); border: 1px dashed var(--line-2); padding: 5px 10px; border-radius: 999px; }

.stack { position: relative; width: 120px; margin: 24px auto 26px; }
.stack .card { position: absolute; inset: 0; }
.stack .card:first-child { position: relative; }
.stack.shuffling .card:nth-child(odd) { animation: riffleL .9s ease-in-out 2; }
.stack.shuffling .card:nth-child(even) { animation: riffleR .9s ease-in-out 2; }
@keyframes riffleL { 0%, 100% { transform: none; } 40% { transform: translateX(-70px) rotate(-10deg); } 60% { transform: translateX(-70px) rotate(-10deg); } }
@keyframes riffleR { 0%, 100% { transform: none; } 40% { transform: translateX(70px) rotate(10deg); } 60% { transform: translateX(70px) rotate(10deg); } }

.tray { display: flex; justify-content: center; gap: 8px; min-height: 64px; margin: 10px 0 18px; flex-wrap: wrap; }
.tray .slot { width: 36px; height: 62px; border-radius: 5px; border: 1px dashed var(--line-2); }
.tray .slot.filled { border: 0; animation: pop .35s ease; }
.tray .slot.filled .card { width: 36px; }
@keyframes pop { from { transform: scale(.4) translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

.fan { position: relative; height: 260px; margin: 0 -16px; overflow: hidden; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.fan:active { cursor: grabbing; }
.fan .fc { position: absolute; left: 50%; bottom: 24px; width: 88px; margin-left: -44px; transform-origin: 50% 820px; transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .3s; will-change: transform; }
.fan.dragging .fc { transition: none; }
.fan .fc .card { pointer-events: none; }
.fan .fc.lift .card { transform: translateY(-46px); transition: transform .25s; }
.fan .fc.lift .face { box-shadow: 0 0 0 1px var(--gold), 0 0 30px rgba(226, 194, 125, .6); }
.fan-hint { text-align: center; color: var(--dim); font-size: 12.5px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.fan-hint svg { width: 16px; height: 16px; }

/* Disposición de las tiradas */
.layout { display: grid; gap: 10px; justify-content: center; margin: 10px auto 6px; }
.layout .pos { position: relative; text-align: center; }
.layout .pos .card { cursor: pointer; }
.layout .pos .num { position: absolute; top: -8px; left: -8px; z-index: 3; width: 22px; height: 22px; border-radius: 50%; background: var(--bg2); border: 1px solid var(--gold); color: var(--gold); font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.layout .pos .cap { font-size: 11.5px; color: var(--muted); margin-top: 6px; line-height: 1.25; font-weight: 600; }
.l-1 { grid-template-columns: 180px; }
.l-2 { grid-template-columns: repeat(2, minmax(0, 132px)); column-gap: 22px; }
.l-3 { grid-template-columns: repeat(3, minmax(0, 104px)); }
.l-5c { grid-template-columns: repeat(6, minmax(0, 50px)); }
.l-5c .pos:nth-child(1) { grid-column: 1 / 3; } .l-5c .pos:nth-child(2) { grid-column: 3 / 5; } .l-5c .pos:nth-child(3) { grid-column: 5 / 7; }
.l-5c .pos:nth-child(4) { grid-column: 2 / 4; } .l-5c .pos:nth-child(5) { grid-column: 4 / 6; }
.l-dec { grid-template-columns: repeat(3, minmax(0, 96px)); }
.l-dec .pos:nth-child(1) { grid-column: 2; grid-row: 1; } .l-dec .pos:nth-child(2) { grid-column: 1; grid-row: 2; } .l-dec .pos:nth-child(3) { grid-column: 1; grid-row: 3; }
.l-dec .pos:nth-child(4) { grid-column: 3; grid-row: 2; } .l-dec .pos:nth-child(5) { grid-column: 3; grid-row: 3; }
.l-celta { grid-template-columns: repeat(4, minmax(0, 70px)); column-gap: 12px; row-gap: 8px; }
.l-celta .pos .cap { display: none; }
.l-celta .pos:nth-child(1) { grid-column: 2; grid-row: 2; }
.l-celta .pos:nth-child(2) { grid-column: 2; grid-row: 2; z-index: 2; transform: rotate(90deg) scale(.86); }
.l-celta .pos:nth-child(2) .num { transform: rotate(-90deg); }
.l-celta .pos:nth-child(3) { grid-column: 2; grid-row: 3; } .l-celta .pos:nth-child(4) { grid-column: 1; grid-row: 2; }
.l-celta .pos:nth-child(5) { grid-column: 2; grid-row: 1; } .l-celta .pos:nth-child(6) { grid-column: 3; grid-row: 2; }
.l-celta .pos:nth-child(7) { grid-column: 4; grid-row: 4; } .l-celta .pos:nth-child(8) { grid-column: 4; grid-row: 3; }
.l-celta .pos:nth-child(9) { grid-column: 4; grid-row: 2; } .l-celta .pos:nth-child(10) { grid-column: 4; grid-row: 1; }

/* Lectura */
.answer { text-align: center; margin: 18px 0 4px; }
.answer .word { font-family: var(--serif); font-size: 64px; font-weight: 600; line-height: 1; }
.answer .word.si { color: var(--ok); } .answer .word.no { color: var(--no); } .answer .word.quizas { color: var(--maybe); }
.reading { margin-top: 22px; display: grid; gap: 12px; }
.r-item { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: start; }
.r-item .card { width: 64px; }
.r-item .pos-t { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.r-item .h3 { margin: 2px 0 2px; }
.r-item .hint { font-style: italic; color: var(--dim); font-size: 13px; font-family: var(--serif); font-size: 16px; }
.r-item p { margin: 8px 0 0; color: #ddd5ea; }
.synth { border-color: var(--line-2); background: linear-gradient(160deg, rgba(226, 194, 125, .1), rgba(30, 26, 64, .72)); }
.synth ul { margin: 10px 0 0; padding-left: 18px; color: #ddd5ea; }
.synth li + li { margin-top: 6px; }
.quint { display: flex; gap: 12px; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.quint .card { width: 44px; flex: none; }
.question { font-family: var(--serif); font-size: 20px; font-style: italic; text-align: center; color: var(--ink); margin: 6px auto 0; max-width: 30ch; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.saved-note { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--ok); margin-top: 12px; }
.saved-note svg { width: 16px; height: 16px; }
.disclaimer { font-size: 12px; color: var(--dim); text-align: center; margin: 22px auto 0; max-width: 40ch; line-height: 1.45; }

/* Biblioteca */
.search { position: relative; margin: 6px 0 12px; }
.search input { width: 100%; height: 46px; border-radius: 999px; padding: 0 16px 0 42px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); outline: none; }
.search input:focus { border-color: var(--gold); }
.search svg { position: absolute; left: 14px; top: 13px; width: 20px; height: 20px; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 12px; margin-top: 16px; }
.grid a { text-align: center; font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.grid a .card { margin-bottom: 7px; transition: transform .2s; }
.grid a:active .card { transform: scale(.96); }
.grid .num { display: block; font-size: 10.5px; color: var(--dim); font-weight: 700; letter-spacing: .1em; }
.empty { text-align: center; color: var(--dim); padding: 40px 0; }

.detail-hero { width: 220px; margin: 6px auto 0; }
.toggle { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); margin: 18px auto 0; }
.toggle button { padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 13px; color: var(--muted); }
.toggle button.on { background: var(--gold); color: #1d1530; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.facts div { background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-radius: 12px; padding: 10px; text-align: center; }
.facts b { display: block; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.facts span { font-size: 13.5px; font-weight: 600; }
.mean h4 { margin: 16px 0 4px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.mean p { margin: 0; color: #ddd5ea; }
.pager { display: flex; justify-content: space-between; margin-top: 20px; gap: 10px; }
.pager a { font-size: 13px; color: var(--muted); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.pager svg { width: 16px; height: 16px; }

/* Diario */
.log { display: grid; gap: 10px; }
.log a { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.log .thumbs { display: flex; }
.log .thumbs .card { width: 32px; }
.log .thumbs .card + .card { margin-left: -16px; }
.log b { display: block; font-weight: 700; font-size: 14px; }
.log small { color: var(--muted); font-size: 12.5px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 52vw; }
.log time { font-size: 11.5px; color: var(--dim); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 18px; }
.stats div { padding: 14px 10px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.stats b { display: block; font-family: var(--serif); font-size: 28px; line-height: 1; color: var(--gold); }
.stats span { font-size: 11.5px; color: var(--muted); }
.note { width: 100%; min-height: 90px; margin-top: 8px; }

/* Perfil / ajustes */
.list { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.list > * { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 16px; width: 100%; text-align: left; }
.list > * + * { border-top: 1px solid var(--line); }
.list small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.35; margin-top: 2px; }
.list > .wrap { flex-wrap: wrap; }
.list > .wrap > span:first-child { flex: 1 1 100%; }
.list .chev { width: 18px; height: 18px; color: var(--dim); flex: none; }
.switch { position: relative; width: 48px; height: 28px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: rgba(255, 255, 255, .12); transition: background .2s; }
.switch i::after { content: ''; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + i { background: var(--gold); }
.switch input:checked + i::after { transform: translateX(20px); }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .06); flex: none; }
.seg button { padding: 6px 11px; font-size: 12.5px; font-weight: 700; color: var(--muted); border-radius: 999px; }
.seg button.on { background: var(--gold); color: #1d1530; }
.premium-card { position: relative; overflow: hidden; border-radius: 22px; padding: 22px; border: 1px solid var(--line-2);
  background: radial-gradient(120% 120% at 100% 0%, rgba(226, 194, 125, .28), transparent 50%), linear-gradient(160deg, #2a2160, #171236); }
.premium-card .h2 { font-size: 30px; }
.premium-card ul { list-style: none; padding: 0; margin: 12px 0 18px; display: grid; gap: 8px; }
.premium-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.premium-card li svg { width: 18px; height: 18px; color: var(--gold); flex: none; margin-top: 2px; }

/* Hoja inferior (paywall, avisos) */
.sheet-bg { position: fixed; inset: 0; z-index: 50; background: rgba(5, 4, 15, .6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fade .25s ease both; }
.sheet { position: fixed; left: 50%; bottom: 0; z-index: 51; width: 100%; max-width: 480px; transform: translateX(-50%); max-height: 92vh; overflow-y: auto;
  background: linear-gradient(180deg, #221c4e, #120f2c); border: 1px solid var(--line-2); border-bottom: 0; border-radius: 26px 26px 0 0;
  padding: 10px 20px calc(24px + var(--safe-b)); animation: up .35s cubic-bezier(.2, .8, .2, 1) both; }
.sheet .grab { width: 40px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .2); margin: 0 auto 14px; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translate(-50%, 100%); } }
.plans { display: grid; gap: 10px; margin: 16px 0; }
.plan { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--line); text-align: left; width: 100%; }
.plan.on { border-color: var(--gold); background: var(--gold-soft); }
.plan b { display: block; }
.plan small { color: var(--muted); }
.plan .price { font-family: var(--serif); font-size: 22px; font-weight: 600; text-align: right; }
.plan .save { font-size: 10.5px; font-weight: 800; background: var(--gold); color: #1d1530; padding: 2px 7px; border-radius: 999px; margin-left: 6px; vertical-align: 2px; }

/* Barra de pestañas */
.tabs { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 20; width: 100%; max-width: 480px;
  height: calc(var(--tab-h) + var(--safe-b)); padding: 8px 10px var(--safe-b); display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(12, 10, 30, .82); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid var(--line); }
.tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 10.5px; font-weight: 700; color: var(--dim); letter-spacing: .02em; }
.tabs a svg { width: 23px; height: 23px; }
.tabs a.on { color: var(--gold); }
.tabs.hide { display: none; }

/* Bienvenida */
.welcome { min-height: calc(100vh - 40px); display: flex; flex-direction: column; justify-content: center; text-align: center; padding: 20px 4px; }
.welcome .logo { width: 84px; height: 84px; margin: 0 auto 16px; }
.welcome .h2 { font-size: 40px; }
.welcome form { text-align: left; margin-top: 18px; }
.fan-preview { display: flex; justify-content: center; margin: 4px 0 18px; height: 150px; }
.fan-preview .card { width: 78px; position: absolute; transform-origin: 50% 160%; }

.toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + var(--safe-b) + 16px); transform: translateX(-50%); z-index: 60; background: #f4eddf; color: #1d1530;
  padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 13.5px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); animation: up2 .3s ease both; white-space: nowrap; }
@keyframes up2 { from { opacity: 0; transform: translate(-50%, 12px); } }

@media (min-width: 520px) {
  #app { padding-top: 24px; }
}
