:root{
  --brand:#568cff;--premium-blue:#568cff;--blue:#568cff;
  --mint:#00d9a8;--premium-mint:#00d9a8;--accent:#00d9a8;
  --admin-blue:#568cff;--admin-mint:#00d9a8;
  --site-radius:18px;font-size:100%;
}
.card,.premium-card,.course-card,.feature-card,.admin-card,.admin-form{border-radius:var(--site-radius)!important}




/* Ghiyasi stable theme + article/exercise UI v24 */
html{background:#f6f7fb!important}
html[data-theme="dark"]{background:#090b14!important}
html body.premium-article-page,
html body.premium-exercises-page{transition:none!important;min-height:100vh;overflow-x:hidden;background:#f6f7fb!important;color:#1e2230!important}
html[data-theme="dark"] body.premium-article-page,
html[data-theme="dark"] body.premium-exercises-page{background:#090b14!important;color:#edf1ff!important}
body.premium-article-page *,
body.premium-exercises-page *{box-sizing:border-box}
body.premium-article-page .container,
body.premium-exercises-page .container{width:min(1180px,calc(100% - 32px))!important;margin-inline:auto!important}
body.premium-article-page .navbar,
body.premium-exercises-page .navbar{background:rgba(255,255,255,.94)!important;border:1px solid #e5e7ef!important;box-shadow:0 12px 35px rgba(35,28,74,.08)!important}
html[data-theme="dark"] body.premium-article-page .navbar,
html[data-theme="dark"] body.premium-exercises-page .navbar{background:rgba(14,18,32,.96)!important;border-color:#293149!important;box-shadow:0 12px 38px rgba(0,0,0,.3)!important}
body.premium-article-page .article-header,
body.premium-exercises-page .page-header{position:relative;overflow:hidden;margin:28px auto 20px!important;padding:44px 32px!important;border-radius:26px!important;background:linear-gradient(135deg,#f0edff 0%,#edf8ff 50%,#edfff9 100%)!important;border:1px solid #dddced!important;box-shadow:0 18px 50px rgba(65,53,130,.1)!important}
html[data-theme="dark"] body.premium-article-page .article-header,
html[data-theme="dark"] body.premium-exercises-page .page-header{background:linear-gradient(135deg,#171329 0%,#111b2b 55%,#0d2826 100%)!important;border-color:#303653!important;box-shadow:0 22px 55px rgba(0,0,0,.34)!important}
body.premium-article-page .article-header h1,
body.premium-exercises-page .page-header h1{color:#201a35!important;text-shadow:none!important;font-size:clamp(1.55rem,4vw,2.65rem)!important;line-height:1.45!important}
body.premium-article-page .article-header p,
body.premium-exercises-page .page-header p{color:#655f78!important}
html[data-theme="dark"] body.premium-article-page .article-header h1,
html[data-theme="dark"] body.premium-exercises-page .page-header h1{color:#fafaff!important}
html[data-theme="dark"] body.premium-article-page .article-header p,
html[data-theme="dark"] body.premium-exercises-page .page-header p{color:#c8c9db!important}
body.premium-article-page #main-content{max-width:1000px!important;padding-bottom:48px!important}
body.premium-article-page .toc{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px 14px!important;padding:24px!important;margin:18px 0!important;background:#fff!important;border:1px solid #e4e5ed!important;border-radius:22px!important;box-shadow:0 12px 34px rgba(35,28,74,.06)!important}
body.premium-article-page .toc h2{grid-column:1/-1!important;color:#242037!important;margin:0 0 8px!important}
body.premium-article-page .toc a{display:block!important;padding:11px 13px!important;border-radius:12px!important;color:#514a66!important;background:#f7f7fb!important;text-decoration:none!important}
body.premium-article-page .toc a:hover{background:#eeeaff!important;color:#6747e8!important;transform:translateX(-3px)}
body.premium-article-page .section-box{position:relative!important;margin:16px 0!important;padding:30px 28px!important;background:#fff!important;border:1px solid #e4e5ed!important;border-radius:22px!important;box-shadow:0 10px 30px rgba(35,28,74,.055)!important;color:#2b2b38!important}
body.premium-article-page .section-box:before{content:"";position:absolute;inset:22px 0 22px auto;width:4px;border-radius:5px;background:linear-gradient(#7958ff,#19cda2)}
body.premium-article-page .section-box h2,
body.premium-article-page .section-box h3{color:#25203a!important;line-height:1.6!important}
body.premium-article-page .section-box p,
body.premium-article-page .section-box li{color:#555267!important;line-height:2.05!important}
body.premium-article-page pre,
body.premium-article-page .code-block{background:#0d1220!important;color:#eaf0ff!important;border:1px solid #242d46!important;border-radius:16px!important;box-shadow:inset 0 1px rgba(255,255,255,.05)!important}
html[data-theme="dark"] body.premium-article-page .toc,
html[data-theme="dark"] body.premium-article-page .section-box,
html[data-theme="dark"] body.premium-article-page .premium-related,
html[data-theme="dark"] body.premium-article-page .premium-comments{background:#121625!important;border-color:#293149!important;color:#edf1ff!important;box-shadow:none!important}
html[data-theme="dark"] body.premium-article-page .toc h2,
html[data-theme="dark"] body.premium-article-page .section-box h2,
html[data-theme="dark"] body.premium-article-page .section-box h3{color:#f5f6ff!important}
html[data-theme="dark"] body.premium-article-page .toc a{background:#0c1020!important;color:#c9cce0!important}
html[data-theme="dark"] body.premium-article-page .section-box p,
html[data-theme="dark"] body.premium-article-page .section-box li{color:#c8cada!important}
body.premium-exercises-page .search-section{background:rgba(246,247,251,.92)!important;backdrop-filter:blur(14px)!important}
html[data-theme="dark"] body.premium-exercises-page .search-section{background:rgba(9,11,20,.92)!important}
body.premium-exercises-page .exercise-card,
body.premium-exercises-page .search-box input{background:#fff!important;color:#242132!important;border-color:#e2e4ec!important}
html[data-theme="dark"] body.premium-exercises-page .exercise-card,
html[data-theme="dark"] body.premium-exercises-page .search-box input,
html[data-theme="dark"] body.premium-exercises-page .exercise-question{background:#121625!important;color:#eef1ff!important;border-color:#293149!important}
html[data-theme="dark"] body.premium-exercises-page .exercise-title,
html[data-theme="dark"] body.premium-exercises-page .exercise-card h2,
html[data-theme="dark"] body.premium-exercises-page .exercise-card h3{color:#f7f8ff!important}
html[data-theme="dark"] body.premium-exercises-page .exercise-card p{color:#c8cada!important}
@media(max-width:760px){
 html body.premium-article-page,
 html body.premium-exercises-page{background-attachment:scroll!important}
 body.premium-article-page .container,
 body.premium-exercises-page .container{width:min(100% - 20px,1180px)!important}
 body.premium-article-page .article-header,
 body.premium-exercises-page .page-header{margin:14px auto!important;padding:27px 18px!important;border-radius:20px!important}
 body.premium-article-page .toc{grid-template-columns:1fr!important;padding:16px!important;border-radius:17px!important}
 body.premium-article-page .section-box{padding:22px 17px!important;border-radius:17px!important}
 body.premium-article-page .section-box:before{inset:18px 0 18px auto}
 body.premium-exercises-page .search-section{top:68px!important;padding-top:8px!important}
 body.premium-exercises-page .exercises-list{grid-template-columns:1fr!important}
 body.premium-exercises-page .exercise-card{padding:17px!important;border-radius:17px!important}
}
@media(prefers-reduced-motion:reduce){body.premium-article-page *,body.premium-exercises-page *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}


/* v24.1 mobile header clearance */
body.premium-article-page .navbar .logo,
body.premium-exercises-page .navbar .logo{color:#242037!important}
html[data-theme="dark"] body.premium-article-page .navbar .logo,
html[data-theme="dark"] body.premium-exercises-page .navbar .logo{color:#f7f8ff!important}
@media(max-width:760px){
 body.premium-article-page #main-content,
 body.premium-exercises-page #main-content{padding-top:112px!important}
 body.premium-article-page .navbar,
 body.premium-exercises-page .navbar{min-height:82px!important}
 body.premium-article-page .article-header,
 body.premium-exercises-page .page-header{margin-top:0!important}
}


/* v24.2 fixed mobile navbar clearance */
@media(max-width:760px){
 body.premium-article-page .article-header,
 body.premium-exercises-page .page-header{margin-top:126px!important}
 body.premium-article-page #main-content,
 body.premium-exercises-page #main-content{padding-top:0!important}
}

/* v25 team stability and responsive alignment */
html body.premium-team-page{transition:none!important;min-height:100vh;overflow-x:hidden;background:#f6f7fb!important;color:#242132!important}
html[data-theme="dark"] body.premium-team-page{background:#090b14!important;color:#eef1ff!important}
body.premium-team-page .navbar .logo{color:#242037!important}
html[data-theme="dark"] body.premium-team-page .navbar .logo{color:#f7f8ff!important}
body.premium-team-page .page-header{margin:28px auto 20px!important;background:linear-gradient(135deg,#f0edff,#edf8ff 52%,#edfff9)!important;border:1px solid #dddced!important;border-radius:26px!important;box-shadow:0 18px 50px rgba(65,53,130,.1)!important}
html[data-theme="dark"] body.premium-team-page .page-header{background:linear-gradient(135deg,#171329,#111b2b 55%,#0d2826)!important;border-color:#303653!important}
body.premium-team-page .leader-card,body.premium-team-page .member-card{background:#fff!important;border-color:#e3e5ed!important;color:#292638!important}
html[data-theme="dark"] body.premium-team-page .leader-card,html[data-theme="dark"] body.premium-team-page .member-card{background:#121625!important;border-color:#293149!important;color:#eef1ff!important}
html[data-theme="dark"] body.premium-team-page .member-name,html[data-theme="dark"] body.premium-team-page .team-title{color:#f7f8ff!important}
html[data-theme="dark"] body.premium-team-page .bio,html[data-theme="dark"] body.premium-team-page .info-value{color:#c8cada!important}
@media(max-width:760px){body.premium-team-page .page-header{margin-top:126px!important;padding:27px 18px!important;border-radius:20px!important}body.premium-team-page .container{width:min(100% - 20px,1180px)!important;margin-inline:auto!important}body.premium-team-page .team-grid{grid-template-columns:1fr!important}body.premium-team-page .leader-card,body.premium-team-page .member-card{border-radius:17px!important}}
