/* WPI v59 — student dashboard, enrollment plans, logged-in navigation */
:root{--wpi59-bg:#120625;--wpi59-panel:#1c0d36;--wpi59-panel-2:#0c0910;--wpi59-gold:#d4a04a;--wpi59-gold-soft:#f3c979;--wpi59-text:#fffaf2;--wpi59-muted:#c9bfd7;--wpi59-line:rgba(212,160,74,.28)}

.wpi59-student-shell{min-height:100vh;padding:clamp(120px,11vw,156px) clamp(20px,5vw,72px) 80px;background:linear-gradient(180deg,#120625 0%,#17092d 50%,#0c0712 100%);color:var(--wpi59-text)}
.wpi59-student-wrap{width:min(1240px,100%);margin:0 auto}
.wpi59-loading,.wpi59-auth-required{width:min(760px,100%);margin:8vh auto 0;padding:clamp(28px,5vw,56px);border:1px solid var(--wpi59-line);border-radius:24px;background:rgba(28,13,54,.92)}
.wpi59-loading p,.wpi59-auth-required p,.wpi59-eyebrow{margin:0 0 12px;color:var(--wpi59-gold-soft);font-weight:850;letter-spacing:.13em;font-size:.78rem}
.wpi59-loading h1,.wpi59-auth-required h1,.wpi59-hero h1{margin:0;color:#fff;font-size:clamp(2.5rem,6vw,5rem);line-height:.96;letter-spacing:-.04em}
.wpi59-loading span,.wpi59-auth-required>span{display:block;margin-top:18px;color:var(--wpi59-muted);font-size:1.08rem;line-height:1.7}

.wpi59-hero{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(280px,.7fr);gap:24px;align-items:stretch;margin-bottom:26px}
.wpi59-hero-copy,.wpi59-account-card{padding:clamp(28px,4vw,46px);border:1px solid var(--wpi59-line);border-radius:24px;background:linear-gradient(145deg,rgba(39,18,72,.95),rgba(17,8,32,.96))}
.wpi59-hero-copy p:last-child{max-width:760px;margin:20px 0 0;color:var(--wpi59-muted);font-size:1.08rem;line-height:1.7}
.wpi59-account-card{display:flex;flex-direction:column;justify-content:space-between;gap:22px}
.wpi59-account-card small{display:block;color:var(--wpi59-gold-soft);font-weight:800;letter-spacing:.1em}
.wpi59-account-card strong{display:block;margin-top:7px;color:#fff;font-size:1.15rem;overflow-wrap:anywhere}
.wpi59-account-actions{display:flex;flex-wrap:wrap;gap:10px}

.wpi59-button,.wpi59-button-secondary,.wpi59-plan button,.wpi59-program a{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:12px 17px;border-radius:12px;text-decoration:none;font-weight:850;font-size:.95rem;cursor:pointer}
.wpi59-button,.wpi59-plan button{border:1px solid var(--wpi59-gold);background:var(--wpi59-gold);color:#170a24}
.wpi59-button-secondary,.wpi59-program a{border:1px solid var(--wpi59-line);background:rgba(255,255,255,.035);color:#fff}
.wpi59-plan button:disabled{opacity:.55;cursor:not-allowed}

.wpi59-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0 0 30px}
.wpi59-summary-card{padding:24px;border:1px solid var(--wpi59-line);border-radius:18px;background:rgba(10,7,15,.75)}
.wpi59-summary-card span{display:block;color:var(--wpi59-muted);font-size:.86rem;text-transform:uppercase;letter-spacing:.09em;font-weight:750}
.wpi59-summary-card strong{display:block;margin-top:8px;color:#fff;font-size:clamp(1.75rem,4vw,2.6rem)}

.wpi59-section{margin-top:34px;padding:clamp(24px,4vw,42px);border:1px solid var(--wpi59-line);border-radius:24px;background:rgba(10,7,15,.76)}
.wpi59-section-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:24px}
.wpi59-section h2{margin:0;color:#fff;font-size:clamp(1.8rem,3vw,2.8rem);letter-spacing:-.025em}
.wpi59-section-head p{max-width:620px;margin:0;color:var(--wpi59-muted);line-height:1.6}

.wpi59-program-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.wpi59-program{display:grid;grid-template-columns:118px minmax(0,1fr);gap:18px;min-width:0;padding:18px;border:1px solid rgba(212,160,74,.2);border-radius:18px;background:#120c18}
.wpi59-program img{width:118px;height:118px;object-fit:cover;border-radius:14px;background:#24143d}
.wpi59-program h3{margin:0 0 6px;color:#fff;font-size:1.25rem;line-height:1.15}
.wpi59-program p{margin:0;color:var(--wpi59-muted);line-height:1.55}
.wpi59-program-meta{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.wpi59-pill{display:inline-flex;padding:6px 9px;border-radius:999px;background:rgba(212,160,74,.1);border:1px solid rgba(212,160,74,.22);color:var(--wpi59-gold-soft);font-size:.78rem;font-weight:800}
.wpi59-progress{height:7px;margin:13px 0 8px;border-radius:999px;overflow:hidden;background:rgba(255,255,255,.08)}
.wpi59-progress i{display:block;height:100%;background:linear-gradient(90deg,#ba7f28,#f0c777);border-radius:inherit}
.wpi59-program-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:12px}

.wpi59-plan-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.wpi59-plan{position:relative;padding:clamp(25px,4vw,38px);border:1px solid var(--wpi59-line);border-radius:22px;background:linear-gradient(145deg,#1c0d36,#0f0916)}
.wpi59-plan.is-featured{border-color:rgba(243,201,121,.62);box-shadow:0 20px 50px rgba(0,0,0,.22)}
.wpi59-plan-badge{position:absolute;right:20px;top:20px;padding:6px 10px;border-radius:999px;background:var(--wpi59-gold);color:#160a21;font-size:.72rem;font-weight:900;letter-spacing:.08em}
.wpi59-plan h3{margin:0;color:#fff;font-size:1.6rem}
.wpi59-price{display:flex;align-items:baseline;gap:6px;margin:12px 0;color:#fff}
.wpi59-price strong{font-size:clamp(2.7rem,5vw,4.1rem);line-height:1}
.wpi59-price span{color:var(--wpi59-muted)}
.wpi59-plan>p{color:var(--wpi59-muted);line-height:1.65}
.wpi59-plan ul{margin:20px 0;padding-left:20px;color:#fff;line-height:1.7}
.wpi59-plan label{display:grid;gap:8px;margin:20px 0;color:#fff;font-weight:800}
.wpi59-plan select{width:100%;min-height:48px;padding:10px 12px;border:1px solid var(--wpi59-line);border-radius:11px;background:#0b0710;color:#fff;font:inherit}
.wpi59-enrollment-status{margin-top:14px;padding:12px 14px;border-radius:12px;border:1px solid rgba(212,160,74,.22);background:rgba(212,160,74,.07);color:var(--wpi59-muted);line-height:1.5}
.wpi59-enrollment-status.is-success{color:#fff5dc;border-color:rgba(243,201,121,.45)}
.wpi59-enrollment-status.is-error{color:#ffd0d0;border-color:rgba(255,130,130,.45)}

.wpi59-notice{margin-top:18px;padding:15px 17px;border-left:3px solid var(--wpi59-gold);background:rgba(212,160,74,.07);color:var(--wpi59-muted);line-height:1.65}

/* When a user is authenticated the public calls-to-action become account navigation. */
html.wpi59-authenticated #wpi-v52-header .wpi-signin,
html.wpi59-authenticated #wpi-v52-header .wpi-start{white-space:nowrap}
html.wpi59-authenticated #wpi-v52-header .wpi-signin{color:var(--wpi59-gold-soft)!important}
html.wpi59-authenticated #wpi-v52-header .wpi-start{background:transparent!important;color:#fff!important;border-color:rgba(212,160,74,.55)!important}

.account-dashboard .account-actions .wpi59-student-action{border-color:rgba(212,160,74,.5)!important}

@media(max-width:960px){
  .wpi59-hero,.wpi59-plan-grid{grid-template-columns:1fr}
  .wpi59-summary-grid{grid-template-columns:1fr 1fr}
  .wpi59-program-grid{grid-template-columns:1fr}
}
@media(max-width:650px){
  .wpi59-student-shell{padding-left:15px;padding-right:15px}
  .wpi59-summary-grid{grid-template-columns:1fr}
  .wpi59-section-head{display:block}
  .wpi59-section-head p{margin-top:10px}
  .wpi59-program{grid-template-columns:82px minmax(0,1fr);gap:13px;padding:14px}
  .wpi59-program img{width:82px;height:82px}
  .wpi59-program-actions{grid-column:1/-1}
}
