/* TrackAI · tema oro (negro + dorado brand-v2). Compartido por /activar, /entrar, /suscribir y /cuenta. */
:root {
  --gold: #E8B730;
  --gold-2: #F4CD5C;
  --gold-soft: rgba(232, 183, 48, .14);
  --gold-line: rgba(232, 183, 48, .32);
  --bg: #0A0A0A;
  --panel: #121110;
  --panel-2: #191714;
  --line: #2B2823;
  --text: #F5F0E6;
  --muted: #A69F92;
  --faint: #6E685E;
  --danger: #FF6B5E;
  --ok: #5FD38D;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100vh; display: flex; flex-direction: column;
  background: radial-gradient(900px 500px at 50% -10%, rgba(232,183,48,.10), transparent 60%), var(--bg);
}
[hidden] { display: none !important; }
header.top { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; max-width: 1080px; width: 100%; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.brand small { color: var(--gold); font-weight: 500; font-size: 12px; letter-spacing: .16em; margin-left: 2px; }
header.top nav a { color: var(--muted); text-decoration: none; font-size: 14px; margin-left: 20px; }
header.top nav a:hover { color: var(--text); }
main { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 32px 16px 64px; }
.card {
  width: 100%; max-width: 440px; background: var(--panel); border: 1px solid var(--gold-line);
  border-radius: 18px; padding: 32px 28px; box-shadow: 0 24px 80px rgba(0,0,0,.5);
}
.card.wide { max-width: 720px; }
h1 { font-size: 24px; line-height: 1.25; margin: 0 0 8px; font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: 17px; margin: 28px 0 12px; font-weight: 600; }
p.lead { color: var(--muted); margin: 0 0 24px; font-size: 15px; line-height: 1.55; }
label { display: block; font-size: 13px; color: var(--muted); margin: 0 0 8px; font-weight: 500; }
input {
  width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--panel-2);
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; outline: none; transition: border-color .15s;
}
input:focus { border-color: var(--gold); }
.field { margin-bottom: 18px; }
button, .btn {
  display: block; width: 100%; font: inherit; font-weight: 600; font-size: 16px; border: 0; border-radius: 12px; padding: 14px 18px;
  background: var(--gold); color: #0A0A0A; cursor: pointer; transition: transform .08s, opacity .15s; text-align: center; text-decoration: none;
}
button:hover, .btn:hover { opacity: .92; }
button:active { transform: scale(.99); }
button[disabled] { opacity: .5; cursor: progress; }
button.ghost, .btn.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); font-weight: 500; font-size: 14px; padding: 10px 14px; }
button.ghost:hover, .btn.ghost:hover { color: var(--text); border-color: var(--gold-line); }
.devcode {
  background: var(--gold-soft); border: 1px solid var(--gold-line); border-radius: 12px; padding: 14px 16px; margin-bottom: 22px;
}
.devcode .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.devcode span { font-size: 13px; color: var(--muted); }
.devcode strong { font-size: 20px; letter-spacing: .14em; color: var(--gold); font-weight: 600; white-space: nowrap; flex-shrink: 0; }
.devcode p { margin: 10px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 13px; margin: 22px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.gbtn { display: flex; justify-content: center; min-height: 44px; }
.msg { font-size: 14px; border-radius: 10px; padding: 10px 14px; margin: 0 0 16px; display: none; line-height: 1.45; }
.msg.show { display: block; }
.msg.err { background: rgba(255,107,94,.1); color: #FFB3AB; border: 1px solid rgba(255,107,94,.3); }
.msg.info { background: var(--gold-soft); color: var(--text); border: 1px solid var(--gold-line); }
.hint { font-size: 13px; color: var(--faint); margin-top: 14px; text-align: center; line-height: 1.5; }
.hint a, .link { color: var(--gold); text-decoration: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; width: auto; font-weight: 500; display: inline; }
.step { display: none; }
.step.active { display: block; animation: in .25s ease-out; }
@keyframes in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.center { text-align: center; }
.check {
  width: 72px; height: 72px; border-radius: 50%; margin: 4px auto 20px; display: grid; place-items: center;
  background: var(--gold-soft); border: 1px solid var(--gold-line);
}
.plan-badge { display: inline-block; margin-top: 4px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--gold-line); color: var(--gold); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
ul.devices { list-style: none; margin: 0 0 18px; padding: 0; }
ul.devices li { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; }
ul.devices .name { font-weight: 500; font-size: 15px; }
ul.devices .meta { color: var(--faint); font-size: 12px; margin-top: 2px; }
ul.devices button { width: auto; flex-shrink: 0; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--gold-soft); border-top-color: var(--gold); animation: spin .9s linear infinite; margin: 8px auto 18px; }
@keyframes spin { to { transform: rotate(360deg); } }
footer { text-align: center; color: var(--faint); font-size: 12px; padding: 24px 16px 32px; }
footer a { color: var(--muted); text-decoration: none; }
@media (max-width: 480px) {
  header.top { padding: 16px; }
  header.top nav a:not(:last-child) { display: none; }
  .card { padding: 26px 20px; border-radius: 16px; }
  h1 { font-size: 21px; }
}
