.account-body {
  min-height: 100vh;
  background: #0e071d;
}
.account-navbar { position: relative; }
.account-nav-actions { display: flex; gap: 10px; align-items: center; }
.account-page {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 80px;
}
.account-kicker,
.panel-eyebrow {
  color: #6ee7b7;
  font-family: 'Sora', sans-serif;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
  gap: 64px;
  align-items: center;
  min-height: 620px;
}
.auth-intro h1,
.dashboard-heading h1 {
  margin: 14px 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
}
.auth-intro p { max-width: 620px; color: rgba(233, 213, 255, .72); font-size: 18px; line-height: 1.7; }
.auth-benefits { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.auth-benefits span {
  padding: 8px 12px;
  border: 1px solid rgba(110, 231, 183, .25);
  border-radius: 6px;
  background: rgba(16, 185, 129, .08);
  color: #d1fae5;
  font-size: 13px;
}
.auth-panel,
.profile-panel,
.dashboard-panel,
.account-stat {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  background: rgba(24, 12, 52, .88);
  box-shadow: 0 22px 60px rgba(0,0,0,.24);
}
.auth-panel { padding: 26px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 24px; padding: 4px; background: rgba(255,255,255,.05); border-radius: 6px; }
.auth-tab {
  border: 0;
  border-radius: 4px;
  padding: 11px;
  color: rgba(233,213,255,.68);
  background: transparent;
  font: 700 13px 'Sora', sans-serif;
  cursor: pointer;
}
.auth-tab.active { color: #fff; background: rgba(139,92,246,.3); }
.auth-form { display: none; gap: 17px; }
.auth-form.active { display: grid; }
.auth-form label { display: grid; gap: 8px; color: #ddd6fe; font-size: 13px; font-weight: 600; }
.auth-form input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(196,181,253,.24);
  border-radius: 6px;
  outline: none;
  color: #fff;
  background: rgba(8,4,24,.65);
  font: 15px 'Inter', sans-serif;
}
.auth-form input:focus { border-color: #8b5cf6; box-shadow: 0 0 0 3px rgba(139,92,246,.16); }
.auth-message { min-height: 20px; margin-top: 14px; color: #fca5a5; font-size: 13px; }
.dashboard-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.dashboard-heading h1 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 0; }
.account-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 22px; align-items: start; }
.profile-panel { position: sticky; top: 20px; padding: 24px; text-align: center; }
.profile-avatar {
  width: 76px; height: 76px; display: grid; place-items: center; margin: 0 auto 14px;
  border-radius: 50%; color: #07130f; background: #6ee7b7; font: 800 30px 'Sora', sans-serif;
}
.profile-panel h2 { font-size: 20px; }
.profile-panel > p { margin: 6px 0 14px; color: rgba(233,213,255,.58); font-size: 12px; overflow-wrap: anywhere; }
.plan-badge { padding: 8px; border: 1px solid rgba(139,92,246,.35); border-radius: 5px; color: #ddd6fe; background: rgba(139,92,246,.12); font: 700 12px 'Sora', sans-serif; }
.profile-divider { height: 1px; margin: 22px 0 14px; background: rgba(255,255,255,.08); }
.profile-line { display: flex; justify-content: space-between; gap: 10px; margin: 12px 0; font-size: 12px; }
.profile-line span { color: rgba(233,213,255,.55); }
.profile-panel .btn { width: 100%; margin-top: 14px; }
.dashboard-main { display: grid; gap: 22px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.account-stat { padding: 20px; }
.account-stat span { color: rgba(233,213,255,.58); font-size: 12px; }
.account-stat strong { display: block; margin: 8px 0 4px; font: 800 29px 'Sora', sans-serif; }
.account-stat small { color: rgba(233,213,255,.48); font-size: 11px; }
.dashboard-panel { padding: 24px; }
.panel-heading { display: flex; justify-content: space-between; gap: 18px; align-items: end; margin-bottom: 18px; }
.panel-heading h2 { margin-top: 5px; font-size: 21px; }
.panel-heading > strong { font: 700 15px 'Sora', sans-serif; color: #c4b5fd; }
.account-progress-track { height: 11px; overflow: hidden; border-radius: 4px; background: rgba(255,255,255,.07); }
.account-progress-track div { width: 0; height: 100%; background: #34d399; transition: width .4s ease; }
.milestone-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 14px; color: rgba(233,213,255,.62); font-size: 12px; }
.week-label { color: rgba(233,213,255,.5); font-size: 11px; }
.league-explainer { margin: -4px 0 18px; color: rgba(233,213,255,.58); font-size: 12px; }
.league-ladder {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 18px;
}
.league-tier {
  padding: 8px 5px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 4px;
  color: rgba(233,213,255,.46);
  background: rgba(255,255,255,.025);
  font: 700 10px 'Sora', sans-serif;
  text-align: center;
}
.league-tier.active {
  border-color: rgba(52,211,153,.42);
  color: #d1fae5;
  background: rgba(16,185,129,.1);
}
.league-table { display: grid; gap: 6px; }
.league-row {
  display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 12px;
  min-height: 46px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.07); border-radius: 5px;
  background: rgba(255,255,255,.025);
}
.league-row.you { border-color: rgba(52,211,153,.38); background: rgba(16,185,129,.09); }
.league-rank { color: #c4b5fd; font: 700 12px 'Sora', sans-serif; }
.league-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.league-xp { color: #a7f3d0; font: 700 12px 'Sora', sans-serif; }
.league-empty { padding: 20px; color: rgba(233,213,255,.56); text-align: center; }
.hidden { display: none !important; }
@media (max-width: 860px) {
  .auth-shell { grid-template-columns: 1fr; gap: 34px; min-height: 0; }
  .account-layout { grid-template-columns: 1fr; }
  .profile-panel { position: static; }
}
@media (max-width: 600px) {
  .account-page { width: min(100% - 28px, 1180px); padding-top: 28px; }
  .account-navbar { padding-inline: 14px; }
  .account-nav-actions .btn-secondary { display: none; }
  .dashboard-heading { align-items: stretch; flex-direction: column; }
  .stat-grid { grid-template-columns: 1fr; }
  .auth-panel, .profile-panel, .dashboard-panel { padding: 20px; }
  .milestone-row { display: grid; }
  .league-ladder { grid-template-columns: repeat(3, 1fr); }
}
