.account-page { background: #090a0a; }
.account-page [hidden] { display: none !important; }
.account-main { min-height: 900px; padding-top: 145px; padding-bottom: 130px; }
.account-intro { max-width: 980px; padding: 75px 0 85px; }
.account-intro h1 { font-size: clamp(68px, 9vw, 142px); line-height: .84; letter-spacing: -.07em; text-transform: uppercase; font-weight: 500; margin: 26px 0 34px; }
.account-intro h1 em { display: inline-block; color: var(--gold-2); font-family: Georgia, serif; font-weight: 400; text-transform: none; }
.account-intro > p { max-width: 680px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.auth-panel { max-width: 760px; border: 1px solid var(--line); border-radius: 28px; background: radial-gradient(circle at 100% 0,rgba(216,172,114,.12),transparent 42%),var(--panel); overflow: hidden; }
.auth-panel, .dashboard { scroll-margin-top: 120px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.auth-tabs button { min-height: 66px; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font: inherit; font-size: 11px; cursor: pointer; }
.auth-tabs button:last-child { border-right: 0; }
.auth-tabs button.active { background: var(--gold); color: #111; }
.auth-form { padding: clamp(30px,6vw,66px); display: grid; gap: 20px; }
.auth-form[hidden] { display: none; }
.account-kicker { color: var(--gold); text-transform: uppercase; letter-spacing: .15em; font-size: 10px; }
.auth-form h2,.dashboard-head h2 { margin: 0 0 12px; font-size: clamp(38px,5vw,68px); line-height: .95; text-transform: uppercase; letter-spacing: -.045em; font-weight: 500; }
.auth-form label { display: grid; gap: 9px; color: #b9b3aa; text-transform: uppercase; letter-spacing: .09em; font-size: 10px; }
.auth-form input { width: 100%; min-height: 58px; border: 1px solid var(--line); border-radius: 10px; background: #101111; color: var(--text); font: inherit; padding: 0 17px; outline: 0; }
.auth-form input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(209,157,92,.1); }
.auth-form small { color: var(--muted); text-transform: none; letter-spacing: 0; }
.auth-form .button { justify-self: start; margin-top: 8px; }
.form-message { min-height: 22px; margin: 0; padding: 0 66px 30px; color: var(--gold-2); }
.form-message.error { color: #e98f7f; }
.dashboard { display: grid; gap: 34px; }
.dashboard-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.dashboard-head p { color: var(--muted); margin: 12px 0 0; }
.account-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.account-nav button { min-height: 42px; padding: 0 20px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); background: transparent; font: inherit; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; cursor: pointer; }
.account-nav button.active { color: #111; background: var(--gold-2); border-color: var(--gold-2); }
.library-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.library-card { min-height: 420px; border: 1px solid var(--line); border-radius: 24px; padding: clamp(26px,4vw,46px); background: radial-gradient(circle at 88% 8%,rgba(216,172,114,.12),transparent 38%),var(--panel); display: flex; flex-direction: column; }
.library-card.locked { opacity: .72; }
.library-card-top { display: flex; justify-content: space-between; gap: 20px; color: var(--gold); text-transform: uppercase; letter-spacing: .13em; font-size: 10px; }
.library-card h3 { margin: auto 0 18px; font-size: clamp(38px,5vw,64px); line-height: .92; letter-spacing: -.05em; text-transform: uppercase; font-weight: 500; }
.library-card > p { color: var(--muted); line-height: 1.65; max-width: 520px; }
.library-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.library-actions a,.library-actions button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 16px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--text); font: inherit; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; cursor: pointer; }
.lesson-list { list-style: none; padding: 0; margin: 22px 0 0; max-height: 240px; overflow: auto; border-top: 1px solid var(--line); }
.lesson-list li { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); color: #c9c3ba; font-size: 12px; }
.lesson-list i { color: var(--gold); font-style: normal; }
.lesson-list small { color: var(--muted); }
.account-loading { min-height: 260px; display: grid; place-items: center; align-content: center; gap: 18px; color: var(--muted); }
.account-loading span { width: 34px; height: 34px; border: 2px solid var(--line); border-top-color: var(--gold); border-radius: 50%; animation: account-spin .8s linear infinite; }
@keyframes account-spin { to { transform: rotate(360deg); } }
@media (max-width: 760px) {
  .account-main { padding-top: 92px; }
  .account-intro { padding: 60px 0; }
  .account-intro h1 { font-size: clamp(54px,16vw,82px); }
  .library-grid { grid-template-columns: 1fr; }
  .dashboard-head { align-items: flex-start; flex-direction: column; }
  .form-message { padding-inline: 30px; }
  .library-card { min-height: 360px; }
}
