/* QAJ visual refresh */
:root{
  --bg:#fbfaf5;
  --card:#fffefd;
  --text:#103730;
  --muted:#65736d;
  --line:#eadfce;
  --main:#0b604f;
  --main-dark:#073f34;
  --accent:#ddb024;
  --soft-main:#e8f5f1;
  --soft-accent:#fff4d3;
  --radius:22px;
  --shadow:none;
  --theme-bg:var(--bg);
  --theme-surface:var(--card);
  --theme-text:var(--text);
  --theme-muted:var(--muted);
  --theme-line:var(--line);
  --theme-primary:var(--main);
  --theme-primary-dark:var(--main-dark);
  --theme-accent:var(--accent);
  --theme-soft-primary:var(--soft-main);
  --theme-soft-accent:var(--soft-accent);
  --theme-primary-card-gradient:
    radial-gradient(circle at 92% 82%,rgba(255,255,255,.13),transparent 25%),
    linear-gradient(135deg,color-mix(in srgb,var(--theme-primary) 72%,#2563eb) 0%,color-mix(in srgb,var(--theme-primary) 84%,#1d4ed8) 45%,var(--theme-primary-dark) 100%);
  --bottom-nav-height:82px;
}
body{
  font-weight:650;
  background:#fbfaf5;
}
body:before{
  background-image:radial-gradient(rgba(11,96,79,.13) .8px,transparent .9px);
  background-size:31px 31px;
  opacity:.28;
}
h1,h2,.course-title{
  font-family:Georgia,"Times New Roman",serif;
  color:var(--text);
  letter-spacing:0;
  line-height:.96;
}
h1{font-size:clamp(44px,9vw,62px)}
h2{font-size:clamp(32px,7vw,50px)}
h3{font-size:20px;color:var(--text)}
.eyebrow{
  color:#005b52;
  letter-spacing:.16em;
  font-size:14px;
}
.muted{color:var(--muted)}
.app-shell{padding-bottom:92px}
.app-header{
  position:static;
  height:0;
  padding:0;
  border:0;
  background:transparent;
  pointer-events:none;
}
.app-header>div{display:none}
.notification{
  position:fixed!important;
  top:max(14px,calc(env(safe-area-inset-top) + 14px))!important;
  right:max(14px,calc(env(safe-area-inset-right) + 14px))!important;
  bottom:auto!important;
  left:auto!important;
  z-index:2147483000!important;
  width:56px;
  height:56px;
  min-width:56px;
  min-height:56px;
  padding:0;
  display:grid;
  place-items:center;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.48);
  background:
    radial-gradient(circle at 32% 24%,rgba(255,255,255,.72),rgba(255,255,255,.18) 36%,rgba(255,255,255,.08) 68%),
    color-mix(in srgb,var(--theme-primary) 18%,transparent);
  color:var(--accent);
  box-shadow:
    0 1px 0 rgba(255,255,255,.72) inset,
    0 16px 34px color-mix(in srgb,var(--theme-primary) 24%,transparent),
    0 0 28px color-mix(in srgb,var(--theme-accent) 18%,transparent);
  backdrop-filter:blur(16px) saturate(1.2);
  -webkit-backdrop-filter:blur(16px) saturate(1.2);
  pointer-events:auto;
  animation:bell-breathe 2.4s ease-in-out infinite;
  will-change:transform;
  transform-origin:center;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.notification:hover{
  transform:translateY(-2px) scale(1.04);
  border-color:rgba(255,255,255,.72);
}
.notification:before,
.notification:after{content:none}
.notification .bell-icon{
  position:static;
  inset:auto;
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:
    radial-gradient(circle at 34% 26%,rgba(255,255,255,.78),transparent 26%),
    linear-gradient(145deg,var(--theme-accent),color-mix(in srgb,var(--theme-accent) 72%,#b86e00));
  color:#fff8dc;
  font-size:22px;
  line-height:1;
  padding:0;
  box-shadow:
    0 2px 0 rgba(255,255,255,.35) inset,
    0 9px 22px color-mix(in srgb,var(--theme-accent) 36%,transparent);
}
.notification .bell-icon:before{
  content:"\1F514";
}
.notification span#notificationBadge,
.notification-badge{
  position:absolute;
  right:-5px;
  top:-4px;
  min-width:26px;
  height:26px;
  display:grid;
  place-items:center;
  padding:0 7px;
  border:3px solid #fffdf7;
  background:#ef4444;
  font-size:13px;
  font-weight:1000;
  box-shadow:0 8px 16px rgba(239,68,68,.32);
}
@keyframes bell-breathe{
  0%,100%{transform:scale(1)}
  50%{transform:scale(1.055)}
}
.app-main{
  max-width:640px;
  padding:22px 16px 0;
}
.page-heading{
  position:relative;
  display:grid;
  gap:18px;
  margin:10px 0 24px;
  padding:24px 84px 22px 22px;
  border:1px solid rgba(234,223,206,.9);
  border-radius:30px;
  background:
    radial-gradient(circle at 100% 0,rgba(221,176,36,.16),transparent 34%),
    linear-gradient(135deg,rgba(255,255,255,.86),rgba(255,251,240,.72));
  box-shadow:0 18px 45px rgba(11,96,79,.08);
  overflow:hidden;
}
.page-heading:before{
  content:"";
  position:absolute;
  right:20px;
  bottom:18px;
  width:74px;
  height:74px;
  border-radius:50%;
  background:linear-gradient(135deg,#e9f5f1,#fff4ce);
  opacity:.85;
}
.page-heading h1{
  margin:6px 0 6px;
  max-width:430px;
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(38px,7.6vw,54px);
  line-height:.98;
  text-wrap:balance;
}
.greeting-copy{
  position:relative;
  z-index:1;
}
.greeting-name{
  margin:0;
  color:#0b604f;
  font-size:clamp(21px,4.5vw,28px);
  line-height:1.15;
  font-weight:950;
}
.greeting-meta{
  display:inline-flex;
  width:fit-content;
  margin:14px 0 0;
  padding:8px 12px;
  border-radius:999px;
  background:#eef7f3;
  color:#315a51;
  font-size:13px;
  font-weight:950;
}
.lead{
  position:relative;
  z-index:1;
  margin:0;
  max-width:500px;
  padding:14px 16px;
  border-left:4px solid var(--accent);
  border-radius:16px;
  background:rgba(255,255,255,.64);
  color:#173f38;
  font-size:16px;
  line-height:1.5;
  font-weight:700;
}
.quick-section{
  margin:22px 0 18px;
}
.notice-card{
  margin:18px 0;
  padding:18px;
  border:1px solid #ead15e;
  border-radius:18px;
  background:#fff8dc;
  color:#8a5a00;
  font-weight:1000;
}
.action-tiles{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin:14px 0 18px;
}
.action-tiles button{
  min-height:104px;
  border-radius:22px;
  text-align:left;
  padding:18px;
}
.month-label{
  min-width:140px;
  opacity:1;
  color:var(--text);
  background:#fffefa;
}
.card,.hero-card,.item-card,.course-card,.stat-box,.profile-box,.date-bubble,.accordion{
  border-color:var(--line);
  box-shadow:none;
}
.card{
  background:rgba(255,254,251,.84);
  border-radius:22px;
  padding:20px;
}
.card:has(>.eyebrow:first-child+h2),
.card:has(.card-head .eyebrow){
  background:transparent;
  border-color:transparent;
  padding:0;
}
.hero-card{
  position:relative;
  overflow:hidden;
  border:0;
  border-radius:28px;
  padding:28px 28px 31px;
  background:var(--theme-primary-card-gradient);
  color:#fff;
}
.hero-card:after,.course-card:after{
  content:"";
  position:absolute;
  right:-34px;
  bottom:-86px;
  width:190px;
  height:190px;
  border-radius:50%;
  background:rgba(255,255,255,.12);
}
.hero-card h2,.hero-card h3,.hero-card .course-title{color:#fff}
.hero-card h2{
  margin:25px 0 10px;
  font-size:clamp(34px,6.2vw,42px);
  line-height:.95;
}
.hero-card>p{
  margin:0 0 17px;
  color:rgba(255,255,255,.78);
  font-size:18px;
  line-height:1.25;
  font-weight:900;
}
.hero-card .stat-box{
  background:rgba(255,255,255,.14);
  border-color:rgba(255,255,255,.18);
  color:#fff;
  min-height:64px;
  padding:12px 16px;
  border-radius:16px;
}
.hero-card .stat-box small{
  color:rgba(255,255,255,.72);
  font-size:11px;
}
.hero-card .stat-box strong{
  color:#fff;
  display:block;
  margin-top:2px;
  font-size:18px;
  line-height:1.18;
  white-space:nowrap;
}
.instructor-box{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.instructor-box>div{
  min-width:0;
}
.zoom-chip{
  flex:0 0 auto;
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#2f8fff;
  color:#fff;
  text-decoration:none;
  box-shadow:0 8px 18px rgba(47,143,255,.25);
}
.zoom-chip span{
  width:22px;
  height:22px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#fff;
  color:#2f8fff;
  font-size:14px;
  font-weight:1000;
  line-height:1;
}
.zoom-chip:hover{
  transform:translateY(-1px);
}
.hero-top{align-items:flex-start}
.hero-top .pill.light{
  padding:9px 17px;
  font-size:12px;
}
.hero-top .ghost-btn{
  width:184px;
  min-height:50px;
  padding:9px 17px;
  background:rgba(255,255,255,.20);
  font-size:15px;
  text-align:center;
}
.live-stat-grid{
  position:relative;
  z-index:1;
  grid-template-columns:1fr 1fr;
  gap:13px;
}
.hero-actions:empty{
  display:none;
}
.pill{
  padding:7px 13px;
  font-size:12px;
  letter-spacing:0;
}
.pill.light,.pill.gold{
  background:var(--accent);
  color:#fff;
}
.pill.green,.status-done{
  background:#e7f2ef;
  color:#045749;
}
.pill.gray{
  background:#fff6df;
  color:#835900;
}
.pill.blue{
  background:#2f8fff;
  color:#fff;
}
.primary-btn,.secondary-btn,.ghost-btn,.mini-btn,.danger-btn{
  border-radius:999px;
  font-weight:1000;
  line-height:1.05;
}
.primary-btn{background:var(--main);color:#fff}
.secondary-btn{background:var(--accent);color:#fff}
.ghost-btn{
  background:rgba(255,255,255,.18);
  color:#fff;
  border:0;
}
.mini-btn{
  background:#fffdf8;
  border:1px solid var(--line);
  color:var(--main);
}
.stat-grid,.profile-grid,.summary-grid{gap:12px}
.stat-box,.profile-box{
  background:#f6f1e7;
  border-radius:14px;
}
.item-card,.course-card{
  position:relative;
  overflow:hidden;
  background:rgba(255,255,255,.82);
  border-radius:22px;
}
.course-card{
  min-height:190px;
  padding:28px 26px 24px;
  border:1px solid var(--line);
  border-left:5px solid var(--accent);
  background:
    radial-gradient(circle at 94% 80%,rgba(11,96,79,.08),transparent 28%),
    rgba(255,255,255,.88);
  cursor:pointer;
  box-shadow:0 12px 30px rgba(11,96,79,.055);
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease;
}
.course-card:hover{
  transform:translateY(-2px);
  border-color:#e4cf99;
  box-shadow:0 16px 36px rgba(11,96,79,.09);
}
.course-title{
  margin:22px 0 10px;
  font-size:clamp(31px,6vw,40px);
  text-transform:none;
  letter-spacing:0;
}
.classes-head{
  position:relative;
  margin:10px 0 20px;
}
.classes-head>h2{
  margin:4px 0 10px;
}
.classes-head>.muted{
  max-width:500px;
  margin:0 0 18px;
  font-size:17px;
  font-weight:750;
}
.classes-summary{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin:18px 0 18px;
}
.classes-summary div{
  min-height:76px;
  padding:14px;
  border:1px solid rgba(234,223,206,.75);
  border-radius:18px;
  background:
    radial-gradient(circle at 90% 0,rgba(221,176,36,.10),transparent 38%),
    rgba(255,255,255,.82);
}
.classes-summary small{
  display:block;
  color:#68746f;
  font-size:11px;
  font-weight:1000;
  text-transform:uppercase;
}
.classes-summary strong{
  display:block;
  margin-top:4px;
  color:#073f34;
  font-size:27px;
  line-height:1;
  font-weight:1000;
}
.classes-list{
  gap:15px;
}
.course-card-top{
  position:relative;
  z-index:1;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.course-level,.teacher-pill,.course-progress{
  display:inline-flex;
  width:fit-content;
  border-radius:999px;
  padding:8px 14px;
  font-size:12px;
  font-weight:1000;
  line-height:1;
  text-transform:uppercase;
}
.course-level{
  background:#e9f5f1;
  color:#075749;
}
.teacher-tools{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}
.teacher-pill{
  background:var(--accent);
  color:#fff;
}
.course-zoom{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  padding:8px 14px;
  background:#2f8fff;
  color:#fff;
  font-size:12px;
  font-weight:1000;
  line-height:1;
  text-transform:uppercase;
  text-decoration:none;
}
.course-times{
  position:relative;
  z-index:1;
  color:#65736d;
  font-size:15px;
  font-weight:1000;
}
.course-progress{
  position:relative;
  z-index:1;
  margin-top:15px;
  background:#fff4d8;
  color:#8a5d00;
}
.course-theme-1{
  border-left-color:#0b604f;
  background:
    radial-gradient(circle at 94% 80%,rgba(47,143,255,.08),transparent 28%),
    linear-gradient(180deg,rgba(255,255,255,.92),rgba(250,252,255,.88));
}
.course-theme-1 .course-level{background:#eef2ff;color:#3730a3}
.course-theme-1 .teacher-pill{background:#c47b16}
.course-theme-2{border-left-color:#2f8fff}
.course-theme-2 .course-level{background:#eaf3ff;color:#175cd3}
.course-theme-2 .teacher-pill{background:#0b604f}
.course-theme-3{border-left-color:#c45a2c}
.course-theme-3 .course-level{background:#fff1e8;color:#9a3412}
.course-theme-3 .teacher-pill{background:#8a5d00}
.other-courses-card{
  position:relative;
  overflow:hidden;
  margin:22px 0 8px;
  display:grid;
  gap:14px;
  padding:22px;
  border-radius:24px;
  border:1px solid var(--theme-line);
  background:
    radial-gradient(circle at 96% 0,color-mix(in srgb,var(--theme-accent) 10%,transparent),transparent 34%),
    linear-gradient(180deg,#fffdf8,#fffaf0);
  color:var(--theme-text);
  box-shadow:0 16px 34px rgba(67,52,35,.08);
}
.other-courses-card:after{
  content:none;
  position:absolute;
  right:-28px;
  bottom:-62px;
  width:164px;
  height:164px;
  border-radius:50%;
  background:rgba(255,255,255,.10);
}
.other-courses-card h2{
  position:relative;
  z-index:1;
  margin:14px 0 10px;
  font-family:Inter,ui-sans-serif,system-ui,sans-serif;
  color:#fff;
  font-size:30px;
  line-height:1.1;
  font-weight:1000;
}
.other-courses-card p{
  position:relative;
  z-index:1;
  margin:0;
  color:rgba(255,255,255,.75);
  font-size:19px;
  line-height:1.45;
  font-weight:700;
}
.other-courses-toggle{
  position:relative;
  z-index:1;
  width:100%;
  border:0;
  border-radius:20px;
  background:transparent;
  color:var(--theme-text);
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px 12px;
  align-items:center;
  padding:0;
  text-align:left;
}
.other-courses-toggle .pill{
  grid-column:1 / -1;
  background:#fff3c8;
  color:#8a5d00;
  padding:8px 14px;
}
.other-courses-toggle strong{
  color:#0b3b32;
  font-size:24px;
  line-height:1.08;
  font-weight:1000;
}
.other-courses-toggle small{
  color:#61716b;
  font-size:14px;
  line-height:1.35;
  font-weight:850;
}
.other-courses-toggle i{
  grid-row:2 / span 2;
  grid-column:2;
  align-self:center;
  border-radius:999px;
  background:#463829;
  color:#fff;
  padding:9px 13px;
  font-style:normal;
  font-size:12px;
  font-weight:1000;
}
.other-courses-copy,
.other-course-preview-grid,
.other-courses-main-btn{
  position:relative;
  z-index:1;
}
.other-course-preview-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.other-course-preview{
  min-height:96px;
  border:1px solid var(--theme-line);
  border-radius:17px;
  padding:12px;
  display:grid;
  gap:5px;
  align-content:start;
  text-align:left;
  text-decoration:none;
  color:#1f2937;
  box-shadow:0 10px 20px rgba(67,52,35,.045);
}
.other-course-preview span{
  width:33px;
  height:33px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:rgba(255,255,255,.7);
  color:var(--theme-primary);
  font-size:12px;
  font-weight:1000;
}
.other-course-preview strong{
  color:#3b4654;
  font-size:15px;
  line-height:1.1;
  font-weight:1000;
}
.other-course-preview small{
  color:#5f6b75;
  font-size:11px;
  line-height:1.25;
  font-weight:850;
}
.other-courses-card .other-courses-main-btn{
  position:relative;
  z-index:1;
  width:100%;
  min-height:50px;
  border:0;
  border-radius:999px;
  background:#463829;
  color:#fff;
  font-size:18px;
  font-weight:1000;
}
.progress-fill{background:var(--accent)}
.quick-row{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:9px;
  overflow:visible;
  padding-bottom:0;
}
.quick-btn,.story-btn{
  min-width:0;
  min-height:96px;
  border-radius:20px;
  background:#fffdfb;
  color:#063c35;
  border-color:#eadfce;
  padding:12px 5px 10px;
}
.quick-btn:before,.story-btn:before{
  content:"";
  display:block;
  width:44px;
  height:44px;
  margin:0 auto 8px;
  border-radius:16px;
  background:linear-gradient(135deg,#fff7d9,#e6f3ef);
}
.quick-btn:before{display:none}
.quick-btn{
  display:grid;
  place-items:center;
  gap:8px;
}
.quick-btn span:last-child{
  font-size:12px;
  line-height:1;
}
.quick-icon{
  width:45px;
  height:45px;
  display:grid;
  place-items:center;
  border-radius:15px;
  background:linear-gradient(135deg,#fff8df,#e9f4ef);
  color:var(--main);
  font-size:23px;
  font-weight:1000;
}
.quick-feed:before{content:"💬"}
.quick-classes:before{content:"🎓"}
.quick-calendar:before{content:"🗓️"}
.quick-records:before{content:"▶"}
.quick-quran:before{content:"☾"}
.progress-card{
  position:relative;
  overflow:hidden;
  padding:24px;
  border-color:#eadfce;
  background:
    radial-gradient(circle at 96% 0,rgba(221,176,36,.14),transparent 28%),
    linear-gradient(180deg,rgba(255,255,255,.94),rgba(255,253,248,.88));
  box-shadow:0 14px 38px rgba(11,96,79,.07);
}
.progress-card:after{
  content:"";
  position:absolute;
  right:-34px;
  bottom:-52px;
  width:128px;
  height:128px;
  border-radius:50%;
  background:rgba(11,96,79,.06);
}
.progress-card .card-head{
  position:relative;
  z-index:1;
  align-items:flex-start;
}
.progress-card h2{
  margin:2px 0 12px;
  font-family:Inter,ui-sans-serif,system-ui,sans-serif;
  font-size:30px;
  line-height:1.05;
  font-weight:1000;
}
.progress-card .muted{
  margin:0 0 16px;
  color:#6a7671;
  font-size:17px;
  font-weight:800;
}
.progress-star{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#edf6f2;
  color:var(--main);
  font-size:16px;
  line-height:1;
}
.progress-card .progress-track{
  position:relative;
  z-index:1;
  height:9px;
  margin:1px 0 18px;
  background:#e8e1d4;
  box-shadow:inset 0 1px 2px rgba(0,0,0,.04);
}
.progress-card .progress-fill{
  background:linear-gradient(90deg,#0b604f,#087060);
}
.progress-card .progress-stats{
  position:relative;
  z-index:1;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
.progress-card .stat-box{
  min-height:82px;
  background:linear-gradient(180deg,#f8f3e9,#f3eee4);
  border:1px solid rgba(234,223,206,.62);
  padding:14px 14px;
}
.progress-card .stat-box small{
  font-size:11px;
  color:#68746f;
}
.progress-card .stat-box strong{
  display:block;
  margin-top:5px;
  color:#073f34;
  font-size:30px;
  line-height:1;
}
.bottom-nav{
  left:8px;
  right:8px;
  bottom:8px;
  min-height:78px;
  border-radius:24px;
  background:var(--theme-primary-card-gradient);
  border:1px solid rgba(255,255,255,.18);
  box-shadow:0 12px 28px rgba(0,55,44,.18);
  padding:8px;
  align-items:center;
}
.nav-btn{
  min-height:62px;
  display:grid;
  place-items:center;
  gap:3px;
  border-radius:20px;
  color:rgba(255,255,255,.76);
  padding:7px 4px;
}
.nav-btn .nav-icon{
  display:block;
  font-size:24px;
  line-height:1;
  font-weight:800;
}
.nav-btn span:last-child{
  font-size:12px;
  line-height:1;
}
.nav-btn.active{
  background:#fffefa;
  color:var(--theme-primary);
}
.sheet-backdrop{
  z-index:68;
  padding:36px 8px 124px;
  background:rgba(6,14,11,.38);
}
.more-sheet{
  position:relative;
  left:auto;
  right:auto;
  bottom:auto;
  width:min(610px,100%);
  max-height:calc(100vh - 150px);
  overflow:auto;
  margin:0 auto;
  border-radius:34px;
  padding:22px;
  background:#fffefa;
}
.sheet-head{margin-bottom:24px}
.sheet-head h2{margin:0;font-family:Inter,ui-sans-serif,system-ui,sans-serif;font-size:30px;line-height:1.1}
.sheet-head .muted{margin:0;font-weight:950}
.sheet-close{
  width:42px;
  height:42px;
  padding:0;
  border:0;
  background:#eef6f2;
  font-size:24px;
}
.brand-mark{
  width:66px;
  height:66px;
  border-radius:22px;
  background:var(--main);
  color:#fff;
}
.more-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}
.more-grid button{
  display:grid;
  grid-template-columns:56px 1fr 20px;
  align-items:center;
  gap:12px;
  min-height:76px;
  border-radius:22px;
  background:#fff;
}
.more-grid button:after{
  content:">";
  color:#69766f;
  font-size:23px;
  font-weight:1000;
}
.more-grid strong{display:block;font-size:18px;color:var(--text)}
.more-grid small{display:block;margin-top:3px;color:var(--muted);font-weight:900}
.more-icon{
  width:50px;
  height:50px;
  border-radius:16px;
  background:#eaf3f0;
  color:var(--main);
  display:grid;
  place-items:center;
  font-size:20px;
  font-weight:1000;
}
.more-icon.gold{background:#fff8dc;color:#8c6a00}
.danger-lite strong{color:#c91f1f}
.calendar-weekdays span{font-size:14px}
.calendar-grid{gap:8px}
.calendar-day{
  min-height:92px;
  border:0;
  background:transparent;
  text-align:center;
  place-items:center;
  color:var(--text);
  font-size:20px;
  font-weight:1000;
}
.calendar-day.completed-only{
  background:#e7f6f0;
  border:1px solid #b8ded3;
}
.calendar-day.upcoming-day{
  background:#edf6ff;
  border:1px solid #b9d6ff;
}
.calendar-day.today{
  color:#fff;
  background:var(--main);
  outline:0;
}
.calendar-count{display:none}
.feed-head{
  margin:10px 0 18px;
}
.feed-head h2{
  margin:5px 0 20px;
}
.feed-stories{
  display:flex;
  gap:16px;
  overflow-x:auto;
  padding:0 0 12px;
  scrollbar-width:none;
}
.feed-stories::-webkit-scrollbar{display:none}
.story-btn{
  flex:0 0 86px;
  min-height:auto;
  display:grid;
  justify-items:center;
  gap:8px;
  border:0;
  background:transparent;
  color:#073f34;
  padding:0;
  font-size:12px;
  font-weight:1000;
}
.story-btn:before{display:none}
.story-btn span{
  width:78px;
  height:78px;
  display:grid;
  place-items:center;
  border:3px solid transparent;
  border-radius:50%;
  background:linear-gradient(#fffdfb,#fffdfb) padding-box,linear-gradient(135deg,#ff7a1a,#e02cc9,#4f46e5) border-box;
}
.story-btn span:before{
  content:"";
  width:56px;
  height:56px;
  border-radius:50%;
  background:linear-gradient(135deg,#fff9dd,#edf6f1);
}
.story-own span:before{
  content:"+";
  display:grid;
  place-items:center;
  color:var(--main);
  font-size:32px;
  font-weight:1000;
}
.story-dhikr span:before{
  content:"☾";
  display:grid;
  place-items:center;
  color:#8a6a00;
  font-size:30px;
  font-weight:1000;
}
.story-jummah span:before{
  content:"J";
  display:grid;
  place-items:center;
  color:var(--main);
  font-size:29px;
  font-weight:1000;
}
.story-news span:before{
  content:"Q";
  display:grid;
  place-items:center;
  color:var(--main);
  font-size:29px;
  font-weight:1000;
}
.story-recent span:before{
  content:"↻";
  display:grid;
  place-items:center;
  color:#6a54d9;
  font-size:28px;
  font-weight:1000;
}
.feed-list{
  display:grid;
  gap:16px;
}
.feed-post{
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:25px;
  background:rgba(255,255,255,.9);
  box-shadow:0 12px 32px rgba(11,96,79,.06);
}
.feed-post-head{
  display:flex;
  align-items:center;
  gap:12px;
  padding:15px 17px 13px;
}
.feed-avatar{
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  border-radius:50%;
  background:var(--main);
  color:#fff;
  font-size:20px;
  font-weight:1000;
}
.feed-post-head h3{
  margin:0 0 4px;
  font-family:Inter,ui-sans-serif,system-ui,sans-serif;
  font-size:17px;
  font-weight:1000;
  line-height:1.15;
}
.feed-post-head p{
  margin:0;
  color:#6a7671;
  font-size:13px;
  font-weight:800;
}
.feed-image{
  display:block;
  width:100%;
  max-height:520px;
  object-fit:cover;
  border-top:1px solid #f0e6d8;
  border-bottom:1px solid #f0e6d8;
}
.feed-text-card{
  min-height:280px;
  display:grid;
  place-items:center;
  padding:44px 42px;
  background:
    radial-gradient(circle at 84% 22%,rgba(255,255,255,.12),transparent 26%),
    linear-gradient(135deg,var(--main),var(--main-dark));
  color:#fff;
  text-align:center;
  font-size:24px;
  line-height:1.45;
  font-weight:1000;
}
.feed-actions{
  display:grid;
  grid-template-columns:42px 42px 1fr;
  align-items:center;
  padding:9px 11px 2px;
}
.feed-actions button{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border:0;
  border-radius:50%;
  background:transparent;
  color:#073f34;
  font-size:25px;
  font-weight:900;
}
.feed-actions button.active{
  color:#d92d20;
}
.feed-caption{
  padding:0 17px 17px;
}
.feed-caption strong{
  display:block;
  margin:0 0 7px;
  color:#073f34;
  font-size:14px;
}
.feed-caption p{
  margin:0 0 10px;
  color:#173f38;
  line-height:1.45;
  font-weight:700;
}
.feed-comment-link{
  border:0;
  background:transparent;
  padding:0;
  color:#6a7671;
  font-size:14px;
  font-weight:850;
}
.feed-compose-fab{
  position:fixed;
  right:max(18px,calc(env(safe-area-inset-right) + 18px));
  bottom:calc(96px + env(safe-area-inset-bottom));
  z-index:60;
  width:58px;
  height:58px;
  border:0;
  border-radius:50%;
  background:var(--main);
  color:#fff;
  box-shadow:0 16px 34px rgba(11,96,79,.28);
  font-size:34px;
  font-weight:800;
  line-height:1;
}
.messages-compose-fab{
  position:fixed;
  right:max(18px,calc(env(safe-area-inset-right) + 18px));
  bottom:calc(var(--bottom-nav-height,82px) + 18px + env(safe-area-inset-bottom));
  z-index:60;
  width:58px;
  height:58px;
  display:grid;
  place-items:center;
  border:0;
  border-radius:50%;
  background:var(--theme-primary-card-gradient);
  color:#fff;
  box-shadow:0 16px 34px color-mix(in srgb,var(--theme-primary) 30%,transparent);
  font-size:34px;
  font-weight:900;
  line-height:1;
  transition:transform .16s ease, box-shadow .16s ease;
}
.messages-compose-fab:hover{
  transform:translateY(-3px) scale(1.03);
  box-shadow:0 20px 42px color-mix(in srgb,var(--theme-primary) 38%,transparent);
}
.modal-card{
  border-radius:30px;
  background:#fffefa;
}
.modal-root:has(form){
  z-index:2147483100;
}
.modal-root:has(.notification-popover),
.notification-modal-root{
  z-index:2147483600;
  place-items:start end;
  padding:
    max(82px,calc(env(safe-area-inset-top) + 82px))
    max(14px,calc(env(safe-area-inset-right) + 14px))
    calc(var(--bottom-nav-height,82px) + 18px)
    14px;
}
.modal-card:has(.notification-popover),
.notification-modal-card{
  width:min(420px,calc(100vw - 28px));
  max-height:min(70vh,520px);
  overflow:hidden;
  padding:0;
  border:1px solid rgba(255,255,255,.58);
  border-radius:28px;
  background:
    radial-gradient(circle at 90% 0, color-mix(in srgb,var(--theme-accent) 18%,transparent), transparent 32%),
    linear-gradient(145deg,rgba(255,255,255,.92),rgba(255,253,247,.84));
  box-shadow:
    0 1px 0 rgba(255,255,255,.9) inset,
    0 26px 64px rgba(22,37,32,.22);
  backdrop-filter:blur(18px) saturate(1.1);
  -webkit-backdrop-filter:blur(18px) saturate(1.1);
}
.modal-card:has(.notification-popover)>.modal-head,
.notification-modal-card>.modal-head{
  display:none;
}
.notification-popover{
  display:grid;
  max-height:min(70vh,520px);
  color:var(--theme-text);
}
.notification-popover-head{
  position:sticky;
  top:0;
  z-index:2;
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  padding:18px 18px 14px;
  border-bottom:1px solid rgba(234,223,206,.72);
  background:rgba(255,253,247,.82);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}
.notification-popover-head h3{
  margin:0 0 3px;
  color:var(--theme-text);
  font-family:Inter,ui-sans-serif,system-ui,sans-serif;
  font-size:24px;
  line-height:1.05;
}
.notification-popover-head p{
  margin:0;
  color:var(--theme-muted);
  font-size:13px;
  font-weight:800;
}
.notification-close-btn{
  width:38px;
  height:38px;
  flex:0 0 auto;
  border:1px solid var(--theme-line);
  border-radius:50%;
  background:#fffdf8;
  color:var(--theme-primary);
  font-size:18px;
  font-weight:1000;
  box-shadow:0 8px 18px rgba(11,96,79,.06);
}
.notification-list{
  overflow-y:auto;
  display:grid;
  padding:6px 0;
}
.notification-row{
  position:relative;
  display:grid;
  grid-template-columns:42px minmax(0,1fr) 10px;
  gap:11px;
  align-items:center;
  width:100%;
  border:0;
  border-bottom:1px solid rgba(234,223,206,.68);
  background:transparent;
  color:var(--theme-text);
  padding:13px 18px;
  text-align:left;
  transition:background .15s ease, transform .15s ease;
}
.notification-row:hover{
  background:rgba(255,255,255,.52);
}
.notification-row-icon{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:15px;
  background:var(--theme-soft-primary);
  color:var(--theme-primary);
  font-size:15px;
  font-weight:1000;
}
.notification-row.unread .notification-row-icon{
  background:linear-gradient(145deg,var(--theme-primary),var(--theme-primary-dark));
  color:#fff;
}
.notification-row-main{
  display:grid;
  min-width:0;
  gap:4px;
}
.notification-row-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:8px;
}
.notification-row-top strong{
  min-width:0;
  color:var(--theme-text);
  font-size:14px;
  font-weight:1000;
  line-height:1.25;
}
.notification-row-top em{
  flex:0 0 auto;
  color:var(--theme-muted);
  font-size:11px;
  font-style:normal;
  font-weight:850;
}
.notification-row-main small{
  color:var(--theme-muted);
  font-size:12px;
  font-weight:760;
  line-height:1.35;
}
.notification-row-type{
  justify-self:start;
  border-radius:999px;
  background:var(--theme-soft-accent);
  color:var(--theme-primary);
  padding:4px 8px;
  font-size:10px;
  font-weight:1000;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.notification-dot{
  width:9px;
  height:9px;
  border-radius:50%;
  background:#ef4444;
  box-shadow:0 0 0 4px rgba(239,68,68,.12);
}
.notification-clear-btn{
  margin:10px 18px 18px;
  min-height:42px;
  border:1px solid rgba(239,68,68,.18);
  border-radius:16px;
  background:rgba(254,226,226,.72);
  color:#b42318;
  font-size:13px;
  font-weight:1000;
}
.notification-empty{
  display:grid;
  justify-items:center;
  gap:8px;
  padding:34px 24px 32px;
  text-align:center;
}
.notification-empty-icon{
  width:58px;
  height:58px;
  display:grid;
  place-items:center;
  border-radius:20px;
  background:var(--theme-soft-accent);
  color:var(--theme-accent);
}
.notification-empty-icon:before{
  content:"\1F514";
  font-size:26px;
}
.notification-empty strong{
  color:var(--theme-text);
  font-size:18px;
  font-weight:1000;
}
.notification-empty p{
  margin:0;
  color:var(--theme-muted);
  font-weight:800;
  line-height:1.4;
}
.modal-card:has(.bubble-grid),
.modal-card:has(.class-entry-recording-section){
  max-height:calc(100vh - var(--bottom-nav-height,82px) - 40px);
  overflow-y:auto;
  margin-bottom:calc(var(--bottom-nav-height,82px) + 12px);
  padding-bottom:max(24px,calc(env(safe-area-inset-bottom) + 18px));
}
.course-detail-month-nav{
  display:grid;
  grid-template-columns:minmax(88px,auto) 1fr minmax(88px,auto);
  align-items:center;
  gap:8px;
  margin:12px 0;
}
.course-detail-month-nav strong{
  text-align:center;
  color:var(--theme-text);
  font-weight:1000;
}
.course-detail-month-nav .mini-btn:disabled{
  opacity:.46;
  cursor:not-allowed;
}
.class-entry-recording-section{
  display:grid;
  gap:12px;
  border:1px solid var(--theme-line);
  border-radius:20px;
  background:#fffefa;
  padding:16px;
}
.class-entry-recording-section h3{
  margin:0;
  font-family:Inter,ui-sans-serif,system-ui,sans-serif;
  font-size:20px;
}
.recording-title-line{
  margin:0;
  color:var(--theme-text);
  font-weight:950;
}
.class-entry-recording-section .secondary-btn{
  justify-self:start;
  background:var(--theme-accent);
  color:#fff;
}
.class-entry-resource-links{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.class-entry-resource-links .secondary-btn{
  background:#f6f2e8;
  color:var(--theme-primary);
  min-height:auto;
  padding:8px 11px;
  font-size:12px;
}
.profile-page{
  display:grid;
  gap:16px;
}
.profile-hero-card{
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:center;
  gap:16px;
  border:1px solid var(--theme-line);
  border-radius:30px;
  background:
    radial-gradient(circle at 92% 12%,rgba(156,200,255,.22),transparent 30%),
    var(--theme-primary-card-gradient);
  color:#fff;
  padding:22px;
  box-shadow:0 18px 38px rgba(11,96,79,.14);
}
.profile-hero-card:after{
  content:"";
  position:absolute;
  right:-46px;
  bottom:-62px;
  width:160px;
  height:160px;
  border-radius:50%;
  background:rgba(255,255,255,.13);
}
.profile-hero-card>*{
  position:relative;
  z-index:1;
}
.profile-avatar{
  width:72px;
  height:72px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  border-radius:24px;
  background:rgba(255,255,255,.16);
  color:#fff;
  font-size:25px;
  font-weight:1000;
}
.profile-hero-card .eyebrow{
  color:var(--theme-accent);
}
.profile-hero-card h2{
  margin:2px 0 10px;
  color:#fff;
  font-family:Inter,ui-sans-serif,system-ui,sans-serif;
  font-size:30px;
  line-height:1.06;
}
.profile-hero-meta{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}
.profile-hero-meta span{
  border-radius:999px;
  background:rgba(255,255,255,.14);
  color:rgba(255,255,255,.88);
  padding:7px 10px;
  font-size:12px;
  font-weight:950;
}
.profile-hero-meta .status-dot{
  background:var(--theme-accent);
  color:#1f1a00;
  text-transform:capitalize;
}
.profile-section-card{
  border:1px solid var(--theme-line);
  border-radius:26px;
  background:rgba(255,255,255,.92);
  padding:18px;
  box-shadow:0 12px 28px rgba(11,96,79,.06);
}
.profile-accordion{
  display:grid;
  gap:10px;
}
.profile-accordion-item{
  overflow:hidden;
  border:1px solid var(--theme-line);
  border-radius:24px;
  background:
    radial-gradient(circle at 92% 14%,rgba(221,176,36,.08),transparent 30%),
    rgba(255,255,255,.94);
  box-shadow:0 10px 24px rgba(11,96,79,.045);
  transition:box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.profile-accordion-item:hover{
  transform:translateY(-1px);
  box-shadow:0 15px 30px rgba(11,96,79,.08);
}
.profile-accordion-item.open{
  border-color:rgba(221,176,36,.42);
  box-shadow:0 16px 34px rgba(11,96,79,.08);
}
.profile-accordion-head{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border:0;
  background:transparent;
  color:var(--theme-text);
  padding:17px 18px 16px;
  text-align:left;
  cursor:pointer;
}
.profile-accordion-copy{
  display:grid;
  min-width:0;
  gap:5px;
}
.profile-accordion-copy .section-pill{
  justify-self:start;
  margin:0 0 3px;
}
.profile-accordion-copy strong{
  color:var(--theme-text);
  font-family:Inter,ui-sans-serif,system-ui,sans-serif;
  font-size:26px;
  font-weight:1000;
  line-height:1.02;
}
.profile-accordion-copy small{
  color:var(--theme-muted);
  font-size:15px;
  font-weight:700;
  line-height:1.3;
}
.profile-accordion-side{
  display:flex;
  align-items:center;
  gap:9px;
  flex:0 0 auto;
}
.profile-accordion-chevron{
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  flex:0 0 auto;
  border-radius:50%;
  background:var(--theme-soft-primary);
  color:var(--theme-primary);
  font-size:0;
  transition:transform .18s ease;
}
.profile-accordion-chevron:before{
  content:"v";
  font-size:15px;
  font-weight:1000;
  line-height:1;
}
.profile-accordion-item.open .profile-accordion-chevron{
  transform:rotate(180deg);
}
.profile-accordion-body{
  display:none;
  border-top:1px solid rgba(234,223,206,.75);
  padding:16px 18px 18px;
}
.profile-accordion-item.open .profile-accordion-body{
  display:block;
}
.profile-accordion-body .profile-teaser-card{
  margin:0;
  box-shadow:none;
}
.profile-edit-bubble{
  display:grid;
  place-items:center;
  width:54px;
  height:54px;
  border-radius:50%;
  background:var(--theme-primary);
  color:#fff;
  font-size:13px;
  font-weight:1000;
  box-shadow:0 12px 22px rgba(11,96,79,.16);
}
.profile-color-preview{
  display:flex;
  align-items:center;
  gap:0;
  padding:5px;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--theme-line);
  box-shadow:0 8px 18px rgba(11,96,79,.08);
}
.profile-color-preview i,
.profile-color-preview b{
  display:block;
  width:28px;
  height:28px;
  border-radius:50%;
  border:2px solid #fff;
}
.profile-color-preview i{
  background:var(--theme-primary);
}
.profile-color-preview b{
  margin-left:-5px;
  background:var(--theme-accent);
}
.profile-section-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}
.profile-section-head h3,
.customization-card summary{
  margin:0 0 5px;
  color:var(--theme-text);
  font-family:Inter,ui-sans-serif,system-ui,sans-serif;
  font-size:22px;
  font-weight:1000;
}
.profile-section-head p{
  margin:0;
}
.profile-readonly-details{
  display:grid;
  gap:0;
  border:1px solid var(--theme-line);
  border-radius:20px;
  background:rgba(255,253,248,.72);
  overflow:hidden;
}
.profile-readonly-details div{
  display:grid;
  grid-template-columns:minmax(92px,.75fr) minmax(0,1.25fr);
  gap:12px;
  align-items:center;
  padding:13px 14px;
  border-bottom:1px solid rgba(234,223,206,.72);
}
.profile-readonly-details div:last-child{
  border-bottom:0;
}
.profile-readonly-details span{
  color:var(--theme-text);
  font-size:13px;
  font-weight:1000;
}
.profile-readonly-details strong{
  min-width:0;
  color:var(--theme-primary);
  font-size:14px;
  font-weight:1000;
  word-break:break-word;
}
.profile-edit-form{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.profile-edit-form-hidden{
  display:none;
}
.profile-accordion-item.is-editing .profile-readonly-details{
  display:none;
}
.profile-accordion-item.is-editing .profile-edit-form-hidden{
  display:grid;
}
.profile-edit-form label,
.profile-password-form,
.custom-select-label,
.custom-color-grid label{
  display:grid;
  gap:7px;
}
.profile-edit-form label span,
.custom-select-label span,
.custom-color-grid label span{
  color:var(--theme-muted);
  font-size:11px;
  font-weight:1000;
  text-transform:uppercase;
}
.profile-edit-form textarea{
  min-height:88px;
}
.profile-edit-form button,
.profile-edit-form .message{
  grid-column:1/-1;
}
.profile-edit-form [disabled]{
  opacity:.58;
  background:#f7f2e8;
}
.profile-password-form{
  gap:11px;
}
.customization-card details{
  display:grid;
  gap:12px;
}
.customization-card summary{
  cursor:pointer;
  list-style:none;
}
.customization-card summary::-webkit-details-marker{
  display:none;
}
.customization-body{
  display:grid;
  gap:14px;
}
.custom-note{
  margin:0;
  border:1px solid var(--theme-line);
  border-radius:16px;
  background:var(--theme-soft-primary);
  color:var(--theme-primary);
  padding:12px;
  font-size:13px;
  font-weight:850;
}
.theme-presets{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.theme-preset{
  display:grid;
  grid-template-columns:28px 28px minmax(0,1fr);
  align-items:center;
  gap:8px;
  border:1px solid var(--theme-line);
  border-radius:18px;
  background:#fffdf8;
  color:var(--theme-text);
  padding:12px;
  text-align:left;
  font-size:13px;
  font-weight:950;
}
.theme-preset span{
  width:28px;
  height:28px;
  border-radius:50%;
  border:1px solid rgba(0,0,0,.08);
}
.custom-color-grid{
  display:grid;
  grid-template-columns:1fr 1fr auto;
  align-items:end;
  gap:10px;
}
.custom-color-grid input{
  min-height:46px;
  padding:5px;
}
.profile-request-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.profile-request-grid button{
  border:1px solid var(--theme-line);
  border-radius:18px;
  background:#fffdf8;
  color:var(--theme-primary);
  padding:14px;
  text-align:left;
  font-weight:1000;
}
.profile-teaser-card{
  position:relative;
  overflow:hidden;
  border:1px solid rgba(156,200,255,.42);
  border-radius:28px;
  background:
    radial-gradient(circle at 90% 18%,rgba(156,200,255,.28),transparent 30%),
    linear-gradient(135deg,rgba(17,24,39,.96),rgba(20,83,98,.92));
  color:#fff;
  padding:22px;
  box-shadow:0 18px 40px rgba(17,24,39,.16);
}
.profile-teaser-card span{
  display:inline-grid;
  place-items:center;
  width:42px;
  height:42px;
  border-radius:16px;
  background:rgba(255,255,255,.14);
}
.profile-teaser-card h3{
  margin:14px 0 8px;
  color:#fff;
  font-size:24px;
}
.profile-teaser-card p{
  margin:0;
  color:rgba(255,255,255,.78);
  line-height:1.55;
  font-weight:800;
}
.home-board{
  position:relative;
  overflow:hidden;
  display:grid;
  gap:12px;
  margin-bottom:18px;
  padding:24px 22px 20px;
  border:1px solid var(--theme-line);
  border-radius:30px;
  background:
    radial-gradient(circle at 92% 14%,rgba(221,176,36,.18),transparent 28%),
    linear-gradient(135deg,rgba(255,255,255,.96),rgba(255,253,246,.9));
}
.home-board:after{
  content:"";
  position:absolute;
  right:-42px;
  bottom:-52px;
  width:150px;
  height:150px;
  border-radius:50%;
  background:rgba(11,96,79,.07);
}
.home-board-copy,.home-board blockquote,.student-selector{position:relative;z-index:1}
.home-board h1{
  max-width:none;
  margin:8px 0 6px;
  font-size:clamp(34px,7.5vw,58px);
  white-space:nowrap;
}
.home-board .greeting-name{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:9px;
  margin:0;
  color:var(--theme-primary);
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(21px,4.4vw,30px);
  font-style:italic;
  font-weight:900;
  line-height:1.1;
}
.home-board .greeting-name strong{
  display:inline-flex;
  padding:7px 11px;
  border-radius:999px;
  background:var(--theme-soft-primary);
  color:#31584f;
  font-family:Inter,ui-sans-serif,system-ui,sans-serif;
  font-size:12px;
  font-style:normal;
  font-weight:1000;
}
.home-board blockquote{
  max-width:none;
  margin:0;
  padding:12px 15px;
  border-left:4px solid var(--theme-accent);
  border-radius:18px;
  background:rgba(255,255,255,.82);
  color:var(--theme-text);
  font-size:14px;
  font-weight:850;
  line-height:1.35;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.student-selector{
  justify-self:start;
  display:grid;
  gap:6px;
  min-width:min(100%,320px);
  color:var(--theme-muted);
  font-size:11px;
  font-weight:1000;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.student-selector select{
  width:100%;
  border:1px solid var(--theme-line);
  border-radius:16px;
  background:var(--theme-surface);
  color:var(--theme-text);
  padding:12px 14px;
  font-size:15px;
  font-weight:900;
}
.next-class-card{
  position:relative;
  overflow:hidden;
  display:grid;
  gap:16px;
  margin-bottom:18px;
  padding:24px;
  border-radius:28px;
  background:var(--theme-primary-card-gradient);
  color:#fff;
}
.next-class-card:after{
  content:"";
  position:absolute;
  right:-35px;
  bottom:-58px;
  width:175px;
  height:175px;
  border-radius:50%;
  background:rgba(255,255,255,.12);
}
.next-class-card>*{position:relative;z-index:1}
.next-class-main h2{
  margin:16px 0 6px;
  color:#fff;
  font-size:clamp(34px,7vw,50px);
}
.next-class-main p{
  margin:0;
  color:rgba(255,255,255,.78);
  font-size:19px;
  font-weight:900;
}
.next-class-details{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.next-class-details div{
  min-height:66px;
  padding:13px 15px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:16px;
  background:rgba(255,255,255,.15);
}
.next-class-details small{
  display:block;
  margin-bottom:5px;
  color:rgba(255,255,255,.72);
  font-size:11px;
  font-weight:1000;
  text-transform:uppercase;
}
.next-class-details strong{
  color:#fff;
  font-size:18px;
  line-height:1.15;
}
.next-class-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}
.next-class-actions .primary-btn{
  width:auto;
  min-height:44px;
  padding:0 20px;
  background:#fff;
  color:var(--theme-primary);
}
.zoom-chip.wide{
  width:auto;
  height:44px;
  padding:0 16px;
  gap:7px;
  text-decoration:none;
}
.home-zoom-btn{
  min-height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border-radius:999px;
  background:#2f8fff;
  color:#fff;
  padding:0 18px;
  font-weight:1000;
  text-decoration:none;
  box-shadow:0 10px 22px rgba(47,143,255,.26);
}
.home-zoom-btn span{
  width:22px;
  height:22px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#fff;
  color:#2f8fff;
  font-size:13px;
  line-height:1;
}
.home-zoom-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 26px rgba(47,143,255,.34);
}
.empty-next{
  grid-template-columns:1fr auto;
  align-items:center;
}
.home-actions{
  margin-bottom:18px;
}
.section-title-row h2{
  margin:5px 0 14px;
  font-family:Inter,ui-sans-serif,system-ui,sans-serif;
  font-size:28px;
  line-height:1.1;
}
.home-action-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.home-action-card{
  min-height:134px;
  display:grid;
  align-content:start;
  gap:8px;
  border:1px solid var(--theme-line);
  border-radius:22px;
  background:rgba(255,255,255,.9);
  color:var(--theme-text);
  padding:18px;
  text-align:left;
  box-shadow:0 16px 34px rgba(11,96,79,.08);
}
.home-action-card .action-icon{
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  border-radius:16px;
  background:linear-gradient(135deg,var(--theme-soft-accent),var(--theme-soft-primary));
  color:var(--theme-primary);
  font-size:20px;
  font-weight:1000;
}
.home-action-card strong{
  color:var(--theme-text);
  font-size:17px;
  line-height:1.15;
}
.home-action-card small{
  color:var(--theme-muted);
  font-size:13px;
  font-weight:800;
  line-height:1.35;
}
.home-easy-access-card{
  position:relative;
  overflow:hidden;
  margin-bottom:18px;
  padding:20px;
  border:1px solid var(--theme-line);
  border-radius:26px;
  background:
    radial-gradient(circle at 92% 8%,rgba(255,172,70,.34),transparent 30%),
    linear-gradient(135deg,rgba(255,248,229,.76),rgba(255,255,255,.54));
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  box-shadow:
    0 2px 0 rgba(255,255,255,.95) inset,
    0 18px 38px rgba(11,96,79,.14),
    0 5px 14px rgba(221,176,36,.10);
  transform:translateY(-2px);
}
.home-easy-access-card:before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  background:linear-gradient(180deg,rgba(255,255,255,.74),rgba(255,255,255,0) 46%);
  pointer-events:none;
}
.home-easy-access-card>*{
  position:relative;
  z-index:1;
}
.section-pill{
  display:inline-flex;
  align-items:center;
  min-height:27px;
  border-radius:999px;
  background:var(--theme-soft-primary);
  color:var(--theme-primary);
  padding:6px 11px;
  font-size:11px;
  font-weight:1000;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.home-easy-access-card h2{
  margin:12px 0 6px;
  font-family:Inter,ui-sans-serif,system-ui,sans-serif;
  font-size:25px;
  line-height:1.1;
}
.easy-action-row{
  display:grid;
  grid-template-columns:repeat(3,minmax(95px,1fr));
  gap:10px;
  overflow-x:auto;
  padding-bottom:2px;
  scrollbar-width:none;
}
.easy-action-row::-webkit-scrollbar{display:none}
.easy-action-tile{
  min-width:95px;
  min-height:106px;
  display:grid;
  justify-items:center;
  align-content:center;
  gap:7px;
  border:1px solid var(--theme-line);
  border-radius:19px;
  background:#fffdf8;
  color:var(--theme-text);
  padding:12px 7px;
  text-align:center;
  box-shadow:0 8px 18px rgba(11,96,79,.05);
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.easy-action-tile:hover{
  transform:translateY(-3px) scale(1.015);
  box-shadow:0 16px 30px rgba(11,96,79,.13);
}
.easy-action-icon{
  width:50px;
  height:50px;
  display:grid;
  place-items:center;
  border-radius:15px;
  background:var(--theme-soft-primary);
  color:var(--theme-primary);
  font-size:23px;
  font-weight:1000;
}
.easy-action-tile strong{
  color:var(--theme-text);
  font-size:14px;
  line-height:1.1;
}
.easy-action-tile small{
  color:var(--theme-muted);
  font-size:11px;
  font-weight:900;
}
.easy-action-recordings,
.easy-action-messages{
  background:var(--theme-primary-card-gradient);
  border-color:var(--theme-primary);
}
.easy-action-recordings .easy-action-icon,
.easy-action-messages .easy-action-icon{
  background:rgba(255,255,255,.16);
  color:#fff;
}
.easy-action-recordings strong,
.easy-action-recordings small,
.easy-action-messages strong,
.easy-action-messages small{
  color:#fff;
}
.easy-action-payments{
  border:3px solid var(--theme-accent);
  box-shadow:0 14px 30px color-mix(in srgb,var(--theme-accent) 26%,transparent);
}
.easy-action-payments .easy-action-icon{
  background:var(--theme-soft-accent);
  color:var(--theme-primary);
}
.announcement-preview.card{
  padding:22px;
}
.announcement-preview .card-head h2{
  margin-top:4px;
  font-family:Inter,ui-sans-serif,system-ui,sans-serif;
  font-size:28px;
  line-height:1.1;
}
.compact-list{
  gap:10px;
}
.compact-list .item-card{
  padding:16px 18px;
  border-radius:20px;
}
.compact-list .item-card h3{
  margin:9px 0 6px;
  font-family:Inter,ui-sans-serif,system-ui,sans-serif;
  font-size:18px;
}
.compact-list .item-card p{
  margin:0;
}
.recordings-page{
  display:grid;
  gap:16px;
}
.recordings-head{
  padding:4px 4px 0;
}
.recordings-head h2{
  margin:6px 0 10px;
}
.recordings-head .muted{
  max-width:620px;
  margin:0;
  font-size:17px;
  line-height:1.55;
}
.recording-player,
.recording-player-modal{
  overflow:hidden;
  display:grid;
  grid-template-columns:minmax(0,1.45fr) minmax(240px,.75fr);
  border:1px solid var(--theme-line);
  border-radius:28px;
  background:var(--theme-primary-card-gradient);
  color:#fff;
}
.modal-card:has(.recording-player-modal){
  width:min(1120px,calc(100vw - 22px));
  max-height:calc(100vh - 22px);
  overflow:auto;
  padding:14px;
  border-radius:30px;
}
.modal-card:has(.recording-player-modal) .modal-head{
  padding:6px 6px 12px;
}
.modal-card:has(.recording-player-modal) .modal-head h2{
  font-family:Inter,ui-sans-serif,system-ui,sans-serif;
  font-size:22px;
  line-height:1.12;
}
.recording-player-frame{
  min-height:min(68vh,620px);
  background:#062d27;
}
.recording-player-frame iframe{
  display:block;
  width:100%;
  height:100%;
  min-height:min(68vh,620px);
  border:0;
  background:#062d27;
}
.recording-player-info{
  position:relative;
  overflow:hidden;
  display:grid;
  align-content:center;
  gap:12px;
  padding:26px;
}
.recording-player-info:after{
  content:"";
  position:absolute;
  right:-46px;
  bottom:-64px;
  width:170px;
  height:170px;
  border-radius:50%;
  background:rgba(255,255,255,.12);
}
.recording-player-info>*{position:relative;z-index:1}
.recording-player-info .eyebrow{
  color:#f4d257;
}
.recording-player-info h2{
  margin:0;
  color:#fff;
  font-family:Inter,ui-sans-serif,system-ui,sans-serif;
  font-size:28px;
  line-height:1.08;
}
.recording-player-info p{
  margin:0;
  color:rgba(255,255,255,.78);
  font-weight:850;
}
.recording-player-actions .primary-btn{
  width:auto;
  display:inline-flex;
  min-height:44px;
  padding:0 18px;
  background:#fff;
  color:var(--theme-primary);
  text-decoration:none;
}
.empty-player{
  min-height:220px;
  align-items:center;
  padding:28px;
}
.recordings-summary{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.recordings-summary span{
  border:1px solid var(--theme-line);
  border-radius:999px;
  background:rgba(255,255,255,.78);
  color:var(--theme-muted);
  padding:9px 13px;
  font-size:12px;
  font-weight:1000;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.recording-batch{
  overflow:hidden;
  border:1px solid var(--theme-line);
  border-radius:26px;
  background:rgba(255,255,255,.88);
}
.recording-batch-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:18px 20px 14px;
  border-bottom:1px solid rgba(234,223,206,.7);
}
.recording-batch-head h3{
  margin:10px 0 0;
  font-family:Inter,ui-sans-serif,system-ui,sans-serif;
  font-size:22px;
  line-height:1.15;
}
.recording-batch-head small{
  color:var(--theme-muted);
  font-weight:950;
  white-space:nowrap;
}
.recording-list{
  display:grid;
}
.recording-row{
  display:grid;
  grid-template-columns:58px minmax(0,1fr);
  align-items:start;
  gap:14px;
  margin:12px;
  padding:18px;
  border:1px solid var(--theme-line);
  border-left:5px solid var(--theme-primary);
  border-radius:22px;
  background:rgba(255,255,255,.92);
  box-shadow:0 12px 28px rgba(11,96,79,.05);
}
.recording-row:first-child{
  border-top:1px solid var(--theme-line);
}
.recording-play-icon{
  width:54px;
  height:54px;
  display:grid;
  place-items:center;
  border:0;
  border-radius:18px;
  background:var(--theme-soft-primary);
  color:var(--theme-primary);
  font-size:24px;
  font-weight:1000;
}
.recording-date span,
.recording-main small{
  display:block;
  color:var(--theme-muted);
  font-size:12px;
  font-weight:950;
}
.recording-date strong{
  display:block;
  margin-top:5px;
  color:var(--theme-text);
  font-size:16px;
  line-height:1.1;
}
.recording-title{
  display:block;
  margin:9px 0 3px;
  border:0;
  background:transparent;
  color:var(--theme-text);
  padding:0;
  text-align:left;
  font-size:19px;
  font-weight:1000;
  line-height:1.18;
}
.recording-title:hover{
  color:var(--theme-primary);
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:4px;
}
.recording-main small{
  margin-top:5px;
}
.recording-meta-row{
  display:flex;
  flex-wrap:wrap;
  gap:16px;
  margin-top:12px;
}
.recording-meta-row strong{
  color:var(--theme-primary);
  font-size:13px;
}
.recording-docs{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:10px;
}
.recording-docs a,
.recording-docs span{
  border:1px solid var(--theme-line);
  border-radius:999px;
  background:var(--theme-soft-accent);
  color:#795a00;
  padding:7px 10px;
  font-size:12px;
  font-weight:950;
  text-decoration:none;
}
.recording-docs span{
  background:#f7f2e8;
  color:var(--theme-muted);
}
.direct-link{
  text-decoration:none;
  white-space:nowrap;
}
.recording-actions{
  grid-column:1/-1;
  display:flex;
  flex-wrap:wrap;
  justify-content:stretch;
  gap:8px;
}
.play-recording{
  background:var(--theme-primary);
  color:#fff;
  flex:1 1 220px;
  min-height:42px;
}
.recording-actions .direct-link{
  min-height:42px;
}
.payments-page{
  display:grid;
  gap:16px;
}
.payments-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:14px;
  padding:2px 4px 0;
}
.payments-head h2{
  margin:6px 0 0;
}
.payment-student-switcher{
  display:grid;
  gap:6px;
  min-width:220px;
  color:var(--theme-muted);
  font-size:11px;
  font-weight:1000;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.payment-student-switcher select{
  border:1px solid var(--theme-line);
  border-radius:16px;
  background:var(--theme-surface);
  color:var(--theme-text);
  padding:12px 14px;
  font-size:14px;
  font-weight:900;
}
.payment-hero{
  position:relative;
  overflow:hidden;
  display:grid;
  gap:16px;
  margin-bottom:16px;
  padding:24px;
  border-radius:28px;
  background:var(--theme-primary-card-gradient);
  color:#fff;
}
.payment-hero:after{
  content:"";
  position:absolute;
  right:-46px;
  bottom:-62px;
  width:160px;
  height:160px;
  border-radius:50%;
  background:rgba(255,255,255,.12);
}
.payment-hero>*{position:relative;z-index:1}
.payment-hero h2{
  margin:16px 0 8px;
  color:#fff;
  font-family:Inter,ui-sans-serif,system-ui,sans-serif;
  font-size:34px;
  line-height:1;
}
.payment-hero p{
  margin:0;
  color:rgba(255,255,255,.82);
  font-size:16px;
  font-weight:850;
}
.payment-hero .primary-btn{
  background:#fff;
  color:var(--theme-primary);
}
.payment-overview{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-bottom:16px;
}
.payment-overview div{
  min-height:76px;
  padding:14px 16px;
  border:1px solid var(--theme-line);
  border-radius:18px;
  background:rgba(247,242,232,.82);
}
.payment-overview small,
.payment-detail-card small{
  display:block;
  color:var(--theme-muted);
  font-size:11px;
  font-weight:1000;
  text-transform:uppercase;
}
.payment-overview strong{
  display:block;
  margin-top:7px;
  color:var(--theme-text);
  font-size:24px;
  line-height:1;
}
.payment-section{
  display:grid;
  gap:12px;
  margin-top:18px;
}
.payment-section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding-inline:2px;
}
.payment-section-head h3{
  margin:0 0 5px;
  font-family:Inter,ui-sans-serif,system-ui,sans-serif;
  font-size:23px;
}
.payment-section-head p{
  margin:0;
}
.payment-due-list,
.payment-receipt-list,
.payment-family-list{
  display:grid;
  gap:12px;
}
.payment-student-payment-group{
  display:grid;
  gap:10px;
  border:1px solid var(--theme-line);
  border-radius:24px;
  background:
    radial-gradient(circle at 96% 0,color-mix(in srgb,var(--theme-accent) 8%,transparent),transparent 34%),
    rgba(255,255,255,.68);
  padding:12px;
  box-shadow:0 10px 24px rgba(11,96,79,.045);
}
.payment-due-accordion{
  gap:0;
  overflow:hidden;
}
.payment-student-group-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:4px 2px 2px;
}
.payment-due-accordion-head{
  width:100%;
  border:0;
  background:transparent;
  text-align:left;
  cursor:pointer;
  padding:6px 4px;
}
.payment-due-accordion-head:hover{
  transform:translateY(-1px);
}
.payment-due-accordion-side{
  display:flex;
  align-items:center;
  gap:10px;
}
.payment-due-accordion-side i{
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:var(--theme-soft-primary);
  color:var(--theme-primary);
  font-style:normal;
  font-size:14px;
  font-weight:1000;
}
.payment-due-accordion-body{
  display:none;
  margin-top:10px;
}
.payment-due-accordion.open .payment-due-accordion-body{
  display:grid;
}
.payment-student-group-head div{
  display:grid;
  gap:6px;
}
.payment-student-group-head strong{
  color:var(--theme-text);
  font-size:15px;
  font-weight:1000;
}
.payment-student-group-head em{
  color:var(--theme-primary);
  font-style:normal;
  font-size:18px;
  font-weight:1000;
  white-space:nowrap;
}
.payment-student-mini{
  display:inline-flex;
  width:fit-content;
  border-radius:999px;
  background:var(--theme-soft-primary);
  color:var(--theme-primary);
  padding:6px 10px;
  font-size:11px;
  font-weight:1000;
  line-height:1.1;
}
.payment-due-card,
.payment-receipt-card{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:14px;
  align-items:start;
  padding:18px;
  border:1px solid var(--theme-line);
  border-left:5px solid var(--theme-accent);
  border-radius:22px;
  background:rgba(255,255,255,.94);
  box-shadow:0 8px 18px rgba(11,96,79,.035);
}
.payment-due-card h3,
.payment-receipt-card h3{
  margin:12px 0 8px;
  font-family:Inter,ui-sans-serif,system-ui,sans-serif;
  font-size:22px;
}
.payment-due-card>strong{
  color:var(--theme-primary);
  font-size:20px;
  white-space:nowrap;
}
.payment-due-actions{
  grid-column:1/-1;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(120px,.45fr);
  gap:10px;
}
.payment-receipt-card{
  border-left-color:var(--theme-line);
}
.payment-receipt-card .secondary-btn{
  align-self:center;
  white-space:nowrap;
}
.payment-receipt-card .muted .payment-student-mini{
  margin-bottom:5px;
}
.payment-submit-form select,
.payment-submit-form input,
.payment-submit-form textarea{
  font-weight:850;
}
.payment-month-list{
  display:grid;
  gap:9px;
}
.payment-month-option{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px;
  border:1px solid var(--theme-line);
  border-radius:16px;
  background:#fffdf8;
}
.payment-month-option input{
  width:18px;
  height:18px;
}
.payment-month-option span{
  display:grid;
  gap:3px;
}
.payment-month-option strong{
  color:var(--theme-text);
}
.payment-month-option small{
  color:var(--theme-muted);
  font-weight:900;
}
.payment-detail-card{
  display:grid;
  gap:12px;
}
.payment-detail-card div{
  padding:14px;
  border:1px solid var(--theme-line);
  border-radius:16px;
  background:#fffdf8;
}
.payment-detail-card strong{
  display:block;
  margin-top:5px;
  color:var(--theme-text);
}

/* Simplified recordings accordion */
.recording-batch-card{
  overflow:hidden;
  border:1px solid var(--theme-line);
  border-radius:24px;
  background:rgba(255,255,255,.92);
  box-shadow:0 10px 26px rgba(11,96,79,.05);
}
.recording-batch-card+.recording-batch-card{
  margin-top:12px;
}
.recording-batch-card .recording-batch-head{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  border:0;
  background:transparent;
  padding:18px;
  text-align:left;
}
.recording-batch-card .recording-batch-head h3{
  margin:10px 0 0;
  color:var(--theme-text);
  font-family:Inter,ui-sans-serif,system-ui,sans-serif;
  font-size:20px;
  line-height:1.15;
}
.batch-pill{
  display:inline-flex;
  align-items:center;
  min-height:25px;
  border-radius:999px;
  background:var(--theme-soft-accent);
  color:#7b5900;
  padding:5px 10px;
  font-size:11px;
  font-weight:1000;
}
.recording-batch-meta{
  display:flex;
  align-items:center;
  gap:9px;
  color:var(--theme-muted);
  font-size:12px;
  white-space:nowrap;
}
.recording-batch-meta strong{
  color:var(--theme-primary);
}
.recording-batch-meta .chevron{
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  border-radius:50%;
  background:var(--theme-soft-primary);
  color:var(--theme-primary);
  font-size:18px;
  transition:transform .18s ease;
}
.recording-batch-card.is-open .chevron{
  transform:rotate(180deg);
}
.recording-batch-body{
  border-top:1px solid rgba(234,223,206,.75);
}
.recording-batch-body .recording-row{
  display:grid;
  grid-template-columns:38px minmax(0,1fr) auto;
  align-items:center;
  gap:11px;
  margin:0;
  padding:13px 18px;
  border:0;
  border-top:1px solid rgba(234,223,206,.58);
  border-left:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.recording-batch-body .recording-row:first-child{
  border-top:0;
}
.recording-play-btn{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border:0;
  border-radius:13px;
  background:var(--theme-soft-primary);
  color:var(--theme-primary);
  font-size:16px;
  font-weight:1000;
}
.recording-row-main{
  min-width:0;
}
.recording-batch-body .recording-title{
  display:block;
  width:100%;
  margin:0;
  border:0;
  background:transparent;
  color:var(--theme-text);
  padding:0;
  text-align:left;
  font-size:15px;
  font-weight:1000;
  line-height:1.25;
}
.recording-batch-body .recording-title:hover{
  color:var(--theme-primary);
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:3px;
}
.recording-row-main small{
  display:block;
  margin-top:4px;
  color:var(--theme-muted);
  font-size:12px;
  font-weight:850;
}
.recording-date-highlight{
  display:block;
  width:fit-content;
  margin-top:7px;
  color:var(--theme-primary);
  font-size:16px;
  font-weight:1000;
  line-height:1.15;
}
.recording-resources{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:7px;
}
.recording-resources a{
  color:var(--theme-primary);
  font-size:12px;
  font-weight:950;
  text-decoration:underline;
  text-underline-offset:3px;
}
.recording-direct-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:32px;
  border:1px solid var(--theme-line);
  border-radius:999px;
  background:#fffdf8;
  color:var(--theme-primary);
  padding:0 12px;
  font-size:12px;
  font-weight:1000;
  text-decoration:none;
  white-space:nowrap;
}
.recording-limit-note{
  margin:0;
  padding:10px 18px 14px 67px;
  border-top:1px solid rgba(234,223,206,.58);
  color:var(--theme-muted);
  font-size:12px;
  font-weight:900;
}
@media(max-width:600px){
  .app-main{padding:18px 14px 0}
  .page-heading{padding:22px 72px 20px 18px;border-radius:28px}
  .page-heading h1{font-size:43px}
  .greeting-name{font-size:24px}
  .lead{font-size:15px;padding:12px 14px}
  .notification{top:max(12px,calc(env(safe-area-inset-top) + 12px))!important;right:max(12px,calc(env(safe-area-inset-right) + 12px))!important}
  .card{padding:18px}
  .hero-card{padding:27px 20px 30px}
  .hero-card h2{font-size:38px;margin-top:25px}
  .hero-card>p{font-size:18px;margin-bottom:16px}
  .hero-card .stat-box{min-height:64px;padding:12px 14px}
  .hero-card .stat-box strong{font-size:17px;white-space:nowrap}
  .live-stat-grid{grid-template-columns:1fr 1fr;gap:12px}
  .hero-top{gap:10px}
  .hero-top .ghost-btn{max-width:184px}
  .quick-row{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
  .quick-btn{min-height:96px;padding-inline:3px}
  .quick-icon{width:39px;height:39px;font-size:20px}
  .quick-btn span:last-child{font-size:11px}
  .course-card{padding:26px 22px 22px;min-height:182px}
  .classes-summary{gap:8px}
  .classes-summary div{min-height:70px;padding:12px 10px}
  .classes-summary small{font-size:10px}
  .classes-summary strong{font-size:24px}
  .course-card-top{align-items:flex-start}
  .teacher-tools{max-width:58%}
  .teacher-pill,.course-zoom,.course-level{font-size:11px;padding:8px 12px}
  .course-title{font-size:34px;margin-top:21px}
  .course-times{font-size:14px}
  .other-courses-card{padding:22px 18px 20px}
  .other-courses-toggle{grid-template-columns:minmax(0,1fr) auto}
  .other-courses-toggle strong{font-size:23px}
  .other-courses-toggle small{font-size:13px}
  .other-course-preview-grid{gap:10px}
  .other-course-preview{min-height:88px;padding:11px;border-radius:16px}
  .other-course-preview span{width:31px;height:31px}
  .other-course-preview strong{font-size:14px}
  .other-course-preview small{font-size:10px}
  .course-catalog-grid{grid-template-columns:1fr}
  .catalog-course-card{padding:13px;border-radius:18px}
  .catalog-course-head{grid-template-columns:39px minmax(0,1fr);gap:10px}
  .catalog-course-icon{width:38px;height:38px}
  .catalog-course-head h3{font-size:18px}
  .catalog-course-head p{font-size:12px}
  .catalog-course-who{border-radius:18px;font-size:12px}
  .catalog-course-actions button,.catalog-course-actions a{min-height:42px}
  .progress-card{padding:22px 18px}
  .progress-card h2{font-size:28px}
  .progress-card .muted{font-size:16px}
  .progress-card .progress-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .progress-card .stat-box{min-height:74px;padding:12px 10px}
  .progress-card .stat-box small{font-size:10px}
  .progress-card .stat-box strong{font-size:27px}
  .story-btn{flex-basis:78px;font-size:11px}
  .story-btn span{width:72px;height:72px}
  .story-btn span:before{width:51px;height:51px}
  .feed-text-card{min-height:250px;padding:34px 28px;font-size:21px}
  .feed-compose-fab{right:18px;bottom:96px;width:56px;height:56px}
  .bottom-nav{min-height:78px}
  .nav-btn{min-height:62px;padding:7px 4px}
  .nav-btn span:last-child{font-size:11px}
  .home-board{padding:22px 18px 18px;border-radius:28px}
  .home-board h1{font-size:clamp(31px,8.6vw,42px)}
  .home-board blockquote{font-size:12px}
  .next-class-card{padding:22px 20px;border-radius:27px}
  .next-class-main h2{font-size:36px}
  .next-class-main p{font-size:17px}
  .next-class-details{grid-template-columns:1fr 1fr;gap:10px}
  .next-class-details div{padding:12px}
  .next-class-details strong{font-size:15px}
  .home-action-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .home-action-card{min-height:124px;padding:12px 9px;border-radius:18px}
  .home-action-card .action-icon{width:39px;height:39px;border-radius:14px;font-size:17px}
  .home-action-card strong{font-size:12px}
  .home-action-card small{font-size:10px;line-height:1.25}
  .home-easy-access-card{padding:17px;border-radius:24px}
  .home-easy-access-card h2{font-size:22px}
  .easy-action-row{grid-template-columns:repeat(3,minmax(94px,1fr));gap:8px}
  .easy-action-tile{min-height:98px;padding:10px 5px;border-radius:17px}
  .easy-action-icon{width:46px;height:46px;border-radius:15px;font-size:21px}
  .easy-action-tile strong{font-size:12px}
  .easy-action-tile small{font-size:10px}
  .recording-player,.recording-player-modal{grid-template-columns:1fr}
  .recording-player-frame,.recording-player-frame iframe{min-height:56vh}
  .recording-player-info{padding:21px}
  .recording-row{grid-template-columns:50px minmax(0,1fr);align-items:start;gap:11px;margin:10px;padding:15px}
  .recording-play-icon{width:48px;height:48px;border-radius:16px;font-size:21px}
  .recording-date{display:flex;justify-content:space-between;gap:12px}
  .recording-date strong{margin-top:0}
  .recording-actions{justify-content:flex-start}
  .direct-link{justify-self:start}
  .recording-batch-card .recording-batch-head{align-items:flex-start;padding:16px}
  .recording-batch-card .recording-batch-head h3{font-size:17px}
  .recording-batch-meta{display:grid;justify-items:end;gap:6px}
  .recording-batch-body .recording-row{grid-template-columns:36px minmax(0,1fr);padding:13px 15px}
  .recording-direct-link{grid-column:2;justify-self:start;margin-top:2px}
  .recording-limit-note{padding-left:61px}
  .payments-head{display:grid;align-items:start}
  .payment-student-switcher{min-width:0;width:100%}
  .payment-hero{padding:21px 18px;border-radius:26px}
  .payment-hero h2{font-size:31px}
  .payment-overview{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .payment-overview div{min-height:68px;padding:11px 9px}
  .payment-overview small{font-size:9px}
  .payment-overview strong{font-size:18px}
  .payment-section-head{align-items:flex-start}
  .payment-section-head .mini-btn{white-space:nowrap}
  .payment-due-card,.payment-receipt-card{grid-template-columns:1fr;padding:16px}
  .payment-due-card>strong{font-size:21px}
  .payment-student-group-head{align-items:flex-start}
  .payment-student-group-head em{font-size:16px}
  .payment-due-actions{grid-template-columns:1fr 1fr}
  .profile-hero-card{padding:19px;border-radius:27px;align-items:flex-start}
  .profile-avatar{width:58px;height:58px;border-radius:20px;font-size:21px}
  .profile-hero-card h2{font-size:24px}
  .profile-section-card{padding:16px;border-radius:23px}
  .profile-accordion-head{padding:15px 16px;font-size:16px}
  .profile-accordion-body{padding:14px 15px 16px}
  .profile-edit-form,.theme-presets,.profile-request-grid{grid-template-columns:1fr}
  .custom-color-grid{grid-template-columns:1fr 1fr}
  .custom-color-grid .mini-btn{grid-column:1/-1}
  .calendar-day{min-height:92px}
  .stat-grid,.profile-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .progress-card .progress-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
}
/* =========================================================
   QAJ PROFILE ACCORDION ANIMATION PATCH
   Paste at bottom of styles.css / qaj-refresh.css
========================================================= */

.profile-accordion {
  display: grid;
  gap: 12px;
}

.profile-accordion-item {
  background: var(--card, #ffffff);
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  transition:
    border-color 240ms ease,
    box-shadow 240ms ease,
    transform 240ms ease;
}

.profile-accordion-item.open {
  border-color: color-mix(in srgb, var(--accent, #9cc8ff) 55%, transparent);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1);
}

.profile-accordion-head {
  width: 100%;
  border: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.92),
    rgba(255, 255, 255, 0.72)
  );
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  cursor: pointer;
}

.profile-accordion-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.profile-accordion-copy strong {
  font-size: 16px;
  color: var(--text, #111827);
}

.profile-accordion-copy small {
  color: var(--muted, #667085);
  line-height: 1.35;
}

.profile-accordion-side {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.profile-accordion-chevron {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  display: grid;
  place-items: center;
  transition:
    transform 260ms ease,
    background 260ms ease;
}

.profile-accordion-chevron::before {
  content: "⌄";
  font-size: 18px;
  line-height: 1;
  color: var(--primary, #111827);
  transform: translateY(-1px);
}

.profile-accordion-item.open .profile-accordion-chevron {
  transform: rotate(180deg);
  background: color-mix(in srgb, var(--accent, #9cc8ff) 28%, white);
}

/* The actual animation */
.profile-accordion-body {
  display: block !important;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  padding: 0 16px;
  pointer-events: none;
  transition:
    max-height 360ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 240ms ease,
    transform 280ms ease,
    padding-top 280ms ease,
    padding-bottom 280ms ease;
}

.profile-accordion-item.open .profile-accordion-body {
  max-height: 1200px;
  opacity: 1;
  transform: translateY(0);
  padding-top: 4px;
  padding-bottom: 16px;
  pointer-events: auto;
}

.profile-accordion-chevron::before {
  content: "v" !important;
}

/* Nice tap effect */
.profile-accordion-head:active {
  transform: scale(0.99);
}

/* Edit bubble polish */
.profile-edit-bubble {
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 800;
  background: color-mix(in srgb, var(--accent, #9cc8ff) 30%, white);
  color: var(--primary, #111827);
}

/* Mobile refinement */
@media (max-width: 520px) {
  .profile-accordion-head {
    padding: 14px;
  }

  .profile-accordion-copy strong {
    font-size: 15px;
  }

  .profile-accordion-copy small {
    font-size: 12px;
  }

  .profile-accordion-chevron {
    width: 30px;
    height: 30px;
  }
}

/* =========================================================
   CLEAN MORE OPTIONS BOTTOM SHEET FIX
   Paste at the VERY BOTTOM of qaj-refresh.css
========================================================= */

/* Backdrop should behave like a bottom sheet container */
.sheet-backdrop {
  position: fixed !important;
  inset: 0 !important;
  z-index: 80 !important;

  display: flex !important;
  align-items: flex-end !important;
  justify-content: center !important;

  padding: 0 10px calc(var(--bottom-nav-height, 82px) + 12px + env(safe-area-inset-bottom)) !important;

  background: rgba(6, 14, 11, 0.34) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;

  overflow: hidden !important;
}

.sheet-backdrop.hidden {
  display: none !important;
}

/* Actual More panel */
.more-sheet {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;

  width: 100% !important;
  max-width: 460px !important;
  max-height: none !important;
  height: auto !important;

  margin: 0 auto !important;
  overflow-y: visible !important;
  overflow-x: hidden !important;

  border-radius: 28px !important;
  border: 1px solid rgba(234, 223, 206, 0.95) !important;

  background:
    radial-gradient(circle at 92% 0%, rgba(221, 176, 36, 0.13), transparent 32%),
    rgba(255, 254, 250, 0.96) !important;

  box-shadow:
    0 24px 60px rgba(6, 14, 11, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;

  padding: 14px !important;

  animation: qajMoreSheetRise 240ms cubic-bezier(0.22, 1, 0.36, 1) !important;
}

/* Smooth bottom opening */
@keyframes qajMoreSheetRise {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Small handle */
.sheet-handle {
  width: 44px !important;
  height: 5px !important;
  border-radius: 999px !important;
  background: rgba(15, 55, 48, 0.18) !important;
  margin: 2px auto 14px !important;
}

/* Header */
.sheet-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin: 0 0 16px !important;
  padding: 0 2px !important;
}

.sheet-head h2 {
  margin: 0 !important;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif !important;
  font-size: 24px !important;
  line-height: 1.1 !important;
  color: var(--theme-text, #103730) !important;
}

.sheet-head .muted {
  margin: 3px 0 0 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  color: var(--theme-muted, #65736d) !important;
}

.sheet-close {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: var(--theme-soft-primary, #e8f5f1) !important;
  color: var(--theme-primary, #0b604f) !important;
  font-size: 22px !important;
  font-weight: 1000 !important;
}

/* More option buttons */
.more-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 9px !important;
  overflow: visible !important;
}

.more-grid button {
  width: 100% !important;
  min-height: 58px !important;

  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) 18px !important;
  align-items: center !important;
  gap: 10px !important;

  border: 1px solid rgba(234, 223, 206, 0.9) !important;
  border-radius: 18px !important;

  background: rgba(255, 255, 255, 0.88) !important;
  color: var(--theme-text, #103730) !important;

  padding: 8px 10px !important;
  text-align: left !important;

  box-shadow: 0 8px 20px rgba(11, 96, 79, 0.045) !important;
}

.more-grid button:after {
  content: "›" !important;
  color: var(--theme-muted, #65736d) !important;
  font-size: 24px !important;
  font-weight: 1000 !important;
  line-height: 1 !important;
}

.more-grid button:active {
  transform: scale(0.985);
}

.more-grid strong {
  display: block !important;
  margin: 0 !important;
  color: var(--theme-text, #103730) !important;
  font-size: 16px !important;
  line-height: 1.15 !important;
  font-weight: 1000 !important;
}

.more-grid small {
  display: block !important;
  margin-top: 3px !important;
  color: var(--theme-muted, #65736d) !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  font-weight: 850 !important;
}

.more-icon {
  width: 40px !important;
  height: 40px !important;
  border-radius: 14px !important;
  background: var(--theme-soft-primary, #e8f5f1) !important;
  color: var(--theme-primary, #0b604f) !important;
  display: grid !important;
  place-items: center !important;
  font-size: 18px !important;
  font-weight: 1000 !important;
}

.more-icon.gold {
  background: var(--theme-soft-accent, #fff4d3) !important;
  color: #8c6a00 !important;
}

/* Logout button */
.more-grid .danger-lite {
  background: rgba(254, 226, 226, 0.9) !important;
  border-color: rgba(248, 113, 113, 0.28) !important;
}

.more-grid .danger-lite strong {
  color: #b42318 !important;
}

.more-grid .danger-lite .more-icon {
  background: rgba(255, 255, 255, 0.68) !important;
  color: #b42318 !important;
}

/* Prevent ugly horizontal scrollbar */
body,
.app-shell,
.app-main,
.sheet-backdrop,
.more-sheet {
  max-width: 100vw !important;
}

/* Mobile refinements */
@media (max-width: 600px) {
  .sheet-backdrop {
    padding-left: 8px !important;
    padding-right: 8px !important;
    padding-bottom: calc(var(--bottom-nav-height, 82px) + 10px + env(safe-area-inset-bottom)) !important;
  }

  .more-sheet {
    max-height: none !important;
    height: auto !important;
    overflow-y: visible !important;
    border-radius: 26px !important;
    padding: 12px !important;
  }

  .more-grid {
    grid-template-columns: 1fr !important;
  }

  .more-grid button {
    min-height: 56px !important;
    border-radius: 18px !important;
  }
}

/* =========================================================
   PAYMENT STUDENT CARD SELECTOR
========================================================= */

.payment-student-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.payment-student-card {
  width: 100%;
  border: 1px solid var(--theme-line, #eadfce);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  padding: 12px;

  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 12px;

  text-align: left;
  color: var(--theme-text, #103730);
  box-shadow: 0 8px 20px rgba(11, 96, 79, 0.04);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.payment-student-card:active {
  transform: scale(0.985);
}

.payment-student-card.selected {
  border-color: var(--theme-primary, #0b604f);
  background:
    radial-gradient(circle at top right, rgba(221, 176, 36, 0.16), transparent 38%),
    rgba(232, 245, 241, 0.92);
  box-shadow: 0 12px 28px rgba(11, 96, 79, 0.12);
}

.payment-student-avatar {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--theme-soft-primary, #e8f5f1);
  color: var(--theme-primary, #0b604f);
  font-weight: 1000;
  letter-spacing: 0.03em;
}

.payment-student-card.selected .payment-student-avatar {
  background: var(--theme-primary, #0b604f);
  color: #fff;
}

.payment-student-card-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.payment-student-card-copy strong {
  font-size: 15px;
  line-height: 1.15;
  font-weight: 1000;
  overflow-wrap: anywhere;
}

.payment-student-card-copy small {
  color: var(--theme-muted, #65736d);
  font-size: 12px;
  font-weight: 850;
}

.payment-student-check {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(15, 55, 48, 0.08);
  color: transparent;
  font-weight: 1000;
}

.payment-student-card.selected .payment-student-check {
  background: var(--theme-accent, #ddb024);
  color: #fff;
}

@media (min-width: 560px) {
  .payment-student-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =========================================================
   LINKED STUDENT / FAMILY ACCOUNT SELECTORS
========================================================= */

.account-choice-panel{
  display:grid;
  gap:15px;
}
.account-choice-grid,
.student-switcher-card-row{
  display:flex;
  gap:10px;
  overflow-x:auto;
  padding:3px 2px 8px;
  scrollbar-width:none;
}
.account-choice-grid::-webkit-scrollbar,
.student-switcher-card-row::-webkit-scrollbar{
  display:none;
}
.account-choice-grid{
  display:grid;
  grid-template-columns:1fr;
  overflow:visible;
}
.account-choice-card,
.student-switch-card{
  min-width:190px;
  border:1px solid var(--theme-line);
  border-radius:20px;
  background:
    radial-gradient(circle at 92% 12%,rgba(221,176,36,.08),transparent 34%),
    rgba(255,255,255,.9);
  color:var(--theme-text);
  display:grid;
  grid-template-columns:46px minmax(0,1fr);
  align-items:center;
  gap:11px;
  padding:12px;
  text-align:left;
  box-shadow:0 10px 24px rgba(11,96,79,.055);
  transition:transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.account-choice-card:hover,
.student-switch-card:hover{
  transform:translateY(-2px);
  box-shadow:0 16px 32px rgba(11,96,79,.1);
}
.account-choice-card.active,
.student-switch-card.active{
  border-color:var(--theme-primary);
  background:
    radial-gradient(circle at 100% 0,color-mix(in srgb,var(--theme-accent) 18%,transparent),transparent 36%),
    var(--theme-soft-primary);
}
.student-switch-avatar{
  width:46px;
  height:46px;
  border-radius:16px;
  display:grid;
  place-items:center;
  background:var(--theme-soft-primary);
  color:var(--theme-primary);
  font-size:14px;
  font-weight:1000;
}
.account-choice-card.active .student-switch-avatar,
.student-switch-card.active .student-switch-avatar{
  background:var(--theme-primary);
  color:#fff;
}
.student-switch-copy{
  min-width:0;
  display:grid;
  gap:3px;
}
.student-switch-copy strong{
  color:var(--theme-text);
  font-size:14px;
  font-weight:1000;
  line-height:1.15;
  overflow-wrap:anywhere;
}
.student-switch-copy small{
  color:var(--theme-muted);
  font-size:11px;
  font-weight:850;
  line-height:1.25;
}
.classes-student-switcher,
.payments-student-switcher,
.recordings-student-switcher,
.profile-student-switcher{
  margin:10px 0 14px;
}
.home-student-switcher{
  position:relative;
  z-index:1;
  margin:2px 0 0;
}
.home-student-switcher .student-switch-card{
  min-width:170px;
  background:rgba(255,255,255,.62);
}

/* =========================================================
   ACCOUNT ACCESS / BLOCKED STATE CONTROLS
========================================================= */

.login-help-link{
  border:0;
  background:transparent;
  color:var(--theme-primary);
  font-size:13px;
  font-weight:1000;
  text-decoration:underline;
  text-underline-offset:3px;
  padding:4px 8px 0;
}
.install-app-cta{
  width:100%;
  margin-top:16px;
  border:1px solid color-mix(in srgb,var(--theme-primary) 24%,var(--theme-line));
  border-radius:20px;
  background:
    linear-gradient(135deg,color-mix(in srgb,var(--theme-primary) 12%,#fff),rgba(255,255,255,.9)),
    var(--theme-card);
  color:var(--theme-primary);
  padding:13px 14px;
  box-shadow:0 14px 32px rgba(11,96,79,.1);
  text-align:left;
}
.install-app-cta span{
  display:block;
  font-size:15px;
  font-weight:1000;
}
.install-app-cta small{
  display:block;
  margin-top:3px;
  color:var(--theme-muted);
  font-size:12px;
  font-weight:850;
}
.install-app-button{
  border-color:color-mix(in srgb,var(--theme-accent) 45%,var(--theme-line)) !important;
  background:
    linear-gradient(135deg,color-mix(in srgb,var(--theme-primary) 12%,#fff),rgba(255,255,255,.92)) !important;
}
.install-app-button .more-icon{
  background:var(--theme-primary);
  color:#fff;
}
.phone-alerts-menu-button{
  border-color:color-mix(in srgb,var(--theme-primary) 28%,var(--theme-line)) !important;
}
.phone-alerts-menu-button .more-icon{
  background:var(--theme-soft-accent);
  color:#7a5600;
}
.phone-alert-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
  border:1px solid color-mix(in srgb,var(--theme-primary) 18%,var(--theme-line));
  border-radius:18px;
  background:
    linear-gradient(135deg,color-mix(in srgb,var(--theme-accent) 12%,#fff),rgba(255,255,255,.9)),
    var(--theme-card);
  padding:12px;
  box-shadow:0 10px 24px rgba(11,96,79,.06);
}
.phone-alert-card strong{
  display:block;
  color:var(--theme-text);
  font-size:14px;
  font-weight:1000;
}
.phone-alert-card small{
  display:block;
  margin-top:3px;
  color:var(--theme-muted);
  font-size:12px;
  font-weight:850;
}
.phone-alert-card button{
  flex:0 0 auto;
  white-space:nowrap;
}
.phone-alert-card button:disabled{
  opacity:.72;
  cursor:default;
}
.profile-app-setup{
  display:grid;
  gap:12px;
}
.profile-app-setup article,
.first-run-app-card{
  border:1px solid var(--theme-line);
  border-radius:20px;
  background:
    radial-gradient(circle at 96% 0,color-mix(in srgb,var(--theme-accent) 16%,transparent),transparent 34%),
    rgba(255,255,255,.86);
  padding:14px;
  box-shadow:0 12px 28px rgba(11,96,79,.06);
}
.profile-app-setup h3{
  margin:8px 0 6px;
  font-size:20px;
}
.profile-app-setup .primary-btn,
.profile-app-setup .secondary-btn{
  width:100%;
  margin-top:8px;
}
.profile-app-setup button:disabled{
  opacity:.72;
  cursor:default;
}
.first-run-app-card{
  display:grid;
  gap:14px;
}
.first-run-app-card p{
  margin:0;
  color:var(--theme-muted);
  font-weight:850;
  line-height:1.45;
}
.first-run-actions{
  display:grid;
  gap:9px;
}
.first-run-skip{
  display:flex;
  align-items:center;
  gap:9px;
  width:fit-content;
  color:var(--theme-text);
  font-size:13px;
  font-weight:900;
}
.first-run-skip input{
  width:18px;
  height:18px;
  accent-color:var(--theme-primary);
}
#accountAccessBar{
  position:sticky;
  top:8px;
  z-index:75;
  max-width:640px;
  margin:0 auto;
  padding:8px 16px 0;
}
.account-access-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border:1px solid var(--theme-line);
  border-radius:20px;
  background:rgba(255,255,255,.9);
  padding:12px;
  box-shadow:0 14px 32px rgba(11,96,79,.1);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}
.account-access-bar strong{
  display:block;
  color:var(--theme-text);
  font-size:14px;
  font-weight:1000;
}
.account-access-bar span{
  display:block;
  color:var(--theme-muted);
  font-size:12px;
  font-weight:850;
  line-height:1.35;
}
.account-access-bar.blocked{
  border-color:rgba(239,68,68,.28);
  background:linear-gradient(135deg,rgba(255,247,237,.94),rgba(255,255,255,.9));
}
.account-access-bar.temporary{
  border-color:color-mix(in srgb,var(--theme-accent) 45%,var(--theme-line));
  background:linear-gradient(135deg,var(--theme-soft-accent),rgba(255,255,255,.9));
}
.account-access-actions{
  display:flex;
  gap:7px;
  flex:0 0 auto;
}
.account-access-actions button{
  border:0;
  border-radius:999px;
  background:var(--theme-primary);
  color:#fff;
  padding:8px 10px;
  font-size:11px;
  font-weight:1000;
}
.account-access-actions button+button{
  background:var(--theme-accent);
  color:#1f1a00;
}
.blocked-feature-card{
  display:grid;
  gap:14px;
  border:1px solid rgba(239,68,68,.2);
  border-radius:28px;
  background:
    radial-gradient(circle at 94% 10%,rgba(239,68,68,.08),transparent 32%),
    rgba(255,255,255,.92);
  padding:22px;
  box-shadow:0 18px 40px rgba(11,96,79,.08);
}
.blocked-feature-card h2{
  margin:0;
  font-family:Inter,ui-sans-serif,system-ui,sans-serif;
  font-size:26px;
  line-height:1.1;
}
.blocked-feature-card p{
  margin:0;
  color:var(--theme-muted);
  font-weight:850;
  line-height:1.45;
}
.blocked-feature-stats{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.blocked-feature-stats div{
  border:1px solid var(--theme-line);
  border-radius:18px;
  background:#fffdf8;
  padding:12px;
}
.blocked-feature-stats small{
  display:block;
  color:var(--theme-muted);
  font-size:10px;
  font-weight:1000;
  text-transform:uppercase;
}
.blocked-feature-stats strong{
  display:block;
  margin-top:5px;
  color:var(--theme-primary);
  font-size:22px;
  font-weight:1000;
}
.blocked-feature-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px;
}
.locked-nav-btn{
  opacity:.46;
}
.two-actions{
  grid-template-columns:repeat(2,minmax(120px,1fr));
}

/* =========================================================
   COMPACT PAYMENT DUES
========================================================= */

.compact-payment-due-card{
  cursor:pointer;
  grid-template-columns:minmax(0,1fr) auto auto;
  align-items:center;
  padding:14px 16px;
}
.compact-payment-due-card h3{
  margin:8px 0 7px;
  font-size:18px;
}
.compact-payment-due-card>strong{
  font-size:18px;
}
.payment-pay-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:48px;
  border-radius:999px;
  background:var(--theme-primary);
  color:#fff;
  padding:8px 12px;
  font-size:12px;
  font-weight:1000;
}
.payment-selected-due-summary{
  display:grid;
  gap:8px;
  border:1px solid var(--theme-line);
  border-radius:20px;
  background:var(--theme-soft-primary);
  padding:14px;
}
.payment-selected-due-summary h3{
  margin:0;
  font-size:20px;
}
.payment-selected-due-summary p{
  margin:0;
}
.payment-selected-due-summary>strong{
  color:var(--theme-primary);
  font-size:24px;
}
.payment-student-check{
  font-size:0;
}
.payment-student-check::before{
  content:"\2713";
  font-size:16px;
}

/* =========================================================
   PAYMENT ALLOCATION + RECEIPT GROUPING
========================================================= */

.payment-due-card.compact{
  min-height:0;
  border-radius:16px;
  padding:12px 14px;
  border-left-width:4px;
}
.payment-due-card.compact h3{
  font-size:17px;
  margin:6px 0;
}
.payment-due-card.compact .pill{
  padding:5px 8px;
  font-size:10px;
}
.payment-due-card.compact>strong{
  align-self:center;
  font-size:17px;
}
.payment-allocation-panel{
  display:grid;
  gap:10px;
  padding:12px;
  border:1px solid var(--theme-line);
  border-radius:18px;
  background:rgba(255,255,255,.76);
}
.payment-modal-section-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.payment-modal-section-head label{
  margin:0;
}
.payment-modal-section-head p{
  margin:4px 0 0;
  font-size:12px;
}
.compact-due-option{
  display:grid;
  grid-template-columns:22px minmax(0,1fr) minmax(88px,112px);
  align-items:center;
  gap:9px;
  padding:10px;
  border-radius:14px;
  cursor:pointer;
}
.compact-due-option:has(input[name="payDue"]:checked){
  border-color:color-mix(in srgb,var(--theme-primary) 58%,var(--theme-line));
  background:var(--theme-soft-primary);
}
.payment-due-option-copy{
  min-width:0;
}
.payment-due-option-copy strong{
  font-size:14px;
  line-height:1.15;
}
.payment-due-option-copy small{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px;
  margin-top:5px;
}
.payment-due-option-copy em{
  color:var(--theme-muted);
  font-style:normal;
  font-size:12px;
  font-weight:1000;
}
.payment-allocation-input,
.manual-payment-amount{
  width:100%;
  min-width:0;
  text-align:right;
  appearance:textfield;
  -moz-appearance:textfield;
}
.payment-allocation-input::-webkit-outer-spin-button,
.payment-allocation-input::-webkit-inner-spin-button,
.manual-payment-amount::-webkit-outer-spin-button,
.manual-payment-amount::-webkit-inner-spin-button{
  margin:0;
  -webkit-appearance:none;
}
.payment-manual-rows{
  display:grid;
  gap:8px;
}
.payment-manual-row{
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(118px,.8fr) minmax(86px,.65fr) 36px;
  gap:8px;
  align-items:center;
  padding:9px;
  border:1px solid var(--theme-line);
  border-radius:14px;
  background:#fffdf8;
}
.payment-manual-row select,
.payment-manual-row input{
  min-width:0;
}
.payment-remove-manual{
  width:36px;
  height:36px;
  border-radius:50%;
  padding:0;
  color:#9b1c1c;
  background:#fff1f1;
}
.payment-allocation-summary{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin-top:2px;
}
.payment-allocation-summary div{
  padding:10px;
  border:1px solid var(--theme-line);
  border-radius:13px;
  background:#fffdf8;
}
.payment-allocation-summary small{
  display:block;
  color:var(--theme-muted);
  font-size:10px;
  font-weight:1000;
  text-transform:uppercase;
}
.payment-allocation-summary strong{
  display:block;
  margin-top:5px;
  color:var(--theme-text);
  font-size:16px;
  font-weight:1000;
}
.payment-allocation-summary .allocation-difference{
  grid-column:1/-1;
}
.payment-allocation-summary p,
.payment-allocation-suggestion{
  grid-column:1/-1;
  margin:0;
  padding:10px 12px;
  border-radius:13px;
  background:var(--theme-soft-primary);
  color:var(--theme-primary);
  font-size:13px;
  font-weight:950;
}
.payment-allocation-summary.warning p,
.payment-allocation-summary.warning .allocation-difference{
  background:#fff5d6;
  border-color:#e7c95e;
  color:#8a5d00;
}
.payment-allocation-summary.warning .allocation-difference strong{
  color:#8a5d00;
}
.payment-allocation-suggestion{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  background:#fff8dc;
  color:#7a5600;
}
.receipt-history{
  display:grid;
  gap:8px;
}
.receipt-section-accordion{
  overflow:hidden;
  border:1px solid var(--theme-line);
  border-radius:16px;
  background:rgba(255,255,255,.82);
}
.receipt-section-head{
  width:100%;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto 28px;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border:0;
  background:transparent;
  color:var(--theme-text);
  text-align:left;
  cursor:pointer;
}
.receipt-section-head span{
  font-size:14px;
  font-weight:1000;
}
.receipt-section-head small{
  color:var(--theme-muted);
  font-size:11px;
  font-weight:950;
}
.receipt-section-head i{
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:var(--theme-soft-primary);
  color:var(--theme-primary);
  font-style:normal;
  font-weight:1000;
}
.receipt-section-body{
  display:none;
  gap:6px;
  padding:0 8px 8px;
}
.receipt-section-accordion.open .receipt-section-body{
  display:grid;
}
.receipt-section-note{
  margin:0;
  padding:3px 4px 6px;
  color:var(--theme-muted);
  font-size:11px;
  font-weight:850;
}
.receipt-group-card{
  overflow:hidden;
  border:1px solid var(--theme-line);
  border-radius:12px;
  background:rgba(255,255,255,.9);
}
.receipt-group-head{
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:7px 9px;
  border:0;
  background:transparent;
  text-align:left;
  color:var(--theme-text);
  cursor:pointer;
}
.receipt-group-head>div{
  display:grid;
  grid-template-columns:auto auto minmax(0,1fr);
  align-items:center;
  gap:8px;
  min-width:0;
}
.receipt-group-head strong{
  color:var(--theme-primary);
  font-size:13px;
  font-weight:1000;
  white-space:nowrap;
}
.receipt-group-head small{
  margin:0;
  color:var(--theme-muted);
  font-size:11px;
  font-weight:850;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.receipt-group-caret{
  width:24px;
  height:24px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:var(--theme-soft-primary);
  color:var(--theme-primary);
  font-weight:1000;
  flex:0 0 auto;
}
.receipt-group-summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:0 9px 8px;
  color:var(--theme-muted);
  font-size:11px;
  font-weight:950;
}
.receipt-breakdown{
  display:none;
  gap:7px;
  padding:0 9px 9px;
}
.receipt-group-card.open .receipt-breakdown{
  display:grid;
}
.receipt-breakdown-row{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(82px,.8fr) auto auto auto;
  gap:8px;
  align-items:center;
  padding:9px;
  border:1px solid var(--theme-line);
  border-radius:13px;
  background:#fffdf8;
  font-size:12px;
  font-weight:900;
}
.receipt-remove-btn{
  justify-self:start;
  margin-top:2px;
  color:#b91c1c;
}
.receipt-locked-note{
  margin:0;
  font-size:11px;
}
.payment-submit-instructions{
  padding:10px 12px;
  border:1px solid color-mix(in srgb,var(--theme-primary) 18%,var(--theme-line));
  border-radius:14px;
  background:var(--theme-soft-primary);
  color:var(--theme-primary);
  font-size:13px;
  font-weight:950;
  line-height:1.35;
}
.payment-submit-form input[readonly]{
  background:var(--theme-soft-primary);
  color:var(--theme-primary);
  cursor:default;
}
.receipt-breakdown-row strong{
  color:var(--theme-primary);
  white-space:nowrap;
}
.receipt-breakdown-row a{
  justify-self:end;
  white-space:nowrap;
}

@media (max-width:560px){
  .compact-due-option{
    grid-template-columns:22px minmax(0,1fr);
  }
  .compact-due-option .payment-allocation-input{
    grid-column:2;
  }
  .payment-manual-row{
    grid-template-columns:1fr 1fr 40px;
  }
  .payment-manual-row select{
    grid-column:1/-1;
  }
  .receipt-breakdown-row{
    grid-template-columns:1fr auto;
  }
  .receipt-group-head>div{
    grid-template-columns:auto auto;
  }
  .receipt-group-head small{
    grid-column:1/-1;
  }
  .receipt-breakdown-row .pill,
  .receipt-breakdown-row a{
    justify-self:start;
  }
}

/* =========================================================
   CLEAN MESSAGES UI
========================================================= */

.messages-page{
  display:grid;
  gap:16px;
}
.messages-head{
  padding:4px 4px 0;
}
.messages-head h2{
  margin:5px 0 5px;
}
.messages-list{
  display:grid;
  gap:11px;
}
.message-card{
  border:1px solid var(--theme-line);
  border-radius:22px;
  background:
    radial-gradient(circle at 96% 0,rgba(221,176,36,.07),transparent 30%),
    rgba(255,255,255,.92);
  padding:15px;
  box-shadow:0 10px 24px rgba(11,96,79,.05);
  cursor:pointer;
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.message-card:hover{
  transform:translateY(-2px);
  border-color:color-mix(in srgb,var(--theme-accent) 55%,var(--theme-line));
  box-shadow:0 16px 34px rgba(11,96,79,.09);
}
.message-card-top{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
}
.message-card h3{
  margin:0 0 6px;
  color:var(--theme-text);
  font-size:18px;
}
.message-card p{
  margin:0;
  color:var(--theme-muted);
  font-size:13px;
  font-weight:800;
  line-height:1.4;
}
.message-card-meta{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:12px;
}
.message-card-meta span,
.message-card-meta time{
  border-radius:999px;
  background:#f7f2e8;
  color:var(--theme-muted);
  padding:5px 8px;
  font-size:11px;
  font-weight:950;
}
.messages-thread-modal{
  display:grid;
  gap:12px;
}
.messages-chat-window{
  max-height:min(58vh,520px);
  overflow:auto;
  padding:4px;
}
.message-bubble{
  box-shadow:0 8px 18px rgba(11,96,79,.04);
}
.message-bubble.theirs{
  justify-self:start;
  background:#fffdf8;
}
.message-bubble.mine{
  justify-self:end;
  background:var(--theme-soft-primary);
  border-color:color-mix(in srgb,var(--theme-primary) 26%,var(--theme-line));
}
.message-bubble small{
  display:block;
  color:var(--theme-muted);
  font-size:11px;
  font-weight:850;
}
.message-reply-form{
  position:sticky;
  bottom:0;
  margin-top:0;
  border-top:1px solid var(--theme-line);
  background:linear-gradient(180deg,rgba(255,255,255,.9),#fffdf8);
  padding-top:12px;
}

/* =========================================================
   LATEST PORTAL POLISH
========================================================= */

body.no-scroll{
  overflow:hidden!important;
  touch-action:none;
}

.loading-screen{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:22px;
  background:
    radial-gradient(circle at 88% 8%,color-mix(in srgb,var(--theme-accent) 18%,transparent),transparent 32%),
    radial-gradient(circle at 12% 18%,color-mix(in srgb,var(--theme-primary) 11%,transparent),transparent 35%),
    var(--theme-bg);
}
.loading-card{
  width:min(430px,100%);
  border:1px solid var(--theme-line);
  border-radius:32px;
  padding:26px;
  background:
    radial-gradient(circle at 92% 0,rgba(221,176,36,.14),transparent 34%),
    rgba(255,254,250,.94);
  box-shadow:0 24px 58px rgba(11,96,79,.12);
  text-align:left;
}
.loading-card .brand-mark{
  margin-bottom:18px;
}
.loading-card h1{
  margin:8px 0 16px;
  font-family:Georgia,"Times New Roman",serif;
  font-size:42px;
}
.loading-ayah{
  border-radius:22px;
  padding:18px;
  background:linear-gradient(135deg,rgba(232,245,241,.92),rgba(255,244,211,.58));
  border:1px solid color-mix(in srgb,var(--theme-accent) 26%,var(--theme-line));
}
.loading-ayah strong{
  display:block;
  color:var(--theme-primary);
  font-size:25px;
  line-height:1.55;
  font-weight:1000;
}
.loading-ayah p{
  margin:10px 0 6px;
  color:var(--theme-text);
  font-weight:900;
  line-height:1.4;
}
.loading-ayah small{
  color:var(--theme-muted);
  font-weight:950;
}

.student-switcher-wrap{
  position:relative;
  max-width:100%;
}
.student-switcher-wrap.has-more-students:after{
  content:"";
  position:absolute;
  top:2px;
  right:0;
  bottom:8px;
  width:92px;
  border-radius:0 20px 20px 0;
  pointer-events:none;
  background:linear-gradient(90deg,transparent 0%,rgba(251,250,245,.82) 38%,var(--theme-bg) 100%);
}
.student-switch-hint{
  display:none;
}
.student-switcher-wrap.has-more-students .student-switch-hint{
  position:absolute;
  right:8px;
  top:50%;
  z-index:3;
  min-width:58px;
  height:34px;
  margin-top:-20px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  border-radius:999px;
  background:
    radial-gradient(circle at 32% 24%,rgba(255,255,255,.42),transparent 32%),
    var(--theme-primary);
  color:#fff;
  font-size:24px;
  font-weight:1000;
  box-shadow:0 14px 28px rgba(11,96,79,.18);
  pointer-events:none;
  animation:studentHintPulse 1.9s ease-in-out infinite;
}
.student-switcher-wrap.has-more-students .student-switch-hint:before{
  content:"Swipe";
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.06em;
}
@keyframes studentHintPulse{
  0%,100%{transform:translateX(0)}
  50%{transform:translateX(4px)}
}

/* Polished shared student account selector */
.student-switcher-wrap{
  display:grid;
  gap:9px;
  max-width:100%;
  margin:10px 0 14px;
  padding:12px;
  border:1px solid color-mix(in srgb,var(--theme-primary) 12%,var(--theme-line));
  border-radius:24px;
  background:
    radial-gradient(circle at 96% 0,color-mix(in srgb,var(--theme-accent) 10%,transparent),transparent 34%),
    linear-gradient(145deg,rgba(255,255,255,.88),rgba(255,253,247,.74));
  box-shadow:
    0 14px 32px rgba(11,96,79,.075),
    inset 0 1px 0 rgba(255,255,255,.9);
}
.student-switcher-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:0 2px;
}
.student-switcher-head span{
  color:var(--theme-primary);
  font-size:11px;
  font-weight:1000;
  text-transform:uppercase;
  letter-spacing:.12em;
}
.student-switcher-head strong{
  color:var(--theme-muted);
  font-size:12px;
  font-weight:950;
  white-space:nowrap;
}
.student-switcher-frame{
  position:relative;
  min-width:0;
  overflow:hidden;
}
.student-switcher-card-row{
  display:flex;
  flex-wrap:nowrap;
  overflow-x:auto;
  overflow-y:hidden;
  gap:10px;
  width:100%;
  max-width:100%;
  min-width:0;
  padding:2px 96px 8px 4px;
  scroll-snap-type:x mandatory;
  scroll-padding-inline:4px 88px;
  -webkit-overflow-scrolling:touch;
}
.student-switcher-wrap.has-more-students:after{
  content:none;
}
.student-switcher-wrap.has-more-students .student-switcher-frame:after{
  content:"";
  position:absolute;
  top:0;
  right:0;
  bottom:8px;
  width:104px;
  border-radius:0 18px 18px 0;
  pointer-events:none;
  background:linear-gradient(90deg,transparent 0%,rgba(255,253,247,.78) 42%,rgba(255,253,247,.98) 100%);
}
.student-switch-card{
  flex:0 0 min(236px,72vw);
  min-width:0;
  max-width:min(236px,72vw);
  scroll-snap-align:start;
  border-radius:19px;
  background:
    radial-gradient(circle at 94% 0,color-mix(in srgb,var(--theme-accent) 8%,transparent),transparent 34%),
    rgba(255,255,255,.92);
}
.classes-student-switcher .student-switch-card,
.recordings-student-switcher .student-switch-card,
.resources-student-switcher .student-switch-card,
.profile-student-switcher .student-switch-card{
  flex-basis:min(224px,68vw);
  max-width:min(224px,68vw);
}
.student-switcher-wrap:not(.has-more-students) .student-switcher-card-row{
  padding-right:4px;
}
.student-switcher-wrap:not(.has-more-students) .student-switch-card{
  flex:1 1 0;
  max-width:none;
}
.student-switch-card.active{
  border-color:color-mix(in srgb,var(--theme-primary) 72%,var(--theme-line));
  background:
    radial-gradient(circle at 100% 0,color-mix(in srgb,var(--theme-accent) 22%,transparent),transparent 38%),
    linear-gradient(145deg,var(--theme-soft-primary),rgba(255,255,255,.86));
  box-shadow:
    0 16px 34px color-mix(in srgb,var(--theme-primary) 12%,transparent),
    inset 0 1px 0 rgba(255,255,255,.86);
}
.student-switcher-wrap.has-more-students .student-switch-hint{
  right:9px;
  z-index:4;
  min-width:64px;
  height:34px;
  margin-top:-22px;
  box-shadow:
    0 12px 26px color-mix(in srgb,var(--theme-primary) 22%,transparent),
    inset 0 1px 0 rgba(255,255,255,.32);
}
.student-switcher-wrap.has-more-students .student-switch-hint:before{
  content:none;
}
.student-switch-hint b,
.student-switch-hint i{
  display:block;
  font-style:normal;
  line-height:1;
}
.student-switch-hint b{
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.07em;
}
.student-switch-hint i{
  font-size:18px;
  margin-top:-1px;
}
.student-switch-dots{
  display:flex;
  justify-content:center;
  gap:5px;
  min-height:8px;
}
.student-switch-dots span{
  width:6px;
  height:6px;
  border-radius:999px;
  background:color-mix(in srgb,var(--theme-muted) 28%,transparent);
  transition:width .18s ease, background .18s ease;
}
.student-switch-dots span.active{
  width:18px;
  background:var(--theme-primary);
}
.home-student-switcher-wrap{
  margin-top:8px;
}
.home-student-switcher-wrap .student-switcher-head span,
.home-student-switcher-wrap .student-switcher-head strong{
  color:var(--theme-primary);
}
.home-student-switcher-wrap .student-switcher-wrap,
.home-student-switcher-wrap{
  background:
    radial-gradient(circle at 96% 0,color-mix(in srgb,var(--theme-accent) 10%,transparent),transparent 34%),
    rgba(255,255,255,.66);
}

.more-helpline{
  width:100%!important;
  min-height:58px!important;
  display:grid!important;
  grid-template-columns:42px minmax(0,1fr)!important;
  align-items:center!important;
  gap:10px!important;
  border:1px solid rgba(234,223,206,.9)!important;
  border-radius:18px!important;
  background:rgba(255,255,255,.68)!important;
  color:var(--theme-text)!important;
  padding:8px 10px!important;
  text-decoration:none!important;
  box-shadow:0 8px 20px rgba(11,96,79,.04)!important;
}
.more-helpline strong{
  display:block;
  font-size:14px;
  line-height:1.15;
  color:var(--theme-text);
}
.more-helpline small{
  display:block;
  margin-top:4px;
  color:var(--theme-muted);
  font-size:12px;
  font-weight:950;
}
.whatsapp-icon{
  background:#e7fbef!important;
  color:#128c7e!important;
}
.whatsapp-icon svg{
  width:25px;
  height:25px;
  display:block;
  fill:currentColor;
}

.message-thread-actions{
  display:flex;
  justify-content:flex-end;
  margin:-2px 0 4px;
}
.danger-text-btn{
  border:1px solid rgba(180,35,24,.16);
  border-radius:999px;
  background:#fff3f2;
  color:#b42318;
  padding:8px 12px;
  font-size:12px;
  font-weight:1000;
}

.modal-root:has(.course-catalog-modal),
.modal-root:has(.course-info-modal){
  z-index:2147483200!important;
}
.course-catalog-modal{
  display:grid;
  gap:16px;
}
.course-catalog-hero{
  display:block;
  border:0;
  border-radius:0;
  padding:0 4px 2px;
  background:transparent;
}
.course-catalog-hero>span{
  display:inline-flex;
  width:auto;
  height:auto;
  border-radius:999px;
  background:#fff3c8;
  color:#8a5d00;
  padding:8px 14px;
  font-size:11px;
  font-weight:1000;
}
.course-catalog-hero strong{
  display:block;
  margin-top:10px;
  color:var(--theme-text);
  font-size:16px;
  line-height:1.2;
  font-weight:1000;
}
.course-catalog-hero p{
  margin:4px 0 0;
  color:#61716b;
  font-size:14px;
  line-height:1.35;
  font-weight:850;
}
.course-catalog-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.catalog-course-card{
  position:relative;
  overflow:hidden;
  border:1px solid var(--theme-line);
  border-radius:20px;
  padding:14px;
  background:#fff;
  color:inherit;
  text-decoration:none;
  box-shadow:0 12px 28px rgba(67,52,35,.06);
}
.catalog-course-card:after{
  content:"";
  position:absolute;
  right:-34px;
  bottom:-46px;
  width:126px;
  height:126px;
  border-radius:50%;
  background:rgba(255,255,255,.38);
}
.catalog-mint{
  background:linear-gradient(135deg,#dbfff0,#fafff7);
  border-color:#b7ecd8;
}
.catalog-lavender{
  background:linear-gradient(135deg,#ebe5ff,#fbfbff);
  border-color:#d5ccff;
}
.catalog-cream{
  background:linear-gradient(135deg,#fff0e5,#fffdf8);
  border-color:#f2d5bf;
}
.catalog-sky{
  background:linear-gradient(135deg,#e3f3ff,#fbfdff);
  border-color:#c5e0ff;
}
.catalog-course-head{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:42px minmax(0,1fr);
  gap:12px;
  align-items:start;
}
.catalog-course-icon{
  width:40px;
  height:40px;
  border-radius:14px;
  background:rgba(255,255,255,.72);
  color:var(--theme-primary);
  display:grid;
  place-items:center;
  font-size:13px;
  font-weight:1000;
  box-shadow:0 8px 18px rgba(11,96,79,.08);
}
.catalog-course-head h3{
  margin:0 0 5px;
  font-family:Inter,ui-sans-serif,system-ui,sans-serif;
  color:#5f6672;
  font-size:19px;
  line-height:1.1;
  font-weight:1000;
}
.catalog-course-head p{
  margin:0;
  color:#7b8580;
  font-size:13px;
  line-height:1.35;
  font-weight:750;
}
.catalog-course-who{
  position:relative;
  z-index:1;
  margin:14px 0 12px;
  border-radius:999px;
  padding:10px 12px;
  background:rgba(255,255,255,.72);
  color:#1f2937;
  font-size:12px;
  line-height:1.35;
  font-weight:1000;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9);
}
.catalog-meta-row{
  position:relative;
  z-index:1;
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin:0 0 12px;
}
.catalog-meta-row span{
  border-radius:999px;
  background:rgba(255,255,255,.58);
  color:#334155;
  padding:6px 8px;
  font-size:10px;
  font-weight:1000;
}
.catalog-course-actions{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.catalog-course-open{
  position:relative;
  z-index:1;
  min-height:44px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background:#182235;
  color:#fff;
  font-size:14px;
  font-weight:1000;
}
.catalog-course-actions button,
.catalog-course-actions a{
  min-height:44px;
  border:1px solid rgba(15,55,48,.1);
  border-radius:13px;
  display:grid;
  place-items:center;
  text-align:center;
  text-decoration:none;
  font-size:14px;
  font-weight:1000;
}
.catalog-course-actions button{
  background:rgba(255,255,255,.86);
  color:#1f2937;
}
.catalog-course-actions a{
  background:#182235;
  color:#fff;
}
.course-info-modal{
  display:grid;
  gap:14px;
}
.course-info-lead{
  margin:0;
  color:var(--theme-text);
  font-size:15px;
  line-height:1.55;
  font-weight:850;
}
.course-info-chip-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.course-info-chip-row span,
.course-info-fee{
  border-radius:999px;
  background:var(--theme-soft-primary);
  color:var(--theme-primary);
  padding:8px 11px;
  font-size:12px;
  font-weight:1000;
}
.course-info-paths{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
  gap:9px;
}
.course-info-paths div{
  border:1px solid var(--theme-line);
  border-radius:16px;
  background:rgba(255,255,255,.86);
  padding:11px;
}
.course-info-paths small{
  display:block;
  color:var(--theme-muted);
  font-size:10px;
  text-transform:uppercase;
  font-weight:1000;
}
.course-info-paths strong{
  display:block;
  margin-top:3px;
  color:var(--theme-text);
  font-size:14px;
}
.course-info-fee{
  width:fit-content;
  background:var(--theme-soft-accent);
  color:#7a5600;
  margin:0;
}
.course-register-btn{
  text-align:center;
  text-decoration:none;
}

/* =========================================================
   STUDENT RESOURCES LIBRARY
========================================================= */

.resources-page{
  display:grid;
  gap:16px;
}
.resources-head{
  padding:4px 4px 0;
}
.resources-head h2{
  margin:5px 0 6px;
}
.resources-hero{
  position:relative;
  overflow:hidden;
  border:1px solid color-mix(in srgb,var(--theme-primary) 16%,var(--theme-line));
  border-radius:28px;
  padding:20px;
  background:var(--theme-primary-card-gradient);
  color:#fff;
  box-shadow:0 18px 42px color-mix(in srgb,var(--theme-primary) 16%,transparent);
}
.resources-hero:after{
  content:"";
  position:absolute;
  right:-34px;
  bottom:-60px;
  width:160px;
  height:160px;
  border-radius:50%;
  background:rgba(255,255,255,.11);
}
.resources-hero h3{
  position:relative;
  z-index:1;
  margin:16px 0 14px;
  color:#fff;
  font-family:Inter,ui-sans-serif,system-ui,sans-serif;
  font-size:26px;
  line-height:1.12;
  font-weight:1000;
}
.resources-stat-grid{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-bottom:13px;
}
.resources-stat-grid div{
  border:1px solid rgba(255,255,255,.2);
  border-radius:18px;
  padding:12px;
  background:rgba(255,255,255,.14);
}
.resources-stat-grid small{
  display:block;
  color:rgba(255,255,255,.72);
  text-transform:uppercase;
  font-size:11px;
  font-weight:1000;
}
.resources-stat-grid strong{
  display:block;
  margin-top:4px;
  color:#fff;
  font-size:30px;
  line-height:1;
}
.resource-eligibility-row,
.resource-code-row{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}
.resource-eligibility-row{
  position:relative;
  z-index:1;
}
.resource-eligibility-row span,
.resource-code-row span{
  width:fit-content;
  border-radius:999px;
  padding:6px 9px;
  font-size:11px;
  font-weight:1000;
}
.resource-eligibility-row span{
  background:rgba(255,255,255,.18);
  color:#fff;
}
.resource-empty-chip{
  color:rgba(255,255,255,.82)!important;
}
.resource-filter-bar{
  border:1px solid var(--theme-line);
  border-radius:24px;
  padding:13px;
  background:
    radial-gradient(circle at 96% 0,color-mix(in srgb,var(--theme-accent) 10%,transparent),transparent 30%),
    rgba(255,255,255,.86);
  box-shadow:0 12px 28px rgba(11,96,79,.055);
  display:grid;
  gap:11px;
}
.resource-filter-bar input,
.resource-filter-bar select{
  min-height:47px;
  border-radius:16px;
  background:rgba(255,255,255,.86);
}
.resource-type-filter{
  display:flex;
  gap:8px;
  overflow-x:auto;
  padding-bottom:2px;
  scrollbar-width:none;
}
.resource-type-filter::-webkit-scrollbar{
  display:none;
}
.resource-type-filter button,
.resource-filter-bottom button{
  border:1px solid var(--theme-line);
  border-radius:999px;
  background:#fffdf8;
  color:var(--theme-text);
  padding:9px 11px;
  white-space:nowrap;
  font-size:12px;
  font-weight:1000;
}
.resource-type-filter button.active,
.resource-filter-bottom button.active{
  border-color:var(--theme-primary);
  background:var(--theme-primary);
  color:#fff;
}
.resource-filter-bottom{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:9px;
  align-items:center;
}
.resources-list-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:10px;
  padding:0 4px;
}
.resources-list-head .eyebrow{
  margin:0;
}
.resources-list-head strong{
  color:var(--theme-muted);
  font-size:13px;
  font-weight:1000;
}
.student-resource-grid{
  display:grid;
  gap:12px;
}
.student-resource-card{
  position:relative;
  overflow:hidden;
  border:1px solid var(--theme-line);
  border-radius:23px;
  padding:15px;
  background:
    radial-gradient(circle at 96% 0,color-mix(in srgb,var(--theme-accent) 8%,transparent),transparent 30%),
    rgba(255,255,255,.92);
  box-shadow:0 12px 28px rgba(11,96,79,.055);
}
.student-resource-card.featured{
  border-color:color-mix(in srgb,var(--theme-accent) 60%,var(--theme-line));
  box-shadow:0 16px 34px color-mix(in srgb,var(--theme-accent) 14%,transparent);
}
.student-resource-card:after{
  content:"";
  position:absolute;
  right:-32px;
  bottom:-54px;
  width:128px;
  height:128px;
  border-radius:50%;
  background:color-mix(in srgb,var(--theme-soft-primary) 72%,transparent);
}
.resource-card-top,
.resource-card-meta{
  position:relative;
  z-index:1;
  display:flex;
  justify-content:space-between;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
}
.student-resource-card h3{
  position:relative;
  z-index:1;
  margin:13px 0 7px;
  font-family:Inter,ui-sans-serif,system-ui,sans-serif;
  font-size:19px;
  line-height:1.15;
  color:var(--theme-text);
}
.student-resource-card p{
  position:relative;
  z-index:1;
  margin:0 0 12px;
  color:var(--theme-muted);
  font-size:13px;
  line-height:1.45;
  font-weight:800;
}
.resource-type-pill,
.resource-featured-badge{
  display:inline-flex;
  width:fit-content;
  border-radius:999px;
  padding:7px 10px;
  font-size:11px;
  text-transform:uppercase;
  font-weight:1000;
}
.resource-type-pill{
  background:var(--theme-soft-primary);
  color:var(--theme-primary);
}
.type-book_pdf{background:#eef4ff;color:#3538cd}
.type-pdf_notes{background:#ecfdf3;color:#027a48}
.type-training_video{background:#fff7ed;color:#c2410c}
.type-class_resource{background:#fef3c7;color:#92400e}
.type-special_resource{background:#fce7f3;color:#be185d}
.type-external_link{background:#e0f2fe;color:#075985}
.resource-featured-badge{
  background:var(--theme-soft-accent);
  color:#8a5d00;
}
.resource-card-meta{
  justify-content:flex-start;
  margin-bottom:10px;
}
.resource-card-meta span{
  border-radius:999px;
  background:#f7f2e8;
  color:var(--theme-muted);
  padding:5px 8px;
  font-size:11px;
  font-weight:950;
}
.resource-code-row{
  position:relative;
  z-index:1;
  margin-bottom:13px;
}
.resource-code-row span{
  background:rgba(15,55,48,.06);
  color:var(--theme-muted);
}
.resource-open-btn{
  position:relative;
  z-index:1;
  width:100%;
  min-height:45px;
  border:0;
  border-radius:999px;
  background:var(--theme-primary);
  color:#fff;
  font-size:15px;
  font-weight:1000;
  box-shadow:0 12px 24px color-mix(in srgb,var(--theme-primary) 18%,transparent);
}
.resource-empty-state{
  border:1px solid var(--theme-line);
  border-radius:24px;
  padding:24px 18px;
  background:rgba(255,255,255,.88);
  text-align:center;
  box-shadow:0 12px 28px rgba(11,96,79,.045);
}
.resource-empty-state strong{
  display:block;
  color:var(--theme-text);
  font-size:18px;
}
.resource-empty-state p{
  margin:8px 0 0;
  color:var(--theme-muted);
  font-weight:800;
  line-height:1.45;
}
.resources-student-switcher{
  margin:0 0 2px;
}

@media(max-width:560px){
  #accountAccessBar{padding-inline:10px}
  .account-access-bar{align-items:flex-start;display:grid}
  .account-access-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}
  .compact-payment-due-card{grid-template-columns:1fr auto;padding:13px}
  .payment-pay-pill{grid-column:1/-1}
  .blocked-feature-actions{grid-template-columns:1fr}
}


/* =========================================================
   QAJ Student Portal - Payment bank details card
   Added to the receipt submission point only.
========================================================= */
.payment-bank-details-card{
  border:1px solid rgba(201,162,39,.35);
  background:linear-gradient(135deg,#fffaf0 0%,#ffffff 72%);
  border-radius:24px;
  padding:16px;
  display:grid;
  gap:14px;
  box-shadow:0 14px 32px rgba(15,23,42,.06);
}
.payment-bank-details-head{
  display:flex;
  align-items:center;
  gap:12px;
}
.payment-bank-icon{
  width:44px;
  height:44px;
  border-radius:16px;
  display:grid;
  place-items:center;
  background:#162033;
  color:#f9e7a1;
  font-size:20px;
  flex:0 0 auto;
}
.payment-bank-details-head h3{
  margin:2px 0 0;
  font-size:18px;
  line-height:1.2;
}
.payment-bank-details-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.payment-bank-details-grid div{
  border:1px solid rgba(229,231,235,.95);
  background:#fff;
  border-radius:16px;
  padding:11px 12px;
}
.payment-bank-details-grid small{
  display:block;
  color:#667085;
  font-size:10px;
  font-weight:950;
  letter-spacing:.06em;
  text-transform:uppercase;
  margin-bottom:4px;
}
.payment-bank-details-grid strong{
  display:block;
  color:#111827;
  font-size:15px;
  overflow-wrap:anywhere;
}
.payment-bank-details-note{
  margin:0;
  color:#7a5a12;
  font-size:13px;
  font-weight:800;
  line-height:1.45;
}
@media(max-width:560px){
  .payment-bank-details-grid{grid-template-columns:1fr}
  .payment-bank-details-card{padding:14px;border-radius:21px}
}

/* =========================================================
   PAYMENT UX SIMPLIFICATION V2
   - Compact bank card on main Payments page
   - Expandable extra bank fields
   - Simpler receipt submission modal
   - Payment callback request form
========================================================= */
.payment-bank-details-card{
  border:1px solid color-mix(in srgb,var(--theme-accent) 34%,var(--theme-line));
  background:linear-gradient(135deg,#fffaf0 0%,rgba(255,255,255,.95) 76%);
  border-radius:22px;
  padding:14px;
  display:grid;
  gap:12px;
  box-shadow:0 10px 24px rgba(15,23,42,.045);
}
.payment-bank-details-card.compact-bank-card{
  margin:0;
  padding:12px;
  border-radius:20px;
  gap:10px;
}
.payment-bank-details-head{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:center;
  gap:10px;
}
.payment-bank-icon{
  width:38px;
  height:38px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background:var(--theme-primary);
  color:#f9e7a1;
  font-size:18px;
  flex:0 0 auto;
}
.payment-bank-details-head h3{
  margin:1px 0 2px;
  font-size:16px;
  line-height:1.15;
  overflow-wrap:anywhere;
}
.payment-bank-details-head p:not(.eyebrow){
  margin:0;
  color:var(--theme-muted);
  font-size:12px;
  font-weight:850;
  line-height:1.35;
}
.payment-bank-quick-row{
  display:grid;
  grid-template-columns:1fr 1.1fr .9fr;
  gap:8px;
}
.payment-bank-quick-row div,
.payment-bank-details-grid div{
  border:1px solid rgba(229,231,235,.95);
  background:#fff;
  border-radius:14px;
  padding:9px 10px;
  min-width:0;
}
.payment-bank-quick-row small,
.payment-bank-details-grid small{
  display:block;
  color:#667085;
  font-size:9px;
  font-weight:1000;
  letter-spacing:.06em;
  text-transform:uppercase;
  margin-bottom:3px;
}
.payment-bank-quick-row strong,
.payment-bank-details-grid strong{
  display:block;
  color:#111827;
  font-size:13px;
  line-height:1.2;
  overflow-wrap:anywhere;
}
.payment-bank-more{
  border-top:1px dashed color-mix(in srgb,var(--theme-accent) 30%,var(--theme-line));
  padding-top:8px;
}
.payment-bank-more summary{
  width:max-content;
  max-width:100%;
  border-radius:999px;
  background:var(--theme-soft-primary);
  color:var(--theme-primary);
  padding:7px 10px;
  font-size:12px;
  font-weight:1000;
  cursor:pointer;
}
.payment-bank-more[open] summary{
  margin-bottom:9px;
}
.payment-bank-details-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.payment-submit-form{
  gap:12px;
}
.payment-submit-instructions.simple-payment-instructions{
  padding:10px 12px;
  border-radius:14px;
  font-size:13px;
  line-height:1.35;
}
.payment-extra-months-toggle{
  border:1px solid var(--theme-line);
  border-radius:18px;
  background:rgba(255,255,255,.78);
  overflow:hidden;
}
.payment-extra-months-toggle summary{
  padding:13px;
  cursor:pointer;
  font-size:13px;
  color:var(--theme-text);
  font-weight:1000;
  background:#fffdf8;
}
.payment-extra-months-toggle .payment-allocation-panel{
  border:0;
  border-top:1px solid var(--theme-line);
  border-radius:0;
  background:transparent;
}
.payment-total-strip{
  display:grid;
  grid-template-columns:1fr 120px;
  gap:9px;
  align-items:end;
  border:1px solid color-mix(in srgb,var(--theme-primary) 18%,var(--theme-line));
  border-radius:18px;
  background:var(--theme-soft-primary);
  padding:12px;
}
.payment-total-strip small{
  display:block;
  margin:0 0 5px;
  color:var(--theme-primary);
  font-size:10px;
  font-weight:1000;
  text-transform:uppercase;
}
.payment-total-strip input{
  min-height:42px;
  font-weight:1000;
  color:var(--theme-primary);
  background:#fff;
}
.payment-slip-panel textarea{
  min-height:78px;
}
.payment-help-form{
  gap:12px;
}
.payment-help-note{
  display:grid;
  gap:3px;
  border:1px solid color-mix(in srgb,var(--theme-primary) 18%,var(--theme-line));
  border-radius:16px;
  background:var(--theme-soft-primary);
  color:var(--theme-primary);
  padding:12px;
}
.payment-help-note strong{
  font-size:14px;
}
.payment-help-note span{
  color:var(--theme-muted);
  font-size:12px;
  font-weight:850;
}
.payment-help-form textarea{
  min-height:105px;
}
@media(max-width:560px){
  .payment-bank-quick-row,
  .payment-bank-details-grid,
  .payment-total-strip{
    grid-template-columns:1fr;
  }
  .payment-bank-details-card.compact-bank-card{
    padding:11px;
  }
  .payment-bank-icon{
    width:34px;
    height:34px;
    border-radius:12px;
    font-size:16px;
  }
}

/* =========================================================
   WHATSAPP-LIKE MESSAGES SIMPLIFICATION
   Scope: Student portal messages only. No DB changes.
========================================================= */
.wa-page{
  display:grid;
  gap:12px;
  padding-bottom:18px;
}
.wa-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:2px 2px 0;
}
.wa-header h2{
  margin:4px 0 0;
  font-size:30px;
  letter-spacing:-.03em;
}
.wa-new-btn{
  border:0;
  border-radius:999px;
  background:var(--theme-primary-card-gradient);
  color:#fff;
  padding:10px 15px;
  font-size:13px;
  font-weight:1000;
  box-shadow:0 12px 24px color-mix(in srgb,var(--theme-primary) 24%,transparent);
}
.wa-summary-row{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.wa-summary-row article{
  border:1px solid var(--theme-line);
  border-radius:18px;
  background:rgba(255,255,255,.9);
  padding:10px 12px;
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:8px;
}
.wa-summary-row strong{
  color:var(--theme-text);
  font-size:22px;
  line-height:1;
}
.wa-summary-row span{
  color:var(--theme-muted);
  font-size:12px;
  font-weight:950;
}
.wa-search-box{
  display:grid;
  grid-template-columns:auto 1fr;
  align-items:center;
  gap:8px;
  border:1px solid var(--theme-line);
  border-radius:999px;
  background:#fff;
  padding:7px 12px;
  box-shadow:0 8px 20px rgba(11,96,79,.04);
}
.wa-search-box span{
  color:var(--theme-muted);
  font-size:20px;
  line-height:1;
}
.wa-search-box input{
  border:0!important;
  box-shadow:none!important;
  padding:8px 0!important;
  background:transparent!important;
  font-weight:850;
}
.wa-chat-list{
  display:grid;
  overflow:hidden;
  border:1px solid var(--theme-line);
  border-radius:24px;
  background:#fff;
  box-shadow:0 10px 26px rgba(11,96,79,.05);
}
.wa-chat-row{
  position:relative;
  display:grid;
  grid-template-columns:48px minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  width:100%;
  border:0;
  border-bottom:1px solid var(--theme-line);
  background:#fff;
  padding:13px 12px;
  text-align:left;
  color:var(--theme-text);
}
.wa-chat-row:last-child{border-bottom:0}
.wa-chat-row:hover,
.wa-chat-row:focus-visible{
  background:#fffaf0;
  outline:0;
}
.wa-chat-row.unread{
  background:linear-gradient(90deg,rgba(11,96,79,.065),#fff 42%);
}
.wa-avatar{
  width:48px;
  height:48px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#0b604f,#17352f);
  color:#f9e7a1;
  font-size:15px;
  font-weight:1000;
  letter-spacing:.02em;
}
.wa-chat-main{
  min-width:0;
  display:grid;
  gap:3px;
}
.wa-chat-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}
.wa-chat-top strong{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:15px;
  color:var(--theme-text);
}
.wa-chat-top time{
  flex:0 0 auto;
  color:var(--theme-muted);
  font-size:11px;
  font-weight:900;
}
.wa-chat-preview{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:var(--theme-muted);
  font-size:13px;
  font-weight:850;
}
.wa-chat-main small{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#9a7b1e;
  font-size:11px;
  font-weight:950;
}
.wa-unread-dot{
  min-width:22px;
  height:22px;
  border-radius:999px;
  background:#13a66b;
  color:#fff;
  display:grid;
  place-items:center;
  padding:0 6px;
  font-size:11px;
  font-weight:1000;
}
.wa-empty{
  padding:28px 18px;
  text-align:center;
  color:var(--theme-muted);
}
.wa-empty strong{
  display:block;
  color:var(--theme-text);
  margin-bottom:5px;
}
.wa-compose-fab{
  position:fixed;
  right:max(18px,calc(env(safe-area-inset-right) + 18px));
  bottom:calc(var(--bottom-nav-height,82px) + 18px + env(safe-area-inset-bottom));
  z-index:60;
  width:58px;
  height:58px;
  display:grid;
  place-items:center;
  border:0;
  border-radius:50%;
  background:#0b604f;
  color:#fff;
  box-shadow:0 16px 34px rgba(11,96,79,.28);
  font-size:26px;
  font-weight:1000;
}
.modal-root.wa-thread-root{
  padding:0!important;
}
.modal-card.wa-thread-card{
  width:min(760px,100%)!important;
  max-width:760px!important;
  min-height:min(760px,calc(100dvh - 20px));
  height:calc(100dvh - 20px);
  margin:10px auto!important;
  padding:0!important;
  overflow:hidden!important;
  display:grid;
  grid-template-rows:auto 1fr;
  border-radius:26px!important;
  background:#f5f0e8!important;
}
.modal-card.wa-thread-card>.modal-head{
  margin:0!important;
  padding:12px 14px!important;
  border-bottom:1px solid rgba(0,0,0,.08)!important;
  background:linear-gradient(135deg,#0b604f,#17352f)!important;
  color:#fff!important;
}
.modal-card.wa-thread-card>.modal-head .eyebrow,
.modal-card.wa-thread-card>.modal-head .muted,
.modal-card.wa-thread-card>.modal-head h2{
  color:#fff!important;
}
.modal-card.wa-thread-card>.modal-head h2{
  margin:2px 0 0!important;
  font-size:18px!important;
}
.modal-card.wa-thread-card>.modal-head .mini-btn{
  background:rgba(255,255,255,.14)!important;
  color:#fff!important;
}
.wa-thread{
  min-height:0;
  display:grid;
  grid-template-rows:auto 1fr auto;
  overflow:hidden;
  background:
    radial-gradient(circle at 20% 10%,rgba(201,162,39,.16),transparent 24%),
    linear-gradient(180deg,#f8f0df,#f5efe4);
}
.wa-thread-topic{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  padding:8px 12px;
  background:rgba(255,255,255,.62);
  border-bottom:1px solid rgba(0,0,0,.06);
}
.wa-thread-topic span{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#5d665f;
  font-size:12px;
  font-weight:1000;
}
.wa-chat-window{
  min-height:0;
  overflow:auto;
  padding:14px 12px 18px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.wa-bubble{
  max-width:min(78%,560px);
  border-radius:18px;
  padding:9px 11px 7px;
  box-shadow:0 5px 13px rgba(0,0,0,.05);
  overflow-wrap:anywhere;
}
.wa-bubble.theirs{
  align-self:flex-start;
  border-top-left-radius:5px;
  background:#fff;
  color:#172033;
}
.wa-bubble.mine{
  align-self:flex-end;
  border-top-right-radius:5px;
  background:#dcf8c6;
  color:#172033;
}
.wa-bubble strong{
  display:block;
  margin-bottom:3px;
  color:#0b604f;
  font-size:12px;
  font-weight:1000;
}
.wa-bubble p{
  margin:0;
  white-space:pre-wrap;
  font-size:14px;
  line-height:1.38;
  font-weight:760;
}
.wa-bubble small{
  display:block;
  margin-top:4px;
  text-align:right;
  color:#667085;
  font-size:10px;
  font-weight:850;
}
.wa-attachment{
  margin-top:6px;
}
.wa-attachment a{
  display:inline-flex;
  border-radius:999px;
  background:rgba(11,96,79,.09);
  color:#0b604f;
  padding:6px 9px;
  font-size:12px;
  font-weight:1000;
  text-decoration:none;
}
.wa-reply-bar{
  display:grid;
  grid-template-columns:1fr 48px;
  gap:8px;
  align-items:end;
  padding:10px;
  background:#f3eadb;
  border-top:1px solid rgba(0,0,0,.08);
}
.wa-reply-bar textarea{
  min-height:46px!important;
  max-height:120px;
  resize:none;
  border-radius:24px!important;
  border:0!important;
  background:#fff!important;
  padding:13px 15px!important;
  box-shadow:0 3px 10px rgba(0,0,0,.04)!important;
}
.wa-reply-bar button{
  width:48px;
  height:48px;
  border:0;
  border-radius:50%;
  background:#0b604f;
  color:#fff;
  font-size:19px;
  font-weight:1000;
}
.wa-new-chat-form{
  display:grid;
  gap:11px;
}
.wa-new-chat-form textarea{
  min-height:150px;
}
.wa-topic-details{
  border:1px dashed var(--theme-line);
  border-radius:16px;
  background:#fffdf8;
  padding:11px;
}
.wa-topic-details summary{
  cursor:pointer;
  color:var(--theme-muted);
  font-size:13px;
  font-weight:1000;
}
.wa-topic-details input{
  margin-top:10px;
}
@media(max-width:700px){
  .wa-header h2{font-size:28px}
  .wa-summary-row{grid-template-columns:1fr 1fr}
  .wa-chat-row{grid-template-columns:44px minmax(0,1fr) auto;padding:12px 10px;gap:10px}
  .wa-avatar{width:44px;height:44px;font-size:14px}
  .modal-card.wa-thread-card{
    width:100%!important;
    height:100dvh!important;
    min-height:100dvh!important;
    margin:0!important;
    border-radius:0!important;
  }
  .wa-bubble{max-width:86%}
  .wa-compose-fab{bottom:calc(var(--bottom-nav-height,82px) + 14px + env(safe-area-inset-bottom))}
}

/* =========================================================
   QAJ Quran Hub Full Upgrade
   - Practical Quran tracker
   - Full Quran reader shell
   - Zikr bead / senior mode
========================================================= */
.quran-hub{display:grid;gap:14px;color:#102a25}.quran-hub *{box-sizing:border-box}.quran-hero-card{border:1px solid rgba(16,42,37,.08);border-radius:30px;padding:18px;background:radial-gradient(circle at 100% 0%,rgba(201,162,39,.23),transparent 34%),linear-gradient(135deg,#fffdf6,#eff7ef);box-shadow:0 16px 40px rgba(15,23,42,.07);display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.quran-hero-card h2{margin:3px 0 4px;font-size:28px;letter-spacing:-.03em}.quran-senior-toggle{border:0;border-radius:18px;background:#102a25;color:#fff;padding:12px 13px;font-weight:950;box-shadow:0 10px 25px rgba(16,42,37,.18);white-space:nowrap}.quran-senior-toggle.active{background:#c9a227;color:#102a25}.quran-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;background:#102a25;padding:7px;border-radius:25px;box-shadow:0 18px 45px rgba(16,42,37,.18);position:sticky;top:8px;z-index:12}.quran-tabs button{border:0;border-radius:19px;background:transparent;color:rgba(255,255,255,.67);font-size:12px;font-weight:950;padding:12px 5px}.quran-tabs button.active{background:#fff;color:#102a25}.quran-card{border:1px solid rgba(16,42,37,.08);border-radius:28px;background:#fff;padding:15px;box-shadow:0 12px 32px rgba(15,23,42,.05)}.quran-card h3{margin:0 0 4px}.quran-card-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:12px}.quran-card-head strong{font-size:15px;color:#0b604f}.quran-continue-card{border-radius:30px;background:radial-gradient(circle at 100% 0%,rgba(249,231,161,.22),transparent 37%),linear-gradient(135deg,#102a25,#0b604f);color:#fff;padding:18px;box-shadow:0 20px 50px rgba(16,42,37,.23);display:grid;gap:14px}.quran-continue-card h3{font-size:27px;line-height:1.08;margin:4px 0}.quran-continue-card p{color:rgba(255,255,255,.76);margin:0}.quran-continue-card .eyebrow{color:#f7d36f}.quran-continue-card .primary-btn{background:#f9e7a1;color:#102a25}.quran-today-grid,.quran-reader-layout,.quran-zikr-layout,.quran-goals-layout{display:grid;gap:14px}.quran-mini-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.quran-mini-stats article{background:#fff;border:1px solid rgba(16,42,37,.08);border-radius:21px;padding:12px;box-shadow:0 8px 20px rgba(15,23,42,.04)}.quran-mini-stats small{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:#667085;font-weight:950}.quran-mini-stats strong{display:block;font-size:25px;line-height:1.05;margin-top:4px}.quran-mini-stats span{font-size:11px;color:#667085;font-weight:800}.quran-progress{height:13px;background:#edf2ee;border-radius:99px;overflow:hidden}.quran-progress span{display:block;height:100%;background:linear-gradient(90deg,#0b604f,#c9a227);border-radius:99px}.quran-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}.quran-action-grid .secondary-btn,.quran-action-grid .primary-btn,.quran-action-grid a{text-align:center;text-decoration:none;display:grid;place-items:center}.quran-week-row{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}.quran-week-row button{border:1px solid #e5e7eb;background:#f8fafc;border-radius:17px;padding:9px 3px;display:grid;gap:2px;place-items:center;font-weight:950;color:#667085}.quran-week-row button.done{background:#0b604f;color:#fff;border-color:#0b604f}.quran-week-row small{font-size:10px;opacity:.75}.quran-log-list{display:grid;gap:10px}.quran-log-row{border:1px solid #e5e7eb;background:#fff;border-radius:19px;padding:11px;display:grid;gap:8px}.quran-log-row p{margin:3px 0 0}.quran-reader-tools{position:relative}.quran-search-row{display:grid;grid-template-columns:1fr auto;gap:8px;margin-bottom:10px}.quran-search-row input{border-radius:18px;background:#f8fafc;border:1px solid #e5e7eb;font-weight:850}.quran-mode-row{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-bottom:10px}.quran-mode-row button{border:0;border-radius:15px;background:#f2f4f7;color:#344054;padding:10px 5px;font-size:11px;font-weight:950}.quran-mode-row button.active{background:#102a25;color:#fff}.quran-surah-list{display:grid;gap:6px;max-height:340px;overflow:auto;padding-right:2px}.quran-surah-row{width:100%;border:0;background:#fff;border-radius:18px;padding:10px;display:grid;grid-template-columns:42px 1fr auto;gap:10px;align-items:center;text-align:left}.quran-surah-row:hover,.quran-surah-row.active{background:#f7f5ed}.quran-surah-row>span{display:grid;place-items:center;width:40px;height:40px;border-radius:15px;background:#102a25;color:#fff;font-weight:950}.quran-surah-row strong{display:grid;gap:1px;font-size:14px}.quran-surah-row small{font-size:11px;color:#667085}.quran-surah-row em{font-style:normal;font-size:20px;font-weight:900;color:#0b604f}.quran-reader-head{text-align:center;align-items:center}.quran-reader-status{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:12px;color:#667085;font-size:12px;font-weight:800}.quran-ayah-list{display:grid;gap:12px}.quran-ayah-card{border:1px solid #e5e7eb;background:#fff;border-radius:26px;padding:15px;scroll-margin-top:150px}.quran-ayah-card.selected{border-color:#c9a227;box-shadow:0 0 0 4px rgba(201,162,39,.13)}.quran-ayah-top{display:flex;justify-content:space-between;gap:8px;align-items:center}.quran-ayah-top>span{display:grid;place-items:center;min-width:42px;height:34px;padding:0 10px;border-radius:99px;background:#102a25;color:#fff;font-size:12px;font-weight:950}.quran-ayah-top>div{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.quran-arabic{font-family:Georgia,"Times New Roman",serif;font-size:31px;line-height:2.15;text-align:right;margin:14px 0;color:#111827}.quran-translation{font-size:14px;line-height:1.6;color:#344054;margin:0}.quran-wbw-note{margin-top:10px;border-radius:18px;background:#f8fafc;padding:10px;font-size:12px;line-height:1.45;color:#475467}.quran-wbw-note a{font-weight:950;color:#0b604f}.quran-offline-empty{text-align:center;display:grid;gap:10px;padding:20px}.quran-check-row{display:flex!important;align-items:center;gap:10px}.quran-check-row input{width:auto}.zikr-preset-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-top:10px}.zikr-preset-grid button{border:0;border-radius:20px;background:#f6f7f4;padding:12px;text-align:left;display:grid;gap:4px}.zikr-preset-grid button.active{background:#102a25;color:#fff}.zikr-preset-grid span{font-size:18px;text-align:right}.zikr-preset-grid small{opacity:.7;font-weight:850}.zikr-bead{margin:0 auto;border:0;width:min(78vw,300px);height:min(78vw,300px);border-radius:50%;background:radial-gradient(circle at 28% 22%,rgba(255,255,255,.18),transparent 16%),radial-gradient(circle at 72% 80%,rgba(201,162,39,.22),transparent 24%),linear-gradient(145deg,#104c3f,#061f1a);box-shadow:0 30px 70px rgba(16,42,37,.3),inset 0 0 0 18px rgba(255,255,255,.04),inset 0 0 0 37px rgba(201,162,39,.08);color:#fff;display:grid;place-items:center;text-align:center;transition:.1s ease}.zikr-bead:active{transform:scale(.97)}.zikr-bead span{font-weight:950;color:#f9e7a1}.zikr-bead strong{display:block;font-size:72px;line-height:1;font-weight:1000}.zikr-bead em{font-style:normal;color:rgba(255,255,255,.72);font-weight:850}.zikr-bead.senior{width:min(84vw,340px);height:min(84vw,340px)}.zikr-control-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0}.quran-goal-form input{font-weight:950}.quran-setting-list{display:grid;gap:8px}.quran-setting-list button{border:1px solid #e5e7eb;border-radius:20px;background:#fff;padding:13px;text-align:left;display:grid;gap:3px}.quran-setting-list small{color:#667085;font-weight:800}.quran-info-modal{display:grid;gap:12px;line-height:1.55}.quran-big-btn{min-height:60px!important;font-size:16px!important;border-radius:22px!important}.quran-senior .quran-card,.quran-senior .quran-continue-card,.quran-senior .quran-hero-card{border-radius:32px;padding:20px}.quran-senior .quran-tabs button{font-size:15px;padding:15px 5px}.quran-senior .quran-mini-stats{grid-template-columns:repeat(2,1fr)}.quran-senior .quran-mini-stats strong{font-size:36px}.quran-senior .quran-action-grid{grid-template-columns:1fr}.quran-senior .quran-surah-row{grid-template-columns:52px 1fr;gap:12px}.quran-senior .quran-surah-row em{grid-column:2}.quran-senior .quran-arabic{font-size:38px;line-height:2.25}.quran-senior .quran-translation{font-size:18px}.quran-senior .quran-week-row button{min-height:62px}.quran-senior input,.quran-senior select,.quran-senior textarea{font-size:18px;min-height:58px}@media(max-width:520px){.quran-hero-card{align-items:stretch;flex-direction:column}.quran-senior-toggle{width:100%}.quran-mini-stats{grid-template-columns:repeat(2,1fr)}.quran-action-grid{grid-template-columns:1fr}.quran-mode-row{grid-template-columns:repeat(2,1fr)}.quran-surah-list{max-height:none}.quran-surah-row{grid-template-columns:42px 1fr;}.quran-surah-row em{grid-column:2}.quran-arabic{font-size:29px}.quran-ayah-top{align-items:flex-start}.zikr-preset-grid{grid-template-columns:1fr}}
