/* ============================ Robux Now · tema negro-azul ============================ */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #04060d;
  --bg-2: #070b16;
  --panel: rgba(12, 19, 36, .72);
  --panel-2: rgba(16, 25, 46, .55);
  --solid: #0b1222;
  --line: rgba(96, 148, 255, .14);
  --line-strong: rgba(96, 148, 255, .3);
  --txt: #e9efff;
  --muted: #8b9cc4;
  --blue: #2f7bff;
  --blue-2: #5aa9ff;
  --cyan: #14d3f0;
  --grad: linear-gradient(135deg, #2f7bff 0%, #14d3f0 100%);
  --grad-soft: linear-gradient(135deg, rgba(47,123,255,.16), rgba(20,211,240,.10));
  --ok: #2ee6a8;
  --warn: #ffc857;
  --bad: #ff5c7a;
  --r: 18px;
  --r-sm: 12px;
  --shadow: 0 22px 60px -28px rgba(0, 0, 0, .9);
  --glow: 0 0 0 1px rgba(47,123,255,.25), 0 18px 48px -20px rgba(47,123,255,.55);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(47, 123, 255, .28), transparent 60%),
    radial-gradient(760px 480px at 92% 4%, rgba(20, 211, 240, .16), transparent 62%),
    radial-gradient(700px 600px at 60% 110%, rgba(47, 123, 255, .12), transparent 60%),
    linear-gradient(180deg, #04060d 0%, #060a14 40%, #04060d 100%);
}
body::after {
  content: '';
  position: fixed; inset: 0; z-index: -1; opacity: .35;
  background-image: linear-gradient(rgba(96,148,255,.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(96,148,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 75%);
  animation: gridDrift 24s linear infinite;
}
@keyframes gridDrift { to { background-position: 56px 56px, 56px 56px; } }

/* ---------------------- fondo vivo: auroras + partículas ------------------ */
.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.aurora i {
  position: absolute; display: block; border-radius: 50%;
  filter: blur(70px); opacity: .5; mix-blend-mode: screen;
}
.aurora i:nth-child(1) { width: 46vw; height: 46vw; left: -8vw; top: -12vw; background: radial-gradient(circle, #2f7bff, transparent 68%); animation: float1 22s ease-in-out infinite; }
.aurora i:nth-child(2) { width: 38vw; height: 38vw; right: -6vw; top: 4vh; background: radial-gradient(circle, #14d3f0, transparent 68%); animation: float2 27s ease-in-out infinite; }
.aurora i:nth-child(3) { width: 42vw; height: 42vw; left: 32vw; bottom: -18vw; background: radial-gradient(circle, #5b3bff, transparent 70%); animation: float3 31s ease-in-out infinite; }
@keyframes float1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(9vw, 7vh) scale(1.16); } }
@keyframes float2 { 0%,100% { transform: translate(0,0) scale(1.08); } 50% { transform: translate(-8vw, 10vh) scale(.9); } }
@keyframes float3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(6vw, -9vh) scale(1.2); } }

/* monedas de robux flotando */
.coins { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.coins span {
  position: absolute; bottom: -60px; color: rgba(90,169,255,.5);
  animation: rise linear infinite; will-change: transform;
}
.coins svg { width: 100%; height: 100%; }
@keyframes rise {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  10%  { opacity: .75; }
  90%  { opacity: .35; }
  100% { transform: translateY(-115vh) rotate(320deg); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .aurora i, .coins span, body::after { animation: none !important; }
}

h1, h2, h3, h4, .brand-name, .stat-num, .price-big { font-family: 'Sora', 'Segoe UI', sans-serif; letter-spacing: -.02em; }
a { color: var(--blue-2); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(47,123,255,.35); }

/* scrollbars */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(96,148,255,.22); border-radius: 20px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(96,148,255,.4); background-clip: content-box; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }

/* ================================== header ================================== */
.topbar {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(4, 6, 13, .72);
  border-bottom: 1px solid var(--line);
}
.topbar-in { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { width: 38px; height: 38px; filter: drop-shadow(0 4px 14px rgba(47,123,255,.6)); }
.brand-name { font-size: 19px; font-weight: 800; }
.brand-name span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-tag {
  font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cyan); border: 1px solid rgba(20,211,240,.3); border-radius: 20px;
  padding: 2px 8px; margin-left: 4px;
}
.nav { display: flex; gap: 6px; margin-left: 10px; background: rgba(255,255,255,.03); padding: 5px; border-radius: 14px; border: 1px solid var(--line); }
.nav button {
  position: relative;
  background: transparent; border: 0; cursor: pointer; color: var(--muted);
  padding: 8px 16px; border-radius: 10px; font-weight: 600; font-size: 14px; transition: .2s;
}
.nav button:hover { color: var(--txt); }
.nav button.on { background: var(--grad); color: #041022; box-shadow: 0 8px 22px -10px rgba(47,123,255,.9); }
.nav .dot { position: absolute; top: 4px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 3px rgba(255,92,122,.18); }
.spacer { flex: 1; }
.user-chip {
  display: flex; align-items: center; gap: 9px; padding: 6px 14px 6px 6px;
  border: 1px solid var(--line); border-radius: 40px; background: var(--panel);
  cursor: pointer; transition: .2s;
}
.user-chip:hover { border-color: var(--line-strong); }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); color: #04101f; font-weight: 800; font-size: 13px;
}
.user-chip small { color: var(--muted); display: block; font-size: 11px; line-height: 1; }
.user-chip b { font-size: 13px; }
.ghost-link { color: var(--muted); font-size: 13px; font-weight: 600; padding: 8px 12px; border-radius: 10px; transition: .2s; }
.ghost-link:hover { color: var(--txt); background: rgba(255,255,255,.04); }

/* demo banner */
.demo-bar {
  background: linear-gradient(90deg, rgba(255,200,87,.14), rgba(255,200,87,.04));
  border-bottom: 1px solid rgba(255,200,87,.2);
  color: #ffd67e; font-size: 12.5px; text-align: center; padding: 7px 16px; font-weight: 600;
}

/* ================================== hero ================================== */
.hero { padding: 62px 0 34px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.05; margin: 14px 0 16px; font-weight: 800; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); font-size: 16.5px; max-width: 52ch; margin: 0 0 26px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--blue-2);
  background: var(--grad-soft); border: 1px solid var(--line-strong);
  padding: 7px 14px; border-radius: 40px;
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(46,230,168,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(46,230,168,0); } 100% { box-shadow: 0 0 0 0 rgba(46,230,168,0); } }
.hero-feats { display: flex; flex-wrap: wrap; gap: 10px; }
.feat { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: #c3d0ec; background: var(--panel); border: 1px solid var(--line); padding: 9px 14px; border-radius: 12px; }
.feat svg { width: 16px; height: 16px; color: var(--cyan); flex: none; }

/* tarjeta de stock */
.stock-card { padding: 26px; border-radius: 24px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.stock-card::before { content: ''; position: absolute; inset: -1px; border-radius: 24px; padding: 1px; background: linear-gradient(140deg, rgba(47,123,255,.5), transparent 45%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.stock-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.stock-head h3 { margin: 0; font-size: 15px; }
.stock-num { font-family: 'Sora', sans-serif; font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.stock-num span { font-size: 16px; color: var(--muted); font-weight: 600; }
.bar { height: 9px; border-radius: 20px; background: rgba(255,255,255,.06); overflow: hidden; margin: 12px 0 8px; }
.bar > i { display: block; height: 100%; border-radius: 20px; background: var(--grad); box-shadow: 0 0 18px rgba(47,123,255,.8); transition: width .8s cubic-bezier(.2,.9,.2,1); }
.stock-foot { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.rate-row { display: flex; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line); }
.rate { flex: 1; text-align: center; }
.rate b { display: block; font-family: 'Sora', sans-serif; font-size: 17px; }
.rate small { color: var(--muted); font-size: 11.5px; }

/* ================================ secciones ================================ */
section.block { padding: 26px 0 70px; }
.sec-head { margin-bottom: 22px; }
.sec-head h2 { font-size: 26px; margin: 0 0 6px; }
.sec-head p { color: var(--muted); margin: 0; font-size: 14.5px; }

/* pasos */
.steps { display: flex; gap: 8px; margin-bottom: 26px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); font-size: 13.5px; color: var(--muted); font-weight: 600; }
.step i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11.5px; font-weight: 800; background: rgba(255,255,255,.07); color: var(--muted); }
.step.on { color: var(--txt); border-color: var(--line-strong); box-shadow: var(--glow); }
.step.on i { background: var(--grad); color: #04101f; }
.step.done i { background: rgba(46,230,168,.18); color: var(--ok); }
.step.done { color: #bfe6d7; }

.layout { display: grid; grid-template-columns: 1fr 348px; gap: 26px; align-items: start; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow); }
.card + .card { margin-top: 18px; }
.card h3 { margin: 0 0 4px; font-size: 17px; }
.card .sub { color: var(--muted); font-size: 13.5px; margin: 0 0 18px; }

/* packs */
.packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 12px; }
.pack {
  position: relative; text-align: left; cursor: pointer; padding: 16px;
  border-radius: var(--r-sm); border: 1px solid var(--line); background: rgba(255,255,255,.02);
  transition: .18s; overflow: hidden;
}
.pack:hover:not(.off) { transform: translateY(-2px); border-color: var(--line-strong); background: var(--grad-soft); }
.pack.on { border-color: transparent; background: var(--grad-soft); box-shadow: var(--glow); }
.pack.on::after { content: '✓'; position: absolute; top: 10px; right: 12px; color: var(--cyan); font-weight: 800; }
.pack.off { opacity: .38; cursor: not-allowed; }
.pack .rbx { display: flex; align-items: center; gap: 7px; font-family: 'Sora', sans-serif; font-size: 21px; font-weight: 800; }
.pack .rbx svg { width: 17px; height: 17px; color: var(--cyan); }
.pack .eur { font-size: 15px; font-weight: 700; color: var(--blue-2); margin-top: 6px; }
.pack .old { font-size: 12px; color: var(--muted); text-decoration: line-through; margin-left: 6px; }
.pack .save { display: inline-block; margin-top: 8px; font-size: 11px; font-weight: 700; color: var(--ok); background: rgba(46,230,168,.12); border-radius: 20px; padding: 2px 9px; }
.pack.custom .rbx { font-size: 16px; }

.field { margin-top: 16px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 7px; }
.input, input[type=text], input[type=number], input[type=password], select, textarea {
  width: 100%; background: rgba(255,255,255,.03); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 12px 14px; outline: none; transition: .18s;
}
.input:focus, input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,123,255,.14); background: rgba(255,255,255,.05); }
.input::placeholder, input::placeholder, textarea::placeholder { color: #5f7095; }
.hint { font-size: 12px; color: var(--muted); margin-top: 7px; }
.err { font-size: 13px; color: var(--bad); margin-top: 10px; display: none; }
.err.on { display: block; }

/* botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 0; border-radius: var(--r-sm); padding: 13px 22px; font-weight: 700; font-size: 14.5px;
  cursor: pointer; transition: .18s; background: var(--grad); color: #04101f;
  box-shadow: 0 14px 30px -14px rgba(47,123,255,.9);
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.block { width: 100%; }
.btn.ghost { background: rgba(255,255,255,.05); color: var(--txt); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--line-strong); background: rgba(255,255,255,.08); }
.btn.sm { padding: 9px 15px; font-size: 13px; border-radius: 10px; }
.btn.danger { background: rgba(255,92,122,.14); color: #ffa5b7; border: 1px solid rgba(255,92,122,.3); box-shadow: none; }
.btn svg { width: 17px; height: 17px; }
.btn .spin { width: 15px; height: 15px; border: 2px solid rgba(4,16,31,.35); border-top-color: #04101f; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* resumen */
.summary { position: sticky; top: 90px; }
.sum-row { display: flex; justify-content: space-between; padding: 9px 0; font-size: 14px; color: var(--muted); }
.sum-row b { color: var(--txt); font-weight: 600; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; padding-top: 16px; border-top: 1px dashed var(--line); }
.price-big { font-size: 34px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.badge-save { background: rgba(46,230,168,.12); color: var(--ok); font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 20px; display: inline-block; margin-top: 10px; }
.trust { display: flex; flex-direction: column; gap: 9px; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--muted); }
.trust div { display: flex; gap: 8px; align-items: center; }
.trust svg { width: 14px; height: 14px; color: var(--ok); flex: none; }

/* instrucciones gamepass */
.howto { counter-reset: s; display: grid; gap: 14px; margin: 0 0 20px; padding: 0; list-style: none; }
.howto li { display: flex; gap: 14px; align-items: flex-start; }
.howto li::before {
  counter-increment: s; content: counter(s);
  width: 26px; height: 26px; flex: none; border-radius: 9px; display: grid; place-items: center;
  font-size: 12.5px; font-weight: 800; background: var(--grad-soft); border: 1px solid var(--line-strong); color: var(--blue-2);
}
.howto b { color: var(--txt); }
.howto span { color: var(--muted); font-size: 14px; }
.price-box {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: var(--grad-soft); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  padding: 18px 20px; margin: 4px 0 18px;
}
.price-box .lbl { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.price-box .val { font-family: 'Sora', sans-serif; font-size: 30px; font-weight: 800; display: flex; align-items: center; gap: 9px; }
.price-box .val svg { width: 22px; height: 22px; color: var(--cyan); }
.price-box small { display: block; color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; }

.verify-res { margin-top: 16px; border-radius: var(--r-sm); padding: 16px; display: none; }
.verify-res.on { display: block; }
.verify-res.ok { background: rgba(46,230,168,.08); border: 1px solid rgba(46,230,168,.28); }
.verify-res.bad { background: rgba(255,92,122,.08); border: 1px solid rgba(255,92,122,.28); }
.verify-res h4 { margin: 0 0 4px; font-size: 15px; }
.verify-res p { margin: 0; font-size: 13.5px; color: var(--muted); }

/* métodos de pago */
.pays { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 11px; }
.pay { cursor: pointer; padding: 15px; border-radius: var(--r-sm); border: 1px solid var(--line); background: rgba(255,255,255,.02); text-align: center; transition: .18s; }
.pay:hover { border-color: var(--line-strong); }
.pay.on { background: var(--grad-soft); box-shadow: var(--glow); border-color: transparent; }
.pay .ico { font-size: 22px; }
.pay b { display: block; font-size: 13.5px; margin-top: 6px; }
.pay small { color: var(--muted); font-size: 11.5px; }
.note {
  display: flex; gap: 11px; align-items: flex-start; margin-top: 18px; padding: 14px 16px;
  border-radius: var(--r-sm); background: rgba(255,200,87,.07); border: 1px solid rgba(255,200,87,.22);
  color: #ffd889; font-size: 13px;
}
.note svg { width: 17px; height: 17px; flex: none; margin-top: 1px; }
.note.blue { background: var(--grad-soft); border-color: var(--line-strong); color: #b9d3ff; }
.note.blue svg { color: var(--blue-2); }

/* =========================== vida e interacción ========================== */
/* foco de luz que sigue al ratón dentro de las tarjetas */
.card, .pack, .task, .stat { position: relative; isolation: isolate; }
.card::before, .pack::before, .task::before, .stat::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -200%), rgba(90,169,255,.12), transparent 62%);
  opacity: 0; transition: opacity .35s; pointer-events: none;
}
.card:hover::before, .pack:hover::before, .task:hover::before, .stat:hover::before { opacity: 1; }

/* título con degradado en movimiento */
.hero h1 em {
  background: linear-gradient(100deg, #2f7bff, #14d3f0, #7cf5ff, #2f7bff);
  background-size: 260% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 7s linear infinite;
}
@keyframes shine { to { background-position: 260% center; } }

/* onda al pulsar los botones */
.ripple {
  position: absolute; border-radius: 50%; transform: scale(0);
  background: rgba(255,255,255,.45); pointer-events: none;
  animation: ripple .6s ease-out forwards;
}
@keyframes ripple { to { transform: scale(3.2); opacity: 0; } }

/* entrada de cada paso del asistente */
.stepin { animation: stepIn .45s cubic-bezier(.2,.9,.25,1); }
@keyframes stepIn { from { opacity: 0; transform: translateY(16px) scale(.985); } }

/* barra de progreso de scroll bajo la cabecera */
#scrollbar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 199;
  background: linear-gradient(90deg, #2f7bff, #14d3f0, #2ee6a8);
  box-shadow: 0 0 14px rgba(47,123,255,.8);
}

/* destello que recorre los packs al pasar por encima */
.pack { isolation: isolate; }
.pack::after {
  content: ''; position: absolute; top: 0; left: -70%; width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.14), transparent);
  transform: skewX(-18deg); transition: left .55s ease; pointer-events: none;
}
.pack:hover::after { left: 130%; }
.pack.on::after { animation: none; }

/* la barra de stock respira */
.bar > i { position: relative; overflow: hidden; }
.bar > i::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  transform: translateX(-100%); animation: barShine 2.8s ease-in-out infinite;
}
@keyframes barShine { 60%, 100% { transform: translateX(100%); } }

/* la píldora de estado late cuando algo está en marcha */
.pill.info { animation: softPulse 2.4s ease-in-out infinite; }
@keyframes softPulse { 50% { opacity: .62; } }

/* el logo de la cabecera flota un poco */
.brand img { animation: hover3 5s ease-in-out infinite; }
@keyframes hover3 { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-3px) rotate(-4deg); } }

