:root{
  --theory-v2-bg:#f3f7fc;
  --theory-v2-panel:#ffffff;
  --theory-v2-panel-soft:#eef4fb;
  --theory-v2-line:rgba(20,42,78,.12);
  --theory-v2-text:#101a30;
  --theory-v2-muted:#66738b;
  --theory-v2-accent:#f4c430;
  --theory-v2-accent-2:#ff9d3d;
  --theory-v2-blue:#2867f0;
  --theory-v2-cyan:#20b9e8;
  --theory-v2-green:#20b875;
  --theory-v2-shadow:0 24px 70px rgba(13,31,64,.12);
}

body.theory-hub-page.theory-hub-v2,
body.theory-hub-page.theory-hub-v2[class*="wsa-rank-theme-"]{
  min-height:100vh;
  margin:0!important;
  padding:24px!important;
  color:var(--theory-v2-text)!important;
  background:
    radial-gradient(800px 420px at 5% -5%,rgba(32,185,232,.16),transparent 62%),
    radial-gradient(760px 420px at 100% 0,rgba(244,196,48,.14),transparent 64%),
    linear-gradient(145deg,#f8fbff,#eef4fb 58%,#f7f9fc)!important;
  font-family:"Poppins",sans-serif;
}

body.theory-hub-v2.wsa-rank-theme-dark-theme,
body.theory-hub-v2.wsa-rank-theme-immortal-theme{
  --theory-v2-bg:#06101f;
  --theory-v2-panel:#0d1c32;
  --theory-v2-panel-soft:#132640;
  --theory-v2-line:rgba(169,193,235,.15);
  --theory-v2-text:#f4f7ff;
  --theory-v2-muted:#9aa9c1;
  --theory-v2-shadow:0 28px 80px rgba(0,0,0,.34);
}

body.theory-hub-page.theory-hub-v2.wsa-rank-theme-dark-theme,
body.theory-hub-page.theory-hub-v2.wsa-rank-theme-immortal-theme{
  background:
    radial-gradient(850px 460px at 5% -5%,rgba(32,185,232,.17),transparent 62%),
    radial-gradient(760px 440px at 100% 0,rgba(156,105,255,.16),transparent 64%),
    linear-gradient(150deg,#050c19,#0a172a 58%,#050b16)!important;
}

body.theory-hub-v2::before{display:none!important;animation:none!important}
.theory-hub-shell{width:min(1320px,100%);margin:0 auto}
.theory-hub-top{min-height:54px;display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px;padding-right:170px}
.theory-back-button{
  min-height:42px;display:inline-flex;align-items:center;gap:9px;padding:0 15px;border:1px solid var(--theory-v2-line)!important;
  border-radius:13px!important;color:var(--theory-v2-text)!important;background:color-mix(in srgb,var(--theory-v2-panel) 88%,transparent)!important;
  box-shadow:0 8px 24px rgba(18,37,70,.08);font-size:12px!important;font-weight:900!important;cursor:pointer
}
.theory-back-button span{font-size:17px}

.theory-hub-hero{
  position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);
  gap:24px;margin-bottom:16px;padding:30px;border:1px solid rgba(81,120,205,.17);border-radius:28px;
  color:#f8fbff;background:
    radial-gradient(600px 300px at 4% 0,rgba(32,185,232,.3),transparent 64%),
    radial-gradient(520px 300px at 100% 0,rgba(244,196,48,.24),transparent 68%),
    linear-gradient(135deg,#0a1d37,#102c4e 58%,#12213b);
  box-shadow:var(--theory-v2-shadow)
}
.theory-hub-hero::after{
  content:"";position:absolute;z-index:-1;right:-65px;bottom:-110px;width:310px;height:310px;border-radius:999px;
  border:54px solid rgba(255,255,255,.035);box-shadow:0 0 0 38px rgba(255,255,255,.022)
}
.theory-hub-kicker{display:flex;align-items:center;gap:9px;color:#66dcff;font-size:10px;font-weight:950;letter-spacing:.18em;text-transform:uppercase}
.theory-hub-kicker::before{content:"";width:24px;height:2px;border-radius:99px;background:#66dcff}
.theory-hub-hero h1{margin:12px 0 9px!important;color:#fff!important;font-size:clamp(30px,4vw,52px)!important;line-height:1.03!important;letter-spacing:-.045em}
.theory-hub-hero p{max-width:720px;margin:0;color:#b9c9df;font-size:13px;line-height:1.65}
.theory-hub-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
.theory-primary-action,.theory-secondary-action{
  min-height:43px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 16px;border-radius:13px;
  font-size:11px;font-weight:950;text-decoration:none;cursor:pointer
}
.theory-primary-action{border:0;color:#10182a;background:linear-gradient(135deg,#ffd338,#ffad43);box-shadow:0 12px 26px rgba(244,196,48,.22)}
.theory-secondary-action{border:1px solid rgba(255,255,255,.16);color:#eff6ff;background:rgba(255,255,255,.07)}
.theory-hero-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-content:center}
.theory-hero-stat{
  min-width:0;padding:15px;border:1px solid rgba(255,255,255,.12);border-radius:18px;background:rgba(255,255,255,.07);
  backdrop-filter:blur(10px)
}
.theory-hero-stat:first-child{grid-column:1/-1}
.theory-hero-stat small{display:block;color:#91a7c4;font-size:8px;font-weight:900;letter-spacing:.13em;text-transform:uppercase}
.theory-hero-stat strong{display:block;margin-top:7px;color:#fff;font-size:24px;line-height:1}
.theory-hero-stat span{display:block;margin-top:6px;color:#b8c8dc;font-size:9px}
.theory-overall-track{height:6px;margin-top:11px;overflow:hidden;border-radius:999px;background:rgba(255,255,255,.1)}
.theory-overall-track i{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#20b9e8,#ffd338);transition:width .45s ease}

.theory-mode-bar{
  position:sticky;top:10px;z-index:70;display:flex;align-items:center;justify-content:space-between;gap:14px;
  margin-bottom:16px;padding:7px;border:1px solid var(--theory-v2-line);border-radius:17px;
  background:color-mix(in srgb,var(--theory-v2-panel) 90%,transparent);box-shadow:0 10px 32px rgba(13,31,64,.08);backdrop-filter:blur(18px)
}
.theory-mode-copy{padding-left:10px;color:var(--theory-v2-muted);font-size:10px;font-weight:700}
body.theory-hub-v2 .mode-switch{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:0!important}
body.theory-hub-v2 .mode-switch button{
  min-width:112px;min-height:39px;padding:0 16px!important;border:0!important;border-radius:12px!important;
  color:var(--theory-v2-muted)!important;background:transparent!important;font-size:11px!important;font-weight:950!important
}
body.theory-hub-v2 .mode-switch button.active{
  color:#10182a!important;background:linear-gradient(135deg,#ffd338,#ffad43)!important;box-shadow:0 8px 20px rgba(244,196,48,.18)!important
}

body.theory-hub-v2 .mmr-guide{
  display:grid;grid-template-columns:minmax(220px,.8fr) minmax(0,1.2fr);gap:18px;align-items:center;margin:0 0 17px!important;
  padding:16px 18px!important;border:1px solid rgba(244,196,48,.3)!important;border-radius:19px!important;
  color:var(--theory-v2-text);background:linear-gradient(135deg,rgba(244,196,48,.12),rgba(255,157,61,.06))!important
}
body.theory-hub-v2 .mmr-guide .title{color:var(--theory-v2-text);font-size:12px}
body.theory-hub-v2 .mmr-guide .sub{color:var(--theory-v2-muted);font-size:10px}
body.theory-hub-v2 .mmr-guide .row{margin:0}
body.theory-hub-v2 .mmr-guide .box{border-color:var(--theory-v2-line);color:var(--theory-v2-muted);background:color-mix(in srgb,var(--theory-v2-panel) 64%,transparent);font-size:10px}
body.theory-hub-v2 .mmr-guide .box b{color:var(--theory-v2-text)}
.theory-section-head{display:flex;align-items:end;justify-content:space-between;gap:16px;margin:20px 0 13px}
.theory-section-head span{display:block;color:var(--theory-v2-blue);font-size:9px;font-weight:950;letter-spacing:.16em;text-transform:uppercase}
.theory-section-head h2{margin:5px 0 0;color:var(--theory-v2-text);font-size:23px;font-weight:950;letter-spacing:-.025em}
.theory-section-head p{max-width:560px;margin:0;color:var(--theory-v2-muted);font-size:10px;line-height:1.55}

body.theory-hub-v2 #practiceGrid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important}
.theory-lesson-card{
  --lesson-accent:#2e7cf6;position:relative;overflow:hidden;min-width:0;display:grid;grid-template-rows:auto 1fr auto;
  min-height:248px;padding:18px;border:1px solid var(--theory-v2-line);border-radius:21px;color:var(--theory-v2-text);
  background:linear-gradient(155deg,color-mix(in srgb,var(--theory-v2-panel) 96%,var(--lesson-accent) 4%),var(--theory-v2-panel));
  box-shadow:0 14px 38px rgba(13,31,64,.08);cursor:pointer;transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease
}
.theory-lesson-card::before{
  content:"";position:absolute;right:-40px;top:-55px;width:150px;height:150px;border-radius:999px;
  background:radial-gradient(circle,color-mix(in srgb,var(--lesson-accent) 20%,transparent),transparent 68%);pointer-events:none
}
.theory-lesson-card:hover{transform:translateY(-4px);border-color:color-mix(in srgb,var(--lesson-accent) 42%,var(--theory-v2-line));box-shadow:0 20px 46px rgba(13,31,64,.13)}
.theory-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.theory-lesson-icon{
  width:54px;height:54px;display:grid;place-items:center;border-radius:17px;color:#fff;
  background:linear-gradient(145deg,color-mix(in srgb,var(--lesson-accent) 88%,#fff 12%),color-mix(in srgb,var(--lesson-accent) 68%,#101a30 32%));
  box-shadow:0 12px 24px color-mix(in srgb,var(--lesson-accent) 24%,transparent);font-size:25px
}
.theory-lesson-number{padding:6px 9px;border:1px solid var(--theory-v2-line);border-radius:999px;color:var(--theory-v2-muted);background:var(--theory-v2-panel-soft);font-size:8px;font-weight:950;letter-spacing:.1em;text-transform:uppercase}
.theory-card-copy{margin-top:15px}
.theory-card-copy h3{margin:0;color:var(--theory-v2-text);font-size:16px;line-height:1.25;font-weight:950;letter-spacing:-.02em}
.theory-card-copy p{margin:7px 0 0;color:var(--theory-v2-muted);font-size:9px;line-height:1.5}
.theory-card-meta{display:flex;flex-wrap:wrap;gap:6px;margin-top:11px}
.theory-card-meta span{padding:5px 7px;border-radius:8px;color:var(--theory-v2-muted);background:var(--theory-v2-panel-soft);font-size:8px;font-weight:850}
.theory-card-progress{margin-top:15px}
.theory-card-progress-head{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--theory-v2-muted);font-size:8px;font-weight:850}
.theory-card-progress-head strong{color:var(--theory-v2-text);font-size:9px}
.theory-card-track{height:6px;margin-top:7px;overflow:hidden;border-radius:999px;background:var(--theory-v2-panel-soft)}
.theory-card-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--lesson-accent),color-mix(in srgb,var(--lesson-accent) 62%,#66dcff));transition:width .4s ease}
.theory-card-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:15px;padding-top:13px;border-top:1px solid var(--theory-v2-line)}
.theory-card-status{display:flex;align-items:center;gap:6px;color:var(--theory-v2-muted);font-size:8px;font-weight:900;text-transform:uppercase}
.theory-card-status::before{content:"";width:7px;height:7px;border-radius:999px;background:#a5b1c4;box-shadow:0 0 0 4px rgba(165,177,196,.12)}
.theory-lesson-card.is-passed .theory-card-status{color:var(--theory-v2-green)}
.theory-lesson-card.is-passed .theory-card-status::before{background:var(--theory-v2-green);box-shadow:0 0 0 4px rgba(32,184,117,.12)}
.theory-card-cta{display:flex;align-items:center;gap:6px;color:var(--lesson-accent);font-size:9px;font-weight:950}

body.theory-hub-v2 .video-showcase{gap:14px}
body.theory-hub-v2 .video-hero{border-radius:22px;box-shadow:0 18px 48px rgba(13,31,64,.14)}
body.theory-hub-v2 .video-summary-grid{gap:9px}
body.theory-hub-v2 .video-stat-card{
  border-color:var(--theory-v2-line);border-radius:17px;color:var(--theory-v2-text);
  background:var(--theory-v2-panel);box-shadow:0 12px 30px rgba(13,31,64,.08)
}
body.theory-hub-v2 .video-stat-label{color:var(--theory-v2-blue)}
body.theory-hub-v2 .video-stat-value{color:var(--theory-v2-text)}
body.theory-hub-v2 .video-stat-note{color:var(--theory-v2-muted)}
body.theory-hub-v2 .video-card{border-radius:20px}

@media(max-width:980px){
  .theory-hub-hero{grid-template-columns:1fr}
  .theory-hero-stats{grid-template-columns:repeat(3,1fr)}
  .theory-hero-stat:first-child{grid-column:auto}
  body.theory-hub-v2 #practiceGrid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:700px){
  html.wsa-theory-mobile-ready body.theory-hub-page.theory-hub-v2,
  html.wsa-theory-mobile-ready body.theory-hub-page.theory-hub-v2[class*="wsa-rank-theme-"]{
    padding:12px!important;padding-bottom:28px!important;color:var(--theory-v2-text)!important;
    background:
      radial-gradient(800px 420px at 5% -5%,rgba(32,185,232,.16),transparent 62%),
      radial-gradient(760px 420px at 100% 0,rgba(244,196,48,.14),transparent 64%),
      linear-gradient(145deg,#f8fbff,#eef4fb 58%,#f7f9fc)!important
  }
  html.wsa-theory-mobile-ready body.theory-hub-page.theory-hub-v2.wsa-rank-theme-dark-theme,
  html.wsa-theory-mobile-ready body.theory-hub-page.theory-hub-v2.wsa-rank-theme-immortal-theme{
    color:var(--theory-v2-text)!important;
    background:
      radial-gradient(850px 460px at 5% -5%,rgba(32,185,232,.17),transparent 62%),
      radial-gradient(760px 440px at 100% 0,rgba(156,105,255,.16),transparent 64%),
      linear-gradient(150deg,#050c19,#0a172a 58%,#050b16)!important
  }
  body.theory-hub-page.theory-hub-v2,
  body.theory-hub-page.theory-hub-v2[class*="wsa-rank-theme-"]{padding:12px!important;padding-bottom:28px!important}
  .theory-hub-top{min-height:46px;margin-bottom:10px;padding-right:50px}
  .theory-back-button{min-height:38px!important;padding:0 11px;font-size:9px!important}
  .theory-hub-hero{gap:18px;margin-bottom:11px;padding:20px 17px;border-radius:22px}
  .theory-hub-hero h1{font-size:31px!important}
  .theory-hub-hero p{font-size:10px}
  .theory-hub-actions{margin-top:15px}
  .theory-primary-action,.theory-secondary-action{min-height:40px;padding:0 13px;font-size:9px}
  .theory-hero-stats{grid-template-columns:1fr 1fr}
  .theory-hero-stat:first-child{grid-column:1/-1}
  .theory-hero-stat{padding:12px}
  .theory-hero-stat strong{font-size:20px}
  .theory-mode-bar{top:6px;display:block;padding:5px;margin-bottom:11px}
  .theory-mode-copy{display:none}
  body.theory-hub-v2 .mode-switch{grid-template-columns:1fr 1fr!important;gap:5px!important}
  body.theory-hub-v2 .mode-switch button{min-width:0!important;min-height:40px!important;font-size:10px!important}
  body.theory-hub-v2 .mmr-guide{grid-template-columns:1fr;gap:10px;padding:13px!important}
  body.theory-hub-v2 .mmr-guide .row{grid-template-columns:1fr 1fr!important;gap:6px!important}
  body.theory-hub-v2 .mmr-guide .box:last-child{grid-column:1/-1}
  .theory-section-head{display:block;margin:16px 1px 10px}
  .theory-section-head h2{font-size:20px!important}
  .theory-section-head p{margin-top:6px;font-size:9px!important}
  body.theory-hub-v2 #practiceGrid{grid-template-columns:1fr!important;gap:10px!important}
  .theory-lesson-card{min-height:0;display:block;padding:14px;border-radius:18px}
  .theory-card-top{display:flex}
  .theory-lesson-number{display:inline-flex}
  .theory-card-copy{margin:12px 0 0}
  .theory-card-copy h3{font-size:14px!important}
  .theory-card-copy p{display:block}
  .theory-card-meta{margin-top:8px}
  .theory-card-progress{margin-top:12px}
  .theory-card-footer{margin-top:11px;padding-top:10px}
  body.theory-hub-v2 .video-showcase{grid-template-columns:1fr!important}
}
@media(prefers-reduced-motion:reduce){
  .theory-lesson-card,.theory-card-track i,.theory-overall-track i{transition:none!important}
}
