/*
 * EducTools Theme v6.0 — "สนามเด็กเล่นพาสเทล"
 * ชั้นหน้าตาที่โหลดเป็นไฟล์สุดท้าย ไม่แตะฐานข้อมูล
 * แทนที่ eductools-refresh.css (ยังเก็บไฟล์เดิมไว้ ถ้าอยากกลับไปใช้ ให้เปลี่ยนชื่อไฟล์ใน app/layout.php)
 *
 * พื้นเขียวมิ้นต์อ่อน หมึกกรมท่า สีส้มเป็นสีหลัก การ์ดขาวมุมโค้งมาก
 * หัวข้อใช้ Mitr เนื้อหาใช้ Sarabun (ฟอนต์อยู่ในเครื่อง ไม่ต้องโหลดจาก Google)
 */

@font-face{font-family:"Mitr";src:url("../fonts/mitr-medium.woff") format("woff");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"Mitr";src:url("../fonts/mitr-semibold.woff") format("woff");font-weight:600 700;font-style:normal;font-display:swap}
@font-face{font-family:"Sarabun";src:url("../fonts/sarabun-regular.woff") format("woff");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Sarabun";src:url("../fonts/sarabun-medium.woff") format("woff");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"Sarabun";src:url("../fonts/sarabun-semibold.woff") format("woff");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"Sarabun";src:url("../fonts/sarabun-bold.woff") format("woff");font-weight:700 800;font-style:normal;font-display:swap}

/* ---------- tokens ---------- */
:root{
  --pt-ground:#EEF7F2;
  --pt-surface:#FFFFFF;
  --pt-ink:#1B2559;
  --pt-ink-soft:#4B5578;
  --pt-muted:#5E6786;
  --pt-line:#DCE8E1;
  --pt-accent:#F0742A;
  --pt-accent-deep:#D65F17;
  --pt-accent-text:#B9500F;
  --pt-accent-large:#E0601A;
  --pt-on-accent:#1B2559;
  --pt-sky:#CFE7FF;
  --pt-indigo-wash:#E6E9FF;--pt-indigo:#4253C9;
  --pt-peach-wash:#FFE8D6;--pt-peach:#C25A12;
  --pt-mint-wash:#D7F2E3;--pt-mint:#2E7D57;
  --pt-butter-wash:#FFF1C2;--pt-butter:#8A6400;
  --pt-radius:28px;
  --pt-shadow:0 10px 30px rgba(27,37,89,.08);
  --pt-shadow-hover:0 18px 40px rgba(27,37,89,.14);
  --pt-display:"Mitr","Sarabun","Noto Sans Thai",system-ui,sans-serif;
  --pt-font:"Sarabun","Noto Sans Thai","Leelawadee UI",Tahoma,system-ui,sans-serif;

  /* ส่งค่าให้ตัวแปรของธีมเดิมและชั้นก่อนหน้า หน้าอื่นที่ใช้ตัวแปรเหล่านี้จะเปลี่ยนตาม */
  --et-paper:var(--pt-ground);
  --et-grid:var(--pt-line);
  --et-surface:var(--pt-surface);
  --et-ink:var(--pt-ink);
  --et-ink-soft:var(--pt-ink-soft);
  --et-muted:var(--pt-muted);
  --et-violet:var(--pt-accent);
  --et-violet-deep:var(--pt-accent-deep);
  --et-violet-wash:var(--pt-peach-wash);
  --et-line:var(--pt-line);
  --modern-purple:var(--pt-accent);
  --modern-purple-2:var(--pt-accent-deep);
  --modern-ink:var(--pt-ink);
  --modern-text:#2B3566;
  --modern-muted:var(--pt-muted);
  --modern-bg:var(--pt-ground);
  --modern-card:var(--pt-surface);
  --modern-line:var(--pt-line);
  --modern-soft:var(--pt-peach-wash);
  --modern-shadow:var(--pt-shadow);
  --modern-shadow-hover:var(--pt-shadow-hover);
}
html[data-theme="dark"]{
  --pt-ground:#121838;
  --pt-surface:#1C2450;
  --pt-ink:#EEF1FF;
  --pt-ink-soft:#C3C9E6;
  --pt-muted:#A7AFD3;
  --pt-line:#2C3667;
  --pt-accent:#FF8B47;
  --pt-accent-deep:#FFA36C;
  --pt-accent-text:#FFA36C;
  --pt-accent-large:#FF8B47;
  --pt-on-accent:#1B1206;
  --pt-sky:#24306A;
  --pt-indigo-wash:#28337A;--pt-indigo:#B8C1FF;
  --pt-peach-wash:#4A2E22;--pt-peach:#FFC59E;
  --pt-mint-wash:#1E4A3A;--pt-mint:#9BE3BE;
  --pt-butter-wash:#4A3E14;--pt-butter:#FFE08A;
  --pt-shadow:none;
  --pt-shadow-hover:0 0 0 1px var(--pt-line);
  --modern-text:#DCE1F7;
}

/* ---------- base ---------- */
html{background:var(--pt-ground)}
body.theme-modern{
  background:var(--pt-ground);
  color:var(--modern-text);
  font-family:var(--pt-font);
  font-size:17px;
  line-height:1.7;
}
.theme-modern h1,.theme-modern h2,.theme-modern h3{font-family:var(--pt-display);color:var(--pt-ink);font-weight:600;letter-spacing:0}
.theme-modern h4{font-family:var(--pt-font);color:var(--pt-ink)}
.theme-modern p{color:var(--pt-muted)}
.theme-modern a:focus-visible,
.theme-modern button:focus-visible,
.theme-modern input:focus-visible,
.theme-modern select:focus-visible,
.theme-modern textarea:focus-visible{outline:3px solid var(--pt-accent);outline-offset:3px}

/* ---------- buttons: แคปซูลมน ---------- */
html[data-theme] .theme-modern .modern-primary-button{
  background:var(--pt-ink);
  color:#fff;
  border:0;
  border-radius:999px;
  box-shadow:none;
  font-family:var(--pt-font);
  font-weight:700;
  transition:transform .15s ease,background-color .15s ease;
}
html[data-theme] .theme-modern .modern-primary-button:hover{background:#0D1640;color:#fff;transform:translateY(-2px)}
html[data-theme] .theme-modern .header-signup{
  background:var(--pt-accent);
  color:var(--pt-on-accent);
  border:0;
  border-radius:999px;
  box-shadow:none;
  font-weight:700;
  padding-inline:22px;
}
html[data-theme] .theme-modern .header-signup:hover{background:var(--pt-accent-deep);color:var(--pt-on-accent)}
html[data-theme] .theme-modern .modern-secondary-button{
  background:var(--pt-surface);
  color:var(--pt-ink);
  border:0;
  border-radius:999px;
  box-shadow:none;
  font-weight:700;
}
html[data-theme] .theme-modern .modern-secondary-button:hover{background:var(--pt-surface);color:var(--pt-accent-text);transform:translateY(-2px)}
.theme-modern .modern-primary-button:active,.theme-modern .modern-secondary-button:active{transform:translateY(1px)}
html[data-theme="dark"] body.theme-modern .modern-primary-button{background:var(--pt-accent);color:#1B1206}
html[data-theme="dark"] body.theme-modern .modern-primary-button:hover{background:var(--pt-accent-deep)}

/* ---------- header: เมนูแคปซูลบนแถบขาว ---------- */
html[data-theme] .theme-modern .modern-header{
  background:color-mix(in srgb,var(--pt-ground) 88%,transparent);
  backdrop-filter:saturate(1.4) blur(10px);
  border-bottom:0;
  box-shadow:none;
}
.theme-modern .modern-brand-mark{background:var(--pt-accent);border-radius:50%;box-shadow:none;color:#fff}
.theme-modern .modern-brand-mark svg{color:#fff}
html[data-theme] .theme-modern .modern-brand-copy strong{font-family:var(--pt-display);font-weight:600;color:var(--pt-ink);letter-spacing:0;text-transform:none;font-size:1.3rem}
.theme-modern .modern-brand-copy small{color:var(--pt-muted)}
@media (min-width:1101px){
  html[data-theme] .theme-modern .modern-main-nav{background:var(--pt-surface);padding:6px;border-radius:999px;gap:2px;box-shadow:var(--pt-shadow)}
}
html[data-theme] .theme-modern .modern-main-nav>a,
html[data-theme] .theme-modern .modern-nav-dropdown>button{color:var(--pt-ink);font-weight:600;font-size:.95rem;background:none;box-shadow:none;border-radius:999px;padding:8px 16px;text-decoration:none}
html[data-theme] .theme-modern .modern-main-nav>a:hover,
html[data-theme] .theme-modern .modern-nav-dropdown>button:hover{background:var(--pt-ground);color:var(--pt-ink);text-decoration:none}
html[data-theme] .theme-modern .modern-main-nav>a.is-active{background:var(--pt-ink);color:#fff;text-decoration:none}
html[data-theme="dark"] .theme-modern .modern-main-nav>a.is-active{background:var(--pt-accent);color:#1B1206}
html[data-theme] .theme-modern .header-login{color:var(--pt-ink);font-weight:700}
.theme-modern .modern-dropdown-panel{border-radius:22px;border:0;box-shadow:var(--pt-shadow-hover);background:var(--pt-surface)}
.theme-modern .theme-toggle{border-radius:50%;background:var(--pt-surface);border:0;color:var(--pt-ink)}

/* ---------- section rhythm ---------- */
.theme-modern .modern-section{padding:88px 0}
.theme-modern .modern-section-heading h2,
.theme-modern .home-v493-section-row h2{font-size:clamp(1.9rem,3.6vw,2.5rem);line-height:1.3;font-weight:600}
.theme-modern .modern-section-heading h2 em{font-style:normal;color:var(--pt-accent-text)}
.theme-modern .modern-section-heading p,
.theme-modern .home-v493-section-row p{font-size:1.06rem;line-height:1.7;max-width:60ch}
.theme-modern .modern-section-heading.is-centered p{margin-inline:auto}
.theme-modern .modern-section-heading>span,
.theme-modern .home-v493-section-row>div>span{display:none}

/* ---------- hero ---------- */
html[data-theme] .theme-modern .home-v495-hero{background:var(--pt-ground);background-image:none;border-bottom:0}
.theme-modern .home-v495-hero-grid{min-height:600px;padding-top:40px;padding-bottom:64px}
.theme-modern .home-v495-kicker{
  display:inline-flex;
  padding:6px 14px;
  border-radius:999px;
  background:var(--pt-surface);
  border:0;
  box-shadow:none;
  font-family:var(--pt-font);
  font-size:.92rem;
  font-weight:600;
  color:var(--pt-ink-soft);
  transform:none;
}
.theme-modern .home-v495-copy h1{
  margin:18px 0 22px;
  font-family:var(--pt-display);
  font-size:clamp(2.5rem,5vw,3.9rem);
  line-height:1.25;
  font-weight:600;
  letter-spacing:0;
  color:var(--pt-ink);
}
.theme-modern .home-v495-copy h1 span{
  color:var(--pt-accent-large);
  -webkit-text-fill-color:var(--pt-accent-large);
  background:none;
  padding:0;
  animation:none;
}
.theme-modern .home-v495-copy>p{max-width:52ch;font-size:1.15rem;line-height:1.8;color:var(--pt-ink-soft)}
.theme-modern .home-v495-benefits span{font-size:.95rem;font-weight:600;color:var(--pt-ink-soft)}
.theme-modern .home-v495-benefits svg{color:var(--pt-mint);fill:none}
.theme-modern .home-v495-actions{gap:12px;margin-top:30px}
.theme-modern .home-v495-actions a{min-height:56px;padding-inline:30px;font-size:1.05rem}
.theme-modern .home-v495-proof{border-top:0;margin-top:34px;padding-top:0;gap:12px}
.theme-modern .home-v495-proof>div{background:var(--pt-surface);border-radius:20px;padding:12px 16px}
.theme-modern .home-v495-proof>div+div{border-left:0}
.theme-modern .proof-icon{border-radius:14px;border:0}
.theme-modern .proof-icon.is-purple{background:var(--pt-peach-wash)!important;color:var(--pt-peach)!important}
.theme-modern .proof-icon.is-blue{background:var(--pt-indigo-wash)!important;color:var(--pt-indigo)!important}
.theme-modern .proof-icon.is-green{background:var(--pt-mint-wash)!important;color:var(--pt-mint)!important}
.theme-modern .home-v495-proof strong{font-family:var(--pt-display);font-size:1.15rem;font-weight:600;color:var(--pt-ink)}
.theme-modern .home-v495-proof small{font-size:.85rem;color:var(--pt-muted)}
.theme-modern .home-v495-glow{display:none}
/* ก้อนสีฟ้าโค้งอยู่หลังภาพ */
.theme-modern .home-v495-visual:before{
  inset:2% 6% 4% 6%;
  border-radius:46% 54% 40% 60% / 55% 45% 55% 45%;
  background:var(--pt-sky);
  border:0;
  box-shadow:none;
  transform:none;
}
.theme-modern .home-v495-visual>img{filter:none;border-radius:var(--pt-radius)}
.theme-modern .home-v495-brands{background:var(--pt-ink);border-top:0;backdrop-filter:none}
.theme-modern .home-v495-brands span{color:#E4E8FF;font-size:.92rem;font-weight:600}
.theme-modern .home-v495-brands svg{color:#FFD166}
html[data-theme="dark"] .theme-modern .home-v495-brands{background:#0B1030}

/* ---------- การ์ดทั่วไป: ขาว มุมโค้งมาก ไม่มีเส้นขอบ ---------- */
.theme-modern :is(.home-v493-studio-card,.home-v493-popular-card,.home-price-card,.home-v493-image-card){
  border:0;
  border-radius:var(--pt-radius);
  background:var(--pt-surface);
  box-shadow:var(--pt-shadow);
  transition:transform .18s ease,box-shadow .18s ease;
}
.theme-modern :is(.home-v493-studio-card,.home-v493-popular-card,.home-v493-image-card):hover{transform:translateY(-4px);box-shadow:var(--pt-shadow-hover);border-color:transparent}

/* ---------- Studio cards ---------- */
.theme-modern .studio-overview-section{background:var(--pt-ground)}
.theme-modern .home-v493-studio-grid{gap:18px}
.theme-modern .home-v493-studio-card{--tab:var(--pt-peach);--wash:var(--pt-peach-wash);overflow:hidden}
.theme-modern .home-v493-studio-card.tone-blue,.theme-modern .home-v493-studio-card.tone-purple{--tab:var(--pt-indigo);--wash:var(--pt-indigo-wash)}
.theme-modern .home-v493-studio-card.tone-green{--tab:var(--pt-mint);--wash:var(--pt-mint-wash)}
.theme-modern .home-v493-studio-card.tone-orange{--tab:var(--pt-peach);--wash:var(--pt-peach-wash)}
.theme-modern .home-v493-studio-card.tone-pink,.theme-modern .home-v493-studio-card.tone-yellow{--tab:var(--pt-butter);--wash:var(--pt-butter-wash)}
.theme-modern .home-v493-studio-picture{background:var(--wash);border-bottom:0;border-radius:22px;margin:10px 10px 0}
.theme-modern .home-v493-studio-card:hover .home-v493-studio-picture img{transform:scale(1.03)}
.theme-modern .home-v493-studio-body{padding:18px 20px 20px}
.theme-modern .home-v493-studio-body h3{font-size:1.2rem;font-weight:500}
.theme-modern .home-v493-studio-body p{font-size:.95rem;line-height:1.6}
.theme-modern .home-v493-studio-body>div{padding-top:14px;border-top:0}
.theme-modern .home-v493-studio-body>div>span{font-size:.85rem;color:var(--pt-muted)}
.theme-modern .home-v493-studio-body>div>strong{font-size:.92rem;font-weight:700;color:var(--tab)!important}

/* ---------- pricing ---------- */
html[data-theme] .theme-modern .home-v494-pricing{background:var(--pt-surface);background-image:none;border-block:0;border-radius:48px;margin-inline:clamp(0px,2vw,24px)}
.theme-modern .home-v494-price-grid{gap:18px}
.theme-modern .home-price-card{background:var(--pt-ground);box-shadow:none;padding:24px}
.theme-modern .home-price-card.is-featured{background:var(--pt-ink);box-shadow:none}
.theme-modern .home-price-card.is-featured :is(h3,.home-price-value strong){color:#fff}
.theme-modern .home-price-card.is-featured :is(p,.home-price-value span,.home-v494-price-features li){color:#C9D0F2}
.theme-modern .home-price-badge{
  background:var(--pt-accent);
  color:var(--pt-on-accent);
  border:0;
  border-radius:999px;
  box-shadow:none;
  font-family:var(--pt-font);
  font-weight:700;
  font-size:.85rem;
  padding:4px 12px;
  transform:none;
}
.theme-modern .home-price-art{border-radius:18px;background:var(--pt-surface)}
.theme-modern .home-price-card h3{font-size:1.2rem;font-weight:500}
.theme-modern .home-price-card>p{font-size:.94rem;line-height:1.6}
.theme-modern .home-price-value strong{font-family:var(--pt-display);font-size:2.2rem;font-weight:600;color:var(--pt-ink)}
.theme-modern .home-price-value span{font-size:.9rem;color:var(--pt-muted)}
.theme-modern .home-v494-price-features li{font-size:.9rem;line-height:1.55;color:var(--pt-ink-soft)}
.theme-modern .home-v494-price-features svg{color:var(--pt-mint)}
.theme-modern .home-price-card.is-featured .home-v494-price-features svg{color:#9BE3BE}
.theme-modern .home-price-card>a{border-radius:999px;border:0;background:var(--pt-surface);color:var(--pt-ink);box-shadow:none;font-weight:700;font-size:.95rem}
.theme-modern .home-price-card.is-featured>a{background:var(--pt-accent);color:var(--pt-on-accent)}
.theme-modern .home-price-card>a:hover{background:var(--pt-accent-deep);color:var(--pt-on-accent)}
html[data-theme="dark"] .theme-modern .home-price-card.is-featured{background:#0B1030}

/* ---------- Image Studio panel ---------- */
.theme-modern .home-v493-image-section{background:var(--pt-ground)}
.theme-modern .home-v493-image-panel{border:0;border-radius:40px;background:var(--pt-surface);box-shadow:none;padding:36px}
.theme-modern .home-v493-image-card{background:var(--pt-ground);box-shadow:none;border-radius:22px}
.theme-modern .home-v493-image-card strong{font-size:1rem;font-weight:700;color:var(--pt-ink)}
.theme-modern .home-v493-image-card small{font-size:.86rem;color:var(--pt-muted)}
.theme-modern .home-v493-image-card>em{background:var(--pt-mint-wash);color:var(--pt-mint);font-style:normal;font-family:var(--pt-font);font-weight:700;font-size:.8rem;border:0;border-radius:999px;padding:3px 10px}

/* ---------- popular tools ---------- */
html[data-theme] .theme-modern .home-v493-popular-section{background:var(--pt-ground);border-top:0}
.theme-modern .home-v493-popular-grid{gap:18px}
.theme-modern .home-v493-popular-card{min-height:0;overflow:hidden}
.theme-modern .home-v493-popular-card:hover .home-v493-popular-picture img{transform:scale(1.03)}
.theme-modern .home-v493-popular-picture{background:var(--pt-peach-wash);border-bottom:0;border-radius:22px;margin:10px 10px 0}
.theme-modern .home-v493-popular-card.tone-blue .home-v493-popular-picture,.theme-modern .home-v493-popular-card.tone-purple .home-v493-popular-picture{background:var(--pt-indigo-wash)}
.theme-modern .home-v493-popular-card.tone-green .home-v493-popular-picture{background:var(--pt-mint-wash)}
.theme-modern .home-v493-popular-card.tone-pink .home-v493-popular-picture,.theme-modern .home-v493-popular-card.tone-yellow .home-v493-popular-picture{background:var(--pt-butter-wash)}
.theme-modern .home-v493-popular-card h3{margin:16px 20px 6px;font-size:1.12rem;font-weight:500}
.theme-modern .home-v493-popular-card p{margin:0 20px;font-size:.92rem;line-height:1.6}
.theme-modern .home-v493-popular-card>strong{margin:auto 20px 20px;padding-top:16px;font-size:.92rem;font-weight:700;color:var(--pt-accent-text)}
.theme-modern .home-v493-popular-badge{background:var(--pt-surface);color:var(--pt-ink);border:0;border-radius:999px;box-shadow:0 4px 12px rgba(27,37,89,.12);font-size:.8rem;font-weight:700;padding:3px 10px}

/* ---------- ตัวเลขสรุป ---------- */
html[data-theme] .theme-modern .home-impact-section{background:var(--pt-ground);border-block:0}
.theme-modern .home-impact-grid{gap:14px}
.theme-modern .home-impact-grid>div{border-right:0;background:var(--pt-surface);border-radius:var(--pt-radius);padding:22px}
.theme-modern .home-impact-grid>div>span{border-radius:16px;border:0;background:var(--pt-peach-wash);color:var(--pt-peach)}
.theme-modern .home-impact-grid>div:nth-child(2)>span{background:var(--pt-indigo-wash);color:var(--pt-indigo)}
.theme-modern .home-impact-grid>div:nth-child(3)>span{background:var(--pt-mint-wash);color:var(--pt-mint)}
.theme-modern .home-impact-grid>div:nth-child(4)>span{background:var(--pt-butter-wash);color:var(--pt-butter)}
.theme-modern .home-impact-grid strong{font-family:var(--pt-display);font-size:2rem;font-weight:600;color:var(--pt-ink)}
.theme-modern .home-impact-grid small{font-size:.9rem;color:var(--pt-muted)}

/* ---------- โปรโมชั่น ---------- */
.theme-modern .home-promotion-section{background:var(--pt-ground)}
.theme-modern .home-promotion-banner{
  background:var(--pt-peach-wash);
  color:var(--pt-ink);
  border:0;
  border-radius:40px;
  box-shadow:none;
  outline:0;
}
.theme-modern .home-promotion-banner:before,
.theme-modern .home-promotion-banner:after{display:none}
.theme-modern .home-promotion-banner :is(h2,strong){color:var(--pt-ink)!important;-webkit-text-fill-color:var(--pt-ink)!important}
.theme-modern .home-promotion-banner p{color:var(--pt-ink-soft)!important;-webkit-text-fill-color:var(--pt-ink-soft)!important;font-size:1.02rem}
.theme-modern .home-promotion-banner span:not(.promotion-gift){color:var(--pt-accent-text)!important;-webkit-text-fill-color:var(--pt-accent-text)!important;font-family:var(--pt-font);font-size:.95rem;letter-spacing:0;font-weight:700}
.theme-modern .home-promotion-banner h2{font-size:clamp(1.5rem,3vw,2.1rem);font-weight:600}
.theme-modern .promotion-gift{background:var(--pt-accent);border:0;border-radius:50%;color:var(--pt-on-accent);box-shadow:none}
.theme-modern .promotion-actions>a{
  background:var(--pt-ink)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  border:0!important;
  border-radius:999px!important;
  min-height:52px!important;
  padding:10px 24px!important;
  font-size:1rem!important;
  font-weight:700!important;
}
.theme-modern .promotion-actions>a:hover{background:#0D1640!important}
.theme-modern .promotion-code-button{
  background:var(--pt-surface)!important;
  color:var(--pt-ink)!important;
  border:2px dashed var(--pt-ink)!important;
  border-radius:999px!important;
  min-height:52px!important;
  font-weight:700!important;
  letter-spacing:.06em;
}
.theme-modern .promotion-code-button span{color:var(--pt-ink)!important;-webkit-text-fill-color:var(--pt-ink)!important;font-family:var(--pt-font)!important;font-size:1rem!important}
html[data-theme="dark"] .theme-modern .promotion-actions>a{background:var(--pt-accent)!important;color:#1B1206!important;-webkit-text-fill-color:#1B1206!important}

/* ---------- footer ---------- */
.theme-modern .modern-footer{background:var(--pt-ink);color:#CDD3F2}
html[data-theme="dark"] .theme-modern .modern-footer{background:#0B1030;color:var(--pt-muted)}
.theme-modern .modern-footer h3{color:#fff;font-size:1.05rem;font-weight:500}
.theme-modern .modern-footer a{color:#CDD3F2;font-size:.95rem}
.theme-modern .modern-footer a:hover{color:#FFB37E}
.theme-modern .modern-footer p{color:#B6BEE3;font-size:.95rem}
html[data-theme] .theme-modern .modern-footer .modern-brand-copy strong{color:#fff}
.theme-modern .footer-socials a{background:rgba(255,255,255,.1);border-radius:50%}
.theme-modern .modern-footer-bottom{border-top-color:rgba(255,255,255,.12);font-size:.85rem}

/* ---------- หน้าแรก: ส่งเกมให้ทั้งห้อง + FAQ ---------- */
.home-classroom-section{background:var(--pt-ground)}
.home-steps{list-style:none;margin:0 auto 28px;padding:28px;display:grid;grid-template-columns:repeat(3,1fr);gap:24px;max-width:1080px;background:var(--pt-surface);border-radius:36px}
.home-steps li{display:flex;flex-direction:column;gap:8px;align-items:flex-start}
.home-steps b{display:inline-flex;padding:5px 14px;border-radius:999px;font-family:var(--pt-display);font-weight:500;font-size:.9rem;background:var(--pt-indigo-wash);color:var(--pt-indigo)}
.home-steps b::before{content:"ขั้นที่\00a0"}
.home-steps li:nth-child(2) b{background:var(--pt-peach-wash);color:var(--pt-peach)}
.home-steps li:nth-child(3) b{background:var(--pt-mint-wash);color:var(--pt-mint)}
.home-steps h3{margin:0;font-size:1.2rem;font-weight:500;color:var(--pt-ink)}
.home-steps p{margin:0;color:var(--pt-muted);font-size:.96rem;line-height:1.6}
.home-game-row{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;max-width:1080px;margin:0 auto 26px}
.home-game-card{display:flex;flex-direction:column;gap:4px;text-decoration:none;color:var(--pt-ink);background:var(--pt-surface);border-radius:24px;padding:10px 10px 14px;box-shadow:var(--pt-shadow);transition:transform .18s,box-shadow .18s}
.home-game-card:hover{transform:translateY(-4px);box-shadow:var(--pt-shadow-hover)}
.home-game-cover{display:grid;place-items:center;aspect-ratio:16/10;border-radius:18px;overflow:hidden;background:var(--pt-sky);margin-bottom:6px}
.home-game-cover img{width:100%;height:100%;object-fit:cover}
.home-game-cover i{font-style:normal;font-size:2.4rem}
.home-game-card strong{padding:0 6px;font-family:var(--pt-display);font-weight:500;font-size:1rem;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.home-game-card small{padding:0 6px;color:var(--pt-muted);font-size:.82rem}
.home-classroom-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
.home-faq-section{background:var(--pt-ground)}
.home-faq-list{max-width:820px;margin:0 auto;display:grid;gap:12px}
.home-faq-list details{background:var(--pt-surface);border:0;border-radius:24px;padding:0 24px}
.home-faq-list summary{cursor:pointer;padding:18px 0;font-family:var(--pt-display);font-weight:500;font-size:1.05rem;color:var(--pt-ink);list-style:none;display:flex;justify-content:space-between;align-items:center;gap:12px}
.home-faq-list summary::-webkit-details-marker{display:none}
.home-faq-list summary::after{content:"+";flex:none;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--pt-peach-wash);color:var(--pt-peach);font-size:1.2rem;line-height:1}
.home-faq-list details[open] summary::after{content:"−"}
.home-faq-list p{margin:0 0 18px;color:var(--pt-muted);line-height:1.7}

/* ---------- mobile ---------- */
@media (max-width:1100px){
  .theme-modern .modern-main-nav[data-modern-nav]{border-radius:24px}
}
@media (max-width:900px){
  .home-steps{grid-template-columns:1fr;padding:22px}
  .home-game-row{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:860px){
  .theme-modern .modern-section{padding:64px 0}
  .theme-modern .home-v495-hero-grid{min-height:0;padding-top:28px;padding-bottom:40px}
  .theme-modern .home-v495-copy h1{font-size:clamp(2.1rem,8.6vw,2.8rem);line-height:1.3}
  .theme-modern .home-v495-copy>p{font-size:1.02rem;margin-inline:auto}
  html[data-theme] .theme-modern .home-v494-pricing{border-radius:32px;margin-inline:8px}
}
@media (max-width:620px){
  body.theme-modern{font-size:16px}
  .theme-modern .home-v495-proof>div{padding:10px 12px}
  .theme-modern .home-v495-proof strong{font-size:1rem}
  .theme-modern .home-v493-image-panel{padding:20px;border-radius:28px}
  .theme-modern .home-promotion-banner{text-align:left;border-radius:28px}
}
@media (prefers-reduced-motion:reduce){
  .theme-modern :is(.home-v493-studio-card,.home-v493-popular-card,.home-game-card,.modern-primary-button,.modern-secondary-button){transition:none}
}
.theme-modern .modern-brand-mark::before,.theme-modern .modern-brand-mark::after{display:none!important}

/* ---------- หน้าเข้าสู่ระบบ/สมัครสมาชิก ---------- */
html[data-theme] .theme-modern .auth-card{border:0!important;border-radius:36px!important;background:var(--pt-surface)!important;box-shadow:var(--pt-shadow)!important}
.theme-modern .auth-card::before,.theme-modern .auth-card-glow{display:none!important}
html[data-theme] .theme-modern .auth-submit-button{background:var(--pt-ink)!important;color:#fff!important;border:0!important;border-radius:999px!important;box-shadow:none!important}
html[data-theme] .theme-modern .auth-submit-button:hover{background:#0D1640!important}
html[data-theme="dark"] .theme-modern .auth-submit-button{background:var(--pt-accent)!important;color:#1B1206!important}
html[data-theme] .theme-modern .auth-input-shell{border:2px solid var(--pt-line)!important;background:var(--pt-surface)!important;border-image:none!important;border-radius:18px!important;box-shadow:none!important}
html[data-theme] .theme-modern .auth-input-shell:focus-within{border-color:var(--pt-ink)!important}
html[data-theme] .theme-modern .auth-input-icon{background:var(--pt-peach-wash)!important;color:var(--pt-peach)!important;box-shadow:none!important}
html[data-theme] .theme-modern .auth-label-dot{background:var(--pt-accent)!important;box-shadow:none!important}
html[data-theme] .theme-modern .auth-card .eyebrow{background:var(--pt-peach-wash)!important;color:var(--pt-accent-text)!important;border:0!important}
html[data-theme] .theme-modern :is(.auth-form-links a,.auth-bottom-help a){color:var(--pt-accent-text)!important}
html[data-theme] .theme-modern .auth-password-toggle{background:var(--pt-ground)!important;color:var(--pt-ink)!important}
html[data-theme] .theme-modern .auth-wrap{background:transparent!important}
html[data-theme] .theme-modern .social-btn.facebook{border-radius:999px!important}
.theme-modern .eyebrow{background:var(--pt-peach-wash);color:var(--pt-accent-text);border-color:transparent}

/* ---------- โหมดมืด: ให้ทุกส่วนใช้พื้นเดียวกัน ---------- */
html[data-theme="dark"] body.theme-modern :is(.studio-overview-section,.home-v493-image-section,.home-v493-popular-section,.home-impact-section,.home-promotion-section,.home-v495-hero,.home-classroom-section,.home-faq-section){background:var(--pt-ground)!important;background-image:none!important}
html[data-theme="dark"] body.theme-modern .home-v494-pricing{background:var(--pt-surface)!important;background-image:none!important}
html[data-theme="dark"] body.theme-modern :is(.home-v493-studio-card,.home-v493-popular-card,.home-v493-image-panel,.home-steps,.home-game-card,.home-faq-list details,.home-impact-grid>div,.home-v495-proof>div){background:var(--pt-surface)!important}
html[data-theme="dark"] body.theme-modern :is(.home-price-card,.home-v493-image-card){background:var(--pt-ground)!important}

/* ---------- บัญชีสมาชิก ---------- */
html[data-theme] .theme-modern :is(.account-hero,.member-dashboard-hero,.account-card,.dashboard-card){border:0!important;border-radius:32px!important;box-shadow:var(--pt-shadow)!important}
/* ตัวเลขใช้ Sarabun (เลขศูนย์ของ Mitr มีขีด) */
.theme-modern :is(.home-v495-proof strong,.home-impact-grid strong,.home-price-value strong){font-family:var(--pt-font)!important;font-weight:800!important}