/* filas de tabla que entran escalonadas */
tbody tr { animation: rowIn .35s ease backwards; }
tbody tr:nth-child(1) { animation-delay: .02s } tbody tr:nth-child(2) { animation-delay: .06s }
tbody tr:nth-child(3) { animation-delay: .1s } tbody tr:nth-child(4) { animation-delay: .14s }
tbody tr:nth-child(5) { animation-delay: .18s } tbody tr:nth-child(6) { animation-delay: .22s }
@keyframes rowIn { from { opacity: 0; transform: translateX(-10px); } }


/* aparición al hacer scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s cubic-bezier(.2,.8,.2,1), transform .6s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* brillo que recorre los botones */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.38), transparent);
  transform: skewX(-18deg); animation: sheen 3.6s ease-in-out infinite;
}
.btn.ghost::after, .btn.danger::after { display: none; }
@keyframes sheen { 0%, 62% { left: -60%; } 88%, 100% { left: 130%; } }

/* tarjetas que siguen al ratón */
.tilt { transition: transform .18s ease, box-shadow .18s ease; transform-style: preserve-3d; }
.tilt:hover { box-shadow: 0 26px 60px -30px rgba(47,123,255,.75); }

/* marcador en directo */
.ticker {
  display: flex; align-items: center; gap: 14px; margin-top: 26px; padding: 11px 16px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--panel); overflow: hidden;
}
.ticker .live {
  display: flex; align-items: center; gap: 7px; flex: none; font-size: 11.5px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ok);
}
.ticker-track { flex: 1; overflow: hidden; position: relative; height: 20px; }
.ticker-track div {
  position: absolute; white-space: nowrap; font-size: 13px; color: var(--muted);
  animation: slide 26s linear infinite;
}
.ticker-track b { color: var(--txt); }
.ticker-track em { color: var(--cyan); font-style: normal; font-weight: 700; }
@keyframes slide { from { transform: translateX(100%); } to { transform: translateX(-100%); } }

