/* Atrio Growth · panel. Diseño propio (inspirado en la estructura típica de paneles de administración). */
:root {
  --bg: #f3f5fb;
  --surface: #ffffff;
  --surface-2: #f7f8fd;
  --ink: #1a2142;
  --muted: #6a7392;
  --line: #e5e8f3;
  --primary: #5b5bf0;
  --primary-ink: #ffffff;
  --ok: #12b886;
  --warn: #f59f00;
  --bad: #e8466c;
  --shadow: 0 1px 2px rgba(26, 33, 66, .04), 0 8px 24px rgba(26, 33, 66, .06);
  --shadow-lift: 0 2px 4px rgba(26, 33, 66, .06), 0 18px 40px rgba(26, 33, 66, .12);
  --g-violet: linear-gradient(135deg, #5b5bf0 0%, #8f7bff 100%);
  --g-teal: linear-gradient(135deg, #0fb894 0%, #5be3c5 100%);
  --g-amber: linear-gradient(135deg, #ff7a59 0%, #ffb457 100%);
  --g-rose: linear-gradient(135deg, #e8466c 0%, #ff8fb1 100%);
  --side: #131936;
  --side-ink: #aab3d8;
  --radius: 16px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --sidebar-w: 264px;
}
[data-theme="dark"] {
  --bg: #0d1126;
  --surface: #161c3a;
  --surface-2: #1b2244;
  --ink: #e9ecfb;
  --muted: #98a2c9;
  --line: #262e55;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, .35), 0 18px 40px rgba(0, 0, 0, .4);
  --side: #0a0e20;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; transition: background .35s var(--ease), color .35s var(--ease);
}
a { color: inherit; text-decoration: none; }
button, select, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent); outline-offset: 2px; border-radius: 8px; }

/* ---------- estructura ---------- */
.app { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }
.main { min-width: 0; display: flex; flex-direction: column; }

.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column;
  background: radial-gradient(120% 60% at 0% 0%, rgba(91, 91, 240, .35), transparent 60%), var(--side);
  color: var(--side-ink); padding: 22px 14px; z-index: 40;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 10px 22px; color: #fff; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px; background: var(--g-violet); position: relative; flex: none;
  box-shadow: 0 8px 20px rgba(91, 91, 240, .5); animation: floaty 5s ease-in-out infinite;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 9px; border: 3px solid #fff; border-left-color: transparent; border-bottom-color: transparent;
  transform: rotate(-45deg) translate(2px, 2px); border-radius: 3px;
}
.brand-text { line-height: 1.15; font-size: 17px; }
.brand-text b { font-weight: 800; letter-spacing: .2px; }
.brand-text small { display: block; font-size: 11.5px; color: var(--side-ink); margin-top: 3px; letter-spacing: .3px; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-title { font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; color: #6e789f; padding: 14px 12px 6px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--side-ink);
  position: relative; transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; transform: translateX(3px); }
.nav a.active { background: rgba(91, 91, 240, .22); color: #fff; }
.nav a.active::before {
  content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 4px; border-radius: 0 4px 4px 0; background: #8f7bff;
  animation: grow-y .4s var(--ease);
}
.nav .pill { margin-left: auto; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--g-rose); color: #fff; }
.sidebar-foot { margin-top: auto; padding: 14px 6px 0; }
.mode-chip { font-size: 12.5px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .06); color: #cfd5f0; display: flex; gap: 8px; align-items: center; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(18, 184, 134, .6); animation: ping 2s infinite; flex: none; }
.dot.demo { background: var(--warn); box-shadow: 0 0 0 0 rgba(245, 159, 0, .6); }

.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; padding: 14px 28px;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.crumbs { font-weight: 700; font-size: 18px; letter-spacing: -.2px; }
.crumbs small { display: block; font-weight: 500; font-size: 12.5px; color: var(--muted); letter-spacing: 0; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.site-pick select {
  appearance: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 9px 34px 9px 14px; min-width: 190px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat;
  transition: border-color .2s, box-shadow .2s;
}
.site-pick select:hover { border-color: var(--primary); }
.icon-btn {
  position: relative; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer;
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
}
.icon-btn:hover { transform: translateY(-2px); border-color: var(--primary); box-shadow: var(--shadow); }
.icon-btn.has-dot::after { content: ""; position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); border: 2px solid var(--surface); }
.avatar { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; background: var(--g-teal); }
.only-mobile { display: none; }

.banner {
  margin: 18px 28px 0; padding: 12px 16px; border-radius: 14px; font-size: 14px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  background: color-mix(in srgb, var(--warn) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--warn) 40%, var(--line));
  animation: slide-down .5s var(--ease);
}
.banner.error { background: color-mix(in srgb, var(--bad) 12%, var(--surface)); border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
.banner button { margin-left: auto; }

.view { padding: 26px 28px 60px; outline: none; }
.view.enter { animation: view-in .55s var(--ease); }
.page-head { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h2 { font-size: 24px; letter-spacing: -.4px; }
.page-head p { color: var(--muted); margin-top: 2px; }
.page-head .spacer { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- componentes ---------- */
.grid { display: grid; gap: 20px; }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card.hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.card-head h3 { font-size: 16px; letter-spacing: -.1px; }
.card-head .sub { color: var(--muted); font-size: 13px; }
.card-head .right { margin-left: auto; }

.reveal { opacity: 0; transform: translateY(18px) scale(.985); }
.reveal.in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }

.kpi { position: relative; overflow: hidden; color: #fff; border: 0; padding: 22px; min-height: 148px; }
.kpi::before { content: ""; position: absolute; width: 190px; height: 190px; right: -50px; top: -70px; border-radius: 50%; background: rgba(255, 255, 255, .14); transition: transform .8s var(--ease); }
.kpi::after { content: ""; position: absolute; width: 120px; height: 120px; right: 30px; bottom: -80px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.kpi:hover::before { transform: scale(1.25) translate(-10px, 10px); }
.kpi.violet { background: var(--g-violet); } .kpi.teal { background: var(--g-teal); } .kpi.amber { background: var(--g-amber); } .kpi.rose { background: var(--g-rose); }
.kpi .label { font-size: 13.5px; opacity: .92; display: flex; align-items: center; gap: 8px; }
.kpi .value { font-size: 38px; font-weight: 800; letter-spacing: -1px; margin: 6px 0 2px; font-variant-numeric: tabular-nums; position: relative; z-index: 1; }
.kpi .delta { font-size: 12.5px; opacity: .92; position: relative; z-index: 1; max-width: 54%; }
.kpi .spark { position: absolute; right: 16px; bottom: 14px; width: 120px; height: 44px; z-index: 1; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); padding: 9px 14px; border-radius: 12px; cursor: pointer; font-weight: 600; font-size: 14px;
  transition: transform .2s var(--ease), box-shadow .2s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--primary); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.primary { background: var(--g-violet); color: #fff; border-color: transparent; box-shadow: 0 8px 20px rgba(91, 91, 240, .35); }
.btn.primary:hover { box-shadow: 0 12px 28px rgba(91, 91, 240, .5); }
.btn.ghost { background: transparent; }
.btn.small { padding: 6px 10px; font-size: 13px; border-radius: 10px; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn .ic { width: 17px; height: 17px; }
.btn.loading .ic { animation: spin 1s linear infinite; }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.badge.ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, var(--surface)); border-color: color-mix(in srgb, var(--ok) 30%, var(--line)); }
.badge.warn { color: #b87500; background: color-mix(in srgb, var(--warn) 14%, var(--surface)); border-color: color-mix(in srgb, var(--warn) 35%, var(--line)); }
[data-theme="dark"] .badge.warn { color: var(--warn); }
.badge.bad { color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, var(--surface)); border-color: color-mix(in srgb, var(--bad) 30%, var(--line)); }
.badge.info { color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, var(--surface)); border-color: color-mix(in srgb, var(--primary) 30%, var(--line)); }

/* tablas */
.table-wrap { overflow-x: auto; margin: 0 -8px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr { transition: background .2s; }
tbody tr:hover { background: var(--surface-2); }
tr.expandable { cursor: pointer; }
tr.detail td { background: var(--surface-2); padding: 0; border-bottom: 1px solid var(--line); }
.detail-inner { padding: 14px 18px; display: grid; gap: 8px; animation: view-in .35s var(--ease); }
.url-cell { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.mini-bar { width: 110px; height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; display: inline-block; vertical-align: middle; margin-right: 8px; }
.mini-bar i { display: block; height: 100%; border-radius: 99px; width: 0; transition: width 1.1s var(--ease); }

/* sitios */
.site-card { display: grid; gap: 14px; }
.site-top { display: flex; gap: 14px; align-items: center; }
.site-top h3 { font-size: 17px; }
.site-top a { color: var(--muted); font-size: 13px; }
.ring { position: relative; width: 84px; height: 84px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .track { stroke: var(--line); } .ring .bar { stroke-linecap: round; transition: stroke-dashoffset 1.4s var(--ease); }
.ring .num { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 22px; font-variant-numeric: tabular-nums; }
.ring.lg { width: 168px; height: 168px; } .ring.lg .num { font-size: 42px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* listas / feed */
.feed { display: grid; gap: 4px; }
.feed-item { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 10px 6px; border-radius: 12px; transition: background .2s; position: relative; }
.feed-item:hover { background: var(--surface-2); }
.feed-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; }
.feed-item small { color: var(--muted); display: block; font-size: 12.5px; }
.timeline { position: relative; display: grid; gap: 14px; padding-left: 8px; }
.timeline::before { content: ""; position: absolute; left: 24px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }

.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.chart { width: 100%; height: auto; display: block; }
.chart text { fill: var(--muted); font-size: 11px; }
.chart .grid-line { stroke: var(--line); stroke-dasharray: 3 5; }
.chart .line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart .dotp { transition: r .2s; cursor: pointer; }
.chart .dotp:hover { r: 7; }
.bar-rect { transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); }
.in .bar-rect, .bar-rect.go { transform: scaleY(1); transition: transform .9s var(--ease); transition-delay: calc(var(--k, 0) * 60ms); }
.chart-tip { position: fixed; z-index: 90; pointer-events: none; background: var(--ink); color: var(--bg); padding: 6px 10px; border-radius: 8px; font-size: 12.5px; opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s; }
.chart-tip.on { opacity: 1; transform: none; }

/* formularios */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 700; color: var(--muted); }
.input, textarea.input, select.input { width: 100%; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; transition: border-color .2s, box-shadow .2s; }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); }
textarea.input { min-height: 96px; resize: vertical; }
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.switch input { appearance: none; width: 46px; height: 26px; border-radius: 99px; background: var(--line); position: relative; cursor: pointer; transition: background .25s; flex: none; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); transition: transform .3s var(--ease); }
.switch input:checked { background: var(--primary); }
.switch input:checked::after { transform: translateX(20px); }

.empty { text-align: center; color: var(--muted); padding: 34px 10px; }
.empty .ic { width: 38px; height: 38px; margin-bottom: 8px; opacity: .6; }
.progress { height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--g-violet); border-radius: 99px; transition: width .6s var(--ease); position: relative; overflow: hidden; }
.progress i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent); animation: shimmer 1.4s infinite; }
.skeleton { background: linear-gradient(90deg, var(--line) 25%, var(--surface-2) 50%, var(--line) 75%); background-size: 200% 100%; animation: shimmer-bg 1.3s infinite; border-radius: 12px; }

