* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; background: #04111e; color: #f3f6fe; }
.activation-app { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(ellipse 42% 45% at 0 0, #19694b48, transparent 72%), radial-gradient(ellipse 42% 45% at 100% 100%, #173b6655, transparent 75%); }
.activation-card { width: min(100%, 560px); padding: clamp(28px, 5vw, 46px); border: 1px solid; border-color: #5c7f92 #304d61 #20384c; border-radius: 14px; background: radial-gradient(ellipse 90% 95% at 50% 0, #31536a32, transparent 76%), linear-gradient(150deg, #143143ef, #0a1d2ef5); text-align: center; box-shadow: inset 0 1px 0 #d8e9ee30, 0 24px 60px #00000066; }
.brand { margin: 0 0 8px; color: #c4a3ff; font-size: .8rem; font-weight: 800; letter-spacing: .22em; }
h1 { margin: 0 0 12px; color: #e5ebf2; font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -.04em; text-shadow: 0 2px 3px #00000070; }
.hint { margin: 0; color: #a9bdd9; line-height: 1.55; }
.qr { width: min(56vw, 300px); aspect-ratio: 1; margin: 25px auto; padding: 13px; border: 1px solid #d7e6ec; border-radius: 10px; background: #fff; box-shadow: 0 0 0 5px #a872ff22, 0 12px 24px #00000038; }
.qr svg { width: 100%; height: 100%; display: block; }
.code { width: fit-content; min-width: 260px; margin: 14px auto 24px; padding: 13px 18px; border: 1px solid #9865f5; border-radius: 9px; background: #071b1c; box-shadow: inset 0 1px 0 #955fff30, 0 0 20px #8755f43d; color: #ddc6ff; font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: clamp(2rem, 5vw, 3rem); font-variant-numeric: tabular-nums; font-weight: 800; letter-spacing: .16em; line-height: 1; }
.activation-code-input { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 1.35rem; font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: .22em; text-align: center; }
.activation-code-input::placeholder { letter-spacing: .16em; opacity: .55; }
.status { min-height: 1.5em; margin: 18px 0 0; color: #63e693; }
.phone { max-width: 440px; }
form { display: grid; gap: 16px; margin-top: 24px; text-align: left; }
label { display: grid; gap: 7px; color: #cbd9ed; font-size: .9rem; font-weight: 700; }
input { width: 100%; padding: 13px; border: 1px solid #345570; border-radius: 7px; background: linear-gradient(180deg, #081a2c, #071522); box-shadow: inset 0 2px 4px #00000059; color: #f3f6fe; font: inherit; }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid #a872ff; outline-offset: 2px; }
button { width: 100%; min-height: 46px; padding: 12px 16px; border: 1px solid #9865f5; border-radius: 7px; background: linear-gradient(180deg, #955fff, #6237c5); box-shadow: inset 0 1px 0 #ffffff9c, 0 3px 8px #00000030; color: #081510; font: inherit; font-weight: 800; cursor: pointer; }
button:hover:not(:disabled) { background: linear-gradient(180deg, #b28aff, #7645db); }
button:disabled { opacity: .55; cursor: wait; }
.found { color: #e5ebf2; font-size: 1.4rem; font-weight: 700; }
a { color: #c4a3ff; }
#player-view, #player-frame { position: fixed; inset: 0; z-index: 9999; width: 100%; height: 100%; border: 0; background: #000; }
.activation-app:has(#player-view:not([hidden])) { background: #000 !important; }
.activation-app:has(#player-view:not([hidden])):before, .activation-app:has(#player-view:not([hidden])):after { display: none !important; }
/* Activación TV: superficie violeta; el QR y código siguen siendo generados por activar.js. */
html,body{background:#090816;color:#f7f5ff}.activation-app{position:relative;overflow:hidden;background:radial-gradient(ellipse 68% 74% at 50% -10%,#35256d80,transparent 60%),radial-gradient(ellipse 70% 34% at 50% 97%,#5c31c86b,transparent 71%),linear-gradient(180deg,#121122,#070711 70%,#161027)}.activation-app:before,.activation-app:after{content:"";position:absolute;pointer-events:none}.activation-app:before{width:1160px;height:750px;border:2px solid #873fff88;border-color:transparent transparent #8d42ff88 #8d42ff88;border-radius:50%;left:-400px;top:-230px;box-shadow:0 0 35px #7f3cff78}.activation-app:after{width:1100px;height:700px;border:2px solid #873fff74;border-color:transparent #8d42ff74 #8d42ff74 transparent;border-radius:50%;right:-440px;top:-70px;box-shadow:0 0 34px #7f3cff62}.activation-card{position:relative;z-index:1;width:min(100%,684px);padding:37px 58px 31px;border-color:#936cf4 #4d3b83 #3d3069;border-radius:22px;background:radial-gradient(ellipse 82% 47% at 50% 0,#4a3c866f,transparent 66%),linear-gradient(150deg,#1e1d31f6,#12111df8 64%,#211834f5);box-shadow:inset 0 1px 0 #ffffff36,inset 0 0 37px #7d47ff25,0 0 0 1px #42306d,0 0 28px #7c44ff7a,0 28px 56px #000000aa}.brand{display:flex;justify-content:center;align-items:baseline;gap:0;margin:0 0 35px;color:#f5f3fc;font-size:2.2rem;font-weight:800;letter-spacing:-.07em}.brand b{color:#9a5dff}.activation-card h1{margin-bottom:13px;color:#f6f4ff;font-size:clamp(2.75rem,4.2vw,3.9rem);text-shadow:0 2px 4px #00000090}.hint{color:#cec9eb;font-size:1.1rem}.qr{width:min(56vw,308px);margin:27px auto 25px;border-color:#f7f4ff;border-radius:15px;box-shadow:0 0 0 6px #8d50ff27,0 0 26px #8c4cffb5,0 14px 28px #0000005e}.code{min-width:355px;margin:18px auto 10px;border-color:#a46aff;background:linear-gradient(180deg,#1a1530,#110f1f);box-shadow:inset 0 1px 0 #e1caff42,0 0 21px #8243ff78;color:#cba9ff;font-size:clamp(2.15rem,4.4vw,3.1rem)}.code-validity{margin:0;color:#c4bedf;font-size:.9rem}.status{color:#d5c0ff}.status.is-loading:before{content:"";display:inline-block;width:17px;height:17px;margin:0 11px -3px 0;border:3px solid #9454ff;border-right-color:transparent;border-radius:50%;box-shadow:0 0 10px #8848ff;animation:activation-spin 1.2s linear infinite}@keyframes activation-spin{to{transform:rotate(360deg)}}.phone .brand{margin-bottom:20px}.phone button{border-color:#9562ff;background:linear-gradient(180deg,#8f5afa,#5933b4);color:#f8f5ff}.phone a{color:#c9aeff}input:focus-visible,button:focus-visible,a:focus-visible{outline-color:#a872ff}@media(max-width:520px){.activation-card{padding:30px 22px}.brand{margin-bottom:24px;font-size:1.95rem}.activation-card h1{font-size:2.45rem}.code{min-width:0}.hint{font-size:1rem}}
[hidden] { display: none !important; }
.phone button:hover:not(:disabled) { background: linear-gradient(180deg, #ad7bff, #7041d5); }
.phone button { min-height: 44px; }
@media (prefers-reduced-motion: reduce) { .status.is-loading:before { animation: none; } }
@media (max-width: 520px) { .activation-app { padding: 16px; } .activation-card { padding: 28px 22px; } .code { min-width: 0; width: 100%; padding-inline: 10px; letter-spacing: .12em; } }
.activation-back-nav { margin: 0 0 16px; }
.back-link { display: inline-block; padding: 6px 14px; border: 1px solid #7749db; border-radius: 8px; background: #1f1437cc; color: #d6bfff; text-decoration: none; font-size: .9rem; font-weight: 600; transition: background .15s ease; }
.back-link:hover, .back-link:focus-visible { background: #351c63; color: #fff; border-color: #9d71ff; }
