/* ───────────── Lunara · tema nocturno ───────────── */
:root {
  --bg: #0d0911;
  --bg2: #150e1b;
  --bg3: #1d1426;
  --card: rgba(255, 255, 255, .045);
  --card2: rgba(255, 255, 255, .075);
  --line: rgba(255, 255, 255, .09);
  --text: #f7eef6;
  --muted: #a898b2;
  --dim: #6f6278;
  --hot: #ff3d8b;
  --violet: #a46bff;
  --peach: #ffb38a;
  --ok: #4ade80;
  --warn: #fbbf24;
  --grad: linear-gradient(135deg, #ff3d8b 0%, #c04bff 100%);
  --grad-soft: linear-gradient(135deg, rgba(255, 61, 139, .18), rgba(164, 107, 255, .18));
  --display: "Didot", "Bodoni 72", "Bodoni MT", "Playfair Display", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --r: 18px;
  --r-sm: 12px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--sans); }
body { min-height: 100dvh; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
[hidden] { display: none !important; }
::selection { background: var(--hot); color: #fff; }

/* Fondo ambiental */
.aurora { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; animation: drift 22s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { width: 520px; height: 520px; background: #7a1650; top: -180px; left: -160px; }
.aurora i:nth-child(2) { width: 460px; height: 460px; background: #3b1a6e; bottom: -160px; right: -140px; animation-delay: -8s; }
.aurora i:nth-child(3) { width: 300px; height: 300px; background: #a3284f; top: 40%; left: 55%; opacity: .25; animation-delay: -14s; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.15); } }
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

#app { position: relative; z-index: 2; max-width: 560px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; }
@media (min-width: 600px) { #app { border-left: 1px solid var(--line); border-right: 1px solid var(--line); background: rgba(13, 9, 17, .55); backdrop-filter: blur(6px); } }

/* Barra superior */
#topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + var(--safe-t)) 16px 10px; background: linear-gradient(var(--bg) 60%, rgba(13, 9, 17, 0)); }
.wordmark { font-family: var(--display); font-style: italic; font-size: 27px; letter-spacing: -.5px; display: flex; align-items: center; gap: 8px; }
.moon { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset -6px -2px 0 0 var(--hot); transform: rotate(-20deg); filter: drop-shadow(0 0 8px rgba(255, 61, 139, .7)); }
.top-actions { display: flex; gap: 6px; }
.icon-btn { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--card); border: 1px solid var(--line); cursor: pointer; }
.icon-btn:active { transform: scale(.94); }
.badge { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--hot);
  color: #fff; font: 700 11px/18px var(--sans); text-align: center; box-shadow: 0 0 0 2px var(--bg); }

#view { flex: 1; padding: 4px 16px calc(96px + var(--safe-b)); }
#view.bare { padding: 0; }

/* Barra inferior */
#tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 560px; z-index: 30;
  display: grid; grid-template-columns: repeat(4, 1fr); padding: 8px 10px calc(8px + var(--safe-b));
  background: rgba(16, 11, 21, .82); backdrop-filter: blur(18px) saturate(1.4); border-top: 1px solid var(--line); }
#tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; color: var(--dim); font-size: 11px; font-weight: 600; transition: color .2s; }
#tabbar a.on { color: var(--text); }
#tabbar a.on svg { stroke: var(--hot); filter: drop-shadow(0 0 6px rgba(255, 61, 139, .6)); }
#tabbar .badge { top: 0; right: calc(50% - 22px); }

/* Tipografía */
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.3px; }
.display { font-family: var(--display); font-style: italic; font-weight: 400; letter-spacing: -1px; line-height: 1.02; }
.h1 { font-size: 30px; }
.h2 { font-size: 21px; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 13px; }
.tiny { font-size: 11.5px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.stack > * + * { margin-top: 12px; }
.mt { margin-top: 16px; } .mt2 { margin-top: 28px; } .mb { margin-bottom: 16px; }
.center { text-align: center; }
.grow { flex: 1; min-width: 0; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 0 10px; }
.section-title h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 1.4px; color: var(--muted); font-weight: 700; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card2); font-weight: 650; cursor: pointer; transition: transform .15s, box-shadow .2s, opacity .2s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn.hot { background: var(--grad); border: 0; color: #fff; box-shadow: 0 8px 30px -8px rgba(255, 61, 139, .7); }
.btn.ghost { background: transparent; }
.btn.danger { background: rgba(255, 61, 100, .12); border-color: rgba(255, 61, 100, .35); color: #ff7a9c; }
.btn.block { width: 100%; }
.btn.sm { height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn.xs { height: 30px; padding: 0 12px; font-size: 12.5px; }
.btn svg { width: 18px; height: 18px; }
.link { color: var(--hot); font-weight: 600; cursor: pointer; background: none; border: 0; padding: 0; }

/* Formularios */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 12.5px; font-weight: 650; color: var(--muted); margin: 0 0 6px 4px; letter-spacing: .2px; }
.input, textarea.input, select.input { width: 100%; height: 50px; padding: 0 16px; border-radius: var(--r-sm); border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04); outline: none; transition: border .2s, box-shadow .2s; }
textarea.input { height: auto; min-height: 110px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a898b2' fill='none' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
select.input option { background: var(--bg2); }
.input:focus { border-color: rgba(255, 61, 139, .6); box-shadow: 0 0 0 4px rgba(255, 61, 139, .12); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); font-size: 13.5px; cursor: pointer; user-select: none; transition: all .15s; }
.chip.on { background: var(--grad-soft); border-color: rgba(255, 61, 139, .55); color: #fff; }
.chip.static { cursor: default; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; cursor: pointer; font-size: 14px; }
.check input { display: none; }
.check .box { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--dim); flex-shrink: 0; display: grid; place-items: center; transition: all .15s; margin-top: 1px; }
.check input:checked + .box { background: var(--grad); border-color: transparent; }
.check input:checked + .box::after { content: ""; width: 10px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.toggle:last-child { border-bottom: 0; }
.toggle input { display: none; }
.toggle .sw { width: 46px; height: 28px; border-radius: 14px; background: var(--card2); border: 1px solid var(--line); position: relative; flex-shrink: 0; transition: background .2s; }
.toggle .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.toggle input:checked + .sw { background: var(--grad); border-color: transparent; }
.toggle input:checked + .sw::after { transform: translateX(18px); }
.range-row { display: flex; gap: 10px; align-items: center; }
input[type=range] { width: 100%; accent-color: var(--hot); }

/* Tarjetas y paneles */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.card.glow { background: var(--grad-soft); border-color: rgba(255, 61, 139, .25); }
.list { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .15s; }
.list-item:last-child { border-bottom: 0; }
.list-item:active { background: var(--card2); }
.list-item .ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--card2); flex-shrink: 0; }
.list-item .ico svg { width: 18px; height: 18px; }
.list-item .chev { color: var(--dim); }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--card2); }
.pill.hot { background: var(--grad); color: #fff; }
.pill.ok { background: rgba(74, 222, 128, .14); color: var(--ok); }
.pill.warn { background: rgba(251, 191, 36, .14); color: var(--warn); }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .big { font-size: 46px; margin-bottom: 8px; }
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; margin-bottom: 14px; }
.tabs button { flex: 1; height: 38px; border: 0; background: none; border-radius: 999px; font-weight: 650; font-size: 14px; color: var(--muted); cursor: pointer; position: relative; }
.tabs button.on { background: var(--card2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.tabs .badge { position: static; display: inline-block; margin-left: 6px; box-shadow: none; }

/* Avatar */
.av { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--grad); display: grid; place-items: center; font-weight: 700; color: #fff; overflow: hidden; position: relative; }
.av.sm { width: 32px; height: 32px; font-size: 13px; }
.av.md { width: 62px; height: 62px; margin: 0 auto 6px; font-size: 22px; }
.av.lg { width: 86px; height: 86px; font-size: 30px; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av.online::after { content: ""; position: absolute; right: 1px; bottom: 1px; width: 11px; height: 11px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 2px var(--bg); }
.vbadge { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: var(--grad); vertical-align: -3px; margin-left: 4px; }
.vbadge svg { width: 11px; height: 11px; stroke: #fff; stroke-width: 3; }

/* Bienvenida */
.welcome { min-height: 100dvh; display: flex; flex-direction: column; justify-content: flex-end; padding: calc(30px + var(--safe-t)) 24px calc(30px + var(--safe-b)); position: relative; }
.welcome .orb { flex-shrink: 0; width: 170px; height: 170px; margin: 0 auto 34px; border-radius: 50%;
  background: radial-gradient(circle at 30% 40%, #ffd0e3, #ff3d8b 40%, #7b2ff7 85%);
  -webkit-mask: radial-gradient(circle at 74% 30%, transparent 40%, #000 41%); mask: radial-gradient(circle at 74% 30%, transparent 40%, #000 41%);
  filter: drop-shadow(0 0 50px rgba(255, 61, 139, .6)); animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.05) rotate(-4deg); filter: drop-shadow(0 0 80px rgba(255, 61, 139, .8)); } }
.welcome h1 { font-size: 54px; }
.welcome .lead { font-size: 17px; color: var(--muted); margin: 14px 0 26px; max-width: 30ch; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 26px; }
.feature { padding: 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); font-size: 13px; }
.feature b { display: block; font-size: 14px; margin: 6px 0 2px; }
.feature .e { font-size: 20px; }

/* Auth */
.auth { padding: calc(24px + var(--safe-t)) 22px 40px; }
.steps { display: flex; gap: 6px; margin: 18px 0 26px; }
.steps i { flex: 1; height: 4px; border-radius: 2px; background: var(--card2); }
.steps i.on { background: var(--grad); }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 600; cursor: pointer; background: none; border: 0; padding: 6px 0; }
.legal { max-height: 210px; overflow: auto; padding: 14px; border-radius: var(--r-sm); background: rgba(0, 0, 0, .25); border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.legal h4 { color: var(--text); margin: 10px 0 4px; font-size: 13px; }
.legal h4:first-child { margin-top: 0; }

/* Cuadrícula de cercanía */
.near-head { display: flex; align-items: flex-end; justify-content: space-between; margin: 6px 0 14px; }
.near-head .live { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.near-head .live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
@media (max-width: 380px) { .grid { grid-template-columns: repeat(2, 1fr); } }
.tile { position: relative; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: var(--bg3); cursor: pointer; animation: rise .45s both; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tile:hover img { transform: scale(1.04); }
.tile .ph { width: 100%; height: 100%; display: grid; place-items: center; font: italic 44px var(--display); color: rgba(255, 255, 255, .85); }
.tile::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(8, 4, 10, .92)); }
.tile .meta { position: absolute; left: 8px; right: 8px; bottom: 7px; z-index: 2; font-size: 12.5px; }
.tile .meta b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .meta span { color: rgba(255, 255, 255, .7); font-size: 11px; }
.tile .on-dot { position: absolute; top: 8px; left: 8px; z-index: 2; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 2px rgba(0, 0, 0, .35); }
.tile .vb { position: absolute; top: 6px; right: 6px; z-index: 2; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.filter-bar { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 14px; padding: 0 16px; scrollbar-width: none; }
.filter-bar::-webkit-scrollbar { display: none; }
.filter-bar .chip { flex-shrink: 0; }
.gate { text-align: center; padding: 40px 22px; }
.gate .radar { width: 150px; height: 150px; margin: 0 auto 24px; border-radius: 50%; position: relative; background: radial-gradient(circle, rgba(255, 61, 139, .25), transparent 70%); }
.gate .radar::before, .gate .radar::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(255, 61, 139, .5); animation: wave 2.6s ease-out infinite; }
.gate .radar::after { animation-delay: 1.3s; }
.gate .radar b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 40px; }
@keyframes wave { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.3); opacity: 0; } }

/* Perfil */
.profile-hero { position: relative; margin: 0 -16px; }
.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 4 / 5; max-height: 72vh; background: var(--bg3); }
.gallery::-webkit-scrollbar { display: none; }
.gallery > * { flex: 0 0 100%; scroll-snap-align: start; width: 100%; height: 100%; object-fit: cover; }
.gallery .ph { display: grid; place-items: center; font: italic 120px var(--display); background: var(--grad); }
.dots { position: absolute; top: 12px; left: 16px; right: 16px; display: flex; gap: 4px; z-index: 3; }
.dots i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .35); }
.dots i.on { background: #fff; }
.hero-shade { position: absolute; inset: auto 0 0; height: 55%; background: linear-gradient(transparent, rgba(13, 9, 17, .88)); pointer-events: none; }
.hero-info { position: absolute; left: 18px; right: 18px; bottom: 14px; z-index: 3; }
.hero-info h1 { font-size: 38px; }
.hero-top { position: absolute; top: calc(22px + var(--safe-t)); left: 12px; right: 12px; display: flex; justify-content: space-between; z-index: 4; }
.hero-top .icon-btn { background: rgba(0, 0, 0, .35); backdrop-filter: blur(10px); border-color: rgba(255, 255, 255, .15); }
.actions { display: flex; gap: 10px; margin: 6px 0 4px; }
.actions .btn { flex: 1; }
.like-btn.on { background: var(--grad); color: #fff; border: 0; }
.like-btn.on svg { fill: #fff; }
.private-box { position: relative; border-radius: var(--r); overflow: hidden; min-height: 120px; display: grid; place-items: center; text-align: center; padding: 22px;
  background: repeating-linear-gradient(45deg, rgba(255, 61, 139, .08) 0 12px, rgba(164, 107, 255, .08) 12px 24px); border: 1px dashed rgba(255, 61, 139, .35); }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.thumbs img, .thumbs .add { aspect-ratio: 3 / 4; width: 100%; object-fit: cover; border-radius: 12px; cursor: pointer; }
.thumbs .add { display: grid; place-items: center; border: 1.5px dashed var(--dim); color: var(--muted); background: var(--card); font-size: 28px; }
.thumb-wrap { position: relative; }
.thumb-wrap .x { position: absolute; top: 5px; right: 5px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); color: #fff; cursor: pointer; display: grid; place-items: center; }
.thumb-wrap .x svg { width: 14px; height: 14px; }
.thumb-wrap .tag { position: absolute; left: 6px; bottom: 6px; }

/* Comunidades */
.comm-strip { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px 6px; padding: 2px 16px 6px; scrollbar-width: none; }
.comm-strip::-webkit-scrollbar { display: none; }
.comm-bubble { flex: 0 0 auto; width: 74px; text-align: center; font-size: 11.5px; cursor: pointer; }
.comm-bubble .ic { width: 62px; height: 62px; margin: 0 auto 6px; border-radius: 20px; display: grid; place-items: center; font-size: 28px; position: relative; }
.comm-bubble .ic::after { content: ""; position: absolute; inset: -3px; border-radius: 23px; border: 2px solid var(--c, var(--hot)); opacity: .55; }
.comm-card { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); margin-bottom: 10px; cursor: pointer; }
.comm-card .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; flex-shrink: 0; }
.comm-hero { margin: 0 -16px 14px; padding: 26px 18px 18px; position: relative; overflow: hidden; }
.comm-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 0% 0%, var(--c), transparent 60%); opacity: .35; }
.comm-hero > * { position: relative; }
.comm-hero .ic { font-size: 44px; }
.post { padding: 16px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); margin-bottom: 10px; animation: rise .4s both; }
.post-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.post-head .cm { color: var(--text); font-weight: 650; }
.post h3 { font-size: 17px; line-height: 1.3; margin-bottom: 6px; cursor: pointer; }
.post .body { color: #e2d6e4; white-space: pre-wrap; word-wrap: break-word; }
.post .body.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.post .pimg { border-radius: 14px; margin-top: 10px; max-height: 420px; width: 100%; object-fit: cover; }
.post-foot { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.vote { display: inline-flex; align-items: center; border-radius: 999px; background: var(--card2); }
.vote button { width: 34px; height: 32px; border: 0; background: none; cursor: pointer; color: var(--muted); display: grid; place-items: center; }
.vote button svg { width: 17px; height: 17px; }
.vote button.up.on { color: var(--hot); }
.vote button.down.on { color: var(--violet); }
.vote b { min-width: 22px; text-align: center; font-size: 13px; }
.foot-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--card2); border: 0; font-size: 13px; color: var(--muted); cursor: pointer; }
.foot-btn svg { width: 16px; height: 16px; }
.comment { padding: 12px 0 4px; border-top: 1px solid var(--line); }
.comment.reply { margin-left: 22px; border-left: 2px solid var(--line); border-top: 0; padding-left: 12px; }
.comment .who { font-size: 12.5px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.comment .who b { color: var(--text); }
.comment p { margin: 4px 0 6px; white-space: pre-wrap; word-wrap: break-word; }
.comment .ops { display: flex; gap: 12px; font-size: 12.5px; color: var(--muted); }
.comment .ops button { background: none; border: 0; color: inherit; cursor: pointer; padding: 0; font-weight: 600; }
.composer-fab { position: fixed; right: max(18px, calc(50% - 262px)); bottom: calc(86px + var(--safe-b)); z-index: 25; width: 58px; height: 58px; border-radius: 50%;
  border: 0; background: var(--grad); color: #fff; box-shadow: 0 12px 30px -6px rgba(255, 61, 139, .75); cursor: pointer; display: grid; place-items: center; }
.composer-fab svg { width: 26px; height: 26px; stroke-width: 2.2; }

/* Chats */
.chat-item { display: flex; gap: 12px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.chat-item .av { width: 54px; height: 54px; }
.chat-item .unread { min-width: 22px; height: 22px; border-radius: 11px; padding: 0 6px; background: var(--hot); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.chat-item.has-unread .prev { color: var(--text); font-weight: 600; }
.chat-wrap { display: flex; flex-direction: column; height: 100dvh; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: calc(10px + var(--safe-t)) 12px 10px; border-bottom: 1px solid var(--line); background: rgba(13, 9, 17, .9); backdrop-filter: blur(14px); }
.chat-head .who { flex: 1; min-width: 0; cursor: pointer; }
.chat-head .who b { display: block; }
.msgs { flex: 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 6px; }
.msg { max-width: 78%; padding: 10px 14px; border-radius: 20px; background: var(--card2); align-self: flex-start; border-bottom-left-radius: 6px; word-wrap: break-word; white-space: pre-wrap; position: relative; animation: pop .25s both; }
.msg.mine { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-left-radius: 20px; border-bottom-right-radius: 6px; }
.msg .t { display: block; font-size: 10.5px; opacity: .65; margin-top: 3px; text-align: right; }
.msg.img { padding: 4px; overflow: hidden; }
.msg.img img { border-radius: 16px; max-height: 320px; cursor: pointer; }
.msg .blurred { filter: blur(26px) saturate(1.3); transform: scale(1.02); }
.msg .reveal { position: absolute; inset: 4px; display: grid; place-items: center; border-radius: 16px; cursor: pointer; font-size: 13px; font-weight: 700; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.msg.once { background: transparent; border: 1.5px dashed rgba(255, 61, 139, .6); cursor: pointer; color: var(--text); }
.msg.once.mine { color: #fff; border-color: rgba(255, 255, 255, .5); background: rgba(255, 61, 139, .25); }
.msg .eph { font-size: 10.5px; opacity: .8; }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.day-sep { align-self: center; font-size: 11.5px; color: var(--dim); margin: 10px 0 4px; }
.seen { align-self: flex-end; font-size: 11px; color: var(--dim); margin-top: -2px; }
.chat-input { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px calc(10px + var(--safe-b)); border-top: 1px solid var(--line); background: rgba(13, 9, 17, .92); }
.chat-input textarea { flex: 1; min-height: 44px; max-height: 120px; padding: 11px 16px; border-radius: 22px; border: 1px solid var(--line); background: var(--card); outline: none; resize: none; line-height: 1.4; }
.chat-input .icon-btn { width: 44px; height: 44px; }
.chat-input .send { background: var(--grad); border: 0; color: #fff; }
.chat-input .eph-on { background: rgba(255, 61, 139, .2); border-color: var(--hot); color: var(--hot); }
.chat-banner { margin: 10px 14px 0; padding: 12px 14px; border-radius: 14px; background: var(--grad-soft); border: 1px solid rgba(255, 61, 139, .25); font-size: 13.5px; }

/* Hojas (bottom sheets) y modales */
.sheet-bg { position: fixed; inset: 0; z-index: 60; background: rgba(5, 2, 8, .6); backdrop-filter: blur(4px); animation: fade .2s both; }
.sheet { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; max-width: 560px; max-height: 90dvh; overflow-y: auto; z-index: 61;
  background: var(--bg2); border: 1px solid var(--line); border-bottom: 0; border-radius: 26px 26px 0 0; padding: 10px 20px calc(24px + var(--safe-b)); animation: up .28s cubic-bezier(.2, .9, .3, 1.1) both; }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--dim); margin: 0 auto 16px; opacity: .6; }
.sheet h2 { font-size: 20px; margin-bottom: 14px; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translate(-50%, 100%); } }
.match-modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; text-align: center; padding: 30px; background: radial-gradient(circle at 50% 40%, rgba(255, 61, 139, .45), rgba(13, 9, 17, .96) 65%); animation: fade .3s both; }
.match-modal .pair { display: flex; justify-content: center; margin-bottom: 24px; }
.match-modal .pair .av { width: 120px; height: 120px; border: 4px solid var(--bg); font-size: 40px; }
.match-modal .pair .av:first-child { transform: rotate(-8deg) translateX(14px); }
.match-modal .pair .av:last-child { transform: rotate(8deg) translateX(-14px); }
.match-modal h1 { font-size: 52px; margin-bottom: 8px; }
.hearts { position: fixed; inset: 0; pointer-events: none; z-index: 71; overflow: hidden; }
.hearts i { position: absolute; bottom: -40px; font-style: normal; font-size: 26px; animation: float 3s ease-in forwards; }
@keyframes float { to { transform: translateY(-110vh) rotate(30deg); opacity: 0; } }

/* Toasts */
#toast-root { position: fixed; top: calc(14px + var(--safe-t)); left: 50%; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; width: calc(100% - 32px); max-width: 420px; pointer-events: none; }
.toast { padding: 12px 16px; border-radius: 14px; background: rgba(36, 24, 44, .96); border: 1px solid var(--line); box-shadow: 0 10px 40px rgba(0, 0, 0, .5); font-size: 14px; animation: drop .3s both; backdrop-filter: blur(10px); }
.toast.err { border-color: rgba(255, 61, 100, .5); }
.toast.ok { border-color: rgba(74, 222, 128, .4); }
@keyframes drop { from { opacity: 0; transform: translateY(-10px); } }

/* Pantalla de pánico (clima neutro) */
#panic { position: fixed; inset: 0; z-index: 999; background: linear-gradient(180deg, #4a90d9 0%, #78b4ea 55%, #a9d1f3 100%); color: #fff; font-family: var(--sans); }
.wx { max-width: 420px; margin: 0 auto; padding: calc(70px + var(--safe-t)) 24px; text-align: center; }
.wx-city { font-size: 28px; margin: 0; }
.wx-temp { font-size: 96px; font-weight: 200; margin: 0; line-height: 1.05; user-select: none; -webkit-user-select: none; cursor: default; }
.wx-cond, .wx-range { margin: 2px 0; font-size: 18px; opacity: .92; }
.wx-days { margin-top: 40px; background: rgba(255, 255, 255, .18); border-radius: 16px; padding: 6px 16px; text-align: left; }
.wx-days div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .2); font-size: 16px; }
.wx-days div:last-child { border: 0; }

/* Bloqueo con PIN */
.lock { position: fixed; inset: 0; z-index: 95; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding: 30px; }
.pin-dots { display: flex; gap: 14px; }
.pin-dots i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--muted); }
.pin-dots i.on { background: var(--grad); border-color: transparent; }
.pin-pad { display: grid; grid-template-columns: repeat(3, 72px); gap: 14px; }
.pin-pad button { height: 72px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); font-size: 26px; cursor: pointer; }
.pin-pad button:active { background: var(--card2); }
.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }

/* Admin */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat { padding: 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.stat b { display: block; font: italic 30px var(--display); }
.stat span { font-size: 12px; color: var(--muted); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.compare img { border-radius: 12px; aspect-ratio: 3/4; object-fit: cover; width: 100%; }
.evidence { max-height: 260px; overflow: auto; display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 12px; background: rgba(0, 0, 0, .25); }
.evidence .msg { max-width: 90%; font-size: 13px; animation: none; }

.skeleton { background: linear-gradient(90deg, var(--card) 25%, var(--card2) 50%, var(--card) 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 14px; }
@keyframes sk { to { background-position: -200% 0; } }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--card2); border-top-color: var(--hot); animation: spin .8s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.premium-card { position: relative; overflow: hidden; padding: 18px; border-radius: var(--r); background: linear-gradient(135deg, #3a1230, #23123d); border: 1px solid rgba(255, 179, 138, .35); }
.premium-card::after { content: "👑"; position: absolute; right: -6px; top: -10px; font-size: 70px; opacity: .15; transform: rotate(15deg); }
.blur-grid .tile img, .blur-grid .tile .ph { filter: blur(14px); }