/* contadores y números que laten */
.beat { animation: beat 2.6s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }

/* campana de notificaciones */
.bell {
  position: relative; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--panel); display: grid; place-items: center; cursor: pointer; transition: .2s; color: var(--muted);
}
.bell:hover { color: var(--txt); border-color: var(--line-strong); }
.bell svg { width: 17px; height: 17px; }
.bell.on { color: var(--ok); border-color: rgba(46,230,168,.35); background: rgba(46,230,168,.08); }
.bell.ring svg { animation: ring .8s ease; transform-origin: top center; }
@keyframes ring { 0%,100% { transform: rotate(0); } 20% { transform: rotate(16deg); } 40% { transform: rotate(-13deg); } 60% { transform: rotate(9deg); } 80% { transform: rotate(-5deg); } }

/* entrada de mensajes de chat */
.msg { animation: msgIn .3s cubic-bezier(.2,1.2,.4,1); }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px) scale(.97); } }

/* confeti al terminar la compra */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 95; overflow: hidden; }
.confetti i {
  position: absolute; width: 9px; height: 15px; opacity: .95;
  animation: fall linear forwards;
}
@keyframes fall { to { transform: translateY(105vh) rotate(680deg); opacity: 0; } }

/* barra de progreso superior en las cargas */
#bar {
  position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 200;
  background: var(--grad); box-shadow: 0 0 12px rgba(47,123,255,.9);
  transition: width .3s ease, opacity .4s ease;
}

