:root {
  /* Paleta "noche en la playa": rosa neón, cian, violeta y atardecer */
  --bg: #0a0418;
  --panel: #150a2e;
  --panel2: #221047;
  --line: rgba(255, 255, 255, .08);
  --text: #f7f0ff;
  --muted: #a99cc9;
  --pink: #ff2d95;
  --cyan: #18e0ff;
  --orange: #ffb347;
  --violet: #a033ff;
  --grad: linear-gradient(135deg, #ff2d95 0%, #a033ff 100%);
  --grad-vc: linear-gradient(90deg, #18e0ff 0%, #ff2d95 100%);
  --r: 18px;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; }
html, body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body {
  min-height: 100vh;
  background:
    radial-gradient(1100px 600px at 90% -10%, rgba(255, 45, 149, .2), transparent 60%),
    radial-gradient(900px 500px at -10% -5%, rgba(24, 224, 255, .12), transparent 55%),
    radial-gradient(900px 500px at 50% 115%, rgba(160, 51, 255, .2), transparent 60%),
    var(--bg);
}
body.noscroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
svg { width: 22px; height: 22px; flex: none; }

/* ---------- Layout ---------- */
.app { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 1240px; margin: 0 auto; }
#view { padding: 12px 12px 100px; min-width: 0; }
.side, .rail { display: none; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
  background: rgba(11, 3, 32, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.bottom {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; justify-content: space-around; align-items: center;
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  background: rgba(11, 3, 32, .94);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.bottom a, .bottom button {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 11px; color: var(--muted); padding: 4px 10px; min-width: 56px;
}
.bottom .active { color: var(--text); }
.bottom .fab {
  width: 54px; height: 54px; min-width: 0; border-radius: 18px; padding: 0;
  justify-content: center; background: var(--grad); color: #fff;
  box-shadow: 0 8px 24px rgba(255, 61, 154, .45); margin-top: -24px;
}
.bottom .fab svg { width: 26px; height: 26px; }

@media (min-width: 900px) {
  .app { grid-template-columns: 230px minmax(0, 600px); gap: 28px; justify-content: center; padding: 0 16px; }
  .topbar, .bottom { display: none; }
  .side { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; padding: 20px 0; }
  #view { padding: 20px 0 48px; }
}
@media (min-width: 1200px) {
  .app { grid-template-columns: 230px minmax(0, 600px) 320px; }
  .rail { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 0; height: 100vh; overflow: auto; padding: 20px 0; }
}

/* ---------- Logo ---------- */
.logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 24px; letter-spacing: -.02em; font-style: italic; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 11px; flex: none; display: block;
  box-shadow: 0 0 0 1.5px rgba(24, 224, 255, .5), 0 0 18px rgba(255, 45, 149, .45);
}
.logo-word { background: var(--grad-vc); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 4px; filter: drop-shadow(0 0 10px rgba(255, 45, 149, .45)); }
.nav-link.active svg, .bottom .active svg { color: var(--cyan); filter: drop-shadow(0 0 6px rgba(24, 224, 255, .6)); }
.chip.on { background: var(--grad-vc) !important; color: #fff !important; }

/* ---------- Side nav ---------- */
.side .logo { padding: 6px 14px 20px; }
.nav-link { display: flex; align-items: center; gap: 14px; padding: 11px 14px; border-radius: 14px; color: var(--muted); font-weight: 600; font-size: 16px; }
.nav-link:hover { background: var(--panel); color: var(--text); }
.nav-link.active { color: var(--text); background: var(--panel2); }
.side > .btn.primary { margin-top: 14px; justify-content: center; padding: 13px; font-size: 15px; }
.me-card { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; }
.me-card:hover { background: var(--panel); }

/* ---------- Buttons & inputs ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 12px;
  font-weight: 700; font-size: 14px; border: 1px solid var(--line); background: var(--panel2);
  transition: transform .1s, filter .15s; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn:hover { filter: brightness(1.12); }
.btn.primary { background: var(--grad); border: 0; color: #fff; box-shadow: 0 6px 20px rgba(255, 45, 149, .35); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 6px 12px; font-size: 13px; }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.btn svg { width: 18px; height: 18px; }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); }
.icon-btn:hover { background: var(--panel2); color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }

.input { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; outline: none; }
.input:focus { border-color: var(--pink); }
textarea.input { resize: vertical; min-height: 110px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- Common ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.view-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 2px 12px; flex-wrap: wrap; }
.view-head h1 { font-size: 22px; font-weight: 800; }
.feed-head { justify-content: flex-start; flex-wrap: nowrap; gap: 12px; overflow-x: auto; scrollbar-width: none; margin: 0 0 12px; border-bottom: 1px solid var(--line); align-items: center; }
.feed-link { flex: none; position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 700; color: var(--muted); padding: 4px 4px 8px; }
.feed-link:hover { color: var(--text); }
.feed-link svg { width: 22px; height: 22px; color: var(--cyan); }
@media (max-width: 430px) {
  .feed-link > span:not(.dot) { display: none; }
  .feed-link { padding: 6px 2px 10px; }
  .feed-link svg { width: 24px; height: 24px; }
}
.feed-link .dot { position: absolute; top: 0; right: -4px; min-width: 16px; height: 16px; font-size: 10px; padding: 0 4px; margin: 0; }
.feed-tab { position: relative; flex: none; white-space: nowrap; padding: 10px 2px 12px; font-size: 15px; font-weight: 800; color: var(--muted); }
.feed-tab.on { color: var(--text); }
.feed-tab.on::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: -1px; height: 3px; border-radius: 3px; background: var(--grad-vc); box-shadow: 0 0 10px rgba(255, 45, 149, .6); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 6px 13px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--panel); border: 1px solid var(--line); color: var(--muted); }
.chip.on { background: var(--text); color: var(--bg); border-color: transparent; }
.meta { color: var(--muted); font-size: 13px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.hint { color: var(--muted); font-size: 12px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spacer { flex: 1; }

/* ---------- Avatar & badge ---------- */
.av {
  --s: 40px; width: var(--s); height: var(--s); border-radius: 50%; flex: none;
  display: grid; place-items: center; font-weight: 800; font-size: calc(var(--s) * .4); color: #fff;
  background: linear-gradient(135deg, hsl(var(--h) 90% 62%), hsl(calc(var(--h) + 45) 85% 42%));
}
.av.sm { --s: 32px; }
.av.lg { --s: 92px; border: 4px solid var(--panel); }
.badge {
  display: inline-flex; align-items: center; gap: 3px; font-size: 10px; font-weight: 800; letter-spacing: .05em;
  padding: 2px 6px; border-radius: 6px; background: var(--grad); color: #fff; text-transform: uppercase; font-style: normal;
}
.badge svg { width: 10px; height: 10px; fill: currentColor; stroke: none; }

/* ---------- Posts ---------- */
.composer-mini { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; color: var(--muted); text-align: left; }
.composer-mini .fake { flex: 1; }
.composer-mini svg { color: var(--pink); }
.post { overflow: hidden; }
.post-head { display: flex; align-items: center; gap: 10px; padding: 12px 10px 8px 14px; }
.who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.who b { display: flex; align-items: center; gap: 4px 6px; flex-wrap: wrap; }
.badge { flex: none; white-space: nowrap; }
.who span { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-text { padding: 0 14px 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.tag { color: var(--cyan); font-weight: 600; }
.media { display: block; width: 100%; max-height: 560px; object-fit: cover; background: #000; }
img.media { aspect-ratio: 4 / 3; }
.media-expired { margin: 0 14px 4px; padding: 28px 16px; border-radius: 14px; background: var(--panel2); color: var(--muted); text-align: center; font-size: 14px; }
.post-actions { display: flex; gap: 4px; padding: 6px 8px; }
.act { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 14px; }
.act:hover { background: var(--panel2); color: var(--text); }
.act.on { color: var(--pink); }
.act.on svg { fill: currentColor; }
.act svg { width: 20px; height: 20px; }
.comments { border-top: 1px solid var(--line); padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.comment { display: flex; gap: 10px; font-size: 14px; }
.comment .bubble { background: var(--panel2); padding: 8px 12px; border-radius: 14px; min-width: 0; overflow-wrap: anywhere; }
.comment b { font-size: 13px; margin-right: 6px; }
.comment-form { display: flex; gap: 8px; }

/* ---------- Crews ---------- */
.crew { display: flex; gap: 14px; padding: 14px; align-items: center; }
.emblem {
  width: 56px; height: 56px; flex: none; display: grid; place-items: center; font-weight: 900; font-size: 15px; color: #fff;
  clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%);
  background: linear-gradient(135deg, hsl(var(--h) 85% 55%), hsl(calc(var(--h) + 60) 80% 32%));
}
.emblem.sm { width: 36px; height: 36px; font-size: 10px; }
.crew-info { flex: 1; min-width: 0; }
.crew-info h3 { font-size: 16px; }
.crew-info p { color: var(--muted); font-size: 14px; margin: 2px 0 4px; }

/* ---------- LFG ---------- */
.lfg { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.lfg-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pill { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--panel2); }
.pill.a { background: hsl(var(--h) 80% 55% / .18); color: hsl(var(--h) 95% 74%); }
.lfg-when { margin-left: auto; color: var(--muted); font-size: 13px; font-weight: 600; }
.lfg-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.slots { display: flex; gap: 4px; align-items: center; }
.slot { width: 10px; height: 10px; border-radius: 50%; background: var(--panel2); border: 1px solid rgba(255, 255, 255, .15); }
.slot.full { background: var(--grad); border: 0; }

/* ---------- Profile ---------- */
.profile { overflow: hidden; }
.banner { height: 140px; background: linear-gradient(135deg, hsl(var(--h) 85% 50%), #2b1055 75%); }
.profile-body { padding: 0 16px 16px; margin-top: -46px; }
.profile-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.profile h2 { font-size: 22px; margin-top: 8px; display: flex; align-items: center; gap: 8px; }
.handle { color: var(--muted); }
.bio { margin: 10px 0 6px; }
.stats { display: flex; gap: 22px; margin-top: 12px; }
.stats b { display: block; font-size: 18px; }
.stats span { color: var(--muted); font-size: 13px; }
.section-title { font-size: 16px; font-weight: 800; margin: 18px 2px 10px; }

/* ---------- Premium ---------- */
.hero { padding: 30px 20px; text-align: center; background: linear-gradient(160deg, rgba(255, 61, 154, .28), rgba(139, 92, 246, .22)), var(--panel); }
.hero h1 { font-size: 28px; font-weight: 900; }
.hero p { color: var(--muted); max-width: 420px; margin: 8px auto 0; }
.price { font-size: 42px; font-weight: 900; margin: 14px 0; }
.price small { font-size: 16px; color: var(--muted); font-weight: 600; }
.compare { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare th, .compare td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.compare th:not(:first-child), .compare td:not(:first-child) { text-align: center; }
.compare tr:last-child td { border-bottom: 0; }
.yes { color: #4ade80; font-weight: 800; }
.no { color: var(--muted); }
.note { color: var(--muted); font-size: 13px; padding: 4px 4px; }

/* ---------- Rail ---------- */
.rail .card { padding: 14px; }
.rail h4 { font-size: 15px; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; }
.rail h4 a { font-size: 13px; color: var(--pink); font-weight: 600; }
.mini { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.rail h4 + .mini { border-top: 0; }
.mini .t { flex: 1; min-width: 0; font-size: 14px; }
.mini .t span { display: block; color: var(--muted); font-size: 12px; }
.premium-cta { display: block; background: linear-gradient(160deg, rgba(255, 61, 154, .25), rgba(255, 138, 61, .12)), var(--panel) !important; }
.premium-cta b { display: flex; align-items: center; gap: 6px; }
.premium-cta b svg { width: 16px; height: 16px; color: var(--orange); }
.premium-cta span { color: var(--muted); font-size: 13px; }
.disclaimer { color: var(--muted); font-size: 12px; padding: 0 6px; }

/* ---------- Avisos, badges y top bar ---------- */
.dot { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--pink); color: #fff; font-size: 11px; font-weight: 800; display: inline-grid; place-items: center; box-shadow: 0 0 10px rgba(255, 45, 149, .6); }
.top-ic { position: relative; }
.top-ic.on { color: var(--cyan); }
.top-ic .dot { position: absolute; top: 2px; right: 0; min-width: 16px; height: 16px; font-size: 10px; padding: 0 4px; }
.badge.founder { background: linear-gradient(135deg, #18e0ff, #a033ff); }
.badge.admin { background: linear-gradient(135deg, #00c896, #18a0ff); }
.mod-text { margin-top: 6px; padding: 8px 12px; border-radius: 10px; background: var(--bg); border-left: 3px solid var(--pink); font-size: 14px; color: #d9cff0; overflow-wrap: anywhere; }
.age { font-size: 11px; font-weight: 900; padding: 2px 7px; border-radius: 6px; border: 1.5px solid var(--pink); color: var(--pink); font-style: normal; letter-spacing: .02em; }
.notif { display: flex; gap: 12px; padding: 14px; align-items: flex-start; }
.notif.unread { border-color: rgba(24, 224, 255, .45); box-shadow: 0 0 0 1px rgba(24, 224, 255, .15) inset; }
.notif-body { flex: 1; min-width: 0; }
.gamer-id { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); font-size: 14px; margin: 6px 0; }
.gamer-id > svg { color: var(--cyan); width: 18px; height: 18px; }
.gamer-id > span { flex: 1; min-width: 0; }
.warn { color: var(--orange); font-size: 13px; }
.invite-opt { display: flex; align-items: center; gap: 10px; padding: 12px; width: 100%; text-align: left; }
.invite-opt:hover:not(:disabled) { border-color: var(--cyan); }
.invite-opt:disabled { opacity: .55; cursor: default; }

/* ---------- Resumen del día ---------- */
.view-head h1 svg { color: var(--cyan); vertical-align: -3px; }
.sum-teaser { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: linear-gradient(120deg, rgba(24, 224, 255, .14), rgba(255, 45, 149, .14)), var(--panel) !important; border-color: rgba(24, 224, 255, .25) !important; }
.sum-teaser > svg { color: var(--cyan); filter: drop-shadow(0 0 6px rgba(24, 224, 255, .7)); }
.sum-teaser div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sum-teaser span { color: var(--muted); font-size: 13px; }
.go { color: var(--cyan); font-weight: 700; font-size: 13px; white-space: nowrap; }
.summary { padding: 18px; }
.ai-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--cyan); margin-bottom: 10px; }
.ai-label svg { width: 15px; height: 15px; }
.sum-intro { margin-bottom: 12px; }
.sum-list { display: flex; flex-direction: column; gap: 8px; }
.sum-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); transition: border-color .15s, transform .1s; }
.sum-item:hover { border-color: var(--cyan); }
.sum-item:active { transform: scale(.99); }
.sum-num { width: 28px; height: 28px; flex: none; border-radius: 9px; display: grid; place-items: center; font-weight: 900; background: var(--grad-vc); color: #fff; }
.sum-text { flex: 1; min-width: 0; font-size: 14px; }
.sum-why { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--pink); }
.sum-h { font-size: 15px; margin: 18px 0 8px; }
.typing span { animation: blink 1s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
.skeleton { height: 14px; border-radius: 8px; margin-top: 12px; background: linear-gradient(90deg, var(--panel2), #33205f, var(--panel2)); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; }
@keyframes blink { 50% { opacity: .2; } }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Tienda ---------- */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.item { padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.item .big { font-size: 40px; font-weight: 900; line-height: 1; background: var(--grad-vc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.item h3 { font-size: 15px; }
.item p { color: var(--muted); font-size: 13px; flex: 1; }
.price-tag { font-weight: 800; }
.preview-av { display: grid; place-items: center; height: 104px; }
.soon { opacity: .6; }
.wallet { padding: 16px 10px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; }
.wallet b { display: block; font-size: 26px; }
.wallet span { font-size: 12px; color: var(--muted); }
.meter { height: 6px; border-radius: 9px; background: var(--panel2); overflow: hidden; margin: 8px 8px 0; }
.meter i { display: block; height: 100%; background: var(--grad-vc); }

/* Marcos de avatar */
.av.frame-pink { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px #ff2d95, 0 0 18px rgba(255, 45, 149, .85); }
.av.frame-cyan { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px #18e0ff, 0 0 18px rgba(24, 224, 255, .85); }
.av.frame-sunset { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px #ffb347, 0 0 18px rgba(255, 120, 80, .85); }
.check-ok { color: #4ade80; }

/* ---------- Invitaciones y compartir ---------- */
.invite-hero { padding: 24px 18px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; background: linear-gradient(160deg, rgba(74, 222, 128, .16), rgba(24, 224, 255, .14)), var(--panel) !important; }
.invite-hero h1 { font-size: 26px; font-weight: 900; }
.invite-hero p { color: #d9cff0; max-width: 440px; }
.invite-gift { font-size: 48px; }
.invite-code { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--bg); border: 1px dashed rgba(24, 224, 255, .5); margin-top: 6px; }
.invite-code span { font-size: 12px; color: var(--muted); }
.invite-code b { font-size: 24px; letter-spacing: .15em; font-family: ui-monospace, Consolas, monospace; color: var(--cyan); }
.share-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.share-btn { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px; border-radius: 14px; font-weight: 800; font-size: 14px; color: #fff; border: 0; }
.share-btn:hover { filter: brightness(1.1); }
.share-btn.wa { background: #1faa59; }
.share-btn.tg { background: #2a9fd8; }
.share-btn.x { background: #111; border: 1px solid #333; }
.share-btn.fb { background: #1877f2; }
.share-btn.rd { background: #ff4500; }
.share-btn.ig { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); }
.share-btn.tt { background: #000; box-shadow: inset 2px 0 0 #25f4ee, inset -2px 0 0 #fe2c55; }
.share-btn.cp { background: var(--panel2); border: 1px solid var(--line); }
.goal { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.goal .t { flex: 1; display: flex; flex-direction: column; }
.goal .t span { color: var(--muted); font-size: 13px; }
.goal.done { border-color: rgba(74, 222, 128, .4); }

/* ---------- Enlaces a guías y vídeos externos ---------- */
.link-card { display: block; margin: 0 14px 4px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); transition: border-color .15s; }
.link-card:hover { border-color: var(--cyan); }
.link-thumb { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center;
  background: radial-gradient(circle at 70% 30%, hsl(var(--h) 90% 60% / .55), transparent 55%), linear-gradient(135deg, hsl(var(--h) 70% 28%), hsl(calc(var(--h) + 70) 70% 14%)); }
.link-thumb.map { background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(135deg, hsl(var(--h) 60% 30%), hsl(calc(var(--h) + 50) 60% 14%)); background-size: 28px 28px, 28px 28px, auto; }
.link-ic { font-size: 44px; }
.link-thumb.video .link-ic { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; color: #fff; background: rgba(255, 45, 149, .85); box-shadow: 0 0 24px rgba(255, 45, 149, .6); padding-left: 4px; }
.link-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; }
.link-site { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.link-go { font-size: 13px; color: var(--cyan); font-weight: 700; margin-top: 4px; }

/* ---------- Vídeos con reproducción automática ---------- */
.vwrap { position: relative; background: #000; }
.vwrap video { display: block; width: 100%; cursor: pointer; }
.vwrap.film video { aspect-ratio: 9 / 16; max-height: min(78vh, 760px); object-fit: contain; }
.vsound { position: absolute; right: 12px; bottom: 16px; width: 44px; height: 44px; border-radius: 50%; background: rgba(5, 0, 15, .65); font-size: 20px; display: grid; place-items: center; z-index: 2; }
.vpause { position: absolute; inset: 0; display: grid; place-items: center; font-size: 56px; color: #fff; opacity: 0; pointer-events: none; transition: opacity .2s; text-shadow: 0 2px 16px rgba(0, 0, 0, .6); }
.vwrap.paused .vpause { opacity: .95; }
.vwrap .clip-bar { z-index: 1; }
/* Pestaña Vídeos: cada vídeo encaja en la pantalla al hacer scroll */
/* (Sin scroll-snap: en iPhone dentro de visores hacía que el scroll se quedara enganchado) */
.reels .post { scroll-margin-top: 72px; }
.reels .vwrap.film video, .reels .clip-canvas { max-height: calc(100vh - 260px); }

/* ---------- Clips ---------- */
.clip { position: relative; background: #000; cursor: pointer; }
.clip-canvas { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.clip-play { position: absolute; inset: 0; width: 100%; height: 100%; display: grid; place-items: center; font-size: 46px; color: #fff; opacity: 0; transition: opacity .2s; text-shadow: 0 2px 16px rgba(0, 0, 0, .6); }
.clip.paused .clip-play { opacity: .95; background: rgba(5, 0, 15, .25); }
.clip-tag, .clip-dur { position: absolute; top: 10px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 8px; background: rgba(5, 0, 15, .6); color: #fff; pointer-events: none; }
.clip-tag { left: 10px; }
.clip-dur { right: 10px; }
.clip-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .15); pointer-events: none; }
.clip-bar i { display: block; height: 100%; width: 0; background: var(--grad-vc); }

/* ---------- Promociones ---------- */
.post.promoted { border-color: rgba(255, 179, 71, .45); box-shadow: 0 0 0 1px rgba(255, 179, 71, .15) inset; }
.promo-label { padding: 8px 14px 0; font-size: 12px; font-weight: 800; color: #ffb347; }
.promo-btn { color: #ffb347; }
.promo-hero { display: flex; align-items: center; gap: 12px; padding: 14px; background: linear-gradient(120deg, rgba(255, 179, 71, .2), rgba(255, 45, 149, .15)), var(--panel) !important; border-color: rgba(255, 179, 71, .35) !important; }
.promo-hero > div:not(.promo-rocket) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.promo-hero span { color: var(--muted); font-size: 13px; }
.promo-rocket { font-size: 30px; }
.lfg.promoted, .crew-wrap.promoted { border-color: rgba(255, 179, 71, .45); box-shadow: 0 0 0 1px rgba(255, 179, 71, .15) inset; }
.crew-wrap .promo-label { padding: 10px 14px 0; }
.crew-btns { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.boost-btn { color: #ffb347; border-color: rgba(255, 179, 71, .35); }
.plan-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.level-hint { font-size: 13px; color: #ffd27a; background: rgba(255, 179, 71, .1); border: 1px solid rgba(255, 179, 71, .25); border-radius: 12px; padding: 8px 12px; }
.plan-opt { display: flex; align-items: center; gap: 10px; padding: 12px 14px; width: 100%; text-align: left; flex-wrap: wrap; }
.plan-opt.on { border-color: #ffb347; box-shadow: 0 0 0 1px #ffb347 inset; background: rgba(255, 179, 71, .08); }

/* ---------- Anuncios ---------- */
.ad { overflow: hidden; border-color: rgba(255, 209, 102, .28); }
.ad-logo { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: linear-gradient(135deg, hsl(var(--h) 85% 55%), hsl(calc(var(--h) + 50) 80% 30%)); }
.ad .icon-btn { font-weight: 800; }
.ad-visual { height: 170px; display: grid; place-items: center; font-size: 72px; background: radial-gradient(circle at 30% 30%, hsl(var(--h) 90% 60% / .55), transparent 60%), linear-gradient(135deg, hsl(var(--h) 70% 25%), hsl(calc(var(--h) + 60) 70% 15%)); }
.ad-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px 12px; flex-wrap: wrap; }
.ad-foot .hint:hover { color: var(--cyan); }
.ad-mini { position: relative; display: flex; gap: 10px; align-items: flex-start; }
.ad-mini .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.ad-mini .t span { color: var(--muted); font-size: 12px; }
.ad-mini .btn { align-self: flex-start; margin-top: 4px; }
.ad-label { position: absolute; top: 10px; right: 12px; font-size: 10px; font-weight: 700; color: #ffd166; }

/* ---------- Prueba Premium ---------- */
.trial-banner { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: 14px; background: linear-gradient(120deg, rgba(255, 179, 71, .18), rgba(255, 45, 149, .14)), var(--panel) !important; border-color: rgba(255, 179, 71, .35) !important; }
.trial-banner span:first-of-type { flex: 1; }
.trial-note { margin: 0 0 14px; color: #ffd27a; }
.trial-end { font-size: 52px; text-align: center; }

/* ---------- Mensajes ---------- */
.convo { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.convo.unread { border-color: rgba(24, 224, 255, .45); }
.convo.unread .convo-last { color: var(--text); font-weight: 600; }
.convo-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.convo-last { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.convo .dot { margin-left: 0; }
.chat { display: flex; flex-direction: column; min-height: calc(100vh - 190px); }
.chat-head { position: sticky; top: 62px; z-index: 5; display: flex; align-items: center; gap: 8px; padding: 8px 10px; }
@media (min-width: 900px) { .chat-head { top: 12px; } }
.chat-msgs { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 16px 4px; }
.msg { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; max-width: 80%; }
.msg.mine { align-self: flex-end; align-items: flex-end; }
.bubble-msg { padding: 10px 14px; border-radius: 18px 18px 18px 6px; background: var(--panel2); overflow-wrap: anywhere; line-height: 1.4; }
.msg.mine .bubble-msg { border-radius: 18px 18px 6px 18px; background: var(--grad); color: #fff; }
.bubble-msg.typing span { animation: blink 1s infinite; font-size: 10px; margin: 0 1px; }
.bubble-msg.typing span:nth-child(2) { animation-delay: .2s; }
.bubble-msg.typing span:nth-child(3) { animation-delay: .4s; }
.chat-form { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); display: flex; gap: 8px; padding: 10px 0; background: linear-gradient(transparent, var(--bg) 30%); }
.chat-form .input { border-radius: 999px; padding: 12px 16px; font-size: 16px; }
.chat-form .btn { border-radius: 999px; padding: 0 16px; }
@media (min-width: 900px) { .chat-form { bottom: 0; } }

/* ---------- Mercado ---------- */
.market-info { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: linear-gradient(120deg, rgba(74, 222, 128, .12), rgba(24, 224, 255, .1)), var(--panel) !important; }
.market-info > svg { color: #4ade80; }
.market-info div { display: flex; flex-direction: column; }
.market-info span { color: var(--muted); font-size: 13px; }
.market-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 12px; }
.listing { overflow: hidden; position: relative; display: flex; flex-direction: column; transition: border-color .15s, transform .1s; }
.listing:hover { border-color: var(--cyan); }
.listing-media { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.emoji-tile { display: grid; place-items: center; font-size: 56px; background: linear-gradient(135deg, hsl(var(--h) 80% 45%), hsl(calc(var(--h) + 70) 75% 25%)); }
.listing-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; }
.listing-price { font-weight: 900; font-size: 17px; }
.listing h3 { font-size: 14px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.listing .meta { font-size: 12px; gap: 4px; }
.feat { position: absolute; top: 8px; left: 8px; z-index: 1; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 8px; background: rgba(10, 4, 24, .8); color: #ffd166; border: 1px solid rgba(255, 209, 102, .4); }
.feat.static { position: static; }
.rating { color: #ffd166; font-weight: 700; }
.listing-detail { overflow: hidden; position: relative; }
.listing-detail .listing-media { max-height: 380px; }
.listing-detail .listing-body { padding: 16px; gap: 10px; }
.listing-detail h2 { font-size: 22px; }
.big-price { font-size: 30px; font-weight: 900; background: var(--grad-vc); -webkit-background-clip: text; background-clip: text; color: transparent; width: fit-content; }
.seller { display: flex; align-items: center; gap: 12px; padding: 14px; margin-top: 12px; }
.how { padding: 16px; margin-top: 12px; }
.how h3 { font-size: 15px; display: flex; align-items: center; gap: 8px; }
.how h3 svg { color: #4ade80; width: 18px; height: 18px; }
.how ol { padding-left: 20px; margin-top: 8px; display: flex; flex-direction: column; gap: 6px; color: #d9cff0; font-size: 14px; }
.fee-box { border-radius: 14px; background: var(--bg); border: 1px solid var(--line); padding: 6px 14px; margin-top: 8px; }
.fee-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: 14px; color: var(--muted); }
.fee-row b { color: var(--text); }
.fee-row.total { border-top: 1px solid var(--line); color: var(--text); font-weight: 700; }
.fee-row.total b { color: #4ade80; }
.order { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.timeline { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.timeline i { flex: 1; height: 2px; background: var(--line); }
.step { padding: 3px 9px; border-radius: 999px; background: var(--panel2); color: var(--muted); font-weight: 600; white-space: nowrap; }
.step.on { background: rgba(24, 224, 255, .15); color: var(--cyan); }
.star-btn { font-size: 24px; line-height: 1; color: #6b5a8f; padding: 2px; }
.star-btn:hover { color: #ffd166; transform: scale(1.15); }

/* ---------- Modal & toast ---------- */
.modal {
  position: fixed; inset: 0; z-index: 50; background: rgba(5, 0, 15, .72); backdrop-filter: blur(6px);
  display: flex; align-items: flex-end; justify-content: center; animation: fade .15s;
}
.sheet {
  width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  border-radius: 22px 22px 0 0; display: flex; flex-direction: column; gap: 12px; animation: up .2s ease-out;
}
@media (min-width: 700px) { .modal { align-items: center; } .sheet { border-radius: 22px; } }
.sheet header { display: flex; justify-content: space-between; align-items: center; }
.sheet h2 { font-size: 18px; display: flex; align-items: center; gap: 8px; }
.sheet h2 svg { color: var(--pink); }
.sheet p { line-height: 1.5; }
.legal { display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.5; }
.legal h3 { font-size: 15px; margin-top: 8px; color: var(--text); }
.legal h3:first-child { margin-top: 0; }
.legal ul { padding-left: 20px; display: flex; flex-direction: column; gap: 4px; color: #d9cff0; }
.legal-box { max-height: 38vh; overflow: auto; padding: 12px 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; line-height: 1.4; }
.check input { width: 20px; height: 20px; flex: none; margin-top: 1px; accent-color: var(--pink); cursor: pointer; }
.preview { position: relative; }
.preview img, .preview video { width: 100%; max-height: 340px; object-fit: contain; border-radius: 14px; background: #000; display: block; }
.preview .icon-btn { position: absolute; top: 8px; right: 8px; background: rgba(0, 0, 0, .65); color: #fff; }

#toast {
  position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%) translateY(20px); opacity: 0; z-index: 60;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-weight: 600; font-size: 14px;
  transition: .2s; pointer-events: none; max-width: 90vw; text-align: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (min-width: 900px) { #toast { bottom: 32px; } }

@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }

.media.film { aspect-ratio: 9 / 16; max-height: 620px; object-fit: contain; }

/* ---------- Easter eggs ---------- */
.egg-hero { display: flex; align-items: center; gap: 12px; padding: 14px; background: linear-gradient(120deg, rgba(255, 209, 102, .2), rgba(46, 229, 157, .12)), var(--panel) !important; border-color: rgba(255, 209, 102, .35) !important; }
.egg-hero > div:not(.egg-big) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.egg-hero span { color: var(--muted); font-size: 13px; }
.egg-big { font-size: 34px; }
.egg-bar { margin: 8px 14px 4px; padding: 10px 12px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.egg-bar.ok { border-color: rgba(46, 229, 157, .45); }
.egg-bar.fake { border-color: rgba(255, 59, 78, .45); }
.egg-status { font-size: 13px; font-weight: 800; }
.egg-btn { flex: 1; min-height: 40px; padding: 8px 10px; border-radius: 12px; font-weight: 700; font-size: 13px; background: var(--panel2); border: 1px solid var(--line); }
.egg-btn.on { background: rgba(46, 229, 157, .18); border-color: #2ee59d; color: #2ee59d; }
.egg-btn.no.on { background: rgba(255, 59, 78, .16); border-color: #ff3b4e; color: #ff7a85; }

/* ---------- Bugs ---------- */
.bug-hero { background: linear-gradient(120deg, rgba(255, 59, 78, .16), rgba(160, 51, 255, .14)), var(--panel) !important; border-color: rgba(255, 59, 78, .3) !important; }
.bug-bar { margin: 8px 14px 4px; padding: 10px 12px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.bug-bar.serious { border-color: rgba(255, 59, 78, .45); }
.bug-kind { font-size: 13px; font-weight: 800; }
.bug-bar.serious .bug-kind { color: #ff7a85; }
/* Barra de pestañas del inicio: las pestañas se deslizan y los iconos quedan fijos */
.feed-tabs { flex: 1; min-width: 0; display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 24px; }
.feed-tabs::-webkit-scrollbar { display: none; }
.feed-head { overflow: visible !important; gap: 8px !important; }

/* ---------- Secretos del mapa ---------- */
.egg-zones { margin: 0 2px; }
.secret { margin: 0 14px 4px; padding: 12px 14px; border-radius: 14px; background: linear-gradient(160deg, rgba(24, 224, 255, .07), rgba(255, 209, 102, .06)), var(--bg); border: 1px solid rgba(24, 224, 255, .25); display: flex; flex-direction: column; gap: 8px; }
.secret-zone { font-weight: 900; font-size: 14px; color: var(--cyan); }
.secret-row { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 8px; font-size: 14px; line-height: 1.45; }
.secret-row b { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding-top: 2px; }
.secret-src { font-size: 12px; color: var(--muted); }
.secret-src a { color: var(--cyan); font-weight: 700; }

/* ---------- Mejoras ---------- */
.idea-hero { background: linear-gradient(120deg, rgba(255, 209, 102, .18), rgba(24, 224, 255, .12)), var(--panel) !important; border-color: rgba(255, 209, 102, .3) !important; }
.idea { display: flex; gap: 12px; padding: 14px; align-items: flex-start; }
.idea-vote { flex: none; width: 58px; min-height: 64px; border-radius: 14px; background: var(--panel2); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.idea-vote span { font-size: 14px; color: var(--muted); }
.idea-vote b { font-size: 18px; }
.idea-vote.on { background: rgba(255, 45, 149, .16); border-color: var(--pink); }
.idea-vote.on span, .idea-vote.on b { color: var(--pink); }
.idea-vote:disabled { opacity: .6; cursor: default; }
.idea-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.idea-body h3 { font-size: 16px; }
.idea-body p { color: #d9cff0; font-size: 14px; }
.idea-st.new { color: #18e0ff; }
.idea-st.review { color: #ffd166; }
.idea-st.planned { color: #c9a7ff; }
.idea-st.done { color: #2ee59d; }
.idea-reply { font-size: 13px; padding: 8px 10px; border-radius: 10px; background: rgba(46, 229, 157, .08); border: 1px solid rgba(46, 229, 157, .3); }
.idea-admin { gap: 6px; margin-top: 4px; }
a.feed-tab { display: inline-block; }

/* ---------- Scroll fiable en iPhone (dentro de la app de Claude o Safari) ---------- */
/* Que el gesto de deslizar no pase a la ventana de fuera (que lo usa para cerrarse) */
html, body { overscroll-behavior-y: none; }
/* En vídeos y clips, deslizar en vertical es scroll; el toque corto sigue pausando */
.vwrap, .vwrap video, .clip, .clip-canvas, .link-card, .media { touch-action: pan-y; }
.vwrap video { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

/* ---------- Historias ---------- */
.stories { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 14px; margin-bottom: 4px; }
.stories::-webkit-scrollbar { display: none; }
.story { flex: none; width: 72px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.story-ring { position: relative; padding: 3px; border-radius: 50%; display: grid; place-items: center; }
.story-ring .av { --s: 62px; border: 3px solid var(--bg); }
.story-ring.new { background: conic-gradient(from 200deg, #18e0ff, #ff2d95, #ffd166, #18e0ff); }
.story-ring.seen { background: #3a2a5c; }
.story-ring.none { background: transparent; }
.story-add { position: absolute; right: 0; bottom: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--pink); color: #fff; font-weight: 900; font-size: 18px; line-height: 22px; text-align: center; border: 2px solid var(--bg); }
.story-name { font-size: 12px; color: #d9cff0; max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story-view { background: #000 !important; backdrop-filter: none !important; align-items: center !important; padding: 0; }
.story-frame { position: relative; width: 100%; max-width: 480px; height: 100%; max-height: 100%; display: flex; flex-direction: column; background: #05010f; overflow: hidden; }
@media (min-width: 700px) { .story-frame { height: 92vh; border-radius: 22px; } }
.story-bars { position: absolute; top: calc(10px + env(safe-area-inset-top)); left: 10px; right: 10px; display: flex; gap: 4px; z-index: 3; }
.story-bars span { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.story-bars i { display: block; height: 100%; background: #fff; }
.story-head { position: absolute; top: calc(22px + env(safe-area-inset-top)); left: 12px; right: 8px; display: flex; align-items: center; gap: 8px; z-index: 3; color: #fff; font-size: 14px; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.story-head span { color: #e6dcff; font-size: 12px; }
.story-x { width: 40px; height: 40px; display: grid; place-items: center; color: #fff; }
.story-media { flex: 1; display: grid; place-items: center; min-height: 0; }
.story-media img { width: 100%; height: 100%; object-fit: cover; }
.story-text { width: 100%; height: 100%; display: grid; place-items: center; padding: 30px; text-align: center; font-weight: 900; font-size: 30px; line-height: 1.3; color: #fff; text-shadow: 0 3px 0 rgba(0, 0, 0, .25);
  background: radial-gradient(circle at 30% 20%, hsl(var(--h) 90% 60%), transparent 60%), linear-gradient(160deg, hsl(var(--h) 80% 45%), hsl(calc(var(--h) + 60) 70% 20%)); }
.story-nav { position: absolute; top: 90px; bottom: 90px; width: 35%; z-index: 2; }
.story-nav.prev { left: 0; }
.story-nav.next { right: 0; width: 65%; }
.story-reply { display: flex; gap: 8px; padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(0, 0, 0, .7)); position: relative; z-index: 3; }
.story-reply .input { border-radius: 999px; background: rgba(0, 0, 0, .45); border-color: rgba(255, 255, 255, .35); color: #fff; font-size: 16px; }
.story-foot { padding: 12px; text-align: center; position: relative; z-index: 3; }
.story-prev { height: 300px; border-radius: 18px; overflow: hidden; display: grid; place-items: center; background: #000; }
.story-prev img { width: 100%; height: 100%; object-fit: cover; }
.story-prev .story-text { font-size: 22px; }
.story-color { width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .5); background: linear-gradient(135deg, hsl(var(--h) 80% 55%), hsl(calc(var(--h) + 60) 70% 30%)); }

/* ---------- Submenú ☰ ---------- */
.menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.menu-item { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px; border-radius: 16px; background: var(--panel2); border: 1px solid var(--line); text-align: left; min-height: 96px; }
.menu-item:hover { border-color: var(--cyan); }
.menu-item b { font-size: 15px; display: flex; align-items: center; gap: 6px; }
.menu-item span:last-child { font-size: 12px; color: var(--muted); }
.menu-ic { font-size: 26px; margin-bottom: 4px; }
.menu-item .dot { margin-left: 0; }
.back-chip { display: inline-flex; align-items: center; gap: 6px; margin: 0 2px 10px; padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); font-weight: 700; font-size: 13px; }
.back-chip svg { width: 16px; height: 16px; }

/* ---------- Redes sociales ---------- */
.post-actions { flex-wrap: wrap; align-items: center; }
.soc-group { display: inline-flex; gap: 4px; margin-left: 4px; padding-left: 8px; border-left: 1px solid var(--line); }
.soc { width: 34px; height: 34px; border-radius: 10px; display: inline-grid; place-items: center; color: #fff; }
.soc svg { width: 17px; height: 17px; }
.soc.ig { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); }
.soc.fb { background: #1877f2; }
.soc.x { background: #111; border: 1px solid #333; }
.soc.big { width: auto; height: 38px; padding: 0 12px; gap: 6px; display: inline-flex; align-items: center; font-weight: 700; font-size: 13px; }
.social-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0; }
.social-inputs { display: flex; flex-direction: column; gap: 8px; }
.social-in { display: flex; align-items: center; gap: 8px; }
.social-in .input { flex: 1; min-width: 0; }
.social-badge { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; color: #fff; }
.social-badge svg { width: 18px; height: 18px; }
.social-badge.ig { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); }
.social-badge.fb { background: #1877f2; }
.social-badge.x { background: #111; border: 1px solid #333; }
.social-pre { font-size: 12px; color: var(--muted); white-space: nowrap; }
@media (max-width: 400px) { .social-pre { display: none; } }

/* ---------- Modo real ---------- */
.beta-note { padding: 10px 14px; margin: 0 0 12px; font-size: 13px; color: #ffd27a; background: rgba(255, 179, 71, .08) !important; border-color: rgba(255, 179, 71, .3) !important; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.auth-tabs button { padding: 10px; border-radius: 10px; font-weight: 800; color: var(--muted); }
.auth-tabs button.on { background: var(--grad); color: #fff; }
details.legal-box summary { cursor: pointer; color: var(--cyan); margin-bottom: 6px; }
.soc.yt, .social-badge.yt { background: #ff0000; }