.reply-box { background: var(--surface-2); border: 1px dashed var(--line); border-radius: 12px; padding: 12px 14px; white-space: pre-wrap; font-size: 14px; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 6px 14px; font-size: 14px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
.conn { display: flex; gap: 14px; align-items: flex-start; }
.conn .logo { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: none; }

/* toasts y modal */
.toasts { position: fixed; right: 20px; bottom: 20px; display: grid; gap: 10px; z-index: 100; }
.toast { background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow-lift); max-width: 360px; animation: toast-in .45s var(--ease); display: flex; gap: 10px; align-items: center; }
.toast.out { animation: toast-out .3s ease forwards; } .toast.err { background: var(--bad); color: #fff; } .toast.ok { background: var(--ok); color: #fff; }
.modal-wrap { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(10, 14, 32, .55); backdrop-filter: blur(4px); animation: fade .25s; }
.modal-wrap[hidden] { display: none; }
.modal { width: min(560px, 100%); max-height: 90vh; overflow: auto; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-lift); animation: pop .4s var(--ease); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-body { padding: 22px; }
.scrim { display: none; }

/* ---------- animaciones ---------- */
@keyframes view-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes slide-down { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes grow-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-3px) rotate(2deg); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(18, 184, 134, .55); } 70% { box-shadow: 0 0 0 9px rgba(18, 184, 134, 0); } 100% { box-shadow: 0 0 0 0 rgba(18, 184, 134, 0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes shimmer-bg { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes toast-in { from { opacity: 0; transform: translateX(30px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateX(30px); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.96); } to { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1280px) { .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-main { grid-template-columns: 1fr; } }
@media (max-width: 980px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; transform: translateX(-105%); width: min(300px, 86vw); transition: transform .4s var(--ease); }
  .app.open .sidebar { transform: none; }
  .app.open .scrim { display: block; position: fixed; inset: 0; background: rgba(10, 14, 32, .5); z-index: 35; animation: fade .25s; }
  .only-mobile { display: grid; }
  .g-3 { grid-template-columns: 1fr 1fr; }
  .topbar, .view { padding-left: 16px; padding-right: 16px; } .banner { margin-left: 16px; margin-right: 16px; }
  .site-pick select { min-width: 140px; }
}
@media (max-width: 640px) { .g-4, .g-3, .g-2 { grid-template-columns: 1fr; } .site-pick { display: none; } .kv { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; } .bar-rect { transform: none; }
}

tr.expandable:focus-visible { outline-offset: -3px; }
.card-head .avatar { width: 38px; height: 38px; font-size: 12px; }
ul { margin: 6px 0 0; padding-left: 20px; } li { margin: 3px 0; }
code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; font-size: 13px; }

.banner > span:nth-child(2) { flex: 1; min-width: 240px; }
.steps { counter-reset: s; display: grid; gap: 12px; margin: 0 0 16px; padding: 0; list-style: none; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; }
.steps li::before { content: counter(s); width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; background: var(--g-violet); }
.hash { font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; background: var(--surface-2); border: 1px solid var(--line); padding: 8px 10px; border-radius: 10px; color: var(--muted); }

/* ---------- pantalla de acceso ---------- */
.gate { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 20px; overflow: auto;
  background: radial-gradient(60% 50% at 20% 10%, rgba(91, 91, 240, .55), transparent 60%), radial-gradient(50% 50% at 90% 90%, rgba(15, 184, 148, .35), transparent 60%), #0d1126;
  animation: fade .5s; }
.gate::before, .gate::after { content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; animation: drift 14s ease-in-out infinite alternate; }
.gate::before { width: 380px; height: 380px; left: -80px; top: 40%; background: #5b5bf0; }
.gate::after { width: 320px; height: 320px; right: -60px; top: -60px; background: #12b886; animation-delay: -6s; }
.gate-card { position: relative; z-index: 1; width: min(440px, 100%); background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 24px; padding: 32px 30px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); animation: pop .7s var(--ease); }
.gate-card .brand-mark { margin-bottom: 16px; }
.gate-card h2 { font-size: 24px; letter-spacing: -.4px; margin-bottom: 6px; }
.gate-card .lead { color: var(--muted); margin-bottom: 22px; }
.gate-card .btn.primary { width: 100%; justify-content: center; padding: 12px 16px; font-size: 15px; }
.gate-card .alt { display: block; text-align: center; margin-top: 16px; color: var(--muted); font-size: 14px; background: none; border: 0; cursor: pointer; width: 100%; }
.gate-card .alt:hover { color: var(--primary); text-decoration: underline; }
.gate-card .err { color: var(--bad); font-size: 14px; min-height: 20px; margin: -4px 0 10px; }
.gate-card .check { display: flex; align-items: center; gap: 10px; margin: 2px 0 16px; font-size: 14px; color: var(--muted); }
.gate-card .check input { width: 18px; height: 18px; accent-color: var(--primary); }
.gate-card form { margin: 0; }
.account-row { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.avatar.btn-like { cursor: pointer; border: 0; transition: transform .2s var(--ease); } .avatar.btn-like:hover { transform: scale(1.08) rotate(-3deg); }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(60px, -40px) scale(1.2); } }

/* Velocidad */
.ring.sm { width: 64px; height: 64px; } .ring.sm .num { font-size: 18px; }
details > summary { cursor: pointer; padding: 8px 0; list-style-position: inside; }
details[open] > summary { margin-bottom: 4px; }