/* ============================ saldo y tareas ============================= */
.bal-chip {
  display: flex; align-items: center; gap: 8px; padding: 8px 15px; border-radius: 40px;
  border: 1px solid rgba(46,230,168,.3); background: rgba(46,230,168,.08);
  color: var(--ok); font-weight: 800; font-size: 13.5px; font-family: 'Sora', sans-serif;
  transition: .25s;
}
.bal-chip svg { width: 15px; height: 15px; }
.bal-chip.bump { transform: scale(1.12); box-shadow: 0 0 0 5px rgba(46,230,168,.12); }

.tasks { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.task {
  display: flex; gap: 15px; align-items: center; padding: 18px;
  border-radius: var(--r); border: 1px solid var(--line); background: var(--panel);
  box-shadow: var(--shadow); transition: .18s;
}
.task:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.task .t-ico {
  width: 46px; height: 46px; flex: none; border-radius: 13px; display: grid; place-items: center;
  background: rgba(255,255,255,.06); border: 1px solid var(--line); overflow: hidden;
  font-family: 'Sora', sans-serif; font-weight: 800; font-size: 18px; color: var(--blue-2);
}
.task .t-ico img { width: 26px; height: 26px; object-fit: contain; display: block; }
.task .t-mid { flex: 1; min-width: 0; }
.task .t-name { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task .t-host { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task .t-rew { font-family: 'Sora', sans-serif; font-weight: 800; color: var(--ok); font-size: 15px; margin-top: 3px; }
.task .t-act { flex: none; }
.task.done { opacity: .55; }
.task.done .t-ico { background: rgba(46,230,168,.12); border-color: rgba(46,230,168,.25); color: var(--ok); }

/* caja de saldo en el paso de pago */
.bal-use {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; margin-bottom: 16px;
  border-radius: var(--r-sm); border: 1px solid rgba(46,230,168,.28); background: rgba(46,230,168,.06);
}
.bal-use.off { border-color: var(--line); background: rgba(255,255,255,.02); }
.bal-use .b-txt { flex: 1; }
.bal-use b { font-size: 14.5px; }
.bal-use small { display: block; color: var(--muted); font-size: 12.5px; }
.switch { position: relative; width: 46px; height: 26px; flex: none; cursor: pointer; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch i {
  position: absolute; inset: 0; border-radius: 40px; background: rgba(255,255,255,.12);
  transition: .22s;
}
.switch i::before {
  content: ''; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px;
  border-radius: 50%; background: #fff; transition: .22s;
}
.switch input:checked + i { background: linear-gradient(135deg, #2ee6a8, #14d3f0); }
.switch input:checked + i::before { transform: translateX(20px); }
.switch input:disabled + i { opacity: .4; cursor: not-allowed; }
.pays.off { opacity: .35; pointer-events: none; filter: grayscale(1); }

/* ============================== mis compras ============================== */
.orders-grid { display: grid; grid-template-columns: 340px 1fr; gap: 22px; align-items: start; }
.order-list { display: flex; flex-direction: column; gap: 10px; max-height: 72vh; overflow-y: auto; padding-right: 4px; }
.order-item {
  cursor: pointer; padding: 15px 16px; border-radius: var(--r-sm); border: 1px solid var(--line);
  background: var(--panel); transition: .18s; position: relative;
}
.order-item:hover { border-color: var(--line-strong); transform: translateX(2px); }
.order-item.on { background: var(--grad-soft); border-color: transparent; box-shadow: var(--glow); }
.order-item .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.order-item .code { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 14px; }
.order-item .meta { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.order-item .amt { color: var(--blue-2); font-weight: 700; }
.unread { background: var(--bad); color: #fff; font-size: 10.5px; font-weight: 800; border-radius: 20px; padding: 1px 7px; }

.pill { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 20px; white-space: nowrap; }
.pill.warn { background: rgba(255,200,87,.13); color: var(--warn); }
.pill.info { background: rgba(47,123,255,.16); color: var(--blue-2); }
.pill.ok { background: rgba(46,230,168,.13); color: var(--ok); }
.pill.bad { background: rgba(255,92,122,.13); color: var(--bad); }

/* timeline */
.timeline { display: flex; gap: 0; margin: 4px 0 20px; }
.tl { flex: 1; text-align: center; position: relative; font-size: 11.5px; color: var(--muted); }
.tl::before { content: ''; position: absolute; top: 11px; left: -50%; width: 100%; height: 2px; background: rgba(255,255,255,.07); }
.tl:first-child::before { display: none; }
.tl i { position: relative; z-index: 1; display: grid; place-items: center; width: 24px; height: 24px; margin: 0 auto 7px; border-radius: 50%; background: var(--solid); border: 2px solid rgba(255,255,255,.09); font-style: normal; font-size: 11px; }
.tl.done i { background: var(--grad); border-color: transparent; color: #04101f; font-weight: 800; }
.tl.done::before { background: var(--blue); }
.tl.done { color: #cfdcf5; }
.tl.cur i { box-shadow: 0 0 0 5px rgba(47,123,255,.16); }

.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.kv div small { display: block; color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.kv div b { font-size: 15px; font-weight: 600; word-break: break-word; }

/* chat */
.chat { display: flex; flex-direction: column; height: 420px; }
.chat-head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.chat-head .avatar { background: var(--grad); }
.chat-body { flex: 1; overflow-y: auto; padding: 16px 4px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 76%; padding: 11px 14px; border-radius: 14px; font-size: 14px; line-height: 1.5; }
.msg time { display: block; font-size: 10.5px; opacity: .55; margin-top: 5px; }
.msg.user { align-self: flex-end; background: var(--grad); color: #04101f; border-bottom-right-radius: 4px; font-weight: 500; }
.msg.admin { align-self: flex-start; background: rgba(255,255,255,.06); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.system { align-self: center; max-width: 92%; text-align: center; background: rgba(47,123,255,.07); border: 1px dashed var(--line-strong); color: #aac2ee; font-size: 12.5px; }
.chat-form { display: flex; gap: 9px; padding-top: 14px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty svg { width: 46px; height: 46px; opacity: .35; margin-bottom: 14px; }

/* pantalla de éxito */
.done-box { text-align: center; padding: 30px 20px; }
.done-ico { width: 74px; height: 74px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--line-strong); font-size: 32px; animation: pop .5s cubic-bezier(.2,1.4,.4,1); }
@keyframes pop { from { transform: scale(.5); opacity: 0; } }

/* footer */
footer { border-top: 1px solid var(--line); padding: 30px 0; color: var(--muted); font-size: 13px; }
.foot-in { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }

/* modal */
.modal-bg { position: fixed; inset: 0; background: rgba(2,4,10,.75); backdrop-filter: blur(6px); z-index: 90; display: none; place-items: center; padding: 20px; }
.modal-bg.on { display: grid; }
.modal { width: min(430px, 100%); background: var(--solid); border: 1px solid var(--line-strong); border-radius: 22px; padding: 28px; box-shadow: var(--shadow); animation: pop .3s cubic-bezier(.2,1.2,.4,1); }
.modal h3 { margin: 0 0 6px; font-size: 20px; }
.modal .sub { color: var(--muted); font-size: 14px; margin: 0 0 20px; }

/* ------------------------------ cuentas ---------------------------------- */
.auth-tabs { display: flex; gap: 6px; background: rgba(255,255,255,.03); padding: 5px; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 20px; }
.auth-tabs button { flex: 1; background: transparent; border: 0; color: var(--muted); padding: 9px; border-radius: 9px; font-weight: 600; font-size: 13.5px; cursor: pointer; transition: .18s; }
.auth-tabs button.on { background: var(--grad); color: #04101f; }
.link-btn { background: none; border: 0; color: var(--blue-2); font-size: 13px; cursor: pointer; padding: 0; font-weight: 600; }
.link-btn:hover { text-decoration: underline; }
.acct-menu {
  position: absolute; right: 0; top: 52px; width: 230px; background: var(--solid);
  border: 1px solid var(--line-strong); border-radius: 16px; padding: 8px; box-shadow: var(--shadow); z-index: 60;
  animation: pop .18s ease;
}
.acct-menu .head { padding: 12px 14px 14px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.acct-menu .head b { display: block; font-size: 14px; }
.acct-menu .head small { color: var(--muted); font-size: 12px; word-break: break-all; }
.acct-menu button {
  width: 100%; text-align: left; background: none; border: 0; color: var(--txt);
  padding: 10px 14px; border-radius: 10px; cursor: pointer; font-size: 13.5px; transition: .15s;
}
.acct-menu button:hover { background: rgba(96,148,255,.1); }
.acct-menu button.danger { color: #ffa5b7; }

/* botón de Google */
.btn-google {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; padding: 14px 22px; border-radius: var(--r-sm); cursor: pointer;
  background: #fff; color: #1f1f1f; border: 0; font-weight: 600; font-size: 15px;
  box-shadow: 0 14px 30px -14px rgba(255,255,255,.35); transition: .18s;
}
.btn-google:hover { transform: translateY(-1px); box-shadow: 0 18px 34px -14px rgba(255,255,255,.5); }
.btn-google:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* aviso de reembolso en el panel */
.refund-box {
  margin-top: 18px; padding: 16px; border-radius: var(--r-sm);
  border: 1px solid rgba(255,92,122,.28); background: rgba(255,92,122,.06);
}
.refund-box b { color: #ffa5b7; }

.hide { display: none !important; }
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--solid); border: 1px solid var(--line-strong); color: var(--txt);
  padding: 13px 20px; border-radius: 14px; box-shadow: var(--shadow); z-index: 100;
  opacity: 0; pointer-events: none; transition: .3s; font-size: 14px; font-weight: 500;
}
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ================================ admin ================================ */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.stat small { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; }
.stat-num { font-size: 27px; font-weight: 800; margin-top: 5px; }
.stat.accent .stat-num { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; padding: 0 12px 12px; }
td { padding: 13px 12px; border-top: 1px solid var(--line); }
tbody tr { cursor: pointer; transition: .15s; }
tbody tr:hover { background: rgba(96,148,255,.05); }
tbody tr.on { background: var(--grad-soft); }
.table-wrap { overflow-x: auto; }

.admin-grid { display: grid; grid-template-columns: 1fr 400px; gap: 22px; align-items: start; }
.status-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.status-btns button { padding: 8px 13px; font-size: 12.5px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.03); cursor: pointer; transition: .16s; font-weight: 600; }
.status-btns button:hover { border-color: var(--line-strong); background: rgba(255,255,255,.07); }
.status-btns button.on { background: var(--grad); color: #04101f; border-color: transparent; }
.cfg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
.cfg-grid label { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 7px; }

.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(400px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 34px; box-shadow: var(--shadow); }
.login-card .brand { justify-content: center; margin-bottom: 8px; }
.login-card h2 { text-align: center; margin: 6px 0 4px; font-size: 22px; }
.login-card > p { text-align: center; color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.creds { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.creds code { background: rgba(47,123,255,.14); color: var(--blue-2); padding: 2px 7px; border-radius: 6px; font-size: 12px; }

/* ============================== responsive ============================== */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; gap: 28px; }
  .layout, .orders-grid, .admin-grid { grid-template-columns: 1fr; }
  .summary { position: static; }
  .order-list { max-height: none; flex-direction: row; overflow-x: auto; }
  .order-item { min-width: 240px; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 28px); }
  .topbar-in { height: auto; padding: 12px 0; flex-wrap: wrap; gap: 10px; }
  .nav { order: 3; width: 100%; }
  .nav button { flex: 1; }
  .brand-tag { display: none; }
  .card { padding: 18px; }
  .hero h1 { font-size: 30px; }
  .steps .step span { display: none; }
  .timeline { font-size: 0; }
}
