/* Mi cuenta · Grabador Studio (mismo estilo que la página de venta) */
:root {
    --bg: #050A18; --panel: #0B1530; --panel2: #0F1D40; --border: #1C2C58; --border2: #2A3F78;
    --text: #EAF0FF; --muted: #9AACD6; --dim: #6578A6; --accent: #2F6BFF; --accent2: #5B9BFF; --cyan: #22D3EE;
    --ok: #34D399; --warn: #FBBF24; --bad: #F87171; --wa: #25D366;
    --radius: 18px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: #050A18; }
body {
    margin: 0; min-height: 100vh; color: var(--text); background: var(--bg);
    background-image: radial-gradient(900px 520px at 12% -10%, #133173 0%, transparent 60%),
                      radial-gradient(800px 500px at 100% 0%, #0E2A66 0%, transparent 55%);
    font: 15px/1.55 "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
}
a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2 { margin: 0; letter-spacing: -.01em; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ── Marca ── */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 18px; line-height: 1; }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 0 18px #2F6BFF66; }
.brand small { display: block; font-size: 9.5px; letter-spacing: .38em; color: #8FB4FF; font-weight: 700; margin-top: 4px; }

/* ── Barra superior ── */
.top { position: sticky; top: 0; z-index: 10; background: #060D22CC; backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.top .wrap { display: flex; align-items: center; gap: 22px; height: 66px; }
.top nav { display: flex; gap: 4px; flex: 1; justify-content: center; }
.top nav a { color: var(--muted); padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: 14px; }
.top nav a:hover { color: var(--text); background: #ffffff0d; text-decoration: none; }
.top nav a.on { color: var(--text); background: #2F6BFF22; box-shadow: inset 0 0 0 1px #2F6BFF55; }
.me { display: flex; align-items: center; gap: 12px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800;
          background: linear-gradient(135deg, var(--cyan), var(--accent)); color: #fff; }
button.link { background: none; border: 0; color: var(--accent2); font: inherit; font-weight: 600; cursor: pointer; padding: 0; }
button.link:hover { text-decoration: underline; }
button.link:disabled { color: var(--dim); cursor: default; text-decoration: none; }

main.wrap { padding-top: 34px; padding-bottom: 30px; }
footer.wrap { color: var(--dim); font-size: 12.5px; text-align: center; padding-bottom: 34px; }
.hello { margin-bottom: 22px; }
.hello h1 { font-size: 30px; font-weight: 800; }
.lead { color: var(--muted); margin: 6px 0 0; }

/* ── Tarjetas ── */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.stack { display: grid; gap: 18px; max-width: 760px; }
.card {
    background: linear-gradient(180deg, #0F1E45, var(--panel)); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 24px; box-shadow: 0 18px 40px #0007, inset 0 1px 0 #ffffff0a;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card-head h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; }

.card.license.annual, .card.license.perpetual { border-color: #2F6BFF55; box-shadow: 0 18px 50px #2F6BFF22, inset 0 1px 0 #ffffff12; }
.big { font-size: 28px; font-weight: 800; margin: 0 0 6px; }
.big.pc, .small-big { font-size: 20px; word-break: break-word; }
.muted { color: var(--muted); margin: 0 0 10px; }
.hint { color: var(--dim); font-size: 12.5px; margin: 10px 0 0; }
.pill { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 1px solid; white-space: nowrap; }
.pill.ok { color: var(--ok); border-color: #34D39955; background: #34D3991a; }
.pill.warn { color: var(--warn); border-color: #FBBF2455; background: #FBBF241a; }
.pill.bad { color: var(--bad); border-color: #F8717155; background: #F871711a; }
.pill.muted { color: var(--muted); border-color: var(--border2); }
.bar { height: 10px; border-radius: 999px; background: #ffffff12; overflow: hidden; margin: 14px 0 6px; }
.bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--accent)); transition: width .8s ease; }
.bar span.w100 { width: 100%; }
.bar.warn span { background: linear-gradient(90deg, #FDE68A, var(--warn)); }
.bar.bad span { background: linear-gradient(90deg, #FCA5A5, var(--bad)); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.plan { display: block; padding: 16px; border-radius: 14px; border: 1px solid var(--border2); background: #ffffff08; color: var(--text); }
.plan:hover { text-decoration: none; border-color: var(--accent2); transform: translateY(-1px); }
.plan b { display: block; font-size: 17px; }
.plan span { color: var(--muted); font-size: 13px; }
.plan.featured { border-color: #2F6BFF88; background: linear-gradient(135deg, #2F6BFF33, #22D3EE14); }
.notice { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px 18px;
          border-radius: 14px; border: 1px solid #FBBF2455; background: #FBBF2414; margin-bottom: 18px; color: #FDE68A; }

/* ── Botones ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 12px;
    border: 1px solid var(--border2); background: #ffffff0a; color: var(--text); font: inherit; font-weight: 700; cursor: pointer;
    transition: transform .15s, border-color .15s, box-shadow .15s;
}
.btn:hover { border-color: var(--accent2); text-decoration: none; transform: translateY(-1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.primary { background: linear-gradient(135deg, var(--accent2), var(--accent)); border-color: transparent; box-shadow: 0 10px 26px #2F6BFF55; }
.btn.small { padding: 8px 14px; font-size: 13px; }
.btn.full { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.contact-list { display: flex; flex-wrap: wrap; gap: 10px; }

/* ── Avisos ── */
.alert { padding: 12px 16px; border-radius: 12px; margin-bottom: 18px; border: 1px solid; font-size: 14px; }
.alert.ok { color: #A7F3D0; border-color: #34D39955; background: #34D39914; }
.alert.bad { color: #FECACA; border-color: #F8717155; background: #F8717114; }
.alert a { color: inherit; text-decoration: underline; font-weight: 700; }

/* ── Formularios ── */
.form { display: grid; gap: 0; }
label { display: block; color: var(--muted); font-size: 13px; font-weight: 600; margin: 14px 0 7px; }
input[type=text], input[type=email], input[type=password], input[type=tel] {
    width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--border2); background: #071030;
    color: var(--text); font: inherit; font-size: 15px; outline: none; transition: border-color .15s, box-shadow .15s;
}
input:focus { border-color: var(--accent2); box-shadow: 0 0 0 4px #2F6BFF2e; }
input::placeholder { color: #4F6290; }
.form .btn { margin-top: 20px; }
.narrow { max-width: 420px; }
.inline-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.inline-form input { flex: 1; min-width: 200px; }
.pass { position: relative; }
.pass input { padding-right: 48px; }
.eye { position: absolute; right: 6px; top: 6px; width: 36px; height: 36px; border: 0; border-radius: 9px; background: transparent; cursor: pointer;
       background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239AACD6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
       background-repeat: no-repeat; background-position: center; background-size: 19px; }
.eye.on { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B9BFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.9 17.9A10 10 0 0 1 12 19c-6.5 0-10-7-10-7a18 18 0 0 1 5.1-5.9M9.9 5.2A9 9 0 0 1 12 5c6.5 0 10 7 10 7a18 18 0 0 1-2.2 3.2M1 1l22 22'/%3E%3C/svg%3E"); }
.eye:hover { background-color: #ffffff0d; }
.meter { height: 5px; border-radius: 999px; background: #ffffff12; margin-top: 8px; overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; border-radius: inherit; transition: width .25s, background .25s; }
input.code { height: 58px; font-size: 26px; font-weight: 800; letter-spacing: .5em; text-align: center; padding-left: .5em; }
.inline-form input.code { max-width: 240px; }
.check { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-weight: 500; margin-top: 18px; line-height: 1.45; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.right { text-align: right; margin: 10px 0 0; font-size: 13.5px; }
.row-between { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; font-size: 14px; }
details.change { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 14px; }
details.change summary { cursor: pointer; color: var(--accent2); font-weight: 700; list-style: none; }
details.change summary::-webkit-details-marker { display: none; }
details.change summary::before { content: "›"; display: inline-block; margin-right: 8px; transition: transform .2s; }
details.change[open] summary::before { transform: rotate(90deg); }
details.change .form { max-width: 440px; margin-top: 4px; }
.code-box { margin-top: 16px; padding: 16px; border-radius: 14px; border: 1px dashed #2F6BFF88; background: #2F6BFF12; }
.code-box p { margin: 0 0 10px; color: var(--muted); }
.code-box form + form { margin-top: 10px; }

/* ── Selector de WhatsApp (intl-tel-input) ── */
.phone .iti, .phone-view .iti { width: 100%; display: block; }
.iti { --iti-border-color: var(--border2); --iti-dialcode-color: var(--muted); --iti-dropdown-bg: #0B1636;
       --iti-hover-color: #2F6BFF22; --iti-spacer-horizontal: 12px; }
.iti input[type=tel] { padding-left: 100px; }
.iti__selected-country { border-radius: 12px 0 0 12px; }
.iti__selected-country-primary:hover, .iti__selected-country:hover { background: #ffffff0d; }
.iti__selected-dial-code { color: var(--text); font-weight: 600; }
.iti__arrow { border-top-color: var(--muted); }
.iti__arrow--up { border-bottom-color: var(--muted); }
.iti__dropdown-content { background: #0B1636; border: 1px solid var(--border2); border-radius: 12px; box-shadow: 0 18px 40px #000a; color: var(--text); }
.iti__search-input { background: #071030; color: var(--text); border: 0; border-bottom: 1px solid var(--border2); height: 42px; padding: 0 12px 0 34px; border-radius: 12px 12px 0 0; }
.iti__search-input:focus { box-shadow: none; }
.iti__country { padding: 9px 12px; }
.iti__country.iti__highlight { background: #2F6BFF2a; }
.iti__dial-code { color: var(--muted); }
.iti--fullscreen-popup .iti__dropdown-content { margin: 0; }
.iti--fullscreen-popup.iti--container { background: #050A18cc; }
.phone-view input { pointer-events: none; background: transparent; border-color: transparent; padding-left: 92px; font-size: 18px; font-weight: 700; }
.phone-view .iti__selected-country { pointer-events: none; }
.phone-view .iti__arrow { display: none; }
.phone input.bad { border-color: var(--bad); }

/* ── Actividad y ayuda ── */
.activity { list-style: none; margin: 0; padding: 0; }
.activity li { display: grid; grid-template-columns: 140px 1fr auto; gap: 12px; padding: 11px 0; border-bottom: 1px solid #16264f; font-size: 14px; }
.activity li:last-child { border-bottom: 0; }
.activity .when { color: var(--dim); }
.activity .ip { color: var(--dim); font-size: 12px; }
.faq details { border-bottom: 1px solid var(--border); padding: 14px 0; }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { color: var(--muted); margin: 10px 0 0; }

/* ── Páginas sin sesión ── */
body.auth { display: grid; place-items: start center; }
.auth-wrap { width: 100%; max-width: 460px; padding: 6vh 18px 30px; }
.auth-brand { display: flex; justify-content: center; margin-bottom: 22px; }
.auth-card { padding: 30px; }
.auth-card h1 { font-size: 25px; font-weight: 800; }
.auth-card .lead { margin-bottom: 18px; }
.switch { text-align: center; color: var(--muted); margin: 18px 0 0; }
.foot { text-align: center; color: var(--dim); font-size: 12.5px; margin-top: 22px; }

/* ── Celular ── */
@media (max-width: 820px) {
    .grid { grid-template-columns: minmax(0, 1fr); }
    .card.license { grid-row: auto; }
    .top .wrap { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 8px; gap: 10px; }
    .top nav { order: 3; flex: 1 1 100%; justify-content: flex-start; overflow-x: auto; }
    .me { margin-left: auto; }
    .activity li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
@media (max-width: 460px) {
    .plans { grid-template-columns: minmax(0, 1fr); }
    .card, .auth-card { padding: 20px; }
    .hello h1 { font-size: 25px; }
}
