/* CyberPTS final polish layer — safe visual refinements without changing the brand */
:root{
  --panel:rgba(16,29,45,.86);
  --panel-solid:#101d2d;
  --panel-soft:rgba(255,255,255,.035);
  --focus-ring:0 0 0 4px rgba(124,92,255,.2);
  --shadow-soft:0 14px 42px rgba(0,0,0,.2);
  --shadow-hover:0 22px 60px rgba(0,0,0,.3);
  color-scheme:dark;
}

html{scroll-padding-top:96px}
body{min-width:320px;overflow-x:hidden;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}
body.menu-open{overflow:hidden}
::selection{background:rgba(124,92,255,.42);color:#fff}
button,input,textarea,select{font:inherit}
button{touch-action:manipulation}
img,svg,video,iframe{max-width:100%}
main{min-height:48vh;outline:none}

.skip-link{
  position:fixed;
  top:12px;
  right:12px;
  z-index:9999;
  padding:10px 14px;
  border-radius:12px;
  background:#fff;
  color:#07111d;
  font-weight:900;
  transform:translateY(-160%);
  transition:transform .18s ease;
}
.skip-link:focus{transform:translateY(0)}

:where(a,button,input,textarea,select,summary):focus-visible{
  outline:2px solid rgba(139,119,255,.95);
  outline-offset:3px;
  box-shadow:var(--focus-ring);
}

.site-header{isolation:isolate}
.brand{min-width:0}
.brand-logo{width:52px;height:52px;object-fit:contain;flex:0 0 auto}
.brand span{min-width:0}
.brand strong,.brand small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nav-links a{position:relative}
.nav-links a.active::after{
  content:"";
  position:absolute;
  right:12px;
  left:12px;
  bottom:5px;
  height:2px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--primary),var(--primary2));
  opacity:.9;
}
.menu-toggle{min-width:48px;min-height:46px;place-items:center}
.menu-toggle span{display:block;line-height:1}

.section-head>*{min-width:0}
.section-head h1,.section-head h2,.section-head h3{overflow-wrap:anywhere}
.panel,.course-card,.feature,.stat-card{backdrop-filter:blur(12px)}
.panel{transition:border-color .18s ease,box-shadow .18s ease}
.panel-pad{min-width:0}
.course-card,.feature,.stat-card{transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}

