
:root{
  --bg:#f5f1e9;--panel:#fffdf8;--ink:#201c17;--muted:#756e64;--line:#e6ded0;
  --brown:#5b3a21;--brown2:#7a5030;--gold:#ba8b42;--gold2:#e1c48e;--green:#496044;
  --red:#9c493e;--font-ar:"Noto Sans Arabic","Geeza Pro","Segoe UI",Tahoma,Arial,system-ui,-apple-system,sans-serif;--font-display:"Noto Kufi Arabic","Noto Sans Arabic","Geeza Pro","Segoe UI",Tahoma,Arial,system-ui,sans-serif;--shadow:0 16px 40px rgba(70,48,28,.09);--radius:22px
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font-ar);-webkit-tap-highlight-color:transparent}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
.hidden{display:none!important}

.app-shell{min-height:100vh;display:grid;grid-template-columns:280px minmax(0,1fr)}
.sidebar{background:#19150f;color:#f8f0e4;min-height:100vh;position:sticky;top:0;height:100vh;padding:24px 18px;display:flex;flex-direction:column;z-index:50}
.brand{display:flex;gap:12px;align-items:center;padding:2px 8px 24px;border-bottom:1px solid #352d23}
.brand-mark{width:48px;height:48px;border-radius:16px;background:linear-gradient(145deg,var(--gold),#7f5b27);display:grid;place-items:center;font-size:25px;font-weight:800}
.brand strong{display:block;font-family:var(--font-ar);font-size:19px}
.brand span{display:block;color:#bdb1a2;font-size:10px;line-height:1.7;margin-top:2px}
nav{padding-top:18px;display:flex;flex-direction:column;gap:5px;overflow:auto}
.nav-item{border:0;background:transparent;color:#cfc5b7;text-align:right;padding:11px 12px;border-radius:13px;display:flex;align-items:center;gap:10px;font-size:13px}
.nav-item:hover,.nav-item.active{background:#2a241c;color:white}
.nav-item.active{box-shadow:inset -3px 0 var(--gold)}
.nav-item span{width:22px;text-align:center;color:var(--gold2)}
.nav-item b{margin-right:auto;font-size:9px;color:#19150f;background:var(--gold2);padding:3px 7px;border-radius:99px}
.nav-item.featured{border:1px solid #4a3a27}
.sidebar-foot{margin-top:auto;padding-top:18px;border-top:1px solid #352d23}
.mini-profile{display:flex;gap:10px;align-items:center}
.avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#3a3025;color:var(--gold2);font-weight:800}
.mini-profile strong{display:block;font-size:12px}.mini-profile small{color:#a99d8e;font-size:10px}
.role-chip{display:inline-flex;margin-top:10px;padding:4px 8px;border-radius:99px;background:#2a241c;color:#cfc5b7;font-size:9px}
.text-btn{border:0;background:transparent;color:#908678;font-size:10px;padding:12px 0 0}
.sidebar-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.35);z-index:45}

.main{min-width:0}
.topbar{min-height:91px;height:auto;padding:17px clamp(20px,4vw,52px);display:flex;align-items:center;gap:15px;border-bottom:1px solid var(--line);background:rgba(245,241,233,.94);backdrop-filter:blur(12px);position:sticky;top:0;z-index:30}
.page-heading{min-width:0}
.topbar h1{font-family:var(--font-ar);font-size:20px;line-height:1.35;margin:3px 0 0;white-space:nowrap}
.topbar small{font-size:10px;color:var(--muted)}
.top-actions{margin-right:auto;display:flex;align-items:center;gap:10px;flex:0 0 auto}
.points-pill{height:43px;display:flex;align-items:center;gap:6px;background:var(--panel);border:1px solid var(--line);border-radius:99px;padding:0 13px}
.points-pill span{color:var(--gold)}.points-pill b{font-size:14px}.points-pill small{font-size:9px}
.icon-btn{border:1px solid var(--line);background:var(--panel);width:43px;height:43px;border-radius:13px;color:var(--ink);display:grid;place-items:center}
.menu-btn{display:none}
.view{padding:32px clamp(20px,4vw,52px) 60px;max-width:1450px;margin:auto}

.hero{background:linear-gradient(135deg,#211a12,#47311f);color:white;border-radius:28px;padding:34px;position:relative;overflow:hidden;box-shadow:var(--shadow)}
.hero:after{content:'علوم الأولين';position:absolute;left:25px;bottom:-42px;font-family:var(--font-ar);font-weight:800;font-size:130px;color:rgba(255,255,255,.035)}
.hero-grid{display:grid;grid-template-columns:1.3fr .7fr;gap:25px;align-items:center}
.eyebrow{color:var(--gold);font-size:11px;font-weight:700}.hero .eyebrow{color:var(--gold2)}
.hero h2{font-family:var(--font-ar);font-size:clamp(24px,3.5vw,40px);line-height:1.55;margin:8px 0}
.hero p{color:#d9d1c6;max-width:720px;line-height:2;font-size:13px}
.hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:21px}
.btn{border:0;border-radius:13px;padding:11px 17px;font-weight:700;font-size:12px;min-height:42px}
.btn.primary{background:var(--gold2);color:#2b2015}.btn.dark{background:var(--brown);color:white}.btn.light{background:var(--panel);border:1px solid var(--line);color:var(--ink)}.btn.ghost{background:transparent;border:1px solid rgba(255,255,255,.3);color:white}.btn.danger{background:#f6e7e4;color:var(--red)}.btn:disabled{opacity:.5;cursor:not-allowed}
.hero-score{display:grid;place-items:center}
.score-ring{width:180px;height:180px;border-radius:50%;background:conic-gradient(var(--gold2) calc(var(--score)*1%),rgba(255,255,255,.13) 0);display:grid;place-items:center;position:relative}
.score-ring:before{content:'';width:145px;height:145px;border-radius:50%;background:#342619;position:absolute}.score-ring div{position:relative;text-align:center}.score-ring b{font-size:38px}.score-ring small{display:block;color:#c9bdad;font-size:10px}

.section-head{display:flex;justify-content:space-between;align-items:end;margin:30px 0 13px;gap:12px}.section-head h3{font-family:var(--font-ar);font-size:16px;margin:0}.section-head p{color:var(--muted);font-size:11px;margin:4px 0 0}.link-btn{border:0;background:transparent;color:var(--brown2);font-size:11px;font-weight:700;padding:6px 0}
.grid{display:grid;gap:15px}.grid.cards-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid.cards-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.card{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:20px;box-shadow:0 6px 20px rgba(70,48,28,.035)}
.card.clickable{cursor:pointer;transition:.2s}.card.clickable:hover{transform:translateY(-2px);box-shadow:var(--shadow)}
.majlis-promo{background:linear-gradient(120deg,#f8f0df,#fffdf8)}
.card-icon{width:42px;height:42px;border-radius:13px;background:#f0e5d3;display:grid;place-items:center;color:var(--brown);font-size:20px;margin-bottom:14px}
.card h4{font-family:var(--font-ar);font-size:13px;margin:0 0 8px}.card p{color:var(--muted);font-size:11px;line-height:1.9;margin:0}.card-meta{display:flex;gap:8px;align-items:center;margin-top:16px;flex-wrap:wrap}
.chip{background:#f1ece4;border-radius:99px;padding:5px 9px;font-size:9px;color:var(--muted)}.chip.gold{background:#f3e6cb;color:#71501f}.chip.green{background:#e5eee2;color:#405d3b}
.progress{height:8px;background:#eee8df;border-radius:99px;overflow:hidden;margin:8px 0}.progress>span{height:100%;display:block;background:linear-gradient(90deg,var(--gold),var(--brown2));border-radius:inherit}
.skill-row{display:grid;grid-template-columns:120px 1fr 40px;gap:10px;align-items:center;margin:12px 0;font-size:11px}.skill-row b{text-align:left;font-size:11px}

.form-card{max-width:820px}.field{margin-bottom:14px}.field label{display:block;font-size:11px;font-weight:700;margin-bottom:7px}.field input,.field select,.field textarea{width:100%;border:1px solid var(--line);background:white;border-radius:12px;padding:11px 12px;outline:none;color:var(--ink)}.field textarea{min-height:95px;resize:vertical}.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--gold);box-shadow:0 0 0 3px rgba(186,139,66,.1)}.fields-2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.note{background:#f3ecdf;border:1px solid #e2d4bd;border-radius:14px;padding:12px 14px;font-size:10px;color:#6e5b40;line-height:1.9;overflow-wrap:anywhere}.compact-note{margin-bottom:15px}.success-note{background:#eaf2e7;border-color:#c9ddc3;color:#3f5c3a}.warn-note{background:#f5e9dc;border-color:#e6cdb8;color:#7b5035}
.result-box{margin-top:16px;background:#fbf7ef;border:1px solid var(--line);border-radius:18px;padding:18px}.result-box h4{font-family:var(--font-ar);font-size:13px}.clean-list{margin:8px 0;padding:0 18px 0 0}.clean-list li{margin:8px 0;font-size:11px;line-height:1.8;color:var(--muted)}.after-grid{margin-top:15px}.action-gap{margin-top:18px}.mission-title{font-size:18px!important;line-height:1.8!important}.big-reply{font-size:15px!important;color:var(--ink)!important}.qa-row{background:white;border:1px solid var(--line);border-radius:13px;padding:12px;margin:9px 0}.qa-row b,.qa-row span{display:block}.qa-row span{margin-top:5px;color:var(--muted);font-size:11px}.why-box{margin-top:12px;color:var(--muted);line-height:1.9}

.question-card{max-width:840px}.question-card h2{font-family:var(--font-ar);font-size:20px;line-height:1.8}.choice{display:flex;width:100%;text-align:right;background:white;border:1px solid var(--line);border-radius:14px;padding:13px 14px;margin:9px 0;gap:10px;align-items:center;color:var(--ink)}.choice:hover{border-color:var(--gold)}.choice.correct{background:#edf4eb;border-color:#9fb399}.choice.wrong{background:#f8eae7;border-color:#c5948c}.choice-index{width:25px;height:25px;border-radius:8px;background:#f1ece3;display:grid;place-items:center;font-size:10px;flex:0 0 auto}.coach-feedback{margin-top:14px;padding:16px;background:#f6f0e4;border-radius:16px;border-right:4px solid var(--gold)}

.majlis-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(310px,.65fr);gap:18px}
.majlis-stage{min-height:600px;border-radius:28px;position:relative;overflow:hidden;background:radial-gradient(circle at 50% 0,#8e6946 0,#4b3422 38%,#211810 100%);border:1px solid #3c2d21;box-shadow:var(--shadow);padding:24px;color:white}
.majlis-stage:before{content:'';position:absolute;inset:0;background:repeating-linear-gradient(90deg,transparent 0 72px,rgba(255,255,255,.018) 72px 74px);pointer-events:none}
.majlis-stage:after{content:'';position:absolute;inset:auto 0 0;height:42%;background:linear-gradient(180deg,transparent,rgba(0,0,0,.18));pointer-events:none}
.majlis-title{position:relative;text-align:center;z-index:3}.majlis-title small{color:#d8c6ad}.majlis-title h2{font-family:var(--font-ar);font-size:19px;margin:5px}
.speech-bubble{position:absolute;top:86px;left:50%;transform:translateX(-50%);background:#fffdf8;color:#34281d;border-radius:20px;padding:15px 20px;font-size:13px;line-height:1.9;max-width:520px;width:min(82%,520px);text-align:center;box-shadow:0 12px 28px rgba(0,0,0,.22);z-index:6}
.speech-bubble:after{content:'';position:absolute;bottom:-7px;right:50%;border:8px solid transparent;border-top-color:#fffdf8}
.sheikhs{position:relative;z-index:3;display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:145px;align-items:end}
.sheikh{text-align:center;opacity:.72;transition:.25s;filter:saturate(.85)}.sheikh.active{opacity:1;transform:translateY(-7px);filter:none}.sheikh-figure{height:175px;position:relative;margin:auto;width:110px}
.head{width:48px;height:52px;border-radius:46% 46% 44% 44%;background:#b98763;position:absolute;left:31px;top:22px;z-index:3;box-shadow:inset 0 -8px 0 rgba(90,48,31,.05)}
.head:before,.head:after{content:'';position:absolute;top:22px;width:4px;height:3px;border-radius:50%;background:#3e2a20}.head:before{right:13px}.head:after{left:13px}
.ghutra{position:absolute;width:66px;height:62px;left:22px;top:5px;border-radius:36px 36px 18px 18px;background:linear-gradient(135deg,#f3eee5,#d7cfc3);z-index:2;box-shadow:0 0 0 4px rgba(113,88,63,.55)}
.ghutra:after{content:'';position:absolute;inset:8px 10px auto;height:4px;background:#594431;border-radius:99px;box-shadow:0 4px 0 #594431}
.body{position:absolute;width:96px;height:118px;left:7px;top:61px;border-radius:42px 42px 14px 14px;background:#eee9df;border:1px solid rgba(255,255,255,.6);z-index:1;box-shadow:inset 0 -16px 30px rgba(75,55,37,.06)}
.beard{position:absolute;width:35px;height:27px;background:#e6ded3;border-radius:34% 34% 60% 60%;left:38px;top:55px;z-index:4;box-shadow:0 3px 0 rgba(255,255,255,.18)}
.sheikh:nth-child(2) .body{background:#d7d2c9}.sheikh:nth-child(3) .body{background:#f3efe7}.sheikh:nth-child(4) .body{background:#c9c4bb}.sheikh:nth-child(3) .beard{background:#cfc7bc}.sheikh:nth-child(4) .beard{background:#f0e9df}
.sheikh.active .ghutra{box-shadow:0 0 0 4px #b69e80,0 0 0 11px rgba(225,196,142,.17)}
.sheikh-name{font-size:11px;font-weight:800}.sheikh-role{font-size:9px;color:#ccbda9;margin-top:3px}
.rug{height:95px;border-radius:50%;background:repeating-linear-gradient(90deg,#704429 0 12px,#8e6040 12px 24px);position:absolute;left:12%;right:12%;bottom:58px;transform:perspective(250px) rotateX(60deg);opacity:.75;z-index:2}
.majlis-controls{position:absolute;bottom:24px;left:0;right:0;display:flex;justify-content:center;align-items:center;gap:10px;z-index:8;flex-wrap:wrap;padding:0 14px}
.mic-btn{width:76px;height:76px;border-radius:50%;border:5px solid rgba(255,255,255,.15);background:var(--gold2);font-size:26px;color:#342619;box-shadow:0 8px 22px rgba(0,0,0,.25)}.mic-btn.recording{animation:pulse 1s infinite;background:#df9d91}.mic-btn:disabled{opacity:.55}
@keyframes pulse{50%{box-shadow:0 0 0 16px rgba(217,154,142,.13)}}
.mini-audio-btn{border:1px solid rgba(255,255,255,.28);background:rgba(25,21,15,.55);color:white;border-radius:99px;padding:8px 11px;font-size:10px}
.mic-status{position:absolute;left:16px;right:16px;bottom:118px;text-align:center;z-index:8;font-size:10px;line-height:1.7;color:#eadfce;background:rgba(22,16,11,.55);border:1px solid rgba(255,255,255,.12);border-radius:12px;padding:8px 10px;backdrop-filter:blur(5px)}
.mic-status.recording{color:#ffe6df}.mic-status.error{color:#ffd4cb}.mic-status.heard{color:#e5f1df}.mic-status.done{color:#f5e5b9}
.panel-title-row{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.status-dot{width:9px;height:9px;border-radius:50%;background:#bcb4a8;margin-top:6px}.status-dot.busy{background:var(--gold);box-shadow:0 0 0 5px rgba(186,139,66,.12)}
.majlis-panel .conversation{height:350px;overflow:auto;margin:12px 0;padding-left:4px}.msg{padding:10px 12px;border-radius:13px;margin:8px 0;font-size:10px;line-height:1.8}.msg.sheikh{background:#f3ecdf;text-align:right}.msg.child{background:#e9f0e5;margin-right:20px}.msg strong{display:block;font-size:9px;color:var(--muted)}.manual-reply{display:flex;gap:7px}.manual-reply input{min-width:0;flex:1;border:1px solid var(--line);border-radius:12px;padding:10px;color:var(--ink)}.privacy-line{display:flex;gap:7px;align-items:flex-start;font-size:9px;color:var(--muted);line-height:1.6;margin-top:10px}

.readiness-big{display:grid;grid-template-columns:260px 1fr;gap:25px;align-items:center}.dial{width:230px;height:230px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--green) calc(var(--score)*1%),#e8e2d8 0);position:relative;margin:auto}.dial:after{content:'';position:absolute;width:185px;height:185px;background:var(--panel);border-radius:50%}.dial div{position:relative;z-index:1;text-align:center}.dial b{font-size:48px}.dial small{display:block;color:var(--muted)}
.report-header{display:flex;gap:15px;align-items:center;padding-bottom:16px;border-bottom:1px solid var(--line)}.large-avatar{width:56px;height:56px;background:#eee4d5;color:var(--brown)}.report-btn{margin-right:auto}.metric-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:18px 0}.metric{padding:13px;background:#f7f2e9;border-radius:14px}.metric b{display:block;font-size:22px}.metric small{font-size:9px;color:var(--muted)}
.table-wrap{overflow:auto}.data-table{width:100%;border-collapse:collapse;font-size:10px;min-width:660px}.data-table th,.data-table td{padding:10px;border-bottom:1px solid var(--line);text-align:right}.data-table th{color:var(--muted);font-weight:600}.badge{font-size:8px;padding:4px 7px;border-radius:99px;background:#f1ece4}.badge.ok{background:#e6efe3;color:#42603e}.badge.review{background:#f6e9d2;color:#785620}
.empty{text-align:center;padding:45px;color:var(--muted)}.loader{display:inline-block;width:18px;height:18px;border:2px solid #ddd;border-top-color:var(--gold);border-radius:50%;animation:spin .8s linear infinite;vertical-align:middle}@keyframes spin{to{transform:rotate(360deg)}}
.toast{position:fixed;bottom:max(25px,env(safe-area-inset-bottom));left:25px;right:auto;max-width:min(420px,calc(100vw - 50px));background:#211a12;color:white;border-radius:13px;padding:11px 15px;font-size:10px;opacity:0;transform:translateY(15px);pointer-events:none;transition:.25s;z-index:100;overflow-wrap:anywhere}.toast.show{opacity:1;transform:none}
.modal{position:fixed;inset:0;background:rgba(20,16,12,.55);z-index:99;display:grid;place-items:center;padding:18px}.modal-card{position:relative;background:var(--panel);border-radius:22px;padding:25px;width:min(540px,100%);max-height:85vh;overflow:auto}.modal-card p{color:var(--muted);line-height:1.9}.modal-close{position:absolute;left:14px;top:12px;border:0;background:transparent;font-size:23px;color:var(--muted)}

@media(max-width:1050px){
  .app-shell{grid-template-columns:1fr}.sidebar{position:fixed;right:-310px;width:290px;transition:.25s;box-shadow:-20px 0 50px rgba(0,0,0,.2)}.sidebar.open{right:0}.menu-btn{display:grid}.grid.cards-4{grid-template-columns:repeat(2,1fr)}.majlis-layout{grid-template-columns:1fr}.majlis-panel .conversation{height:240px}.hero-grid{grid-template-columns:1fr}.hero-score{justify-content:start}.score-ring{width:130px;height:130px}.score-ring:before{width:105px;height:105px}.score-ring b{font-size:28px}
}

@media(max-width:700px){
  .topbar{min-height:84px;height:auto;padding:12px 14px;gap:9px;align-items:center}.page-heading{flex:1}.topbar h1{font-size:18px;line-height:1.25;margin-top:2px}.topbar small{font-size:8px}.icon-btn{width:44px;height:44px}.points-pill{height:44px;padding:0 10px}.points-pill small{display:none}.top-actions{gap:6px;margin-right:0}.view{padding:18px 13px 52px}.grid.cards-3,.grid.cards-4,.grid.two,.fields-2{grid-template-columns:1fr}.hero{padding:24px 20px}.hero h2{font-size:23px}.hero p{font-size:12px}.readiness-big{grid-template-columns:1fr}.metric-grid{grid-template-columns:repeat(2,1fr)}.skill-row{grid-template-columns:105px 1fr 36px;gap:7px;font-size:10px}.section-head{margin-top:24px}.question-card h2{font-size:18px;line-height:1.75}
  .majlis-stage{min-height:625px;padding:15px 10px;border-radius:24px}.majlis-title h2{font-size:17px}.majlis-title small{font-size:9px}.speech-bubble{top:78px;width:90%;padding:12px 13px;font-size:11px;line-height:1.8}.sheikhs{grid-template-columns:repeat(4,1fr);gap:0;margin-top:155px}.sheikh-figure{width:72px;height:150px}.head{width:38px;height:42px;left:17px;top:20px}.head:before{right:10px}.head:after{left:10px}.ghutra{width:54px;height:52px;left:9px;top:6px}.body{width:66px;height:100px;left:3px;top:55px}.beard{width:27px;height:22px;left:23px;top:48px}.sheikh-name{font-size:10px}.sheikh-role{display:none}.rug{left:9%;right:9%;bottom:66px}.mic-status{bottom:128px;font-size:9px}.majlis-controls{bottom:23px}.mic-btn{width:72px;height:72px}.manual-reply{flex-direction:column}.manual-reply .btn{width:100%}.report-header{align-items:flex-start;flex-wrap:wrap}.report-btn{margin-right:0;width:100%}.toast{left:14px;right:14px;max-width:none;text-align:center}.card{padding:17px}.note{font-size:9px}
}

@media(max-width:390px){
  .topbar h1{font-size:16px}.points-pill{padding:0 8px}.points-pill b{font-size:12px}.icon-btn{width:40px;height:40px}.sheikh-figure{width:64px}.head{left:13px}.ghutra{left:5px}.body{left:0;width:62px}.beard{left:18px}.sheikh-name{font-size:9px}.speech-bubble{font-size:10px}.skill-row{grid-template-columns:95px 1fr 32px}
}


/* علوم الأولين v0.3 — تجربة ولي الأمر */
.parent-hero{background:linear-gradient(135deg,#1e1710,#5b3a21 58%,#7b5634);color:#fff;border-radius:30px;padding:34px;box-shadow:var(--shadow);position:relative;overflow:hidden}
.parent-hero:after{content:'علوم';position:absolute;left:20px;bottom:-48px;font-family:var(--font-ar);font-size:120px;font-weight:800;color:rgba(255,255,255,.035);pointer-events:none}
.parent-hero-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(250px,.75fr);gap:28px;align-items:center;position:relative;z-index:1}
.parent-hero h2{font-family:var(--font-ar);font-size:clamp(25px,3.5vw,42px);line-height:1.55;margin:8px 0 10px}.parent-hero p{color:#e4d9c9;line-height:2;font-size:13px;max-width:780px}
.parent-kicker{display:inline-flex;align-items:center;gap:7px;background:rgba(225,196,142,.13);border:1px solid rgba(225,196,142,.28);padding:6px 10px;border-radius:99px;color:#f2dbaa;font-size:10px;font-weight:700}
.parent-score-card{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16);border-radius:22px;padding:20px;text-align:center;backdrop-filter:blur(8px)}
.parent-score-card b.big{display:block;font-size:46px;line-height:1}.parent-score-card small{color:#d7c9b7}.score-change{display:flex;justify-content:center;gap:7px;align-items:center;margin-top:10px;font-size:10px}.score-change strong{color:#f3d99e}
.proof-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:15px}.proof{background:var(--panel);border:1px solid var(--line);border-radius:17px;padding:15px}.proof b{display:block;font-size:22px}.proof span{display:block;color:var(--muted);font-size:9px;margin-top:4px}.proof em{display:block;color:var(--green);font-size:9px;font-style:normal;margin-top:5px}
.parent-value-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.value-card{background:var(--panel);border:1px solid var(--line);border-radius:20px;padding:19px;position:relative;overflow:hidden}.value-card .num{width:30px;height:30px;border-radius:10px;background:#f0e5d3;color:var(--brown);display:grid;place-items:center;font-weight:800;font-size:11px;margin-bottom:12px}.value-card h4{font-family:var(--font-ar);font-size:13px;margin:0 0 7px}.value-card p{font-size:10px;color:var(--muted);line-height:1.9;margin:0}
.before-after{display:grid;grid-template-columns:1fr auto 1fr;gap:12px;align-items:stretch}.ba-box{border:1px solid var(--line);border-radius:18px;padding:18px;background:#faf7f0}.ba-box.after{background:#edf3e9;border-color:#c9d8c2}.ba-box small{color:var(--muted);font-size:9px}.ba-box b{display:block;font-family:var(--font-ar);font-size:17px;margin:7px 0}.ba-box p{font-size:10px;color:var(--muted);line-height:1.8;margin:0}.ba-arrow{display:grid;place-items:center;font-size:24px;color:var(--gold)}
.journey{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.journey-step{background:var(--panel);border:1px solid var(--line);border-radius:18px;padding:16px;min-height:145px}.journey-step.done{border-color:#cbd9c6;background:#f2f7ef}.journey-step.current{border-color:#d9b86f;box-shadow:inset 0 0 0 2px rgba(186,139,66,.12)}.journey-step span{display:inline-flex;width:27px;height:27px;border-radius:9px;background:#f1ece4;align-items:center;justify-content:center;font-size:10px;font-weight:800}.journey-step h4{font-family:var(--font-ar);font-size:11px;margin:12px 0 6px}.journey-step p{font-size:9px;color:var(--muted);line-height:1.8;margin:0}
.parent-action{background:linear-gradient(120deg,#f4ead8,#fffdf8);border:1px solid #e3d3b7;border-radius:22px;padding:22px;display:grid;grid-template-columns:1fr auto;gap:15px;align-items:center}.parent-action h3{font-family:var(--font-ar);font-size:16px;margin:0 0 5px}.parent-action p{font-size:10px;color:var(--muted);line-height:1.9;margin:0}
.trust-row{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.trust-item{display:flex;gap:10px;align-items:flex-start;padding:14px;border-radius:15px;background:#f8f4ec}.trust-item i{font-style:normal;color:var(--green);font-size:18px}.trust-item b{display:block;font-size:10px}.trust-item small{display:block;color:var(--muted);font-size:9px;line-height:1.7;margin-top:3px}
.role-switch-banner{display:flex;justify-content:space-between;gap:12px;align-items:center;background:#f2eadc;border:1px solid #e2d4bd;border-radius:16px;padding:13px 15px;margin-bottom:15px}.role-switch-banner b{font-size:11px}.role-switch-banner span{display:block;color:var(--muted);font-size:9px;margin-top:3px}
.mic-preflight{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin-top:10px}.mic-check-btn{border:1px solid rgba(255,255,255,.28);background:rgba(255,255,255,.09);color:#fff;border-radius:99px;padding:8px 12px;font-size:9px}
.mic-check-btn.ok{background:rgba(97,145,83,.25);border-color:rgba(164,205,151,.45)}
@media(max-width:900px){.parent-hero-grid{grid-template-columns:1fr}.proof-strip{grid-template-columns:repeat(2,1fr)}.parent-value-grid{grid-template-columns:1fr}.journey{grid-template-columns:repeat(2,1fr)}.trust-row{grid-template-columns:1fr}.before-after{grid-template-columns:1fr}.ba-arrow{transform:rotate(90deg)}.parent-action{grid-template-columns:1fr}.parent-action .btn{width:100%}}
@media(max-width:700px){.parent-hero{padding:24px 19px;border-radius:24px}.parent-hero h2{font-size:24px}.parent-score-card b.big{font-size:40px}.proof-strip{grid-template-columns:repeat(2,1fr)}.proof b{font-size:19px}.journey{grid-template-columns:1fr 1fr}.role-switch-banner{align-items:flex-start;flex-direction:column}.role-switch-banner .btn{width:100%}}

/* علوم الأولين v0.4 — علوم من زمان */
.heritage-feature{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:center;margin:18px 0 8px;padding:22px 24px;border:1px solid #dfcfb2;border-radius:22px;background:linear-gradient(120deg,#fbf3e5,#fffdf8);position:relative;overflow:hidden}
.heritage-feature:before{content:'❖';position:absolute;left:22px;top:-18px;font-size:84px;color:rgba(126,85,43,.055)}.heritage-feature h3{font-family:var(--font-ar);font-size:20px;margin:7px 0}.heritage-feature p{font-size:10px;color:var(--muted);line-height:1.9;margin:0 0 7px}.heritage-feature small{font-size:9px;color:#665c50;line-height:1.8}.heritage-kicker{display:inline-flex;align-items:center;gap:6px;color:#8a5c2e;background:#f2e4cc;border-radius:99px;padding:5px 9px;font-size:9px;font-weight:800}
.parent-heritage-feature{margin-top:14px}.heritage-proof{background:linear-gradient(135deg,#f7efe2,#fffaf1)}
.parent-value-grid{grid-template-columns:repeat(4,1fr)}
.heritage-hero{display:grid;grid-template-columns:minmax(0,1fr) 150px;gap:18px;align-items:center;background:linear-gradient(135deg,#20170f,#604126 62%,#7b5634);color:white;border-radius:28px;padding:28px;box-shadow:var(--shadow)}.heritage-hero h2{font-family:var(--font-ar);font-size:28px;margin:8px 0}.heritage-hero p{color:#e4d8c7;font-size:11px;line-height:2;margin:0}.heritage-day{height:120px;border-radius:22px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.15);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.heritage-day b{font-size:40px}.heritage-day small{font-size:8px;color:#d8c8b5;max-width:90px;line-height:1.6}
.proverb-card{margin-top:16px;background:#fff;border:1px solid var(--line);border-radius:24px;padding:24px;box-shadow:var(--shadow)}.proverb-card blockquote{font-family:var(--font-ar);font-size:clamp(22px,3vw,34px);line-height:1.7;margin:15px 0 20px;color:#332417}.proverb-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.proverb-grid>div{padding:14px;border-radius:15px;background:#faf6ee}.proverb-grid small{display:block;color:#9a7a50;font-size:9px;font-weight:800;margin-bottom:6px}.proverb-grid p{font-size:10px;color:var(--muted);line-height:1.9;margin:0}
.heritage-quiz .choice{margin-bottom:9px}.heritage-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.heritage-tile{min-height:190px;border-radius:20px;padding:18px;border:1px solid var(--line);background:var(--panel);position:relative;overflow:hidden}.heritage-tile:after{position:absolute;left:-8px;bottom:-28px;font-size:86px;opacity:.035}.heritage-tile.word:after{content:'أ'}.heritage-tile.custom:after{content:'☕'}.heritage-tile.phrase:after{content:'“'}.heritage-tile.etiquette:after{content:'✓'}.heritage-tile>span{display:inline-block;font-size:8px;font-weight:800;color:#8a5c2e;background:#f3e7d2;border-radius:99px;padding:4px 7px}.heritage-tile h4{font-family:var(--font-ar);font-size:15px;margin:13px 0 8px}.heritage-tile p{font-size:10px;color:var(--muted);line-height:1.9;margin:0}.heritage-tile small{display:block;font-size:8px;color:#8a8176;line-height:1.8;margin-top:10px}.heritage-note{margin-top:14px;padding:13px 15px;background:#f6f2eb;border-radius:14px;color:#7d7468;font-size:8px;line-height:1.9}
@media(max-width:900px){.parent-value-grid,.heritage-grid{grid-template-columns:repeat(2,1fr)}.heritage-feature{grid-template-columns:1fr}.heritage-feature .btn{width:100%}.proverb-grid{grid-template-columns:1fr}}
@media(max-width:700px){.heritage-hero{grid-template-columns:1fr;padding:22px 18px}.heritage-day{height:auto;min-height:88px}.heritage-day b{font-size:32px}.heritage-feature{padding:18px}.heritage-feature h3{font-size:17px}.heritage-grid{grid-template-columns:1fr}.heritage-tile{min-height:0}.parent-value-grid{grid-template-columns:1fr}.proverb-card{padding:19px}.proverb-card blockquote{font-size:23px}}

/* علوم الأولين v0.5 — اعرف موقفك + صوت الوالد */
.mini-parent-hero{margin-bottom:16px}
.parent-score-card .small-big{font-size:38px!important}
.parent-feature-pair{margin-top:16px}.stacked-action{grid-template-columns:1fr!important;align-content:space-between;min-height:210px}.stacked-action .btn{width:100%}
.child-smart-grid{margin:15px 0 4px}
.social-hero,.voice-drill-hero{background:linear-gradient(135deg,#f6eddf,#fffdf8);border:1px solid #e2d3bb;border-radius:24px;padding:24px;margin-bottom:16px}.social-hero h2,.voice-drill-hero h2{font-family:var(--font-ar);font-size:25px;margin:8px 0}.social-hero p,.voice-drill-hero p{font-size:11px;color:var(--muted);line-height:1.9;max-width:760px}
.social-question h3{font-family:var(--font-ar);font-size:17px;line-height:1.8;margin:12px 0 18px}.quiz-progress{display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:center;margin-bottom:16px}.quiz-progress>span{font-size:10px;color:var(--muted)}
.social-result .card{margin-bottom:14px}.social-result .heritage-note{margin-top:12px}
.voice-parent-hero{margin-bottom:16px}.voice-group{margin-bottom:14px}.group-label{font-size:10px;color:#8a5c2e;font-weight:800;margin:0 0 7px 4px}.voice-list{padding:8px 16px}.voice-row{display:grid;grid-template-columns:48px minmax(0,1fr) 42px;gap:10px;align-items:center;padding:11px 0;border-bottom:1px solid var(--line)}.voice-row:last-child{border-bottom:0}.voice-copy b{display:block;font-size:11px;line-height:1.8}.voice-copy small{display:block;color:var(--muted);font-size:9px;line-height:1.7;margin-top:3px}.voice-rec{width:42px;height:42px;border-radius:50%;border:1px solid var(--line);background:#faf7f1;color:#8a5c2e;font-weight:800}.voice-rec.done{background:#edf3e9;border-color:#b6c9af;color:#46623e}.voice-rec.live{background:#f8e8e5;border-color:#c9968d;color:var(--red);animation:voicePulse 1.1s infinite}.mini-audio{width:38px;height:38px;border-radius:12px;border:1px solid var(--line);background:#fff;color:var(--brown)}@keyframes voicePulse{50%{opacity:.45}}
.voice-stage{text-align:center;max-width:720px;margin:auto}.voice-stage h3{font-family:var(--font-ar);font-size:19px;line-height:1.8;min-height:54px}.freeze-clock{width:170px;height:170px;border-radius:50%;margin:22px auto;background:conic-gradient(var(--gold) 0 70%,#eee8df 70%);display:grid;place-content:center;position:relative}.freeze-clock:before{content:'';position:absolute;inset:8px;border-radius:50%;background:#fff}.freeze-clock>*{position:relative}.freeze-clock b{display:block;font-size:40px;line-height:1}.freeze-clock span{display:block;font-size:9px;color:var(--muted);margin-top:7px}.voice-stage #pvStageHint{font-size:10px;color:var(--muted);min-height:22px;margin-bottom:12px}
.comfort-scale{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin:14px 0}.comfort-btn{border:1px solid var(--line);background:#fff;border-radius:13px;padding:9px 5px;color:var(--ink)}.comfort-btn b{display:block;font-size:15px}.comfort-btn small{display:block;font-size:7px;color:var(--muted);min-height:11px}.comfort-btn.on{border-color:var(--gold);background:#f7ecd8;box-shadow:0 0 0 2px rgba(186,139,66,.12)}
.child-proof{margin:0 0 15px}.local-reply{width:100%;margin:12px 0}.gap-card textarea{width:100%;min-height:80px;margin:12px 0;border:1px solid var(--line);border-radius:12px;padding:10px;font-family:inherit}.block-muted{display:block;color:var(--muted);font-size:9px;margin-top:4px}
.btn.quiet{background:transparent;border:1px solid var(--line);color:var(--muted);margin-top:8px}
@media(prefers-reduced-motion:reduce){.voice-rec.live{animation:none}}
@media(max-width:900px){.parent-feature-pair,.child-smart-grid{grid-template-columns:1fr}.voice-row{grid-template-columns:44px minmax(0,1fr) 38px}.comfort-scale{gap:6px}}
@media(max-width:520px){.social-hero,.voice-drill-hero{padding:19px 16px;border-radius:20px}.social-hero h2,.voice-drill-hero h2{font-size:21px}.voice-list{padding:6px 12px}.voice-row{gap:8px}.voice-copy b{font-size:10px}.voice-copy small{font-size:8px}.comfort-btn{padding:8px 2px}.freeze-clock{width:145px;height:145px}.freeze-clock b{font-size:34px}}


/* علوم الأولين v0.6 — ثابت */
.steady-hero{display:grid;grid-template-columns:minmax(0,1fr) 190px;gap:22px;align-items:center;background:linear-gradient(135deg,#161b18,#263f33 55%,#4b5e49);color:#fff;border-radius:28px;padding:30px;box-shadow:var(--shadow);overflow:hidden;position:relative}
.steady-hero:after{content:'ثابت';position:absolute;left:20px;bottom:-48px;font-family:var(--font-ar);font-size:128px;font-weight:800;color:rgba(255,255,255,.035)}
.steady-hero h2{font-family:var(--font-ar);font-size:clamp(24px,3vw,36px);line-height:1.65;margin:8px 0}.steady-hero p{color:#d8e1d7;font-size:11px;line-height:2;max-width:760px;margin:0}
.steady-kicker{display:inline-flex;align-items:center;gap:6px;color:#557357;background:#e7efe5;border-radius:99px;padding:5px 9px;font-size:9px;font-weight:800}.steady-hero .steady-kicker{background:rgba(255,255,255,.1);color:#dcebd9}
.steady-primary{background:#dbe7d7!important;color:#203026!important}.steady-safe-btn{background:transparent;color:#fff;border:1px solid rgba(255,255,255,.35)}
.steady-shield{width:150px;height:170px;margin:auto;display:grid;place-content:center;text-align:center;background:linear-gradient(180deg,#d9e6d4,#b7cdb0);color:#29402d;clip-path:polygon(50% 0,92% 18%,86% 72%,50% 100%,14% 72%,8% 18%);position:relative;z-index:1}.steady-shield b{font-family:var(--font-ar);font-size:24px}.steady-shield span{font-size:8px;margin-top:5px}
.steady-cases{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:16px}.steady-case{display:flex;gap:12px;align-items:flex-start;text-align:right;background:var(--panel);border:1px solid var(--line);border-radius:18px;padding:16px;color:var(--ink);box-shadow:0 5px 18px rgba(70,48,28,.03)}.steady-case:hover{border-color:#9eb09a}.steady-case>span{width:34px;height:34px;border-radius:11px;background:#e9f0e6;color:#4c684b;display:grid;place-items:center;flex:0 0 auto;font-weight:800}.steady-case b{display:block;font-family:var(--font-ar);font-size:11px;line-height:1.7}.steady-case small{display:block;color:var(--muted);font-size:8px;line-height:1.8;margin-top:4px}
.steady-principles{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:15px 0 22px}.steady-principles>div{display:flex;gap:10px;align-items:center;background:#edf2ea;border:1px solid #d9e3d5;border-radius:15px;padding:12px}.steady-principles b{width:27px;height:27px;border-radius:50%;background:#597358;color:#fff;display:grid;place-items:center;font-size:10px}.steady-principles span{font-size:9px;line-height:1.7}
.steady-drill,.steady-review,.steady-decision,.steady-end{max-width:760px;margin:18px auto 0}.steady-roundline{display:flex;justify-content:space-between;gap:10px;color:var(--muted);font-size:9px;margin-bottom:13px}.steady-bubble{background:#292a27;color:#fff;border-radius:20px 20px 6px 20px;padding:18px;margin-bottom:10px}.steady-bubble small{display:block;color:#bfc5bd;font-size:8px;margin-bottom:6px}.steady-bubble strong{display:block;font-family:var(--font-ar);font-size:19px;line-height:1.8;font-weight:600}.steady-clock{margin:20px auto 15px;background:conic-gradient(#607d61 0 72%,#ebe9e4 72%)}.steady-hint{font-size:9px;color:var(--muted);text-align:center;min-height:24px;margin:6px 0}.steady-safety-link{width:100%;margin-top:9px;border:0;background:#f7ece9;color:#8b493f;border-radius:12px;padding:10px;font-size:9px}
.steady-review h3,.steady-decision h3,.steady-end h3{font-family:var(--font-ar);font-size:18px;line-height:1.8}.steady-review>p,.steady-decision>p,.steady-end>p{font-size:10px;line-height:1.9;color:var(--muted)}.steady-self-title{margin-top:16px!important;font-weight:700;color:var(--ink)!important}.steady-checks{display:flex;gap:8px;flex-wrap:wrap}.steady-checks button{border:1px solid var(--line);background:#fff;border-radius:99px;padding:8px 12px;color:var(--muted);font-size:9px}.steady-checks button.on{background:#e7efe4;border-color:#aac1a4;color:#456044}.steady-model{margin-top:16px;background:#f4f0e7;border-radius:15px;padding:15px}.steady-model small{display:block;color:#7d6c52;font-size:8px}.steady-model b{display:block;font-size:11px;line-height:1.9;margin:5px 0}.steady-model p{font-size:9px!important;line-height:1.9!important;color:var(--muted)!important;margin:0!important}.steady-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:14px}.steady-actions .btn{flex:1}
.steady-decision .choice span:last-child{display:block}.steady-decision .choice b{display:block;font-size:10px}.steady-decision .choice small{display:block;color:var(--muted);font-size:8px;margin-top:3px}.steady-end.safe{border-color:#b8ccb2}.steady-end.warn{border-color:#ddb6af}
.safety-steps{display:grid;gap:9px;margin:15px 0}.safety-steps>div{display:grid;grid-template-columns:30px 1fr;gap:10px;align-items:start;background:#f8f5ef;border-radius:13px;padding:11px}.safety-steps b{width:27px;height:27px;border-radius:50%;display:grid;place-items:center;background:#536d53;color:#fff;font-size:10px}.safety-steps span{font-size:10px;line-height:1.8;color:var(--muted)}
.steady-parent-feature,.steady-home-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center;border:1px solid #ccd9c8;background:linear-gradient(120deg,#eef4eb,#fffdf8);border-radius:20px;padding:18px 20px;margin:15px 0}.steady-parent-feature h3,.steady-home-card h3{font-family:var(--font-ar);font-size:14px;margin:7px 0}.steady-parent-feature p,.steady-home-card p{font-size:9px;color:var(--muted);line-height:1.9;margin:0}.steady-home-card{grid-template-columns:46px minmax(0,1fr) auto;cursor:pointer}.steady-home-icon{width:46px;height:46px;border-radius:15px;background:#dfeadd;display:grid;place-items:center;font-size:20px}.steady-value-grid{grid-template-columns:repeat(4,1fr)}
@media(max-width:900px){.steady-cases{grid-template-columns:repeat(2,1fr)}.steady-value-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){.steady-hero{grid-template-columns:1fr;padding:22px 18px}.steady-shield{width:120px;height:135px}.steady-cases,.steady-principles{grid-template-columns:1fr}.steady-home-card,.steady-parent-feature{grid-template-columns:1fr}.steady-home-icon{display:none}.steady-home-card>.chip{justify-self:start}.steady-value-grid{grid-template-columns:1fr 1fr}.steady-actions{display:grid;grid-template-columns:1fr}.steady-actions .btn{width:100%}}
@media(max-width:520px){.steady-value-grid{grid-template-columns:1fr}.steady-bubble strong{font-size:16px}.steady-hero h2{font-size:22px}.steady-decision .choice{align-items:flex-start}}

/* علوم الأولين v0.7 — البحث والضيافة والقاموس + قراءة أوضح */
.discovery-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0 20px}
.discovery-card{display:flex;gap:13px;align-items:center;background:var(--panel);border:1px solid var(--line);border-radius:18px;padding:16px;box-shadow:0 5px 18px rgba(70,48,28,.04)}
.discovery-card>span{width:42px;height:42px;display:grid;place-items:center;border-radius:14px;background:#f1e7d6;color:#80592d;font-size:20px;flex:0 0 auto}
.discovery-card b{display:block;font-family:var(--font-ar);font-size:14px;line-height:1.6}.discovery-card small{display:block;color:var(--muted);font-size:11px;line-height:1.8;margin-top:3px}
.knowledge-search-card{background:linear-gradient(130deg,#fffaf1,#f0e4cf);border:1px solid #e1cfad;border-radius:22px;padding:20px;margin:16px 0}
.knowledge-search-card h3{font-family:var(--font-ar);font-size:19px;line-height:1.7;margin:7px 0 12px}.knowledge-kicker{display:inline-flex;color:#7d5a2d;background:#f2e4c9;border-radius:99px;padding:5px 9px;font-size:11px;font-weight:800}
.knowledge-search-inline,.lookup-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;align-items:center}.knowledge-search-inline input,.lookup-search input{min-width:0;width:100%;border:1px solid var(--line);background:#fff;border-radius:13px;padding:13px 14px;color:var(--ink);outline:0;font-size:15px}.knowledge-search-inline input:focus,.lookup-search input:focus{border-color:#c69b58;box-shadow:0 0 0 3px rgba(186,139,66,.12)}
.quick-links{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.quick-links button,.popular-chips button{border:1px solid #ddcfba;background:rgba(255,255,255,.68);color:#6e5130;border-radius:99px;padding:7px 11px;font-size:12px}
.lookup-hero,.dictionary-hero{background:linear-gradient(135deg,#271d13,#5b3a21);color:#fff;border-radius:26px;padding:27px;margin-bottom:18px;box-shadow:var(--shadow)}
.lookup-hero h2,.dictionary-hero h2,.hospitality-hero h2{font-family:var(--font-ar);font-size:clamp(25px,3vw,34px);line-height:1.6;margin:9px 0}.lookup-hero p,.dictionary-hero p,.hospitality-hero p{font-size:15px;line-height:2;color:#e4dcd1;max-width:800px}.lookup-hero .lookup-search,.dictionary-hero .lookup-search{margin-top:16px}.popular-chips{display:flex;gap:7px;flex-wrap:wrap;margin-top:11px}.popular-chips button{color:#f6ead7;border-color:rgba(255,255,255,.22);background:rgba(255,255,255,.07)}
.reply-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.reply-card{background:var(--panel);border:1px solid var(--line);border-radius:19px;padding:18px}.reply-heard{display:inline-block;color:#7d5a2d;background:#f5ead6;border-radius:99px;padding:5px 9px;font-size:11px;font-weight:800}.reply-card h3{font-family:var(--font-ar);font-size:18px;line-height:1.9;margin:10px 0 5px}.reply-card h3 small{font-family:var(--font-ar);font-size:11px;color:var(--muted);font-weight:500}.reply-card p{font-size:14px;line-height:1.9;color:var(--muted);margin:0 0 10px}.reply-meta{font-size:12.5px;line-height:1.9;color:#6f675e;margin-top:5px}.lookup-empty{grid-column:1/-1}.practice-line{font-family:var(--font-ar);font-size:24px;line-height:1.8;text-align:center;background:#f6f0e6;border-radius:16px;padding:18px;margin:14px 0}.practice-answer{margin-top:12px;background:#eaf1e7;border-radius:14px;padding:14px;font-family:var(--font-ar);font-size:18px;line-height:1.8}.practice-answer small{display:block;font-family:var(--font-ar);font-size:12px;color:var(--muted);margin-top:5px}
.hospitality-hero{display:grid;grid-template-columns:minmax(0,1fr) 150px;gap:20px;align-items:center;background:linear-gradient(135deg,#f7ecda,#fffdf8);border:1px solid #e2d2b7;border-radius:26px;padding:27px;margin-bottom:16px}.hospitality-hero p{color:var(--muted)}.hospitality-score{height:125px;border-radius:50%;background:#5b3a21;color:#fff;display:grid;place-content:center;text-align:center}.hospitality-score b{font-size:30px}.hospitality-score span{font-size:11px;color:#dbcdbd}.hospitality-grid{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:14px}.hospitality-card{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:10px;align-items:center;text-align:right;background:var(--panel);border:1px solid var(--line);border-radius:17px;padding:14px;color:var(--ink)}.hospitality-card>span{width:34px;height:34px;border-radius:11px;background:#f0e4d1;display:grid;place-items:center;color:#765127;font-weight:800}.hospitality-card b{display:block;font-family:var(--font-ar);font-size:13px;line-height:1.7}.hospitality-card small{display:block;font-size:11px;color:var(--muted);line-height:1.7}.hospitality-card i{font-style:normal;color:#557357;font-weight:800}.hospitality-question,.hospitality-result{max-width:760px;margin:18px auto}.hospitality-question h3,.hospitality-result h3{font-family:var(--font-ar);font-size:20px;line-height:1.8}.hospitality-result p{font-size:14px;line-height:2}.ok-result{border-color:#b9cdb3}.learn-result{border-color:#ddc7a6}
.dictionary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.dictionary-card{background:var(--panel);border:1px solid var(--line);border-radius:18px;padding:17px;min-height:160px}.dictionary-card>span{display:inline-block;font-size:10.5px;color:#7b5a33;background:#f3e7d4;border-radius:99px;padding:4px 8px}.dictionary-card h3{font-family:var(--font-ar);font-size:18px;margin:10px 0 6px}.dictionary-card p{font-size:13.5px;line-height:1.9;color:var(--muted);margin:0}.dictionary-card small{display:block;font-size:12px;line-height:1.8;color:#8a8176;margin-top:9px;padding-top:9px;border-top:1px solid var(--line)}

/* رفع القراءة قليلًا في المنصة كلها */
body{font-size:16px;line-height:1.75}.nav-item{font-size:14px}.brand span{font-size:11.5px}.mini-profile strong{font-size:13px}.mini-profile small,.role-chip,.text-btn{font-size:11px}.topbar h1{font-size:22px}.topbar small{font-size:12px}.points-pill b{font-size:15px}.points-pill small{font-size:10.5px}.btn{font-size:14px;min-height:45px}.view p{font-size:14px;line-height:1.95}.view small{font-size:11.5px;line-height:1.7}.eyebrow,.parent-kicker,.heritage-kicker,.steady-kicker{font-size:11px}.section-head h3{font-size:18px}.section-head p{font-size:13px}.card h4,.value-card h4,.proof span,.trust-item b{font-size:14px}.choice{font-size:14px}.steady-hero p,.steady-parent-feature p,.steady-home-card p,.steady-review>p,.steady-decision>p,.steady-end>p,.steady-model p{font-size:13.5px!important}.steady-case b,.steady-model b,.steady-decision .choice b{font-size:13px}.steady-case small,.steady-roundline,.steady-hint,.steady-safety-link,.steady-checks button,.steady-model small,.safety-steps span{font-size:11.5px}.voice-copy b{font-size:13px}.voice-copy small,.voice-stage #pvStageHint,.block-muted{font-size:11.5px}.heritage-tile p{font-size:13px}.heritage-tile small,.heritage-note{font-size:11.5px}

@media(max-width:900px){.discovery-strip,.dictionary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.reply-grid{grid-template-columns:1fr}.hospitality-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.discovery-strip,.dictionary-grid,.hospitality-grid{grid-template-columns:1fr}.hospitality-hero{grid-template-columns:1fr;padding:21px 17px}.hospitality-score{width:105px;height:105px}.lookup-hero,.dictionary-hero{padding:21px 17px}.knowledge-search-inline,.lookup-search{grid-template-columns:1fr}.knowledge-search-inline .btn,.lookup-search .btn{width:100%}.reply-card{padding:16px}.reply-card h3{font-size:17px}.topbar h1{font-size:20px}.view{padding-inline:17px}.btn{font-size:14px}.view p{font-size:14px}.view small{font-size:11.5px}.nav-item{font-size:14px}}

/* علوم الأولين v0.7.1 — تحسين القراءة في كل الملاحظات والنصوص المساندة */
/* الملاحظة الأساسية: لا تقل عن 15px حتى على الجوال */
.note,
.heritage-note {
  font-size: 15px !important;
  line-height: 2.05 !important;
  color: #5f5549 !important;
  letter-spacing: 0 !important;
}

/* النصوص الشارحة الطويلة في جميع أقسام المنصة */
.block-muted,
.why-box,
.section-head p,
.value-card p,
.ba-box p,
.journey-step p,
.parent-action p,
.trust-item small,
.role-switch-banner span,
.heritage-feature p,
.heritage-feature small,
.proverb-grid p,
.heritage-tile p,
.heritage-tile small,
.voice-copy small,
.steady-parent-feature p,
.steady-home-card p,
.steady-review > p,
.steady-decision > p,
.steady-end > p,
.steady-model p,
.steady-case small,
.steady-hint,
.steady-model small,
.safety-steps span,
.discovery-card small,
.reply-meta,
.practice-answer small,
.hospitality-card small,
.dictionary-card small {
  font-size: 13.5px !important;
  line-height: 1.95 !important;
  color: #625a51 !important;
}

/* أي نص صغير داخل مساحة المحتوى يكون مقروءًا بدون تضخيم الشريط العلوي والقوائم */
.view small {
  font-size: 13px !important;
  line-height: 1.85 !important;
}

@media (max-width: 620px) {
  .note,
  .heritage-note {
    font-size: 15px !important;
    line-height: 2.05 !important;
    padding: 15px 16px;
  }

  .view small {
    font-size: 13px !important;
    line-height: 1.85 !important;
  }

  .block-muted,
  .why-box,
  .section-head p,
  .value-card p,
  .ba-box p,
  .journey-step p,
  .parent-action p,
  .trust-item small,
  .role-switch-banner span,
  .heritage-feature p,
  .heritage-feature small,
  .proverb-grid p,
  .heritage-tile p,
  .heritage-tile small,
  .voice-copy small,
  .steady-parent-feature p,
  .steady-home-card p,
  .steady-review > p,
  .steady-decision > p,
  .steady-end > p,
  .steady-model p,
  .steady-case small,
  .steady-hint,
  .steady-model small,
  .safety-steps span,
  .discovery-card small,
  .reply-meta,
  .practice-answer small,
  .hospitality-card small,
  .dictionary-card small {
    font-size: 13.5px !important;
    line-height: 1.95 !important;
  }
}

/* V0.7.3 — تحليل الرد الصوتي في «ثابت» */
.steady-ai-feedback{margin-top:16px;border:1px solid var(--line);border-radius:18px;padding:16px;background:#fffdf8}
.steady-ai-feedback.safe{border-color:#b7ccb1;background:#f5faf3}.steady-ai-feedback.warn{border-color:#dfb8af;background:#fff7f4}.steady-ai-feedback.neutral{border-color:#d8c9a8;background:#fffaf0}
.steady-feedback-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.steady-feedback-head small{display:block;color:var(--muted);font-size:12px}.steady-feedback-head b{display:block;font-family:var(--font-ar);font-size:18px;margin-top:3px}.steady-feedback-head>strong{font-size:24px;color:#4f694f}
.steady-heard{background:#f2eee6;border-radius:13px;padding:12px 14px;margin:10px 0}.steady-heard small{font-size:11.5px;color:var(--muted)}.steady-heard p{font-size:14px!important;line-height:1.9!important;margin:4px 0 0!important;color:var(--ink)!important}
.steady-feedback-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:10px 0}.steady-feedback-grid>div{border:1px solid var(--line);border-radius:13px;padding:12px;background:rgba(255,255,255,.65)}.steady-feedback-grid small{font-size:11.5px;color:var(--muted);font-weight:700}.steady-feedback-grid p{font-size:13.5px!important;line-height:1.8!important;margin:5px 0 0!important;color:var(--ink)!important}
.steady-checks.auto span{border:1px solid var(--line);border-radius:99px;padding:8px 12px;font-size:11.5px;color:var(--muted);background:#fff}.steady-checks.auto span.on{background:#e7efe4;border-color:#aac1a4;color:#456044}
.steady-next-action{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px;background:#202821;color:#fff;border-radius:13px;padding:11px 13px}.steady-next-action b{font-size:12px}.steady-next-action span{font-size:13px;font-weight:700;color:#e5f0df}
.steady-analyzing{text-align:center;padding-block:26px}.steady-analyzing h3{margin-top:10px}.steady-analyzing p{max-width:560px;margin-inline:auto}
@media(max-width:600px){.steady-feedback-grid{grid-template-columns:1fr}.steady-feedback-head>strong{font-size:21px}.steady-feedback-head b{font-size:16px}.steady-heard p,.steady-feedback-grid p{font-size:14px!important}.steady-checks.auto span{font-size:12px}}


/* v0.7.4 — قسم المنظم المخفي وبنك الردود الحي */
.admin-hero{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;background:linear-gradient(135deg,#20170f,#5b3a21);color:#fff;border-radius:24px;padding:24px;margin-bottom:16px}.admin-hero h2{font-family:var(--font-ar);font-size:28px;margin:8px 0}.admin-hero p{color:#eadfce!important;max-width:780px}.admin-hero>.btn{width:auto;min-width:130px}.admin-metrics{margin-bottom:16px}.admin-toolbar{display:grid;grid-template-columns:2fr 1fr;gap:12px;align-items:end}.admin-toolbar-actions{grid-column:1/-1;display:flex;gap:8px;flex-wrap:wrap}.admin-toolbar-actions .btn,.admin-modal-actions .btn,.admin-actions .btn{width:auto}.file-label{display:inline-flex!important;align-items:center;justify-content:center;cursor:pointer}.file-label input{display:none}.admin-records{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.admin-record{background:var(--panel);border:1px solid var(--line);border-radius:18px;padding:17px}.admin-record-head{display:flex;flex-direction:column;gap:9px}.admin-record-head>div{display:flex;gap:8px;align-items:center}.admin-record-head b{font-family:var(--font-ar);font-size:16px;line-height:1.75}.admin-record-head small{color:var(--muted)}.admin-replies{background:#f7f2e9;border-radius:12px;padding:10px 12px;margin:10px 0!important;color:#4f463d!important}.admin-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}.admin-actions .btn{min-height:38px;padding:8px 11px;font-size:12px}.danger-outline{border-color:#d8b5ad!important;color:#8b3d32!important}.admin-gap-title{margin-top:28px}.admin-gaps{display:grid;gap:10px}.gap-admin-card{display:flex;justify-content:space-between;gap:14px;align-items:center;background:#fff7ec;border:1px solid #ead5b8;border-radius:16px;padding:15px}.gap-admin-card b{display:block;font-family:var(--font-ar);font-size:15px}.gap-admin-card small{display:block;color:var(--muted);margin-top:4px}.admin-bottom{margin-top:22px}.admin-modal-actions{display:flex;gap:8px;flex-wrap:wrap}.badge{font-size:11px!important}.data-table{font-size:13px!important}
@media(max-width:720px){.admin-hero{flex-direction:column}.admin-hero>.btn{width:100%}.admin-toolbar{grid-template-columns:1fr}.admin-records{grid-template-columns:1fr}.gap-admin-card{align-items:flex-start;flex-direction:column}.admin-actions{width:100%}.admin-actions .btn{flex:1}.admin-toolbar-actions .btn,.file-label{flex:1}.admin-modal-actions .btn{flex:1}}

/* ===== V0.8 — حساب العائلة والمزامنة السحابية ===== */
.auth-gate{min-height:100dvh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 50% 0%,#332716 0,#19150f 46%)}
.auth-card{width:min(100%,520px);background:#221d15;border:1px solid #3a3125;border-radius:24px;padding:24px;box-shadow:0 24px 70px rgba(0,0,0,.28)}
.auth-brand{display:flex;gap:12px;align-items:center;margin-bottom:22px}.auth-brand .brand-mark{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;background:#c9a24a;color:#19150f;font-weight:800;font-size:24px}.auth-brand strong{display:block;font-size:22px}.auth-brand span{display:block;color:#b8aa92;font-size:14px;margin-top:2px}
.auth-card h2{font-size:25px;margin:0 0 7px}.auth-card p{color:#c7baa4;font-size:15.5px;line-height:1.8}.auth-actions{display:grid;gap:10px;margin-top:18px}.auth-choice{width:100%;text-align:right;border:1px solid #4b3d2a;background:#2b2418;border-radius:16px;padding:16px;color:#efe6d5}.auth-choice b{display:block;font-size:18px;margin-bottom:3px}.auth-choice span{font-size:14px;color:#b8aa92}.auth-fields{display:grid;gap:13px;margin-top:16px}.auth-fields label{font-size:14px;color:#c7baa4}.auth-fields input,.auth-fields select{width:100%;margin-top:6px;border:1px solid #4b3d2a;border-radius:12px;padding:13px 14px;background:#19150f;color:#efe6d5;font-size:17px;outline:none}.auth-fields input:focus,.auth-fields select:focus{border-color:#c9a24a}.auth-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.auth-code{font-size:38px;letter-spacing:5px;text-align:center;font-weight:800;color:#c9a24a;background:#19150f;border:1px dashed #8a6f33;border-radius:16px;padding:14px;margin:16px 0}.auth-note{background:#2b2418;border-radius:14px;padding:13px;font-size:14px;color:#c7baa4;line-height:1.8}.auth-error{border-inline-start:3px solid #b8442f;background:#2b211c;border-radius:12px;padding:12px 14px;color:#f2c7bd;margin:12px 0}.auth-loading{text-align:center;color:#b8aa92;padding:34px 10px}.cloud-status{font-size:12px;color:#9f927c}.cloud-status.ok{color:#8cad64}.cloud-status.err{color:#d17965}
@media(max-width:560px){.auth-gate{padding:14px}.auth-card{padding:18px;border-radius:18px}.auth-grid{grid-template-columns:1fr}.auth-card h2{font-size:23px}.auth-code{font-size:34px}}

/* Family cloud code */
.family-code-panel{display:grid;gap:8px;background:var(--surface-2,#f5f1e9);border:1px solid var(--line,#ded7ca);border-radius:16px;padding:16px;margin:0 0 18px;text-align:center}
.family-code-panel small{font-size:14px;color:var(--muted,#70695f)}
.family-code-panel b{font-size:30px;letter-spacing:5px;direction:ltr}
.family-code-panel span{font-size:14px;line-height:1.7;color:var(--muted,#70695f)}
.family-code-panel .btn{margin:0 auto;width:auto;min-width:150px}
.pin-reset-card{margin:16px 0;padding:14px;border:1px solid var(--line);border-radius:14px;background:var(--surface-2)}
.pin-reset-card>b{display:block;font-size:16px;margin-bottom:4px}
.pin-reset-card>p{font-size:14px;line-height:1.7;margin:0 0 10px;color:var(--muted)}
.pin-reset-card .btn{margin-top:7px}


/* ===== V0.8.1 — واجهة مدفوعة: خط أوضح + شاشة دخول تبيع القيمة ===== */
:root{
  --bg:#f3eee5;
  --panel:#fffdfa;
  --ink:#191611;
  --muted:#645e55;
  --line:#dfd6c8;
  --brown:#4b301f;
  --brown2:#6a452c;
  --gold:#c99a42;
  --gold2:#e4c27b;
  --shadow:0 18px 44px rgba(61,42,25,.10);
  --radius:20px;
}
body{font-size:15px;line-height:1.7;font-weight:400}
button,input,select,textarea{font-family:var(--font-ar)}
.brand strong,.topbar h1,.hero h2,.section-head h3,.card h4,.question-card h2,
.parent-hero h2,.heritage-hero h2,.social-hero h2,.voice-drill-hero h2,
.steady-hero h2,.lookup-hero h2,.dictionary-hero h2,.hospitality-hero h2,
.proverb-card blockquote,.admin-hero h2,.auth-card h2,.auth-card h1{
  font-family:var(--font-ar);
}

/* لمس أوضح وواجهة أغنى */
.btn{min-height:48px;padding:12px 19px;border-radius:14px;font-size:14px;font-weight:700;transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
.btn:active{transform:scale(.985)}
.btn.dark{background:linear-gradient(135deg,#4b301f,#63412a);box-shadow:0 8px 20px rgba(75,48,31,.16)}
.btn.primary{background:linear-gradient(135deg,#efd08d,#d7a94f);box-shadow:0 8px 20px rgba(198,151,60,.18)}
.btn.light{background:#fffdf9}
.card{border-color:#e2d9cb;box-shadow:0 8px 24px rgba(61,42,25,.045)}
.card p{font-size:14.5px;line-height:1.9}
.card h4{font-size:15px;line-height:1.75}
.section-head h3{font-size:18px;line-height:1.6}
.section-head p{font-size:14px!important;line-height:1.8!important}
.choice{min-height:54px;font-size:15px;line-height:1.75;padding:14px 15px}
.choice-index{width:29px;height:29px;font-size:12px}
.field label{font-size:13.5px}.field input,.field select,.field textarea{font-size:15px;min-height:48px}
.nav-item{font-size:14px;min-height:44px}.brand span{font-size:11.5px}.mini-profile strong{font-size:13px}.mini-profile small{font-size:11px}
.topbar h1{font-size:21px}.topbar small{font-size:11px}
.view{padding-top:28px}

/* شاشة الدخول */
.auth-gate{
  min-height:100dvh;
  place-items:start center;
  padding:clamp(24px,5vh,56px) 18px 32px;
  background:
    radial-gradient(circle at 80% -10%,rgba(209,165,77,.18),transparent 32%),
    radial-gradient(circle at 0% 55%,rgba(121,82,47,.18),transparent 34%),
    linear-gradient(160deg,#17130e 0%,#211a12 52%,#15120e 100%);
}
.auth-card{
  width:min(100%,600px);
  background:linear-gradient(165deg,rgba(39,32,23,.97),rgba(28,24,18,.98));
  border:1px solid rgba(229,194,123,.18);
  border-radius:30px;
  padding:28px;
  box-shadow:0 34px 100px rgba(0,0,0,.36),inset 0 1px rgba(255,255,255,.025);
  position:relative;overflow:hidden;
}
.auth-card:before{content:'';position:absolute;width:240px;height:240px;border-radius:50%;background:rgba(209,165,77,.055);left:-120px;top:-110px;pointer-events:none}
.auth-brand{margin-bottom:24px;padding-bottom:20px;border-bottom:1px solid rgba(255,255,255,.07);position:relative;z-index:1}
.auth-brand .brand-mark{width:58px;height:58px;border-radius:18px;background:linear-gradient(145deg,#e4bd68,#b5812e);font-size:28px;box-shadow:0 12px 28px rgba(193,145,57,.18)}
.auth-brand strong{font-family:var(--font-ar);font-size:22px;line-height:1.4;color:#fff8eb}
.auth-brand span{font-size:13.5px;color:#a99b87;line-height:1.7;margin-top:4px}
.auth-kicker{display:inline-flex;align-items:center;gap:7px;color:#f0d59d;background:rgba(224,188,112,.09);border:1px solid rgba(224,188,112,.18);border-radius:99px;padding:7px 11px;font-size:12.5px;font-weight:700;margin-bottom:13px}
.auth-headline{font-size:clamp(27px,6vw,39px)!important;line-height:1.55!important;margin:0 0 11px!important;color:#fff9ef;letter-spacing:-.2px}
.auth-lead{font-size:16px!important;line-height:1.95!important;color:#cfc2ae!important;margin:0!important}
.auth-points{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0 4px}
.auth-points span{font-size:12.5px;color:#d8c8b0;border:1px solid rgba(255,255,255,.09);background:rgba(255,255,255,.035);border-radius:99px;padding:6px 10px}
.auth-actions{gap:11px;margin-top:20px}
.auth-choice{position:relative;display:grid;grid-template-columns:48px minmax(0,1fr) 22px;align-items:center;gap:13px;border:1px solid rgba(230,195,125,.17);background:linear-gradient(145deg,#2e261b,#292117);border-radius:18px;padding:16px 15px;color:#f7edde;transition:.18s ease;box-shadow:0 8px 24px rgba(0,0,0,.08)}
.auth-choice:hover{border-color:rgba(230,195,125,.38);transform:translateY(-1px);background:#33291c}
.auth-choice .auth-choice-icon{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;background:rgba(225,191,122,.11);border:1px solid rgba(225,191,122,.14);font-size:22px}
.auth-choice .auth-choice-copy{text-align:right;min-width:0}
.auth-choice b{font-family:var(--font-ar);font-size:16px;line-height:1.6;margin:0;color:#fff7e9}
.auth-choice span{display:block;font-size:13.5px;line-height:1.75;color:#b9aa94;margin-top:2px}
.auth-choice .auth-arrow{font-size:20px;color:#d8b66e;direction:ltr}
.auth-trust{display:flex;gap:9px;align-items:flex-start;margin-top:15px;padding:12px 13px;border-radius:14px;background:rgba(255,255,255,.025);color:#a99b87;font-size:12.5px;line-height:1.75}
.auth-trust strong{color:#d9c7aa;font-weight:600}
.auth-card>*,#authBody{position:relative;z-index:1}
.auth-card h2{font-size:25px;line-height:1.55;color:#fff8eb}
.auth-card p{font-size:15px;line-height:1.9;color:#c7baa4}
.auth-fields label{font-size:13.5px;color:#d2c4af;font-weight:600}
.auth-fields input,.auth-fields select{min-height:52px;border-radius:14px;background:#17130f;border-color:#4a3d2c;color:#fff9ee;font-size:16px}
.auth-fields input::placeholder{color:#776c5e}
.auth-fields .btn{width:100%;margin-top:2px}
.auth-card .text-btn{font-size:13px;color:#c8b58f;padding:0 0 13px}
.auth-error{font-size:14px;line-height:1.8}
.auth-note{font-size:13.5px}
.auth-loading{font-size:14px;padding:32px 10px}

/* الجوال: لا نرمي البطاقة في نص الشاشة */
@media(max-width:700px){
  .auth-gate{display:block;padding:18px 12px max(28px,env(safe-area-inset-bottom));min-height:100dvh}
  .auth-card{width:100%;max-width:560px;margin:0 auto;border-radius:24px;padding:20px 17px 18px}
  .auth-brand{margin-bottom:18px;padding-bottom:16px}.auth-brand .brand-mark{width:51px;height:51px;border-radius:16px}.auth-brand strong{font-size:19px}.auth-brand span{font-size:12px}
  .auth-kicker{font-size:11.5px;margin-bottom:11px}.auth-headline{font-size:28px!important;line-height:1.55!important}.auth-lead{font-size:15px!important;line-height:1.9!important}
  .auth-points{margin-top:14px}.auth-points span{font-size:11.5px}
  .auth-choice{grid-template-columns:43px minmax(0,1fr) 18px;padding:14px 12px;gap:10px;border-radius:17px}.auth-choice .auth-choice-icon{width:42px;height:42px;font-size:19px}.auth-choice b{font-size:15px}.auth-choice span{font-size:12.5px}.auth-trust{font-size:11.8px}
  .view{padding:15px 12px 48px}.topbar{min-height:76px}.topbar h1{font-size:18px}.hero,.parent-hero{border-radius:22px}.hero p,.parent-hero p{font-size:14.5px!important}.btn{font-size:14px;min-height:48px}.card{padding:17px}.card h4{font-size:15px}.card p{font-size:14.5px}.choice{font-size:14.5px}.section-head{margin-top:22px}.section-head h3{font-size:17px}
}
@media(max-width:390px){
  .auth-card{padding-inline:15px}.auth-headline{font-size:25px!important}.auth-choice{grid-template-columns:40px minmax(0,1fr) 16px}.auth-choice .auth-choice-icon{width:39px;height:39px}.auth-choice b{font-size:14px}.auth-choice span{font-size:12px}
}
/* ضبط زر الرجوع في صفحات الدخول */
.auth-card .text-btn{display:block;width:max-content;margin:0 0 10px auto}

/* ===== V0.8.2 — توحيد الخط في كامل المنصة ===== */
html,body,button,input,select,textarea,table,th,td,label,small,strong,b,span,p,a,h1,h2,h3,h4,h5,h6,.brand strong,.topbar h1,.nav-item,.btn,.choice,.auth-card,.auth-card *{font-family:var(--font-ar),system-ui,-apple-system,'Segoe UI',sans-serif!important}


/* ===== V0.8.3 — تحسين الخط وشاشة البداية ===== */
body{font-weight:500;letter-spacing:0}
.brand strong,.topbar h1,.section-head h3,.card h4,.hero h2,.parent-hero h2,.auth-brand strong,.auth-headline,.auth-choice b,.reply-card h3,.question-card h2,.social-hero h2,.voice-drill-hero h2,.admin-hero h2{font-weight:800}
.auth-brand{display:flex;align-items:center;gap:14px}
.auth-brand>div:last-child{display:flex;flex-direction:column}
.auth-brand strong{font-size:30px;line-height:1.2;color:#fffaf2}
.auth-brand span{font-size:14px;color:#d5c3ab}
.auth-headline{font-size:clamp(34px,7vw,48px)!important;line-height:1.3!important;margin-bottom:10px!important}
.auth-lead{font-size:17px!important;line-height:1.95!important;color:#e4d7c4!important}
.auth-points{margin:16px 0 10px}
.auth-points span{font-size:13px;padding:7px 11px}
.auth-info-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:16px}
.auth-info-card{background:rgba(255,255,255,.045);border:1px solid rgba(230,195,125,.14);border-radius:18px;padding:14px 13px}
.auth-info-card b{display:block;font-size:15px;color:#fff4df;margin-bottom:7px}
.auth-info-card p{font-size:13px!important;line-height:1.85!important;color:#d7c8b4!important;margin:0!important}
.auth-trust{margin-top:16px;font-size:13px;line-height:1.85}
@media(max-width:700px){
  .auth-brand strong{font-size:26px}
  .auth-headline{font-size:34px!important;line-height:1.28!important}
  .auth-info-grid{grid-template-columns:1fr}
  .auth-info-card b{font-size:14px}
  .auth-info-card p{font-size:12.5px!important}
}


/* ===== V0.8.4 — شاشة بداية أكثر إقناعًا ===== */
.auth-headline{font-size:clamp(38px,8vw,54px)!important;line-height:1.18!important;letter-spacing:-.3px}
.auth-lead{font-size:18px!important;line-height:2!important;margin-top:6px!important}
.auth-lead b{color:#fff4df}
.auth-points{margin:18px 0 14px}
.auth-value-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:10px}
.auth-value-card{background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.03));border:1px solid rgba(230,195,125,.15);border-radius:18px;padding:15px 14px;box-shadow:inset 0 1px rgba(255,255,255,.03)}
.auth-value-card b{display:block;font-size:16px;color:#fff4de;margin-bottom:7px;font-weight:800}
.auth-value-card p{margin:0!important;font-size:13px!important;line-height:1.9!important;color:#d6c8b5!important}
.auth-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:16px}
.auth-step{display:flex;align-items:flex-start;gap:10px;background:rgba(255,255,255,.03);border:1px dashed rgba(230,195,125,.18);border-radius:16px;padding:13px}
.auth-step span{width:28px;height:28px;flex:0 0 28px;display:grid;place-items:center;border-radius:10px;background:rgba(228,189,104,.14);color:#f3d694;font-weight:800}
.auth-step b{display:block;font-size:14px;color:#fff2db;margin-bottom:3px}
.auth-step p{margin:0!important;font-size:12.5px!important;line-height:1.8!important;color:#cdbfa9!important}
.auth-highlight-box{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,.9fr);gap:16px;align-items:center;margin-top:18px;padding:18px;border-radius:22px;background:linear-gradient(135deg,rgba(228,189,104,.08),rgba(255,255,255,.03));border:1px solid rgba(228,189,104,.18)}
.auth-highlight-box small{display:block;color:#f0d59d;font-size:12px;margin-bottom:5px;font-weight:700}
.auth-highlight-box b{display:block;color:#fff8ee;font-size:18px;line-height:1.7;margin-bottom:6px}
.auth-highlight-box p{margin:0!important;color:#dacbb6!important;font-size:13px!important;line-height:1.95!important}
.auth-highlight-stats{display:grid;grid-template-columns:1fr;gap:10px}
.auth-highlight-stats span{display:flex;justify-content:space-between;align-items:center;padding:11px 12px;border-radius:14px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.06)}
.auth-highlight-stats strong{font-size:15px;color:#fff3db}
.auth-highlight-stats small{margin:0;color:#c9b9a0;font-size:12px}
.auth-choice-primary{border-color:rgba(230,195,125,.36)!important;background:linear-gradient(145deg,#3a2b18,#2f2215)!important;box-shadow:0 12px 30px rgba(0,0,0,.18)}
.auth-choice-primary .auth-choice-icon{background:rgba(225,191,122,.2)!important}
.auth-trust{margin-top:18px}
@media(max-width:700px){
  .auth-headline{font-size:36px!important}
  .auth-lead{font-size:16px!important;line-height:1.95!important}
  .auth-value-grid{grid-template-columns:1fr}
  .auth-steps{grid-template-columns:1fr}
  .auth-highlight-box{grid-template-columns:1fr;padding:15px}
  .auth-highlight-box b{font-size:16px}
}


/* ===== V0.8.5 — بداية مختصرة + رد تلقائي عند فقد العبارة ===== */
.auth-mini-value{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:15px 0 2px;padding:12px 14px;border-radius:15px;background:rgba(255,255,255,.035);border:1px solid rgba(230,195,125,.11);color:#cfc0aa}
.auth-mini-value b{font-size:14px;color:#fff1d8}
.auth-mini-value span{font-size:13px;line-height:1.75}
.auth-value-grid,.auth-steps,.auth-highlight-box{display:none!important}
.auth-actions{margin-top:16px}
.generated-reply{position:relative;border-color:#d8bd88;background:linear-gradient(180deg,#fffdf9,#fbf5e9)}
.generated-badge{display:inline-flex;margin:8px 0 1px;background:#efe1c4;color:#76512b;border-radius:99px;padding:5px 9px;font-size:11px;font-weight:800}
.generated-note{margin:12px 0;padding:10px 12px;border-radius:12px;background:#f6f1e7;color:#756a5d;font-size:12px;line-height:1.8}
.reply-loading{grid-column:1/-1;min-height:150px;display:grid;place-items:center;align-content:center;gap:8px;text-align:center;border:1px solid var(--line);border-radius:18px;background:#fff;padding:20px}
.reply-loading span{width:28px;height:28px;border:3px solid #eadfcf;border-top-color:#7c532e;border-radius:50%;animation:replySpin .8s linear infinite}
.reply-loading b{font-size:15px}.reply-loading small{color:var(--muted);font-size:12px}
@keyframes replySpin{to{transform:rotate(360deg)}}
@media(max-width:700px){
  .auth-card{padding-top:18px}.auth-brand{margin-bottom:14px;padding-bottom:13px}.auth-headline{font-size:34px!important}.auth-lead{font-size:15.5px!important;line-height:1.9!important}.auth-points{margin:13px 0 8px}.auth-mini-value{margin-top:11px}.auth-actions{margin-top:13px}.auth-trust{margin-top:13px}
}


/* ===== V0.8.7 — أنت الكبير + القصة المتفرعة + الذاكرة + قبل/بعد ===== */
.roleflip-hero,.branch-hero{background:linear-gradient(135deg,#2b1d12,#654323);color:#fff;border-radius:26px;padding:25px;margin-bottom:16px;box-shadow:var(--shadow)}
.roleflip-hero h2,.branch-hero h2{font-size:30px;margin:8px 0;line-height:1.4}.roleflip-hero p,.branch-hero p{color:#eadfce;font-size:15px;line-height:1.9;margin:0}
.roleflip-card h3,#branchBox h3{font-size:21px;line-height:1.8}.weak-reply{margin:15px 0;padding:17px;border-radius:16px;background:#f8eee2;border-right:4px solid #b97d3f}.weak-reply small{display:block;color:var(--muted);font-size:12px}.weak-reply b{display:block;font-size:23px;margin-top:4px}.roleflip-reasons{margin-top:10px}.roleflip-result .metric{max-width:160px;margin-bottom:12px}
.branch-picked{background:#f6f0e7;border-radius:12px;padding:11px 13px;color:var(--muted)}.branch-trail{display:flex;gap:8px;align-items:center;flex-wrap:wrap;background:#f7f3eb;border-radius:14px;padding:13px;margin:15px 0}.branch-trail small{width:100%;color:var(--muted)}.branch-trail b{font-size:13px}.branch-trail span{color:var(--gold);font-weight:800}
.memory-note{display:block;font-style:normal;font-size:11px;color:#cdbda7;margin-top:5px}
.voice-before-after{display:grid;grid-template-columns:1fr auto 1fr;gap:10px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:20px;padding:16px;margin-bottom:16px}.voice-before-after>div{background:#faf7f1;border-radius:15px;padding:13px;text-align:center}.voice-before-after>div.now{background:#edf4e9}.voice-before-after small,.voice-before-after span,.voice-before-after em{display:block;font-style:normal;color:var(--muted);font-size:11px}.voice-before-after b{display:block;font-size:25px;margin:3px 0}.voice-before-after>i{font-style:normal;color:var(--gold);font-size:22px}.voice-before-after>p{grid-column:1/-1;margin:2px 0 0;text-align:center;font-size:13px;color:var(--muted)}
@media(max-width:700px){.roleflip-hero,.branch-hero{padding:20px;border-radius:22px}.roleflip-hero h2,.branch-hero h2{font-size:26px}.roleflip-card h3,#branchBox h3{font-size:19px}.voice-before-after{grid-template-columns:1fr auto 1fr;padding:12px;gap:7px}.voice-before-after b{font-size:20px}.voice-before-after small,.voice-before-after span,.voice-before-after em{font-size:10px}}


/* ===== V0.8.8 — رحلة أبسط: 4 أبواب فقط ===== */
.bottom-nav{display:none}
.simple-home{max-width:900px;margin:0 auto}
.hero-lite{background:linear-gradient(135deg,#21170f,#5d3d25);color:#fff;border-radius:28px;padding:clamp(24px,5vw,44px);box-shadow:var(--shadow);position:relative;overflow:hidden}
.hero-lite:after{content:'ع';position:absolute;left:-15px;bottom:-72px;font-size:190px;font-weight:800;color:rgba(255,255,255,.035)}
.hero-lite h2{font-size:clamp(30px,5vw,48px);line-height:1.35;margin:10px 0 8px;position:relative;z-index:1}
.hero-lite h2 strong{color:#e6bd6b}
.hero-lite>p{font-size:16px;line-height:1.9;color:#ded1c0;max-width:680px;position:relative;z-index:1}
.today-start{width:100%;display:grid;grid-template-columns:58px minmax(0,1fr) auto;gap:14px;align-items:center;text-align:right;border:1px solid rgba(255,255,255,.16);background:linear-gradient(135deg,#f2d28e,#d7a849);color:#24180c;border-radius:22px;padding:17px 18px;margin-top:24px;position:relative;z-index:1;box-shadow:0 18px 45px rgba(0,0,0,.18)}
.today-start>span{width:54px;height:54px;border-radius:17px;background:rgba(255,255,255,.34);display:grid;place-items:center;font-size:25px}
.today-start div{min-width:0}.today-start small{display:block;font-size:11px;color:#6c4b22;font-weight:700}.today-start b{display:block;font-size:22px;line-height:1.5;margin:2px 0}.today-start em{display:block;font-style:normal;font-size:13px;line-height:1.7;color:#60431f}.today-start>i{font-style:normal;font-size:15px;font-weight:800;white-space:nowrap}
.today-start.compact{margin-top:12px}
.occasion-nudge{width:min(900px,100%);margin:13px auto 0;display:grid;grid-template-columns:42px 1fr auto;gap:10px;align-items:center;text-align:right;border:1px solid #e2d2b9;background:#fffaf1;border-radius:17px;padding:12px 14px;color:var(--ink)}
.occasion-nudge>span{width:38px;height:38px;border-radius:12px;background:#f1e2c8;display:grid;place-items:center;color:#7a522a}.occasion-nudge b,.occasion-nudge small{display:block}.occasion-nudge small{margin-top:2px;color:var(--muted)}.occasion-nudge i{font-style:normal;color:#9a7447}
.home-mini-row{width:min(900px,100%);margin:13px auto 0;display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.home-mini-row:has(button:nth-child(2):last-child){grid-template-columns:repeat(2,1fr)}
.home-mini-row button{border:1px solid var(--line);background:var(--panel);border-radius:16px;padding:13px 14px;text-align:right;color:var(--ink)}.home-mini-row b,.home-mini-row small{display:block}.home-mini-row b{font-size:14px}.home-mini-row small{font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:3px}
.train-hub,.knowledge-hub,.account-hub{max-width:900px;margin:0 auto}.train-hub>h2,.knowledge-hub>h2,.account-hub>h2{font-size:30px;margin:8px 0 14px;line-height:1.4}
.hub-divider{display:flex;align-items:center;gap:10px;margin:24px 0 12px;color:var(--muted);font-size:12px}.hub-divider:before,.hub-divider:after{content:'';height:1px;background:var(--line);flex:1}
.training-doors{display:grid;gap:10px}.training-door,.knowledge-shortcuts button,.account-main-action{display:grid;grid-template-columns:46px 1fr auto;gap:12px;align-items:center;text-align:right;border:1px solid var(--line);background:var(--panel);border-radius:18px;padding:15px;color:var(--ink)}
.training-door>span,.knowledge-shortcuts button>span,.account-main-action>span{width:44px;height:44px;border-radius:14px;background:#f1e6d4;display:grid;place-items:center;font-size:20px}.training-door b,.training-door small,.knowledge-shortcuts b,.knowledge-shortcuts small,.account-main-action b,.account-main-action small{display:block}.training-door b,.knowledge-shortcuts b,.account-main-action b{font-size:16px}.training-door small,.knowledge-shortcuts small,.account-main-action small{font-size:12px;color:var(--muted);margin-top:3px}.training-door i,.knowledge-shortcuts i,.account-main-action i{font-style:normal;color:#9a7447}
.training-modal-list{display:grid;gap:9px;margin-top:15px}.training-modal-list button{display:grid;grid-template-columns:38px 1fr auto;gap:10px;align-items:center;text-align:right;border:1px solid var(--line);background:#fff;border-radius:14px;padding:12px;color:var(--ink)}.training-modal-list>button>span{width:36px;height:36px;border-radius:11px;background:#f3eadb;display:grid;place-items:center}.training-modal-list b,.training-modal-list small{display:block}.training-modal-list small{color:var(--muted);margin-top:2px}
.knowledge-today-grid{display:grid;grid-template-columns:1.4fr .8fr;gap:12px}.today-proverb,.today-word{border:1px solid var(--line);background:var(--panel);border-radius:22px;padding:20px}.today-proverb>small,.today-word>small{color:#8d693e;font-weight:800}.today-proverb blockquote{font-size:26px;line-height:1.7;margin:12px 0;color:#392719}.today-proverb p,.today-word p{font-size:14px;line-height:1.9;color:var(--muted)}.today-word b{display:block;font-size:28px;margin:12px 0 4px}.today-word em{display:block;font-style:normal;font-size:12px;color:#8c8174;background:#f7f1e7;border-radius:12px;padding:9px 10px}.knowledge-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
.account-score{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}.account-score>div,.account-focus{border:1px solid var(--line);background:var(--panel);border-radius:18px;padding:18px}.account-score b{display:block;font-size:28px}.account-score small,.account-focus small{display:block;color:var(--muted);margin-top:3px}.account-focus{margin-bottom:10px}.account-focus b{display:block;font-size:18px;margin:5px 0 10px}.account-main-action{width:100%;margin-top:10px}.account-secondary{width:100%;border:1px solid var(--line);background:transparent;border-radius:15px;padding:13px;margin-top:9px;color:var(--ink);font-weight:700}

@media(max-width:700px){
  .sidebar{display:none!important}.sidebar-backdrop{display:none!important}.menu-btn{display:none!important}
  .main{padding-bottom:82px}.view{padding-bottom:100px!important}.topbar{padding-inline:14px}
  .bottom-nav{position:fixed;display:grid;grid-template-columns:repeat(4,1fr);left:10px;right:10px;bottom:max(10px,env(safe-area-inset-bottom));z-index:70;background:rgba(31,25,18,.96);backdrop-filter:blur(16px);border:1px solid rgba(255,255,255,.08);border-radius:20px;padding:7px;box-shadow:0 14px 45px rgba(0,0,0,.28)}
  .bottom-nav-item{display:flex;min-width:0;flex-direction:column;align-items:center;justify-content:center;gap:2px;border:0;background:transparent;color:#bfb09b;border-radius:14px;padding:8px 4px}.bottom-nav-item span{font-size:18px;line-height:1}.bottom-nav-item b{font-size:11px;white-space:nowrap}.bottom-nav-item.active{background:rgba(225,183,96,.15);color:#f2d28e}
  .hero-lite{border-radius:24px;padding:24px 19px}.hero-lite h2{font-size:30px}.hero-lite>p{font-size:14px}
  .today-start{grid-template-columns:48px minmax(0,1fr);padding:15px 14px;gap:11px}.today-start>span{width:46px;height:46px;font-size:21px}.today-start b{font-size:19px}.today-start em{font-size:12px}.today-start>i{grid-column:2;text-align:right;font-size:13px;margin-top:-4px}
  .home-mini-row{grid-template-columns:1fr!important}.home-mini-row button{padding:12px 14px}
  .train-hub>h2,.knowledge-hub>h2,.account-hub>h2{font-size:25px}
  .knowledge-today-grid,.knowledge-shortcuts,.account-score{grid-template-columns:1fr}.today-proverb blockquote{font-size:22px}.today-word b{font-size:24px}
  .training-door,.knowledge-shortcuts button,.account-main-action{grid-template-columns:42px 1fr auto;padding:13px}.training-door>span,.knowledge-shortcuts button>span,.account-main-action>span{width:40px;height:40px}
}

/* استوديو أصوات التدريب */
.btn.recording{background:#b8442f;color:#fff;animation:vsPulse 1.1s infinite}
@keyframes vsPulse{0%,100%{opacity:1}50%{opacity:.55}}
@media (prefers-reduced-motion:reduce){.btn.recording{animation:none}}
.gap-admin-card b{display:block;line-height:1.6}

/* ============ مشهد ثابت: متنمر + جمهور + مرآة ============ */
.scene{
  position:relative;height:210px;margin:6px 0 14px;border-radius:16px;overflow:hidden;
  background:linear-gradient(180deg,#2a2118 0%,#191410 100%);border:1px solid var(--line);
  box-shadow:0 6px 18px rgba(70,48,28,.12);
  transition:box-shadow .5s ease,border-color .5s ease;
}
.scene.warm{border-color:#5a4326}
.scene.hot{border-color:#7a3524;box-shadow:inset 0 0 60px rgba(184,68,47,.22)}
.scene-bg{position:absolute;inset:0;opacity:.5}
.scene-bg i{position:absolute;bottom:0;width:34%;height:100%;background:linear-gradient(180deg,transparent 38%,rgba(0,0,0,.35) 100%);border-inline-end:1px solid rgba(201,162,74,.12)}
.scene-bg i:nth-child(1){inset-inline-start:0}
.scene-bg i:nth-child(2){inset-inline-start:33%}
.scene-bg i:nth-child(3){inset-inline-start:66%}

.crowd{position:absolute;bottom:0;inset-inline-start:8%;display:flex;gap:14px;align-items:flex-end}
.crowd .peer{display:block;width:40px;height:92px;border-radius:20px 20px 4px 4px;background:rgba(0,0,0,.55);position:relative;transform-origin:bottom center}
.crowd .peer::before{content:'';position:absolute;top:-20px;inset-inline-start:8px;width:24px;height:24px;border-radius:50%;background:rgba(0,0,0,.55)}
.crowd .peer.p2{height:104px;opacity:.85}
.crowd .peer.p3{height:86px;opacity:.7}
.crowd.laughing .peer{animation:laughShake .32s ease-in-out 5}
.crowd.laughing .peer.p2{animation-delay:.06s}
.crowd.laughing .peer.p3{animation-delay:.12s}
@keyframes laughShake{0%,100%{transform:rotate(0) translateY(0)}50%{transform:rotate(-3deg) translateY(-4px)}}

.bully-fig{position:absolute;bottom:0;inset-inline-end:16%;width:86px;text-align:center;transition:transform .08s linear}
.bully-fig .head{position:relative;display:block;width:58px;height:58px;margin:0 auto 4px;border-radius:50%;background:#c9a24a}
.bully-fig .eye{position:absolute;top:22px;width:7px;height:9px;border-radius:3px;background:#19150f}
.bully-fig .eye.l{inset-inline-start:14px}
.bully-fig .eye.r{inset-inline-end:14px}
.bully-fig .mouth{position:absolute;bottom:12px;inset-inline-start:50%;translate:-50% 0;width:24px;height:10px;border-radius:0 0 14px 14px;background:#19150f;transform:scaleY(.25);transform-origin:top center;transition:transform .05s linear}
.bully-fig .body{display:block;width:78px;height:104px;margin:0 auto;border-radius:26px 26px 4px 4px;background:#8a6f33}

.mirror-slot{position:absolute;top:10px;inset-inline-end:10px;width:76px;height:100px;border-radius:12px;overflow:hidden;border:1px solid #3a3125;background:#14110c;display:grid;place-items:center}
.mirror-slot video{width:100%;height:100%;object-fit:cover;transform:scaleX(-1);display:none}
.mirror-slot.on video{display:block}
.mirror-slot.on .mirror-empty{display:none}
.mirror-empty{font-size:12px;color:#a79880}
.mirror-btn{position:absolute;top:116px;inset-inline-end:10px;width:76px;font-size:11px;padding:5px 4px;border-radius:8px;border:1px solid #3a3125;background:rgba(25,21,15,.8);color:#efe6d5}
.scene-note{position:absolute;bottom:8px;inset-inline-start:10px;inset-inline-end:96px;font-size:11px;line-height:1.5;color:#a79880}

@media (max-width:420px){
  .scene{height:190px}
  .crowd .peer{width:32px;height:78px}
  .bully-fig{width:74px}
  .bully-fig .body{width:66px;height:88px}
}
@media (prefers-reduced-motion:reduce){
  .crowd.laughing .peer{animation:none}
  .bully-fig,.bully-fig .mouth{transition:none}
}

/* أنت الكبير — الأخ الصغير */
.rf-scene{height:170px}
.rf-scene .bully-fig.little{inset-inline-end:50%;translate:50% 0;width:70px}
.rf-scene .bully-fig.little .head{width:48px;height:48px;background:#8fa36b}
.rf-scene .bully-fig.little .head .eye{top:18px;width:6px;height:8px}
.rf-scene .bully-fig.little .head .eye.l{inset-inline-start:11px}
.rf-scene .bully-fig.little .head .eye.r{inset-inline-end:11px}
.rf-scene .bully-fig.little .mouth{bottom:10px;width:18px;height:8px}
.rf-scene .bully-fig.little .body{width:58px;height:74px;background:#5c6b45}
.rf-scene .scene-note{inset-inline-end:10px;text-align:center}
.rf-chips{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 4px}
.rf-chips .pill{font-size:12px;padding:4px 10px;border-radius:999px;border:1px solid var(--line);color:var(--muted)}
.rf-chips .pill.on{border-color:var(--green);color:var(--green)}

/* الأرشيف الصوتي وملف الحادثة */
.ar-compare .card small{display:block;color:var(--muted);font-size:12px;margin-top:6px}
.gap-admin-card audio{width:100%;margin-top:8px;filter:invert(.88) hue-rotate(180deg)}
.letter-body{white-space:pre-wrap;font-family:inherit;font-size:15px;line-height:1.9;background:var(--bg);border:1px solid var(--line);border-radius:12px;padding:14px;margin:10px 0;max-height:380px;overflow:auto}
@media print{
  .topbar,.tabs,.nav-item,.bottom-nav-item,.admin-actions,.note,.roleflip-hero{display:none !important}
  .letter-body{border:0;background:#fff;color:#000;max-height:none;overflow:visible}
  body{background:#fff;color:#000}
}

/* لوحة المنظم: أقسام */
.adm-tabs{display:flex;gap:8px;margin-bottom:14px;position:sticky;top:0;z-index:5;padding:8px 0;background:var(--bg,var(--ink))}
.adm-tab{flex:1;padding:10px 6px;border-radius:10px;border:1px solid var(--line);background:transparent;color:var(--muted);font-size:14px}
.adm-tab.on{border-color:var(--gold);color:var(--gold);background:rgba(201,162,74,.08);font-weight:600}
.adm-pane[hidden]{display:none}

/* شريط الرجوع */
.back-bar{display:inline-flex;align-items:center;gap:8px;margin:0 0 14px;padding:9px 14px;border-radius:999px;
  border:1px solid var(--line);background:transparent;color:var(--muted);font-size:14px}
.back-bar span{color:var(--gold);font-size:16px}
.back-bar:active{background:rgba(201,162,74,.08)}

/* موقف اليوم — الطبقات */
.dly-steps{display:flex;gap:8px;margin:0 0 14px}
.dly-step{flex:1;text-align:center;font-size:12px;padding:8px 4px;border-radius:10px;border:1px solid var(--line);color:var(--muted)}
.dly-step.on{border-color:var(--gold);color:var(--gold);font-weight:600;background:rgba(201,162,74,.08)}
.dly-step.done{border-color:var(--green);color:var(--green)}
.practice-answer em{display:block;font-style:normal;font-size:12px;color:var(--gold);margin-bottom:4px}

/* شاشة الاشتراك */
.roleflip-hero + .card ul{color:var(--ink);font-size:15px}
a.btn.dark{display:block;text-align:center;text-decoration:none}

/* الموافقة والروابط القانونية */
.consent-row{display:flex;gap:10px;align-items:flex-start;margin:14px 0 6px;font-size:13.5px;color:var(--muted);line-height:1.7}
.consent-row input{margin-top:5px;width:18px;height:18px;accent-color:var(--gold);flex:0 0 18px}
.consent-row a{color:var(--gold)}
.auth-error{color:var(--red);font-size:14px;padding:10px 0}
.arch-save{margin-top:12px}

/* روس أقلام داخل شاشات الشرح */
.how-list{margin:10px 0 0;padding-inline-start:18px;line-height:1.95}
.how-list li{font-size:15px;color:var(--muted)}
.how-list li:last-child{color:var(--gold)}

/* قوائم الحساب */
.acc-list{display:flex;flex-direction:column;gap:8px;margin-bottom:6px}
.acc-list button{width:100%;text-align:start;background:var(--panel);border:1px solid var(--line);
  border-radius:12px;padding:13px 14px;color:var(--ink)}
.acc-list button b{display:block;font-size:15.5px;font-weight:600;margin-bottom:2px}
.acc-list button small{display:block;font-size:13px;color:var(--muted);line-height:1.6}
.acc-list button:active{border-color:var(--gold)}
.acc-list button.danger b{color:var(--red)}

/* وضع الشاهد */
.mode-pick{display:flex;flex-direction:column;gap:8px;margin:14px 0 6px}
.mode-pick .witness-btn{background:transparent;border:1px solid var(--gold);color:var(--gold)}

/* لافتة وضع ثابت */
.mode-banner{font-size:13px;line-height:1.7;padding:10px 12px;border-radius:10px;margin:4px 0 10px;
  background:rgba(201,162,74,.10);border:1px solid var(--gold);color:var(--brown)}
.mode-banner.witness{background:rgba(111,143,74,.12);border-color:var(--green);color:var(--green)}
.witness-list .steady-case span{background:rgba(111,143,74,.15)}
.consent-row.needed{border:1px solid var(--red);border-radius:10px;padding:8px;background:rgba(217,139,106,.08)}

/* الرتب */
.rank-bar{height:6px;border-radius:99px;background:var(--line);overflow:hidden;margin:10px 0 6px}
.rank-bar i{display:block;height:100%;background:linear-gradient(90deg,var(--gold),var(--gold));transition:width .5s ease}
.rank-line{font-size:13px;color:var(--gold);margin-bottom:6px}

/* ============ تطوير المشاهد ============ */
.scene{isolation:isolate}
.vignette{position:absolute;inset:0;pointer-events:none;
  box-shadow:inset 0 0 60px 14px rgba(70,48,28,.16);transition:box-shadow .6s ease}
.scene.warm .vignette{box-shadow:inset 0 0 70px 20px rgba(70,48,28,.22)}
.scene.hot .vignette{box-shadow:inset 0 0 80px 26px rgba(156,73,62,.26)}

/* خلفيات مختلفة حسب الموقف */
.place-yard .scene-bg i{background:linear-gradient(180deg,transparent 55%,rgba(91,58,33,.22) 100%);border-inline-end:0}
.place-yard .scene-bg{opacity:.35}
.place-phone .scene-bg i{border-inline-end:1px dashed rgba(201,162,74,.18)}

/* المستهدَف في مواقف الشاهد */
.target-fig{position:absolute;bottom:0;inset-inline-end:4%;width:60px;text-align:center;opacity:.95}
.target-fig .head{position:relative;display:block;width:42px;height:42px;margin:0 auto 3px;border-radius:50%;background:#8fa36b}
.target-fig .eye{position:absolute;top:17px;width:5px;height:7px;border-radius:3px;background:var(--ink)}
.target-fig .eye.l{inset-inline-start:10px}
.target-fig .eye.r{inset-inline-end:10px}
.target-fig .mouth.sad{position:absolute;bottom:9px;inset-inline-start:50%;translate:-50% 0;width:16px;height:8px;
  border-radius:14px 14px 0 0;background:var(--ink);opacity:.75}
.target-fig .body{display:block;width:52px;height:66px;margin:0 auto;border-radius:22px 22px 4px 4px;background:#5c6b45}
.target-fig small{display:block;font-size:10px;color:#cbbfa6;margin-top:2px}
.is-witness .bully-fig{inset-inline-end:38%}
.is-witness .crowd{inset-inline-start:4%}

/* الجمهور يقرب مع التصعيد */
.crowd{transition:transform .6s ease,filter .6s ease}
.scene.warm .crowd{transform:scale(1.06) translateX(-4px)}
.scene.hot .crowd{transform:scale(1.13) translateX(-10px)}

/* ---- أنت الكبير: غرفة البيت ---- */
.rf-scene.room{background:linear-gradient(180deg,#2e2418 0%,#1d1810 100%)}
.room-bg{position:absolute;inset:0;overflow:hidden}
.room-bg .rug{position:absolute;bottom:0;inset-inline:8%;height:34px;border-radius:50%;
  background:radial-gradient(ellipse at center,#6b5330 0%,#3c2f1c 70%,transparent 72%);opacity:.7}
.room-bg .lamp{position:absolute;top:-12px;inset-inline-end:14%;width:2px;height:44px;background:rgba(201,162,74,.35)}
.room-bg .lamp::after{content:'';position:absolute;bottom:-10px;inset-inline-start:-13px;width:28px;height:16px;
  border-radius:0 0 16px 16px;background:rgba(201,162,74,.5);box-shadow:0 14px 40px 14px rgba(201,162,74,.16)}
.room-bg .frame{position:absolute;top:22px;inset-inline-start:12%;width:34px;height:26px;border:2px solid rgba(201,162,74,.25);border-radius:3px}

/* وضعيات الأخ الصغير */
.bully-fig.little .arms{position:absolute;bottom:34px;inset-inline-start:50%;translate:-50% 0;width:52px;height:8px;
  border-radius:6px;background:#5c6b45;opacity:0;transition:opacity .4s ease}
.rf-scene.defiant .bully-fig.little .arms{opacity:1}
.rf-scene.sad .bully-fig.little{transform:translateY(6px) rotate(-2deg)}
.rf-scene.sad .bully-fig.little .head{margin-bottom:0}
.rf-scene.worried .bully-fig.little{transform:translateY(3px)}
.rf-scene.worried .bully-fig.little .eye{height:11px}
.rf-scene.defiant .bully-fig.little .head{background:#a3946b}
.rf-scene.defiant .bully-fig.little .eye{height:4px;border-radius:2px}
.bully-fig.little{transition:transform .5s ease}

@media (prefers-reduced-motion:reduce){
  .crowd,.bully-fig.little,.vignette,.bully-fig.little .arms{transition:none}
}

/* دعوة التثبيت */
.install-tip{position:fixed;inset-inline:12px;bottom:78px;z-index:60;display:flex;gap:12px;align-items:center;
  justify-content:space-between;background:var(--panel);border:1px solid var(--gold);border-radius:14px;padding:12px 14px;
  box-shadow:var(--shadow)}
.install-tip b{display:block;font-size:15px;color:var(--ink)}
.install-tip small{display:block;font-size:12.5px;color:var(--muted);line-height:1.6;margin-top:2px}
.install-actions{display:flex;gap:8px;flex:0 0 auto}
.install-actions .btn{margin:0;padding:8px 12px;font-size:13px}
#pushRow button{width:100%;text-align:start;background:var(--panel);border:1px solid var(--line);
  border-radius:12px;padding:13px 14px;color:var(--ink)}
#pushRow button b{display:block;font-size:15.5px;font-weight:600;margin-bottom:2px}
#pushRow button small{display:block;font-size:13px;color:var(--muted)}
#pushRow button:disabled{opacity:.55}

/* شاشة ولي الأمر — لغة نتائج لا لغة ألعاب */
.parent-today{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:18px;margin-bottom:12px}
.parent-today h2{font-size:20px;margin:6px 0 12px;line-height:1.5}
.week-lines{list-style:none;margin:0;padding:0}
.week-lines li{position:relative;padding-inline-start:20px;margin-bottom:9px;font-size:15px;line-height:1.7;color:var(--ink)}
.week-lines li::before{content:'—';position:absolute;inset-inline-start:0;color:var(--gold)}
.parent-today .suggest{margin-top:14px;padding:12px 14px;border-radius:12px;background:rgba(201,162,74,.08);border:1px solid var(--gold)}
.parent-today .suggest small{display:block;font-size:12px;color:var(--gold);margin-bottom:4px}
.parent-today .suggest b{font-size:15px;font-weight:600;line-height:1.7}
.quiet-list button{opacity:.82;background:transparent}
.quiet-list button b{font-weight:500}

/* خطة إذا–فإن */
.ifthen{margin-top:16px;padding:14px;border-radius:14px;background:rgba(201,162,74,.08);border:1px solid var(--gold)}
.ifthen h4{margin:6px 0 4px;font-size:16px;line-height:1.6;color:var(--ink)}
.ifthen p{margin:0 0 10px;font-size:13.5px;color:var(--muted);line-height:1.7}
.plan-recall{font-size:13px;line-height:1.7;padding:9px 12px;border-radius:10px;margin-bottom:8px;
  background:rgba(111,143,74,.12);border:1px solid var(--green);color:var(--green)}
.parent-today .suggest em{display:block;font-style:normal;font-size:12.5px;color:var(--muted);margin-top:6px}
.parent-today .suggest.quiet{background:transparent;border-color:var(--line);margin-top:8px}
.parent-today .suggest.quiet small{color:var(--muted)}
.cue-hint{font-size:12.5px;color:var(--gold);margin:-4px 0 10px}

/* ===== قائمة التدريبات: صف كامل العرض، بألوان الثيم ===== */
.tg-label{font-size:13px;color:var(--gold);margin:20px 2px 8px;font-weight:600}
.tg-list{display:flex;flex-direction:column;gap:8px}
.tg-item{display:flex;align-items:center;gap:12px;width:100%;
  background:var(--panel);border:1px solid var(--line);
  border-radius:12px;padding:12px 14px;color:inherit;text-align:start;
  box-shadow:0 1px 2px rgba(70,48,28,.05)}
.tg-ico{flex:0 0 38px;width:38px;height:38px;border-radius:10px;display:grid;place-items:center;
  background:rgba(201,162,74,.16);font-size:17px;line-height:1}
.tg-txt{flex:1 1 auto;min-width:0}
.tg-txt b{display:block;font-size:15.5px;font-weight:600;line-height:1.5}
.tg-txt small{display:block;font-size:13px;opacity:.7;line-height:1.6;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tg-arrow{flex:0 0 auto;opacity:.45;font-size:16px}
.tg-item:active{border-color:var(--gold);background:rgba(201,162,74,.08)}

/* التجربة الأولى لولي الأمر */
.try-first{text-align:center}
.try-first h2{font-size:23px}
.try-lead{font-size:15px;color:var(--muted);line-height:1.8;margin:8px 0 16px}
.btn.big-try{font-size:17px;padding:16px}
.setup-steps button b{color:var(--ink)}
.setup-steps button small{opacity:.8}

/* ===== v0.16 بروفة الحياة ===== */
.life-hero,.parent-report-new{background:linear-gradient(135deg,#211a12,#4b3422);color:#fff;border-radius:26px;padding:26px;box-shadow:var(--shadow)}
.life-hero h2,.parent-report-new h2{font-size:clamp(24px,4vw,38px);margin:7px 0 9px}.life-hero p,.parent-report-new p{color:#ddd2c3;line-height:1.9;margin:0}
.life-progress{height:10px;background:rgba(255,255,255,.13);border-radius:99px;overflow:hidden;margin:18px 0}.life-progress i{display:block;height:100%;background:linear-gradient(90deg,var(--gold2),#fff0c9);border-radius:inherit}
.life-hero-actions{display:flex;gap:8px;flex-wrap:wrap}.life-goal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px}.life-goal{border:1px solid var(--line);background:var(--panel);border-radius:20px;padding:18px;text-align:right;display:flex;gap:13px;align-items:center;color:var(--ink)}.life-goal>span{width:44px;height:44px;border-radius:14px;background:#f1e6d5;display:grid;place-items:center;font-size:22px}.life-goal div{flex:1}.life-goal b,.life-goal small{display:block}.life-goal small{color:var(--muted);margin-top:4px;line-height:1.7}.life-goal i{color:var(--gold);font-style:normal}
.life-map{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:18px}.life-node{border:1px solid var(--line);background:var(--panel);border-radius:17px;padding:14px;text-align:right;display:flex;gap:10px;align-items:center;color:var(--ink)}.life-node>span{width:34px;height:34px;border-radius:50%;background:#eee5d7;display:grid;place-items:center;font-weight:800;flex:none}.life-node b,.life-node small{display:block}.life-node small{color:var(--muted);margin-top:3px}.life-node.done{border-color:#b9c9b1;background:#f3f7f0}.life-node.done>span{background:#dfead9;color:#405d3b}.life-node.locked{opacity:.55}
.life-session{max-width:760px;margin:auto}.life-step-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.life-session h2{font-size:clamp(24px,4vw,36px);line-height:1.6}.life-prompt{font-size:16px;color:var(--muted);line-height:1.9}.life-answer{margin-top:18px;background:var(--panel);border:1px solid var(--line);border-radius:22px;padding:24px;text-align:center}.life-answer.busy{opacity:.65}.life-mic{width:82px;height:82px;border-radius:50%;border:6px solid #eadfcf;background:var(--gold2);font-size:28px}.life-mic.recording{animation:pulse 1s infinite;background:#df9d91}.life-answer b,.life-answer small{display:block}.life-answer b{font-size:18px;margin-top:10px}.life-answer small{color:var(--muted);margin-top:5px}.life-manual{display:flex;gap:7px;margin-top:16px}.life-manual input,.life-plan-input input{flex:1;border:1px solid var(--line);border-radius:12px;padding:11px;min-width:0}.life-manual button,.life-plan-input button{border:0;border-radius:12px;padding:10px 13px;background:#eee5d7;color:var(--brown)}
.life-feedback,.life-plan{margin-top:15px;border-radius:20px;padding:20px}.life-feedback{background:#eef4ea;border:1px solid #cdddc7}.life-feedback>span{font-size:10px;color:var(--green);font-weight:800}.life-feedback h3{margin:6px 0}.life-feedback p{color:#50604c}.life-feedback details{margin-top:10px}.life-plan{background:#fbf5e9;border:1px solid #ead9ba}.life-plan-input{display:flex;gap:7px;margin:12px 0}.life-done{max-width:680px;margin:40px auto;text-align:center;background:var(--panel);border:1px solid var(--line);border-radius:26px;padding:34px}.life-done>span{width:64px;height:64px;border-radius:50%;background:#e1ecd9;display:grid;place-items:center;margin:auto;font-size:30px;color:var(--green)}
.life-real-card{margin-top:16px;background:linear-gradient(135deg,#f1e8d8,#fffdf8);border:1px solid #dcc7a5;border-radius:22px;padding:20px}.life-real-card>span{font-size:10px;color:var(--brown2);font-weight:800}.life-real-card h3{margin:7px 0}.life-real-card p{color:var(--muted)}.life-real-card>div{display:flex;gap:7px;flex-wrap:wrap}.life-real-card button{border:1px solid #d7c3a4;background:#fff;border-radius:12px;padding:9px 12px;color:var(--ink)}
.life-primary{width:100%}.life-home .plan-recall{margin-top:15px;background:#fff8e9;border:1px solid #e8d6b6;border-radius:15px;padding:12px}.life-home .plan-recall small,.life-home .plan-recall b{display:block}.life-home .plan-recall small{color:var(--muted)}
.parent-evidence .week-lines{margin:14px 0 0}.parent-path-card,.parent-60{margin-top:14px;background:var(--panel);border:1px solid var(--line);border-radius:20px;padding:18px;display:flex;gap:14px;align-items:center}.parent-path-card>div,.parent-60>div{flex:1}.parent-path-card h3,.parent-path-card p{margin:3px 0}.parent-path-card p{color:var(--muted)}.parent-60{width:100%;text-align:right;color:var(--ink)}.parent-60>span{width:52px;height:52px;border-radius:16px;background:var(--brown);color:#fff;display:grid;place-items:center;font-size:20px;font-weight:800}.parent-60 b,.parent-60 small{display:block}.parent-60 small{color:var(--muted);margin-top:4px}.parent-60 i{font-style:normal;color:var(--gold)}.parent-challenge-line{background:#f3ecdf;border-radius:16px;padding:18px;font-size:18px;line-height:1.8;margin:14px 0}.behavioral .proof b{font-size:30px}.evidence-card p{margin:8px 0!important;color:var(--ink)!important}
@media(max-width:700px){.life-goal-grid{grid-template-columns:1fr}.life-map{grid-template-columns:repeat(2,minmax(0,1fr))}.life-hero,.parent-report-new{padding:21px}.life-manual,.life-plan-input{flex-direction:column}.parent-path-card{align-items:flex-start;flex-direction:column}.parent-path-card .btn{width:100%}}
/* v0.16 — شخصيات الجلسة النسائية تستخدم نفس المسرح بدون لحية أو عقال */
.sheikh.female-cast .beard{display:none}
.sheikh.female-cast .ghutra{background:linear-gradient(135deg,#e9ddd3,#c8b7aa);box-shadow:0 0 0 4px rgba(105,79,62,.30);border-radius:44px 44px 24px 24px;height:68px;top:3px}
.sheikh.female-cast .ghutra:after{display:none}
.sheikh.female-cast.active .ghutra{box-shadow:0 0 0 4px #b69e80,0 0 0 11px rgba(225,196,142,.17)}

/* v0.16.1 — المحاكاة الحية ترجع للواجهة الأساسية */
.signature-head{margin-top:18px}
.signature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin:12px 0 16px}
.signature-card{min-height:128px;border:1px solid var(--line);border-radius:18px;background:var(--panel);color:var(--ink);padding:15px;text-align:start;display:grid;grid-template-columns:auto 1fr auto;gap:11px;align-items:center;box-shadow:0 8px 24px rgba(50,34,20,.05)}
.signature-card>span{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;font-size:22px;background:rgba(201,162,74,.11);color:var(--gold)}
.signature-card b{display:block;font-size:18px;margin-bottom:4px}.signature-card small{display:block;color:var(--muted);font-size:12.5px;line-height:1.65}.signature-card>i{font-style:normal;color:var(--gold);font-size:18px}
.signature-card:active{transform:translateY(1px);border-color:var(--gold)}
.steady-sign{background:linear-gradient(145deg,var(--panel),rgba(201,162,74,.07))}.roleflip-sign{background:linear-gradient(145deg,var(--panel),rgba(111,143,74,.07))}.majlis-sign{background:linear-gradient(145deg,var(--panel),rgba(106,78,47,.08))}
.signature-path-card{width:100%;margin:14px 0 16px;padding:15px 16px;border:1px solid var(--gold);border-radius:18px;background:linear-gradient(135deg,rgba(201,162,74,.10),var(--panel));color:var(--ink);display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;text-align:start}
.signature-path-card>span{font-size:25px}.signature-path-card small,.signature-path-card b,.signature-path-card em{display:block}.signature-path-card small{font-size:11.5px;color:var(--gold);margin-bottom:2px}.signature-path-card b{font-size:18px}.signature-path-card em{font-size:12.5px;color:var(--muted);font-style:normal;line-height:1.6;margin-top:3px}.signature-path-card>i{font-style:normal;color:var(--gold)}
@media(max-width:760px){.signature-grid{grid-template-columns:1fr}.signature-card{min-height:98px}.train-signature-grid{grid-template-columns:1fr}}

/* ===== v0.18 — ركني: شخصية الطفل + الحارة + المقتنيات ===== */
.world-home-card,.parent-world-link{width:100%;margin:14px 0;border:1px solid var(--line);border-radius:20px;background:linear-gradient(135deg,#fff8e9,var(--panel));color:var(--ink);padding:14px 16px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:13px;text-align:start;box-shadow:0 8px 26px rgba(64,43,23,.05)}
.world-home-card>div:nth-child(2),.parent-world-link>div{min-width:0}.world-home-card small,.world-home-card b,.world-home-card em,.parent-world-link b,.parent-world-link small{display:block}.world-home-card small{font-size:11.5px;color:var(--gold)}.world-home-card b{font-size:16px;margin:2px 0}.world-home-card em{font-size:12.5px;color:var(--muted);font-style:normal;line-height:1.6}.world-home-card>i,.parent-world-link>i{font-style:normal;color:var(--gold);font-size:18px}.wh-avatar{width:58px;height:66px;display:grid;place-items:center}.parent-world-link>span{width:46px;height:46px;border-radius:15px;background:rgba(201,162,74,.15);display:grid;place-items:center;font-size:23px;color:var(--gold)}.parent-world-link small{font-size:12.5px;color:var(--muted);margin-top:3px}

.world-hero{display:grid;grid-template-columns:1fr 230px;gap:22px;align-items:center;background:linear-gradient(135deg,#211a12,#5c4028);color:#fff;border-radius:28px;padding:26px;overflow:hidden;box-shadow:var(--shadow)}
.world-hero h2{font-size:clamp(25px,4vw,38px);line-height:1.45;margin:7px 0 8px}.world-hero p{color:#e2d7c8;line-height:1.8;margin:0 0 16px}.world-hero .eyebrow{color:#f1cf86}.world-hero .btn.light{background:rgba(255,255,255,.12);color:#fff;border-color:rgba(255,255,255,.2)}
.world-avatar{--skin:#d5a77d;--hair:#2b211b;--accent:#6f8f4a;position:relative;width:180px;height:230px;margin:auto;filter:drop-shadow(0 12px 18px rgba(0,0,0,.18))}.world-avatar.small{width:54px;height:68px;filter:none}.world-avatar.skin-light{--skin:#f0c9a7}.world-avatar.skin-warm{--skin:#d9aa82}.world-avatar.skin-tan{--skin:#b98059}.world-avatar.skin-deep{--skin:#78523d}.world-avatar.accent-green{--accent:#6f8f4a}.world-avatar.accent-gold{--accent:#c9a24a}.world-avatar.accent-blue{--accent:#5f7f9d}.world-avatar.accent-rose{--accent:#a8787a}
.wa-head{position:absolute;left:50%;top:18px;transform:translateX(-50%);width:92px;height:105px;border-radius:46% 46% 44% 44%;background:var(--skin);z-index:4;box-shadow:inset 0 -5px 0 rgba(90,55,34,.08)}.wa-neck{position:absolute;top:108px;left:50%;transform:translateX(-50%);width:34px;height:30px;background:var(--skin);z-index:2}.wa-body{position:absolute;left:50%;top:128px;transform:translateX(-50%);width:126px;height:84px;border-radius:30px 30px 18px 18px;background:var(--accent);z-index:3}.wa-detail{position:absolute;left:50%;top:8px;transform:translateX(-50%);width:12px;height:62px;border-radius:10px;background:rgba(255,255,255,.22)}.outfit-sport .wa-body{border-radius:25px;background:linear-gradient(90deg,var(--accent) 0 47%,rgba(255,255,255,.82) 47% 53%,var(--accent) 53%)}.outfit-heritage .wa-body{background:#f3eee7;border:3px solid rgba(95,70,45,.10)}.outfit-heritage .wa-detail{background:var(--accent);width:5px}.wa-legs{position:absolute;top:202px;left:50%;transform:translateX(-50%);display:flex;gap:17px;z-index:1}.wa-legs i{display:block;width:31px;height:28px;border-radius:0 0 12px 12px;background:#40352d}.world-avatar.small .wa-head{top:5px;width:29px;height:33px}.world-avatar.small .wa-neck{top:34px;width:10px;height:10px}.world-avatar.small .wa-body{top:41px;width:40px;height:25px;border-radius:10px 10px 6px 6px}.world-avatar.small .wa-detail{top:3px;width:3px;height:18px}.world-avatar.small .wa-legs{top:63px;gap:5px}.world-avatar.small .wa-legs i{width:10px;height:7px;border-radius:0 0 4px 4px}
.wa-hair{position:absolute;left:-2px;right:-2px;top:-6px;height:43px;background:var(--hair);border-radius:50px 50px 19px 19px;z-index:2}.hair-wave .wa-hair{height:51px;border-radius:50px 50px 35px 18px;clip-path:polygon(0 0,100% 0,100% 72%,82% 63%,67% 78%,51% 62%,35% 78%,18% 62%,0 72%)}.hair-curl .wa-hair{height:48px;background:radial-gradient(circle at 12px 12px,var(--hair) 0 10px,transparent 11px),radial-gradient(circle at 34px 12px,var(--hair) 0 12px,transparent 13px),radial-gradient(circle at 58px 11px,var(--hair) 0 12px,transparent 13px),radial-gradient(circle at 81px 13px,var(--hair) 0 11px,transparent 12px),var(--hair)}.hair-long .wa-hair{height:96px;border-radius:52px 52px 30px 30px;z-index:-1}.hair-braid .wa-hair{height:52px}.hair-braid .wa-hair:after{content:'';position:absolute;width:17px;height:68px;border-radius:10px;background:var(--hair);right:4px;top:31px;transform:rotate(-5deg)}
.wa-eye{position:absolute;top:49px;width:8px;height:10px;border-radius:50%;background:#35261f;z-index:4}.wa-eye.e1{right:25px}.wa-eye.e2{left:25px}.wa-smile{position:absolute;left:50%;top:72px;transform:translateX(-50%);width:25px;height:12px;border-bottom:3px solid #7b4637;border-radius:0 0 50% 50%;z-index:4}.wa-glasses{position:absolute;top:43px;left:50%;transform:translateX(-50%);font-size:13px;letter-spacing:12px;white-space:nowrap;color:#3d372f;z-index:7}.wa-cap{position:absolute;left:7px;right:7px;top:-12px;height:25px;border-radius:28px 28px 5px 5px;background:var(--accent);z-index:7}.wa-cap:after{content:'';position:absolute;width:30px;height:7px;border-radius:8px;background:var(--accent);right:-14px;bottom:0}.wa-heritage{position:absolute;left:-5px;right:-5px;top:-14px;height:52px;background:#f5f1e9;border-radius:45px 45px 18px 18px;z-index:7;box-shadow:inset 0 -7px 0 rgba(185,70,60,.10)}.wa-heritage.girl{height:16px;left:7px;right:7px;top:6px;border-radius:12px;background:var(--accent)}.world-avatar.small .wa-eye{top:15px;width:3px;height:3px}.world-avatar.small .wa-eye.e1{right:8px}.world-avatar.small .wa-eye.e2{left:8px}.world-avatar.small .wa-smile{top:23px;width:8px;height:4px;border-width:0 0 1px}.world-avatar.small .wa-hair{top:-2px;height:14px}.world-avatar.small.hair-long .wa-hair{height:31px}.world-avatar.small.hair-braid .wa-hair:after{width:5px;height:22px;right:1px;top:10px}.world-avatar.small .wa-glasses{top:13px;font-size:4px;letter-spacing:4px}.world-avatar.small .wa-cap{left:2px;right:2px;top:-4px;height:8px}.world-avatar.small .wa-cap:after{width:9px;height:2px;right:-4px}.world-avatar.small .wa-heritage{left:-2px;right:-2px;top:-5px;height:16px}.world-avatar.small .wa-heritage.girl{height:5px;left:2px;right:2px;top:2px}

.kudo-banner{width:100%;display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:center;text-align:start;margin:14px 0;border:1px solid #e1c8bd;border-radius:18px;padding:14px;background:#fff4ef;color:var(--ink)}.kudo-banner>span{width:44px;height:44px;border-radius:50%;background:#eed6cb;display:grid;place-items:center;color:#9a5e50;font-size:20px}.kudo-banner small,.kudo-banner b,.kudo-banner em{display:block}.kudo-banner small{font-size:11px;color:#9a5e50}.kudo-banner b{font-size:16px;margin:2px 0}.kudo-banner em{font-size:11px;color:var(--muted);font-style:normal}
.season-card{margin:14px 0;padding:16px;border-radius:20px;border:1px solid var(--line);background:linear-gradient(135deg,#f9f1e4,#fff);display:grid;grid-template-columns:auto 1fr auto;gap:13px;align-items:center;cursor:pointer}.season-card>span{font-size:30px}.season-card small,.season-card b{display:block}.season-card small{font-size:11px;color:var(--gold)}.season-card b{font-size:17px}.season-card p{margin:3px 0 0;color:var(--muted);font-size:13px;line-height:1.6}.season-card>i{font-style:normal;color:var(--gold)}
.world-map{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:18px;border:1px solid var(--line);border-radius:26px;background:linear-gradient(180deg,#dfe9cf 0 64%,#d7c4a6 64%);overflow:hidden}.world-map:before{content:'';position:absolute;left:0;right:0;top:58%;height:20px;background:rgba(230,218,193,.85);transform:rotate(-2deg)}.world-map .place{position:relative;z-index:2;min-height:128px;border:1px solid rgba(104,79,52,.15);border-radius:18px;padding:15px;background:rgba(255,255,255,.91);color:var(--ink);text-align:start;box-shadow:0 8px 22px rgba(74,55,38,.08)}.world-map .place span{font-size:29px}.world-map .place b,.world-map .place small{display:block}.world-map .place b{font-size:16px;margin:6px 0 2px}.world-map .place small{font-size:12px;color:var(--muted);line-height:1.55}
.world-section{margin-top:22px}.world-room{position:relative;height:330px;border-radius:24px;border:1px solid var(--line);overflow:hidden;background:linear-gradient(180deg,#e9dcc7 0 67%,#8f7255 67%);box-shadow:inset 0 -28px 60px rgba(54,37,25,.12)}.world-room.wall-green{background:linear-gradient(180deg,#dbe3d2 0 67%,#816d58 67%)}.world-room.wall-night{background:linear-gradient(180deg,#26313a 0 67%,#54463c 67%)}.room-window{position:absolute;left:9%;top:12%;width:25%;height:34%;border:8px solid rgba(255,255,255,.7);background:linear-gradient(#b9d6e2,#f8e0aa);box-shadow:0 4px 20px rgba(0,0,0,.08)}.room-window:before,.room-window:after{content:'';position:absolute;background:rgba(255,255,255,.75)}.room-window:before{width:5px;top:0;bottom:0;left:50%}.room-window:after{height:5px;left:0;right:0;top:50%}.room-rug{position:absolute;left:28%;right:10%;bottom:3%;height:26%;border-radius:50%;background:repeating-linear-gradient(90deg,#9f6e51 0 13px,#d1a670 13px 26px);opacity:.72}.room-avatar{position:absolute;right:14%;bottom:14%;transform:scale(1.55);transform-origin:bottom center}.room-decor{position:absolute;font-size:38px;z-index:4;filter:drop-shadow(0 5px 5px rgba(0,0,0,.18))}.rd-0{left:7%;bottom:14%}.rd-1{left:39%;top:18%}.rd-2{right:8%;top:18%}.rd-3{left:44%;bottom:16%}.rd-4{right:38%;top:7%}.rd-5{left:15%;top:11%}
.decor-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-top:10px}.decor-choice{border:1px solid var(--line);border-radius:15px;background:var(--panel);color:var(--ink);padding:11px 7px;min-height:112px}.decor-choice span{font-size:25px}.decor-choice b,.decor-choice small{display:block}.decor-choice b{font-size:12.5px;margin:5px 0 2px}.decor-choice small{font-size:10.5px;color:var(--muted);line-height:1.45}.decor-choice.locked{filter:grayscale(.7);opacity:.5}.decor-choice.selected{border-color:var(--gold);box-shadow:inset 0 0 0 1px var(--gold);background:#fff9ec}
.world-journal{display:flex;flex-direction:column;gap:8px}.journal-row{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;border:1px solid var(--line);border-radius:15px;background:var(--panel);padding:12px 14px}.journal-row>span{width:36px;height:36px;border-radius:12px;background:rgba(201,162,74,.12);display:grid;place-items:center}.journal-row b,.journal-row small{display:block}.journal-row b{font-size:14.5px}.journal-row small{font-size:12px;color:var(--muted);margin-top:2px;line-height:1.5}.journal-row time{font-size:10.5px;color:var(--muted);white-space:nowrap}
.avatar-builder{text-align:center}.avatar-builder-preview{background:linear-gradient(180deg,#e9ddc8,#f8f3e9);border-radius:22px;padding:16px;margin:12px 0 18px}.avatar-option-group{text-align:start;margin:14px 0}.avatar-option-group>b{display:block;font-size:13px;margin-bottom:7px}.avatar-option-group>div{display:flex;gap:6px;flex-wrap:wrap}.avatar-option-group button,.room-theme-grid button{border:1px solid var(--line);border-radius:12px;background:var(--panel);padding:8px 11px;color:var(--ink)}.avatar-option-group button.on,.room-theme-grid button.on{border-color:var(--gold);background:#fff6e5;box-shadow:inset 0 0 0 1px var(--gold)}.room-theme-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:15px 0}.room-theme-grid button b{display:block;margin-top:6px}.theme-swatch{display:block;height:52px;border-radius:9px;border:1px solid var(--line)}.theme-swatch.wall-sand{background:linear-gradient(#e9dcc7 0 70%,#8f7255 70%)}.theme-swatch.wall-green{background:linear-gradient(#dbe3d2 0 70%,#816d58 70%)}.theme-swatch.wall-night{background:linear-gradient(#26313a 0 70%,#54463c 70%)}
.world-guardian{background:linear-gradient(135deg,#f7efe1,#fff);border:1px solid var(--line);border-radius:24px;padding:22px}.world-guardian h2{margin:6px 0}.world-guardian>p{color:var(--muted);line-height:1.7}.guardian-world-preview{display:flex;align-items:center;gap:18px;margin-top:16px}.guardian-world-preview .world-avatar{margin:0;transform:scale(.65);transform-origin:center;width:120px}.guardian-world-preview b,.guardian-world-preview small{display:block}.guardian-world-preview small{color:var(--muted);margin-top:4px}.kudo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.kudo-grid button{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:15px;background:var(--panel);color:var(--ink);padding:13px;text-align:start}.kudo-grid span{color:#a96656;font-size:18px}.kudo-grid b{font-size:14px;line-height:1.5}

@media(max-width:760px){
  .world-hero{grid-template-columns:1fr 120px;padding:20px;gap:8px}.world-hero .world-avatar{transform:scale(.72);transform-origin:center}.world-map{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px}.world-map .place{min-height:116px}.decor-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.world-room{height:285px}.room-avatar{right:9%;transform:scale(1.35)}.kudo-grid{grid-template-columns:1fr}.guardian-world-preview .world-avatar{transform:scale(.55);width:90px}.journal-row{grid-template-columns:auto 1fr}.journal-row time{grid-column:2}.world-home-card{grid-template-columns:auto 1fr auto}
}
@media(max-width:480px){.world-hero{grid-template-columns:1fr}.world-hero>.world-avatar{display:none}.world-map{grid-template-columns:1fr 1fr}.world-map .place{padding:12px}.room-window{width:31%}.room-avatar{right:4%}}


/* v0.18.1 — إعادة علوم اليوم للواجهة الرئيسية */
.heritage-home-card{margin:16px 0 22px;padding:18px;border:1px solid var(--line);background:linear-gradient(145deg,#fffaf0,#fff);border-radius:24px;box-shadow:var(--shadow)}
.hh-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.hh-head small{display:block;color:#9a7444;font-weight:800;font-size:10px}.hh-head h3{margin:3px 0 0;font-size:20px}.hh-grid{display:grid;grid-template-columns:1.25fr .75fr;gap:10px}.hh-item{border:1px solid #eadfcf;background:#fff;border-radius:18px;padding:16px;text-align:right;display:flex;flex-direction:column;align-items:flex-start;gap:7px;cursor:pointer;min-height:150px}.hh-item:hover{transform:translateY(-1px)}.hh-item small{font-size:10px;font-weight:800;color:#9a7444}.hh-item b{font-family:var(--font-ar);font-size:19px;line-height:1.7;color:#342518}.hh-item span{font-size:12px;line-height:1.85;color:var(--muted)}.hh-item em{font-style:normal;font-size:10px;color:#80613c;margin-top:auto}.hh-item.word{background:#fbf7ef}.hh-item.word b{font-size:26px}
@media(max-width:700px){.hh-head{align-items:flex-start}.hh-head .link-btn{font-size:10px}.hh-grid{grid-template-columns:1fr}.hh-item{min-height:0}.hh-item b{font-size:18px}.hh-item.word b{font-size:24px}}

/* v0.18.2 — المجلس والمناسبات */
.role-choice-hero,.read-majlis-hero{background:linear-gradient(135deg,#fffaf1,#f2e5cf);border:1px solid #dfcfb2;border-radius:26px;padding:26px;margin-bottom:16px}.role-choice-hero h2,.read-majlis-hero h2{margin:6px 0 8px}.role-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:18px}.role-choice-grid button{border:1px solid var(--line);background:#fff;border-radius:20px;padding:20px;text-align:right;cursor:pointer}.role-choice-grid button>span{font-size:30px;display:block;margin-bottom:9px}.role-choice-grid b{display:block;font-size:18px}.role-choice-grid small{display:block;color:var(--muted);margin-top:5px}.scenario-card,.scenario-feedback,.role-result{max-width:760px;margin:0 auto}.majlis-scene-card{max-width:780px;margin:0 auto;background:linear-gradient(145deg,#231a12,#5d4027);color:#fff;border-radius:28px;padding:26px;box-shadow:var(--shadow)}.majlis-scene-card .scene-copy{font-size:16px;line-height:2;color:#eee3d4;background:rgba(255,255,255,.07);border-radius:18px;padding:16px}.majlis-scene-card .choice{background:#fff;color:#2c2117}.scene-tag{display:inline-block;font-size:11px;background:rgba(255,255,255,.12);padding:6px 10px;border-radius:99px}.before-check-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}.before-check-grid>div{background:#faf6ee;border-radius:14px;padding:12px}.before-check-grid b,.before-check-grid span{display:block}.before-check-grid span{color:var(--muted);font-size:12px;line-height:1.8;margin-top:4px}.before-actions,.reply-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.after-review-card strong{color:#6c4d2e}.conversation-drill{display:grid;gap:10px;margin:14px 0}.conv-line{border-radius:15px;padding:12px 14px}.conv-line.other{background:#f3ecdf}.conv-line.me{background:#edf4ee}.conv-line small,.conv-line b{display:block}.conv-step textarea{width:100%;min-height:74px;margin-top:8px}.conv-step p{font-size:12px;color:var(--muted);margin:7px 0}
@media(max-width:700px){.role-choice-grid,.before-check-grid{grid-template-columns:1fr}.role-choice-hero,.read-majlis-hero,.majlis-scene-card{padding:19px}.before-actions,.reply-actions{display:grid;grid-template-columns:1fr}.before-actions .btn,.reply-actions .btn{width:100%}}

/* Prayer etiquette roleplay */
.prayer-mode-switch{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0 18px}
.prayer-mode-switch button{border:1px solid var(--line,#d8d8d8);background:#fff;border-radius:999px;padding:10px 16px;font-weight:800;cursor:pointer}
.prayer-mode-switch button.active{background:var(--dark,#103c33);color:#fff;border-color:var(--dark,#103c33)}
.prayer-scenario-grid{margin-top:14px}
.prayer-video-stage{display:grid;gap:14px}
.prayer-video-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;flex-wrap:wrap}
.prayer-storyboard{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px}
.prayer-frame{border:1px dashed rgba(16,60,51,.2);border-radius:16px;padding:12px;background:#fafaf7;display:flex;align-items:center;gap:8px}
.prayer-frame span{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:#e9f0ed;color:#103c33;font-weight:900}
.prayer-frame b{font-size:14px}
.prayer-stage-shell{display:grid;grid-template-columns:110px 1fr;gap:14px;align-items:center;background:linear-gradient(180deg,#f8fbfa,#eef4f1);border-radius:20px;padding:14px}
.prayer-figure-wrap{display:grid;justify-items:center;gap:8px}
.prayer-coach-fig{transform:scale(.85)}
.prayer-stage-copy{display:grid;gap:10px}
.prayer-bubble{min-height:64px}
.prayer-manual-row{display:grid;grid-template-columns:1fr auto auto auto;gap:8px;align-items:center}
.prayer-manual-row input{min-width:0}
.prayer-conversation{display:grid;gap:8px;max-height:230px;overflow:auto;padding-inline:2px}
.prayer-conversation .msg{border-radius:16px;padding:10px 12px;background:#f7f7f2}
.prayer-conversation .msg.child{background:#eef6ff}
.prayer-review .practice-answer{margin-top:8px}
@media (max-width:720px){
  .prayer-stage-shell{grid-template-columns:1fr;justify-items:center}
  .prayer-manual-row{grid-template-columns:1fr 1fr}
  .prayer-manual-row input{grid-column:1 / -1}
}

/* Cartoon prayer scenes */
.prayer-scene-art{margin:10px 0 14px}
.prayer-scene-svg{width:100%;height:auto;display:block;border-radius:20px;box-shadow:0 6px 18px rgba(0,0,0,.05)}
.prayer-scene-picker{display:block;text-align:initial;padding:10px}
.prayer-scene-picker .prayer-scene-art{margin:0 0 10px}
.prayer-scene-picker .prayer-scene-svg{min-height:140px;background:#fff}
.prayer-scene-picker b{display:block;margin-bottom:4px}
.prayer-scene-picker small{display:block;color:#6d6d6d;line-height:1.55}
.majlis-scene-card .prayer-scene-art{margin-top:8px}

/* Premium animated prayer explainer */
.prayer-scene-explain{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:space-between;background:#fff;border:1px solid rgba(16,60,51,.08);padding:10px 12px;border-radius:16px;margin-top:10px}
.prayer-scene-steps{display:flex;gap:8px;align-items:center}
.prayer-step-badge{width:30px;height:30px;border-radius:999px;display:grid;place-items:center;background:#edf2ef;color:#5f7468;font-weight:800;transition:.25s ease}
.prayer-step-badge.active{background:#103c33;color:#fff;transform:scale(1.08);box-shadow:0 8px 18px rgba(16,60,51,.18)}
.prayer-scene-caption{flex:1;min-width:170px;font-weight:700;color:#21493f;line-height:1.8}
.prayer-scene-replay{white-space:nowrap}
.prayer-scene-svg{overflow:visible}
.prayer-scene-svg .scene-path,.prayer-scene-svg .scene-alt-path,.prayer-scene-svg .scene-gap{animation:dashMove 2.6s linear infinite}
.prayer-scene-svg .scene-enter-kid,.prayer-scene-svg .scene-go-mosque,.prayer-scene-svg .scene-walker,.prayer-scene-svg .scene-person{animation:bobMove 2.2s ease-in-out infinite}
.prayer-scene-svg .scene-phone-body{animation:phoneShake 1.3s ease-in-out infinite}
.prayer-scene-svg .scene-ring{transform-origin:169px 88px;animation:ringPulse 1.4s ease-in-out infinite}
.prayer-scene-svg .ring-b{animation-delay:.25s}
.prayer-scene-svg .scene-fill-arrow{animation:arrowDrop 1.8s ease-in-out infinite}
.prayer-scene-svg .scene-stop-dot{animation:stopBlink 1.2s ease-in-out infinite}
.prayer-scene-svg .scene-soft-wave{animation:softTalk 1.8s ease-in-out infinite}
.prayer-scene-svg .wave-b{animation-delay:.4s}
.prayer-scene-svg .scene-stop-talk{animation:stopBlink 1.7s ease-in-out infinite}
.prayer-scene-svg .scene-dhikr{animation:gentleGlow 2.4s ease-in-out infinite}
.prayer-scene-svg .scene-talkers{animation:subtleTalk 2.1s ease-in-out infinite}
.prayer-scene-picker{transition:transform .22s ease, box-shadow .22s ease}
.prayer-scene-picker:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(0,0,0,.06)}
@keyframes dashMove{from{stroke-dashoffset:28}to{stroke-dashoffset:0}}
@keyframes bobMove{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
@keyframes phoneShake{0%,100%{transform:translateX(0) rotate(0)}20%{transform:translateX(-1px) rotate(-2deg)}40%{transform:translateX(1px) rotate(2deg)}60%{transform:translateX(-1px) rotate(-2deg)}80%{transform:translateX(1px) rotate(2deg)}}
@keyframes ringPulse{0%,100%{opacity:.35;transform:scale(.96)}50%{opacity:1;transform:scale(1.06)}}
@keyframes arrowDrop{0%,100%{transform:translateY(0);opacity:.8}50%{transform:translateY(4px);opacity:1}}
@keyframes stopBlink{0%,100%{opacity:.45}50%{opacity:1}}
@keyframes softTalk{0%,100%{opacity:.35;transform:translateY(0)}50%{opacity:.9;transform:translateY(-2px)}}
@keyframes gentleGlow{0%,100%{opacity:.9}50%{opacity:1;filter:drop-shadow(0 0 6px rgba(181,157,209,.35))}}
@keyframes subtleTalk{0%,100%{transform:translateY(0)}50%{transform:translateY(-1px)}}
@media (prefers-reduced-motion:reduce){
  .prayer-scene-svg *,.prayer-scene-picker,.prayer-step-badge{animation:none!important;transition:none!important}
}

/* Animated majlis scenes for premium training */
.majlis-scene-art{margin:10px 0 14px}
.majlis-scene-svg{width:100%;height:auto;display:block;border-radius:20px;box-shadow:0 6px 18px rgba(0,0,0,.05);overflow:visible}
.majlis-scene-explain{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:space-between;background:#fff;border:1px solid rgba(16,60,51,.08);padding:10px 12px;border-radius:16px;margin-top:10px}
.majlis-scene-steps{display:flex;gap:8px;align-items:center}
.majlis-step-badge{width:30px;height:30px;border-radius:999px;display:grid;place-items:center;background:#edf2ef;color:#5f7468;font-weight:800;transition:.25s ease}
.majlis-step-badge.active{background:#103c33;color:#fff;transform:scale(1.08);box-shadow:0 8px 18px rgba(16,60,51,.18)}
.majlis-scene-caption{flex:1;min-width:170px;font-weight:700;color:#21493f;line-height:1.8}
.majlis-scene-replay{white-space:nowrap}
.majlis-scene-svg .majlis-wave,.majlis-scene-svg .majlis-chat,.majlis-scene-svg .majlis-interrupt,.majlis-scene-svg .majlis-look,.majlis-scene-svg .majlis-muted{animation:subtleBlink 1.8s ease-in-out infinite}
.majlis-scene-svg .majlis-host,.majlis-scene-svg .majlis-guest,.majlis-scene-svg .majlis-server,.majlis-scene-svg .majlis-waiter,.majlis-scene-svg .majlis-busyhost,.majlis-scene-svg .majlis-otherguest,.majlis-scene-svg .majlis-bigspeaker,.majlis-scene-svg .majlis-youthjump,.majlis-scene-svg .majlis-entry,.majlis-scene-svg .majlis-leaver,.majlis-scene-svg .majlis-drinker,.majlis-scene-svg .majlis-silentguest,.majlis-scene-svg .majlis-quietguest,.majlis-scene-svg .majlis-dhikr,.majlis-scene-svg .majlis-talkers,.majlis-scene-svg .majlis-elder,.majlis-scene-svg .majlis-vip,.majlis-scene-svg .majlis-youths{animation:majlisBob 2.3s ease-in-out infinite}
.majlis-scene-svg .majlis-path,.majlis-scene-svg .majlis-priority,.majlis-scene-svg .majlis-space-line{animation:majlisDash 2.6s linear infinite}
.majlis-scene-svg .majlis-cup{animation:cupPulse 1.6s ease-in-out infinite}
.majlis-scene-svg .majlis-cup-shake{animation:cupShake 1.1s ease-in-out infinite}
.majlis-scene-svg .majlis-clock{animation:clockTick 2s steps(2,end) infinite}
.majlis-scene-svg .majlis-bag{animation:bagLift 1.8s ease-in-out infinite}
@keyframes majlisBob{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
@keyframes majlisDash{from{stroke-dashoffset:28}to{stroke-dashoffset:0}}
@keyframes subtleBlink{0%,100%{opacity:.45}50%{opacity:1}}
@keyframes cupPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.08)}}
@keyframes cupShake{0%,100%{transform:translateX(0)}30%{transform:translateX(2px)}60%{transform:translateX(-2px)}}
@keyframes clockTick{0%,100%{transform:rotate(0)}50%{transform:rotate(2deg)}}
@keyframes bagLift{0%,100%{transform:translateY(0)}50%{transform:translateY(-2px)}}
@media (prefers-reduced-motion:reduce){
  .majlis-scene-svg *,.majlis-step-badge{animation:none!important;transition:none!important}
}

/* Age-sensitive visual modes for premium scenes */
.prayer-scene-art.age-7-9 .prayer-scene-svg,
.majlis-scene-art.age-7-9 .majlis-scene-svg{filter:saturate(1.08) brightness(1.02);border-radius:22px;box-shadow:0 10px 26px rgba(0,0,0,.07)}
.prayer-scene-art.age-10-12 .prayer-scene-svg,
.majlis-scene-art.age-10-12 .majlis-scene-svg{filter:saturate(1) contrast(1.01);border-radius:20px;box-shadow:0 8px 22px rgba(0,0,0,.06)}
.prayer-scene-art.age-13-16 .prayer-scene-svg,
.majlis-scene-art.age-13-16 .majlis-scene-svg{filter:saturate(.82) contrast(1.06);border-radius:14px;box-shadow:0 10px 28px rgba(16,60,51,.08)}
.prayer-scene-art.age-13-16 .prayer-scene-explain,
.majlis-scene-art.age-13-16 .majlis-scene-explain{border-radius:12px;background:linear-gradient(180deg,#fff,#f7f8f8)}
.prayer-scene-art.age-13-16 .prayer-step-badge,
.majlis-scene-art.age-13-16 .majlis-step-badge{background:#eef0f1;color:#41555b}
.prayer-scene-art.age-13-16 .prayer-step-badge.active,
.majlis-scene-art.age-13-16 .majlis-step-badge.active{background:#163b3f;box-shadow:0 8px 18px rgba(22,59,63,.16)}
.prayer-scene-art.age-13-16 .prayer-scene-caption,
.majlis-scene-art.age-13-16 .majlis-scene-caption{color:#243c40;font-weight:800}
.prayer-etiquette-note.age-13-16,
.scenario-card.age-13-16,
.majlis-scene-card.age-13-16{border-radius:14px}
.prayer-etiquette-note.age-7-9,
.scenario-card.age-7-9,
.majlis-scene-card.age-7-9{border-radius:22px}
.role-choice-hero .eyebrow,.read-majlis-hero .eyebrow{letter-spacing:0}

/* Age-aware reply guide and occasion prep */
.lookup-hero .reply-guide-mini{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 14px}
.lookup-hero .reply-guide-mini span{background:#f4f6f5;border:1px solid rgba(16,60,51,.08);padding:7px 12px;border-radius:999px;font-weight:700;color:#33584c;font-size:.9rem}
.lookup-hero.age-13-16 .reply-guide-mini span{border-radius:12px;background:#f7f8f8;color:#33474c}
.lookup-hero.age-7-9 .reply-guide-mini span{border-radius:999px}
.reply-age-note{margin-top:8px;color:#4e675f;font-size:.92rem;line-height:1.7;background:#f8fbfa;border:1px dashed rgba(16,60,51,.12);padding:10px 12px;border-radius:14px}
.before-mini-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0 16px}
.before-mini-grid>div,.before-check-grid>div{background:#f8fbfa;border:1px solid rgba(16,60,51,.08);padding:12px 14px;border-radius:16px}
.before-mini-grid b,.before-check-grid b{display:block;margin-bottom:4px;color:#123f35}
.before-mini-grid span,.before-check-grid span{display:block;color:#5d7269;line-height:1.7}
.before-age-13-16 .before-mini-grid>div{border-radius:12px;background:#f7f8f8}
.before-age-7-9 .before-mini-grid>div{border-radius:18px}
.before-result-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.before-result-head p{margin:0;color:#587067}
.before-result.age-13-16{border-radius:14px}
.before-result.age-7-9{border-radius:20px}
@media (max-width:720px){.before-mini-grid{grid-template-columns:1fr}}

/* Age-aware debrief and real-world mission */
.after-reflect-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0 18px}
.after-reflect-grid>div{padding:12px 14px;border:1px solid rgba(16,60,51,.08);background:#f8fbfa;border-radius:16px}
.after-reflect-grid b,.after-reflect-grid span{display:block}.after-reflect-grid b{color:#173f36;margin-bottom:4px}.after-reflect-grid span{color:#5d7169;line-height:1.6}
.after-age-13-16 .after-reflect-grid>div{border-radius:12px;background:#f7f8f8}
.after-age-7-9 .after-reflect-grid>div{border-radius:20px}
.mission-main-card{position:relative;overflow:hidden}
.mission-progress-visual{display:grid;grid-template-columns:auto 1fr auto 1fr auto;align-items:center;gap:8px;margin:18px 0 16px}
.mission-progress-visual span{width:32px;height:32px;border-radius:999px;display:grid;place-items:center;background:#edf2ef;color:#547067;font-weight:900;z-index:1}
.mission-progress-visual span.done{background:#174a3c;color:#fff}
.mission-progress-visual i{height:2px;background:linear-gradient(90deg,#d9e4df,#aac2b7)}
.mission-progress-visual small{grid-column:1/-1;color:#64746e;margin-top:4px}
.mission-witness-card{margin-top:14px;background:var(--surface-2,#2b2418);color:#fff}
.mission-witness-card p{margin:0;font-size:14px;opacity:.78}
.mission-age-13-16 .mission-main-card,.mission-age-13-16 .mission-note-card{border-radius:14px}
.mission-age-13-16 .mission-progress-visual span{border-radius:10px;background:#edf0f0;color:#405459}.mission-age-13-16 .mission-progress-visual span.done{background:#153c40;color:#fff}
.mission-age-7-9 .mission-main-card,.mission-age-7-9 .mission-note-card{border-radius:22px}
@media(max-width:720px){.after-reflect-grid{grid-template-columns:1fr}}

/* Professional generated scene art */
.professional-scene-photo{position:relative;overflow:hidden;border-radius:20px;min-height:320px;background:#e8efec;box-shadow:0 16px 36px rgba(17,52,45,.12)}
.professional-scene-photo img{width:100%;height:100%;min-height:320px;max-height:480px;object-fit:cover;display:block;animation:sceneKenBurns 8s ease-in-out infinite alternate}
.professional-scene-photo.age-7-9{border-radius:24px}
.professional-scene-photo.age-10-12{border-radius:20px}
.professional-scene-photo.age-13-16{border-radius:14px;box-shadow:0 18px 40px rgba(10,33,29,.16)}
.professional-scene-shade{position:absolute;inset:auto 14px 14px 14px;background:rgba(19,55,47,.88);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);color:#fff;border-radius:16px;padding:12px 14px;display:grid;gap:3px}
.professional-scene-shade span{font-size:.82rem;opacity:.82}
.professional-scene-shade b{font-size:1rem;line-height:1.65}
.age-13-16 .professional-scene-shade{border-radius:10px;background:rgba(21,49,48,.9)}
@keyframes sceneKenBurns{from{transform:scale(1.01) translateY(0)}to{transform:scale(1.045) translateY(-4px)}}
@media (max-width:720px){.professional-scene-photo,.professional-scene-photo img{min-height:280px;max-height:380px}.professional-scene-shade{inset:auto 10px 10px 10px;padding:10px 12px}}
@media (prefers-reduced-motion:reduce){.professional-scene-photo img{animation:none!important}}

/* v0.18.13 — progress, family loop, prayer chat */
.growth-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0 20px}
.growth-strip>div{background:#f7faf8;border:1px solid rgba(18,63,53,.08);border-radius:16px;padding:14px;text-align:center;display:grid;gap:3px}
.growth-strip b{font-size:1.25rem;color:#173f36}.growth-strip small{color:#61756d}.growth-strip .needs b{font-size:1rem;line-height:1.5}
.points-soft{margin:10px 0 16px;padding:8px 12px;border-radius:999px;background:#f5f6f3;color:#6a726b;font-size:.86rem;display:inline-block}
.home-action-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0 20px}
.family-loop-card{border:0;background:linear-gradient(135deg,#173f36,#245a4f);color:#fff;border-radius:18px;padding:16px;display:grid;grid-template-columns:auto 1fr;gap:12px;text-align:right;align-items:start;cursor:pointer;box-shadow:0 12px 28px rgba(23,63,54,.12)}
.family-loop-card.heritage{background:linear-gradient(135deg,#5b4630,#806548)}.family-loop-card>span{font-size:1.4rem}.family-loop-card div{display:grid;gap:4px}.family-loop-card small,.family-loop-card em{opacity:.78;font-style:normal}.family-loop-card b{font-size:1.05rem}
.family-module-hero{background:linear-gradient(135deg,#f8fbfa,#eef4f1);border:1px solid rgba(18,63,53,.08);border-radius:22px;padding:22px;margin-bottom:16px}.family-module-hero h2{margin:6px 0}.family-module-hero p{margin:0;color:#5d7169;line-height:1.8}.family-module-hero.heritage-family{background:linear-gradient(135deg,#fbf8f3,#f4eee5)}
.teach-card blockquote{font-size:1.2rem;line-height:1.9;margin:12px 0;padding:0;border:0}.teach-actions{display:flex;gap:10px;flex-wrap:wrap}.teach-actions .live{background:#7d2d2d;color:#fff}
.heritage-family-list{display:grid;gap:12px}.heritage-family-row{display:flex;justify-content:space-between;gap:14px;align-items:center}.heritage-family-row>div:first-child{flex:1}.heritage-family-row p{margin:5px 0;color:#66766e}.heritage-family-row>div:last-child{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.heritage-child-row{width:100%;display:grid;grid-template-columns:auto 1fr;gap:12px;text-align:right;border:1px solid rgba(98,74,48,.1);cursor:pointer}.heritage-child-row>span{font-size:1.5rem;color:#7c6042}.heritage-child-row p{margin:5px 0;color:#66766e}.heritage-child-row small{color:#8a7967}
.prayer-life-loop{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}.prayer-life-loop button{border:1px solid rgba(18,63,53,.08);background:#fff;border-radius:18px;padding:16px;text-align:right;display:grid;gap:4px;cursor:pointer}.prayer-life-loop span{color:#1d6554;font-size:.84rem;font-weight:800}.prayer-life-loop b{font-size:1rem;color:#223d36}.prayer-life-loop em{font-style:normal;color:#718078;font-size:.84rem}
.prayer-mode-switch{display:flex;gap:8px;flex-wrap:wrap}.prayer-mode-switch button{flex:1;min-width:120px}
.prayer-focus-list{display:grid;gap:9px;margin:12px 0}.prayer-focus-list button{border:1px solid rgba(18,63,53,.1);background:#f7faf8;border-radius:14px;padding:13px 14px;text-align:right;font-weight:800;color:#214a40;cursor:pointer}
.prayer-chat{padding:16px}.prayer-chat-chips{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}.prayer-chat-chips button{border:1px solid rgba(18,63,53,.1);background:#f7faf8;color:#214a40;border-radius:999px;padding:8px 12px;font-weight:800;cursor:pointer}.prayer-chat-history{display:grid;gap:8px;max-height:420px;overflow:auto;padding:4px 2px 12px}.prayer-chat-history .msg{padding:11px 13px;border-radius:14px;line-height:1.7;background:#f4f6f5}.prayer-chat-history .msg.child{background:#173f36;color:#fff}.prayer-chat-history .msg strong{display:block;font-size:.78rem;opacity:.7;margin-bottom:2px}.proposal-card{margin-bottom:16px;border-inline-start:4px solid #b88a4d}.proposal-card .btn{margin-inline-end:8px}
@media(max-width:720px){.growth-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.home-action-pair,.prayer-life-loop{grid-template-columns:1fr}.heritage-family-row{align-items:flex-start;flex-direction:column}.prayer-mode-switch button{min-width:0;font-size:.88rem;padding-inline:8px}}

/* v0.18.13 safety flow — شاشة واضحة بدل toast */
.safety-alert-panel{text-align:center;padding:4px 2px}.safety-alert-icon{display:grid;place-items:center;width:58px;height:58px;border-radius:50%;margin:0 auto 10px;background:#8b3d32;color:#fff;font:700 30px var(--font-ar)}.safety-alert-panel h3{font-family:var(--font-ar);font-size:21px;line-height:1.65;margin:8px 0}.safety-alert-panel>p{color:var(--muted);line-height:1.9}.safety-alert-steps{display:grid;gap:8px;text-align:right;margin:16px 0}.safety-alert-steps>div{display:grid;grid-template-columns:34px 1fr;gap:10px;align-items:center;background:#fff7f3;border:1px solid #ead0c8;border-radius:14px;padding:10px}.safety-alert-steps b{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#8b3d32;color:#fff}.safety-alert-panel .btn{margin-top:8px}.guardian-safety-banner{display:grid;grid-template-columns:48px 1fr auto;gap:12px;align-items:center;background:#fff4ef;border:1px solid #e6bfb5;border-radius:18px;padding:14px;margin-bottom:14px}.guardian-safety-banner>span{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#8b3d32;color:#fff;font:700 24px var(--font-ar)}.guardian-safety-banner small,.guardian-safety-banner em{display:block;color:#7b625d}.guardian-safety-banner b{display:block;margin:3px 0}.guardian-safety-banner button{border:0;border-radius:12px;padding:10px 14px;background:#2c5148;color:#fff;font-weight:700}@media(max-width:640px){.guardian-safety-banner{grid-template-columns:42px 1fr}.guardian-safety-banner button{grid-column:1/-1;width:100%}}

/* v0.18.14 — حساب عائلة متعدد الأبناء + الروابط النظامية */
.auth-legal,.legal-footer{display:flex;gap:8px;flex-wrap:wrap;align-items:center;justify-content:center;color:var(--muted);font-size:12px;margin-top:14px}
.auth-legal a,.legal-footer a{color:inherit;text-decoration:underline;text-underline-offset:3px}
.family-children-card{background:var(--panel);border:1px solid var(--line);border-radius:20px;padding:16px;margin:16px 0}
.family-children-card .section-head{margin:0 0 10px;align-items:center}
.family-children-card .section-head .btn{width:auto;white-space:nowrap}
.family-child-list{display:grid;gap:8px}
.family-child-row{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:15px;padding:7px;background:var(--panel)}
.family-child-row.active{border-color:#4d8b72;box-shadow:0 0 0 2px rgba(77,139,114,.08) inset;background:#f3f8f5}
.family-child-main{flex:1;border:0;background:transparent;text-align:start;display:flex;align-items:center;gap:10px;padding:4px;cursor:pointer;color:inherit}
.family-child-main b,.family-child-main small{display:block}.family-child-main small{color:var(--muted);margin-top:2px}
.family-child-avatar{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:#e8f2ec;color:#315f4d;font-weight:800}
.icon-mini{border:1px solid var(--line);background:var(--panel);border-radius:11px;min-width:38px;height:38px;cursor:pointer}
@media(max-width:620px){.family-children-card .section-head{align-items:flex-start}.family-children-card .section-head .btn{font-size:12px;padding:8px 10px}.legal-footer{line-height:1.8}}

/* v0.18.14 — family credentials & recovery */
.family-credential-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}.family-credential-grid>div,.recovery-once{border:1px solid var(--line,#ded7ca);border-radius:18px;padding:14px;background:rgba(255,255,255,.05)}.family-credential-grid small,.recovery-once small{display:block;margin-bottom:7px;opacity:.75}.recovery-code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.11em;font-size:clamp(18px,5vw,28px);direction:ltr}.recovery-link{margin-top:8px;width:100%;text-align:center}.auth-note b{font-weight:800}@media(max-width:620px){.family-credential-grid{grid-template-columns:1fr}.recovery-code{letter-spacing:.08em}}

/* v0.18.19 — الحوار والصوت والتجدد */
.daily-session-home{width:100%;border:1px solid rgba(18,124,100,.18);background:linear-gradient(135deg,#f7fffb,#eef8f4);border-radius:22px;padding:16px 18px;margin:16px 0 12px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;text-align:right;box-shadow:0 10px 28px rgba(30,92,75,.08);cursor:pointer;color:var(--ink,#16302a)}
.daily-session-home>span{width:48px;height:48px;border-radius:16px;display:grid;place-items:center;background:#0e8066;color:#fff;font-size:23px}.daily-session-home div{display:grid;gap:2px}.daily-session-home small{color:#6b7c76;font-size:12px}.daily-session-home b{font-size:19px}.daily-session-home em{font-style:normal;color:#53665f;font-size:13px}.daily-session-home>i{font-style:normal;font-weight:800;color:#0e8066;white-space:nowrap}
.daily-session-shell{max-width:900px;margin:0 auto}.daily-session-head{margin-bottom:16px}.daily-session-head h2{margin:5px 0 7px;font-size:30px}.daily-session-head p{margin:0;color:var(--muted,#66736f)}
.session-loading{min-height:180px;display:grid;place-items:center;align-content:center;gap:12px}.session-progress{font-size:12px;font-weight:800;color:#0e8066;margin-bottom:10px}.daily-greet{text-align:center;padding:28px}.daily-greet>span{display:grid;place-items:center;width:58px;height:58px;margin:0 auto 12px;border-radius:20px;background:#eaf7f2;color:#0e8066;font-size:26px}.daily-greet h3{font-size:23px;margin:6px auto;max-width:620px}.daily-greet p{color:#687873}
.checkin-actions,.review-grade{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:16px}.checkin-actions button,.review-grade button{border:1px solid #d6e4df;background:#fff;border-radius:15px;padding:12px;font-weight:800;color:#234139;cursor:pointer}.checkin-actions button:hover,.review-grade button:hover{border-color:#0e8066;background:#f0faf6}
.daily-review-card{padding:24px}.daily-review-card h3{font-size:24px}.review-answer{background:#f3f8f6;border:1px solid #dce9e4;border-radius:18px;padding:16px;margin:16px 0;display:grid;gap:5px}.review-answer small{color:#72817c}.review-answer b{font-size:18px;line-height:1.7}.self-check{font-size:13px;color:#6b7b76}
.daily-learn-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:14px}.learn-tile{padding:20px}.learn-tile small{font-weight:800;color:#0e8066}.learn-tile h3{margin:8px 0;font-size:24px}.learn-tile p{margin:0 0 7px;line-height:1.7}.learn-tile em{font-style:normal;color:#657570;font-size:13px;line-height:1.65;display:block}
.daily-choice>h3{margin-bottom:4px}.daily-choice>p{color:#687873}.daily-choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.daily-choice-card{border:1px solid #dce8e4;background:#fff;border-radius:20px;padding:18px;text-align:right;display:grid;gap:7px;min-height:178px;cursor:pointer;box-shadow:0 8px 24px rgba(24,76,63,.06)}.daily-choice-card:hover{border-color:#0e8066;transform:translateY(-1px)}.daily-choice-card>span{font-size:27px}.daily-choice-card>b{font-size:18px}.daily-choice-card>em{font-style:normal;color:#51665f;font-size:13px}.daily-choice-card>small{margin-top:auto;color:#72847e;font-size:11px;line-height:1.5}
.daily-mission-offer{padding:24px}.daily-mission-offer h3{font-size:23px;line-height:1.7}.mission-offer-actions{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.chosen-mini{display:flex;align-items:center;gap:10px;background:#f5f9f7;border-radius:16px;padding:12px}.chosen-mini>span{font-size:23px}.chosen-mini div{display:grid}.chosen-mini small{color:#72817c}
.daily-close{text-align:center;padding:28px}.daily-done{display:grid;place-items:center;width:62px;height:62px;margin:0 auto 12px;background:#0e8066;color:#fff;border-radius:50%;font-size:30px;font-weight:900}.daily-close h3{font-size:25px;margin:8px}.attendance-soft{display:grid;place-items:center;background:#f4faf7;border-radius:18px;padding:14px;margin:18px auto;max-width:360px}.attendance-soft b{font-size:30px;color:#0e8066}.attendance-soft span{font-weight:800}.attendance-soft small{color:#73817d;margin-top:4px}.daily-close .btn{margin:5px}
@media(max-width:760px){.daily-choice-grid{grid-template-columns:1fr}.daily-learn-grid{grid-template-columns:1fr}.checkin-actions,.review-grade{grid-template-columns:1fr}.daily-session-home{grid-template-columns:auto 1fr}.daily-session-home>i{grid-column:2}.daily-session-head h2{font-size:26px}.daily-review-card h3,.daily-mission-offer h3{font-size:20px}}

/* v0.18.19 — مراجعة الحزم اليومية */
.queue-review-card{align-items:flex-start}.daily-review{margin-top:10px;border:1px solid var(--line);border-radius:14px;background:#faf7f1;padding:10px 12px}.daily-review summary{cursor:pointer;font-weight:800;color:var(--brown)}.daily-review-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}.daily-review-grid>div{background:#fff;border:1px solid var(--line);border-radius:12px;padding:10px}.daily-review-grid b,.daily-review-grid p,.daily-review-grid small{display:block}.daily-review-grid p{margin:5px 0;line-height:1.7}.daily-review-grid small{color:var(--muted);line-height:1.6}.soft-sep{border:0;border-top:1px solid var(--line);margin:14px 0}@media(max-width:700px){.daily-review-grid{grid-template-columns:1fr}.queue-review-card{display:block}.queue-review-card .admin-actions{margin-top:10px}}


/* ===== v0.18.21 — دهشة هادئة: SVG + نجدية خفيفة + لحظة إنجاز ===== */
.ui-svg{width:1.35em;height:1.35em;display:block;pointer-events:none}.ui-svg.sm{width:1.05em;height:1.05em}.ui-svg.xl{width:1.75em;height:1.75em}
.nav-item [data-ui-icon],.bottom-nav-item [data-ui-icon]{display:grid;place-items:center}.nav-item .ui-svg,.bottom-nav-item .ui-svg{width:20px;height:20px}
.icon-btn .ui-svg{width:21px;height:21px}.points-pill .ui-svg{width:17px;height:17px}
.daily-session-home>span .ui-svg,.signature-card>span .ui-svg,.tg-ico .ui-svg,.daily-choice-card>span .ui-svg{width:27px;height:27px}
.knowledge-shortcuts button>span .ui-svg,.account-main-action>span .ui-svg{width:22px;height:22px}

/* زخرفة نجدية مجردة وخفيفة — هوية لا إطار ثقيل */
.najdi-daily-frame{position:relative;isolation:isolate;border:1px solid #dfcfb4;border-radius:24px;padding:21px 18px 18px;background:linear-gradient(180deg,#fffdf8,#fbf7ef);overflow:hidden}
.najdi-daily-frame:before,.najdi-knowledge-grid:before{content:'';position:absolute;top:0;left:26px;right:26px;height:6px;opacity:.5;background:repeating-linear-gradient(90deg,#6d4528 0 8px,transparent 8px 13px,#c79a52 13px 21px,transparent 21px 27px);border-radius:0 0 7px 7px}
.najdi-daily-frame:after{content:'';position:absolute;left:17px;top:15px;width:10px;height:10px;border:1.5px solid #b58a4e;transform:rotate(45deg);opacity:.5}
.najdi-title{display:inline-flex;align-items:center;gap:7px;color:#76522d;background:#f5ead8;border:1px solid #ead9bc;border-radius:999px;padding:6px 10px;margin:0 0 13px;font-size:11px}
.najdi-knowledge-grid{position:relative;padding-top:12px}
.najdi-knowledge-grid:before{left:18px;right:18px;height:5px;top:0;opacity:.34}

/* ترحيب يومي قصير باسم الطفل */
.welcome-moment{position:fixed;inset:0;z-index:120;display:grid;place-items:center;padding:24px;background:rgba(31,24,16,.3);backdrop-filter:blur(7px);opacity:0;pointer-events:none;transition:opacity .32s ease}
.welcome-moment.show{opacity:1}.welcome-moment.leaving{opacity:0}
.welcome-card{width:min(520px,92vw);position:relative;overflow:hidden;text-align:center;background:#fffaf1;color:#2a2017;border:1px solid #dfc89f;border-radius:30px;padding:38px 28px 31px;box-shadow:0 30px 80px rgba(39,27,15,.24);transform:translateY(14px) scale(.97);opacity:.5;transition:transform .5s cubic-bezier(.2,.85,.2,1),opacity .4s ease}
.welcome-moment.show .welcome-card{transform:translateY(0) scale(1);opacity:1}.welcome-moment.leaving .welcome-card{transform:translateY(-8px) scale(.985);opacity:.2}
.welcome-card>small{color:#8a643a;font-weight:800;letter-spacing:.02em}.welcome-card h2{font-size:clamp(28px,7vw,42px);line-height:1.45;margin:9px 0 5px}.welcome-card p{margin:0;color:#786d60;font-size:14px}
.welcome-ornament{height:18px;display:flex;align-items:center;justify-content:center;gap:7px;margin-bottom:12px}.welcome-ornament i{display:block;width:11px;height:11px;border:1.8px solid #9d7543;transform:rotate(45deg);opacity:.75}.welcome-ornament i:nth-child(2),.welcome-ornament i:nth-child(4){width:7px;height:7px;background:#d8b876;border-color:#d8b876}

/* لحظة الإنجاز قصيرة وغير معطلة */
.achievement-moment{position:fixed;inset:0;z-index:125;display:grid;place-items:center;padding:24px;pointer-events:none;opacity:0;transition:opacity .22s ease;background:radial-gradient(circle at center,rgba(72,96,68,.11),transparent 45%)}
.achievement-moment.show{opacity:1}.achievement-moment.leaving{opacity:0}
.achievement-card{width:min(360px,86vw);text-align:center;background:rgba(255,253,248,.97);border:1px solid #d8c7a9;border-radius:28px;padding:24px 22px 22px;box-shadow:0 26px 70px rgba(48,36,23,.2);transform:scale(.82) translateY(18px);transition:transform .45s cubic-bezier(.16,1,.3,1);position:relative;overflow:hidden}
.achievement-moment.show .achievement-card{transform:scale(1) translateY(0)}
.achievement-mark{width:64px;height:64px;margin:0 auto 10px;border-radius:50%;display:grid;place-items:center;background:#e8f2e3;color:#3e6740;box-shadow:0 0 0 8px rgba(73,96,68,.07)}
.achievement-card small{display:block;color:#8a6b43;font-weight:800}.achievement-card b{display:block;font-size:24px;line-height:1.45;margin:4px 0}.achievement-card p{margin:0;color:#766c60;line-height:1.7;font-size:13px}.achievement-card>i{position:absolute;width:9px;height:9px;border:1.5px solid #c99c53;transform:rotate(45deg);top:18px;left:20px;opacity:.65}
.life-done>span .ui-svg,.daily-done .ui-svg{width:34px;height:34px}

@media(max-width:700px){.welcome-card{border-radius:25px;padding:31px 20px 26px}.achievement-card{border-radius:24px}.najdi-daily-frame{padding:19px 13px 15px}}
@media(prefers-reduced-motion:reduce){.welcome-moment,.welcome-card,.achievement-moment,.achievement-card{transition:none!important}.welcome-card,.achievement-card{transform:none!important}}


/* ===== v0.18.21 — خط عربي فعلي + fallback لصوت الترحيب ===== */
.brand strong,.auth-brand strong,.topbar h1,.hero h2,.section-head h3,.question-card h2,.welcome-card h2,.achievement-card b,.daily-session-head h2,.daily-review-card h3,.daily-mission-offer h3{font-family:var(--font-display)!important}
.welcome-moment.audio-choice{pointer-events:auto}
.welcome-audio-btn{margin-top:16px;border:1px solid #d8c3a1;background:#fff;color:#5b3a21;border-radius:999px;min-height:43px;padding:9px 17px;font-family:var(--font-ar);font-weight:800;font-size:13px;display:inline-flex;align-items:center;justify-content:center;gap:7px;box-shadow:0 5px 16px rgba(67,46,24,.08)}
.welcome-audio-btn:disabled{opacity:.65;cursor:default}
.welcome-audio-note{display:block;margin-top:7px;color:#8b7b68;font-size:10px}

/* ===== v0.18.22 — ثابت: مستوى يختاره ولي الأمر وجلسة محدودة ===== */
.steady-level-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0}
.steady-level-card{width:100%;text-align:right;cursor:pointer;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}
.steady-level-card:hover:not(:disabled){transform:translateY(-1px);border-color:#9eb09a}
.steady-level-card.active{border-color:#607d61;box-shadow:inset 0 0 0 2px rgba(96,125,97,.12);background:#f3f7f1}
.steady-level-card:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:720px){.steady-level-grid{grid-template-columns:1fr}}
