/* PREMIUM FOLDER ONLY - free KidoLearning files are not changed */
:root{--premium-purple:#6c3ff1;--premium-purple2:#955cf7;--premium-gold:#ffb800;--premium-ink:#071747;--premium-muted:#556089;--premium-card:#fff;--premium-soft:#f2ecff;}
body:has(.premium-page),body:has(.premium-area-page){background:linear-gradient(135deg,#fbfaff 0%,#f1ebff 48%,#fff7df 100%);min-height:100vh;}
.premium-page,.premium-area-page{font-family:'Poppins',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--premium-ink);}
.floating-home{transform:scale(.88);}
.premium-page{width:min(1140px,94vw);margin:0 auto;padding:26px 0 44px;}
.premium-hero{min-height:360px;display:grid;grid-template-columns:1.08fr .82fr;gap:34px;padding:38px;align-items:center;border-radius:34px;background:radial-gradient(circle at 16% 10%,rgba(255,255,255,.30),transparent 22%),linear-gradient(135deg,#6c3ff1,#8d5bf3 48%,#ffb800);color:#fff;box-shadow:0 22px 50px rgba(108,63,241,.26);position:relative;overflow:hidden;}
.premium-hero:before,.premium-area-hero:before{content:"";position:absolute;inset:-70px;background-image:radial-gradient(circle,rgba(255,255,255,.35) 0 3px,transparent 4px);background-size:42px 42px;opacity:.35;}.premium-hero>*{position:relative;z-index:1}
.premium-hero h1{font-size:clamp(46px,5.2vw,76px);letter-spacing:-2.5px;line-height:.95;margin:0 0 16px;text-wrap:balance;}.premium-hero p{font-size:clamp(16px,1.3vw,20px);font-weight:900;max-width:720px;line-height:1.35;}
.premium-kido-cloud{max-width:330px;margin:0 auto 14px;display:grid;grid-template-columns:repeat(3,1fr);gap:10px;}.premium-kido-cloud img{width:82px;height:82px;border:4px solid white;border-radius:50%;box-shadow:0 12px 20px rgba(20,31,75,.16);background:#fff;}
.price-card{max-width:390px;margin:0 auto;padding:24px 24px 22px;border-radius:28px;background:rgba(255,255,255,.96);text-align:center;color:var(--premium-ink);box-shadow:0 18px 34px rgba(20,31,75,.16);}.badge{display:inline-flex;border-radius:999px;background:rgba(255,255,255,.18);padding:8px 13px;font-weight:900;margin-bottom:14px;}.price-card .badge{background:#fff0b8;color:#6b4a00}.price{font-size:48px;color:var(--premium-purple);font-weight:900;line-height:1}.price small{font-size:16px;color:#556089}.price-card p{font-size:16px!important;line-height:1.25!important;margin:8px auto 16px!important;color:var(--premium-ink)!important;font-weight:800!important;}
.premium-test-btn{appearance:none;border:0;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:190px;min-height:54px;padding:14px 26px;border-radius:999px;background:linear-gradient(135deg,#6c3ff1,#9b6cff);color:#fff;font-weight:900;font-size:16px;box-shadow:0 13px 26px rgba(108,63,241,.32), inset 0 -3px 0 rgba(0,0,0,.10);cursor:pointer;}.premium-test-btn:before{content:'🔐';font-size:18px}.premium-test-btn:hover{transform:translateY(-2px) scale(1.02)}
.premium-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:22px}.premium-feature{min-height:140px;padding:24px;background:#fff;border-radius:26px;box-shadow:0 14px 30px rgba(20,31,75,.09);border:2px solid rgba(108,63,241,.07);display:grid;gap:8px}.premium-feature b{font-size:24px}.premium-feature strong{font-size:19px}.premium-feature span{font-size:14.5px;color:#4d5980;font-weight:800;}
.premium-unlock-modal{position:fixed;inset:0;z-index:9999;display:none;align-items:center;justify-content:center;padding:22px;background:rgba(12,13,36,.48);backdrop-filter:blur(10px);}.premium-unlock-modal.show{display:flex}.premium-unlock-card{width:min(440px,92vw);position:relative;background:rgba(255,255,255,.98);border-radius:28px;padding:32px 28px 30px;text-align:center;border:4px solid rgba(108,63,241,.16);box-shadow:0 28px 80px rgba(12,13,36,.32)}.premium-close{position:absolute;right:16px;top:14px;width:34px;height:34px;border:0;border-radius:50%;background:#f2ecff;color:var(--premium-purple);font-size:24px;font-weight:900;cursor:pointer;line-height:1}.premium-lock-emoji{font-size:42px;margin-bottom:8px}.premium-unlock-card h2{margin:0 0 10px;color:var(--premium-purple);font-size:28px;line-height:1.05;font-weight:900}.premium-unlock-card p{margin:0 auto 18px;max-width:320px;color:#263a78;font-weight:800;line-height:1.35}#premiumPassInput{width:100%;height:58px;border:3px solid var(--premium-purple);border-radius:16px;text-align:center;font-size:18px;font-weight:900;color:var(--premium-ink);outline:none;background:#fff;box-sizing:border-box}#premiumPassSubmit{width:100%;border:0;border-radius:999px;margin-top:12px;padding:16px 18px;background:linear-gradient(135deg,#6c3ff1,#a36cf8);color:white;font-weight:900;font-size:16px;cursor:pointer;box-shadow:0 12px 26px rgba(108,63,241,.30)}.premium-pass-message{min-height:24px;margin-top:10px;font-weight:900}.premium-pass-message.good{color:#0f9b4f}.premium-pass-message.bad{color:#e03a4e}
.premium-area-page{width:min(1220px,94vw);margin:0 auto;padding:28px 0 44px;color:var(--premium-ink)}.premium-area-hero{border-radius:34px;padding:38px;background:radial-gradient(circle at 16% 10%,rgba(255,255,255,.30),transparent 22%),linear-gradient(135deg,#6c3ff1,#8d5bf3 48%,#ffb800);color:#fff;display:grid;grid-template-columns:1.1fr .55fr;gap:28px;align-items:center;box-shadow:0 22px 50px rgba(108,63,241,.26);position:relative;overflow:hidden}.premium-area-hero>*{position:relative;z-index:1}.premium-area-hero h1{font-size:clamp(44px,5vw,76px);line-height:.98;margin:0 0 16px;letter-spacing:-2px}.premium-area-hero p{font-weight:800;font-size:18px;max-width:760px;line-height:1.4}.premium-hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:20px}.premium-hero-actions a{background:white;color:var(--premium-purple);text-decoration:none;border-radius:999px;padding:13px 20px;font-weight:900}.premium-hero-actions a.soft{background:rgba(255,255,255,.18);color:white;border:2px solid rgba(255,255,255,.45)}.premium-stats-card{background:rgba(255,255,255,.96);color:var(--premium-ink);border-radius:28px;padding:26px;display:grid;gap:5px;box-shadow:0 18px 34px rgba(20,31,75,.15)}.premium-stats-card strong{font-size:44px;color:var(--premium-purple);line-height:1}.premium-stats-card span{font-weight:800;color:var(--premium-muted);margin-bottom:8px}
.premium-section-title{display:flex;align-items:end;justify-content:space-between;gap:16px;margin:28px 0 14px}.premium-section-title h2{font-size:34px;margin:0;color:var(--premium-ink)}.premium-section-title p{margin:4px 0 0;font-weight:800;color:var(--premium-muted)}.premium-section-title span{font-size:30px}
.premium-controls-row{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;align-items:end;margin:18px 0}.premium-control-box{background:rgba(255,255,255,.72);border:2px solid rgba(108,63,241,.08);border-radius:22px;padding:14px 16px}.premium-control-box.wide{flex:1;min-width:380px}.premium-control-box small{display:block;color:#556089;font-weight:900;margin-bottom:8px}.premium-grade-tabs,.month-tabs,.lang-tabs{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.premium-grade-tabs button,.month-tabs button,.lang-tabs button{border:0;border-radius:999px;padding:10px 15px;background:#fff;color:var(--premium-ink);font-weight:900;box-shadow:0 8px 18px rgba(20,31,75,.08);cursor:pointer}.premium-grade-tabs button.active,.month-tabs button.active,.lang-tabs button.active{background:linear-gradient(135deg,#6c3ff1,#9b6cff);color:#fff}
.curriculum-shell{display:grid;grid-template-columns:320px 1fr;gap:18px}.curriculum-map,.subject-card,.premium-panel,.roadmap-grid article{background:#fff;border-radius:26px;padding:24px;box-shadow:0 14px 30px rgba(20,31,75,.09);border:2px solid rgba(108,63,241,.07)}.curriculum-map h3{margin:0 0 8px;font-size:26px}.curriculum-map p{color:var(--premium-muted);font-weight:800}.path-steps{display:grid;gap:10px;margin-top:18px}.path-step{display:flex;align-items:center;gap:10px;background:#f4efff;border-radius:16px;padding:10px;font-weight:900}.path-step b{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:var(--premium-purple);color:white}.subject-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.subject-head{display:flex;align-items:center;gap:10px}.subject-head span{font-size:32px}.subject-card h3{margin:0;font-size:22px}.subject-card ul{padding-left:22px;color:var(--premium-muted);font-weight:800;line-height:1.55}.subject-card button,.premium-panel button,.subject-card .start-link{border:0;border-radius:999px;padding:12px 18px;background:linear-gradient(135deg,#6c3ff1,#9b6cff);color:#fff;font-weight:900;cursor:pointer;display:inline-flex;text-decoration:none}.month-focus-card{background:#fff;border-radius:26px;padding:20px;box-shadow:0 14px 30px rgba(20,31,75,.09);border:2px solid rgba(108,63,241,.07);margin-top:16px}.month-focus-card h3{margin:0 0 8px;font-size:22px}.month-focus-card p,.month-focus-card li{font-weight:800;color:#556089}.premium-dashboard-grid{display:grid;grid-template-columns:1.15fr 1fr 1fr;gap:16px;margin-top:18px}.premium-panel.big{grid-row:span 2}.premium-panel h2{margin:0 0 12px}.premium-panel p,.premium-panel li{color:var(--premium-muted);font-weight:800;line-height:1.42}.progress-demo{height:16px;background:#eee6ff;border-radius:999px;overflow:hidden;margin:8px 0}.progress-demo span{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#6c3ff1,#ffb800)}.parent-panel label{display:block;margin-top:14px;font-weight:900}.parent-panel small{font-weight:900;color:#263a78}.reward-badges{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0}.reward-badges span{background:#f4efff;border-radius:999px;padding:8px 12px;font-weight:900;color:#3c2a83}.certificate-modal{position:fixed;inset:0;z-index:10000;display:none;place-items:center;background:rgba(12,13,36,.54);backdrop-filter:blur(9px);padding:20px}.certificate-modal.show{display:grid}.certificate-card{background:#fff;border-radius:28px;padding:24px;width:min(560px,94vw);text-align:center;position:relative}.certificate-close{position:absolute;right:16px;top:14px;border:0;border-radius:50%;width:34px;height:34px;background:#f2ecff;color:var(--premium-purple);font-size:22px;font-weight:900}.certificate-frame{border:4px dashed #ffb800;border-radius:22px;padding:30px;margin-bottom:16px;background:#fffdf2}.certificate-frame h2{font-size:34px;color:var(--premium-purple)}.certificate-frame strong{font-size:32px;color:var(--premium-ink)}.certificate-stars{font-size:30px;margin-top:12px}
.premium-breadcrumb{display:flex;gap:8px;align-items:center;margin:16px 0 22px;font-weight:900}.premium-breadcrumb a{color:#6c3ff1;text-decoration:none}.spell-hero{grid-template-columns:140px 1fr!important}.spell-hero img{width:140px;border-radius:28px;box-shadow:0 16px 30px rgba(108,63,241,.18)}.lesson-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:16px}.lesson-card{background:#fff;border-radius:24px;padding:22px;box-shadow:0 14px 30px rgba(20,31,75,.09);border:2px solid rgba(108,63,241,.07)}.lesson-card h3{margin:0 0 10px;color:#071747}.lesson-card p,.lesson-card li{color:#556089;font-weight:800;line-height:1.45}.lesson-card button{border:0;border-radius:999px;padding:12px 16px;background:linear-gradient(135deg,#6c3ff1,#9b6cff);color:#fff;font-weight:900;cursor:pointer}.practice-box{background:linear-gradient(135deg,#fff8df,#fff1b8);border:2px solid rgba(255,184,0,.25);border-radius:26px;padding:22px;margin-top:18px}.word-chip{display:inline-flex;margin:6px;padding:9px 12px;border-radius:999px;background:#fff;color:#071747;font-weight:900;box-shadow:0 6px 14px rgba(20,31,75,.08)}
@media(max-width:1000px){.premium-hero,.premium-area-hero{grid-template-columns:1fr!important;text-align:center}.premium-kido-cloud{max-width:520px;grid-template-columns:repeat(6,1fr)}.curriculum-shell,.premium-dashboard-grid{grid-template-columns:1fr}.subject-grid{grid-template-columns:repeat(2,1fr)}.premium-control-box.wide{min-width:0;width:100%;}.spell-hero{grid-template-columns:1fr!important}.spell-hero img{margin:auto}}
@media(max-width:640px){.premium-page,.premium-area-page{width:min(94vw,560px);padding-top:18px}.premium-hero,.premium-area-hero{padding:24px;border-radius:28px}.premium-kido-cloud{grid-template-columns:repeat(3,1fr)}.premium-grid,.subject-grid,.lesson-grid{grid-template-columns:1fr!important}.premium-section-title{display:block;text-align:center}.premium-grade-tabs{justify-content:center;margin-top:12px}.premium-hero h1,.premium-area-hero h1{font-size:42px}.price-card{padding:20px}.premium-test-btn{width:100%}}
@media print{.floating-home,.premium-breadcrumb,.premium-area-hero,.premium-controls-row,.lesson-grid,.practice-box,.premium-dashboard-grid{display:none!important}.certificate-modal{display:grid!important;position:static;background:white}.certificate-card{box-shadow:none}}

/* Premium SpellKido full monthly curriculum */
.spellkido-pro-page{padding-bottom:48px}.spellkido-pro-hero{align-items:center}.spell-progress-strip{margin-top:14px;background:rgba(255,255,255,.2);border:1px solid rgba(255,255,255,.35);border-radius:18px;padding:10px 12px;color:#fff;max-width:520px}.spell-progress-strip span{font-weight:900}.spell-progress-strip b{float:right}.spell-progress-strip div{clear:both;height:12px;background:rgba(255,255,255,.34);border-radius:999px;overflow:hidden;margin-top:8px}.spell-progress-strip i{display:block;height:100%;width:0;border-radius:999px;background:linear-gradient(90deg,#fff,#ffdd64)}.sticky-controls{position:sticky;top:0;z-index:20;background:rgba(246,240,255,.88);backdrop-filter:blur(10px);padding:12px;border-radius:24px}.spell-focus-card{display:flex;align-items:center;justify-content:space-between;gap:16px}.spell-focus-card button{border:0;border-radius:999px;background:#fff;color:var(--premium-purple);font-weight:900;padding:12px 16px;box-shadow:0 8px 18px rgba(20,31,75,.08);cursor:pointer}.spell-layout{display:grid;grid-template-columns:320px 1fr;gap:18px;margin-top:18px}.spell-roadmap-card,.spell-workspace{background:#fff;border-radius:28px;padding:22px;box-shadow:0 14px 30px rgba(20,31,75,.09);border:2px solid rgba(108,63,241,.08)}.spell-roadmap-card h2{margin:0 0 14px;color:var(--premium-ink)}#roadmapSteps{display:grid;gap:10px}.road-step{border:0;background:#f3edff;border-radius:18px;padding:12px;text-align:left;display:flex;align-items:center;gap:12px;color:var(--premium-ink);font-weight:900;cursor:pointer}.road-step b{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#fff;color:var(--premium-purple)}.road-step.active{background:linear-gradient(135deg,#6c3ff1,#9b6cff);color:#fff}.road-step.active b{background:#fff;color:#6c3ff1}.road-step.done:not(.active){background:#e8fff0}.road-step.done:not(.active) b{background:#36c76b;color:#fff}.teacher-note{margin-top:18px;background:#fff8de;border-radius:20px;padding:14px;border:2px solid rgba(255,184,0,.2)}.teacher-note b{color:#7b5200}.teacher-note p{font-weight:800;color:#735a1b;margin:6px 0 0}.lesson-tabbar{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}.lesson-tabbar button{border:0;border-radius:999px;padding:10px 13px;background:#f3edff;color:#3b2a83;font-weight:900;cursor:pointer}.lesson-tabbar button.active{background:linear-gradient(135deg,#6c3ff1,#9b6cff);color:white}.lesson-panel h2{font-size:30px;margin:0 0 10px;color:var(--premium-ink)}.lesson-panel p,.lesson-panel li{color:var(--premium-muted);font-weight:800;line-height:1.55}.skill-pills,.word-grid{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.skill-pills span{background:#fff8de;border-radius:999px;padding:9px 12px;color:#7b5200;font-weight:900}.word-grid button{border:0;border-radius:18px;background:#f5fbff;color:#071747;font-weight:900;padding:13px 16px;box-shadow:0 8px 15px rgba(20,31,75,.08);cursor:pointer}.activity-card,.read-card{background:#f8f5ff;border-radius:22px;padding:18px;margin:14px 0;border:2px solid rgba(108,63,241,.08)}.read-card p{font-size:24px;color:#071747}.read-card button,.activity-check,.activity-complete,.spell-certificate-box button{border:0;border-radius:999px;padding:12px 18px;background:linear-gradient(135deg,#6c3ff1,#9b6cff);color:#fff;font-weight:900;cursor:pointer}.activity-complete{background:linear-gradient(135deg,#14b86e,#69d88f);margin-top:10px}.quiz-word{display:flex;gap:16px;align-items:center;margin:14px 0}.quiz-word button{border:0;border-radius:999px;background:#fff4c8;color:#7b5200;font-weight:900;padding:12px 16px}.quiz-word span{font-size:28px;letter-spacing:5px;color:#071747}.spell-input,.writing-box{width:100%;box-sizing:border-box;border:3px solid #e5dcff;border-radius:18px;padding:16px;font-family:Poppins,system-ui;font-size:18px;font-weight:800;outline:none}.spell-input:focus,.writing-box:focus{border-color:#6c3ff1}.writing-box{min-height:160px;resize:vertical}.sentence-starter{font-size:22px;background:#fff8de;border-radius:18px;padding:14px;margin:12px 0;color:#7b5200;font-weight:900}.quiz-result{font-weight:900;color:#263a78}.reward-meter{display:grid;gap:6px;background:#f3edff;border-radius:20px;padding:18px;margin:14px 0;color:#071747}.reward-meter strong{font-size:42px;color:#6c3ff1}.spell-certificate-box{display:flex;align-items:center;justify-content:space-between;gap:18px}.spell-certificate-box h2{margin:0}.spell-certificate-box p{margin:6px 0 0;color:#735a1b;font-weight:900}@media(max-width:900px){.spell-layout{grid-template-columns:1fr}.sticky-controls{position:static}.spell-focus-card,.spell-certificate-box{display:block}.spell-focus-card button,.spell-certificate-box button{margin-top:12px}.lesson-panel h2{font-size:24px}}

/* Premium SpellKido free-quiz style body */
.premium-free-body{background:#fff;border-radius:28px;padding:22px;box-shadow:0 18px 38px rgba(20,31,75,.10);}
.premium-practice-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:14px;}
.premium-practice-head small{color:var(--premium-purple);font-weight:900;text-transform:uppercase;letter-spacing:.04em;}
.premium-practice-head h2{font-size:clamp(24px,3vw,34px);margin:5px 0 0;line-height:1.15;color:var(--premium-ink);}
.premium-practice-head .progress{background:#f0e8ff;color:var(--premium-purple);font-weight:900;padding:10px 16px;border-radius:999px;font-size:20px;}
.premium-quiz-card{background:linear-gradient(135deg,#fff8ec,#fff0fb);border:3px solid #ffd6f0;border-radius:22px;padding:28px 16px;text-align:center;margin:14px 0;}
.premium-word-emoji{font-size:4rem;margin-bottom:8px;}
.premium-tap-text{font-weight:900;color:var(--premium-purple);font-size:18px;margin-bottom:12px;}
.premium-letter-tiles{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;min-height:58px;margin:12px 0 16px;}
.premium-letter-tile{width:46px;height:54px;border-radius:14px;border:3px solid #dbe4ff;background:#fff;display:flex;align-items:center;justify-content:center;font-size:1.35rem;font-weight:900;color:var(--premium-purple);box-shadow:0 8px 14px rgba(20,31,75,.06);}
.premium-letter-tile.correct{background:linear-gradient(135deg,#7c4dff,#9f7bff);border-color:#7c4dff;color:#fff;}
.premium-letter-tile.wrong{background:linear-gradient(135deg,#ef6aa8,#f487bd);border-color:#ef6aa8;color:#fff;}
.premium-letter-tile.empty{background:#fff;color:var(--premium-purple);}
.premium-type-row{display:none;margin:14px auto 8px;max-width:560px;}
.premium-type-row.show{display:block;}
.premium-type-row input{width:100%;box-sizing:border-box;border:3px solid #d9ecff;border-radius:18px;padding:14px 16px;font-size:22px;font-weight:900;outline:none;font-family:Poppins,system-ui,sans-serif;text-align:center;letter-spacing:.22em;}
.premium-type-row input:focus{border-color:var(--premium-purple);}
.premium-mini-stats{display:flex;justify-content:center;gap:28px;margin-top:8px;}
.premium-mini-stats div{text-align:center;}
.premium-mini-stats strong{display:block;font-size:1.35rem;font-weight:900;color:var(--premium-purple);}
.premium-mini-stats span{font-size:11px;font-weight:900;color:#75829b;text-transform:uppercase;}
.premium-free-controls{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:16px;}
.premium-free-controls button{border:none;border-radius:999px;padding:14px 22px;font-weight:900;cursor:pointer;background:#eef6ff;color:var(--premium-purple);font-family:Poppins,system-ui,sans-serif;font-size:16px;}
.premium-free-controls .round-mic{width:64px;height:64px;border-radius:50%;padding:0;display:grid;place-items:center;background:linear-gradient(135deg,var(--premium-purple),#9f7bff);color:white;font-size:28px;box-shadow:0 10px 20px rgba(0,0,0,.14);}
.premium-free-controls .big-start{background:linear-gradient(135deg,var(--premium-purple),#9f7bff);color:#fff;box-shadow:0 10px 20px rgba(108,63,241,.22);}
.premium-free-body .feedback{margin-top:14px;min-height:28px;color:#263a78;font-weight:900;font-size:18px;}
.premium-free-body .feedback.good{color:#16a34a;}
.premium-free-body .feedback.bad{color:#ef4444;}
.month-header{text-align:center;margin-bottom:18px;}
.month-header h2{font-size:clamp(28px,4vw,42px);margin:0;color:var(--premium-ink);}
.month-header p{font-weight:800;color:#586489;margin:8px 0 0;}
.premium-month-group{background:#f8f5ff;border:2px solid rgba(108,63,241,.10);border-radius:22px;padding:16px;margin:12px 0;}
.premium-month-group h3{margin:0 0 10px;color:var(--premium-purple);}
.premium-word-list{display:flex;gap:8px;flex-wrap:wrap;}
.premium-word-list span{background:#fff;border-radius:999px;padding:9px 12px;font-weight:900;color:#071747;box-shadow:0 6px 14px rgba(20,31,75,.06);}
.sentence-review{font-weight:800;color:#263a78;line-height:1.7;font-size:18px;}
.sentence-review strong{color:var(--premium-purple);}
.road-step small{display:block;font-size:11px;line-height:1.25;opacity:.82;margin-top:3px;}
@media(max-width:700px){.premium-practice-head{display:block}.premium-practice-head .progress{display:inline-block;margin-top:10px}.premium-letter-tile{width:38px;height:48px}.premium-free-controls button{width:100%;}.premium-free-controls .round-mic{width:64px;}.premium-mini-stats{gap:18px}}

/* Premium SpellKido polish: free-style home button + help/hint + weekly labels */
.premium-floating-home,
.floating-home{
  position:fixed !important;
  top:16px !important;
  left:16px !important;
  z-index:9999 !important;
  width:42px !important;
  height:42px !important;
  border-radius:50% !important;
  display:grid !important;
  place-items:center !important;
  background:#fff !important;
  color:#7c4dff !important;
  text-decoration:none !important;
  font-size:20px !important;
  font-weight:900 !important;
  box-shadow:0 10px 24px rgba(108,63,241,.18) !important;
  border:2px solid #efe7ff !important;
  transform:none !important;
}
.premium-floating-home:hover,
.floating-home:hover{transform:translateY(-1px) !important;box-shadow:0 14px 28px rgba(108,63,241,.24) !important;}
.premium-free-body{background:#fff;border-radius:28px;padding:26px;box-shadow:0 18px 38px rgba(20,31,75,.10);}
.premium-practice-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:14px;}
.premium-practice-head small{color:var(--premium-purple);font-weight:900;text-transform:uppercase;letter-spacing:.04em;}
.premium-practice-head h2{font-size:clamp(24px,3vw,38px);margin:5px 0 0;line-height:1.15;color:var(--premium-ink);}
.premium-practice-head .progress{background:#f0e8ff;color:var(--premium-purple);font-weight:900;padding:10px 16px;border-radius:999px;font-size:20px;}
.premium-quiz-card{background:linear-gradient(135deg,#fff8ec,#fff0fb);border:3px solid #ffd6f0;border-radius:22px;padding:30px 16px;text-align:center;margin:14px 0;}
.premium-word-emoji{font-size:4rem;margin-bottom:8px;}
.premium-tap-text{font-weight:900;color:var(--premium-purple);font-size:18px;margin-bottom:12px;}
.premium-letter-tiles{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;gap:10px!important;justify-content:center!important;align-items:center!important;min-height:62px;margin:12px 0 16px;}
.premium-letter-tile{width:50px;height:58px;border-radius:14px;border:3px solid #dbe4ff;background:#fff;display:flex;align-items:center;justify-content:center;font-size:1.45rem;font-weight:900;color:var(--premium-purple);box-shadow:0 8px 14px rgba(20,31,75,.06);}
.premium-letter-tile.correct{background:linear-gradient(135deg,#7c4dff,#9f7bff);border-color:#7c4dff;color:#fff;}
.premium-letter-tile.wrong{background:linear-gradient(135deg,#ef6aa8,#f487bd);border-color:#ef6aa8;color:#fff;}
.premium-letter-tile.empty{background:#fff;color:var(--premium-purple);}
.premium-letter-tile.hint{outline:4px solid rgba(255,184,0,.32);}
.premium-type-row{display:none;margin:14px auto 8px;max-width:560px;}
.premium-type-row.show{display:block;}
.premium-type-row input{width:100%;box-sizing:border-box;border:3px solid #d9ecff;border-radius:18px;padding:14px 16px;font-size:22px;font-weight:900;outline:none;font-family:Poppins,system-ui,sans-serif;text-align:center;letter-spacing:.22em;}
.premium-type-row input:focus{border-color:var(--premium-purple);}
.premium-mini-stats{display:flex;justify-content:center;gap:28px;margin-top:8px;}
.premium-mini-stats div{text-align:center;}
.premium-mini-stats strong{display:block;font-size:1.35rem;font-weight:900;color:var(--premium-purple);}
.premium-mini-stats span{font-size:11px;font-weight:900;color:#75829b;text-transform:uppercase;}
.premium-free-controls{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:16px;}
.premium-free-controls button{border:none;border-radius:999px;padding:14px 22px;font-weight:900;cursor:pointer;background:#eef6ff;color:var(--premium-purple);font-family:Poppins,system-ui,sans-serif;font-size:16px;}
.premium-free-controls .round-mic{width:64px;height:64px;border-radius:50%;padding:0;display:grid;place-items:center;background:linear-gradient(135deg,var(--premium-purple),#9f7bff);color:white;font-size:28px;box-shadow:0 10px 20px rgba(0,0,0,.14);}
.premium-free-controls .big-start{background:linear-gradient(135deg,var(--premium-purple),#9f7bff);color:#fff;box-shadow:0 10px 20px rgba(108,63,241,.22);}
.premium-free-body .feedback{margin-top:14px;min-height:28px;color:#263a78;font-weight:900;font-size:18px;}
.premium-free-body .feedback.good{color:#16a34a;}
.premium-free-body .feedback.bad{color:#ef4444;}
.month-header{text-align:center;margin-bottom:18px;}
.month-header h2{font-size:clamp(28px,4vw,42px);margin:0;color:var(--premium-ink);}
.month-header p{font-weight:800;color:#586489;margin:8px 0 0;}
.premium-month-group{background:#f8f5ff;border:2px solid rgba(108,63,241,.10);border-radius:22px;padding:16px;margin:12px 0;}
.premium-month-group h3{margin:0 0 10px;color:var(--premium-purple);}
.premium-month-group h3 span{font-size:14px;color:#6b7395;margin-left:8px;}
.premium-word-list{display:flex;gap:8px;flex-wrap:wrap;}
.premium-word-list span{background:#fff;border-radius:999px;padding:9px 12px;font-weight:900;color:#071747;box-shadow:0 6px 14px rgba(20,31,75,.06);}
.sentence-review{font-weight:800;color:#263a78;line-height:1.7;font-size:18px;}
.sentence-review strong{color:var(--premium-purple);}
.road-step small{display:block;font-size:11px;line-height:1.25;opacity:.82;margin-top:3px;}
@media(max-width:700px){.premium-practice-head{display:block}.premium-practice-head .progress{display:inline-block;margin-top:10px}.premium-letter-tile{width:38px;height:48px}.premium-free-controls button{width:100%;}.premium-free-controls .round-mic{width:64px}.premium-floating-home,.floating-home{width:38px!important;height:38px!important;}}

/* Compact Premium SpellKido controls - latest file only */
.floating-home{
  position:fixed !important;
  top:18px !important;
  left:18px !important;
  width:38px !important;
  height:38px !important;
  border-radius:50% !important;
  display:grid !important;
  place-items:center !important;
  background:#ffffff !important;
  color:#7c4dff !important;
  text-decoration:none !important;
  font-weight:900 !important;
  box-shadow:0 10px 22px rgba(108,63,241,.16) !important;
  z-index:999 !important;
  border:2px solid #efe7ff !important;
}
.premium-free-controls.compact{
  display:flex !important;
  flex-wrap:nowrap !important;
  gap:10px !important;
  align-items:center !important;
  justify-content:flex-start !important;
  overflow-x:auto !important;
  padding-bottom:4px !important;
}
.premium-free-controls.compact button{
  white-space:nowrap !important;
  flex:0 0 auto !important;
  padding:13px 18px !important;
}
.premium-free-controls.compact .round-mic{
  width:62px !important;
  min-width:62px !important;
  height:62px !important;
  padding:0 !important;
}
.premium-free-controls.compact .icon-only{
  width:58px !important;
  min-width:58px !important;
  height:54px !important;
  padding:0 !important;
  font-size:22px !important;
}
@media(max-width:700px){
  .premium-free-controls.compact button{width:auto !important;}
  .premium-free-controls.compact{justify-content:flex-start !important;}
}

/* iPhone / tablet responsive polish for Premium SpellKido */
@media (max-width: 1024px){
  .premium-area-page.spellkido-pro-page{
    width:100% !important;
    max-width:100% !important;
    margin:0 !important;
    padding:10px 10px 22px !important;
    box-sizing:border-box !important;
    overflow-x:hidden !important;
  }
  .premium-breadcrumb,
  .premium-area-hero.spell-hero,
  .month-focus-card.spell-focus-card{
    display:none !important;
  }
  .floating-home,
  .premium-floating-home{
    top:12px !important;
    left:12px !important;
    width:38px !important;
    height:38px !important;
    font-size:18px !important;
  }
  .sticky-controls{
    position:sticky !important;
    top:0 !important;
    z-index:80 !important;
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:10px !important;
    padding:10px !important;
    border-radius:22px !important;
    margin:0 0 12px !important;
    background:rgba(246,240,255,.96) !important;
  }
  .premium-control-box,
  .premium-control-box.wide{
    width:100% !important;
    min-width:0 !important;
    box-sizing:border-box !important;
    padding:10px 12px !important;
  }
  .premium-grade-tabs,
  .month-tabs,
  .lang-tabs{
    flex-wrap:nowrap !important;
    overflow-x:auto !important;
    gap:8px !important;
    padding-bottom:2px !important;
  }
  .premium-grade-tabs button,
  .month-tabs button,
  .lang-tabs button{
    flex:0 0 auto !important;
    padding:10px 14px !important;
  }
  .spell-layout{
    display:block !important;
    margin-top:0 !important;
  }
  .spell-roadmap-card{
    display:none !important;
  }
  .spell-workspace,
  .premium-free-body{
    width:100% !important;
    max-width:100% !important;
    box-sizing:border-box !important;
  }
  .spell-workspace{
    padding:14px !important;
    border-radius:24px !important;
  }
  .premium-free-body{
    padding:16px !important;
    border-radius:24px !important;
  }
  .premium-practice-head{
    display:flex !important;
    align-items:flex-start !important;
    justify-content:space-between !important;
    gap:10px !important;
  }
  .premium-practice-head h2{
    font-size:clamp(24px,5vw,34px) !important;
    line-height:1.15 !important;
  }
  .premium-quiz-card{
    padding:22px 10px !important;
    border-radius:22px !important;
    margin:12px 0 !important;
  }
  .premium-letter-tiles{
    gap:8px !important;
    justify-content:center !important;
  }
  .premium-letter-tile{
    width:clamp(36px,10vw,54px) !important;
    height:clamp(46px,12vw,60px) !important;
    font-size:clamp(20px,6vw,32px) !important;
    border-radius:14px !important;
  }
  .premium-free-controls.compact,
  .premium-free-controls{
    display:flex !important;
    flex-wrap:nowrap !important;
    overflow-x:auto !important;
    gap:9px !important;
    align-items:center !important;
    padding:8px 0 6px !important;
    -webkit-overflow-scrolling:touch !important;
    scrollbar-width:none !important;
  }
  .premium-free-controls.compact::-webkit-scrollbar,
  .premium-free-controls::-webkit-scrollbar{display:none !important;}
  .premium-free-controls.compact button,
  .premium-free-controls button{
    flex:0 0 auto !important;
    width:auto !important;
    padding:12px 16px !important;
    font-size:15px !important;
    min-height:50px !important;
  }
  .premium-free-controls.compact .round-mic,
  .premium-free-controls .round-mic{
    flex:0 0 58px !important;
    width:58px !important;
    min-width:58px !important;
    height:58px !important;
    padding:0 !important;
    font-size:26px !important;
  }
  .premium-free-controls.compact .icon-only{
    flex:0 0 52px !important;
    width:52px !important;
    min-width:52px !important;
    height:50px !important;
    padding:0 !important;
  }
  .practice-box.spell-certificate-box{
    margin:14px 0 0 !important;
    padding:16px !important;
    border-radius:22px !important;
  }
}

@media (min-width: 701px) and (max-width: 1024px){
  .sticky-controls{
    grid-template-columns:1fr 1.35fr .7fr !important;
    align-items:end !important;
  }
  .premium-free-body{
    padding:22px !important;
  }
  .premium-quiz-card{
    padding:30px 18px !important;
  }
}

@media (max-width: 520px){
  body:has(.spellkido-pro-page){
    background:linear-gradient(135deg,#fbfaff 0%,#f1ebff 60%,#fff7df 100%) !important;
  }
  .premium-area-page.spellkido-pro-page{
    padding:8px 8px 18px !important;
  }
  .sticky-controls{
    padding:8px !important;
    gap:8px !important;
  }
  .premium-control-box small{
    font-size:12px !important;
    margin-bottom:6px !important;
  }
  .premium-grade-tabs button,
  .month-tabs button,
  .lang-tabs button{
    min-width:48px !important;
    padding:9px 12px !important;
    font-size:14px !important;
  }
  .spell-workspace{
    padding:10px !important;
    border-radius:22px !important;
  }
  .premium-free-body{
    padding:12px !important;
  }
  .premium-practice-head small{
    font-size:12px !important;
  }
  .premium-practice-head h2{
    font-size:25px !important;
  }
  .premium-practice-head .progress{
    font-size:16px !important;
    padding:8px 12px !important;
  }
  .premium-word-emoji{
    font-size:3rem !important;
  }
  .premium-tap-text{
    font-size:15px !important;
  }
  .premium-mini-stats{
    gap:22px !important;
  }
  .premium-type-row input{
    font-size:19px !important;
    letter-spacing:.16em !important;
    padding:12px !important;
  }
  .sentence-review{
    font-size:15px !important;
  }
  .premium-month-group{
    padding:13px !important;
  }
  .premium-word-list span{
    font-size:14px !important;
    padding:8px 10px !important;
  }
  .floating-home,
  .premium-floating-home{
    top:8px !important;
    left:8px !important;
    width:34px !important;
    height:34px !important;
    font-size:16px !important;
  }
}

/* iPhone compact controls: show all buttons in 2 rows instead of horizontal clipping */
@media (max-width: 700px){
  .premium-free-controls.compact,
  .premium-free-controls{
    display:flex !important;
    flex-wrap:wrap !important;
    overflow-x:visible !important;
    justify-content:center !important;
    align-items:center !important;
    gap:8px !important;
    padding:10px 0 4px !important;
  }

  .premium-free-controls.compact button,
  .premium-free-controls button{
    flex:0 1 auto !important;
    width:auto !important;
    min-width:0 !important;
    min-height:44px !important;
    padding:10px 13px !important;
    font-size:14px !important;
    line-height:1 !important;
    white-space:nowrap !important;
  }

  .premium-free-controls.compact .round-mic,
  .premium-free-controls .round-mic{
    flex:0 0 56px !important;
    width:56px !important;
    min-width:56px !important;
    height:56px !important;
    padding:0 !important;
    font-size:25px !important;
  }

  .premium-free-controls.compact .icon-only{
    flex:0 0 46px !important;
    width:46px !important;
    min-width:46px !important;
    height:44px !important;
    padding:0 !important;
    font-size:20px !important;
  }

  .premium-free-controls.compact #hintBtn{
    flex:0 0 auto !important;
  }

  .premium-free-controls.compact #answerBtn,
  .premium-free-controls.compact #monthBtn{
    flex:0 1 auto !important;
  }
}

@media (max-width: 380px){
  .premium-free-controls.compact,
  .premium-free-controls{
    gap:7px !important;
  }
  .premium-free-controls.compact button,
  .premium-free-controls button{
    padding:9px 10px !important;
    font-size:13px !important;
  }
  .premium-free-controls.compact .round-mic,
  .premium-free-controls .round-mic{
    width:52px !important;
    min-width:52px !important;
    height:52px !important;
  }
  .premium-free-controls.compact .icon-only{
    width:42px !important;
    min-width:42px !important;
    height:42px !important;
  }
}

/* FIX: keep week switch visible on iPhone/tablet for Premium SpellKido */
@media (max-width:1024px){
  .spell-layout{
    display:flex !important;
    flex-direction:column !important;
    gap:12px !important;
  }
  .spell-roadmap-card{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    box-sizing:border-box !important;
    padding:12px !important;
    border-radius:22px !important;
    order:1 !important;
  }
  .spell-workspace{
    order:2 !important;
  }
  .spell-roadmap-card h2{
    font-size:18px !important;
    margin:0 0 8px !important;
  }
  #roadmapSteps{
    display:flex !important;
    flex-direction:row !important;
    gap:8px !important;
    overflow-x:auto !important;
    -webkit-overflow-scrolling:touch !important;
    padding-bottom:4px !important;
  }
  .road-step{
    flex:0 0 150px !important;
    min-width:150px !important;
    padding:10px !important;
    border-radius:16px !important;
  }
  .road-step b{
    width:28px !important;
    height:28px !important;
    min-width:28px !important;
  }
  .road-step strong{
    font-size:14px !important;
  }
  .road-step small{
    font-size:10px !important;
    line-height:1.25 !important;
    max-height:38px !important;
    overflow:hidden !important;
  }
  .teacher-note{
    display:none !important;
  }
}

/* FIX: Premium area French labels and cards fit better on mobile */
@media (max-width:700px){
  .curriculum-map h3,
  .subject-card h3{
    font-size:22px !important;
  }
  .path-step span{
    font-size:14px !important;
  }
}


/* Premium Kido pages: hide grade/language re-selection after parent setup.
   Kids can still change month. Applies to SpellKido and other premium subject pages. */
.premium-area-page:has(#gradeTabs):has(#monthTabs):has(#langTabs) .sticky-controls{
  grid-template-columns:1fr !important;
  gap:10px !important;
}
.premium-area-page:has(#gradeTabs):has(#monthTabs):has(#langTabs) .sticky-controls .premium-control-box:not(.wide){
  display:none !important;
}
.premium-area-page:has(#gradeTabs):has(#monthTabs):has(#langTabs) .sticky-controls .premium-control-box.wide{
  width:100% !important;
  max-width:760px !important;
  margin:0 auto !important;
}
.selected-context{
  max-width:760px;
  margin:0 auto;
  padding:10px 14px;
  border-radius:18px;
  background:#fff;
  border:2px solid #eadfff;
  color:#24377d;
  font-weight:800;
  text-align:center;
}
.selected-context span{color:#8b6cf6;margin:0 8px;}
.month-complete-box{
  margin:0 0 16px;
  padding:16px 18px;
  border-radius:22px;
  background:linear-gradient(135deg,#fff4c7,#eafff5);
  border:3px solid #ffd166;
  color:#24377d;
  font-weight:950;
  font-size:20px;
}
@media(max-width:700px){
  .selected-context{
    font-size:13px;
    line-height:1.35;
    padding:8px 10px;
  }
  .premium-area-page:has(#gradeTabs):has(#monthTabs):has(#langTabs) .sticky-controls .premium-control-box.wide{
    padding:9px !important;
  }
  .month-complete-box{
    font-size:16px;
    padding:12px;
  }
}
