:root{
  --bg:#f4f5f1;--surface:#fff;--surface-2:#f8f8f5;--ink:#17201c;--muted:#6d7771;
  --line:#e5e8e2;--brand:#0f5132;--brand-2:#e9f3ed;--danger:#a83632;--warn:#8a5a16;
  --shadow:0 10px 30px rgba(22,42,31,.08);--radius:18px;--radius-sm:12px;
  --sidebar:248px;--topbar:68px;
}
*{box-sizing:border-box}html,body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer}
a{color:inherit;text-decoration:none}.hidden{display:none!important}
.app-shell{min-height:100vh;display:grid;grid-template-columns:var(--sidebar) 1fr}.sidebar{position:sticky;top:0;height:100vh;padding:18px 14px;border-right:1px solid var(--line);background:rgba(255,255,255,.94);backdrop-filter:blur(16px);display:flex;flex-direction:column;z-index:20}.brand{height:48px;display:flex;align-items:center;padding:0 8px;margin-bottom:18px}.brand img{width:154px}.role-pill{margin:0 8px 14px;padding:9px 11px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2);font-size:12px;color:var(--muted);display:flex;align-items:center;justify-content:space-between}.role-pill strong{color:var(--ink);font-size:12px}.nav{display:flex;flex-direction:column;gap:3px;overflow:auto;padding-bottom:12px}.nav button{border:0;background:transparent;padding:11px 12px;border-radius:11px;text-align:left;color:#52605a;display:flex;gap:10px;align-items:center;font-weight:600}.nav button:hover{background:#f3f5f1}.nav button.active{background:var(--brand-2);color:var(--brand)}.nav-icon{width:22px;text-align:center;font-size:16px}.sidebar-bottom{margin-top:auto;padding:12px 8px 2px;border-top:1px solid var(--line)}.mini-profile{display:flex;gap:10px;align-items:center}.avatar{width:36px;height:36px;border-radius:50%;background:#dce9e1;display:grid;place-items:center;font-weight:800;color:var(--brand)}.mini-profile .meta{min-width:0}.mini-profile .name{font-size:13px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mini-profile .sub{font-size:11px;color:var(--muted)}
.main{min-width:0}.topbar{height:var(--topbar);position:sticky;top:0;z-index:15;background:rgba(244,245,241,.88);backdrop-filter:blur(18px);display:flex;align-items:center;justify-content:space-between;padding:0 28px;border-bottom:1px solid rgba(229,232,226,.8)}.top-title{font-weight:800;font-size:18px}.top-actions{display:flex;align-items:center;gap:8px}.icon-btn{height:38px;min-width:38px;border:1px solid var(--line);background:var(--surface);border-radius:11px;display:grid;place-items:center;color:#506159;position:relative}.badge-dot{position:absolute;right:7px;top:7px;width:7px;height:7px;background:#b42b2b;border-radius:50%;border:2px solid white}.content{padding:26px 28px 56px;max-width:1440px;margin:0 auto}
.page-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:22px}.page-head h1{font-size:28px;margin:0 0 5px;letter-spacing:-.03em}.page-head p{margin:0;color:var(--muted);max-width:680px}.btn{border:1px solid var(--line);background:var(--surface);padding:10px 14px;border-radius:11px;font-weight:700;color:#34453d;display:inline-flex;gap:8px;align-items:center;justify-content:center}.btn:hover{transform:translateY(-1px);box-shadow:0 4px 14px rgba(22,42,31,.07)}.btn.primary{background:var(--brand);color:#fff;border-color:var(--brand)}.btn.soft{background:var(--brand-2);border-color:#d7e8dd;color:var(--brand)}.btn.danger{background:#fff5f4;border-color:#f0d7d5;color:var(--danger)}.btn.small{padding:7px 10px;font-size:12px;border-radius:9px}.btn.block{width:100%}
.grid{display:grid;gap:16px}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:18px;box-shadow:0 1px 0 rgba(0,0,0,.01)}.card.flush{padding:0;overflow:hidden}.card h3{margin:0 0 12px;font-size:16px}.card-sub{font-size:13px;color:var(--muted);margin-top:-6px;margin-bottom:14px}.metric{padding:17px}.metric .label{font-size:12px;color:var(--muted);font-weight:700;text-transform:uppercase;letter-spacing:.05em}.metric .value{font-size:28px;font-weight:850;margin-top:6px;letter-spacing:-.04em}.metric .foot{font-size:12px;color:var(--muted);margin-top:5px}.metric .good{color:var(--brand)}.metric .warn{color:var(--warn)}
.hero-next{display:grid;grid-template-columns:1.5fr .8fr;gap:16px}.next-class{padding:24px;background:linear-gradient(135deg,#0d4d30,#174f38 52%,#285c46);color:white;border-radius:24px;box-shadow:0 14px 34px rgba(15,81,50,.18)}.eyebrow{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;opacity:.7}.next-class h2{font-size:30px;margin:10px 0 7px;letter-spacing:-.04em}.next-class .line{display:flex;gap:12px;flex-wrap:wrap;color:#dbe9e0;font-size:14px}.next-actions{display:flex;gap:10px;margin-top:22px}.next-class .btn.primary{background:white;color:var(--brand);border-color:white}.next-class .btn.soft{background:rgba(255,255,255,.12);color:white;border-color:rgba(255,255,255,.18)}
.progress-card{display:flex;flex-direction:column;justify-content:center}.progress-number{font-size:34px;font-weight:850;letter-spacing:-.04em}.progress-bar{height:9px;background:#edf0ec;border-radius:999px;overflow:hidden;margin:14px 0 8px}.progress-bar>span{height:100%;display:block;background:var(--brand);border-radius:inherit}.muted{color:var(--muted)}.small-text{font-size:12px}.list{display:flex;flex-direction:column}.list-row{display:flex;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid var(--line)}.list-row:last-child{border-bottom:0}.list-main{min-width:0;flex:1}.list-title{font-weight:750;font-size:14px}.list-sub{color:var(--muted);font-size:12px;margin-top:3px}.status{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border-radius:999px;font-size:11px;font-weight:800;background:#f1f3ef;color:#5e6a64}.status.green{background:#e8f4ec;color:#256b43}.status.yellow{background:#fff5df;color:#8a5a16}.status.red{background:#fff0ef;color:#a83632}.status.blue{background:#eef4ff;color:#31558b}.dot{width:8px;height:8px;border-radius:50%;background:currentColor}
.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:16px;background:white}.table{width:100%;border-collapse:collapse;min-width:720px}.table th{font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);text-align:left;padding:12px 14px;background:#fafbf8;border-bottom:1px solid var(--line)}.table td{padding:13px 14px;border-bottom:1px solid var(--line);font-size:13px;vertical-align:middle}.table tr:last-child td{border-bottom:0}.table td strong{font-size:13px}.actions{display:flex;gap:6px;flex-wrap:wrap}.chip{padding:5px 8px;border:1px solid var(--line);border-radius:8px;background:#fafbf8;font-size:11px;font-weight:700;color:#5c6862}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.field{display:flex;flex-direction:column;gap:6px}.field.full{grid-column:1/-1}.field label{font-size:12px;font-weight:700;color:#56645e}.input,.select,.textarea{border:1px solid #dce1db;border-radius:11px;background:#fff;padding:10px 11px;color:var(--ink);outline:none;width:100%}.textarea{min-height:92px;resize:vertical}.input:focus,.select:focus,.textarea:focus{border-color:#77a38b;box-shadow:0 0 0 3px rgba(15,81,50,.08)}
.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(120px,1fr));gap:8px;overflow:auto}.day-col{background:white;border:1px solid var(--line);border-radius:14px;min-height:260px;padding:10px}.day-label{font-size:12px;font-weight:800;color:#5b6862;margin-bottom:9px}.class-block{padding:9px;border-radius:10px;background:#eef5f0;border-left:3px solid var(--brand);margin-bottom:7px;font-size:11px}.class-block .t{font-weight:800}.class-block .s{color:var(--muted);margin-top:3px}
.reader-layout{display:grid;grid-template-columns:260px 1fr;gap:16px}.reader-side{position:sticky;top:92px;align-self:start}.book-card{padding:12px;border:1px solid var(--line);border-radius:13px;background:#fff;margin-bottom:8px;cursor:pointer}.book-card.active{border-color:#9bb8a7;background:var(--brand-2)}.book-card .btitle{font-weight:800}.book-card .bsub{font-size:11px;color:var(--muted);margin-top:4px}.reader-stage{background:#dfe3de;border-radius:22px;min-height:660px;padding:20px;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center}.reader-sheet{position:relative;background:#fff;box-shadow:0 18px 40px rgba(0,0,0,.18);border-radius:3px;max-width:min(100%,760px);width:min(100%,760px);aspect-ratio:.72;display:grid;place-items:center;overflow:hidden;transform-origin:center;transition:transform .2s ease,opacity .2s ease}.reader-sheet img{width:100%;height:100%;object-fit:contain;display:block;background:white}.reader-sheet canvas{display:block;max-width:100%;max-height:100%;background:white}.reader-sheet.turn-next{animation:turnNext .24s ease}.reader-sheet.turn-prev{animation:turnPrev .24s ease}@keyframes turnNext{0%{transform:perspective(1000px) rotateY(0);opacity:1}49%{transform:perspective(1000px) rotateY(-8deg) scale(.985);opacity:.55}100%{transform:perspective(1000px) rotateY(0);opacity:1}}@keyframes turnPrev{0%{transform:perspective(1000px) rotateY(0);opacity:1}49%{transform:perspective(1000px) rotateY(8deg) scale(.985);opacity:.55}100%{transform:perspective(1000px) rotateY(0);opacity:1}}.reader-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;flex-wrap:wrap}.reader-tools-left,.reader-tools-right{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.page-jump{width:72px}.reader-nav-btn{position:absolute;top:50%;transform:translateY(-50%);width:46px;height:58px;border:0;background:rgba(20,29,24,.72);color:white;border-radius:14px;display:grid;place-items:center;font-size:22px;z-index:2}.reader-nav-btn:hover{background:#111f18}.reader-nav-btn.left{left:14px}.reader-nav-btn.right{right:14px}.reader-hint{text-align:center;font-size:11px;color:var(--muted);margin-top:9px}.bookmark-list{display:flex;flex-direction:column;gap:7px}.bookmark-item{padding:9px 10px;border:1px solid var(--line);border-radius:10px;font-size:12px;display:flex;justify-content:space-between;gap:8px;align-items:center;background:white}.bookmark-item button{border:0;background:transparent;color:var(--brand);font-weight:800}
.segmented{display:inline-flex;padding:3px;border:1px solid var(--line);background:#f5f6f3;border-radius:11px}.segmented button{border:0;background:transparent;padding:7px 10px;border-radius:8px;font-size:12px;font-weight:750;color:#68736d}.segmented button.active{background:white;color:var(--ink);box-shadow:0 1px 4px rgba(0,0,0,.07)}.timeline{position:relative;padding-left:22px}.timeline:before{content:"";position:absolute;left:6px;top:7px;bottom:7px;width:2px;background:#e4e8e2}.timeline-item{position:relative;padding:0 0 18px}.timeline-item:before{content:"";position:absolute;left:-20px;top:5px;width:10px;height:10px;border-radius:50%;background:var(--brand);border:3px solid #e8f2ec}.timeline-item .date{font-size:11px;color:var(--muted);font-weight:700}.timeline-item .title{font-size:14px;font-weight:800;margin-top:3px}.timeline-item .desc{font-size:12px;color:var(--muted);margin-top:4px}.score-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.score-cell{padding:12px 8px;border-radius:12px;background:#f7f8f5;text-align:center;border:1px solid var(--line)}.score-cell .n{font-size:16px;font-weight:850}.score-cell .l{font-size:10px;color:var(--muted);margin-top:3px}.notice{padding:12px 14px;border:1px solid #d9e5dd;background:#eef6f1;color:#365747;border-radius:12px;font-size:12px}.notice.warn{border-color:#eddcbc;background:#fff8e8;color:#73521d}.empty{padding:34px;text-align:center;color:var(--muted);border:1px dashed #d7ddd7;border-radius:15px;background:#fafbf9}.empty .eicon{font-size:28px;margin-bottom:7px}
.login-screen{min-height:100vh;display:grid;grid-template-columns:1.05fr .95fr;background:#f1f3ef}.login-brand{padding:64px;display:flex;flex-direction:column;justify-content:space-between;background:linear-gradient(160deg,#0d4e31,#123c2b 65%,#163325);color:#fff}.login-brand img{width:180px;filter:brightness(0) invert(1)}.login-brand h1{font-size:48px;line-height:1.02;letter-spacing:-.05em;max-width:560px;margin:40px 0 16px}.login-brand p{max-width:540px;color:#d4e4da;font-size:17px;line-height:1.6}.login-list{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:30px}.login-feature{padding:12px;border:1px solid rgba(255,255,255,.13);background:rgba(255,255,255,.05);border-radius:13px;font-size:12px;color:#dce8e0}.login-box-wrap{display:grid;place-items:center;padding:30px}.login-box{width:min(450px,100%);background:#fff;border:1px solid var(--line);border-radius:24px;padding:28px;box-shadow:var(--shadow)}.login-box h2{margin:0 0 6px;font-size:26px;letter-spacing:-.03em}.login-box>p{margin:0 0 22px;color:var(--muted);font-size:13px}.demo-roles{display:grid;gap:8px;margin-top:18px}.demo-role{border:1px solid var(--line);padding:12px;border-radius:12px;background:#fafbf8;display:flex;justify-content:space-between;align-items:center}.demo-role .rname{font-weight:800;font-size:13px}.demo-role .rsub{font-size:11px;color:var(--muted);margin-top:2px}
.modal-backdrop{position:fixed;inset:0;background:rgba(17,26,21,.46);display:grid;place-items:center;padding:20px;z-index:100;backdrop-filter:blur(4px)}.modal{width:min(680px,100%);max-height:90vh;overflow:auto;background:white;border-radius:20px;box-shadow:0 30px 80px rgba(0,0,0,.24);border:1px solid rgba(255,255,255,.5)}.modal-head{padding:18px 20px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.modal-head h3{margin:0}.modal-close{border:0;background:#f1f3ef;width:34px;height:34px;border-radius:9px}.modal-body{padding:20px}.modal-foot{padding:14px 20px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:8px}.toast{position:fixed;right:20px;bottom:20px;z-index:130;background:#15291f;color:white;padding:12px 15px;border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,.2);font-size:13px;animation:toastIn .2s ease}@keyframes toastIn{from{transform:translateY(8px);opacity:0}to{transform:none;opacity:1}}
.mobile-menu{display:none}.kpi-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.quick-actions{display:flex;gap:8px;flex-wrap:wrap}.section-space{margin-top:18px}.divider{height:1px;background:var(--line);margin:16px 0}.pill-tabs{display:flex;gap:7px;overflow:auto;margin-bottom:16px}.pill-tabs button{white-space:nowrap;border:1px solid var(--line);background:white;padding:8px 11px;border-radius:999px;font-size:12px;font-weight:750}.pill-tabs button.active{background:var(--brand);color:white;border-color:var(--brand)}.rtl{direction:rtl}.message-thread{height:420px;overflow:auto;padding:12px;background:#f7f8f5;border-radius:14px;border:1px solid var(--line)}.bubble{max-width:76%;padding:9px 11px;border-radius:12px;margin-bottom:8px;font-size:12px;line-height:1.45}.bubble.me{margin-left:auto;background:var(--brand);color:white;border-bottom-right-radius:4px}.bubble.them{background:white;border:1px solid var(--line);border-bottom-left-radius:4px}.bubble .time{font-size:9px;opacity:.65;margin-top:4px}.message-compose{display:flex;gap:8px;margin-top:9px}.message-compose input{flex:1}.swatch{width:12px;height:12px;border-radius:50%;display:inline-block}.swatch.green{background:#2f7d51}.swatch.yellow{background:#d79a34}.swatch.red{background:#c94b47}
@media(max-width:1050px){:root{--sidebar:210px}.grid.four{grid-template-columns:repeat(2,1fr)}.hero-next{grid-template-columns:1fr}.reader-layout{grid-template-columns:1fr}.reader-side{position:static}.calendar-grid{grid-template-columns:repeat(7,160px)}}
@media(max-width:760px){.app-shell{display:block}.sidebar{position:fixed;left:-270px;width:250px;transition:left .2s ease;box-shadow:20px 0 40px rgba(0,0,0,.13)}.sidebar.open{left:0}.mobile-menu{display:grid}.topbar{padding:0 14px}.content{padding:18px 14px 44px}.page-head{align-items:flex-start;flex-direction:column}.grid.two,.grid.three,.grid.four,.kpi-strip{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.login-screen{grid-template-columns:1fr}.login-brand{display:none}.login-box-wrap{padding:16px}.reader-stage{min-height:520px;padding:10px}.reader-nav-btn{width:40px;height:52px}.reader-nav-btn.left{left:8px}.reader-nav-btn.right{right:8px}.score-grid{grid-template-columns:repeat(2,1fr)}.top-title{font-size:15px}}
.google-chip{font-size:11px;font-weight:800;padding:7px 10px;border:1px solid var(--line);border-radius:999px;background:#fff;color:#405049}.google-login{text-decoration:none;text-align:center;justify-content:center}.mini-profile .avatar img{width:100%;height:100%;object-fit:cover;border-radius:inherit}.boot-screen{min-height:100vh;display:grid;place-items:center;align-content:center;gap:12px;background:#f5f6f2;color:#45524c;font-weight:700}.spinner{width:30px;height:30px;border:3px solid #dbe2dc;border-top-color:#175f3d;border-radius:50%;animation:spin .7s linear infinite}.check-line{display:flex;gap:9px;align-items:flex-start;font-size:12px;color:#53605a;line-height:1.4}.check-line input{margin-top:2px}@keyframes spin{to{transform:rotate(360deg)}}

/* Hikmah Center Revamp */
.profile-card,.animated-card,.avatar-picker,.admin-panel{animation:floatIn .5s ease;transition:.3s;box-shadow:0 12px 30px rgba(0,0,0,.08)}
@keyframes floatIn{from{opacity:0;transform:translateY(15px)}to{opacity:1;transform:none}}
.avatar-choice{border-radius:50%;cursor:pointer;transition:.25s}
.avatar-choice:hover{transform:scale(1.12) rotate(3deg)}
.notification-dot{width:9px;height:9px;background:#ef4444;border-radius:50%;display:inline-block}
.message-admin-visible{font-size:.8rem;opacity:.7}
.status-inactive{opacity:.55;filter:grayscale(1)}
.receipt-preview{max-width:240px;border-radius:12px}

.login-legal{display:flex;justify-content:center;gap:9px;align-items:center;margin-top:18px;padding-top:16px;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}.login-legal a{color:var(--brand);font-weight:750}.login-legal a:hover{text-decoration:underline}

/* Complete revamp UI */
.nav button{position:relative}.nav-mini-dot{margin-left:auto;width:8px;height:8px;border-radius:50%;background:#d83d38;box-shadow:0 0 0 3px #fff;animation:pulseDot 1.8s ease-in-out infinite}@keyframes pulseDot{0%,100%{transform:scale(.85);opacity:.8}50%{transform:scale(1.15);opacity:1}}
.profile-menu-button{width:100%;border:0;background:transparent;padding:7px;border-radius:12px;text-align:left;transition:.2s}.profile-menu-button:hover{background:#f4f6f2}.menu-chevron{margin-left:auto;font-size:20px;color:var(--muted)}
.avatar{overflow:hidden;flex:0 0 auto}.avatar img{width:100%;height:100%;display:block;object-fit:cover}.avatar.small{width:30px;height:30px}.avatar.large{width:48px;height:48px}.avatar.xl{width:72px;height:72px}
.top-profile{border:0;background:transparent;padding:0;border-radius:50%;transition:transform .2s}.top-profile:hover{transform:scale(1.06)}.language-pill{min-width:42px;height:36px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--brand);font-size:11px;font-weight:850;letter-spacing:.05em}.language-pill:hover{background:var(--brand-2)}
.account-menu-card{display:flex;align-items:center;gap:14px;padding:8px}.settings-menu-list{display:grid;gap:8px}.danger-row{color:var(--danger)}
.settings-stack{display:grid;gap:16px;max-width:920px}.settings-card{animation:cardRise .38s ease both}.settings-card-head{display:flex;align-items:center;justify-content:space-between;gap:14px}.settings-card-head>div:first-child{display:flex;align-items:center;gap:14px}.profile-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:18px}.profile-summary-grid>div{padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2)}.profile-summary-grid span{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:800;margin-bottom:4px}.setting-line{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:9px 0}
.avatar-picker{display:grid;grid-template-columns:repeat(10,minmax(44px,1fr));gap:8px;padding:12px;background:#f6f8f5;border:1px solid var(--line);border-radius:16px;box-shadow:none}.avatar-choice{border:2px solid transparent;background:#fff;padding:4px;aspect-ratio:1;overflow:hidden}.avatar-choice img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}.avatar-choice.selected{border-color:var(--brand);box-shadow:0 0 0 3px rgba(15,81,50,.12);transform:scale(1.06)}
.chat-layout{display:grid;grid-template-columns:minmax(250px,330px) minmax(0,1fr);gap:14px}.chat-list{background:#fff;border:1px solid var(--line);border-radius:16px;padding:7px;max-height:590px;overflow:auto}.chat-person{width:100%;border:0;background:transparent;display:flex;align-items:center;gap:10px;padding:11px;border-radius:12px;text-align:left;color:var(--ink)}.chat-person:hover{background:#f5f7f4}.chat-person.active{background:var(--brand-2)}.chat-person>div:not(.avatar):not(.chat-duo){min-width:0;flex:1}.chat-person strong,.chat-person .list-sub{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-panel{min-width:0}.chat-duo{display:flex;min-width:58px}.chat-duo .avatar+ .avatar{margin-left:-12px;border:2px solid white}.message-count{margin-left:auto;min-width:22px;height:22px;padding:0 6px;display:grid;place-items:center;border-radius:999px;background:var(--brand);color:#fff;font-size:10px;font-weight:850}.table-person{display:flex;align-items:center;gap:10px}.teacher-card{transition:transform .22s ease,box-shadow .22s ease}.teacher-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.blocked-screen .login-brand{background:linear-gradient(160deg,#5c2f2c,#3e2524 70%,#2a201f)}.blocked-icon{width:58px;height:58px;border-radius:18px;background:#fff0ef;display:grid;place-items:center;font-size:28px;margin-bottom:14px}.login-lang{display:flex;justify-content:flex-end;margin-bottom:8px}.profile-welcome{margin-bottom:16px}
@keyframes cardRise{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(max-width:900px){.avatar-picker{grid-template-columns:repeat(5,1fr)}.chat-layout{grid-template-columns:1fr}.chat-list{max-height:240px}.profile-summary-grid{grid-template-columns:1fr}}
@media(max-width:520px){.avatar-picker{grid-template-columns:repeat(4,1fr)}.google-chip{display:none}.settings-card-head{align-items:flex-start;flex-direction:column}.top-actions{gap:5px}}
/* Motion is intentionally subtle so the dashboard feels alive without distracting adults or children. */
.content>.card,.content>.grid>.card,.content>.table-wrap,.content>.calendar-grid,.content>.hero-next,.content>.chat-layout{animation:softEnter .32s ease both}.list-row,.class-block,.book-card,.chat-person,.nav button,.icon-btn,.btn{transition:transform .18s ease,box-shadow .18s ease,background-color .18s ease,border-color .18s ease,opacity .18s ease}.list-row:hover{transform:translateX(2px)}.class-block:hover,.book-card:hover{transform:translateY(-2px)}@keyframes softEnter{from{opacity:.01;transform:translateY(7px)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

/* Realtime notifications, international scheduling & category controls */
.live-notification-stack{position:fixed;top:76px;right:18px;z-index:2200;display:grid;gap:10px;width:min(390px,calc(100vw - 28px));pointer-events:none}
.live-notification{pointer-events:auto;width:100%;border:1px solid rgba(15,81,50,.18);background:rgba(255,255,255,.98);box-shadow:0 18px 45px rgba(17,38,27,.18);border-radius:16px;padding:11px 12px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;text-align:left;color:var(--ink);transform:translateX(115%);opacity:0;transition:transform .28s ease,opacity .28s ease;backdrop-filter:blur(10px)}
.live-notification.show{transform:translateX(0);opacity:1}.live-notification>div:nth-child(2){min-width:0}.live-notification strong{font-size:12px;display:block;margin-bottom:2px}.live-notification>div:nth-child(2)>div{font-size:12px;color:var(--muted);line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.live-notification>span:last-child{font-size:16px;color:var(--muted)}
.timezone-pair{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:10px;align-items:center;padding:12px;border:1px solid #d9e5dd;background:#f5faf7;border-radius:14px}.timezone-pair>div:not(.tz-arrow){min-width:0}.timezone-pair span{display:block;font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.07em;color:var(--muted)}.timezone-pair strong{display:block;font-size:13px;margin:3px 0}.timezone-pair small{display:block;color:var(--muted);font-size:10px;line-height:1.4;overflow-wrap:anywhere}.tz-arrow{color:var(--brand);font-weight:900}
.specialty-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.check-card{display:flex!important;align-items:center;gap:8px;padding:11px 12px;border:1px solid var(--line);border-radius:12px;background:#fafbf9;cursor:pointer;transition:.18s}.check-card:has(input:checked){border-color:#83ac93;background:var(--brand-2);box-shadow:0 0 0 2px rgba(15,81,50,.06)}.check-card input{accent-color:var(--brand)}.profile-local-time{display:block;margin-top:4px;color:var(--muted);font-weight:500}.btn.danger{background:#fff0ef;color:#a83632;border-color:#edcbc8}.btn.danger:hover{background:#ffe7e5}
@media(max-width:620px){.live-notification-stack{top:68px;right:10px;width:calc(100vw - 20px)}.timezone-pair{grid-template-columns:1fr}.tz-arrow{transform:rotate(90deg);justify-self:center}.specialty-grid{grid-template-columns:1fr}}

/* Hikmah Center V3 visual polish */
.brand img{width:190px;max-width:100%;height:58px;object-fit:contain;object-position:left center;filter:none}
.login-brand img{width:220px;max-width:100%;height:auto;object-fit:contain;filter:none!important;drop-shadow:none}
.legal-brand img{max-width:210px;height:auto;object-fit:contain}

/* iMessage/FaceTime-inspired messaging, Hikmah green */
.message-thread{height:440px;overflow:auto;padding:16px;background:linear-gradient(180deg,#eef1ee,#f8faf8);border-radius:22px;border:1px solid #dfe4df;scroll-behavior:smooth}
.bubble{position:relative;max-width:min(76%,520px);padding:10px 14px;border-radius:21px;margin-bottom:9px;font-size:13px;line-height:1.45;box-shadow:0 1px 2px rgba(10,30,18,.06);overflow-wrap:anywhere}
.bubble.me{margin-left:auto;background:#34c759;color:#fff;border:0;border-bottom-right-radius:6px}
.bubble.them{margin-right:auto;background:#fff;color:#17231c;border:1px solid #e2e7e2;border-bottom-left-radius:6px}
.bubble .time{font-size:9.5px;opacity:.68;margin-top:4px;text-align:right}
.message-compose{display:flex;gap:8px;margin-top:10px;padding:6px;border:1px solid #dfe5df;border-radius:22px;background:#fff}
.message-compose input{flex:1;border:0!important;box-shadow:none!important;background:transparent;padding-left:10px}
.message-compose .btn{border-radius:999px;min-width:72px}

/* Visual matching board */
.matching-board{display:grid;grid-template-columns:repeat(auto-fill,minmax(285px,1fr));gap:14px}
.matching-teacher-cell{border:1px solid var(--line);border-radius:18px;background:#fff;padding:16px;box-shadow:0 5px 18px rgba(15,48,29,.04);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.matching-teacher-cell:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(15,48,29,.08);border-color:#b9d0c0}
.matching-teacher-head{display:flex;gap:11px;align-items:center;margin-bottom:12px}
.matching-teacher-head img,.matching-teacher-head .avatar{width:48px;height:48px;border-radius:15px;object-fit:cover}
.teacher-student-chips{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px;min-height:34px}
.student-chip{display:inline-flex;align-items:center;gap:6px;border:1px solid #dce6df;background:#f4f8f5;padding:6px 9px;border-radius:999px;font-size:11px;font-weight:750}
.student-chip img{width:22px;height:22px;border-radius:50%;object-fit:cover}
.empty-chip{font-size:11px;color:var(--muted);padding:7px 0}

/* Timezone/location onboarding */
.location-hint{border:1px solid #cae3d2;background:#f0f8f2;border-radius:13px;padding:10px 12px;font-size:12px;line-height:1.5;color:#355944}
.timezone-pair{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--line);border-radius:14px;background:#fbfcfb}
.timezone-pair>div:not(.tz-arrow){display:flex;flex-direction:column;gap:2px}.timezone-pair span{font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}.timezone-pair strong{font-size:12px}.timezone-pair small{font-size:10px;color:var(--muted)}.tz-arrow{color:var(--brand);font-weight:900}

/* Integrated Quran + two-page reader */
.quran-spread{display:grid;grid-template-columns:1fr;gap:14px;align-items:start;direction:rtl}
.quran-spread.two{grid-template-columns:1fr 1fr}
.quran-text-page{background:#fffef9;border:1px solid #e5dfcd;border-radius:18px;padding:28px 24px;min-height:640px;box-shadow:0 10px 24px rgba(45,37,18,.06);direction:rtl;text-align:justify;font-size:26px;line-height:2.1;color:#161914}
.quran-text-page[data-mushaf="3"],.quran-text-page[data-mushaf="6"],.quran-text-page[data-mushaf="7"]{font-family:'Noto Nastaliq Urdu','Noto Naskh Arabic','Amiri',serif;font-size:24px;line-height:2.25}
.quran-text-page:not([data-mushaf="3"]):not([data-mushaf="6"]):not([data-mushaf="7"]){font-family:'Amiri Quran','Noto Naskh Arabic','Amiri',serif}
.quran-ayah{display:inline}.quran-ayah-num{display:inline-grid;place-items:center;min-width:29px;height:29px;margin:0 5px;border:1px solid #b5a87e;border-radius:50%;font-family:system-ui,sans-serif;font-size:10px;color:#786a42;vertical-align:middle}
.quran-page-meta{direction:ltr;display:flex;justify-content:space-between;gap:8px;border-bottom:1px solid #eee7d5;padding-bottom:8px;margin-bottom:14px;color:#7b725d;font:600 10px/1.2 system-ui,sans-serif}
.pdf-two-page{display:flex;gap:12px;align-items:flex-start;justify-content:center;width:100%}
.pdf-two-page .reader-sheet{width:min(47%,680px);margin:0}
.reader-sheet canvas{max-width:100%;height:auto}

/* Rate config kept visually administrative */
.rate-admin-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px}.rate-admin-card{border:1px solid var(--line);border-radius:14px;padding:12px;background:#fbfcfb}

@media(max-width:760px){
 .brand img{width:165px;height:50px}.login-brand img{width:190px}
 .matching-board{grid-template-columns:1fr}
 .timezone-pair{grid-template-columns:1fr}.tz-arrow{transform:rotate(90deg);justify-self:center}
 .quran-spread.two{grid-template-columns:1fr}.quran-text-page{min-height:500px;padding:18px 15px;font-size:22px;line-height:2}
 .quran-spread.two .quran-text-page:nth-child(2){display:none}
 .pdf-two-page{display:block}.pdf-two-page .reader-sheet{width:100%;margin:0 auto}.pdf-two-page .reader-sheet:nth-child(2){display:none}
}

.matching-student-stack{display:flex;flex-direction:column;gap:7px;margin-top:10px}.matching-student-cell{width:100%;border:1px solid #e2e8e3;background:#f8faf8;border-radius:13px;padding:8px 9px;display:flex;align-items:center;gap:9px;text-align:left;cursor:pointer;transition:background .15s ease,border-color .15s ease}.matching-student-cell:hover{background:#eff7f1;border-color:#bdd6c4}.matching-student-cell .avatar{width:32px;height:32px;flex:0 0 32px}.matching-student-cell span{min-width:0;display:flex;flex-direction:column}.matching-student-cell strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.matching-student-cell small{font-size:10px;color:var(--muted)}

/* Mushaf-aware Quran line layout (uses API line_number when available) */
.quran-lines{display:flex;flex-direction:column;gap:.34rem;width:100%;direction:rtl;text-align:center}
.quran-line{min-height:1.72em;display:flex;flex-wrap:wrap;justify-content:center;align-items:baseline;gap:.22em .34em;line-height:1.72}
.quran-word{white-space:nowrap}
.quran-text-page.indopak .quran-line{line-height:1.88}

/* V4 production infrastructure */
.infra-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.infra-grid>div{border:1px solid var(--line,#e5e7eb);border-radius:14px;padding:12px;background:var(--surface-soft,#f8fafc);display:flex;flex-direction:column;gap:4px}
.infra-grid span{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted,#64748b)}
.infra-grid strong{font-size:13px}
.homework-attachments{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}
.homework-attachments .chip{text-decoration:none}
@media(max-width:700px){.infra-grid{grid-template-columns:1fr}}

/* Non-blocking profile reminder */
.profile-reminder{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 16px;padding:12px 14px}
.profile-reminder .small-text{margin-top:3px}
@media(max-width:640px){.profile-reminder{align-items:flex-start;flex-direction:column}.profile-reminder .btn{width:100%}}


/* V5 Free Plan Edition */
.free-plan-banner{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 20px;border:1px solid #b9dfc8;background:linear-gradient(135deg,#eefaf3,#f8fff9);border-radius:18px;color:#174e31}.free-plan-banner strong{display:block;font-size:16px;margin-bottom:4px}.free-plan-banner span{font-weight:800;white-space:nowrap;background:#dff4e7;padding:8px 12px;border-radius:999px}.metric-inline{display:flex;align-items:baseline;gap:8px;margin:18px 0}.metric-inline strong{font-size:34px;color:#155f3b}.metric-inline span{color:#66766d}.status.yellow{background:#fff4d7;color:#86620b}.status.red{background:#ffe9e6;color:#9c2e23}
@media(max-width:700px){.free-plan-banner{align-items:flex-start;flex-direction:column}.free-plan-banner span{white-space:normal}}

/* =========================================================
   Hikmah Center V6 — mobile-first learning + messaging polish
   ========================================================= */

/* Universal avatar rendering: SVG avatars should look identical on desktop/mobile. */
.avatar{overflow:hidden;display:grid;place-items:center;flex:0 0 auto}
.avatar img{width:100%!important;height:100%!important;display:block!important;object-fit:cover!important;object-position:center!important;border-radius:inherit}
.avatar.tiny{width:24px;height:24px}.avatar.small{width:30px;height:30px}.avatar.large{width:50px;height:50px}.avatar.xl{width:76px;height:76px}

/* Mobile drawer can close without navigating. */
.sidebar-scrim{display:none;position:fixed;inset:0;border:0;background:rgba(17,31,23,.44);backdrop-filter:blur(2px);z-index:19;cursor:pointer}
.topbar-left{display:flex;align-items:center;gap:10px;min-width:0}.mobile-menu{display:none}
.header-message-btn.active{background:var(--brand-2);color:var(--brand);border-color:#bfd5c6}
.header-count{position:absolute;top:-5px;right:-5px;min-width:18px;height:18px;padding:0 4px;border-radius:999px;display:grid;place-items:center;background:#e23636;color:#fff;border:2px solid #f4f5f1;font-size:9px;font-weight:900}

/* Messenger: WhatsApp/iMessage density without feeling like an admin form. */
.messenger-shell{height:calc(100vh - var(--topbar) - 54px);min-height:560px;max-height:900px;display:grid;grid-template-columns:330px minmax(0,1fr);overflow:hidden;background:#fff;border:1px solid #dfe5df;border-radius:24px;box-shadow:0 18px 50px rgba(17,45,28,.09)}
.messenger-list{min-width:0;border-right:1px solid #e6ebe7;background:#fbfcfb;display:flex;flex-direction:column;overflow:hidden}
.messenger-list-head{height:70px;padding:16px 18px 8px;display:flex;align-items:center;justify-content:space-between}.messenger-list-head h2{font-size:21px;margin:0}.messenger-list-head span{font-size:11px;color:var(--muted)}
.messenger-search{padding:8px 12px 10px}.messenger-search .input{height:38px;border-radius:13px;background:#eef2ef;border-color:transparent}
.messenger-people{overflow:auto;padding:0 8px 14px;scrollbar-width:thin}
.messenger-person{width:100%;min-height:66px;border:0;background:transparent;padding:8px 10px;border-radius:14px;display:flex;align-items:center;gap:10px;text-align:left;cursor:pointer;color:var(--ink);transition:.14s ease}
.messenger-person:hover{background:#f0f4f1}.messenger-person.active{background:#e5f1e9}.messenger-person .avatar{width:45px;height:45px}
.messenger-person-copy{min-width:0;flex:1;display:flex;flex-direction:column;gap:3px}.messenger-person-copy strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.messenger-person-copy small{font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.messenger-thread{min-width:0;display:flex;flex-direction:column;background:linear-gradient(180deg,#f9fbfa 0,#f2f5f3 100%);overflow:hidden}
.messenger-thread-head{height:70px;flex:0 0 70px;padding:9px 16px;border-bottom:1px solid #e4e9e5;background:rgba(255,255,255,.92);display:flex;align-items:center;gap:11px;backdrop-filter:blur(14px)}
.messenger-thread-head .avatar{width:42px;height:42px}.messenger-thread-head>div{display:flex;flex-direction:column;min-width:0}.messenger-thread-head strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.messenger-thread-head small{font-size:10px;color:var(--muted)}.chat-back{display:none}
.messenger-thread .message-thread{flex:1;height:auto;min-height:0;overflow-y:auto;border:0;border-radius:0;background:transparent;padding:22px clamp(14px,3vw,42px) 12px;box-shadow:none}
.message-line{display:flex;margin:3px 0}.message-line.mine{justify-content:flex-end}.message-line.theirs{justify-content:flex-start}
.messenger-thread .bubble{max-width:min(68%,620px);padding:9px 13px 8px;margin:0;border-radius:19px;font-size:14px;line-height:1.42;box-shadow:none}
.messenger-thread .bubble.me{background:#34c759;color:#fff;border-bottom-right-radius:5px}.messenger-thread .bubble.them{background:#fff;border:1px solid #e1e6e2;border-bottom-left-radius:5px;color:#132019}
.messenger-thread .bubble time{display:block;text-align:right;font-size:9px;line-height:1;margin-top:5px;opacity:.58}
.chat-empty{margin:auto;color:#809087;font-size:12px}.chat-empty.big{display:grid;place-items:center;height:100%;font-size:14px}
.messenger-thread .message-compose{margin:0;padding:10px 14px 13px;border:0;border-top:1px solid #e4e9e5;border-radius:0;background:#fff;display:flex;align-items:flex-end;gap:8px}
.messenger-thread .message-compose textarea{min-height:39px;max-height:112px;resize:none;border:1px solid #dce3de!important;border-radius:21px!important;padding:9px 13px!important;line-height:1.35;background:#f8faf9!important}
.message-send{width:39px;height:39px;flex:0 0 39px;border-radius:50%;border:0;background:#34c759;color:#fff;font-size:17px;font-weight:900;display:grid;place-items:center;cursor:pointer}.message-send:hover{filter:brightness(.95)}

/* Visual teacher matching: choose a learner from a scrollable rail, then teacher cards. */
.matching-workspace{display:grid;grid-template-columns:minmax(235px,285px) minmax(0,1fr);gap:16px;align-items:start}
.matching-student-rail{position:sticky;top:calc(var(--topbar) + 16px);height:min(72vh,720px);border:1px solid var(--line);background:#fff;border-radius:20px;overflow:hidden;display:flex;flex-direction:column}.rail-title{padding:14px 15px 10px;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.06em;color:#6a776f}.matching-student-scroll{overflow-y:auto;padding:0 8px 10px}
.matching-student-pick{width:100%;border:0;background:transparent;border-radius:14px;padding:9px;display:flex;gap:9px;align-items:center;text-align:left;color:var(--ink);cursor:pointer}.matching-student-pick:hover{background:#f3f6f4}.matching-student-pick.active{background:#e8f3eb}.matching-student-pick .avatar{width:38px;height:38px}.matching-student-pick>span{min-width:0;display:flex;flex-direction:column}.matching-student-pick strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.matching-student-pick small{font-size:10px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.matching-teacher-area{min-width:0}.matching-selected-banner{min-height:58px;padding:10px 13px;border:1px solid #cfe0d4;background:#f3faf5;border-radius:16px;display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:13px}.matching-selected-banner .avatar{width:34px;height:34px}.matching-selected-banner span{font-size:11px;color:var(--muted);margin-left:auto}
.teacher-match-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(265px,1fr));gap:12px}

/* Google Classroom inspired homework. */
.classroom-shell{display:grid;grid-template-columns:minmax(270px,340px) minmax(0,1fr);gap:15px;align-items:start}.classroom-stream{border:1px solid var(--line);background:#fff;border-radius:18px;padding:8px;max-height:720px;overflow:auto}.classroom-assignment{width:100%;border:0;background:transparent;color:var(--ink);display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:9px;text-align:left;padding:10px;border-radius:13px;cursor:pointer}.classroom-assignment:hover{background:#f5f7f5}.classroom-assignment.active{background:#e8f2ea}.classroom-assignment>span:nth-child(2){min-width:0;display:flex;flex-direction:column;gap:3px}.classroom-assignment strong,.classroom-assignment small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.classroom-assignment strong{font-size:12px}.classroom-assignment small{font-size:10px;color:var(--muted)}.classroom-icon{width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:var(--brand);color:#fff;font-weight:900}
.classroom-detail{min-width:0;display:grid;grid-template-columns:minmax(0,1fr) 265px;gap:14px}.assignment-main,.your-work-card{border:1px solid var(--line);background:#fff;border-radius:18px;padding:18px}.assignment-title-row{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.assignment-title-row h2{font-size:22px;margin:4px 0 3px}.assignment-description{white-space:pre-wrap;line-height:1.65;margin:22px 0}.assignment-files{display:grid;gap:8px;margin:14px 0}.file-tile{display:flex;align-items:center;gap:8px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;text-decoration:none;color:var(--ink);background:#fafbfa}.teacher-comment{margin-top:18px;padding:13px;border-left:4px solid var(--brand);background:#f1f8f3;border-radius:10px}.teacher-comment p{margin:6px 0 0;white-space:pre-wrap}.your-work-card{position:sticky;top:calc(var(--topbar) + 16px);height:max-content}.your-work-card .btn{margin-top:9px}

/* Packages & profile onboarding. */
.package-modal{width:min(920px,calc(100vw - 30px))}.package-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.package-choice{border:1px solid #dce5df;background:#fff;border-radius:17px;padding:17px;text-align:left;display:flex;flex-direction:column;gap:7px;color:var(--ink);cursor:pointer;transition:.16s}.package-choice:hover{transform:translateY(-2px);border-color:#8eb69c;box-shadow:0 9px 22px rgba(20,66,38,.08)}.package-choice.selected{background:#eef8f1;border-color:#6ba980}.package-choice strong{font-size:21px;color:var(--brand)}.package-choice small{color:var(--muted);line-height:1.45}.package-program{font-weight:900;font-size:13px}
.language-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.language-choice{border:1px solid var(--line);border-radius:14px;background:#fff;padding:12px;text-align:left;display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--ink);cursor:pointer}.language-choice.active{border-color:#77a88a;background:#edf7f0}.language-choice span{font-size:10px;color:var(--muted);font-weight:800}

/* FAQ / Support. */
.faq-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.faq-list{display:flex;flex-direction:column;gap:8px;margin-top:12px}.faq-item{border:1px solid var(--line);border-radius:14px;background:#fff;overflow:hidden}.faq-item summary{cursor:pointer;padding:13px 14px;font-weight:800;font-size:13px}.faq-answer{padding:0 14px 14px;line-height:1.62;white-space:pre-wrap;color:#4f5d55}.faq-item .actions{padding:0 14px 13px}.contact-card label{display:block;font-size:11px;font-weight:800;margin-bottom:5px}

/* Husary audio studio. */
.audio-studio{display:grid;grid-template-columns:minmax(280px,400px) minmax(0,1fr);gap:15px}.husary-now{min-height:260px;display:flex;align-items:center;justify-content:center;gap:22px;background:radial-gradient(circle at 20% 20%,#e8f8ed,#fff 58%)}.audio-disc{width:108px;height:108px;display:grid;place-items:center;border-radius:50%;background:conic-gradient(#0f5132,#29a767,#0f5132);box-shadow:inset 0 0 0 18px #fff,0 14px 35px rgba(15,81,50,.17);font-size:28px}.husary-now audio{display:block;width:min(460px,100%);margin-top:15px}

/* Quran.com-inspired Mushaf reading surface. */
.quran-app-reader{align-items:start}.quran-app-reader .reader-side{position:sticky;top:calc(var(--topbar) + 14px)}.mushaf-stage-wrap{min-width:0}.quran-app-reader .reader-toolbar{border:1px solid #e6dfcf;border-bottom:0;border-radius:18px 18px 0 0;background:#fffdf8;padding:10px 14px}.quran-app-reader .quran-spread{gap:10px;background:#eee9df;padding:10px;border-radius:0 0 18px 18px}.quran-app-reader .quran-text-page{position:relative;min-height:740px;border-radius:3px;border-color:#ddd4bc;box-shadow:0 5px 18px rgba(42,31,11,.09);padding:33px 26px 26px;background:#fffefa;text-align:center;overflow:hidden}.quran-text-page footer{position:absolute;bottom:8px;left:0;right:0;text-align:center;font:700 10px/1 system-ui;color:#8b826b;direction:ltr}.mushaf-page-inner{width:100%;min-height:650px;display:flex;flex-direction:column;justify-content:center;gap:0}.mushaf-line{width:100%;min-height:1.7em;display:flex;align-items:baseline;justify-content:center;gap:.12em;white-space:normal;line-height:1.74;text-align:center;direction:rtl}.quran-word{display:inline-block;cursor:pointer;user-select:text;border-radius:5px;padding:0 .02em;transition:background .12s ease,box-shadow .12s ease}.quran-word:hover{background:#eff7e9}.ayah-highlighted{background:#fff0a9!important;box-shadow:0 0 0 2px rgba(231,190,39,.18)}.quran-fallback-ayah{display:inline;cursor:pointer}.quran-loading{display:grid;place-items:center;min-height:560px;color:#7a7568;font:700 12px system-ui}.reader-page-search{display:flex;gap:7px}.reader-page-search .input{min-width:0}.btn.full{width:100%}

/* Dashboard package progress. */
.dashboard-progress-row{display:flex;justify-content:space-between;align-items:center;margin:14px 0 6px;font-size:11px}.big-stat{font-size:30px;font-weight:900;color:var(--brand);margin:8px 0}.progress-card .progress-number{font-size:46px;font-weight:900;line-height:1;color:var(--brand);margin:8px 0}

@media(max-width:1000px){
  .classroom-detail{grid-template-columns:1fr}.your-work-card{position:static}
  .quran-app-reader{grid-template-columns:1fr}.quran-app-reader .reader-side{position:static}
}

@media(max-width:760px){
  .mobile-menu{display:grid}.sidebar{z-index:30}.sidebar.open + .sidebar-scrim{display:block;z-index:29}.sidebar-scrim{display:none}
  .top-title{max-width:38vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.header-message-btn{display:grid}.google-chip{display:none}
  .content:has(.messenger-shell){padding:0}.messenger-shell{height:calc(100dvh - var(--topbar));min-height:0;max-height:none;border:0;border-radius:0;box-shadow:none;display:block;position:relative;background:#fff}.messenger-list,.messenger-thread{position:absolute;inset:0;border:0}.messenger-thread{display:none}.messenger-shell.has-thread .messenger-list{display:none}.messenger-shell.has-thread .messenger-thread{display:flex}.messenger-list-head{height:64px;padding-top:12px}.messenger-person{min-height:70px;border-radius:0;border-bottom:1px solid #eef1ef}.messenger-person.active{background:transparent}.messenger-person .avatar{width:48px;height:48px}.chat-back{display:grid;border:0;background:transparent;font-size:30px;min-width:32px;padding:0}.messenger-thread-head{height:61px;flex-basis:61px;padding:7px 10px}.messenger-thread .message-thread{padding:15px 11px 10px}.messenger-thread .bubble{max-width:82%;font-size:14px}.messenger-thread .message-compose{padding:8px 9px calc(9px + env(safe-area-inset-bottom))}
  .matching-workspace{grid-template-columns:1fr}.matching-student-rail{position:static;height:auto}.matching-student-scroll{display:flex;overflow-x:auto;overflow-y:hidden;padding:0 8px 10px;gap:5px;scroll-snap-type:x proximity}.matching-student-pick{min-width:190px;width:190px;scroll-snap-align:start}.matching-selected-banner span{width:100%;margin-left:42px}
  .teacher-match-grid{grid-template-columns:1fr}
  .classroom-shell{grid-template-columns:1fr}.classroom-stream{display:flex;gap:6px;overflow-x:auto;max-height:none;padding:7px}.classroom-assignment{min-width:240px;grid-template-columns:32px minmax(0,1fr);border:1px solid #edf0ee}.classroom-assignment>.status{display:none}.assignment-main,.your-work-card{padding:14px}
  .package-grid{grid-template-columns:1fr}.language-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .audio-studio{grid-template-columns:1fr}.husary-now{min-height:220px;flex-direction:column;text-align:center}.audio-disc{width:86px;height:86px}
  .quran-app-reader .reader-side{display:none}.quran-app-reader .quran-spread{padding:0;background:#e7e1d5;border-radius:0}.quran-app-reader .reader-toolbar{border-radius:12px 12px 0 0}.quran-app-reader .quran-text-page{min-height:calc(100dvh - 235px);padding:20px 10px 25px;border-radius:0;font-size:24px}.mushaf-page-inner{min-height:calc(100dvh - 290px)}.mushaf-line{line-height:1.78;gap:.08em}.reader-nav-row{position:sticky;bottom:8px;z-index:3;padding:8px;justify-content:space-between;background:rgba(244,245,241,.92);backdrop-filter:blur(10px);border-radius:14px;margin-top:8px}
}

@media(max-width:430px){
  .topbar{padding:0 9px}.top-actions{gap:4px}.language-pill{padding:6px 7px}.top-profile{display:none}.top-title{max-width:31vw}
  .avatar-picker{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}.avatar-choice{padding:2px}.modal{max-height:94dvh}
  .quran-app-reader .quran-text-page{font-size:21px;padding-left:6px;padding-right:6px}.mushaf-line{line-height:1.9}
  .faq-head{align-items:flex-start;flex-direction:column}
}
