
:root{--green:#064E3B;--green2:#0B6650;--gold:#C7A45B;--cream:#F7F3E9;--ink:#20332d;--muted:#65736d;--white:#fff;--line:#e7e3d9}
*{box-sizing:border-box}body{margin:0;background:var(--cream);color:var(--ink);font-family:Arial,Helvetica,sans-serif;line-height:1.55}
header{background:var(--green);color:white;padding:18px max(5vw,22px);display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}
.brand{display:flex;align-items:center;justify-content:center;min-width:0;background:#F7F3E9;border:2px solid #C7A45B;border-radius:14px;padding:5px 12px;box-shadow:0 3px 10px #001b1433}.brand-logo{display:block;width:176px;height:auto;max-width:100%}
nav{display:flex;gap:18px;flex-wrap:wrap}nav a{color:white;text-decoration:none;font-size:14px;opacity:.92}nav a:hover{color:#f0d99e}
.lang{border:1px solid #ffffff66;border-radius:20px;background:transparent;color:white;padding:8px 12px}
.hero{background:linear-gradient(120deg,#064E3B,#0b6650);color:white;padding:76px max(6vw,24px) 82px;position:relative;overflow:hidden}
.hero:after{content:"✦";position:absolute;right:9%;top:12%;font-size:180px;color:#ffffff0d}
.kicker{color:#e8d39e;text-transform:uppercase;letter-spacing:2px;font-size:12px;font-weight:bold}
h1{font-family:Georgia,serif;font-size:clamp(38px,6vw,66px);line-height:1.08;max-width:760px;margin:14px 0}
.hero p{max-width:650px;color:#e8eee9;font-size:18px}
.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}
.btn{display:inline-block;padding:13px 19px;border-radius:8px;background:var(--gold);color:#14251f;text-decoration:none;font-weight:bold;border:0;cursor:pointer}
.btn.alt{background:transparent;border:1px solid #ffffff88;color:white}
main{max-width:1160px;margin:auto;padding:54px 24px}
.section-head{display:flex;justify-content:space-between;align-items:end;gap:20px;flex-wrap:wrap;margin-bottom:24px}
h2{font: bold 32px Georgia,serif;color:var(--green);margin:0 0 8px}
.lead{color:var(--muted);margin:0;max-width:680px}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px}
.card{background:white;border:1px solid var(--line);border-radius:15px;padding:22px;box-shadow:0 5px 20px #1b38200a}
.icon{width:46px;height:46px;border-radius:12px;background:#e7f0eb;display:grid;place-items:center;font-size:23px;margin-bottom:15px}
.card h3{color:var(--green);margin:0 0 8px;font: bold 21px Georgia,serif}
.card p{color:var(--muted);font-size:14px;margin:0 0 14px}
.tag{display:inline-block;background:#f4eddb;color:#6c5522;border-radius:20px;padding:4px 9px;font-size:11px;font-weight:bold}

.learning-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:18px}
.learning-card{grid-column:span 2;background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:0 9px 26px #173b2a0b;transition:transform .22s ease,box-shadow .22s ease;min-width:0}
.learning-card:hover{transform:translateY(-5px);box-shadow:0 16px 34px #173b2a18}
.learning-card:nth-child(4){grid-column:2/span 2}.learning-card:nth-child(5){grid-column:4/span 2}
.card-art{height:142px;position:relative;overflow:hidden;display:grid;place-items:center}
.mini-card .card-art{background:linear-gradient(135deg,#d9eee4,#a8d4bf)}
.kids-card .card-art{background:linear-gradient(135deg,#e4edf8,#b6cbe8)}
.youth-card .card-art{background:linear-gradient(135deg,#f7e8c8,#e9c987)}
.adult-card .card-art{background:linear-gradient(135deg,#d9e8df,#8bb7a2)}
.quran-card .card-art{background:linear-gradient(135deg,#e9e0f1,#c8b5dc)}
.art-orbit{position:absolute;width:175px;height:175px;border:1px solid #ffffffa8;border-radius:50%;box-shadow:0 0 0 18px #ffffff20,0 0 0 38px #ffffff14}
.art-symbol{position:absolute;left:18%;top:18%;font-size:25px;color:#fff9}
.art-spark{position:absolute;right:20%;bottom:17%;font-size:29px;color:#fff}
.art-emoji{font-size:62px;filter:drop-shadow(0 8px 9px #173b2a25);z-index:1;transform:translateY(-2px)}
.learning-content{padding:20px 21px 22px}
.card-topline{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.learning-card .tag{background:#f5f0e5;color:#705b2b}
.card-number{font-size:11px;letter-spacing:1.5px;color:#a3aaa4;font-weight:bold}
.learning-card h3{font: bold 23px Georgia,serif;color:var(--green);margin:0 0 8px}
.learning-card p{font-size:14px;line-height:1.6;color:var(--muted);min-height:67px;margin:0 0 15px}
.card-link{display:inline-flex;gap:10px;align-items:center;color:var(--green2);font-weight:bold;text-decoration:none;font-size:13px;background:none;border:0;padding:0;cursor:pointer;font-family:inherit}
.card-link span{font-size:19px;transition:transform .2s}
.card-link:hover span{transform:translateX(4px)}
@media(max-width:850px){.learning-card{grid-column:span 3}.learning-card:nth-child(4){grid-column:span 3}.learning-card:nth-child(5){grid-column:span 3}}
@media(max-width:560px){.learning-grid{grid-template-columns:1fr}.learning-card,.learning-card:nth-child(4),.learning-card:nth-child(5){grid-column:auto}.card-art{height:125px}}

.band{background:#eae5d8;border-radius:18px;padding:30px;margin-top:42px;display:grid;grid-template-columns:1.2fr .8fr;gap:25px;align-items:center}
.band h2{font-size:28px}.band ul{margin:12px 0 0;padding-left:20px;color:var(--muted)}
.preview{background:white;border-radius:14px;padding:18px;border:1px solid var(--line)}
.progress{height:9px;background:#e9eee9;border-radius:20px;overflow:hidden;margin:9px 0 14px}.progress span{display:block;width:42%;height:100%;background:var(--green2)}
.lesson{display:flex;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid var(--line);font-size:14px}.lesson:last-child{border:0}
footer{background:#073d30;color:#e7eee9;padding:35px max(5vw,22px);display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}
footer small{color:#c3d0c9}
.modal{display:none;position:fixed;inset:0;background:#10251ed9;z-index:10;align-items:center;justify-content:center;padding:20px}
.modal.open{display:flex}.dialog{background:white;border-radius:16px;padding:26px;max-width:460px;width:100%;position:relative}
.dialog h2{font-size:25px}.dialog label{display:block;font-size:13px;margin:13px 0 5px;color:var(--muted)}
.dialog input,.dialog select{width:100%;padding:12px;border:1px solid var(--line);border-radius:8px;font-size:15px}
.close{position:absolute;right:15px;top:12px;border:0;background:none;font-size:24px;cursor:pointer}
.notice{font-size:12px;color:var(--muted);margin-top:14px}
.module-button{text-align:left;width:100%;font-family:inherit;cursor:pointer}.module-button:hover{border-color:var(--gold);background:#f5f0e5}.module-action{display:block;color:var(--green2);font-weight:bold;font-size:12px;margin-top:6px}.lesson-card{border:1px solid var(--line);border-radius:12px;padding:15px 17px;margin:12px 0;background:#fff}.lesson-card b{color:var(--green)}.lesson-card p{margin:8px 0}.lesson-card ol{padding-left:22px}.lesson-card li{margin:5px 0}.quiz-q{padding:13px 0;border-bottom:1px solid var(--line)}.quiz-q label{display:block;margin:8px 0;color:var(--ink);font-size:14px}.quiz-q input{margin-right:8px}.quiz-result{font-weight:bold;color:var(--green);margin-top:12px}.course-dialog{max-width:760px;max-height:88vh;overflow:auto}.course-dialog h2{margin-right:35px}.course-intro{color:var(--muted);margin-top:-3px}.module-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:20px 0}.module-item{background:#f8f6f0;border:1px solid var(--line);border-radius:10px;padding:12px 14px;font-size:14px}.module-item b{display:block;color:var(--green);font-size:11px;letter-spacing:1px;margin-bottom:3px}.course-bottom{background:#edf3ef;border-radius:12px;padding:16px;margin-top:16px}.course-bottom strong{color:var(--green)}.course-bottom p{margin:5px 0 0;color:var(--muted);font-size:13px}@media(max-width:560px){.module-list{grid-template-columns:1fr}}
@media(max-width:700px){.band{grid-template-columns:1fr}header{align-items:flex-start}.brand-logo{width:150px}nav{gap:12px}.hero{padding-top:55px}}

.character-section{padding:48px 0 10px}
.character-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.character-card{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;box-shadow:0 8px 24px #173b2a0b}
.character-portrait{height:230px;background:linear-gradient(145deg,#e7f0e9,#f7f3e9);display:flex;align-items:flex-end;justify-content:center;overflow:hidden}
.character-portrait img{height:100%;width:100%;object-fit:contain;object-position:center bottom;animation:characterFloat 3.4s ease-in-out infinite;transform-origin:center bottom}
.character-card:nth-child(2) img{animation-delay:.35s}.character-card:nth-child(3) img{animation-delay:.7s}.character-card:nth-child(4) img{animation-delay:1.05s}
@keyframes characterFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
.character-copy{padding:14px 16px 17px}.character-copy h3{margin:0;color:var(--green);font: bold 19px Georgia,serif}.character-copy p{font-size:13px;color:var(--muted);margin:4px 0 0}
.character-label{display:inline-block;font-size:10px;letter-spacing:1px;text-transform:uppercase;color:#735c2c;background:#f5efdf;border-radius:20px;padding:4px 8px;margin-bottom:7px}
@media(max-width:800px){.character-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.character-grid{grid-template-columns:1fr 1fr}.character-portrait{height:190px}}


.classroom-section{padding:58px max(5vw,22px);background:#f2eee3}
.classroom-section .section-head{max-width:850px;margin:0 auto 24px}
.scene-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}
.scene-tab{border:1px solid #d9d1bd;background:#fffaf0;color:#174d3d;border-radius:30px;padding:10px 16px;font-weight:700;cursor:pointer}
.scene-tab.active{background:#064E3B;color:#fff;border-color:#064E3B}
.scene-stage{max-width:1050px;margin:auto;background:linear-gradient(135deg,#e4efe6,#fff7e7);border:1px solid #e1d7c2;border-radius:22px;overflow:hidden;display:grid;grid-template-columns: minmax(230px, .8fr) 1.2fr;min-height:350px;box-shadow:0 16px 38px #173b2a12}
.scene-visual{display:flex;align-items:flex-end;justify-content:center;min-height:350px;padding:12px 12px 0;overflow:hidden}
.scene-visual img{height:335px;max-width:100%;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 8px 8px #183b2b20);animation:sceneEnter .8s ease both, characterFloat 3.4s ease-in-out .8s infinite}
.scene-copy{padding:36px 34px;align-self:center}
.scene-eyebrow{color:#987735;text-transform:uppercase;letter-spacing:1.7px;font-size:11px;font-weight:800}
.scene-copy h3{font:700 27px Georgia,serif;color:#064E3B;margin:8px 0 12px}
.speech-bubble{background:white;border:1px solid #e4dccb;border-radius:16px;padding:17px 19px;box-shadow:0 6px 18px #193e2e0d;font-size:16px;line-height:1.6}
.speaker{font-weight:800;color:#0b6650;display:block;margin-bottom:4px}
.scene-controls{display:flex;gap:10px;align-items:center;margin-top:17px;flex-wrap:wrap}
.scene-next{background:#064E3B;color:white;border:0;border-radius:24px;padding:11px 18px;font-weight:700;cursor:pointer}
.scene-note{font-size:12px;color:#66736d;margin-top:13px}
@keyframes sceneEnter{from{opacity:0;transform:translateY(18px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:700px){.scene-stage{grid-template-columns:1fr}.scene-visual{min-height:240px;height:240px}.scene-visual img{height:235px}.scene-copy{padding:22px}.scene-copy h3{font-size:23px}}


.scene-visual.duo{gap:0;padding-left:0;padding-right:0;align-items:flex-end}
.scene-visual.duo img{width:50%;height:335px;max-width:50%;object-fit:contain;object-position:center bottom;flex:0 0 50%}
.scene-visual.duo img[hidden]{display:none}
@media(max-width:700px){.scene-visual.duo{min-height:240px;height:240px}.scene-visual.duo img{height:235px;max-width:50%;width:50%}}


.module-item.is-locked{opacity:.55;cursor:not-allowed;border-style:dashed}.module-item.is-done{border-color:#0b6650;background:#edf6f1}.module-status{display:block;font-size:.82rem;margin-top:6px;color:#557166}.progress-wrap{margin:12px 0 18px;padding:12px;border-radius:12px;background:#f1f5ef}.progress-track{height:9px;background:#dce5dd;border-radius:99px;overflow:hidden}.progress-fill{height:100%;background:#0b6650;width:0;transition:width .2s}.integrated-complete{margin:18px 0;padding:16px;border:1px solid #d6e3d9;border-radius:12px;background:#f5f8f4}.integrated-complete button:disabled{opacity:.45;cursor:not-allowed}
.parent-profile-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.parent-profile-heading h3{margin:0}.parent-profile-heading .portal-small{font-size:12px;padding:7px 10px;border:1px solid #d8cfc0;border-radius:9px;background:#fff;color:#6b5540;cursor:pointer}

.role-demo{padding:70px 24px;background:#f0eee6}.role-demo-wrap{max-width:1120px;margin:auto}.role-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:24px 0}.role-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:20px}.role-card h3{margin:8px 0}.role-card p{font-size:13px;color:var(--muted)}.role-card button{border:0;border-radius:9px;background:var(--green);color:#fff;padding:10px 14px;font-weight:bold;cursor:pointer}.role-result{background:#fff;border:1px solid var(--line);border-radius:14px;padding:20px;min-height:110px}.role-tag{display:inline-block;background:#e7efe9;color:var(--green);padding:4px 9px;border-radius:20px;font-size:11px;font-weight:bold}@media(max-width:760px){.role-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){.role-grid{grid-template-columns:1fr}}



.mosque-portal{padding:54px 0;background:#f7f3e9}
.portal-wrap{max-width:1160px;margin:auto;padding:0 24px}
.portal-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:24px}
.portal-panel{background:#fff;border:1px solid #e7e0d2;border-radius:18px;padding:22px;box-shadow:0 8px 24px rgba(22,45,35,.05)}
.portal-panel h3{margin:0 0 8px;color:#064e3b}
.portal-muted{color:#66756d;font-size:.92rem}
.portal-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:20px 0}
.portal-stat{background:#fff;border:1px solid #e7e0d2;border-radius:14px;padding:16px}
.portal-stat strong{display:block;font-size:1.6rem;color:#064e3b}
.portal-form{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}
.portal-form input,.portal-form select,.portal-panel select,.portal-panel textarea{width:100%;padding:11px 12px;border:1px solid #d7dfd8;border-radius:10px;font:inherit;background:white;color:#20332b}
.portal-form button{grid-column:1/-1;justify-self:start}
.portal-student{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #edf0eb}
.portal-student:last-child{border-bottom:0}
.portal-student small{display:block;color:#718078}
.portal-progress{height:8px;background:#edf0eb;border-radius:99px;overflow:hidden;margin-top:7px;min-width:100px}
.portal-progress span{display:block;height:100%;background:#0b6650;border-radius:99px}
.portal-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.portal-actions button,.portal-small{border:1px solid #cbd8cf;background:#f8faf8;border-radius:9px;padding:8px 11px;color:#064e3b;font:inherit;cursor:pointer}
.portal-report{background:#f7faf7;border:1px dashed #b8c9bd;border-radius:12px;padding:14px;white-space:pre-wrap;min-height:90px;margin-top:12px}
.portal-disclaimer{font-size:.84rem;color:#6c776f;margin-top:18px}
@media(max-width:760px){.portal-grid{grid-template-columns:1fr}.portal-stats{grid-template-columns:repeat(3,1fr)}.portal-form{grid-template-columns:1fr}.portal-form button{grid-column:auto}}



.parent-portal{padding:54px 0;background:#fff}
.parent-wrap{max-width:1160px;margin:auto;padding:0 24px}
.parent-grid{display:grid;grid-template-columns:1fr 1.15fr;gap:18px;margin-top:24px}
.parent-panel{background:#fbfcfa;border:1px solid #e4eae4;border-radius:18px;padding:22px}
.parent-panel h3{margin:0 0 8px;color:#064e3b}
.parent-form{display:grid;gap:10px;margin-top:14px}
.parent-form input,.parent-form select,.parent-panel select{width:100%;padding:11px 12px;border:1px solid #d7dfd8;border-radius:10px;font:inherit;background:#fff;color:#20332b}
.child-switcher{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}
.child-chip{border:1px solid #cbd8cf;background:#fff;border-radius:999px;padding:9px 14px;color:#064e3b;cursor:pointer;font:inherit}
.child-chip.active{background:#064e3b;color:#fff;border-color:#064e3b}
.child-summary{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:14px 0}
.child-metric{background:#fff;border:1px solid #e5ebe5;border-radius:12px;padding:14px}
.child-metric strong{display:block;font-size:1.35rem;color:#064e3b}
.child-course{padding:12px 0;border-bottom:1px solid #e9eee9}
.child-course:last-child{border:0}
.child-course-head{display:flex;justify-content:space-between;gap:10px;align-items:center}
.child-bar{height:8px;border-radius:99px;background:#e9eee9;overflow:hidden;margin-top:8px}
.child-bar span{display:block;height:100%;background:#0b6650;border-radius:99px}
.parent-hint{font-size:.84rem;color:#6c776f;margin-top:16px}
@media(max-width:760px){.parent-grid{grid-template-columns:1fr}.child-summary{grid-template-columns:1fr 1fr}}



.learner-dashboard{padding:56px 0;background:#f7f3e9}
.learner-wrap{max-width:1160px;margin:auto;padding:0 24px}
.learner-layout{display:grid;grid-template-columns: minmax(280px,.85fr) minmax(0,1.5fr);gap:18px;margin-top:24px}
.learner-panel{background:#fff;border:1px solid #e7e0d2;border-radius:18px;padding:22px}
.learner-panel h3{margin:0 0 10px;color:#064e3b}
.learner-panel select,.learner-panel input{width:100%;padding:11px 12px;border:1px solid #d7dfd8;border-radius:10px;font:inherit;background:white;color:#20332b}
.learner-progress-track{height:10px;border-radius:99px;background:#edf0eb;overflow:hidden;margin:10px 0}
.learner-progress-track span{display:block;height:100%;background:#0b6650;border-radius:99px;transition:width .2s}
.learner-module{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center;padding:13px 0;border-bottom:1px solid #edf0eb}
.learner-module:last-child{border-bottom:0}
.learner-module small{display:block;color:#738078;margin-top:3px}
.learner-state{font-size:.78rem;border-radius:99px;padding:5px 9px;background:#f0f2ef;color:#59675f;white-space:nowrap}
.learner-state.done{background:#e5f3eb;color:#17603e}
.learner-state.locked{background:#f2f0eb;color:#827b6d}
.learner-module-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:8px}
.learner-module-actions button{border:1px solid #cad8ce;background:#f8faf8;color:#064e3b;padding:7px 10px;border-radius:9px;font:inherit;cursor:pointer}
.learner-module-actions button:disabled{opacity:.45;cursor:not-allowed}
.learner-certificate{margin-top:16px;border:1px dashed #c7a45b;background:#fffcf3;border-radius:14px;padding:16px}
.learner-certificate h4{margin:0 0 6px;color:#064e3b}
.learner-note{font-size:.84rem;color:#6c776f;margin-top:16px}
@media(max-width:760px){.learner-layout{grid-template-columns:1fr}.learner-module{grid-template-columns:1fr}.learner-state{justify-self:start}}



.youth-teacher-preview{margin-top:2rem;padding:1.5rem;border:1px solid rgba(199,164,91,.45);border-radius:22px;background:linear-gradient(135deg,rgba(6,78,59,.07),rgba(199,164,91,.08))}
.youth-teacher-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin:1rem 0}
.youth-teacher-card{overflow:hidden;border-radius:16px;background:#fff;text-align:center;padding:0 0 1rem;box-shadow:0 8px 24px rgba(0,0,0,.07)}
.youth-teacher-card img{display:block;width:100%;height:420px;object-fit:contain;object-position:center;background:#f7f3e9}
.youth-teacher-card h4{margin:.8rem 0 .2rem}.youth-teacher-card p{margin:0;color:#53645d}
.youth-teacher-dialogue{padding:1rem;border-radius:14px;background:rgba(255,255,255,.8);line-height:1.6}
.youth-teacher-dialogue p{margin:.6rem 0}.small-note{font-size:.85rem;color:#63736c;margin-top:.8rem}
@media(max-width:600px){.youth-teacher-grid{grid-template-columns:1fr}.youth-teacher-card img{height:420px}}



#youthTeacherPreview .youth-teacher-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
#youthTeacherPreview .youth-teacher-card{display:block!important;visibility:visible!important;overflow:hidden;border-radius:16px;background:#fff;text-align:center}
#youthTeacherPreview .youth-teacher-card img{display:block!important;visibility:visible!important;opacity:1!important;width:100%!important;height:420px!important;object-fit:contain!important;background:#f7f3e9}
@media(max-width:600px){#youthTeacherPreview .youth-teacher-grid{grid-template-columns:1fr}}



.integrated-lesson{display:grid;gap:14px}
.integrated-section{background:rgba(6,78,59,.045);border:1px solid rgba(6,78,59,.12);border-radius:14px;padding:15px}
.integrated-section h3{font-size:1rem;margin:0 0 7px;color:#064e3b}
.integrated-section p{line-height:1.65;margin:0;white-space:pre-line}
.integrated-question{padding:12px 0;border-top:1px solid rgba(6,78,59,.12)}
.integrated-answer{display:flex;align-items:flex-start;gap:9px;padding:8px 10px;margin:6px 0;border:1px solid rgba(6,78,59,.14);border-radius:10px;cursor:pointer}
.integrated-answer input{margin-top:4px;accent-color:#0b6650}
.integrated-result{min-height:1.3em;font-weight:700;margin-top:8px!important}
.integrated-result.correct{color:#0b6650}.integrated-result.retry{color:#9a5b14}



.auth-overlay{position:fixed;inset:0;background:rgba(7,25,20,.72);z-index:99999;display:none;align-items:center;justify-content:center;padding:18px;overflow:auto}
.auth-overlay.open{display:flex}.auth-card{background:#fffdf7;color:#18352c;width:min(560px,100%);max-height:92vh;overflow:auto;border-radius:20px;padding:26px;box-shadow:0 24px 80px #0005;position:relative}
.auth-card h2{margin:0 36px 8px 0;color:#064e3b}.auth-close{position:absolute;right:16px;top:12px;border:0;background:transparent;font-size:28px;cursor:pointer;color:#345}
.auth-tabs{display:flex;gap:8px;margin:18px 0}.auth-tabs button,.auth-submit{border:0;border-radius:10px;padding:11px 16px;cursor:pointer;font-weight:700}.auth-tabs button{background:#e8eee9;color:#164b3b}.auth-tabs button.active,.auth-submit{background:#064e3b;color:white}
.auth-card label{display:block;font-weight:600;margin:12px 0 5px}.auth-card input,.auth-card select{box-sizing:border-box;width:100%;padding:12px;border:1px solid #cbd5ce;border-radius:9px;background:white;font:inherit}.auth-submit{width:100%;margin-top:18px}.auth-note{background:#f3eee0;border-left:4px solid #c7a45b;padding:12px;border-radius:8px;font-size:.92rem;margin-top:14px}.auth-result{display:none;margin-top:14px;padding:12px;border-radius:8px;background:#e8f4ed;color:#164b3b}.auth-role-fields{display:none}.auth-role-fields.show{display:block}


/* ===== Mekteb Online Animated Lesson Video Player & Rich Module UI ===== */
.mvid-shell{background:#0b2b22;border-radius:20px;padding:14px;margin:14px 0 22px;box-shadow:0 16px 40px rgba(6,78,59,.22);color:#fffdf7}
.mvid-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.mvid-tab{border:1px solid rgba(245,196,81,.45);background:rgba(255,255,255,.08);color:#fffdf7;padding:8px 14px;border-radius:10px;cursor:pointer;font-weight:700;font-size:.88rem}
.mvid-tab.active{background:#f5c451;color:#0b2b22;border-color:#f5c451}
.mvid-canvas-wrap{position:relative;border-radius:14px;overflow:hidden;background:#06382b;aspect-ratio:16/9}
.mvid-canvas{width:100%;height:100%;display:block;cursor:pointer}
.mvid-big-play{position:absolute;inset:0;margin:auto;width:74px;height:74px;border-radius:50%;border:3px solid #f5c451;background:rgba(6,78,59,.84);color:#f5c451;font-size:30px;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 10px 30px rgba(0,0,0,.45);transition:transform .15s ease}
.mvid-big-play:hover{transform:scale(1.08)}
.mvid-mp4{width:100%;border-radius:14px;background:#000;max-height:460px;display:block}
.mvid-scrubber-row{display:flex;align-items:center;gap:12px;margin:12px 2px 8px}
.mvid-scrubber{flex:1;accent-color:#f5c451;cursor:pointer}
.mvid-time{font-size:.84rem;font-variant-numeric:tabular-nums;color:#e2e8f0;min-width:86px;text-align:right}
.mvid-controls{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}
.mvid-btn{border:1px solid rgba(255,255,255,.22);background:rgba(255,255,255,.1);color:#fffdf7;padding:8px 13px;border-radius:10px;cursor:pointer;font-weight:600;font-size:.88rem}
.mvid-btn:hover{background:rgba(255,255,255,.18)}
.mvid-btn-primary{background:#10b981;border-color:#10b981;color:#06281f;font-weight:700}
.mvid-btn-gold{background:rgba(245,196,81,.18);border-color:#f5c451;color:#fde68a;margin-left:auto}
.mvid-chapters{display:flex;flex-wrap:wrap;gap:6px;padding-top:8px;border-top:1px solid rgba(255,255,255,.12)}
.mvid-chapter{border:0;background:rgba(255,255,255,.08);color:#cbd5e1;padding:6px 11px;border-radius:999px;font-size:.82rem;cursor:pointer;font-weight:600}
.mvid-chapter.active{background:#f5c451;color:#0b2b22}

.arabic-spotlight-box{background:#fbf7ea;border:2px solid #d4af37;border-radius:16px;padding:16px 20px;margin:14px 0;text-align:center}
.arabic-spotlight-label{font-size:.78rem;text-transform:uppercase;letter-spacing:.08em;color:#8a6a18;font-weight:700;margin-bottom:6px}
.arabic-spotlight-text{font-size:2rem;line-height:1.6;color:#064e3b;font-family:"Geeza Pro","Traditional Arabic",serif;direction:rtl}

.key-points-box{background:#eef7f3;border-left:4px solid #064e3b;border-radius:12px;padding:14px 18px;margin:14px 0}
.key-points-box h3{margin:0 0 8px;color:#064e3b;font-size:1.05rem}
.key-points-box ul{margin:0;padding-left:20px}
.key-points-box li{margin:5px 0;color:#18352c}

.integrated-result.correct{color:#065f46;background:#d1fae5;padding:8px 12px;border-radius:8px;margin-top:8px;font-weight:600}
.integrated-result.retry{color:#991b1b;background:#fee2e2;padding:8px 12px;border-radius:8px;margin-top:8px;font-weight:600}
.quiz-submit-banner{margin-top:12px;padding:12px 14px;border-radius:10px;font-weight:600}
.quiz-submit-banner.ok{background:#d1fae5;color:#065f46}
.quiz-submit-banner.fail{background:#fef3c7;color:#92400e}
.mvid-voice-badge{display:inline-flex;align-items:center;padding:6px 11px;border-radius:999px;background:rgba(16,185,129,.22);border:1px solid rgba(16,185,129,.55);color:#a7f3d0;font-size:.82rem;font-weight:700}


/* ===== Mekteb Mini – Spielerische Abenteuer-Schatzkarte, Sticker-Album & Minispiele ===== */
.mini-world-wrap{background:linear-gradient(180deg,#eefcf6 0%,#fffdf5 100%);border:2px solid #a7f3d0;border-radius:24px;padding:18px;margin-top:10px}
.mini-world-hero{display:flex;flex-wrap:wrap;align-items:center;gap:14px;background:linear-gradient(135deg,#065f46,#0f766e);color:#fffdf7;padding:16px 18px;border-radius:18px;margin-bottom:18px}
.mini-hero-avatars{display:flex;align-items:center}
.mini-hero-avatars img{width:54px;height:54px;border-radius:50%;object-fit:cover;border:3px solid #f5c451;background:#fff}
.mini-hero-avatars img:last-child{margin-left:-12px}
.mini-hero-copy{flex:1;min-width:190px}
.mini-hero-copy h3{margin:0 0 4px;color:#fffdf7;font-size:1.25rem}
.mini-hero-copy p{margin:0;color:#d1fae5;font-size:.95rem}
.mini-listen-big{border:0;border-radius:999px;background:#f5c451;color:#0b2b22;font-weight:800;font-size:.96rem;padding:10px 18px;cursor:pointer;box-shadow:0 6px 16px rgba(0,0,0,.18);transition:transform .14s ease}
.mini-listen-big:hover{transform:scale(1.04)}

.mini-adventure-path{display:flex;flex-direction:column;gap:14px;position:relative;padding:6px 4px 18px}
.mini-node-wrap{display:flex}
.mini-node-wrap.is-left{justify-content:flex-start}
.mini-node-wrap.is-right{justify-content:flex-end}
.mini-node{display:flex;align-items:center;gap:14px;background:#fff;border:2px solid #d1fae5;border-radius:22px;padding:12px 16px;width:min(100%,460px);position:relative;box-shadow:0 8px 22px rgba(6,78,59,.08);transition:transform .16s ease}
.mini-node.is-current{border-color:#f5c451;box-shadow:0 12px 28px rgba(245,196,81,.32);background:#fffef6}
.mini-node.is-done{border-color:#10b981;background:#f0fdf4}
.mini-node.is-locked{opacity:.62;background:#f8fafc;border-color:#e2e8f0}
.mini-mascot-pill{position:absolute;top:-16px;right:14px;display:flex;background:#f5c451;padding:3px 6px;border-radius:999px;box-shadow:0 4px 12px rgba(0,0,0,.18)}
.mini-mascot-pill img{width:28px;height:28px;border-radius:50%;object-fit:cover;border:2px solid #fff}
.mini-mascot-pill img:last-child{margin-left:-6px}
.mini-node-circle{width:76px;height:76px;flex-shrink:0;border-radius:50%;border:4px solid #fff;background:var(--node-color,#10b981);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;position:relative;box-shadow:0 8px 18px rgba(0,0,0,.16);transition:transform .15s ease}
.mini-node.is-locked .mini-node-circle{background:#94a3b8}
.mini-node.is-current .mini-node-circle{animation:miniPulse 1.8s infinite}
.mini-node-circle:hover{transform:scale(1.07)}
.mini-node-num{position:absolute;top:-4px;left:-4px;width:24px;height:24px;border-radius:50%;background:#064e3b;color:#fff;font-size:.76rem;font-weight:800;display:flex;align-items:center;justify-content:center;border:2px solid #fff}
.mini-node-icon{font-size:2rem;line-height:1}
.mini-node-stars{position:absolute;bottom:-10px;background:#fff;border-radius:999px;padding:1px 6px;font-size:.72rem;box-shadow:0 2px 6px rgba(0,0,0,.14)}
.mini-node-play{position:absolute;bottom:-8px;background:#f5c451;color:#0b2b22;border-radius:999px;padding:1px 9px;font-size:.76rem;font-weight:900;box-shadow:0 2px 8px rgba(0,0,0,.2)}
.mini-node-meta{flex:1;min-width:0}
.mini-node-meta strong{display:block;color:#064e3b;font-size:1rem;margin-bottom:6px}
.mini-node-btns{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.mini-speak-chip{border:0;background:#e0f2fe;color:#0369a1;width:36px;height:36px;border-radius:50%;font-size:1.1rem;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.mini-go-chip{border:0;background:#064e3b;color:#fff;border-radius:999px;padding:7px 14px;font-weight:700;font-size:.88rem;cursor:pointer}

.mini-sticker-book{background:#fff;border:2px dashed #f5c451;border-radius:20px;padding:16px;margin-top:8px}
.mini-sticker-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;margin-bottom:12px}
.mini-sticker-head h4{margin:0;color:#064e3b;font-size:1.1rem}
.mini-sticker-pill{background:#fef3c7;color:#92400e;font-weight:800;padding:5px 12px;border-radius:999px;font-size:.86rem}
.mini-sticker-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:10px}
.mini-sticker-slot{border:2px solid #e2e8f0;background:#f8fafc;border-radius:16px;padding:10px 6px;display:flex;flex-direction:column;align-items:center;gap:4px;cursor:pointer;transition:transform .14s ease}
.mini-sticker-slot .mini-sticker-emoji{font-size:2rem;filter:grayscale(1) opacity(.32)}
.mini-sticker-slot small{font-size:.74rem;color:#64748b;text-align:center;line-height:1.2}
.mini-sticker-slot.owned{border-color:#f5c451;background:linear-gradient(180deg,#fffbeb,#fef3c7);box-shadow:0 4px 12px rgba(245,196,81,.28)}
.mini-sticker-slot.owned .mini-sticker-emoji{filter:none}
.mini-sticker-slot.owned small{color:#78350f;font-weight:700}
.mini-sticker-slot:hover{transform:translateY(-2px)}

/* ===== Playful 3-Step Kid Module Stage ===== */
.mini-stage-root{position:relative}
.mini-stepper{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 16px}
.mini-step-pill{flex:1;min-width:120px;border:2px solid #cbd5e1;background:#f8fafc;color:#334155;border-radius:14px;padding:11px 14px;font-weight:800;font-size:.98rem;cursor:pointer;transition:all .15s ease}
.mini-step-pill.active{background:#064e3b;color:#fff;border-color:#064e3b;box-shadow:0 6px 16px rgba(6,78,59,.22)}
.mini-nav-row{display:flex;justify-content:center;margin:18px 0 6px}
.mini-big-action{border:0;border-radius:999px;background:linear-gradient(135deg,#10b981,#059669);color:#fff;font-weight:800;font-size:1.12rem;padding:14px 28px;cursor:pointer;box-shadow:0 10px 24px rgba(16,185,129,.35);transition:transform .15s ease}
.mini-big-action:hover{transform:scale(1.04)}

.mini-game-head{display:flex;align-items:center;gap:14px;background:#eefcf6;border:2px solid #a7f3d0;border-radius:18px;padding:14px 16px;margin-bottom:16px}
.mini-avatar-sm{width:54px;height:54px;border-radius:50%;object-fit:cover;border:3px solid #f5c451;flex-shrink:0}
.mini-avatar-md{width:68px;height:68px;border-radius:50%;object-fit:cover;border:4px solid #f5c451;flex-shrink:0}
.mini-game-head h3{margin:0 0 4px;color:#064e3b;font-size:1.15rem}
.mini-game-head p{margin:0;color:#1e4d3e;font-size:.96rem}
.mini-speak-circle{margin-left:auto;width:52px;height:52px;flex-shrink:0;border-radius:50%;border:0;background:#f5c451;color:#0b2b22;font-size:1.5rem;cursor:pointer;box-shadow:0 6px 14px rgba(0,0,0,.15)}

/* Order Game */
.mini-order-chain{display:grid;grid-template-columns:repeat(auto-fit,minmax(92px,1fr));gap:10px;margin-bottom:16px}
.mini-order-slot{border:2px dashed #94a3b8;border-radius:16px;padding:10px 6px;text-align:center;background:#f8fafc;min-height:84px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}
.mini-order-slot span{font-size:1.8rem;font-weight:800;color:#64748b}
.mini-order-slot.next{border-color:#f5c451;background:#fffbeb;animation:miniPulse 1.6s infinite}
.mini-order-slot.filled{border-style:solid;border-color:#10b981;background:#ecfdf5}
.mini-order-slot.filled small{color:#065f46;font-weight:700;font-size:.76rem}
.mini-order-pool{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:12px}
.mini-order-card{position:relative;border-radius:18px;background:#fff;border:2px solid #cbd5e1;box-shadow:0 6px 14px rgba(0,0,0,.06);overflow:hidden}
.mini-order-card.used{opacity:.35;pointer-events:none}
.mini-card-speak{position:absolute;top:8px;right:8px;width:36px;height:36px;border-radius:50%;border:0;background:#fff;color:#0369a1;font-size:1.1rem;cursor:pointer;box-shadow:0 3px 8px rgba(0,0,0,.14);z-index:2}
.mini-card-tap{width:100%;border:0;background:transparent;padding:18px 12px 14px;display:flex;flex-direction:column;align-items:center;gap:8px;cursor:pointer}
.mini-card-emoji{font-size:2.6rem;line-height:1}
.mini-card-label{font-weight:700;color:#0f2922;font-size:.94rem;text-align:center}

/* Sort Game */
.mini-sort-card{background:#fffef5;border:3px solid #f5c451;border-radius:22px;padding:24px 18px;text-align:center;max-width:460px;margin:0 auto 16px;box-shadow:0 10px 24px rgba(0,0,0,.08)}
.mini-sort-progress{font-weight:800;color:#0f766e;margin-bottom:8px}
.mini-sort-emoji{font-size:4rem;line-height:1.1;margin-bottom:10px}
.mini-sort-text{font-size:1.15rem;font-weight:700;color:#064e3b;margin:0 0 14px}
.mini-sort-actions{display:flex;justify-content:center;gap:16px;flex-wrap:wrap}
.mini-sort-btn{border:0;border-radius:18px;padding:16px 32px;font-size:1.2rem;font-weight:800;cursor:pointer;min-width:170px;box-shadow:0 8px 18px rgba(0,0,0,.14);transition:transform .14s ease}
.mini-sort-btn:hover{transform:scale(1.05)}
.mini-sort-btn.good{background:#10b981;color:#fff}
.mini-sort-btn.bad{background:#f59e0b;color:#fff}
.mini-game-complete{text-align:center;padding:22px;background:#ecfdf5;border-radius:20px;border:2px solid #10b981}
.mini-win-emoji{font-size:2.8rem;margin-bottom:8px}

/* Memory Game */
.mini-memory-grid{display:grid;grid-template-columns:repeat(3,minmax(90px,1fr));gap:12px;max-width:520px;margin:0 auto}
.mini-mem-card{border:3px solid #cbd5e1;border-radius:18px;background:linear-gradient(135deg,#065f46,#0f766e);min-height:112px;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:10px;transition:transform .16s ease,background .2s ease}
.mini-mem-card:hover{transform:scale(1.03)}
.mini-mem-front{font-size:2.4rem}
.mini-mem-back{display:none;flex-direction:column;align-items:center;gap:4px}
.mini-mem-back strong{font-size:2.5rem;line-height:1}
.mini-mem-back small{font-size:.82rem;font-weight:700;color:#064e3b;text-align:center}
.mini-mem-card.flipped{background:#fffdf7;border-color:#f5c451}
.mini-mem-card.flipped .mini-mem-front{display:none}
.mini-mem-card.flipped .mini-mem-back{display:flex}
.mini-mem-card.matched{background:#ecfdf5;border-color:#10b981;box-shadow:0 6px 16px rgba(16,185,129,.22)}

/* Audio Picture Quiz */
.mini-quiz-shell{background:#fffdf7;border:2px solid #e2e8f0;border-radius:22px;padding:18px}
.mini-quiz-dots{display:flex;justify-content:center;gap:12px;margin-bottom:14px}
.mini-q-dot{width:38px;height:38px;border-radius:50%;background:#e2e8f0;color:#475569;font-weight:800;display:flex;align-items:center;justify-content:center}
.mini-q-dot.active{background:#f5c451;color:#0b2b22;transform:scale(1.12)}
.mini-q-dot.done{background:#10b981;color:#fff}
.mini-quiz-prompt{display:flex;align-items:center;gap:14px;background:linear-gradient(135deg,#064e3b,#0f766e);color:#fffdf7;padding:16px;border-radius:18px;margin-bottom:16px}
.mini-prompt-copy{flex:1}
.mini-speaker-tag{display:inline-block;background:#f5c451;color:#0b2b22;font-weight:800;font-size:.76rem;padding:2px 10px;border-radius:999px;margin-bottom:4px}
.mini-quiz-prompt h3{margin:0;color:#fffdf7;font-size:1.18rem;line-height:1.35}
.mini-answer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:14px}
.mini-answer-card{position:relative;border-radius:20px;background:var(--card-bg,#eefcf6);border:3px solid transparent;box-shadow:0 8px 20px rgba(0,0,0,.07);transition:transform .15s ease,border-color .2s ease}
.mini-answer-card:hover{transform:translateY(-3px);border-color:#f5c451}
.mini-answer-card.correct{border-color:#10b981;background:#d1fae5;transform:scale(1.03)}
.mini-answer-tap{width:100%;border:0;background:transparent;padding:22px 14px 18px;display:flex;flex-direction:column;align-items:center;gap:10px;cursor:pointer}
.mini-answer-emoji{font-size:3.2rem;line-height:1}
.mini-answer-text{font-weight:800;color:#064e3b;font-size:1rem;text-align:center;line-height:1.3}

.mini-feedback{margin-top:14px;min-height:28px;text-align:center;font-weight:800;font-size:1.02rem;border-radius:14px;padding:10px 14px}
.mini-feedback:empty{padding:0;min-height:0}
.mini-feedback.ok{background:#d1fae5;color:#065f46}
.mini-feedback.hint{background:#fef3c7;color:#92400e}

/* Celebration */
.mini-celebration{text-align:center;padding:24px 16px;background:linear-gradient(180deg,#fffbeb,#ecfdf5);border:3px solid #f5c451;border-radius:24px}
.mini-cel-avatars{display:flex;align-items:center;justify-content:center;gap:18px;margin-bottom:10px}
.mini-cel-avatars img{width:68px;height:68px;border-radius:50%;object-fit:cover;border:4px solid #f5c451}
.mini-sticker-trophy{width:96px;height:96px;border-radius:50%;background:var(--node-color,#10b981);border:5px solid #f5c451;display:flex;align-items:center;justify-content:center;font-size:3.2rem;box-shadow:0 12px 28px rgba(245,196,81,.45);animation:miniPulse 1.5s infinite}
.mini-cel-stars{font-size:2rem;margin:6px 0}
.mini-celebration h3{margin:4px 0 8px;color:#064e3b;font-size:1.4rem}
.mini-sticker-earned{font-weight:800;color:#92400e;font-size:1.08rem;margin:0 0 12px}
.mini-all-done{font-weight:800;color:#065f46;font-size:1.1rem}

/* Collapsible Parent Drawer */
.mini-parent-drawer{margin-top:20px;border:1px solid #cbd5e1;border-radius:14px;background:#f8fafc;padding:10px 14px}
.mini-parent-drawer summary{cursor:pointer;font-weight:700;color:#334155;font-size:.92rem}
.mini-parent-body{margin-top:12px;padding-top:10px;border-top:1px solid #e2e8f0;font-size:.94rem;color:#334155}
.mini-parent-body h4{margin:10px 0 4px;color:#064e3b}

/* Animations & Confetti */
.mini-confetti-layer{position:fixed;inset:0;pointer-events:none;z-index:100000;overflow:hidden}
.mini-confetti-piece{position:absolute;top:-30px;font-size:1.8rem;animation:miniConfettiFall 1.6s ease-in forwards}
@keyframes miniConfettiFall{0%{transform:translateY(0) rotate(0deg);opacity:1}100%{transform:translateY(95vh) rotate(360deg);opacity:0}}
@keyframes miniPulse{0%,100%{box-shadow:0 0 0 0 rgba(245,196,81,.55)}50%{box-shadow:0 0 0 14px rgba(245,196,81,0)}}
.wobble{animation:miniWobble .42s ease}
@keyframes miniWobble{0%,100%{transform:translateX(0)}20%{transform:translateX(-8px)}40%{transform:translateX(8px)}60%{transform:translateX(-6px)}80%{transform:translateX(6px)}}


/* ===== Integrierter Suren-Lernblock (Kinder, Jugend & Erwachsene) ===== */
.surah-module-box{background:linear-gradient(180deg,#fdfaf0 0%,#f5faf7 100%);border:2px solid #d4af37;border-radius:20px;padding:18px 20px;margin:18px 0;box-shadow:0 10px 28px rgba(6,78,59,.08)}
.surah-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid rgba(212,175,55,.4);padding-bottom:12px;margin-bottom:14px}
.surah-tag{display:inline-block;background:#064e3b;color:#f5c451;font-weight:800;font-size:.76rem;letter-spacing:.06em;text-transform:uppercase;padding:4px 10px;border-radius:999px;margin-bottom:4px}
.surah-head h3{margin:0;color:#064e3b;font-size:1.22rem}
.surah-ar-title{font-family:"Geeza Pro","Traditional Arabic",serif;font-size:1.75rem;color:#064e3b;direction:rtl;font-weight:700}
.surah-toolbar{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}
.surah-btn{border:1px solid #064e3b;background:#064e3b;color:#fffdf7;border-radius:10px;padding:8px 14px;font-weight:700;font-size:.88rem;cursor:pointer;transition:transform .12s ease}
.surah-btn:hover{transform:translateY(-1px)}
.surah-btn.alt{background:#fff;color:#064e3b}
.surah-verses{display:flex;flex-direction:column;gap:10px}
.surah-verse-card{background:#fff;border:1px solid #dce7e1;border-radius:14px;padding:12px 14px;display:flex;flex-direction:column;gap:6px}
.surah-verse-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.surah-verse-num{width:28px;height:28px;border-radius:50%;background:#eef7f3;color:#064e3b;font-weight:800;font-size:.82rem;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
.surah-verse-ar{flex:1;text-align:right;direction:rtl;font-family:"Geeza Pro","Traditional Arabic",serif;font-size:1.65rem;line-height:1.9;color:#064e3b}
.surah-verse-play{border:0;background:#fef3c7;color:#92400e;width:36px;height:36px;border-radius:50%;font-size:1rem;cursor:pointer;flex-shrink:0}
.surah-verse-play:hover{background:#fde68a}
.surah-verse-trl{font-size:.88rem;color:#0f766e;font-style:italic;margin:0}
.surah-verse-meaning{font-size:.95rem;color:#1f3a31;margin:0}
.surah-hide-trl .surah-verse-trl{display:none}
.surah-summary-box{background:#eef7f3;border-left:4px solid #0f766e;border-radius:10px;padding:12px 14px;margin-top:14px;font-size:.94rem;color:#18352c}
.surah-stage-tip{font-size:.9rem;color:#475569;margin:10px 0 12px}
.surah-checklist{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:8px;margin-top:10px}
.surah-check-item{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #cbd5e1;border-radius:10px;padding:8px 11px;cursor:pointer;font-weight:600;font-size:.88rem;color:#1e293b}
.surah-check-item input{width:18px;height:18px;accent-color:#064e3b}
.surah-check-item.checked{background:#ecfdf5;border-color:#10b981;color:#065f46}
.surah-save-status{font-size:.84rem;color:#065f46;margin-top:8px;min-height:18px;font-weight:600}


/* ===== Ilmihal-Lehrbücher, Abdest-/Gebets-Trainer & Gebets-Duas ===== */
.ilmihal-section {
  max-width: 1180px;
  margin: 48px auto;
  padding: 36px 28px;
  background: linear-gradient(180deg, #f6faf7 0%, #ffffff 100%);
  border: 1px solid #d7e6de;
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(22, 75, 59, 0.06);
}
.ilmihal-search-wrap {
  margin: 18px 0 20px;
}
.ilmihal-search-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.ilmihal-search-row input[type="search"] {
  flex: 1;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1.5px solid #c6dcd0;
  font-size: 15px;
  background: #fff;
  color: #162620;
}
.ilmihal-search-row input[type="search"]:focus {
  outline: none;
  border-color: #164b3b;
  box-shadow: 0 0 0 3px rgba(22, 75, 59, 0.12);
}
.ilmihal-search-results {
  margin-top: 12px;
  padding: 14px;
  background: #fff;
  border: 1px solid #d5e5dc;
  border-radius: 14px;
}
.ilmihal-search-count {
  font-size: 13px;
  font-weight: 700;
  color: #164b3b;
  margin-bottom: 10px;
}
.ilmihal-search-list {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
}
.ilmihal-search-hit {
  text-align: left;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #e1ece6;
  background: #f9fcfa;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  color: #182923;
}
.ilmihal-search-hit:hover {
  background: #ebf5ef;
  border-color: #164b3b;
}
.ilmihal-search-hit .hit-sub {
  font-size: 12.5px;
  color: #536860;
}
.ilmihal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}
.ilmihal-tab {
  padding: 11px 16px;
  border-radius: 999px;
  border: 1.5px solid #cfe0d7;
  background: #fff;
  color: #1b3a30;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.ilmihal-tab:hover {
  border-color: #164b3b;
  background: #eff7f2;
}
.ilmihal-tab.active {
  background: #164b3b;
  color: #fff;
  border-color: #164b3b;
  box-shadow: 0 6px 16px rgba(22, 75, 59, 0.22);
}
.ilmihal-book-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--book-accent, #164b3b), #10382c);
  color: #fff;
  margin-bottom: 20px;
}
.ilmihal-book-banner h3 {
  margin: 6px 0 4px;
  color: #fff;
  font-size: 21px;
}
.ilmihal-book-banner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  max-width: 680px;
}
.ilmihal-age-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.ilmihal-progress-pill {
  min-width: 210px;
  background: rgba(255, 255, 255, 0.14);
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 13px;
}
.ilmihal-bar {
  margin-top: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  overflow: hidden;
}
.ilmihal-bar span {
  display: block;
  height: 100%;
  background: #f4d38a;
  border-radius: 999px;
  transition: width 0.25s ease;
}
.ilmihal-reader-grid {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 20px;
  align-items: start;
}
.ilmihal-sidebar {
  background: #fff;
  border: 1px solid #d9e7df;
  border-radius: 16px;
  padding: 14px;
}
.ilmihal-sidebar-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #556b62;
  margin-bottom: 10px;
  padding: 0 6px;
}
.ilmihal-ch-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ilmihal-ch-btn {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: #f7fbf8;
  color: #193027;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  transition: all 0.15s ease;
}
.ilmihal-ch-btn:hover {
  background: #e9f4ee;
  border-color: #bed7ca;
}
.ilmihal-ch-btn.active {
  background: #164b3b;
  color: #fff;
  font-weight: 600;
}
.ilmihal-ch-btn.is-read:not(.active) {
  border-color: #b7dcc8;
  background: #edf8f2;
}
.ilmihal-ch-num {
  flex-shrink: 0;
  font-weight: 700;
  font-size: 12.5px;
}
.ilmihal-ch-name {
  flex: 1;
  line-height: 1.3;
}
.ilmihal-ch-badges {
  flex-shrink: 0;
  font-size: 12px;
}
.ilmihal-reader {
  background: #fff;
  border: 1px solid #d9e7df;
  border-radius: 18px;
  padding: 24px;
}
.ilmihal-ch-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eaf4ee;
  color: #164b3b;
  margin-bottom: 8px;
}
.ilmihal-reader-head h3 {
  margin: 0 0 8px;
  font-size: 24px;
  color: #12362a;
}
.ilmihal-summary {
  margin: 0 0 16px;
  color: #465b53;
  font-size: 15px;
  line-height: 1.55;
}
.ilmihal-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.ilmihal-section-card {
  margin-top: 16px;
  padding: 18px;
  border-radius: 14px;
  background: #fafdfb;
  border: 1px solid #e1ede6;
}
.ilmihal-section-card h4 {
  margin: 0 0 8px;
  color: #164b3b;
  font-size: 17px;
}
.ilmihal-section-card p {
  margin: 0;
  color: #22342e;
  line-height: 1.65;
  font-size: 15px;
}
.ilmihal-bullets {
  margin: 12px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 7px;
  color: #20322c;
  font-size: 14.5px;
  line-height: 1.55;
}
.ilmihal-ar-box {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f2f9f5, #fdf9ef);
  border: 1px solid #cde2d6;
}
.ilmihal-ar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.ilmihal-ar-text {
  flex: 1;
  direction: rtl;
  text-align: right;
  font-size: 22px;
  line-height: 1.9;
  color: #113a2d;
  font-family: "Amiri", "Geeza Pro", "Traditional Arabic", serif;
}
.ilmihal-ar-trl {
  margin: 8px 0 4px;
  font-style: italic;
  color: #1b5e4b;
  font-size: 14px;
}
.ilmihal-ar-meaning {
  margin: 0;
  color: #273b34;
  font-size: 14px;
  line-height: 1.55;
}
.ilmihal-callouts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}
.ilmihal-callout {
  padding: 15px 16px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.55;
}
.ilmihal-callout strong {
  display: block;
  margin-bottom: 5px;
}
.ilmihal-callout p {
  margin: 0;
}
.ilmihal-callout.takeaway {
  background: #fdf6e6;
  border: 1px solid #ebd49f;
  color: #543b10;
}
.ilmihal-callout.task {
  background: #eaf5ef;
  border: 1px solid #c0dfce;
  color: #144435;
}
.ilmihal-related {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed #d1e2d8;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #183d30;
}
.ilmihal-mod-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ilmihal-mod-chip {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid #164b3b;
  background: #fff;
  color: #164b3b;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}
.ilmihal-mod-chip:hover {
  background: #164b3b;
  color: #fff;
}

/* Abdest & Gebets-Trainer */
.trainer-stack {
  display: grid;
  gap: 20px;
}
.trainer-card {
  background: #fff;
  border: 1px solid #d7e6de;
  border-radius: 18px;
  padding: 22px;
}
.trainer-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}
.trainer-head h3 {
  margin: 0 0 4px;
  color: #133c2f;
}
.trainer-head p {
  margin: 0;
  color: #4c6259;
  font-size: 14px;
}
.trainer-counter {
  padding: 6px 12px;
  border-radius: 999px;
  background: #ebf5ef;
  color: #164b3b;
  font-weight: 700;
  font-size: 13px;
}
.trainer-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.trainer-dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #cbe0d5;
  background: #f7fbf9;
  color: #1d3c31;
  font-weight: 700;
  cursor: pointer;
}
.trainer-dot.is-fard {
  border-color: #d49b35;
  background: #fff8e8;
  color: #7c4d09;
}
.trainer-dot.active {
  background: #164b3b;
  border-color: #164b3b;
  color: #fff;
  transform: scale(1.08);
}
.trainer-stage {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 18px;
  border-radius: 16px;
  background: #f8fcf9;
  border: 1px solid #dfece5;
}
.trainer-icon-badge {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background: #eaf4ee;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  flex-shrink: 0;
}
.trainer-stage-copy {
  flex: 1;
}
.trainer-stage-copy h4 {
  margin: 6px 0 8px;
  font-size: 19px;
  color: #133a2e;
}
.trainer-stage-copy p {
  margin: 0 0 12px;
  color: #243831;
  line-height: 1.6;
}
.trainer-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.trainer-badge {
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.trainer-badge.fard {
  background: #fcebc4;
  color: #7c4b08;
}
.trainer-badge.sunna {
  background: #e3f2ea;
  color: #164b3b;
}
.trainer-badge.count {
  background: #eef2f5;
  color: #364958;
}
.trainer-ar-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #d1e3d9;
}
.trainer-ar-big, .trainer-ar-line > span {
  direction: rtl;
  font-size: 21px;
  color: #123e30;
  font-family: "Amiri", "Geeza Pro", serif;
}
.trainer-ar-trl {
  font-size: 13.5px;
  font-style: italic;
  color: #1d5d49;
  margin-top: 3px;
}
.trainer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.rakaat-table-wrap {
  overflow-x: auto;
  margin-top: 12px;
}
.rakaat-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.rakaat-table th, .rakaat-table td {
  padding: 11px 12px;
  border-bottom: 1px solid #e2ede7;
  text-align: center;
}
.rakaat-table th:first-child, .rakaat-table td:first-child {
  text-align: left;
}
.rakaat-table thead th {
  background: #eff7f2;
  color: #164b3b;
  font-weight: 700;
}
.rakaat-fard {
  display: inline-block;
  min-width: 28px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fcebc4;
  color: #7c4b08;
  font-weight: 800;
}

/* Gebets- & Alltags-Duas */
.duas-head-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.duas-head-bar h3 {
  margin: 0 0 4px;
  color: #133c2f;
}
.duas-head-bar p {
  margin: 0;
  color: #4c6259;
  font-size: 14px;
}
.duas-grid {
  display: grid;
  gap: 16px;
}
.dua-card {
  background: #fff;
  border: 1.5px solid #d7e6de;
  border-radius: 16px;
  padding: 18px 20px;
}
.dua-card.is-learned {
  border-color: #2f855a;
  background: #f7fdf9;
}
.dua-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
}
.dua-card-head h4 {
  margin: 0 0 4px;
  font-size: 17px;
  color: #133b2e;
}
.dua-when {
  font-size: 13px;
  color: #50665d;
}
.dua-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* Verlinkungs-Karte innerhalb der Kurs-Module */
.module-ilmihal-link {
  margin: 18px 0;
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f3faf6, #fdf8ec);
  border: 1.5px solid #c7dfd2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.module-ilmihal-copy {
  flex: 1;
  min-width: 220px;
}
.module-ilmihal-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #164b3b;
  margin-bottom: 4px;
}
.module-ilmihal-copy h4 {
  margin: 0 0 4px;
  font-size: 16.5px;
  color: #12362a;
}
.module-ilmihal-copy p {
  margin: 0;
  font-size: 13.5px;
  color: #465d54;
}

@media (max-width: 860px) {
  .ilmihal-section { padding: 24px 16px; }
  .ilmihal-reader-grid { grid-template-columns: 1fr; }
  .ilmihal-callouts { grid-template-columns: 1fr; }
  .trainer-stage { flex-direction: column; }
}


/* ===== Qāriʾ Tajwīd Bar, Suren-Akademie Lücken-Modus, Sufara-Trainer, Streak & Moschee-Tools ===== */
.qari-control-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #d5e5dc;
  border-radius: 14px;
  margin-bottom: 18px;
}
.qari-ctrl-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13.5px;
  font-weight: 600;
  color: #164b3b;
}
.qari-ctrl-group select {
  padding: 7px 12px;
  border-radius: 10px;
  border: 1.5px solid #c6dcd0;
  background: #f9fcfa;
  font-size: 13.5px;
  color: #142c24;
}
.qari-pill {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #c6dcd0;
  background: #f7fbf8;
  color: #164b3b;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.qari-pill.active {
  background: #164b3b;
  color: #fff;
  border-color: #164b3b;
}
.qari-playing-verse {
  border-color: #c9973e !important;
  background: linear-gradient(135deg, #fffdf4, #eef8f2) !important;
  box-shadow: 0 0 0 3px rgba(201, 151, 62, 0.25);
}
.sa-blurred .surah-verse-ar,
.sa-blurred .surah-verse-trl {
  filter: blur(7px);
  user-select: none;
  transition: filter 0.2s ease;
  cursor: pointer;
}
.sa-blurred.sa-peek .surah-verse-ar,
.sa-blurred.sa-peek .surah-verse-trl {
  filter: none;
}

/* Sufara 28 Buchstaben & Harakat */
.sufara-detail-card {
  display: flex;
  gap: 22px;
  align-items: center;
  padding: 22px;
  background: #fff;
  border: 1.5px solid #cfe2d8;
  border-radius: 18px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.sufara-big-letter {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  background: linear-gradient(135deg, #164b3b, #1d6b54);
  color: #fff;
  font-size: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  font-family: "Amiri", "Geeza Pro", serif;
  box-shadow: 0 10px 24px rgba(22, 75, 59, 0.22);
}
.sufara-detail-info {
  flex: 1;
  min-width: 240px;
}
.sufara-detail-info h3 {
  margin: 6px 0 4px;
  font-size: 22px;
  color: #133b2e;
}
.sufara-detail-info p {
  margin: 0 0 12px;
  color: #425a51;
}
.sufara-forms-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.sufara-forms-grid > div {
  background: #f5faf7;
  border: 1px solid #d9e8e0;
  border-radius: 12px;
  padding: 8px;
  text-align: center;
}
.sufara-forms-grid small {
  display: block;
  font-size: 11px;
  color: #556c63;
  margin-bottom: 2px;
}
.sufara-forms-grid b {
  font-size: 26px;
  color: #123c2f;
  font-family: "Amiri", "Geeza Pro", serif;
}
.sufara-syl-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #2f4940;
}
.sufara-syl-btn {
  padding: 6px 14px;
  border-radius: 12px;
  border: 1.5px solid #c9973e;
  background: #fff9eb;
  color: #6b460a;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  font-family: "Amiri", "Geeza Pro", serif;
}
.sufara-syl-btn:hover {
  background: #f7e4b6;
}
.sufara-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 10px;
  direction: rtl;
}
.sufara-tile {
  padding: 12px 6px;
  border-radius: 14px;
  border: 1.5px solid #d5e5dc;
  background: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}
.sufara-tile:hover {
  border-color: #164b3b;
  background: #edf7f1;
}
.sufara-tile.active {
  background: #164b3b;
  border-color: #164b3b;
  color: #fff;
}
.sufara-tile-ar {
  font-size: 32px;
  line-height: 1.2;
  font-family: "Amiri", "Geeza Pro", serif;
}
.sufara-tile-name {
  font-size: 11.5px;
  direction: ltr;
  opacity: 0.9;
}
.sufara-drills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.sufara-drill-btn {
  padding: 14px 10px;
  border-radius: 14px;
  border: 1.5px solid #cfe2d7;
  background: #f8fcf9;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.sufara-drill-btn:hover {
  border-color: #164b3b;
  background: #eaf5ef;
}
.drill-ar {
  font-size: 30px;
  color: #123b2e;
  font-family: "Amiri", "Geeza Pro", serif;
}
.drill-trl {
  font-size: 13px;
  color: #466157;
  font-weight: 600;
}
.sufara-quiz-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 560px;
  margin: 0 auto;
}
.sufara-quiz-btn {
  padding: 16px 8px;
  border-radius: 16px;
  border: 2px solid #cfe2d7;
  background: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.sufara-quiz-btn:hover {
  border-color: #164b3b;
  background: #eef8f2;
  transform: translateY(-2px);
}
.sufara-quiz-ar {
  font-size: 42px;
  color: #133b2e;
  font-family: "Amiri", "Geeza Pro", serif;
}
.sufara-quiz-name {
  font-size: 12.5px;
  color: #546c63;
}
.sufara-quiz-feedback {
  margin: 14px 0 0;
  font-weight: 700;
  font-size: 15px;
  color: #164b3b;
}

/* Streak & Urkunden-Leiste */
.streak-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 14px 18px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f3faf6, #fdf7e9);
  border: 1.5px solid #d4e5db;
}
.streak-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.streak-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #d5e5dc;
  font-size: 14px;
}
.streak-pill b {
  font-size: 17px;
  color: #164b3b;
}
.streak-pill small {
  color: #556b62;
  font-size: 12.5px;
}
.streak-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Moscheeportal Wochenaufgaben & Anwesenheit */
.mosque-code-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #eef7f2;
  border: 1px solid #c7dfd2;
  margin-bottom: 12px;
}
.mosque-code-val {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #164b3b;
}
.mosque-date-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
}
.mosque-att-list, .mosque-assign-list {
  display: grid;
  gap: 8px;
}
.mosque-att-row, .mosque-assign-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f9fcfa;
  border: 1px solid #deebe4;
}
.mosque-att-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.att-pill {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid #cddfd5;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.att-pill.present {
  background: #164b3b;
  color: #fff;
  border-color: #164b3b;
}
.att-pill.excused {
  background: #e9b949;
  color: #3d2800;
  border-color: #d6a431;
}
.att-pill.absent {
  background: #c53030;
  color: #fff;
  border-color: #c53030;
}
.mosque-assign-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
  color: #466056;
  margin-top: 4px;
}
@media (max-width: 640px) {
  .sufara-quiz-options { grid-template-columns: repeat(2, 1fr); }
  .sufara-forms-grid { grid-template-columns: repeat(2, 1fr); }
}


/* ===== Gebets-Simulator, Gebetszeiten & Qibla, Familien-Quiz-Duell, 30-Tage-Kalender, Ankündigungen & Admin ===== */
.ann-banner {
  max-width: 1180px;
  margin: 18px auto 0;
  padding: 14px 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fdf5e1, #eef8f2);
  border: 1.5px solid #e2c57e;
  color: #163d30;
  display: grid;
  gap: 6px;
  font-size: 14.5px;
}
.prayer-sim-card {
  border: 2px solid #164b3b !important;
  background: linear-gradient(180deg, #f8fcf9 0%, #ffffff 100%) !important;
}
.prayer-sim-stage {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 22px;
  align-items: start;
}
.prayer-sim-visual {
  background: #f2f9f5;
  border: 1.5px solid #cde2d6;
  border-radius: 18px;
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.prayer-svg {
  width: 200px;
  height: 150px;
}
.prayer-sim-copy h4 {
  margin: 0 0 6px;
  font-size: 20px;
  color: #12392c;
}
.prayer-sim-hint {
  margin: 0 0 10px;
  color: #365047;
  font-size: 15px;
  line-height: 1.55;
}
.prayer-sim-done {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #eaf7ef;
  border: 1.5px solid #2f855a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-weight: 700;
  color: #144d38;
}

/* Gebetszeiten & Qibla */
.pt-location-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #eef8f2, #fdf7ea);
  border: 1px solid #cce2d6;
  margin-bottom: 12px;
}
.pt-detected-city {
  margin-left: 8px;
  font-size: 16px;
  color: #12392c;
}
.pt-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #d5e5dc;
  margin-bottom: 16px;
}
.pt-countdown-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13.5px;
  color: #355248;
}
.pt-countdown-box strong {
  font-size: 20px;
  color: #164b3b;
}
.pt-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.pt-tile {
  background: #fff;
  border: 1.5px solid #d6e6de;
  border-radius: 14px;
  padding: 14px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pt-tile.is-next {
  background: linear-gradient(135deg, #164b3b, #1d6952);
  border-color: #164b3b;
  color: #fff;
  box-shadow: 0 8px 20px rgba(22, 75, 59, 0.22);
}
.pt-name {
  font-size: 12.5px;
  opacity: 0.88;
}
.pt-time {
  font-size: 21px;
}
.pt-lower-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.qibla-svg {
  width: 155px;
  height: 155px;
  flex-shrink: 0;
}

/* Familien-Quiz-Duell */
.duel-setup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.duel-setup-grid label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #164b3b;
  margin-bottom: 5px;
}
.duel-setup-grid input, .duel-setup-grid select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid #c9ded3;
}
.duel-scoreboard {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.duel-score-box {
  padding: 10px 18px;
  border-radius: 14px;
  border: 2px solid #d5e5dc;
  background: #f8fcf9;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}
.duel-score-box b {
  font-size: 22px;
  color: #164b3b;
}
.duel-score-box.active-turn, .duel-score-box.leading {
  border-color: #c9973e;
  background: #fff9ea;
}
.duel-turn-banner {
  padding: 9px 14px;
  border-radius: 10px;
  background: #ebf5ef;
  color: #164b3b;
  font-size: 14px;
}
.duel-answers {
  display: grid;
  gap: 10px;
}
.duel-ans-btn {
  text-align: left;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1.5px solid #cfe2d7;
  background: #fff;
  font-size: 15px;
  color: #152b23;
  cursor: pointer;
}
.duel-ans-btn:hover:not(:disabled) {
  border-color: #164b3b;
  background: #eef8f2;
}
.duel-ans-btn.is-right {
  background: #e6f7ed;
  border-color: #2f855a;
  color: #134a34;
  font-weight: 700;
}
.duel-ans-btn.is-dim {
  opacity: 0.65;
}

/* 30-Tage Gute-Taten-Kalender */
.cal-active-card {
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f3faf6, #fdf7e9);
  border: 1.5px solid #cde2d6;
  margin-bottom: 16px;
}
.cal-active-head {
  display: flex;
  gap: 14px;
  align-items: center;
}
.cal-big-icon {
  font-size: 40px;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 8px;
}
.cal-door {
  padding: 10px 4px;
  border-radius: 12px;
  border: 1.5px solid #d4e5db;
  background: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.cal-door:hover {
  border-color: #164b3b;
  background: #eef7f2;
}
.cal-door.active {
  background: #164b3b;
  color: #fff;
  border-color: #164b3b;
}
.cal-door.is-done:not(.active) {
  background: #fff8e6;
  border-color: #c9973e;
}
.cal-num {
  font-size: 12px;
  font-weight: 800;
}
.cal-ico {
  font-size: 18px;
}

/* Admin Modal */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.admin-box {
  margin-top: 16px;
  padding: 16px;
  border-radius: 14px;
  background: #f9fcfa;
  border: 1px solid #d9e8e0;
}
.admin-box h4 {
  margin: 0 0 10px;
  color: #164b3b;
}

@media (max-width: 900px) {
  .prayer-sim-stage { grid-template-columns: 1fr; }
  .pt-grid { grid-template-columns: repeat(3, 1fr); }
  .pt-lower-grid { grid-template-columns: 1fr; }
  .duel-setup-grid { grid-template-columns: 1fr; }
  .cal-grid { grid-template-columns: repeat(5, 1fr); }
  .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
}


/* ===== Mekteb Erwachsene: Ruhiges Studientext-Layout (ohne Video) ===== */
.adult-study-article {
  background: #fffdf9;
  border: 1.5px solid #d5e4dc;
  border-radius: 18px;
  padding: 22px 24px;
  margin-bottom: 18px;
}
.adult-study-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.adult-study-badge {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: 999px;
  background: #eaf4ee;
  color: #164b3b;
}
.adult-study-time {
  font-size: 13px;
  color: #536b62;
  font-weight: 600;
}
.adult-study-lead {
  padding: 13px 16px;
  border-left: 4px solid #c9973e;
  background: #fdf8eb;
  border-radius: 8px;
  color: #3d3118;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 16px;
}
.adult-study-body {
  font-family: Georgia, "Times New Roman", serif;
  color: #1c2c26;
  font-size: 16.5px;
  line-height: 1.78;
}
.adult-study-body h4 {
  font-family: system-ui, -apple-system, sans-serif;
  color: #164b3b;
  font-size: 16px;
  margin: 18px 0 8px;
  border-bottom: 1px solid #e2ede7;
  padding-bottom: 4px;
}
.adult-study-body p {
  margin: 0 0 12px;
}
.adult-study-subblock {
  margin-top: 12px;
  padding: 12px 15px;
  background: #f8fcf9;
  border-radius: 12px;
  border: 1px solid #e2eee7;
}
.adult-study-subblock h5 {
  font-family: system-ui, -apple-system, sans-serif;
  margin: 0 0 5px;
  font-size: 14.5px;
  color: #164b3b;
}
.adult-study-subblock p {
  margin: 0;
  font-size: 15.5px;
}


/* ===== Header Prefs (Dark Mode & Schriftgröße), 99 Namen, Karteikarten, Zakat/Qada & Aussprache-Coach ===== */
.header-prefs {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pref-btn {
  padding: 6px 9px;
  border-radius: 10px;
  border: 1px solid #cfe0d7;
  background: #fff;
  color: #164b3b;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.pref-btn:hover {
  background: #eaf5ef;
  border-color: #164b3b;
}

.voice-coach-box {
  margin: 0 0 14px;
  padding: 12px 15px;
  border-radius: 14px;
  background: #f3faf6;
  border: 1.5px dashed #9fc5b3;
}
.voice-coach-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13.5px;
  color: #133c2f;
}

/* 99 Namen Allahs */
.asma-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 12px;
}
.asma-card {
  padding: 14px 12px;
  border-radius: 14px;
  border: 1.5px solid #d7e6de;
  background: #fbfdfb;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}
.asma-card.is-learned {
  border-color: #c9973e;
  background: #fffdf5;
}
.asma-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.asma-num {
  font-size: 11.5px;
  font-weight: 800;
  color: #5b7269;
}
.asma-check {
  border: 1px solid #cfe0d7;
  background: #fff;
  color: #164b3b;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  cursor: pointer;
  font-weight: 700;
}
.asma-card.is-learned .asma-check {
  background: #164b3b;
  color: #fff;
  border-color: #164b3b;
}
.asma-ar {
  font-size: 26px;
  color: #123c2f;
  cursor: pointer;
  line-height: 1.45;
  font-family: "Amiri", "Geeza Pro", serif;
}
.asma-trl {
  font-weight: 700;
  font-size: 13.5px;
  color: #164b3b;
}
.asma-meaning {
  font-size: 12.5px;
  color: #465e55;
  line-height: 1.35;
  flex: 1;
}
.asma-play {
  margin-top: 6px;
  border: none;
  background: #eaf4ee;
  color: #164b3b;
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 13px;
  align-self: center;
}

/* Flashcards */
.fc-card {
  max-width: 560px;
  min-height: 240px;
  margin: 10px auto 0;
  padding: 28px 24px;
  border-radius: 22px;
  background: linear-gradient(135deg, #f3faf6, #fffaf0);
  border: 2px solid #c5dfd1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(22, 75, 59, 0.09);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.fc-card:hover {
  transform: translateY(-2px);
  border-color: #164b3b;
}
.fc-card.flipped {
  background: linear-gradient(135deg, #fffdf4, #eaf5ef);
  border-color: #c9973e;
}
.fc-face {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.fc-ar {
  font-size: 44px;
  color: #123c2f;
  font-family: "Amiri", "Geeza Pro", serif;
}
.fc-sub {
  font-size: 20px;
  font-weight: 700;
  color: #164b3b;
}
.fc-def {
  font-size: 18px;
  line-height: 1.6;
  color: #173027;
  max-width: 460px;
  margin: 8px 0;
}

/* Zakat & Qada */
.zakat-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0;
}
.zakat-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #1d3c31;
}
.zakat-form input {
  padding: 9px 11px;
  border-radius: 10px;
  border: 1.5px solid #cde0d5;
  font-size: 14.5px;
}
.zakat-result {
  padding: 14px 16px;
  border-radius: 14px;
  background: #f4f9f6;
  border: 1.5px solid #cce0d5;
  color: #163e30;
  font-size: 14px;
}
.zakat-result.due {
  background: #fdf6e3;
  border-color: #c9973e;
  color: #593d0b;
}
.qada-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.qada-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 12px;
  border-radius: 12px;
  background: #f8fcf9;
  border: 1px solid #deebe4;
  gap: 10px;
}
.qada-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}
.qada-val {
  min-width: 34px;
  text-align: center;
  font-size: 17px;
  color: #164b3b;
}

/* ===== 🌙 Nachtmodus (Dark Mode) ===== */
html[data-theme="dark"],
html[data-theme="dark"] body {
  background: #0f1a16 !important;
  color: #e4efe9 !important;
}
html[data-theme="dark"] header {
  background: rgba(15, 26, 22, 0.94) !important;
  border-bottom-color: #243b32 !important;
}
html[data-theme="dark"] header nav a,
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5 {
  color: #eaf5ef !important;
}
html[data-theme="dark"] p,
html[data-theme="dark"] li,
html[data-theme="dark"] .lead,
html[data-theme="dark"] .portal-muted,
html[data-theme="dark"] .notice {
  color: #b7cfc3 !important;
}
html[data-theme="dark"] .ilmihal-section,
html[data-theme="dark"] .learner-dashboard,
html[data-theme="dark"] .mosque-portal,
html[data-theme="dark"] .parent-portal,
html[data-theme="dark"] .character-section,
html[data-theme="dark"] .classroom-section,
html[data-theme="dark"] .band {
  background: #14241e !important;
  border-color: #243e34 !important;
}
html[data-theme="dark"] .learning-card,
html[data-theme="dark"] .card,
html[data-theme="dark"] .character-card,
html[data-theme="dark"] .trainer-card,
html[data-theme="dark"] .ilmihal-sidebar,
html[data-theme="dark"] .ilmihal-reader,
html[data-theme="dark"] .ilmihal-section-card,
html[data-theme="dark"] .dua-card,
html[data-theme="dark"] .asma-card,
html[data-theme="dark"] .portal-panel,
html[data-theme="dark"] .portal-stat,
html[data-theme="dark"] .learner-panel,
html[data-theme="dark"] .dialog,
html[data-theme="dark"] .auth-card,
html[data-theme="dark"] .adult-study-article,
html[data-theme="dark"] .adult-study-subblock,
html[data-theme="dark"] .pt-top-bar,
html[data-theme="dark"] .pt-tile:not(.is-next),
html[data-theme="dark"] .qari-control-bar,
html[data-theme="dark"] .surah-verse-card,
html[data-theme="dark"] .sufara-detail-card,
html[data-theme="dark"] .sufara-tile:not(.active),
html[data-theme="dark"] .qada-row,
html[data-theme="dark"] .cal-door:not(.active) {
  background: #1a2f27 !important;
  border-color: #2c4a3e !important;
  color: #e4efe9 !important;
}
html[data-theme="dark"] .ilmihal-ar-box,
html[data-theme="dark"] .surah-module-box,
html[data-theme="dark"] .streak-bar,
html[data-theme="dark"] .pt-location-banner,
html[data-theme="dark"] .fc-card,
html[data-theme="dark"] .voice-coach-box,
html[data-theme="dark"] .module-ilmihal-link,
html[data-theme="dark"] .prayer-sim-visual {
  background: #162b23 !important;
  border-color: #34594a !important;
}
html[data-theme="dark"] .ilmihal-ar-text,
html[data-theme="dark"] .surah-verse-ar,
html[data-theme="dark"] .asma-ar,
html[data-theme="dark"] .fc-ar,
html[data-theme="dark"] .trainer-ar-big {
  color: #f4d98c !important;
}
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  background: #12211b !important;
  color: #eaf5ef !important;
  border-color: #315345 !important;
}
html[data-theme="dark"] .ilmihal-tab:not(.active),
html[data-theme="dark"] .qari-pill:not(.active),
html[data-theme="dark"] .pref-btn,
html[data-theme="dark"] .ilmihal-ch-btn:not(.active),
html[data-theme="dark"] .duel-ans-btn {
  background: #1d352c !important;
  color: #dff0e8 !important;
  border-color: #325446 !important;
}
@media (max-width: 640px) {
  .zakat-form { grid-template-columns: 1fr; }
}


/* ===== 114-Suren Koran-Reader, Missionen, Medaillons, Arabisch-Memory & Sufara-Gruppen ===== */
.quran-basmala-banner {
  text-align: center;
  font-size: 28px;
  padding: 14px 12px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f2f9f5, #fdf7e9);
  border: 1px solid #cde2d6;
  color: #123c2f;
  font-family: "Amiri", "Geeza Pro", serif;
}
.missions-grid {
  display: grid;
  gap: 10px;
}
.mission-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f8fcf9;
  border: 1.5px solid #d5e5dc;
}
.mission-tile.done {
  background: #eaf7ef;
  border-color: #2f855a;
}
.mission-tile > span {
  font-size: 26px;
}
.mission-tile > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mission-tile small {
  color: #536b62;
  font-size: 13px;
}
.medallion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 12px;
}
.medallion-card {
  padding: 16px 12px;
  border-radius: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: 1.5px solid #d7e6de;
  background: #f7fbf8;
}
.medallion-card.unlocked {
  background: linear-gradient(135deg, #fffdf4, #eaf7ef);
  border-color: #c9973e;
  box-shadow: 0 6px 16px rgba(201, 151, 62, 0.16);
}
.medallion-card.locked {
  opacity: 0.58;
  filter: grayscale(0.6);
}
.medallion-ico {
  font-size: 32px;
}
.medallion-card small {
  font-size: 12px;
  color: #4f665d;
  line-height: 1.35;
}
.mem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 10px;
}
.mem-card {
  height: 78px;
  border-radius: 14px;
  border: 2px solid #cbe0d5;
  background: linear-gradient(135deg, #164b3b, #1d644f);
  color: #f4d38a;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}
.mem-card.is-up {
  background: #fff;
  color: #123c2f;
  border-color: #164b3b;
}
.mem-card.is-matched {
  background: #eaf7ef;
  border-color: #2f855a;
}
.mem-ar {
  font-size: 24px;
  font-family: "Amiri", "Geeza Pro", serif;
}
.mem-tr {
  font-size: 13.5px;
  font-weight: 700;
}
.sufara-group-compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
html[data-theme="dark"] .quran-basmala-banner,
html[data-theme="dark"] .mission-tile,
html[data-theme="dark"] .medallion-card {
  background: #1a2f27 !important;
  border-color: #325547 !important;
  color: #eaf5ef !important;
}
html[data-theme="dark"] .quran-basmala-banner {
  color: #f4d98c !important;
}
html[data-theme="dark"] .mem-card.is-up {
  background: #1d352c !important;
  color: #f4d98c !important;
}
@media (max-width: 640px) {
  .mem-grid { grid-template-columns: repeat(3, 1fr); }
}


/* ===== Flagship Redesign v2: Moderne Typografie, Sticky Glass Header, 2-Spalten-Hero, Schreibtafel & Mekteb-Planer ===== */
:root {
  --green: #0a4d3c;
  --green2: #116b54;
  --gold: #d2a955;
  --cream: #faf7f0;
  --ink: #172a23;
  --muted: #566860;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
h1, h2, .learning-card h3, .card h3 {
  font-family: "Playfair Display", Georgia, serif !important;
  letter-spacing: -0.015em;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(9, 68, 53, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(210, 169, 85, 0.28);
  padding: 12px max(4vw, 18px);
  box-shadow: 0 8px 24px rgba(5, 36, 28, 0.14);
  flex-wrap: nowrap;
}
.site-header .brand {
  padding: 4px 10px;
  border-radius: 12px;
  border-width: 1.5px;
  flex-shrink: 0;
  background: #ffffff;
}
.site-header .brand-logo {
  width: 136px;
}
.site-header .brand-ar {
  margin-left: 2px;
}
@media (max-width: 1280px) {
  .site-header {
    gap: 10px;
    padding: 10px max(2.5vw, 14px);
  }
  .site-header .brand-logo {
    width: 112px;
  }
  .site-header nav {
    gap: 8px;
  }
  .site-header nav a {
    font-size: 12.5px;
    padding: 5px 7px;
  }
}
@media (max-width: 640px) {
  .site-header .brand {
    padding: 3px 7px;
  }
  .site-header .brand-logo {
    width: 96px;
  }
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.site-header nav a {
  font-weight: 600;
  font-size: 13.5px;
  padding: 6px 9px;
  border-radius: 999px;
  transition: background 0.16s ease, color 0.16s ease;
}
.site-header nav a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #f6df9d;
}
.site-header .nav-auth-pill {
  background: var(--gold);
  color: #132720 !important;
  padding: 7px 14px !important;
  font-weight: 700 !important;
  opacity: 1 !important;
}
.site-header .nav-auth-pill:hover {
  background: #e3be6b !important;
  color: #10211b !important;
}
.burger-btn {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 20px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
}

/* Flagship 2-Spalten-Hero */
.hero-v2 {
  background:
    radial-gradient(circle at 82% 20%, rgba(210, 169, 85, 0.22), transparent 44%),
    radial-gradient(circle at 12% 85%, rgba(18, 134, 102, 0.35), transparent 48%),
    linear-gradient(128deg, #063d2f 0%, #0b5a46 55%, #0e6f56 100%) !important;
  padding: 62px max(5vw, 22px) 68px !important;
}
.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 36px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-v2 h1 {
  font-size: clamp(36px, 5vw, 58px) !important;
  line-height: 1.07;
  margin: 12px 0 16px;
}
.hero-v2 p {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(242, 248, 244, 0.92);
}
.btn-gold-glow {
  background: linear-gradient(135deg, #e2bc68, #c79a3f) !important;
  color: #13251e !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 26px rgba(210, 169, 85, 0.34);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn-gold-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(210, 169, 85, 0.44);
}
.hero-v2 .btn.alt {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.38);
}
.hero-v2 .btn.alt:hover {
  background: rgba(255, 255, 255, 0.18);
}
.hero-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 24px;
  font-size: 13px;
  font-weight: 600;
  color: #f1dca0;
}
.hero-quick-dock {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.hq-card {
  text-align: left;
  padding: 20px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.hq-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(232, 200, 122, 0.85);
}
.hq-ico {
  font-size: 30px;
}
.hq-card strong {
  font-size: 16.5px;
  color: #fff;
}
.hq-card small {
  font-size: 12.5px;
  color: rgba(236, 245, 240, 0.85);
  line-height: 1.4;
}

/* Mekteb-Tag zu Hause Planer */
.planner-shell {
  display: grid;
  gap: 16px;
}
.planner-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 18px;
}
.planner-timer-box {
  background: linear-gradient(135deg, #0b513f, #126d55);
  color: #fff;
  padding: 14px 18px;
  border-radius: 16px;
  min-width: 180px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(10, 77, 60, 0.2);
}
.planner-timer-box small {
  display: block;
  font-size: 12px;
  color: #f2dca0;
}
.planner-timer-box strong {
  display: block;
  font-size: 28px;
  font-variant-numeric: tabular-nums;
  margin: 2px 0;
}
.planner-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #d7e6de;
}
.planner-steps {
  display: grid;
  gap: 10px;
}
.planner-step {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1.5px solid #d8e7df;
  transition: border-color 0.16s ease, background 0.16s ease;
}
.planner-step.is-done {
  background: #edf8f2;
  border-color: #2f855a;
}
.planner-check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.planner-check input {
  width: 20px;
  height: 20px;
  accent-color: #164b3b;
}
.planner-ico {
  font-size: 26px;
}
.planner-copy {
  flex: 1;
  min-width: 220px;
}
.planner-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 3px;
}
.planner-copy small {
  color: #536b62;
  font-size: 13.5px;
}
.planner-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14.5px;
  color: #164b3b;
}

/* Arabisch-Schreibtafel (Canvas) */
.trace-card {
  margin-bottom: 18px;
  padding: 18px 20px;
  border-radius: 18px;
  background: #fff;
  border: 1.5px solid #cfe2d8;
}
.trace-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}
.trace-head h4 {
  margin: 0 0 3px;
  color: #133c2f;
  font-size: 17px;
}
.trace-ar-inline {
  font-family: "Amiri", "Geeza Pro", serif;
  font-size: 26px;
  color: #164b3b;
}
.trace-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}
.trace-color {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
}
.trace-color.active {
  border-color: #f4d38a;
  box-shadow: 0 0 0 2px #164b3b;
}
.trace-canvas-wrap {
  background: #fbfdfb;
  border: 2px dashed #bdd7ca;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  justify-content: center;
}
#sufaraTraceCanvas {
  width: 100%;
  max-width: 520px;
  height: 220px;
  touch-action: none;
  cursor: crosshair;
}

/* Dark Mode für Planer & Schreibtafel */
html[data-theme="dark"] .planner-controls,
html[data-theme="dark"] .planner-step,
html[data-theme="dark"] .trace-card {
  background: #1a2f27 !important;
  border-color: #315345 !important;
  color: #eaf5ef !important;
}
html[data-theme="dark"] .trace-canvas-wrap {
  background: #f3f8f5 !important;
}

/* Responsive Mobile Burger-Navigation */
@media (max-width: 1020px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .burger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .site-header {
    flex-wrap: wrap;
  }
  .site-header nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 0 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    gap: 6px;
  }
  .site-header.nav-open nav {
    display: flex;
  }
  .site-header nav a {
    width: 100%;
    padding: 10px 12px;
  }
}
@media (max-width: 540px) {
  .hero-quick-dock {
    grid-template-columns: 1fr;
  }
}


/* ===== Vollständiger High-Contrast Dark Mode Fix (garantiert 100 % Lesbarkeit überall) ===== */
.pt-card-title { margin: 0 0 6px; color: #133b2e; }
.pt-big-val { font-size: 28px; font-weight: 800; color: #164b3b; }
.pt-gold-sub { font-size: 14px; color: #8a621c; }
.pt-sub-label { font-size: 13px; font-weight: 700; color: #526b61; margin-bottom: 8px; }
.auth-session-bar { background: #e8f4ed; color: #164b3b; }

html[data-theme="dark"] {
  --cream: #0e1915;
  --ink: #eef6f1;
  --muted: #b7d2c4;
  --white: #192d25;
  --line: #2d4b3f;
}

/* Grundtext, Labels, Zahlen & Tabellen im Dunkelmodus */
html[data-theme="dark"] body,
html[data-theme="dark"] strong,
html[data-theme="dark"] b,
html[data-theme="dark"] label,
html[data-theme="dark"] summary,
html[data-theme="dark"] td,
html[data-theme="dark"] th,
html[data-theme="dark"] .adult-study-body,
html[data-theme="dark"] .adult-study-subblock p,
html[data-theme="dark"] .ilmihal-section-card p,
html[data-theme="dark"] .ilmihal-bullets,
html[data-theme="dark"] .ilmihal-ar-meaning,
html[data-theme="dark"] .surah-verse-meaning,
html[data-theme="dark"] .trainer-stage-copy p,
html[data-theme="dark"] .prayer-sim-hint,
html[data-theme="dark"] .fc-def,
html[data-theme="dark"] .speech-bubble,
html[data-theme="dark"] .quiz-q label,
html[data-theme="dark"] .integrated-answer span,
html[data-theme="dark"] .surah-check-item span {
  color: #edf5f0 !important;
}

html[data-theme="dark"] small,
html[data-theme="dark"] .ilmihal-summary,
html[data-theme="dark"] .ilmihal-sidebar-title,
html[data-theme="dark"] .dua-when,
html[data-theme="dark"] .asma-meaning,
html[data-theme="dark"] .asma-num,
html[data-theme="dark"] .planner-copy small,
html[data-theme="dark"] .mission-tile small,
html[data-theme="dark"] .medallion-card small,
html[data-theme="dark"] .streak-pill small,
html[data-theme="dark"] .module-status,
html[data-theme="dark"] .course-intro,
html[data-theme="dark"] .course-bottom p,
html[data-theme="dark"] .pt-sub-label,
html[data-theme="dark"] .adult-study-time,
html[data-theme="dark"] .sufara-quiz-name,
html[data-theme="dark"] .sufara-forms-grid small,
html[data-theme="dark"] .sufara-syl-row,
html[data-theme="dark"] .drill-trl,
html[data-theme="dark"] .mosque-assign-meta,
html[data-theme="dark"] .module-ilmihal-copy p,
html[data-theme="dark"] .trainer-head p,
html[data-theme="dark"] .duas-head-bar p,
html[data-theme="dark"] .sufara-detail-info p,
html[data-theme="dark"] .hit-sub,
html[data-theme="dark"] .scene-note,
html[data-theme="dark"] .portal-disclaimer,
html[data-theme="dark"] .parent-hint,
html[data-theme="dark"] .auth-note {
  color: #b7d2c4 !important;
}

/* Akzent-Texte, Links, Zahlen & Umschrift in gut lesbarem Warm-Gold / Hell-Mint */
html[data-theme="dark"] .pt-big-val,
html[data-theme="dark"] .pt-detected-city,
html[data-theme="dark"] .pt-countdown-box strong,
html[data-theme="dark"] .pt-gold-sub,
html[data-theme="dark"] .portal-stat strong,
html[data-theme="dark"] .streak-pill b,
html[data-theme="dark"] .qada-val,
html[data-theme="dark"] .duel-score-box b,
html[data-theme="dark"] .mosque-code-val,
html[data-theme="dark"] .ilmihal-ar-trl,
html[data-theme="dark"] .surah-verse-trl,
html[data-theme="dark"] .trainer-ar-trl,
html[data-theme="dark"] .asma-trl,
html[data-theme="dark"] .fc-sub,
html[data-theme="dark"] .card-link,
html[data-theme="dark"] .module-action,
html[data-theme="dark"] .speaker,
html[data-theme="dark"] .scene-eyebrow,
html[data-theme="dark"] .ilmihal-search-count,
html[data-theme="dark"] .module-ilmihal-kicker,
html[data-theme="dark"] .planner-footer,
html[data-theme="dark"] .sufara-quiz-feedback,
html[data-theme="dark"] .surah-save-status,
html[data-theme="dark"] .trace-ar-inline,
html[data-theme="dark"] .drill-ar,
html[data-theme="dark"] .sufara-forms-grid b,
html[data-theme="dark"] .sufara-quiz-ar {
  color: #f2d586 !important;
}

/* Alle bisher noch hellen Boxen, Karten, Tabellen & Callouts sauber abdunkeln */
html[data-theme="dark"] .preview,
html[data-theme="dark"] .scene-stage,
html[data-theme="dark"] .speech-bubble,
html[data-theme="dark"] .youth-teacher-preview,
html[data-theme="dark"] .youth-teacher-card,
html[data-theme="dark"] .role-demo,
html[data-theme="dark"] .role-card,
html[data-theme="dark"] .role-result,
html[data-theme="dark"] .parent-panel,
html[data-theme="dark"] .module-item,
html[data-theme="dark"] .lesson-card,
html[data-theme="dark"] .integrated-section,
html[data-theme="dark"] .integrated-complete,
html[data-theme="dark"] .key-points-box,
html[data-theme="dark"] .arabic-spotlight-box,
html[data-theme="dark"] .course-bottom,
html[data-theme="dark"] .trainer-stage,
html[data-theme="dark"] .trainer-ar-line,
html[data-theme="dark"] .ilmihal-search-results,
html[data-theme="dark"] .ilmihal-search-hit,
html[data-theme="dark"] .ilmihal-callout.takeaway,
html[data-theme="dark"] .ilmihal-callout.task,
html[data-theme="dark"] .cal-active-card,
html[data-theme="dark"] .duel-score-box,
html[data-theme="dark"] .duel-turn-banner,
html[data-theme="dark"] .zakat-result,
html[data-theme="dark"] .admin-box,
html[data-theme="dark"] .mosque-code-box,
html[data-theme="dark"] .mosque-att-row,
html[data-theme="dark"] .mosque-assign-item,
html[data-theme="dark"] .portal-report,
html[data-theme="dark"] .surah-summary-box,
html[data-theme="dark"] .surah-check-item,
html[data-theme="dark"] .sufara-forms-grid > div,
html[data-theme="dark"] .sufara-drill-btn,
html[data-theme="dark"] .sufara-quiz-btn,
html[data-theme="dark"] .adult-study-lead,
html[data-theme="dark"] .streak-pill,
html[data-theme="dark"] .prayer-sim-done,
html[data-theme="dark"] .ann-banner,
html[data-theme="dark"] .auth-session-bar,
html[data-theme="dark"] .progress-wrap {
  background: #1b3129 !important;
  border-color: #325447 !important;
  color: #edf5f0 !important;
}

html[data-theme="dark"] .rakaat-table thead th {
  background: #152922 !important;
  color: #f2d586 !important;
}
html[data-theme="dark"] .rakaat-table td,
html[data-theme="dark"] .rakaat-table th,
html[data-theme="dark"] .lesson,
html[data-theme="dark"] .portal-student {
  border-color: #2c4a3e !important;
}

/* Badges, Pills, Buttons & Schließen-Icons im Dunkelmodus */
html[data-theme="dark"] .tag,
html[data-theme="dark"] .character-label,
html[data-theme="dark"] .role-tag,
html[data-theme="dark"] .trainer-counter,
html[data-theme="dark"] .trainer-badge.sunna,
html[data-theme="dark"] .trainer-badge.count,
html[data-theme="dark"] .ilmihal-ch-pill,
html[data-theme="dark"] .adult-study-badge,
html[data-theme="dark"] .surah-tag {
  background: #244237 !important;
  color: #f2d586 !important;
}
html[data-theme="dark"] .trainer-badge.fard,
html[data-theme="dark"] .rakaat-fard,
html[data-theme="dark"] .sufara-syl-btn {
  background: #4d3912 !important;
  color: #fce5a8 !important;
  border-color: #c9973e !important;
}
html[data-theme="dark"] .portal-small,
html[data-theme="dark"] .child-chip:not(.active),
html[data-theme="dark"] .surah-btn.alt,
html[data-theme="dark"] .ilmihal-mod-chip,
html[data-theme="dark"] .scene-tab:not(.active),
html[data-theme="dark"] .trainer-dot:not(.active),
html[data-theme="dark"] .att-pill:not(.present):not(.excused):not(.absent),
html[data-theme="dark"] .asma-check,
html[data-theme="dark"] .asma-play {
  background: #213c32 !important;
  color: #edf5f0 !important;
  border-color: #3a6353 !important;
}
html[data-theme="dark"] .close,
html[data-theme="dark"] .auth-close {
  color: #edf5f0 !important;
}
html[data-theme="dark"] .qibla-svg circle:first-child {
  fill: #142620 !important;
  stroke: #d2a955 !important;
}
html[data-theme="dark"] .qibla-svg text {
  fill: #eaf5ef !important;
}

/* Prayer-Simulator Progress-Bar (Hell & Dunkel) */
.prayer-sim-progress {
  background: #e2eee7;
  margin-bottom: 16px;
}
.prayer-sim-progress > span {
  background: #164b3b;
}
html[data-theme="dark"] .prayer-sim-progress {
  background: #12241d !important;
}
html[data-theme="dark"] .prayer-sim-progress > span {
  background: #e2bc68 !important;
}

/* Überschriften, Arabisch-Boxen & Zahlen auf dunklen Karten (100 % Kontrast) */
html[data-theme="dark"] .pt-card-title,
html[data-theme="dark"] .ilmihal-reader-head h3,
html[data-theme="dark"] .ilmihal-related h4,
html[data-theme="dark"] .dua-card-head h4,
html[data-theme="dark"] .learner-certificate h4,
html[data-theme="dark"] .prayer-sim-copy h4,
html[data-theme="dark"] .trace-head h4,
html[data-theme="dark"] .voice-coach-head h4,
html[data-theme="dark"] .surah-head h3,
html[data-theme="dark"] .parent-profile-heading,
html[data-theme="dark"] .mini-node-meta strong,
html[data-theme="dark"] .mini-card-label,
html[data-theme="dark"] .mini-answer-text,
html[data-theme="dark"] .mini-sort-text,
html[data-theme="dark"] .mini-sticker-head,
html[data-theme="dark"] .mini-all-done,
html[data-theme="dark"] .scene-copy {
  color: #f0f8f3 !important;
}
html[data-theme="dark"] .arabic-spotlight-text,
html[data-theme="dark"] .surah-ar-title,
html[data-theme="dark"] .child-metric strong,
html[data-theme="dark"] .mini-sort-progress {
  color: #f4d98c !important;
}
html[data-theme="dark"] .small-note,
html[data-theme="dark"] .learner-note,
html[data-theme="dark"] .learner-module small,
html[data-theme="dark"] .portal-student small,
html[data-theme="dark"] .surah-stage-tip,
html[data-theme="dark"] .mini-parent-body,
html[data-theme="dark"] .ilmihal-related {
  color: #b7d2c4 !important;
}

/* Gebets-Simulator, Suren-Akademie, Portal, Auth & Mekteb-Mini-Spielwelt im Dunkelmodus */
html[data-theme="dark"] .prayer-sim-card,
html[data-theme="dark"] .qari-ctrl-group,
html[data-theme="dark"] .child-metric,
html[data-theme="dark"] .learner-certificate,
html[data-theme="dark"] .auth-result,
html[data-theme="dark"] .mini-world-wrap,
html[data-theme="dark"] .mini-node,
html[data-theme="dark"] .mini-quiz-shell,
html[data-theme="dark"] .mini-game-head,
html[data-theme="dark"] .mini-order-card,
html[data-theme="dark"] .mini-order-slot,
html[data-theme="dark"] .mini-sort-card,
html[data-theme="dark"] .mini-sort-btn,
html[data-theme="dark"] .mini-mem-card,
html[data-theme="dark"] .mini-sticker-book,
html[data-theme="dark"] .mini-sticker-slot,
html[data-theme="dark"] .mini-parent-drawer,
html[data-theme="dark"] .mini-celebration,
html[data-theme="dark"] .mini-game-complete,
html[data-theme="dark"] .mini-feedback {
  background: #1a3028 !important;
  border-color: #325447 !important;
  color: #edf5f0 !important;
}
html[data-theme="dark"] .mini-node.is-current,
html[data-theme="dark"] .qari-playing-verse,
html[data-theme="dark"] .duel-score-box.active-turn,
html[data-theme="dark"] .duel-score-box.leading,
html[data-theme="dark"] .ilmihal-ch-btn.is-current {
  background: #233f34 !important;
  border-color: #e2bc68 !important;
  color: #f4f9f6 !important;
}
html[data-theme="dark"] .mini-node.is-done,
html[data-theme="dark"] .planner-step.is-done,
html[data-theme="dark"] .mission-tile.is-done,
html[data-theme="dark"] .medallion-card.unlocked,
html[data-theme="dark"] .surah-check-item.checked,
html[data-theme="dark"] .cal-day.done,
html[data-theme="dark"] .mem-card.is-matched,
html[data-theme="dark"] .ilmihal-ch-btn.is-read,
html[data-theme="dark"] .integrated-result.correct,
html[data-theme="dark"] .quiz-submit-banner.ok {
  background: #173d2e !important;
  border-color: #3da87a !important;
  color: #d8f8e8 !important;
}
html[data-theme="dark"] .integrated-result.retry,
html[data-theme="dark"] .quiz-submit-banner.fail {
  background: #421f22 !important;
  border-color: #c95d63 !important;
  color: #ffd7d9 !important;
}
html[data-theme="dark"] .mini-node.is-locked {
  background: #14241e !important;
  border-color: #294339 !important;
}
html[data-theme="dark"] .fc-card.flipped {
  background: #1f3a30 !important;
  border-color: #d2a955 !important;
  color: #edf5f0 !important;
}
html[data-theme="dark"] .surah-verse-num,
html[data-theme="dark"] .surah-verse-play,
html[data-theme="dark"] .trainer-icon-badge,
html[data-theme="dark"] .mini-speak-chip,
html[data-theme="dark"] .mini-card-speak,
html[data-theme="dark"] .mini-step-pill,
html[data-theme="dark"] .mini-speaker-tag,
html[data-theme="dark"] .mini-listen-big,
html[data-theme="dark"] .mini-node-stars,
html[data-theme="dark"] .mini-sticker-pill,
html[data-theme="dark"] .mini-q-dot,
html[data-theme="dark"] .learner-state,
html[data-theme="dark"] .learner-module-actions button,
html[data-theme="dark"] .auth-tabs button:not(.active) {
  background: #234035 !important;
  color: #f2d586 !important;
  border-color: #3a6353 !important;
}
html[data-theme="dark"] .learner-state.done {
  background: #174432 !important;
  color: #9ff0c8 !important;
}
html[data-theme="dark"] .learner-state.locked {
  background: #20312b !important;
  color: #9cb5a8 !important;
}
html[data-theme="dark"] .child-bar,
html[data-theme="dark"] .learner-progress-track,
html[data-theme="dark"] .portal-progress,
html[data-theme="dark"] .progress {
  background: #12231d !important;
}
html[data-theme="dark"] .child-course,
html[data-theme="dark"] .learner-module,
html[data-theme="dark"] .ilmihal-related {
  border-color: #2b483d !important;
}
html[data-theme="dark"] .portal-form input,
html[data-theme="dark"] .portal-form select,
html[data-theme="dark"] .parent-form input,
html[data-theme="dark"] .parent-form select,
html[data-theme="dark"] .ilmihal-search-row input,
html[data-theme="dark"] .zakat-form input,
html[data-theme="dark"] .duel-setup-grid input {
  background: #12231d !important;
  color: #eef6f1 !important;
  border-color: #35584a !important;
}

/* ===== Kindermodus (Eltern-PIN), Tadschwīd-Farbregeln & Wochenbericht (Hell + Dunkel) ===== */
.pref-btn.kids-active {
  background: #d2a955 !important;
  color: #13251e !important;
  border-color: #f3d78a !important;
}
.kids-mode-banner {
  background: linear-gradient(90deg, #0d5b46, #14765b);
  color: #fff;
  padding: 10px max(4vw, 18px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  border-bottom: 1px solid rgba(210, 169, 85, 0.45);
}
html[data-kids-mode="1"] #elternportal,
html[data-kids-mode="1"] #meinkonto,
html[data-kids-mode="1"] #moscheeportal,
html[data-kids-mode="1"] #zugang,
html[data-kids-mode="1"] #navAccount,
html[data-kids-mode="1"] #navParents,
html[data-kids-mode="1"] #navMosque,
html[data-kids-mode="1"] .adult-card,
html[data-kids-mode="1"] #cta {
  display: none !important;
}

/* Tadschwīd-Farben (hoher Kontrast im Hell- & Dunkelmodus) */
.tj-ghunna { color: #0d9488; font-weight: 700; }
.tj-qalqala { color: #2563eb; font-weight: 700; }
.tj-madd { color: #dc2626; font-weight: 700; }
.tj-tanwin { color: #b45309; font-weight: 700; }

html[data-theme="dark"] .tj-ghunna { color: #5eead4 !important; }
html[data-theme="dark"] .tj-qalqala { color: #7dd3fc !important; }
html[data-theme="dark"] .tj-madd { color: #fda4af !important; }
html[data-theme="dark"] .tj-tanwin { color: #fcd34d !important; }

.tj-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 0 0 12px;
  padding: 9px 13px;
  border-radius: 12px;
  background: #f3f9f6;
  border: 1px solid #d4e6dc;
  font-size: 12.5px;
  font-weight: 600;
  color: #2c4a3e;
}
.tj-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tj-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.tj-dot-ghunna { background: #0d9488; }
.tj-dot-qalqala { background: #2563eb; }
.tj-dot-madd { background: #dc2626; }
.tj-dot-tanwin { background: #b45309; }

html[data-theme="dark"] .tj-legend {
  background: #172b24 !important;
  border-color: #2f5244 !important;
  color: #cfe4d8 !important;
}
html[data-theme="dark"] .tj-dot-ghunna { background: #5eead4; }
html[data-theme="dark"] .tj-dot-qalqala { background: #7dd3fc; }
html[data-theme="dark"] .tj-dot-madd { background: #fda4af; }
html[data-theme="dark"] .tj-dot-tanwin { background: #fcd34d; }

/* Wochenbericht Modal */
.weekly-rep-head {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #f2f8f5;
  border: 1px solid #d2e4da;
  margin: 12px 0;
  font-size: 14px;
}
.weekly-rep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 10px;
}
.weekly-rep-tile {
  background: #fff;
  border: 1.5px solid #d7e7df;
  border-radius: 14px;
  padding: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.weekly-rep-ico { font-size: 22px; }
.weekly-rep-tile small { font-size: 12px; color: #556b62; }
.weekly-rep-tile strong { font-size: 19px; color: #164b3b; }

html[data-theme="dark"] .weekly-rep-head,
html[data-theme="dark"] .weekly-rep-tile {
  background: #1a3028 !important;
  border-color: #325447 !important;
  color: #edf5f0 !important;
}
html[data-theme="dark"] .weekly-rep-tile strong {
  color: #f4d98c !important;
}

/* ===== Mein-Konto-Bereich (Eltern, Adresse, Sicherheit · Hell & Dunkel) ===== */
.account-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 18px;
  align-items: start;
}
.account-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.account-span-2 {
  grid-column: 1 / -1;
}
.account-form-grid label,
.account-pw-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}
.account-form-grid input,
.account-form-grid select,
.account-form-grid textarea,
.account-pw-form input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid #c9dcd1;
  background: #fff;
  color: #162922;
  font: inherit;
}
.account-pw-form {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}
.account-msg {
  margin: 10px 0 0;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
}
.account-msg.is-ok {
  background: #e6f6ee;
  color: #12563d;
  border: 1px solid #a7dfc3;
}
.account-msg.is-err {
  background: #fdecec;
  color: #8f2228;
  border: 1px solid #f2b7ba;
}
html[data-theme="dark"] .account-form-grid input,
html[data-theme="dark"] .account-form-grid select,
html[data-theme="dark"] .account-form-grid textarea,
html[data-theme="dark"] .account-pw-form input {
  background: #12231d !important;
  color: #eef6f1 !important;
  border-color: #35584a !important;
}
html[data-theme="dark"] .account-msg.is-ok {
  background: #173d2e !important;
  color: #c8f7df !important;
  border-color: #3da87a !important;
}
html[data-theme="dark"] .account-msg.is-err {
  background: #421f22 !important;
  color: #ffd7d9 !important;
  border-color: #c95d63 !important;
}
@media (max-width: 860px) {
  .account-grid,
  .account-form-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Dezentes Ausbau-Hinweis-Banner (Startseite · Hell & Dunkel) ===== */
.beta-build-banner {
  background: linear-gradient(90deg, #fdf6e3, #f6ebd0);
  border-bottom: 1.5px solid #e2c57e;
  color: #4a3510;
  padding: 12px max(4vw, 18px);
}
.beta-build-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}
.beta-build-ico {
  font-size: 18px;
  flex-shrink: 0;
}
html[data-theme="dark"] .beta-build-banner {
  background: linear-gradient(90deg, #272112, #2f2715) !important;
  border-color: #6b5320 !important;
  color: #f7e4b0 !important;
}

/* ===== Globaler Modal- & Schließen-Button-Fix (immer über der Kopfzeile & sticky beim Scrollen!) ===== */
.modal {
  z-index: 10000 !important;
  padding: max(14px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom)) !important;
  overscroll-behavior: contain;
}
.auth-overlay {
  z-index: 10050 !important;
  padding: max(14px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom)) !important;
  overscroll-behavior: contain;
}
.dialog,
.course-dialog,
.auth-card {
  max-height: 88dvh !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box !important;
}
.close,
.auth-close {
  position: sticky !important;
  top: 0 !important;
  right: auto !important;
  float: right !important;
  z-index: 30 !important;
  width: 40px !important;
  height: 40px !important;
  margin: -6px -6px 6px 10px !important;
  border-radius: 50% !important;
  border: 1.5px solid #c3d8cc !important;
  background: #eff6f2 !important;
  color: #10362a !important;
  font-size: 24px !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
  transition: background 0.15s ease, transform 0.15s ease;
}
.close:hover,
.auth-close:hover {
  background: #d2a955 !important;
  border-color: #b58932 !important;
  color: #11241d !important;
  transform: scale(1.06);
}
html[data-theme="dark"] .close,
html[data-theme="dark"] .auth-close {
  background: #244337 !important;
  border-color: #497866 !important;
  color: #f4faf6 !important;
}
html[data-theme="dark"] .close:hover,
html[data-theme="dark"] .auth-close:hover {
  background: #d2a955 !important;
  color: #11241d !important;
}

/* ===== Login-Schranke: Alle Lerninhalte & Unterrichtsszenen nur nach Anmeldung sichtbar ===== */
html[data-auth="0"] #mektebPlaner,
html[data-auth="0"] #ilmihal,
html[data-auth="0"] #tagesbegleiter,
html[data-auth="0"] #unterrichtsszenen,
html[data-auth="0"] #zugang,
html[data-auth="0"] #lernbereich,
html[data-auth="0"] #elternportal,
html[data-auth="0"] #moscheeportal,
html[data-auth="0"] #kidsModeToggleBtn {
  display: none !important;
}
html[data-auth="1"] #loginGateBanner {
  display: none !important;
}
.login-gate-card {
  background: #ffffff;
  color: var(--ink);
  border-radius: 20px;
  padding: 28px 28px 30px;
  text-align: left;
  border: 1.5px solid #d4e3da;
  box-shadow: 0 12px 32px rgba(10, 56, 42, 0.08);
}
.login-gate-card h2 {
  color: #0b4a3a !important;
  margin: 8px 0 8px;
}
.login-gate-card > p {
  margin: 0 0 20px;
  color: var(--muted) !important;
  line-height: 1.6;
}
.login-gate-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.login-gate-list-box {
  background: #f8fbf9;
  border: 1px solid #d9e7df;
  border-radius: 14px;
  padding: 15px 17px;
}
.login-gate-list-box summary,
.login-gate-list-head {
  font-weight: 700;
  font-size: 15.5px;
  color: #104536;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.login-gate-list-box summary::-webkit-details-marker {
  display: none;
}
.login-gate-arrow {
  display: inline-block;
  font-size: 13px;
  opacity: 0.7;
  transition: transform 0.16s ease;
}
.login-gate-list-box:not([open]) .login-gate-arrow {
  transform: rotate(-90deg);
}
.login-gate-count {
  font-size: 12px;
  font-weight: 700;
  color: #8a621c;
  background: #f5ebd2;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.login-gate-ul {
  margin: 12px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 5px;
  font-size: 13.5px;
  line-height: 1.45;
  color: #274037;
}
.login-gate-cta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px dashed #cde0d5;
}
.login-gate-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
html[data-theme="dark"] .login-gate-card {
  background: #172b24 !important;
  border-color: #2f5244 !important;
  color: #eef6f1 !important;
}
html[data-theme="dark"] .login-gate-card h2 {
  color: #f4f9f6 !important;
}
html[data-theme="dark"] .login-gate-list-box {
  background: #1e362d !important;
  border-color: #34594a !important;
}
html[data-theme="dark"] .login-gate-list-box summary,
html[data-theme="dark"] .login-gate-list-head {
  color: #f0f8f3 !important;
}
html[data-theme="dark"] .login-gate-count {
  background: #473615 !important;
  color: #f7de9c !important;
}
html[data-theme="dark"] .login-gate-ul {
  color: #cfe4d8 !important;
}
html[data-theme="dark"] .login-gate-cta-bar {
  border-color: #315446 !important;
}
.course-preview-lock-bar {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 13px 16px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: #f5efe0;
  border: 1.5px solid #d9b86c;
  color: #2f230a;
  font-size: 13.5px;
  font-weight: 600;
}
html[data-theme="dark"] .course-preview-lock-bar {
  background: #272112 !important;
  border-color: #7c6026 !important;
  color: #f7e4b0 !important;
}

/* ===== Premium Redesign v3: Einladende Lernbereiche (Bento-Grid, Porträts & Gold-Kalligrafie · Hell & Dunkel) ===== */
.learning-grid-v3 {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 20px !important;
}
.learning-grid-v3 .lc-v3 {
  grid-column: span 2 !important;
  border-radius: 22px !important;
  background: #ffffff;
  border: 1.5px solid #dbe7e0 !important;
  box-shadow: 0 12px 32px rgba(9, 54, 41, 0.08) !important;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease !important;
}
.learning-grid-v3 .lc-v3:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 22px 44px rgba(9, 54, 41, 0.16) !important;
  border-color: #d2a955 !important;
}
.learning-grid-v3 .lc-wide {
  grid-column: span 3 !important;
}
.learning-grid-v3 .card-art {
  height: 168px !important;
  padding: 14px 16px;
  display: flex !important;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid rgba(210, 169, 85, 0.45);
}
.learning-grid-v3 .card-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(246, 223, 157, 0.16) 1.2px, transparent 1.2px);
  background-size: 20px 20px;
  pointer-events: none;
}
.lc-art-mini {
  background: linear-gradient(135deg, #0b5d47 0%, #158063 58%, #1d9a77 100%) !important;
}
.lc-art-kids {
  background: linear-gradient(135deg, #0d4b5e 0%, #166a82 58%, #20859f 100%) !important;
}
.lc-art-youth {
  background: linear-gradient(135deg, #163149 0%, #234c6e 58%, #2f658f 100%) !important;
}
.lc-art-adult {
  background: linear-gradient(135deg, #0d2f27 0%, #164b3b 55%, #226652 100%) !important;
}
.lc-art-quran {
  background: linear-gradient(135deg, #2a1d42 0%, #412d63 55%, #5b3f87 100%) !important;
}
.lc-art-badges {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  z-index: 2;
}
.lc-age-pill {
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff !important;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.lc-mod-pill {
  background: rgba(210, 169, 85, 0.25);
  border: 1px solid rgba(244, 217, 140, 0.55);
  color: #fae4a2 !important;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.lc-portrait-duo {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  margin-bottom: 4px;
}
.lc-portrait-duo img {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid #f2d586;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
  background: #0a3c2f;
}
.lc-portrait-duo img:last-child {
  margin-left: -14px;
}
.lc-calligraphy {
  font-family: "Amiri", "Geeza Pro", "Traditional Arabic", serif;
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
  color: #f6df9d;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.32);
  z-index: 2;
  margin-bottom: 4px;
}
.learning-grid-v3 .learning-content {
  padding: 20px 22px 22px !important;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.lc-step-kicker {
  font-size: 11px;
  letter-spacing: 0.09em;
  font-weight: 800;
  color: #8a621c;
  text-transform: uppercase;
}
.learning-grid-v3 .learning-content h3 {
  font-size: 23px !important;
  margin: 0 0 8px !important;
}
.learning-grid-v3 .learning-content p {
  min-height: 46px !important;
  margin: 0 0 14px !important;
  font-size: 14px !important;
  line-height: 1.58 !important;
  flex: 1;
}
.lc-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.lc-highlights span {
  font-size: 12px;
  font-weight: 600;
  color: #164b3b;
  background: #edf6f1;
  border: 1px solid #d2e6db;
  padding: 4px 10px;
  border-radius: 999px;
}
.lc-cta-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  border-radius: 12px;
  border: 1.5px solid #164b3b;
  background: #f3f9f6;
  color: #0e4a39;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.lc-v3:hover .lc-cta-btn,
.lc-cta-btn:hover {
  background: linear-gradient(135deg, #0b513f, #136d55);
  color: #fff;
  border-color: #0b513f;
}
.lc-cta-btn span {
  font-size: 18px;
  transition: transform 0.18s ease;
}
.lc-v3:hover .lc-cta-btn span {
  transform: translateX(4px);
}
html[data-theme="dark"] .learning-grid-v3 .lc-v3 {
  background: #172b24 !important;
  border-color: #2f5244 !important;
}
html[data-theme="dark"] .lc-step-kicker {
  color: #f2d586 !important;
}
html[data-theme="dark"] .lc-highlights span {
  background: #213c32 !important;
  border-color: #365d4e !important;
  color: #d6ede1 !important;
}
html[data-theme="dark"] .lc-cta-btn {
  background: #203b31 !important;
  border-color: #467462 !important;
  color: #f4df9e !important;
}
html[data-theme="dark"] .lc-v3:hover .lc-cta-btn,
html[data-theme="dark"] .lc-cta-btn:hover {
  background: linear-gradient(135deg, #d8b25c, #c2953a) !important;
  border-color: #e4c373 !important;
  color: #13251e !important;
}
@media (max-width: 960px) {
  .learning-grid-v3 .lc-v3,
  .learning-grid-v3 .lc-wide {
    grid-column: span 3 !important;
  }
}
@media (max-width: 640px) {
  .learning-grid-v3 {
    grid-template-columns: 1fr !important;
  }
  .learning-grid-v3 .lc-v3,
  .learning-grid-v3 .lc-wide {
    grid-column: auto !important;
  }
}