.btn{min-height:46px;line-height:1.35;white-space:normal}
.btn:disabled,.btn[aria-disabled="true"]{opacity:.58;cursor:not-allowed;transform:none;box-shadow:none}
.btn-secondary{border-color:rgba(124,92,255,.32);background:rgba(124,92,255,.1);color:#ece9ff}
.inline-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.form-submit-bar{display:flex;justify-content:flex-end;align-items:center;gap:10px;margin-top:4px}

.input,textarea,select{
  min-height:48px;
  transition:border-color .18s ease,box-shadow .18s ease,background .18s ease;
}
textarea{line-height:1.75}
.input:hover,textarea:hover,select:hover{border-color:rgba(255,255,255,.18)}
.input::placeholder,textarea::placeholder{color:#8292a6;opacity:1}
select option{background:#0d1928;color:#fff}
.field small{display:block;margin-top:6px}
.field>label{line-height:1.5}
input[type="checkbox"],input[type="radio"]{accent-color:var(--primary)}

.flash{position:relative;box-shadow:var(--shadow-soft)}
.flash::before{content:"";position:absolute;top:10px;bottom:10px;right:0;width:3px;border-radius:999px;background:currentColor;opacity:.55}
.empty{padding:28px 18px;text-align:center;color:var(--muted);border:1px dashed rgba(255,255,255,.13);border-radius:16px;background:rgba(255,255,255,.018)}

.table-wrap{max-width:100%;scrollbar-gutter:stable}
table{font-variant-numeric:tabular-nums}
thead th{position:sticky;top:0;z-index:2;backdrop-filter:blur(14px)}
tbody tr{transition:background .14s ease}
tbody tr:hover{background:rgba(255,255,255,.025)}
tbody tr:last-child td{border-bottom:0}
td strong{color:#f5f9ff}
td small{color:var(--muted)}

.progress-line{overflow:hidden;background:rgba(255,255,255,.07)}
.progress-line span{min-width:0;background:linear-gradient(90deg,var(--primary),#5b7cfa,var(--primary2));box-shadow:0 0 18px rgba(124,92,255,.26)}
.status,.badge,.course-badge,.soft-count-badge,.admin-count-badge{font-variant-numeric:tabular-nums}

/* Course and lesson pages */
.course-hero-grid>*{min-width:0}
.side-card{max-height:calc(100vh - 120px);overflow:auto}
.lesson-sidebar{scrollbar-width:thin}
.lesson-sidebar .module h3{font-size:1rem;line-height:1.55}
.lesson{align-items:center}
.lesson span{min-width:0;overflow-wrap:anywhere}
.lesson small{white-space:nowrap;flex:0 0 auto}
.active-lesson{box-shadow:inset -3px 0 var(--primary)}
.completed-lesson{color:#c9faec}
.lesson-player-panel{isolation:isolate}
.lesson-topbar{align-items:flex-start}
.lesson-topbar form{flex:0 0 auto}
.lesson-video-frame{
  container-type:inline-size;
  contain:layout paint;
  max-height:min(68vh,620px);
}
.lesson-video-frame video,.lesson-video-frame iframe{min-width:0;min-height:0;object-fit:contain}
.lesson-attachment{margin-top:18px;box-shadow:none;background:rgba(33,212,168,.045)}
.lesson-content{padding:18px;border:1px solid var(--line);border-radius:16px;background:rgba(255,255,255,.025);line-height:1.9}
.lesson-actions-row{gap:10px}
.lesson-actions-row .btn{min-width:130px}
.certificate-locked-note{box-shadow:inset 0 1px rgba(255,255,255,.04)}

/* Chat polish */
.chat-messages{scrollbar-width:thin}
.chat-message{max-width:min(78%,720px);box-shadow:0 8px 24px rgba(0,0,0,.12)}
.chat-message p{overflow-wrap:anywhere}
.chat-message small{font-variant-numeric:tabular-nums}
.chat-form textarea{min-height:100px}

/* Footer */
.site-footer{position:relative;overflow:hidden}
.site-footer::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 82% 0%,rgba(33,212,168,.07),transparent 28%);pointer-events:none}
.footer-grid,.footer-bottom{position:relative}
.footer-grid a{width:max-content;max-width:100%;transition:color .16s ease,transform .16s ease}
.footer-grid a:hover{color:#fff;transform:translateX(-2px)}
.footer-social-link{transform:none!important}
.footer-bottom{font-variant-numeric:tabular-nums}
.whatsapp-float{box-shadow:0 16px 40px rgba(20,180,126,.28)}

/* Admin shell */
.admin-layout{grid-template-columns:minmax(230px,260px) minmax(0,1fr);gap:22px}
.admin-main{min-width:0}
.admin-nav{max-height:calc(100vh - 112px);overflow:auto;scrollbar-width:thin}
.admin-nav-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:14px}
.admin-nav-head h3{margin:2px 0 0}
.admin-nav-kicker{display:block;color:var(--muted);font-size:.78rem;font-weight:800}
.role-pill{display:inline-flex;align-items:center;justify-content:center;padding:5px 9px;border:1px solid rgba(124,92,255,.25);border-radius:999px;background:rgba(124,92,255,.1);color:#ddd7ff;font-size:.78rem;font-weight:900;white-space:nowrap}
.admin-nav-group{display:grid;gap:5px}
.admin-nav-divider{height:1px;margin:14px 0;background:linear-gradient(90deg,transparent,var(--line),transparent)}
.admin-nav-bottom{padding-bottom:2px}
.admin-nav a{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
.admin-nav a.active{box-shadow:inset -3px 0 var(--primary)}
.admin-count-badge{flex:0 0 auto}
.admin-kpi-grid,.lecturer-kpi-grid,.member-summary-grid,.video-library-stats{align-items:stretch}
.admin-kpi-grid>.stat-card,.lecturer-kpi-grid>.stat-card,.member-summary-grid>.stat-card{min-height:112px;display:grid;align-content:center}
.panel-heading-row{align-items:flex-start}
.panel-heading-row>*{min-width:0}
.sticky-save-bar{position:sticky;bottom:12px;z-index:12;padding:12px;border:1px solid var(--line);border-radius:18px;background:rgba(7,17,29,.9);backdrop-filter:blur(18px);box-shadow:0 14px 40px rgba(0,0,0,.34)}
.password-reset-details[open]{z-index:30}
.password-reset-details summary{user-select:none}
.password-reset-form{z-index:30}

/* Video library */
.video-library-stats{grid-template-columns:repeat(4,minmax(0,1fr))}
.video-library-stat.has-warning{border-color:rgba(255,92,122,.3);background:rgba(255,92,122,.045)}
.video-library-toolbar{
  display:grid;
  grid-template-columns:minmax(240px,1.7fr) minmax(170px,.8fr) minmax(150px,.7fr) auto;
  align-items:end;
  gap:12px;
  margin-bottom:18px;
  box-shadow:var(--shadow-soft);
}
.video-library-toolbar label{display:block;margin-bottom:6px;font-weight:800;color:#dce8f6}
.video-library-result-count{min-width:92px;min-height:48px;display:flex;align-items:center;justify-content:center;gap:6px;padding:8px 12px;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.035)}
.video-library-result-count strong{font-size:1.25rem;color:#fff}
.video-library-result-count span{color:var(--muted)}
.video-library-card[hidden]{display:none!important}
.video-library-filter-empty{margin-top:2px}
.video-library-card{box-shadow:0 12px 32px rgba(0,0,0,.14)}
.video-library-card:hover{box-shadow:var(--shadow-hover)}
.video-library-icon{font-size:1.1rem}
.video-library-meta{font-variant-numeric:tabular-nums}

/* Auth and public cards */
.auth-card{isolation:isolate;overflow:hidden}
.auth-card::before{content:"";position:absolute;z-index:-1;width:180px;height:180px;top:-100px;left:-80px;border-radius:50%;background:rgba(124,92,255,.13);filter:blur(4px)}
.about-features{grid-template-columns:repeat(2,minmax(0,1fr))}
.list-item{border-radius:12px;padding:8px 9px;margin-inline:-9px;transition:background .15s ease}
a.list-item:hover{background:rgba(255,255,255,.04)}

/* Gentle hover effects only where a real pointer exists */
@media(hover:hover) and (pointer:fine){
  .course-card:hover,.feature:hover,.stat-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-hover)}
  .btn:hover{filter:brightness(1.05)}
}

@media(max-width:1100px){
  .video-library-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .video-library-toolbar{grid-template-columns:1fr 1fr}
  .video-library-search{grid-column:1/-1}
}

@media(max-width:960px){
  .admin-layout{grid-template-columns:1fr}
  .admin-nav{position:relative;top:auto;max-height:none;overflow:visible}
  .admin-nav-group{grid-template-columns:repeat(2,minmax(0,1fr))}
  .admin-nav a{border:1px solid rgba(255,255,255,.06);background:rgba(255,255,255,.02)}
  .learn-layout{display:flex;flex-direction:column}
  .lesson-player-panel{order:1}
  .lesson-sidebar{order:2;position:relative;top:auto;max-height:none;width:100%}
  .student-course-chat{order:3}
}

@media(max-width:760px){
  .container{width:min(var(--container),calc(100% - 24px))}
  .site-header{backdrop-filter:blur(14px)}
  .nav{min-height:70px}
  .brand-logo{width:46px;height:46px}
  .brand strong{font-size:1rem}
  .brand small{font-size:.72rem}
  .menu-toggle{display:grid}
  .nav-links{
    position:fixed;
    top:70px;
    right:12px;
    left:12px;
    max-height:calc(100dvh - 84px);
    overflow:auto;
    display:grid;
    align-content:start;
    gap:5px;
    padding:12px;
    border:1px solid var(--line);
    border-radius:18px;
    background:rgba(7,17,29,.98);
    box-shadow:0 24px 60px rgba(0,0,0,.48);
    opacity:0;
    visibility:hidden;
    transform:translateY(-10px) scale(.985);
    transition:opacity .16s ease,transform .16s ease,visibility .16s ease;
  }
  .nav-links.open{opacity:1;visibility:visible;transform:none}
  .nav-links a{display:flex;align-items:center;justify-content:center;min-height:46px;text-align:center}
  .nav-links a.active::after{right:28%;left:28%}
  .section{padding:42px 0}
  .section-head{align-items:flex-start;flex-direction:column}
  .section-head>.btn,.section-head>form{width:100%}
  .section-head>.btn,.section-head>form .btn{width:100%}
  .two-col,.three-col,.about-features{grid-template-columns:1fr}
  .form-submit-bar{justify-content:stretch}
  .form-submit-bar .btn{width:100%}
  .lesson-topbar{display:grid}
  .lesson-topbar form,.lesson-topbar .btn{width:100%}
  .lesson-video-frame{max-height:none}
  .lesson-actions-row{display:grid;grid-template-columns:1fr 1fr}
  .lesson-actions-row .btn{min-width:0;width:100%}
  .chat-message{max-width:90%}
  .footer-grid{grid-template-columns:1fr;gap:22px}
  .footer-bottom{align-items:flex-start;flex-direction:column;gap:5px}
  .admin-nav-group{grid-template-columns:1fr}
  .video-library-toolbar{grid-template-columns:1fr}
  .video-library-search{grid-column:auto}
  .video-library-result-count{width:100%}
  .sticky-save-bar{bottom:6px}
}

@media(max-width:560px){
  .container{width:min(var(--container),calc(100% - 16px))}
  .panel-pad{padding:17px}
  .auth-card{padding:21px;border-radius:22px}
  .hero-stats,.cards-grid,.features{grid-template-columns:1fr}
  .video-library-stats{grid-template-columns:1fr 1fr;gap:9px}
  .video-library-stat{min-height:86px;padding:14px}
  .video-library-card{gap:12px}
  .video-library-actions{display:grid;grid-template-columns:1fr}
  .lesson-actions-row{grid-template-columns:1fr}
  .whatsapp-float span{display:none}
  .whatsapp-float{width:52px;height:52px;padding:0;border-radius:50%}
  .table-wrap{margin-inline:-4px}
}

@media(max-width:390px){
  .brand small{display:none}
  .video-library-stats{grid-template-columns:1fr}
  .admin-nav-head{align-items:center}
}

@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}

@media print{
  .site-header,.site-footer,.whatsapp-float,.admin-nav,.btn,.menu-toggle{display:none!important}
  body{background:#fff!important;color:#111!important}
  main,.container,.panel{width:100%!important;max-width:none!important;margin:0!important;padding:0!important;box-shadow:none!important;border-color:#ddd!important;background:#fff!important;color:#111!important}
}


/* Course table: make the daily lesson action obvious and keep course editing secondary. */
.course-row-actions{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:9px;
  min-width:245px;
}

.course-row-actions-main{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.course-row-edit{
  margin-top:3px;
  opacity:.78;
  font-size:.92rem;
  padding-block:8px;
}

.course-row-edit:hover,
.course-row-edit:focus-visible{
  opacity:1;
}

@media (max-width:760px){
  .course-row-actions{
    min-width:0;
    width:100%;
  }

  .course-row-actions-main{
    width:100%;
  }

  .course-row-actions-main .btn{
    flex:1 1 auto;
    justify-content:center;
  }

  .course-row-edit{
    width:100%;
    justify-content:center;
  }
}


/* Deep cleanup layer — consistency, accessibility and maintainable spacing */
:root{
  --tap-size:46px;
  --radius-sm:12px;
  --radius-md:16px;
  --content-gap:18px;
}

html{scroll-behavior:smooth}
body{-webkit-tap-highlight-color:transparent}
body,button,input,textarea,select{font-variant-ligatures:contextual}
h1,h2,h3{line-height:1.28;text-wrap:balance}
p{overflow-wrap:anywhere}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

.panel-gap-bottom{margin-bottom:var(--content-gap)}
.panel-gap-top,.content-gap-top{margin-top:var(--content-gap)}
.inline-form{display:inline-flex;margin:0}
.compact-actions{gap:6px}
.danger-copy{color:#ffb7c6}

.btn,a.btn,button.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:var(--tap-size)}
.btn:active{transform:translateY(1px)}
form.is-submitting{opacity:.86;pointer-events:none}
form.is-submitting button[type="submit"]{cursor:wait}

.flash{margin-block:14px;line-height:1.7}
.flash[role="alert"]{border-color:rgba(255,92,122,.34)}

.table-wrap{position:relative;overflow:auto;border-radius:18px;overscroll-behavior-inline:contain}
.table-wrap table{min-width:760px}
.table-wrap th,.table-wrap td{vertical-align:middle}
.table-wrap thead th{background:rgba(16,29,45,.96)}
.table-wrap::-webkit-scrollbar,.admin-nav::-webkit-scrollbar,.chat-messages::-webkit-scrollbar{width:9px;height:9px}
.table-wrap::-webkit-scrollbar-thumb,.admin-nav::-webkit-scrollbar-thumb,.chat-messages::-webkit-scrollbar-thumb{background:rgba(151,168,190,.28);border-radius:999px;border:2px solid transparent;background-clip:padding-box}

.admin-main>.section-head:first-child{margin-top:0}
.admin-nav a{min-height:43px;border-radius:12px}
.admin-nav a.active{background:linear-gradient(90deg,rgba(124,92,255,.14),rgba(33,212,168,.045))}
.admin-main .panel+.panel{margin-top:var(--content-gap)}
.admin-main form>.panel+.panel{margin-top:var(--content-gap)}

.course-row-actions{min-width:230px}
.course-row-actions-main .btn-primary{box-shadow:0 10px 24px rgba(124,92,255,.16)}

.notification-list{display:grid;gap:10px}
.notification-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:18px;padding:16px 18px;border:1px solid var(--line);border-radius:16px;background:rgba(255,255,255,.025);transition:border-color .16s ease,background .16s ease,transform .16s ease}
.notification-card:hover{border-color:rgba(124,92,255,.3);background:rgba(124,92,255,.055);transform:translateY(-1px)}
.notification-card.unread{box-shadow:inset -3px 0 var(--primary)}
.notification-card p{margin:5px 0 0;color:var(--muted);line-height:1.65}
.notification-card time{color:var(--muted);font-size:.82rem;font-variant-numeric:tabular-nums;white-space:nowrap}

.conversation-admin-layout{align-items:stretch}
.conversation-list{max-height:720px;overflow:auto;scrollbar-width:thin}
.conversation-list-item{position:relative;display:grid;gap:4px;min-width:0}
.conversation-list-item strong,.conversation-list-item span,.conversation-list-item small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.conversation-thread{display:flex;flex-direction:column;min-height:560px}
.conversation-thread-head{padding-bottom:14px;border-bottom:1px solid var(--line)}
.chat-messages{flex:1;max-height:540px;overflow:auto;padding:18px 4px;scroll-behavior:smooth}
.chat-message time{display:block;margin-top:7px;color:var(--muted);font-size:.78rem;font-variant-numeric:tabular-nums}
.chat-form{position:sticky;bottom:0;padding-top:14px;background:linear-gradient(180deg,transparent,rgba(16,29,45,.98) 24%)}

.lesson-video-frame{width:min(100%,1100px);margin-inline:auto;background:#000}
.lesson-video-frame>video,.lesson-video-frame>iframe{display:block;width:100%;height:100%;aspect-ratio:16/9;background:#000}
.lesson-player-panel{overflow:hidden}

.footer-social-link{min-width:44px;min-height:44px}
.whatsapp-float{bottom:max(18px,env(safe-area-inset-bottom));right:max(18px,env(safe-area-inset-right))}

@media(max-width:960px){
  .admin-nav{border-radius:20px}
  .conversation-admin-layout{grid-template-columns:1fr}
  .conversation-list{max-height:330px}
  .conversation-thread{min-height:480px}
}

@media(max-width:760px){
  html{scroll-padding-top:78px}
  .section-head h1,.section-head h2{font-size:clamp(1.65rem,8vw,2.25rem)}
  .table-wrap{margin-inline:-2px;border-radius:14px}
  .table-wrap table{min-width:700px}
  .notification-card{grid-template-columns:1fr;gap:7px}
  .notification-card time{white-space:normal}
  .conversation-thread{min-height:430px;padding:16px}
  .chat-messages{max-height:58vh}
  .chat-message{max-width:94%}
  .lesson-video-frame{max-width:100%;max-height:none;contain:paint}
  .lesson-video-frame>video,.lesson-video-frame>iframe{aspect-ratio:16/9;max-height:none}
  .whatsapp-float{right:max(12px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom))}
}

@media(max-width:480px){
  .inline-actions{width:100%}
  .inline-actions>.btn,.inline-actions>form,.inline-actions>form>.btn{flex:1 1 100%;width:100%}
  .course-row-actions{min-width:0}
  .notification-card{padding:14px}
}


/* Clear certificate eligibility explanation */
.certificate-unlock-card{
  display:grid;
  gap:4px;
  flex:1 1 230px;
  min-height:var(--tap-size);
  padding:10px 13px;
  border:1px solid rgba(255,196,92,.25);
  border-radius:14px;
  background:rgba(255,177,59,.07);
  color:#ffd89a;
  line-height:1.5;
  text-align:center;
}

.certificate-unlock-card strong{
  color:#ffe5b5;
  font-size:.9rem;
}

.certificate-unlock-card span{
  color:var(--muted);
  font-size:.79rem;
  font-weight:700;
}

.certificate-order-hint{
  display:inline-block;
  max-width:320px;
  color:#ffd89a;
  font-size:.84rem;
  line-height:1.65;
}

@media(max-width:640px){
  .certificate-unlock-card{
    width:100%;
    flex-basis:100%;
  }
}


/* Stable WhatsApp floating button on small screens */
.whatsapp-float svg{
  display:block;
  overflow:visible;
  transform:none;
}

@media(max-width:760px){
  .whatsapp-float{
    right:auto!important;
    left:max(12px,env(safe-area-inset-left))!important;
    bottom:max(14px,env(safe-area-inset-bottom))!important;
    width:50px!important;
    height:50px!important;
    min-width:50px!important;
    min-height:50px!important;
    padding:0!important;
    display:grid!important;
    place-items:center!important;
    gap:0!important;
    border-radius:50%!important;
    line-height:0!important;
    overflow:visible!important;
  }

  .whatsapp-float span{
    display:none!important;
  }

  .whatsapp-float svg{
    width:27px!important;
    height:27px!important;
    min-width:27px!important;
    min-height:27px!important;
    fill:#fff!important;
    color:#fff!important;
  }
}


/* Coupon analytics + Diamond member role */
.diamond-benefits-panel{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  border-color:rgba(94,214,255,.28);
  background:linear-gradient(135deg,rgba(91,75,255,.09),rgba(33,212,168,.06));
}
.input-suffix-wrap{position:relative}.input-suffix-wrap .input{padding-inline-end:45px}.input-suffix-wrap>span{position:absolute;inset-inline-end:16px;top:50%;transform:translateY(-50%);color:var(--muted);font-weight:900}
.coupon-code-chip{display:inline-flex;padding:5px 10px;border:1px solid rgba(33,212,168,.35);border-radius:999px;background:rgba(33,212,168,.08);color:#a8ffea;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.78em}
.coupon-stats-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:18px 0 24px}.coupon-stat-card{display:grid;align-content:start;gap:7px;min-height:126px;padding:16px;border:1px solid var(--line);border-radius:18px;background:rgba(255,255,255,.026)}.coupon-stat-card span,.coupon-stat-card small{color:var(--muted)}.coupon-stat-card strong{font-size:clamp(1.25rem,2.6vw,1.9rem)}.coupon-stat-highlight{border-color:rgba(33,212,168,.32);background:linear-gradient(145deg,rgba(33,212,168,.08),rgba(124,92,255,.06))}.coupon-report-section{margin-top:24px;padding-top:22px;border-top:1px solid var(--line)}
.coupon-course-tags{display:flex;flex-wrap:wrap;gap:6px;max-width:330px}.coupon-course-tags span,.coupon-marketer-label{display:inline-flex;padding:4px 8px;border:1px solid var(--line);border-radius:999px;color:var(--muted);font-size:.78rem}.coupon-code-text{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.04em}.coupon-row-actions{display:flex;flex-wrap:wrap;gap:7px;min-width:250px}
@media(max-width:1100px){.coupon-stats-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.diamond-benefits-panel{align-items:stretch;flex-direction:column}.coupon-stats-grid{grid-template-columns:1fr 1fr}.coupon-row-actions{min-width:0}.coupon-row-actions .btn{flex:1 1 auto;justify-content:center}}
@media(max-width:480px){.coupon-stats-grid{grid-template-columns:1fr}}



/* Diamond-member coupon visibility and ownership states */
.coupon-ownership-badge{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  margin-top:6px;
  padding:3px 8px;
  border-radius:999px;
  font-size:.74rem;
  font-weight:900;
}

.coupon-ownership-badge.is-owned{
  border:1px solid rgba(33,212,168,.28);
  background:rgba(33,212,168,.09);
  color:#98f5da;
}

.coupon-ownership-badge.is-readonly{
  border:1px solid rgba(138,157,178,.24);
  background:rgba(138,157,178,.08);
  color:#bdcad8;
}

.coupon-readonly-note{
  display:inline-flex;
  align-items:center;
  min-height:38px;
  padding:8px 11px;
  border:1px dashed rgba(138,157,178,.28);
  border-radius:11px;
  color:var(--muted);
  font-size:.8rem;
  font-weight:800;
}


/* Final maintenance polish — resilience without changing the visual identity */
[hidden]{display:none!important}
:where(.panel,.course-card,.feature,.stat-card,.video-library-card){overflow-wrap:anywhere}
:where(input,textarea,select):user-invalid{border-color:rgba(255,92,122,.55)}
:where(input,textarea,select):user-valid:not(:placeholder-shown){border-color:rgba(33,212,168,.28)}

@supports(text-wrap:pretty){p,.lead,.hint{text-wrap:pretty}}

@media(max-width:760px){
  .flash{margin-inline:0;border-radius:14px}
  .admin-main{padding-bottom:max(16px,env(safe-area-inset-bottom))}
  .table-wrap{border-radius:14px}
}

@media(prefers-contrast:more){
  :root{--line:rgba(255,255,255,.25)}
  .btn,.input,textarea,select,.panel{border-width:2px}
  .hint,.muted,small{color:#c0cfdd}
}


/* Reset-password page: stable layout on phones and narrow screens */
.reset-password-wrap{
  min-height:calc(100svh - 170px);
  padding:clamp(34px,7vw,72px) 0;
}

.reset-password-container{
  width:min(100%,620px);
}

.reset-password-card{
  width:100%;
  max-width:none;
  min-width:0;
}

.reset-password-heading{
  display:grid;
  gap:12px;
  margin-bottom:18px;
}

.reset-password-heading h1{
  margin:0;
  font-size:clamp(1.65rem,5vw,2.35rem);
  line-height:1.25;
  overflow-wrap:anywhere;
}

.reset-password-account{
  display:grid;
  gap:4px;
  margin-bottom:18px;
  padding:13px 14px;
  border:1px solid rgba(33,212,168,.22);
  border-radius:15px;
  background:rgba(33,212,168,.065);
}

.reset-password-account span{
  color:var(--muted);
  font-size:.88rem;
}

.reset-password-account strong{
  max-width:100%;
  color:#dffcf3;
  direction:ltr;
  unicode-bidi:plaintext;
  overflow-wrap:anywhere;
  word-break:break-word;
}

.reset-password-form-page{
  margin-top:18px;
}

.reset-password-form-page .input{
  min-width:0;
}

.reset-password-form-page .field small{
  display:block;
  margin-top:6px;
  line-height:1.55;
}

.reset-password-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:2px;
}

.reset-password-invalid-actions{
  display:grid;
  gap:10px;
  margin-top:18px;
}

.reset-password-invalid-actions p{
  margin:0 0 4px;
}

@media(max-width:560px){
  .reset-password-wrap{
    min-height:auto;
    place-items:start center;
    padding:26px 0 92px;
  }

  .reset-password-container{
    width:100%;
  }

  .reset-password-card{
    padding:20px 16px;
    border-radius:21px;
  }

  .reset-password-heading{
    gap:10px;
    margin-bottom:15px;
  }

  .reset-password-heading .eyebrow{
    width:max-content;
    max-width:100%;
    font-size:.84rem;
  }

  .reset-password-heading h1{
    font-size:1.55rem;
  }

  .reset-password-account{
    padding:11px 12px;
  }

  .reset-password-form-page .input{
    font-size:16px;
  }

  .reset-password-actions{
    grid-template-columns:1fr;
  }

  .reset-password-actions .btn{
    width:100%;
    min-height:48px;
  }
}


/* Destructive full-course deletion stays visually separated */
.course-row-delete-form{
  width:100%;
  margin-top:5px;
  padding-top:9px;
  border-top:1px dashed rgba(255,92,122,.22);
}

.course-row-delete{
  width:100%;
  min-height:42px;
  font-size:.86rem;
}

@media(max-width:760px){
  .course-row-delete-form,
  .course-row-delete{
    width:100%;
  }
}


/* Global student announcements beneath the site header */
.site-announcements{
  position:relative;
  z-index:24;
  padding:10px 0 0;
  background:linear-gradient(180deg,rgba(7,17,29,.98),rgba(7,17,29,.84));
}

.site-announcements-stack{
  display:grid;
  gap:8px;
}

.site-announcement{
  --announcement-accent:#5bd5ff;
  --announcement-accent-rgb:91,213,255;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:start;
  gap:12px;
  min-width:0;
  padding:13px 14px;
  border:1px solid rgba(var(--announcement-accent-rgb),.25);
  border-radius:16px;
  background:
    linear-gradient(135deg,rgba(var(--announcement-accent-rgb),.09),rgba(7,17,29,.96) 42%),
    #07111d;
  box-shadow:0 14px 34px rgba(0,0,0,.2);
  transition:opacity .2s ease,transform .2s ease,max-height .25s ease,padding .25s ease,margin .25s ease;
}

.site-announcement-offer{
  --announcement-accent:#47e3a7;
  --announcement-accent-rgb:71,227,167;
}

.site-announcement-maintenance{
  --announcement-accent:#ffc766;
  --announcement-accent-rgb:255,199,102;
}

.site-announcement-urgent{
  --announcement-accent:#ff718c;
  --announcement-accent-rgb:255,113,140;
}

.site-announcement.is-closing{
  opacity:0;
  transform:translateY(-6px);
  pointer-events:none;
}

.site-announcement-icon{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border:1px solid rgba(var(--announcement-accent-rgb),.32);
  border-radius:11px;
  background:rgba(var(--announcement-accent-rgb),.11);
  color:var(--announcement-accent);
  font-weight:1000;
  line-height:1;
}

.site-announcement-content{
  min-width:0;
}

.site-announcement-content strong{
  display:block;
  margin:0 0 3px;
  color:#f7fbff;
  font-size:.95rem;
  line-height:1.5;
  overflow-wrap:anywhere;
}

.site-announcement-content p{
  margin:0;
  color:#bfd0df;
  font-size:.86rem;
  line-height:1.75;
  overflow-wrap:anywhere;
}

.site-announcement-link{
  display:inline-flex;
  margin-top:7px;
  color:var(--announcement-accent);
  font-size:.84rem;
  font-weight:900;
  text-decoration:underline;
  text-decoration-color:rgba(var(--announcement-accent-rgb),.4);
  text-underline-offset:4px;
}

.site-announcement-dismiss{
  margin:0;
}

.site-announcement-dismiss button{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  padding:0;
  border:1px solid rgba(255,255,255,.1);
  border-radius:11px;
  background:rgba(255,255,255,.035);
  color:#b9c8d7;
  font:800 1.25rem/1 Tajawal,sans-serif;
  cursor:pointer;
}

.site-announcement-dismiss button:hover,
.site-announcement-dismiss button:focus-visible{
  border-color:rgba(var(--announcement-accent-rgb),.4);
  background:rgba(var(--announcement-accent-rgb),.1);
  color:#fff;
}

.announcement-admin-grid{
  display:grid;
  grid-template-columns:minmax(0,1.65fr) minmax(250px,.65fr);
  gap:18px;
  align-items:start;
  margin-bottom:18px;
}

.announcement-editor,
.announcement-help,
.announcement-list-panel{
  min-width:0;
}

.announcement-body-input{
  min-height:145px;
  resize:vertical;
}

.announcement-example-list{
  display:grid;
  gap:9px;
  margin:16px 0;
}

.announcement-example-list span{
  display:flex;
  align-items:center;
  gap:8px;
  padding:9px 10px;
  border:1px solid rgba(255,255,255,.07);
  border-radius:12px;
  background:rgba(255,255,255,.025);
  color:#c7d5e3;
  font-size:.88rem;
}

.announcement-example-list span::before{
  content:"✓";
  color:#62e2bd;
  font-weight:1000;
}

.announcement-kind{
  display:inline-flex;
  margin-top:7px;
  padding:3px 8px;
  border:1px solid rgba(91,213,255,.2);
  border-radius:999px;
  color:#9fe8ff;
  font-size:.72rem;
  font-weight:900;
}

.announcement-kind-offer{
  border-color:rgba(71,227,167,.22);
  color:#8df1c9;
}

.announcement-kind-maintenance{
  border-color:rgba(255,199,102,.24);
  color:#ffd68f;
}

.announcement-kind-urgent{
  border-color:rgba(255,113,140,.24);
  color:#ff9aad;
}

.announcement-row-actions{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  align-items:center;
}

@media(max-width:900px){
  .announcement-admin-grid{
    grid-template-columns:1fr;
  }
}

@media(max-width:640px){
  .site-announcements{
    padding-top:7px;
  }

  .site-announcement{
    grid-template-columns:auto minmax(0,1fr);
    gap:9px 10px;
    padding:11px 12px;
    border-radius:14px;
  }

  .site-announcement-icon{
    width:31px;
    height:31px;
    border-radius:10px;
  }

  .site-announcement-dismiss{
    position:absolute;
    inset-inline-end:10px;
    top:9px;
  }

  .site-announcement{
    position:relative;
    padding-inline-end:48px;
  }

  .site-announcement-content{
    grid-column:2;
  }

  .site-announcement-content strong{
    font-size:.9rem;
  }

  .site-announcement-content p{
    font-size:.81rem;
    line-height:1.7;
  }

  .announcement-row-actions{
    min-width:190px;
  }
}


/* Deep-clean finishing pass: public forms and narrow screens */
.public-auth-card,
.forgot-password-card,
.contact-form-card{
  min-width:0;
  overflow:hidden;
}

.public-auth-card .field,
.forgot-password-card .field,
.contact-form-card .field{
  min-width:0;
}

.auth-secondary-link{
  margin:16px 0 0;
  text-align:center;
  line-height:1.8;
}

.forgot-password-section{
  min-height:calc(100svh - 220px);
  padding-top:70px;
}

.forgot-password-card{
  max-width:640px;
  margin-inline:auto;
}

.forgot-password-card h1{
  margin:14px 0 10px;
}

.forgot-password-intro{
  margin:0 0 18px;
}

.forgot-password-form{
  margin-top:22px;
}

.contact-page-section{
  padding-block:clamp(42px,7vw,84px);
}

.contact-page-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(320px,.85fr);
  gap:clamp(22px,5vw,64px);
  align-items:start;
}

.contact-page-intro{
  min-width:0;
  padding-top:12px;
}

.contact-page-intro h1{
  max-width:720px;
  margin:14px 0 12px;
  overflow-wrap:anywhere;
}

.contact-form-card textarea{
  min-height:170px;
  resize:vertical;
}

.flash,
.table-wrap td,
.table-wrap th,
.panel,
.side-card{
  overflow-wrap:anywhere;
}

form.is-submitting{
  cursor:progress;
}

form.is-submitting :is(button[type="submit"],input[type="submit"]){
  opacity:.72;
}

@media(max-width:760px){
  .contact-page-grid{
    grid-template-columns:1fr;
  }

  .forgot-password-section{
    min-height:auto;
    padding-top:30px;
  }

  .public-auth-card,
  .forgot-password-card,
  .contact-form-card{
    width:100%;
  }

  :is(.public-auth-card,.forgot-password-card,.contact-form-card) :is(input,textarea,select){
    font-size:16px;
  }
}

/* ===== v20260828 mobile homepage continuity with the main CyberPTS site ===== */
.home-mobile-header-v1{display:none}
.whatsapp-setting-toggle-v1{
  margin:0;
  padding:16px;
  border:1px solid var(--line);
  border-radius:16px;
  background:rgba(255,255,255,.03);
}

@media(max-width:760px){
  body.home-page .site-header{
    position:sticky;
    top:0;
    z-index:50;
    margin:0;
    background:rgba(7,17,29,.98);
    border-bottom:1px solid rgba(255,255,255,.08);
    box-shadow:0 12px 34px rgba(0,0,0,.21);
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
  }

  body.home-page .site-header>.container.nav{
    width:100%;
    max-width:none;
    min-height:0;
    margin:0;
    padding:0;
    display:block;
  }

  body.home-page .site-header>.container.nav>.brand,
  body.home-page .site-header>.container.nav>.menu-toggle,
  body.home-page .site-header>.container.nav>.nav-links{
    display:none!important;
  }

  body.home-page .home-mobile-header-v1{
    display:block;
    width:100%;
    direction:rtl;
  }

  body.home-page .home-mobile-header-top-v1{
    min-height:68px;
    padding:9px 10px 8px;
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:"brand actions";
    align-items:center;
    gap:8px;
  }

  body.home-page .home-mobile-brand-v1{
    grid-area:brand;
    justify-self:start;
    min-width:0;
    max-width:135px;
    display:flex;
    align-items:center;
    gap:7px;
    color:#fff;
  }

  body.home-page .home-mobile-brand-v1 img{
    width:40px;
    height:40px;
    min-width:40px;
    flex:0 0 40px;
    object-fit:contain;
  }

  body.home-page .home-mobile-brand-v1 strong{
    max-width:86px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    color:#fff;
    font-size:13px;
    font-weight:800;
    line-height:1.2;
  }

  body.home-page .home-mobile-actions-v1{
    grid-area:actions;
    justify-self:end;
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:5px;
    direction:ltr;
  }

  body.home-page .home-mobile-action-v1{
    min-height:38px;
    padding:7px 9px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    white-space:nowrap;
    border-radius:9px;
    font-size:12px;
    font-weight:800;
    line-height:1;
    direction:rtl;
  }

  body.home-page .home-mobile-action-outline-v1{
    color:#fff;
    background:rgba(255,255,255,.035);
    border:1px solid rgba(255,255,255,.17);
  }

  body.home-page .home-mobile-action-primary-v1{
    color:#fff;
    background:#080b10;
    border:1px solid rgba(124,92,255,.28);
  }

  body.home-page .home-mobile-action-primary-v1::after{
    content:"";
    width:6px;
    height:6px;
    margin-inline-start:5px;
    flex:0 0 6px;
    border-radius:50%;
    background:#8e7cff;
    box-shadow:0 0 0 3px rgba(124,92,255,.12);
  }

  body.home-page .home-mobile-primary-nav-v1{
    width:100%;
    padding:7px 8px 9px;
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:5px;
    border-top:1px solid rgba(255,255,255,.05);
  }

  body.home-page .home-mobile-primary-nav-v1 a{
    width:100%;
    min-width:0;
    min-height:42px;
    padding:7px 5px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#aeb9c8;
    text-align:center;
    white-space:normal;
    line-height:1.28;
    border-radius:9px;
    font-size:11.8px;
    font-weight:700;
  }

  body.home-page .home-mobile-primary-nav-v1 a:hover,
  body.home-page .home-mobile-primary-nav-v1 a:focus,
  body.home-page .home-mobile-primary-nav-v1 a.active{
    color:#fff;
    background:rgba(255,255,255,.065);
  }

  /* Match the first-screen rhythm of the main site without touching desktop. */
  body.home-page .hero{
    padding:20px 0 44px;
    background:
      radial-gradient(circle at 50% 0%,rgba(71,105,178,.16),transparent 42%),
      linear-gradient(180deg,rgba(27,50,87,.98) 0%,rgba(16,43,69,.98) 100%);
  }

  body.home-page .hero>.container.hero-grid{
    width:min(100% - 28px,var(--container));
    grid-template-columns:1fr;
    gap:26px;
  }

  body.home-page .hero-grid>div:first-child{
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
  }

  body.home-page .hero .eyebrow{
    margin:0 auto 15px;
    padding:7px 13px;
    color:#ddd7ff;
    background:rgba(124,92,255,.13);
    border-color:rgba(124,92,255,.30);
    font-size:.95rem;
    font-weight:800;
  }

  body.home-page .hero h1{
    width:min(100%,360px);
    margin:0 auto 17px;
    font-size:clamp(29px,8.2vw,34px);
    line-height:1.24;
    letter-spacing:-.035em;
    text-align:center;
    text-wrap:balance;
  }

  body.home-page .hero h1 .gradient-text{
    display:block;
    margin-top:3px;
  }

  body.home-page .hero .lead{
    width:min(100%,350px);
    max-width:350px;
    margin:0 auto;
    color:#b7cbe0;
    font-size:17px;
    line-height:1.9;
    text-align:center;
    text-wrap:pretty;
  }

  body.home-page .hero-actions{
    width:min(100%,360px);
    margin:24px auto 0;
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
  }

  body.home-page .hero-actions .btn{
    min-height:52px;
    border-radius:14px;
    font-size:16px;
  }

  body.home-page .hero-stats{
    width:min(100%,360px);
    margin:26px auto 0;
    grid-template-columns:1fr;
    gap:12px;
  }

  body.home-page .hero-stats .stat{
    min-height:104px;
    display:grid;
    align-content:center;
    text-align:right;
    padding:17px 20px;
    border-radius:20px;
    background:rgba(255,255,255,.035);
  }

  body.home-page .hero-card{
    width:min(100%,360px);
    margin-inline:auto;
  }
}

@media(max-width:390px){
  body.home-page .home-mobile-header-top-v1{padding-inline:8px}
  body.home-page .home-mobile-brand-v1{max-width:112px}
  body.home-page .home-mobile-action-v1{padding-inline:6px;font-size:11px}
  body.home-page .home-mobile-primary-nav-v1{gap:4px;padding-inline:6px}
  body.home-page .home-mobile-primary-nav-v1 a{padding-inline:3px;font-size:11px}
}

/* ========================================================================== */
/* CyberPTS public-site visual polish v2 — flatter, sharper, less template-like */
/* ========================================================================== */
body.public-site{
  --public-bg:#06101b;
  --public-surface:#0b1725;
  --public-surface-2:#0e1b2a;
  --public-surface-3:#101f30;
  --public-line:rgba(159,183,211,.14);
  --public-line-strong:rgba(159,183,211,.23);
  --public-muted:#9fb1c5;
  --public-text:#f3f7fb;
  --public-accent:#735cff;
  --public-accent-2:#33d9b1;
  background:
    linear-gradient(rgba(6,16,27,.965),rgba(6,16,27,.965)),
    repeating-linear-gradient(90deg,transparent 0 79px,rgba(157,183,211,.025) 80px),
    repeating-linear-gradient(0deg,transparent 0 79px,rgba(157,183,211,.018) 80px);
  color:var(--public-text);
}

body.public-site :is(h1,h2,h3,h4,strong){letter-spacing:0}
body.public-site .container{width:min(1180px,calc(100% - 48px))}
body.public-site .section{padding:76px 0}

/* Header: compact, clean, no oversized selected tab. */
body.public-site .site-header{
  background:rgba(5,14,24,.92);
  border-bottom:1px solid rgba(159,183,211,.11);
  box-shadow:0 10px 34px rgba(0,0,0,.16);
}
body.public-site .nav{min-height:74px}
body.public-site .brand-logo{width:46px;height:46px}
body.public-site .brand strong{font-size:1.02rem}
body.public-site .brand small{font-size:.73rem;color:#8196ad}
body.public-site .nav-links{gap:4px}
body.public-site .nav-links a:not(.btn){
  padding:9px 11px;
  border-radius:8px;
  background:transparent;
  color:#aebdcd;
  transition:color .16s ease,background .16s ease;
}
body.public-site .nav-links a:not(.btn):hover{color:#fff;background:rgba(255,255,255,.035)}
body.public-site .nav-links a:not(.btn).active{color:#fff;background:transparent}
body.public-site .nav-links a.active::after{
  right:11px;left:11px;bottom:2px;height:2px;border-radius:0;
  background:linear-gradient(90deg,var(--public-accent),#6ea7ff);
}

/* Buttons: intentional controls, not pill-shaped tags. */
body.public-site .btn{
  min-height:44px;
  padding:11px 17px;
  border-radius:10px;
  font-weight:800;
  box-shadow:none;
  transition:transform .16s ease,border-color .16s ease,background .16s ease,filter .16s ease;
}
body.public-site .btn-primary{
  background:linear-gradient(115deg,#7558ff,#5878f6);
  border-color:rgba(139,119,255,.58);
  box-shadow:0 10px 28px rgba(92,81,235,.16);
}
body.public-site .btn-green{
  background:linear-gradient(115deg,#38d8b3,#28b996);
  border-color:rgba(66,224,187,.5);
  color:#031611;
}
body.public-site .btn-ghost{
  background:transparent;
  border-color:rgba(167,188,212,.2);
}
body.public-site .btn-ghost:hover{background:rgba(255,255,255,.045);border-color:rgba(167,188,212,.34)}

/* Section headings: editorial hierarchy + a quiet divider. */
body.public-site .section-head{
  align-items:center;
  gap:28px;
  margin-bottom:30px;
  padding-bottom:20px;
  border-bottom:1px solid rgba(159,183,211,.11);
}
body.public-site .section-head h2{
  max-width:850px;
  font-size:clamp(2rem,3.4vw,3rem);
  line-height:1.28;
  color:#f5f8fc;
}
body.public-site .section-head p{
  margin-top:9px;
  max-width:840px;
  color:#9db0c5;
  font-size:1.04rem;
  line-height:1.95;
}
body.public-site .section-link{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:40px;
  padding:4px 0 6px;
  color:#dce7f4;
  border-bottom:1px solid rgba(124,92,255,.7);
  font-weight:900;
  white-space:nowrap;
  transition:color .16s ease,border-color .16s ease,gap .16s ease;
}
body.public-site .section-link::after{content:"←";color:#8d7cff;font-size:1.1rem}
body.public-site .section-link:hover{color:#fff;border-color:#8d7cff;gap:14px}

/* Course listing: balanced width, cleaner card, no giant CTA on mobile. */
body.public-site .cards-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
  align-items:stretch;
}
body.public-site .cards-grid.cards-count-1{
  grid-template-columns:minmax(0,640px);
  justify-content:start;
}
body.public-site .cards-grid.cards-count-2{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
body.public-site .course-card{
  position:relative;
  overflow:hidden;
  gap:16px;
  padding:28px;
  border:1px solid var(--public-line);
  border-radius:18px;
  background:linear-gradient(180deg,rgba(14,29,45,.9),rgba(9,21,34,.96));
  box-shadow:0 18px 44px rgba(0,0,0,.16);
}
body.public-site .course-card::before{
  content:"";
  position:absolute;
  top:0;
  inset-inline:28px;
  height:2px;
  background:linear-gradient(90deg,transparent,#806cff 45%,#53b8ff 70%,transparent);
  opacity:.7;
}
body.public-site .course-card h3{
  margin:0;
  max-width:20ch;
  font-size:clamp(1.42rem,2.1vw,1.8rem);
  line-height:1.48;
  color:#f5f8fc;
}
body.public-site .course-card p{
  margin:0;
  color:#9eafc1;
  font-size:1rem;
  line-height:1.95;
}
body.public-site .price-row{
  gap:18px;
  padding-top:18px;
  margin-top:auto;
  border-top-color:rgba(159,183,211,.1);
}
body.public-site .price{
  font-size:1.22rem;
  font-weight:900;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
body.public-site .price-row .btn{width:auto;min-width:128px}
body.public-site .course-card:hover{
  transform:translateY(-3px);
  border-color:rgba(128,108,255,.38);
  box-shadow:0 24px 54px rgba(0,0,0,.23);
}

/* Home hero: tighten proportions and reduce decorative clutter. */
body.public-site.home-page .hero{padding:78px 0 58px}
body.public-site.home-page .hero-grid{gap:54px}
body.public-site.home-page .hero h1{
  margin:0 0 20px;
  max-width:760px;
  font-size:clamp(2.55rem,5.4vw,4.75rem);
  line-height:1.16;
}
body.public-site.home-page .lead{color:#a7bacd;line-height:1.95}
body.public-site.home-page .hero-actions{margin-top:30px}
body.public-site.home-page .hero-card{
  padding:13px;
  border-radius:20px;
  border-color:rgba(154,183,216,.15);
  background:#091522;
  box-shadow:0 28px 70px rgba(0,0,0,.28);
}
body.public-site.home-page .hero-card::before{display:none}
body.public-site.home-page .hero-stats{gap:1px;border:1px solid rgba(159,183,211,.1);border-radius:14px;overflow:hidden;background:rgba(159,183,211,.08)}
body.public-site.home-page .hero-stats .stat{
  border:0;
  border-radius:0;
  background:#0a1725;
  padding:17px 18px;
}
body.public-site.home-page .hero-stats .stat strong{font-size:1.35rem}

/* Shared surfaces: smaller radii and quieter borders. */
body.public-site :is(.panel,.side-card,.auth-card,.course-preview-main,.feature,.stat-card,.module){
  border-color:var(--public-line);
}
body.public-site :is(.panel,.side-card,.auth-card,.course-preview-main){border-radius:18px}
body.public-site .panel,body.public-site .side-card,body.public-site .auth-card{background:rgba(11,24,38,.94)}
body.public-site .feature{
  border-radius:14px;
  background:rgba(12,25,40,.82);
  box-shadow:none;
}
body.public-site .feature h3{line-height:1.5}
body.public-site .feature p{line-height:1.9}
body.public-site .list-item{border-radius:8px}

/* Course detail page. */
body.public-site .course-hero-preview-first{padding-top:52px}
body.public-site .course-preview-main{padding:20px;background:#091522;box-shadow:0 22px 56px rgba(0,0,0,.22)}
body.public-site .course-preview-video-large{border-radius:12px;border-color:rgba(159,183,211,.12)}
body.public-site .course-main-info h1{
  margin:0 0 14px;
  max-width:780px;
  font-size:clamp(2.25rem,4.7vw,4rem);
  line-height:1.25;
}
body.public-site .course-purchase-card{
  padding:24px;
  background:#0b1826;
  box-shadow:0 22px 56px rgba(0,0,0,.2);
}
body.public-site .course-benefits-list{margin-top:20px;padding-top:14px;border-top:1px solid rgba(159,183,211,.1)}
body.public-site .module{border-radius:12px;background:#091522}
body.public-site .module h3{background:#0d1b2a;border-bottom:0}
body.public-site .lesson{transition:background .14s ease}
body.public-site .lesson:hover{background:rgba(124,92,255,.055)}
body.public-site .lesson-lock{border-radius:6px}

/* Forms and account pages: calmer and more premium. */
body.public-site .input,
body.public-site textarea,
body.public-site select{
  border-radius:10px;
  border-color:rgba(159,183,211,.17);
  background:#081522;
}
body.public-site .input:focus,
body.public-site textarea:focus,
body.public-site select:focus{
  border-color:rgba(128,108,255,.72);
  box-shadow:0 0 0 3px rgba(124,92,255,.12);
}
body.public-site .auth-card{padding:30px}
body.public-site .flash{border-radius:10px}
body.public-site .table-wrap{border-radius:12px}

/* Services: remove pill-like labels; keep information hierarchy. */
body.public-site .awareness-pill{
  display:block;
  width:max-content;
  max-width:100%;
  margin-bottom:13px;
  padding:0 0 6px;
  border:0;
  border-bottom:2px solid rgba(124,92,255,.58);
  border-radius:0;
  background:transparent;
  color:#cfc8ff;
  font-size:.84rem;
  font-weight:900;
}
body.public-site .single-service-note{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:0;
  border-top:1px solid rgba(159,183,211,.1);
  border-bottom:1px solid rgba(159,183,211,.1);
}
body.public-site .single-service-note span{
  position:relative;
  display:block;
  width:auto;
  padding:11px 22px 11px 8px;
  border:0;
  border-radius:0;
  background:transparent;
  color:#c7d6e4;
  font-weight:800;
}
body.public-site .single-service-note span::before{
  content:"";
  position:absolute;
  inset-inline-start:4px;
  top:50%;
  width:6px;
  height:6px;
  transform:translateY(-50%) rotate(45deg);
  background:#48dcb8;
}
body.public-site .awareness-card,
body.public-site .outcome,
body.public-site .training-step,
body.public-site .awareness-focus,
body.public-site .process-panel,
body.public-site .note-card{
  border-radius:16px!important;
}

/* Footer: stronger separation and cleaner reading rhythm. */
body.public-site .site-footer{
  margin-top:80px;
  border-top-color:rgba(159,183,211,.12);
  background:#040c15;
}
body.public-site .site-footer::before{display:none}
body.public-site .footer-grid{padding:44px 0}
body.public-site .footer-grid p,body.public-site .footer-grid a{color:#91a5b9}
body.public-site .footer-grid a:hover{color:#fff;transform:none}

@media(max-width:960px){
  body.public-site .cards-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.public-site .cards-grid.cards-count-1{grid-template-columns:minmax(0,620px)}
}

@media(max-width:760px){
  body.public-site .container{width:min(100% - 28px,var(--container))}
  body.public-site .section{padding:48px 0}
  body.public-site .section-head{display:grid;gap:15px;margin-bottom:24px;padding-bottom:16px}
  body.public-site .section-head h2{font-size:clamp(1.72rem,7.5vw,2.15rem);line-height:1.38}
  body.public-site .section-head p{font-size:.96rem;line-height:1.9}
  body.public-site .section-link{justify-self:start;min-height:34px;font-size:.95rem}
  body.public-site .cards-grid,
  body.public-site .cards-grid.cards-count-1,
  body.public-site .cards-grid.cards-count-2{grid-template-columns:1fr}
  body.public-site .course-card{padding:22px 20px;border-radius:16px;gap:13px}
  body.public-site .course-card::before{inset-inline:20px}
  body.public-site .course-card h3{font-size:1.48rem;line-height:1.52}
  body.public-site .course-card p{font-size:.97rem;line-height:1.9}
  body.public-site .price-row{display:flex;align-items:center;gap:12px;padding-top:15px}
  body.public-site .price-row .btn{width:auto;min-width:118px;padding-inline:16px}
  body.public-site .price{font-size:1.14rem}
  body.public-site .single-service-note{grid-template-columns:1fr}

  /* Home mobile header: thin active indicator instead of a large selected tile. */
  body.public-site.home-page .home-mobile-header-top-v1{min-height:62px;padding:8px 12px}
  body.public-site.home-page .home-mobile-primary-nav-v1{padding:4px 8px 7px;border-top-color:rgba(159,183,211,.08)}
  body.public-site.home-page .home-mobile-primary-nav-v1 a{
    min-height:38px;
    border-radius:0;
    border-bottom:2px solid transparent;
    background:transparent!important;
  }
  body.public-site.home-page .home-mobile-primary-nav-v1 a.active{
    color:#fff;
    border-bottom-color:#735cff;
  }
  body.public-site.home-page .home-mobile-action-v1{border-radius:8px}
  body.public-site.home-page .home-mobile-action-primary-v1::after{display:none}

  body.public-site.home-page .hero{
    padding:34px 0 46px;
    background:linear-gradient(180deg,#0a1827 0%,#07121e 100%);
  }
  body.public-site.home-page .hero h1{font-size:clamp(2rem,9.5vw,2.65rem);line-height:1.28}
  body.public-site.home-page .hero .lead{font-size:1rem;line-height:1.92}
  body.public-site.home-page .hero-stats{border-radius:12px}
  body.public-site.home-page .hero-stats .stat{min-height:88px!important;border-radius:0!important;text-align:center!important}
  body.public-site.home-page .hero-card{border-radius:16px}

  body.public-site .course-preview-main{padding:12px;border-radius:14px}
  body.public-site .course-purchase-card{border-radius:14px}
  body.public-site .module{border-radius:10px}
  body.public-site .auth-card{padding:22px;border-radius:14px}
  body.public-site .site-footer{margin-top:52px}
}

@media(max-width:390px){
  body.public-site .container{width:min(100% - 22px,var(--container))}
  body.public-site .course-card{padding:20px 17px}
  body.public-site .price-row .btn{min-width:108px;padding-inline:13px}
}

/* Community long-form reading */
body.community-page,
body.community-article-page,
body.community-editor-page{--community-ink:#f7f9fc;--community-muted:#96a7bb;--community-line:rgba(255,255,255,.09);--community-card:rgba(255,255,255,.035)}
.community-shell{max-width:1040px}
.community-hero{padding:72px 0 28px;position:relative;overflow:hidden}
.community-hero::before{content:"";position:absolute;width:420px;height:420px;border-radius:50%;background:radial-gradient(circle,rgba(124,92,255,.13),transparent 68%);top:-230px;right:12%;pointer-events:none}
.community-hero .community-shell{display:flex;align-items:flex-end;justify-content:space-between;gap:28px}
.community-kicker{display:inline-flex;font-size:.82rem;font-weight:900;letter-spacing:.04em;color:#9fc5ff;margin-bottom:12px}
.community-hero h1{font-size:clamp(2.5rem,7vw,5rem);line-height:.95;margin:0 0 18px;letter-spacing:-.055em}
.community-hero p{margin:0;max-width:620px;color:var(--community-muted);font-size:1.08rem;line-height:1.9}
.community-write-cta{white-space:nowrap}
.community-main{padding-top:20px}
.community-search{display:flex;gap:8px;padding:7px;border:1px solid var(--community-line);background:rgba(4,11,20,.7);border-radius:18px;box-shadow:0 14px 40px rgba(0,0,0,.12);margin-bottom:42px}
.community-search:focus-within{border-color:rgba(124,92,255,.46);box-shadow:0 0 0 4px rgba(124,92,255,.07)}
.community-search input{flex:1;min-width:0;border:0;background:transparent;color:#fff;padding:13px 14px;outline:none;font:inherit}
.community-search input::placeholder{color:#74869b}
.community-search button{border:0;border-radius:12px;padding:0 24px;background:#fff;color:#09111d;font-weight:900;cursor:pointer}
.community-section-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:14px}
.community-section-head h2{margin:0;font-size:1.2rem}
.community-section-head p{margin:7px 0 0;color:var(--community-muted);font-size:.9rem}
.community-my-link{font-size:.88rem;color:#b9c7d8}
.community-feed{border-top:1px solid var(--community-line)}
.community-card{position:relative;padding:26px 4px 27px;border-bottom:1px solid var(--community-line);transition:padding .2s ease,background .2s ease}
.community-card:hover{padding-inline:14px;background:linear-gradient(90deg,rgba(255,255,255,.015),rgba(124,92,255,.025),transparent)}
.community-card-link{position:absolute;inset:0;z-index:1}
.community-card-meta{display:flex;align-items:center;flex-wrap:wrap;gap:7px;color:#8293a6;font-size:.82rem;margin-bottom:11px}
.community-card h3{margin:0 0 10px;max-width:800px;font-size:clamp(1.2rem,2.4vw,1.65rem);line-height:1.55;letter-spacing:-.02em}
.community-card p{margin:0;max-width:780px;color:#a9b8c9;line-height:1.85}
.community-card-untitled{font-size:1.08rem!important;color:#d7e0eb!important;max-width:820px!important}
.community-card-arrow{position:absolute;left:7px;bottom:28px;color:#6f8298;font-size:1.2rem;transition:transform .2s ease,color .2s ease}
.community-card:hover .community-card-arrow{transform:translateX(-4px);color:#fff}
.community-pagination{display:flex;justify-content:center;align-items:center;gap:18px;padding-top:30px;color:#7e91a7;font-size:.9rem}
.community-pagination a{color:#dbe5f0;border:1px solid var(--community-line);border-radius:12px;padding:9px 14px}
.community-empty{border:1px dashed rgba(255,255,255,.14);border-radius:20px;text-align:center;padding:54px 20px;color:var(--community-muted)}
.community-empty strong{display:block;color:#fff;font-size:1.2rem;margin-bottom:6px}.community-empty p{margin:0 0 14px}.community-empty a{color:#b7cfff}

/* Community reader */
.community-reader-wrap{padding:72px 20px 24px}
.community-reader{max-width:790px;margin:0 auto}
.community-reader-header{padding-bottom:36px;border-bottom:1px solid var(--community-line);position:relative}
.community-back{display:inline-flex;color:#8fa0b4;font-size:.88rem;font-weight:800;margin-bottom:26px}.community-back::before{content:"←";margin-left:7px}
.community-reader-header h1{font-size:clamp(2rem,5.8vw,3.75rem);line-height:1.25;letter-spacing:-.04em;margin:0 0 20px;text-wrap:balance}
.community-reader-meta{display:flex;align-items:center;flex-wrap:wrap;gap:7px;color:#8d9db0;font-size:.9rem}.community-reader-meta strong{color:#dbe5ef}
.community-reader-actions{position:absolute;left:0;bottom:34px;display:flex;align-items:center;gap:8px}.community-edit-link{position:static;border:1px solid var(--community-line);border-radius:10px;padding:7px 10px;font-size:.8rem;color:#bac8d7}.community-admin-delete-form{margin:0}.community-admin-delete-button{min-height:0;padding:7px 10px;border-radius:10px;font-size:.8rem;line-height:1.8}
.community-draft-badge{display:inline-flex;margin:0 10px 24px 0;border:1px solid rgba(255,198,88,.25);background:rgba(255,198,88,.08);color:#ffd98d;border-radius:999px;padding:5px 9px;font-size:.75rem;font-weight:900}
.community-prose{padding:42px 0;font-size:1.1rem;line-height:2.05;color:#d8e1eb;overflow-wrap:anywhere}
.community-prose p{margin:0 0 1.55em}
.community-prose h2{font-size:clamp(1.45rem,3vw,2rem);line-height:1.5;letter-spacing:-.025em;margin:2.1em 0 .72em;color:#fff}
.community-prose blockquote{margin:2em 0;padding:9px 20px 9px 0;border-right:3px solid #7c5cff;color:#bfcbd8;font-size:1.05em;background:linear-gradient(90deg,transparent,rgba(124,92,255,.055));border-radius:0 12px 12px 0}
.community-prose pre{direction:ltr;text-align:left;overflow:auto;background:#050a10;border:1px solid rgba(255,255,255,.1);border-radius:16px;padding:18px 20px;margin:2em 0;line-height:1.75;color:#d5e4f2;font-size:.9rem;box-shadow:inset 0 1px rgba(255,255,255,.025)}
.community-prose code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace}
.community-prose figure{margin:2.5em calc(min(7vw,56px) * -1);text-align:center}
.community-prose figure img{display:block;width:100%;height:auto;max-height:900px;object-fit:contain;border-radius:18px;border:1px solid rgba(255,255,255,.08);background:#050a10;box-shadow:0 24px 70px rgba(0,0,0,.24)}
.community-prose figcaption{color:#73859a;font-size:.78rem;line-height:1.6;margin-top:10px}
.community-reader-footer{border-top:1px solid var(--community-line);padding:28px 0 20px;display:flex;justify-content:space-between;gap:20px;align-items:center}.community-reader-footer div{display:flex;gap:7px;color:#8596a9}.community-reader-footer strong{color:#dce5ef}.community-reader-footer a{color:#aebdce;font-size:.9rem}

/* Community editor */
.community-editor-shell{padding-top:44px}
.community-editor-layout{max-width:1180px;display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:28px;align-items:start}
.community-compose{min-width:0;background:rgba(6,14,24,.62);border:1px solid var(--community-line);border-radius:24px;padding:26px;box-shadow:0 24px 80px rgba(0,0,0,.18)}
.community-compose-topbar{display:flex;justify-content:space-between;align-items:center;gap:16px;color:#8193a8;font-size:.84rem;margin-bottom:30px}.community-compose-topbar a{color:#b8c5d4}
.community-title-label{display:flex;gap:7px;align-items:center;color:#cbd7e3;font-size:.84rem;font-weight:900;margin-bottom:8px}.community-title-label span{color:#6f8196;font-weight:700}
.community-title-input{width:100%;border:0;border-bottom:1px solid rgba(255,255,255,.1);border-radius:0;background:transparent;color:#fff;padding:11px 0 16px;font:900 clamp(1.55rem,4vw,2.6rem)/1.4 Tajawal,sans-serif;letter-spacing:-.03em;outline:none}.community-title-input:focus{border-color:rgba(124,92,255,.55)}.community-title-input::placeholder{color:#445367}
.community-editor-toolbar{display:flex;flex-wrap:wrap;gap:7px;padding:18px 0 14px;position:sticky;top:75px;z-index:8;background:linear-gradient(#08111d 76%,rgba(8,17,29,0));margin-bottom:4px}
.community-editor-toolbar button{border:1px solid rgba(255,255,255,.1);background:#0b1623;color:#bdc9d7;border-radius:10px;padding:8px 11px;font:800 .78rem Tajawal,sans-serif;cursor:pointer}.community-editor-toolbar button:hover{background:#111f2e;color:#fff}.community-editor-toolbar button:disabled{opacity:.5;cursor:wait}.community-image-button{border-color:rgba(124,92,255,.28)!important;color:#cbbfff!important}
.community-editor-status{min-height:22px;color:#89a0b9;font-size:.78rem;margin-bottom:8px}
.community-block-editor{display:grid;gap:12px}
.community-editor-block{position:relative;border:1px solid rgba(255,255,255,.075);border-radius:16px;padding:14px;background:rgba(255,255,255,.018);transition:border-color .16s ease,background .16s ease}.community-editor-block:focus-within{border-color:rgba(124,92,255,.35);background:rgba(124,92,255,.025)}
.community-block-label{position:absolute;top:-8px;right:13px;background:#09131f;padding:0 7px;color:#66798e;font-size:.68rem;font-weight:900}
.community-block-controls{position:absolute;top:9px;left:9px;display:flex;gap:3px;z-index:2;opacity:.28;transition:opacity .15s ease}.community-editor-block:hover .community-block-controls,.community-editor-block:focus-within .community-block-controls{opacity:1}.community-block-controls button{width:29px;height:29px;border:0;border-radius:8px;background:rgba(255,255,255,.055);color:#8799ad;cursor:pointer}.community-block-controls button:hover{color:#fff;background:rgba(255,255,255,.1)}.community-block-controls button:disabled{opacity:.2;cursor:default}.community-block-controls .danger:hover{color:#ff9d9d;background:rgba(255,90,90,.08)}
.community-editor-block textarea{display:block;width:100%;min-height:58px;resize:none;overflow:hidden;border:0;background:transparent;color:#dce6f0;outline:0;padding:14px 4px 3px 96px;font:500 1rem/1.9 Tajawal,sans-serif}.community-editor-block.is-heading textarea{font-size:1.35rem;font-weight:900;color:#fff}.community-editor-block.is-quote textarea{border-right:3px solid rgba(124,92,255,.65);padding-right:15px;color:#b9c7d6}.community-editor-block.is-code textarea{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.87rem;line-height:1.75;text-align:left;background:#050a10;border-radius:10px;padding:14px 95px 14px 14px;color:#d2e4f5}
.community-editor-block.is-image{padding:18px}.community-editor-block.is-image img{display:block;width:100%;max-height:600px;object-fit:contain;background:#050a10;border-radius:12px}.community-editor-block.is-image input{width:100%;border:0;background:transparent;color:#aab9c9;outline:none;text-align:center;padding:11px 10px 1px;font:inherit;font-size:.8rem}
.community-compose-actions{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--community-line);padding-top:22px;margin-top:24px}.community-compose-actions .btn{width:auto}
.community-compose-note{margin:12px 0 0;color:#617489;font-size:.75rem;text-align:left}
.community-my-articles{position:sticky;top:96px;border:1px solid var(--community-line);border-radius:20px;background:rgba(255,255,255,.025);padding:15px}.community-my-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:3px 4px 12px}.community-my-head h2{font-size:.95rem;margin:0}.community-my-head a{font-size:.78rem;color:#b9c8d8}.community-my-list{display:grid;gap:5px}.community-my-list a{display:grid;gap:4px;padding:10px 11px;border-radius:11px}.community-my-list a:hover,.community-my-list a.active{background:rgba(255,255,255,.045)}.community-my-list strong{font-size:.8rem;color:#d4dfea;line-height:1.5}.community-my-list span{font-size:.68rem;color:#6f8297}.community-my-list a.active strong{color:#fff}

@media(max-width:900px){.community-editor-layout{grid-template-columns:1fr}.community-my-articles{position:static;order:2}.community-hero .community-shell{align-items:flex-start;flex-direction:column}.community-hero{padding-top:48px}.community-prose figure{margin-inline:0}.community-reader-actions{position:static;margin-top:16px;flex-wrap:wrap}.community-edit-link{position:static;display:inline-flex;margin-top:0}.community-editor-toolbar{top:69px}}
@media(max-width:640px){.community-reader-wrap{padding:42px 14px 8px}.community-reader-header{padding-bottom:28px}.community-prose{font-size:1rem;padding-top:30px}.community-search button{padding-inline:17px}.community-card{padding-right:0;padding-left:34px}.community-card:hover{padding-right:6px;padding-left:34px}.community-card-arrow{left:4px}.community-compose{padding:18px 14px;border-radius:18px}.community-editor-shell{padding-top:20px}.community-editor-toolbar{gap:5px}.community-editor-toolbar button{padding:8px 9px;font-size:.72rem}.community-editor-block textarea{padding-left:82px}.community-compose-actions{display:grid;grid-template-columns:1fr 1fr}.community-compose-actions .btn{width:100%;padding-inline:8px}.community-compose-note{text-align:center}.community-hero h1{font-size:3.2rem}}


/* Community v2 — compact reading-first layout + public authors */
body.community-page,
body.community-article-page,
body.community-editor-page,
body.community-author-page{--community-ink:#f7f9fc;--community-muted:#96a7bb;--community-line:rgba(255,255,255,.09);--community-card:rgba(255,255,255,.035)}

body.community-page .community-shell,
body.community-author-page .community-shell{max-width:1000px}
body.community-page .community-hero{padding:44px 0 12px}
body.community-page .community-hero::before{width:360px;height:360px;top:-240px;right:18%;opacity:.8}
body.community-page .community-hero .community-shell{display:block}
body.community-page .community-hero-copy{max-width:760px}
body.community-page .community-kicker{margin-bottom:8px}
body.community-page .community-hero h1{font-size:clamp(2.7rem,6.2vw,4.4rem);margin-bottom:12px}
body.community-page .community-hero p{font-size:1rem;line-height:1.8;max-width:650px}
body.community-page .community-hero-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-top:20px}
body.community-page .community-write-cta{min-height:44px;padding-inline:20px}
body.community-page .community-main{padding-top:14px}
body.community-page .community-search{margin:0 0 28px;border-radius:16px;box-shadow:none;background:rgba(4,11,20,.58)}
body.community-page .community-search input{padding-block:11px}
body.community-page .community-section-head{margin-bottom:7px;padding-top:2px}
.community-section-eyebrow{display:block;color:#6f849a;font-size:.72rem;font-weight:900;margin-bottom:4px}
body.community-page .community-section-head h2{font-size:1.28rem}

.community-card{padding:22px 4px 23px}
.community-card.is-featured{padding-block:25px}
.community-card.is-lead{padding-top:30px;padding-bottom:31px;background:linear-gradient(90deg,rgba(124,92,255,.025),transparent 72%)}
.community-card.is-lead h3{font-size:clamp(1.55rem,3vw,2.05rem);max-width:850px}
.community-card.is-featured h3{font-size:clamp(1.32rem,2.6vw,1.78rem)}
.community-card.is-lead p{font-size:1.02rem;max-width:820px}
.community-card-author{display:flex;align-items:center;gap:10px;margin-bottom:13px;position:relative;z-index:2;width:max-content;max-width:100%}
.community-card-author-copy{display:grid;gap:2px;min-width:0}
.community-author-avatar-link,.community-author-name{position:relative;z-index:3}
.community-author-avatar-link{display:inline-flex;border-radius:50%;flex:0 0 auto}
.community-author-name{color:#dce5ef;font-size:.86rem;font-weight:900;line-height:1.3}
.community-author-name:hover{color:#fff;text-decoration:underline;text-underline-offset:3px}
.community-card-meta{margin:0;font-size:.75rem;color:#75899f;gap:6px}
.community-latest-badge{color:#b8a9ff;font-weight:900}
.community-avatar{display:inline-grid;place-items:center;overflow:hidden;border-radius:50%;background:linear-gradient(135deg,rgba(124,92,255,.28),rgba(38,198,218,.15));border:1px solid rgba(255,255,255,.13);color:#eef4ff;font-weight:900;line-height:1;user-select:none;flex:0 0 auto}
.community-avatar img{display:block;width:100%;height:100%;object-fit:cover}
.community-avatar-feed{width:38px;height:38px;font-size:.9rem}
.community-card.is-lead .community-avatar-feed{width:42px;height:42px}
.community-card-arrow{bottom:25px}
.community-empty{padding:34px 20px;border-radius:18px;background:rgba(255,255,255,.015)}
.community-empty-mark{display:grid;place-items:center;width:34px;height:34px;margin:0 auto 11px;border-radius:50%;background:rgba(124,92,255,.09);color:#a99cff}
.community-empty strong{font-size:1.08rem}.community-empty p{font-size:.9rem}
.community-empty-compact{padding:30px 18px}

/* Reader author identity */
.community-reader-byline{display:flex;align-items:center;gap:11px;margin-top:4px}
.community-reader-byline-copy{display:grid;gap:4px}
.community-avatar-reader{width:44px;height:44px;font-size:1rem}
.community-reader-author-name{font-size:.92rem}
.community-reader-meta{font-size:.82rem;gap:6px}
.community-reader-footer{align-items:center}
.community-reader-author-card{display:flex;align-items:center;gap:11px;min-width:0;padding:8px 0;color:inherit}
.community-avatar-footer{width:48px;height:48px;font-size:1.05rem}
.community-reader-author-card-copy{display:grid!important;gap:1px!important;color:inherit!important}
.community-reader-author-card-copy small{color:#6f8298;font-size:.7rem}
.community-reader-author-card-copy strong{color:#e6eef7!important;font-size:.92rem}
.community-reader-author-card-copy em{color:#8296aa;font-style:normal;font-size:.74rem}
.community-reader-author-card:hover .community-reader-author-card-copy em{color:#bccadd}
.community-more-readings{white-space:nowrap}

/* Public author profile */
.community-author-hero{padding:48px 0 20px}
.community-author-shell{position:relative}
.community-author-profile{display:flex;align-items:center;gap:20px;padding-top:2px}
.community-avatar-profile{width:86px;height:86px;font-size:1.8rem;box-shadow:0 18px 55px rgba(0,0,0,.22)}
.community-author-profile .community-kicker{margin:0 0 4px}
.community-author-profile h1{font-size:clamp(1.8rem,4vw,2.8rem);line-height:1.25;margin:0 0 5px;letter-spacing:-.03em}
.community-author-profile p{margin:0;color:#7f93a8;font-size:.86rem}
.community-author-self-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:20px}
.community-author-main{padding-top:12px}
.community-author-article-card .community-card-meta{margin-bottom:9px}

/* Account avatar management */
.account-profile-hero-v2{display:grid;grid-template-columns:auto minmax(180px,1fr) auto;gap:18px;align-items:center;margin-bottom:18px;position:relative}
.account-avatar-preview-v2{display:flex}
.account-avatar-v2{width:86px;height:86px;display:inline-grid;place-items:center;overflow:hidden;border-radius:50%;background:linear-gradient(135deg,rgba(124,92,255,.28),rgba(38,198,218,.15));border:1px solid rgba(255,255,255,.14);color:#fff;font-size:1.8rem;font-weight:900;box-shadow:0 16px 45px rgba(0,0,0,.18)}
.account-avatar-v2 img{display:block;width:100%;height:100%;object-fit:cover}
.account-profile-identity-v2 span{display:block;color:#71869b;font-size:.75rem;font-weight:900;margin-bottom:4px}
.account-profile-identity-v2 h3{margin:0 0 4px;font-size:1.2rem}.account-profile-identity-v2 p{margin:0;color:#8fa1b4;font-size:.82rem}
.account-avatar-form-v2{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.account-avatar-input-v2{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important}
.account-avatar-picker-v2{cursor:pointer}
.account-avatar-remove-v2{position:absolute;left:24px;bottom:10px}.account-avatar-remove-v2 button{border:0;background:transparent;color:#6f8298;font:700 .72rem Tajawal,sans-serif;cursor:pointer}.account-avatar-remove-v2 button:hover{color:#ff9f9f}
.account-avatar-help-v2{grid-column:2/-1;color:#61758a;font-size:.72rem;margin-top:-7px}
.register-avatar-input-v2{padding-block:10px!important;height:auto!important;color:#91a3b7!important}
.dashboard-avatar-v2{overflow:hidden}.dashboard-avatar-v2 img{width:100%;height:100%;object-fit:cover;display:block}

@media(max-width:900px){
  body.community-page .community-hero{padding-top:34px}
  body.community-page .community-hero .community-shell{display:block}
  .account-profile-hero-v2{grid-template-columns:auto 1fr}
  .account-avatar-form-v2{grid-column:1/-1;justify-content:flex-start}
  .account-avatar-help-v2{grid-column:1/-1;margin-top:0}
  .account-avatar-remove-v2{position:static;grid-column:1/-1}
}
@media(max-width:640px){
  body.community-page .community-hero{padding:28px 0 8px}
  body.community-page .community-hero h1{font-size:3rem}
  body.community-page .community-hero-actions{margin-top:16px;gap:12px}
  body.community-page .community-main{padding-top:8px}
  body.community-page .community-search{margin-bottom:24px}
  .community-card{padding-right:0;padding-left:30px}
  .community-card.is-lead,.community-card.is-featured{padding-block:22px}
  .community-card:hover{padding-right:4px;padding-left:30px}
  .community-avatar-feed{width:36px;height:36px}.community-card.is-lead .community-avatar-feed{width:38px;height:38px}
  .community-card-author{margin-bottom:11px}
  .community-reader-byline{margin-top:1px}
  .community-avatar-reader{width:40px;height:40px}
  .community-reader-footer{align-items:flex-start;flex-direction:column}
  .community-avatar-profile{width:72px;height:72px;font-size:1.45rem}
  .community-author-profile{gap:14px}
  .community-author-profile h1{font-size:1.8rem}
  .account-profile-hero-v2{grid-template-columns:1fr;text-align:center;justify-items:center}
  .account-profile-identity-v2{max-width:330px}
  .account-avatar-form-v2{grid-column:auto;justify-content:center}
  .account-avatar-help-v2{grid-column:auto;text-align:center}
  .account-avatar-remove-v2{grid-column:auto}
}
