.account-body{min-height:100vh;background:radial-gradient(700px 500px at 75% 10%,rgba(52,138,255,.14),transparent 65%),#050a12}.account-header{border-bottom:1px solid var(--line);background:rgba(5,10,18,.82);backdrop-filter:blur(16px)}.account-nav{height:72px;display:flex;align-items:center;justify-content:space-between}.account-back{font-size:13px;color:var(--muted)}.account-shell{min-height:calc(100vh - 72px);display:grid;grid-template-columns:1fr 520px;gap:70px;align-items:center;padding-top:70px;padding-bottom:70px}.account-intro h1{font-size:clamp(48px,6vw,78px);line-height:.98;letter-spacing:-.065em;margin:12px 0 18px}.account-intro>p{max-width:600px;color:var(--muted);font-size:18px;line-height:1.7}.account-benefits{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:30px}.account-benefits>div{padding:16px;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.018)}.account-benefits b,.account-benefits span{display:block}.account-benefits b{font-size:13px;color:#dce7ef}.account-benefits span{font-size:10px;color:var(--muted);margin-top:3px}.auth-card{position:relative;border:1px solid rgba(82,176,255,.22);border-radius:24px;background:linear-gradient(180deg,#0a1928,#07131e);padding:26px;box-shadow:var(--shadow)}.auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:5px;border:1px solid var(--line);border-radius:12px;background:#06111b}.auth-tab{border:0;border-radius:8px;background:transparent;color:#7890a4;padding:10px;font-weight:750;cursor:pointer}.auth-tab.active{background:#0e2032;color:#eaf4fb}.auth-form{display:none;margin-top:22px}.auth-form.active{display:grid;gap:14px}.auth-form label{display:grid;gap:7px}.auth-form label span{font-size:11px;font-weight:750;color:#aebfcd}.auth-form input{width:100%;border:1px solid var(--line);border-radius:11px;background:#06111b;color:#eef6fb;padding:13px 14px;outline:none}.auth-form input:focus{border-color:rgba(34,216,255,.42);box-shadow:0 0 0 3px rgba(34,216,255,.07)}.text-button{border:0;background:transparent;color:#71dff7;font-size:12px;cursor:pointer;padding:6px}.auth-note{display:block;color:#5f778d;font-size:10px;line-height:1.55;text-align:center}.form-head h2{margin:0 0 6px;font-size:23px;letter-spacing:-.035em}.form-head p{margin:0 0 6px;color:var(--muted);font-size:12px;line-height:1.55}.auth-message{min-height:18px;margin-top:15px;text-align:center;font-size:11px;color:#8fa7b9}.auth-message.error{color:#ff8297}.auth-message.success{color:#75efc2}.account-state{display:flex;gap:11px;align-items:center;padding-bottom:18px;border-bottom:1px solid var(--line)}.state-dot{width:9px;height:9px;border-radius:50%;background:var(--green);box-shadow:0 0 16px rgba(34,223,154,.55)}.account-state small,.account-state strong{display:block}.account-state small{font-size:9px;color:var(--muted)}.account-state strong{font-size:14px;margin-top:2px}.account-box{margin-top:18px;padding:19px;border:1px solid var(--line);border-radius:17px;background:rgba(255,255,255,.018)}.account-plan-row{display:flex;justify-content:space-between;gap:14px;align-items:center}.account-plan-row h2{margin:7px 0 2px;font-size:21px}.account-plan-row p{margin:0;color:var(--muted);font-size:11px}.account-plan-status{font-size:9px;padding:6px 8px;border-radius:999px;border:1px solid rgba(255,193,92,.20);color:#ffd183;background:rgba(255,193,92,.06);white-space:nowrap}.account-actions{display:flex;justify-content:flex-end;margin-top:16px}
@media(max-width:900px){.account-shell{grid-template-columns:1fr;gap:36px;align-items:start}.account-intro{max-width:700px}.auth-card{width:100%;max-width:560px}}
@media(max-width:620px){.account-shell{padding-top:42px;padding-bottom:42px}.account-intro h1{font-size:48px}.account-benefits{grid-template-columns:1fr}.account-back{font-size:11px}.auth-card{padding:20px}.account-plan-row{align-items:flex-start;flex-direction:column}}
.payment-panel{margin-top:18px;padding-top:18px;border-top:1px solid var(--line)}
.payment-panel[hidden]{display:none}
.payment-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.payment-head h3{margin:5px 0 0;font-size:20px;letter-spacing:-.035em}
.payment-close{border:1px solid var(--line);background:#06111b;color:#8ea4b6;width:30px;height:30px;border-radius:9px;font-size:20px;line-height:1;cursor:pointer}
.payment-copy{color:var(--muted);font-size:11px;line-height:1.55;margin:10px 0 16px}
.payment-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.payment-field{display:grid;gap:7px}
.payment-field>span{font-size:10px;font-weight:750;color:#aebfcd}
.payment-wide{grid-column:1/-1}
.payment-field input,.payment-field select,.mp-field{width:100%;height:44px;border:1px solid var(--line);border-radius:11px;background:#06111b;color:#eef6fb;padding:0 13px;outline:none}
.payment-field input:focus,.payment-field select:focus,.mp-field:focus-within{border-color:rgba(34,216,255,.42);box-shadow:0 0 0 3px rgba(34,216,255,.07)}
.mp-field{padding:12px 13px}
.mp-hidden-fields{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.payment-progress{width:100%;height:3px;margin:12px 0 8px;opacity:.55}
.account-plan-status[data-state="trialing"],.account-plan-status[data-state="active"]{border-color:rgba(34,223,154,.22);color:#75efc2;background:rgba(34,223,154,.06)}
.account-plan-status[data-state="cancelled"],.account-plan-status[data-state="expired"],.account-plan-status[data-state="used"]{border-color:rgba(255,130,151,.22);color:#ff9bad;background:rgba(255,130,151,.06)}
@media(max-width:620px){.payment-grid{grid-template-columns:1fr}.payment-wide{grid-column:auto}}


/* Fuerza el comportamiento nativo de hidden aunque otros estilos definan display */
[hidden] { display: none !important; }

/* Perfil sincronizado */
.profile-box{display:grid;gap:18px}
.profile-head{display:flex;align-items:center;gap:14px}
.profile-avatar-wrap{position:relative;width:76px;height:76px;flex:0 0 76px}
.profile-avatar{width:76px;height:76px;border-radius:22px;object-fit:cover;border:1px solid rgba(82,176,255,.28);background:#06111b;box-shadow:0 10px 28px rgba(0,0,0,.24)}
.profile-avatar-fallback{display:grid;place-items:center;font-size:27px;font-weight:850;color:#dff8ff;background:linear-gradient(135deg,#0d3044,#173256 55%,#31205b)}
.profile-avatar-edit{position:absolute;right:-5px;bottom:-5px;width:30px;height:30px;border-radius:10px;border:1px solid #28445f;background:#0b1a28;color:#dbefff;cursor:pointer;font-weight:800}
.profile-title h2{margin:5px 0 2px;font-size:21px}.profile-title p{margin:0;color:var(--muted);font-size:11px;line-height:1.5}
.profile-form{display:grid;grid-template-columns:1fr 1fr;gap:12px}.profile-form label,.security-grid label{display:grid;gap:7px}.profile-form label span,.security-grid label span{font-size:10px;font-weight:750;color:#aebfcd}
.profile-form input,.security-grid input{width:100%;height:44px;border:1px solid var(--line);border-radius:11px;background:#06111b;color:#eef6fb;padding:0 13px;outline:none}
.profile-form input:focus,.security-grid input:focus{border-color:rgba(34,216,255,.42);box-shadow:0 0 0 3px rgba(34,216,255,.07)}
.profile-form button{grid-column:1/-1}
.security-box{display:grid;gap:13px}.security-grid{display:grid;gap:10px}.security-action-row{display:grid;grid-template-columns:1fr auto;gap:8px}.security-action-row .button{white-space:nowrap;padding-left:14px;padding-right:14px}
#profileEmail{opacity:.72;cursor:not-allowed}
@media(max-width:620px){.profile-form{grid-template-columns:1fr}.profile-form button{grid-column:auto}.security-action-row{grid-template-columns:1fr}.profile-head{align-items:flex-start}}


/* ===== v4: correcciones de Perfil / Seguridad =====
   styles.css también usa .security-grid en la landing.
   En /cuenta/ la forzamos a una sola columna para evitar el layout comprimido.
*/
.account-body .security-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) !important;
  gap:14px;
  width:100%;
}
.account-body .security-grid > *{min-width:0;width:100%}
.account-body .security-action-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  align-items:end;
  width:100%;
  min-width:0;
}
.account-body .security-action-row input{min-width:0}
.account-body .security-action-row .button{
  min-height:44px;
  white-space:nowrap;
  padding-left:16px;
  padding-right:16px;
}
.account-body .profile-form input,
.account-body .security-grid input{
  box-sizing:border-box;
}

/* Chrome/Edge puede pintar autofill claro aunque el sitio sea oscuro. */
.account-body input:-webkit-autofill,
.account-body input:-webkit-autofill:hover,
.account-body input:-webkit-autofill:focus,
.account-body input:-webkit-autofill:active{
  -webkit-text-fill-color:#eef6fb !important;
  caret-color:#eef6fb !important;
  -webkit-box-shadow:0 0 0 1000px #06111b inset !important;
  box-shadow:0 0 0 1000px #06111b inset !important;
  border:1px solid var(--line) !important;
  transition:background-color 9999s ease-out 0s;
}
@media(max-width:620px){
  .account-body .security-action-row{grid-template-columns:1fr}
}


/* ===== v5: cuenta moderna / modo lectura-edición ===== */
.account-body.is-authenticated .account-intro{display:none}
.account-body.is-authenticated .account-shell{
  display:block;
  min-height:calc(100vh - 72px);
  padding-top:42px;
  padding-bottom:72px;
}
.account-body.is-authenticated .auth-card{
  width:min(920px,100%);
  max-width:none;
  margin:0 auto;
  padding:28px;
}
.account-dashboard-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
  padding:2px 2px 22px;
  border-bottom:1px solid var(--line);
}
.account-dashboard-head h1{
  margin:8px 0 6px;
  font-size:36px;
  line-height:1;
  letter-spacing:-.045em;
}
.account-dashboard-head p{
  margin:0;
  max-width:600px;
  color:var(--muted);
  font-size:12px;
}
.account-session-pill{
  display:flex;
  gap:10px;
  align-items:center;
  min-width:220px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:13px;
  background:rgba(255,255,255,.018);
}
.account-session-pill small,.account-session-pill strong{display:block}
.account-session-pill small{font-size:9px;color:var(--muted)}
.account-session-pill strong{
  max-width:190px;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  margin-top:2px;font-size:11px
}
.account-section-heading{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
}
.account-section-heading h2{margin:6px 0 3px;font-size:20px}
.account-section-heading p{margin:0;color:var(--muted);font-size:11px}

.profile-head-view{position:relative}
.profile-head-view .profile-title{min-width:0;flex:1}
.profile-status-badge{margin-left:auto}
.profile-read{display:grid;gap:18px}
.profile-info-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden;
  background:#07131e;
}
.profile-info-item{
  min-height:72px;
  padding:14px 16px;
  display:grid;
  align-content:center;
  gap:5px;
  border-bottom:1px solid var(--line);
}
.profile-info-item:nth-child(odd){border-right:1px solid var(--line)}
.profile-info-item:nth-last-child(-n+2){border-bottom:0}
.profile-info-wide{grid-column:1/-1;border-right:0!important;border-bottom:0!important}
.profile-info-item span{
  color:#6f879a;
  font-size:9px;
  font-weight:760;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.profile-info-item strong{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:12px;
  color:#e7f1f8;
}
.profile-card-actions{
  display:flex;
  justify-content:flex-end;
  padding-top:2px;
  border-top:1px solid var(--line);
}
.profile-card-actions .button{min-width:126px}
.profile-edit-form{
  grid-template-columns:1fr 1fr;
  padding-top:16px;
  border-top:1px solid var(--line);
}
.profile-edit-note{
  grid-column:1/-1;
  color:#72def8;
  font-size:10px;
  font-weight:850;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.profile-edit-actions{
  grid-column:1/-1;
  display:flex;
  justify-content:flex-end;
  gap:9px;
  margin-top:4px;
}
.profile-edit-actions .button{margin-top:0}
.profile-avatar-edit[hidden]{display:none!important}

.security-current-email{
  margin-top:14px;
  padding:13px 15px;
  display:flex;
  justify-content:space-between;
  gap:15px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#07131e;
}
.security-current-email span{font-size:10px;color:#728a9e}
.security-current-email strong{font-size:11px;color:#dce8f1}
.account-body .security-grid{margin-top:12px}
.security-setting{
  display:grid;
  grid-template-columns:minmax(150px,.7fr) minmax(0,1.3fr);
  gap:18px;
  align-items:center;
  padding:14px 0;
  border-top:1px solid var(--line);
}
.security-setting:first-child{border-top:0}
.security-setting>div:first-child{display:grid;gap:3px}
.security-setting>div:first-child strong{font-size:11px;color:#dce8f1}
.security-setting>div:first-child small{font-size:9px;color:#6e879b}
.security-setting .security-action-row{width:100%}

.account-box{scroll-margin-top:96px}

@media(max-width:760px){
  .account-dashboard-head{align-items:flex-start;flex-direction:column}
  .account-session-pill{width:100%}
  .profile-info-grid{grid-template-columns:1fr}
  .profile-info-item,.profile-info-item:nth-child(odd),.profile-info-item:nth-last-child(-n+2){
    border-right:0;
    border-bottom:1px solid var(--line)
  }
  .profile-info-wide{grid-column:auto}
  .profile-info-item:last-child{border-bottom:0}
  .security-setting{grid-template-columns:1fr;gap:9px}
}
@media(max-width:620px){
  .account-body.is-authenticated .auth-card{padding:18px}
  .account-dashboard-head h1{font-size:31px}
  .profile-head-view{align-items:flex-start}
  .profile-status-badge{position:absolute;right:0;top:0}
  .profile-edit-form{grid-template-columns:1fr}
  .profile-edit-note,.profile-edit-actions{grid-column:auto}
  .profile-edit-actions{flex-direction:column-reverse}
  .profile-edit-actions .button{width:100%}
}


/* ===== v6: centro de cuenta completo ===== */
.account-body.is-authenticated .auth-card{
  width:min(1180px,100%);
  padding:28px;
}
.account-dashboard-layout{
  display:grid;
  grid-template-columns:190px minmax(0,1fr);
  gap:24px;
  margin-top:24px;
}
.account-side-nav{
  position:sticky;
  top:92px;
  align-self:start;
  display:grid;
  gap:4px;
  padding:10px;
  border:1px solid var(--line);
  border-radius:16px;
  background:rgba(7,19,30,.82);
  backdrop-filter:blur(16px);
}
.account-nav-label{
  padding:8px 10px 7px;
  color:#60798d;
  font-size:8px;
  font-weight:850;
  letter-spacing:.14em;
}
.account-nav-link,.account-side-logout{
  display:flex;
  align-items:center;
  min-height:38px;
  padding:0 11px;
  border:0;
  border-radius:10px;
  background:transparent;
  color:#8da3b4;
  font:inherit;
  font-size:10px;
  font-weight:700;
  text-align:left;
  cursor:pointer;
  transition:background .15s ease,color .15s ease,transform .15s ease;
}
.account-nav-link:hover,.account-side-logout:hover{
  background:rgba(255,255,255,.035);
  color:#e9f5fc;
  transform:translateX(2px);
}
.account-nav-link.active{
  color:#dff9ff;
  background:linear-gradient(90deg,rgba(34,216,255,.09),rgba(116,89,255,.055));
  box-shadow:inset 2px 0 0 #25d8ff;
}
.account-side-separator{height:1px;background:var(--line);margin:6px 4px}
.account-side-logout{color:#ff9bad}
.account-main{display:grid;gap:18px;min-width:0}
.account-section{
  scroll-margin-top:92px;
  animation:accountSectionIn .28s ease both;
}
.account-main>.account-section:nth-child(2){animation-delay:.025s}
.account-main>.account-section:nth-child(3){animation-delay:.05s}
.account-main>.account-section:nth-child(4){animation-delay:.075s}
.account-main>.account-section:nth-child(5){animation-delay:.10s}
.account-main>.account-section:nth-child(6){animation-delay:.125s}
@keyframes accountSectionIn{
  from{opacity:0;transform:translateY(8px)}
  to{opacity:1;transform:translateY(0)}
}

.account-box,.account-overview{
  position:relative;
  overflow:hidden;
  border:1px solid rgba(105,158,200,.16);
  box-shadow:0 20px 60px rgba(0,0,0,.12);
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.account-box:hover,.account-overview:hover{
  transform:translateY(-2px);
  border-color:rgba(77,190,255,.22);
  box-shadow:0 24px 70px rgba(0,0,0,.16),0 0 40px rgba(34,216,255,.022);
}
.account-box::before,.account-overview::before{
  content:"";
  position:absolute;
  inset:0 auto auto 12%;
  width:44%;
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(34,216,255,.35),transparent);
  opacity:.48;
  pointer-events:none;
}

.account-overview{
  padding:20px;
  border-radius:18px;
  background:linear-gradient(145deg,rgba(9,29,44,.94),rgba(7,19,30,.97));
}
.overview-hero{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding-bottom:18px;
  border-bottom:1px solid var(--line);
}
.overview-profile{display:flex;align-items:center;gap:13px;min-width:0}
.overview-profile h2{margin:5px 0 2px;font-size:22px}
.overview-profile p{margin:0;color:#7991a5;font-size:10px}
.overview-avatar-wrap{position:relative;width:54px;height:54px;flex:0 0 54px}
.overview-avatar{
  width:54px;height:54px;border-radius:16px;object-fit:cover;
  border:1px solid rgba(62,185,255,.28);background:#081824
}
.overview-avatar-fallback{
  display:grid;place-items:center;
  color:#e6f9ff;font-weight:850;font-size:18px;
  background:linear-gradient(135deg,#0d3044,#173256 55%,#31205b)
}
.overview-online-dot{
  position:absolute;right:-2px;bottom:-2px;
  width:11px;height:11px;border-radius:50%;
  border:2px solid #081824;background:#22df9a;
  box-shadow:0 0 12px rgba(34,223,154,.32)
}
.account-summary-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-top:14px;
}
.summary-card{
  min-height:104px;
  padding:14px;
  display:grid;
  align-content:center;
  gap:5px;
  border:1px solid var(--line);
  border-radius:13px;
  background:#07131e;
  transition:transform .16s ease,border-color .16s ease,background .16s ease;
}
.summary-card:hover{
  transform:translateY(-2px);
  border-color:rgba(34,216,255,.18);
  background:#081725;
}
.summary-label{
  color:#668095;font-size:8px;font-weight:850;letter-spacing:.11em
}
.summary-card strong{font-size:17px;color:#eef7fd;letter-spacing:-.02em}
.summary-card small{font-size:9px;color:#71899c}
.overview-activity{
  display:flex;align-items:center;justify-content:space-between;gap:18px;
  margin-top:12px;padding:11px 13px;
  border:1px solid var(--line);border-radius:12px;
  background:rgba(255,255,255,.015)
}
.overview-activity div{display:grid;gap:2px}
.overview-activity span{font-size:8px;color:#688195;text-transform:uppercase;letter-spacing:.08em}
.overview-activity strong{font-size:10px;color:#cbdbe7}
.overview-activity a{font-size:9px;color:#64dff7}

.account-section-heading h2{font-size:21px}
.account-section-heading p{max-width:560px}

.profile-head-view{padding:14px 0 4px}
.profile-head-view .profile-title h3{margin:0 0 3px;font-size:18px}
.profile-avatar-interactive:hover .profile-avatar{
  filter:brightness(.88);
}
.profile-avatar-edit{
  transition:transform .15s ease,background .15s ease,border-color .15s ease;
}
.profile-avatar-edit:hover{
  transform:scale(1.06);
  background:#10253a;
  border-color:rgba(34,216,255,.34)
}

.subscription-progress-card{
  margin-top:16px;
  padding:15px;
  border:1px solid rgba(34,216,255,.13);
  border-radius:14px;
  background:linear-gradient(120deg,rgba(34,216,255,.035),rgba(116,89,255,.025));
}
.subscription-progress-head{
  display:flex;align-items:flex-end;justify-content:space-between;gap:15px
}
.subscription-progress-head div{display:grid;gap:3px}
.subscription-progress-head small{font-size:8px;color:#70899c;text-transform:uppercase;letter-spacing:.1em}
.subscription-progress-head strong{font-size:17px;color:#ecf8ff}
.subscription-progress-head>span{font-size:9px;color:#7891a5}
.subscription-progress-track{
  margin-top:12px;height:6px;border-radius:999px;overflow:hidden;
  background:#05101a;border:1px solid rgba(100,151,190,.10)
}
.subscription-progress-track i{
  display:block;height:100%;width:0;border-radius:999px;
  background:linear-gradient(90deg,#22d8ff,#5967ff,#8a59ff);
  box-shadow:0 0 18px rgba(69,151,255,.28);
  transition:width .65s cubic-bezier(.2,.8,.2,1);
  position:relative
}
.subscription-progress-track i::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.34),transparent);
  transform:translateX(-100%);
  animation:progressSheen 2.3s ease-in-out infinite
}
@keyframes progressSheen{50%,100%{transform:translateX(120%)}}
.subscription-detail-grid{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  border:1px solid var(--line);border-radius:14px;overflow:hidden;
  margin-top:12px;background:#07131e
}
.subscription-detail-grid>div{
  min-height:68px;padding:13px 15px;display:grid;align-content:center;gap:4px;
  border-bottom:1px solid var(--line)
}
.subscription-detail-grid>div:nth-child(odd){border-right:1px solid var(--line)}
.subscription-detail-grid>div:nth-last-child(-n+2){border-bottom:0}
.subscription-detail-grid span{
  font-size:8px;color:#688195;text-transform:uppercase;letter-spacing:.08em
}
.subscription-detail-grid strong{font-size:11px;color:#dce9f3}
.subscription-actions{
  display:flex;align-items:center;justify-content:flex-end;gap:8px;
  margin-top:14px;padding-top:14px;border-top:1px solid var(--line)
}
.button-danger{
  border:1px solid rgba(255,111,133,.22);
  color:#ff9aac;background:rgba(255,80,110,.045)
}
.button-danger:hover{
  border-color:rgba(255,111,133,.38);
  background:rgba(255,80,110,.085)
}

.device-count-badge,.version-badge{
  padding:6px 9px;border:1px solid var(--line);border-radius:999px;
  color:#87a1b5;font-size:9px;font-weight:800;background:#07131e
}
.device-list{display:grid;gap:9px;margin-top:15px}
.device-card{
  display:grid;
  grid-template-columns:40px minmax(0,1fr) auto;
  gap:12px;align-items:center;
  padding:12px 13px;
  border:1px solid var(--line);border-radius:13px;background:#07131e;
  transition:transform .15s ease,border-color .15s ease,background .15s ease
}
.device-card:hover{
  transform:translateY(-1px);
  border-color:rgba(34,216,255,.18);
  background:#081725
}
.device-icon{
  width:40px;height:40px;display:grid;place-items:center;
  border:1px solid rgba(94,169,223,.16);border-radius:11px;
  background:#091a28;color:#72ddf8;font-size:15px;font-weight:850
}
.device-info{min-width:0;display:grid;gap:3px}
.device-info-row{display:flex;align-items:center;gap:7px;min-width:0}
.device-info strong{
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  color:#e6f0f7;font-size:11px
}
.device-info small{color:#71899c;font-size:9px}
.device-status{
  padding:3px 6px;border-radius:999px;font-size:8px;font-weight:800;
  border:1px solid rgba(34,223,154,.18);color:#75efc2;background:rgba(34,223,154,.045)
}
.device-status.revoked{
  border-color:rgba(255,111,133,.18);color:#ff9aac;background:rgba(255,80,110,.045)
}
.device-actions{display:flex;gap:7px}
.device-actions .button{min-height:34px;padding:0 11px;font-size:9px}
.device-empty{
  margin-top:14px;padding:18px;border:1px dashed rgba(114,154,184,.20);
  border-radius:13px;color:#71899c;font-size:10px;text-align:center
}
.device-skeleton{
  height:66px;border-radius:13px;
  background:linear-gradient(90deg,#07131e 20%,#0a1b29 42%,#07131e 66%);
  background-size:220% 100%;
  animation:skeleton 1.4s linear infinite
}
@keyframes skeleton{to{background-position:-220% 0}}

.download-product{
  display:grid;grid-template-columns:52px minmax(0,1fr) auto;
  gap:13px;align-items:center;
  margin-top:15px;padding:14px;
  border:1px solid var(--line);border-radius:14px;background:#07131e
}
.download-product-icon{
  width:52px;height:52px;display:grid;place-items:center;border-radius:14px;
  background:linear-gradient(135deg,#0d3044,#173256 55%,#31205b);
  border:1px solid rgba(52,192,255,.22);color:#e8faff;font-size:18px;font-weight:900
}
.download-product-copy{min-width:0;display:grid;gap:3px}
.download-product-copy strong{font-size:12px;color:#e7f1f8}
.download-product-copy span{font-size:9px;color:#7b94a8}
.download-product-copy small{font-size:9px;color:#607a8f}
.release-notes{
  display:flex;justify-content:space-between;gap:20px;
  margin-top:10px;padding:11px 13px;border-radius:11px;
  background:rgba(255,255,255,.015);border:1px solid var(--line)
}
.release-notes strong{font-size:9px;color:#a9bfce}
.release-notes span{font-size:9px;color:#6e879b;text-align:right}

.confirm-overlay{
  position:fixed;inset:0;z-index:9999;
  display:grid;place-items:center;padding:20px;
  background:rgba(1,7,12,.72);backdrop-filter:blur(10px)
}
.confirm-dialog{
  width:min(430px,100%);
  padding:22px;border:1px solid rgba(103,168,216,.20);border-radius:18px;
  background:#081623;box-shadow:0 35px 100px rgba(0,0,0,.55);
  animation:confirmIn .18s cubic-bezier(.2,.8,.2,1) both
}
@keyframes confirmIn{from{opacity:0;transform:translateY(9px) scale(.985)}to{opacity:1;transform:none}}
.confirm-kicker{font-size:8px;font-weight:900;color:#66def7;letter-spacing:.13em}
.confirm-dialog h2{margin:8px 0 6px;font-size:21px}
.confirm-dialog p{margin:0;color:#7c94a7;font-size:10px;line-height:1.55}
.confirm-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}

.toast-stack{
  position:fixed;z-index:10000;right:18px;top:88px;
  width:min(340px,calc(100vw - 36px));
  display:grid;gap:8px;pointer-events:none
}
.cajio-toast{
  display:grid;grid-template-columns:26px 1fr;gap:9px;align-items:center;
  padding:11px 12px;border:1px solid rgba(99,161,207,.18);border-radius:13px;
  background:rgba(7,19,30,.96);box-shadow:0 18px 60px rgba(0,0,0,.36);
  backdrop-filter:blur(16px);animation:toastIn .2s ease both
}
.cajio-toast.success{border-color:rgba(34,223,154,.20)}
.cajio-toast.error{border-color:rgba(255,111,133,.24)}
.cajio-toast-icon{
  width:26px;height:26px;display:grid;place-items:center;border-radius:8px;
  background:#0b1e2c;color:#65ddf7;font-size:11px;font-weight:900
}
.cajio-toast.success .cajio-toast-icon{color:#72eebf}
.cajio-toast.error .cajio-toast-icon{color:#ff9bad}
.cajio-toast div{display:grid;gap:2px}
.cajio-toast strong{font-size:10px;color:#eaf3f8}
.cajio-toast span{font-size:9px;color:#71899c}
@keyframes toastIn{from{opacity:0;transform:translateX(12px)}to{opacity:1;transform:none}}

.account-main.is-loading .summary-card strong,
.account-main.is-loading .summary-card small,
.account-main.is-loading .overview-profile h2,
.account-main.is-loading .overview-profile p{
  color:transparent!important;
  border-radius:5px;
  background:linear-gradient(90deg,#0a1824 20%,#102334 42%,#0a1824 66%);
  background-size:220% 100%;
  animation:skeleton 1.4s linear infinite
}

@media(max-width:900px){
  .account-dashboard-layout{grid-template-columns:1fr}
  .account-side-nav{
    position:sticky;top:72px;z-index:20;
    display:flex;overflow-x:auto;gap:3px;
    padding:7px;border-radius:13px
  }
  .account-nav-label,.account-side-separator,.account-side-logout{display:none}
  .account-nav-link{flex:0 0 auto;padding:0 10px}
}
@media(max-width:700px){
  .account-summary-grid{grid-template-columns:1fr}
  .subscription-detail-grid{grid-template-columns:1fr}
  .subscription-detail-grid>div,
  .subscription-detail-grid>div:nth-child(odd),
  .subscription-detail-grid>div:nth-last-child(-n+2){
    border-right:0;border-bottom:1px solid var(--line)
  }
  .subscription-detail-grid>div:last-child{border-bottom:0}
  .device-card{grid-template-columns:38px minmax(0,1fr)}
  .device-actions{grid-column:1/-1;justify-content:flex-end}
  .download-product{grid-template-columns:46px 1fr}
  .download-product .button{grid-column:1/-1;width:100%}
  .release-notes{display:grid}
  .release-notes span{text-align:left}
}
@media(max-width:520px){
  .overview-hero{align-items:flex-start;flex-direction:column}
  .subscription-actions{display:grid}
  .subscription-actions .button{width:100%}
  .overview-activity{align-items:flex-start;flex-direction:column}
}
@media(prefers-reduced-motion:reduce){
  .account-section,.confirm-dialog,.cajio-toast,.subscription-progress-track i::after{animation:none!important}
  .account-box,.summary-card,.device-card,.account-nav-link{transition:none}
}


/* ===== v7: nitidez + navegación premium ===== */
html,body,button,input,select,textarea,summary{
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
}
svg{shape-rendering:geometricPrecision}
.account-back{
  display:inline-flex;align-items:center;gap:10px;
  padding:8px 12px 8px 9px;
  border:1px solid rgba(109,167,210,.18);
  border-radius:14px;
  background:linear-gradient(180deg,rgba(12,23,36,.88),rgba(8,17,28,.94));
  color:#dcebfb;
  transition:border-color .16s ease,transform .16s ease,box-shadow .16s ease,background .16s ease;
}
.account-back:hover{
  border-color:rgba(34,216,255,.30);
  transform:translateY(-1px);
  box-shadow:0 14px 34px rgba(0,0,0,.24),0 0 24px rgba(34,216,255,.03);
  background:linear-gradient(180deg,rgba(13,27,42,.92),rgba(8,18,30,.97));
}
.account-back-icon{
  width:30px;height:30px;display:grid;place-items:center;flex:0 0 30px;
  border-radius:10px;border:1px solid rgba(109,167,210,.16);
  background:linear-gradient(180deg,rgba(34,216,255,.09),rgba(116,89,255,.08));
  color:#70e6ff;
}
.account-back-icon svg{width:16px;height:16px;display:block}
.account-back-copy{display:grid;gap:1px;line-height:1.1}
.account-back-copy strong{font-size:12px;color:#ecf7ff}
.account-back-copy small{font-size:10px;color:#7390a4}

.account-side-nav{
  padding:12px;
  border-radius:18px;
  box-shadow:0 18px 52px rgba(0,0,0,.16);
}
.account-nav-label{padding:8px 12px;font-size:9px}
.account-nav-link,.account-side-logout{
  grid-template-columns:36px 1fr;
  gap:10px;
  min-height:52px;
  padding:8px 10px;
  border-radius:14px;
  font-size:12px;
}
.account-nav-link{
  display:grid;align-items:center;
}
.account-side-logout{
  display:grid;align-items:center;
}
.account-nav-link:hover,.account-side-logout:hover{
  transform:translateX(3px);
  background:linear-gradient(90deg,rgba(255,255,255,.04),rgba(255,255,255,.015));
}
.account-nav-link.active{
  box-shadow:inset 2px 0 0 #25d8ff, 0 10px 24px rgba(0,0,0,.16);
}
.account-nav-icon{
  width:36px;height:36px;display:grid;place-items:center;
  border-radius:12px;border:1px solid rgba(113,172,215,.18);
  background:linear-gradient(180deg,rgba(12,24,37,.95),rgba(8,19,31,.95));
  color:#87dcff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
}
.account-nav-icon svg{width:18px;height:18px;display:block}
.account-nav-copy{display:grid;gap:2px;min-width:0;text-align:left}
.account-nav-copy strong{font-size:12px;color:#eaf4fb;letter-spacing:-.01em}
.account-nav-copy small{font-size:10px;color:#6f879a;line-height:1.2}
.account-nav-link.active .account-nav-copy strong,
.account-nav-link:hover .account-nav-copy strong,
.account-side-logout:hover .account-nav-copy strong{color:#f3fbff}
.account-nav-link.active .account-nav-copy small{color:#9ac8de}
.account-nav-link.active .account-nav-icon,
.account-nav-link:hover .account-nav-icon{border-color:rgba(34,216,255,.25)}
.account-nav-icon-summary{color:#72e5ff;background:linear-gradient(180deg,rgba(34,216,255,.10),rgba(15,30,46,.96))}
.account-nav-icon-profile{color:#86d4ff;background:linear-gradient(180deg,rgba(70,132,255,.10),rgba(15,30,46,.96))}
.account-nav-icon-subscription{color:#b69dff;background:linear-gradient(180deg,rgba(116,89,255,.15),rgba(15,30,46,.96))}
.account-nav-icon-devices{color:#7ce7cb;background:linear-gradient(180deg,rgba(34,223,154,.10),rgba(15,30,46,.96))}
.account-nav-icon-security{color:#88dbff;background:linear-gradient(180deg,rgba(34,216,255,.08),rgba(15,30,46,.96))}
.account-nav-icon-downloads{color:#8cc3ff;background:linear-gradient(180deg,rgba(91,116,255,.12),rgba(15,30,46,.96))}
.account-nav-icon-logout{color:#ff9aae;background:linear-gradient(180deg,rgba(255,96,129,.08),rgba(21,18,28,.95))}

/* subo tamaños pequeños para evitar sensación low-res */
.account-session-pill small,.summary-label,.overview-activity span,.plan-label{font-size:9px}
.overview-profile p,.summary-card small,.overview-activity strong,.device-info small,.release-notes strong,.release-notes span,.download-product-copy span,.download-product-copy small,.profile-info-item span,.subscription-progress-head small,.subscription-progress-head>span,.subscription-detail-grid span{font-size:11px}
.account-plan-status,.device-count-badge,.version-badge{font-size:10px}
.subscription-detail-grid strong,.device-info strong,.download-product-copy strong{font-size:12px}
.profile-info-item strong{font-size:13px}
.profile-head-view .profile-title h3{font-size:20px}
.profile-title p,.account-section-heading p{font-size:12px;line-height:1.6}
.security-current-email span,.security-setting small{font-size:11px}
.security-current-email strong,.security-setting strong{font-size:12px}
.account-benefits b{font-size:14px}
.account-benefits span{font-size:11px}
.auth-form label span,.form-head p,.auth-message,.auth-note,.text-button{font-size:12px}
.auth-tab{font-size:13px}
.auth-form input,.profile-form input,.security-grid input,.payment-field input,.payment-field select,.mp-field{font-size:15px}
.payment-field span{font-size:11px}
@media(max-width:900px){
  .account-nav-link,.account-side-logout{min-height:44px;padding:6px 10px;display:flex}
  .account-nav-icon{width:32px;height:32px;flex:0 0 32px}
  .account-nav-icon svg{width:16px;height:16px}
}
