:root{
  --red:#c70012;
  --red-dark:#8f000c;
  --red-soft:#fff1f2;
  --ink:#141414;
  --muted:#686868;
  --line:#e7e7e7;
  --soft:#f6f6f7;
  --white:#fff;
  --radius:22px;
  --shadow:0 22px 60px rgba(20,20,20,.10);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:"Noto Sans Thai",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--ink);
  background:#fff;
  line-height:1.65;
}
body.modal-open{overflow:hidden}
img{max-width:100%;display:block}
a{text-decoration:none;color:inherit}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
.container{width:min(1180px,calc(100% - 40px));margin-inline:auto}
.site-header{
  position:sticky;top:0;z-index:50;
  background:rgba(255,255,255,.88);
  backdrop-filter:blur(18px);
  border-bottom:1px solid rgba(0,0,0,.06);
}
.nav-wrap{height:76px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.brand{display:flex;align-items:center;gap:12px}
.brand img{width:46px;height:46px;object-fit:contain}
.brand span{display:flex;flex-direction:column;line-height:1.15}
.brand strong{font-size:.98rem;letter-spacing:.16em}
.brand small{font-size:.65rem;color:var(--muted);letter-spacing:.1em;margin-top:4px}
.main-nav{display:flex;align-items:center;gap:24px;font-size:.93rem;font-weight:600}
.main-nav>a:not(.btn){position:relative}
.main-nav>a:not(.btn)::after{
  content:"";position:absolute;left:0;right:0;bottom:-8px;height:2px;
  background:var(--red);transform:scaleX(0);transition:.25s;
}
.main-nav>a:not(.btn):hover::after{transform:scaleX(1)}
.menu-toggle{display:none;background:none;border:0;padding:8px}
.menu-toggle span{display:block;width:24px;height:2px;background:#111;margin:5px}
.btn{
  border:0;border-radius:11px;padding:11px 18px;
  font-weight:700;display:inline-flex;align-items:center;justify-content:center;
  transition:.22s ease;white-space:nowrap;
}
.btn:hover{transform:translateY(-2px)}
.btn-primary{background:var(--red);color:#fff;box-shadow:0 10px 24px rgba(199,0,18,.22)}
.btn-primary:hover{background:var(--red-dark)}
.btn-ghost{background:transparent;border:1px solid var(--line);color:#222}
.btn-soft{background:var(--red-soft);color:var(--red)}
.btn-dark{background:#171717;color:#fff}
.btn-light{background:#fff;color:#111}
.btn-outline-light{background:transparent;color:#fff;border:1px solid rgba(255,255,255,.5)}
.btn-lg{padding:15px 23px;border-radius:13px}
.btn-block{width:100%}
.hero{
  position:relative;overflow:hidden;
  background:
    radial-gradient(circle at 82% 24%,rgba(199,0,18,.10),transparent 34%),
    linear-gradient(180deg,#fff 0%,#fafafa 100%);
  padding:94px 0 88px;
}
.hero::before{
  content:"";position:absolute;inset:0;
  background-image:linear-gradient(rgba(0,0,0,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(0,0,0,.025) 1px,transparent 1px);
  background-size:42px 42px;
  mask-image:linear-gradient(to bottom,black,transparent 82%);
}
.hero-grid{position:relative;z-index:1;display:grid;grid-template-columns:1.03fr .97fr;gap:68px;align-items:center}
.eyebrow,.section-kicker{font-size:.76rem;font-weight:800;letter-spacing:.16em;color:var(--red)}
.eyebrow{display:inline-flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--line);padding:8px 13px;border-radius:999px;box-shadow:0 8px 24px rgba(0,0,0,.05)}
.eyebrow .dot{width:8px;height:8px;border-radius:50%;background:var(--red);box-shadow:0 0 0 5px rgba(199,0,18,.1)}
.hero h1{font-size:clamp(2.4rem,4.8vw,4.7rem);line-height:1.12;margin:24px 0 20px;letter-spacing:-.04em}
.hero h1 span{color:var(--red)}
.hero-lead{font-size:1.12rem;color:#555;max-width:640px;margin:0}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:32px}
.hero-stats{display:flex;gap:36px;margin-top:42px}
.hero-stats div{display:flex;flex-direction:column}
.hero-stats strong{font-size:1.55rem;color:var(--red)}
.hero-stats span{font-size:.82rem;color:var(--muted)}
.hero-visual{position:relative;min-height:520px}
.glow{position:absolute;border-radius:50%;filter:blur(12px)}
.glow-one{width:260px;height:260px;background:rgba(199,0,18,.18);right:0;top:10px}
.glow-two{width:200px;height:200px;background:rgba(0,0,0,.07);left:10px;bottom:10px}
.dashboard-card{
  position:absolute;inset:42px 0 42px 22px;
  background:#fff;border:1px solid rgba(0,0,0,.07);border-radius:25px;
  box-shadow:0 30px 80px rgba(0,0,0,.14);overflow:hidden;transform:rotate(1.3deg)
}
.dashboard-top{height:72px;padding:0 20px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}
.mini-brand{display:flex;align-items:center;gap:9px}
.mini-brand img{width:34px;height:34px;object-fit:contain}
.mini-brand div{display:flex;flex-direction:column;line-height:1.2}
.mini-brand b{font-size:.8rem}
.mini-brand small{font-size:.64rem;color:var(--muted)}
.avatar{width:36px;height:36px;border-radius:50%;background:#181818;color:#fff;display:grid;place-items:center;font-size:.76rem}
.dashboard-body{display:grid;grid-template-columns:105px 1fr;min-height:400px}
.mock-sidebar{padding:22px 13px;background:#fafafa;border-right:1px solid var(--line);display:flex;flex-direction:column;gap:8px}
.mock-sidebar span{font-size:.7rem;padding:9px 10px;border-radius:8px;color:#777}
.mock-sidebar .active{background:var(--red);color:#fff;font-weight:700}
.mock-content{padding:24px}
.welcome-row{display:flex;justify-content:space-between;align-items:center}
.welcome-row small{color:#8a8a8a}
.welcome-row h3{font-size:1.1rem;margin:2px 0}
.status{font-size:.64rem;background:#eaf8ef;color:#137336;padding:6px 9px;border-radius:999px;font-weight:700}
.metric-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:22px}
.metric{border:1px solid var(--line);border-radius:12px;padding:14px;display:flex;flex-direction:column}
.metric span{font-size:.66rem;color:#777}
.metric strong{font-size:1.35rem;margin:4px 0}
.metric small{font-size:.58rem;color:#8a8a8a}
.progress-card{margin-top:18px;border:1px solid var(--line);border-radius:14px;padding:16px}
.progress-head{display:flex;justify-content:space-between;font-size:.75rem}
.progress-head span{color:var(--red);font-weight:800}
.progress-track{height:7px;background:#eee;border-radius:99px;overflow:hidden;margin:10px 0 16px}
.progress-track i{display:block;width:78%;height:100%;background:var(--red);border-radius:inherit}
.course-mini{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px}
.course-icon{width:42px;height:42px;border-radius:10px;background:var(--red-soft);color:var(--red);display:grid;place-items:center;font-size:.62rem;font-weight:800}
.course-mini div{display:flex;flex-direction:column}
.course-mini b{font-size:.7rem}
.course-mini small{font-size:.6rem;color:#888}
.course-mini strong{font-size:.75rem}
.floating-card{
  position:absolute;background:#fff;border:1px solid rgba(0,0,0,.07);border-radius:16px;
  box-shadow:0 18px 44px rgba(0,0,0,.15);padding:13px 16px;display:flex;gap:11px;align-items:center;z-index:3
}
.floating-card div:last-child{display:flex;flex-direction:column}
.floating-card b{font-size:.78rem}.floating-card small{font-size:.65rem;color:#777}
.device-card{left:-15px;bottom:48px}
.secure-card{right:-28px;top:52px}
.icon-circle,.shield{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;font-weight:900}
.icon-circle{background:var(--red);color:#fff}
.shield{background:#eaf8ef;color:#137336}
.trust-strip{border-block:1px solid var(--line);background:#fff}
.trust-grid{display:grid;grid-template-columns:repeat(4,1fr);min-height:86px;align-items:center}
.trust-grid div{text-align:center;font-size:.86rem;font-weight:600;border-right:1px solid var(--line)}
.trust-grid div:last-child{border-right:0}
.trust-grid span{color:var(--red);font-weight:900;margin-right:8px}
.section{padding:100px 0}
.section-heading{margin-bottom:42px}
.section-heading.split{display:flex;align-items:end;justify-content:space-between;gap:30px}
.section-heading.center{text-align:center;max-width:760px;margin-left:auto;margin-right:auto}
.section-heading h2{font-size:clamp(2rem,3.5vw,3.2rem);line-height:1.25;margin:10px 0 12px;letter-spacing:-.035em}
.section-heading p{margin:0;color:var(--muted);font-size:1rem}
.search-box{width:310px;display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:12px;padding:0 14px;background:#fff}
.search-box svg{width:20px;fill:none;stroke:#999;stroke-width:2;stroke-linecap:round}
.search-box input{border:0;outline:0;width:100%;padding:12px 0;background:transparent}
.filter-row{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:28px}
.filter-btn{border:1px solid var(--line);background:#fff;border-radius:999px;padding:9px 15px;font-weight:700;color:#666}
.filter-btn.active,.filter-btn:hover{background:#181818;color:#fff;border-color:#181818}
.course-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.course-card{border:1px solid var(--line);border-radius:19px;overflow:hidden;background:#fff;transition:.25s ease}
.course-card:hover{transform:translateY(-7px);box-shadow:var(--shadow)}
.course-cover{height:205px;position:relative;overflow:hidden;padding:20px;display:flex;align-items:end}
.cover-red{background:linear-gradient(135deg,#d20017,#8d000c)}
.cover-dark{background:linear-gradient(135deg,#202020,#050505)}
.cover-gray{background:linear-gradient(135deg,#727272,#222)}
.cover-outline{background:linear-gradient(135deg,#fff,#ececec);border-bottom:1px solid var(--line)}
.cover-red-dark{background:linear-gradient(135deg,#560008,#d00015)}
.cover-soft{background:linear-gradient(135deg,#ffebed,#d9d9d9)}
.cover-tag{position:absolute;top:18px;left:18px;font-size:.62rem;letter-spacing:.14em;font-weight:800;padding:7px 9px;background:rgba(255,255,255,.92);border-radius:999px;color:#111}
.cover-code{font-size:3.8rem;line-height:1;color:#fff;font-weight:900;letter-spacing:-.06em;position:relative;z-index:2}
.cover-outline .cover-code,.cover-soft .cover-code{color:var(--red)}
.cover-lines{position:absolute;width:230px;height:230px;border:35px solid rgba(255,255,255,.12);border-radius:50%;right:-62px;bottom:-80px}
.cover-lines::after{content:"";position:absolute;inset:22px;border:2px solid rgba(255,255,255,.25);border-radius:50%}
.cover-outline .cover-lines,.cover-soft .cover-lines{border-color:rgba(199,0,18,.10)}
.course-content{padding:21px}
.course-meta{display:flex;justify-content:space-between;gap:10px;color:#888;font-size:.7rem}
.course-meta span:first-child{color:var(--red);font-weight:700}
.course-card h3{font-size:1.08rem;line-height:1.45;margin:11px 0 8px}
.course-card p{font-size:.84rem;color:#707070;margin:0;min-height:68px}
.course-footer{margin-top:19px;padding-top:17px;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:end;gap:12px}
.course-footer>div{display:flex;align-items:baseline;gap:4px;flex-wrap:wrap}
.course-footer small{width:100%;font-size:.65rem;color:#888}
.course-footer strong{font-size:1.16rem}
.course-footer span{font-size:.65rem;color:#888}
.empty-state{display:none;text-align:center;padding:60px;border:1px dashed #ccc;border-radius:18px}
.empty-state strong,.empty-state span{display:block}
.empty-state span{color:#777;margin-top:5px}
.section-dark{background:#111;color:#fff;position:relative;overflow:hidden}
.section-dark::before{content:"";position:absolute;width:520px;height:520px;border:1px solid rgba(255,255,255,.08);border-radius:50%;right:-200px;top:-230px}
.section-heading.light p{color:#aaa}
.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.feature-card{background:#1b1b1b;border:1px solid #2c2c2c;border-radius:18px;padding:28px;min-height:220px;transition:.25s}
.feature-card:hover{background:#202020;border-color:#4b4b4b;transform:translateY(-5px)}
.feature-icon{width:45px;height:45px;border-radius:12px;background:var(--red);display:grid;place-items:center;font-weight:800;font-size:.78rem}
.feature-card h3{font-size:1.15rem;margin:20px 0 10px}
.feature-card p{color:#a9a9a9;font-size:.86rem;margin:0}
.device-grid{display:grid;grid-template-columns:.92fr 1.08fr;gap:80px;align-items:center}
.device-visual{position:relative;min-height:500px;background:radial-gradient(circle,rgba(199,0,18,.14),transparent 63%)}
.device{position:absolute;background:#1b1b1b;padding:10px;border-radius:18px;box-shadow:0 25px 60px rgba(0,0,0,.18)}
.device .screen{height:100%;border-radius:11px;background:linear-gradient(135deg,#fff,#ececec);display:flex;flex-direction:column;padding:18px;gap:10px}
.device .screen span{color:var(--red);font-weight:900;letter-spacing:.08em}
.device .screen i{display:block;height:8px;border-radius:99px;background:#d8d8d8}
.device .screen i:nth-of-type(1){width:75%}.device .screen i:nth-of-type(2){width:55%}.device .screen i:nth-of-type(3){width:65%}
.desktop{width:360px;height:245px;left:40px;top:70px}
.desktop::after{content:"";position:absolute;width:110px;height:65px;background:#222;left:50%;bottom:-55px;transform:translateX(-50%);clip-path:polygon(35% 0,65% 0,75% 82%,100% 88%,100% 100%,0 100%,0 88%,25% 82%)}
.tablet{width:180px;height:250px;right:25px;bottom:45px;transform:rotate(6deg)}
.phone{width:105px;height:205px;left:10px;bottom:25px;transform:rotate(-8deg);border-radius:22px;padding:7px}
.phone .screen{padding:13px}
.device-badge{position:absolute;right:45px;top:24px;width:105px;height:105px;border-radius:50%;background:var(--red);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:0 20px 45px rgba(199,0,18,.28)}
.device-badge strong{font-size:2.25rem;line-height:1}.device-badge span{font-size:.62rem;letter-spacing:.14em}
.device-copy h2{font-size:clamp(2rem,3.3vw,3.2rem);line-height:1.2;margin:12px 0 16px}
.device-copy>p{color:#666;font-size:1rem}
.check-list{list-style:none;margin:26px 0;padding:0;display:grid;gap:17px}
.check-list li{display:flex;gap:13px}
.check-list li>span{flex:0 0 31px;height:31px;border-radius:9px;background:var(--red-soft);color:var(--red);display:grid;place-items:center;font-weight:900}
.check-list div{display:flex;flex-direction:column}
.check-list b{font-size:.92rem}.check-list small{color:#777;font-size:.79rem}
.notice{border-left:4px solid var(--red);background:#f7f7f7;padding:15px 17px;border-radius:0 10px 10px 0;font-size:.8rem;color:#5e5e5e}
.notice b{display:block;color:#111;margin-bottom:2px}
.soft-bg{background:#f6f6f7}
.steps{display:grid;grid-template-columns:repeat(5,1fr);gap:14px}
.step{position:relative;background:#fff;border:1px solid var(--line);border-radius:16px;padding:24px 19px;min-height:220px}
.step span{display:inline-grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#111;color:#fff;font-weight:800;font-size:.78rem}
.step h3{font-size:1rem;margin:18px 0 8px}
.step p{font-size:.78rem;color:#777;margin:0}
.step:not(:last-child)::after{content:"→";position:absolute;right:-12px;top:50%;transform:translateY(-50%);z-index:2;width:24px;height:24px;border-radius:50%;background:var(--red);color:#fff;display:grid;place-items:center;font-weight:900;font-size:.7rem}
.role-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.role-card{border:1px solid var(--line);border-radius:18px;padding:26px;background:#fff}
.role-top{display:flex;flex-direction:column;border-bottom:1px solid var(--line);padding-bottom:18px}
.role-top span{font-size:.68rem;font-weight:900;letter-spacing:.14em;color:var(--red)}
.role-top strong{font-size:1.2rem;margin-top:5px}
.role-card ul{margin:19px 0 0;padding-left:21px}
.role-card li{font-size:.86rem;color:#666;margin:9px 0}
.role-card.admin{box-shadow:0 20px 50px rgba(199,0,18,.09);border-top:4px solid var(--red)}
.cta-section{padding:0 0 100px}
.cta-card{background:linear-gradient(125deg,#c70012,#89000c);color:#fff;border-radius:26px;padding:50px 56px;display:flex;align-items:center;justify-content:space-between;gap:30px;box-shadow:0 25px 70px rgba(199,0,18,.22)}
.cta-card .section-kicker{color:#ffd5d8}
.cta-card h2{font-size:clamp(1.8rem,3vw,2.8rem);line-height:1.25;margin:8px 0}
.cta-card p{margin:0;color:#ffd5d8}
.cta-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
footer{background:#0f0f10;color:#fff;padding:68px 0 25px}
.footer-grid{display:grid;grid-template-columns:1.7fr .8fr .8fr 1.2fr;gap:50px}
.footer-brand img{width:190px;background:#fff;border-radius:12px;padding:9px}
.footer-brand p{color:#989898;font-size:.85rem}
footer h4{margin:0 0 14px}
footer a,footer p{display:block;color:#9c9c9c;font-size:.82rem;margin:8px 0}
footer a:hover{color:#fff}
.footer-bottom{border-top:1px solid #292929;margin-top:46px;padding-top:22px;display:flex;justify-content:space-between;color:#777;font-size:.72rem}
.selection-bar{position:fixed;left:50%;bottom:22px;transform:translate(-50%,140%);z-index:60;background:#161616;color:#fff;border-radius:16px;padding:13px 15px 13px 19px;width:min(650px,calc(100% - 28px));display:flex;align-items:center;gap:15px;box-shadow:0 20px 60px rgba(0,0,0,.26);transition:.3s}
.selection-bar.show{transform:translate(-50%,0)}
.selection-bar>div{display:flex;flex-direction:column;flex:1}
.selection-bar span{font-size:.66rem;color:#aaa}
.selection-bar strong{font-size:.86rem}
.selection-close{border:0;background:none;color:#999;font-size:1.5rem}
.modal{position:fixed;inset:0;z-index:100;display:none;align-items:center;justify-content:center;padding:20px}
.modal.open{display:flex}
.modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.68);backdrop-filter:blur(6px)}
.modal-dialog{position:relative;z-index:1;width:min(450px,100%);max-height:calc(100vh - 40px);overflow:auto;background:#fff;border-radius:22px;padding:34px;box-shadow:0 30px 80px rgba(0,0,0,.3)}
.modal-dialog.wide{width:min(640px,100%)}
.modal-close{position:absolute;right:17px;top:13px;border:0;background:#f2f2f2;width:35px;height:35px;border-radius:50%;font-size:1.35rem}
.modal-logo img{width:64px;margin-bottom:12px}
.modal-kicker{font-size:.68rem;letter-spacing:.16em;font-weight:800;color:var(--red)}
.modal h2{font-size:1.7rem;margin:6px 0}
.modal>p,.modal-dialog>p{font-size:.86rem;color:#777;margin-top:0}
.modal form{margin-top:22px}
.modal label{display:block;font-size:.8rem;font-weight:700;margin-bottom:14px}
.modal input,.modal select,.modal textarea{width:100%;border:1px solid #ddd;border-radius:10px;padding:12px 13px;margin-top:6px;outline:none;background:#fff}
.modal input:focus,.modal select:focus,.modal textarea:focus{border-color:var(--red);box-shadow:0 0 0 3px rgba(199,0,18,.09)}
.password-wrap{position:relative}
.password-wrap input{padding-right:70px}
.password-wrap button{position:absolute;right:10px;top:50%;transform:translateY(-36%);border:0;background:none;color:var(--red);font-size:.74rem;font-weight:700}
.form-row{display:flex;justify-content:space-between;align-items:center;font-size:.76rem;margin:6px 0 18px}
.form-row .remember{display:flex;align-items:center;gap:7px;margin:0;font-weight:500}
.form-row input{width:auto;margin:0}
.form-row a{color:var(--red);font-weight:700}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.modal-note{display:block;text-align:center;color:#999;margin-top:14px}
.toast{position:fixed;right:24px;bottom:24px;z-index:120;background:#171717;color:#fff;padding:14px 18px;border-radius:11px;box-shadow:0 14px 40px rgba(0,0,0,.25);opacity:0;transform:translateY(16px);pointer-events:none;transition:.25s;font-size:.86rem}
.toast.show{opacity:1;transform:translateY(0)}
@media(max-width:1050px){
  .main-nav{gap:14px}.main-nav>a:not(.btn){display:none}
  .hero-grid{grid-template-columns:1fr;gap:20px}.hero-copy{text-align:center}.hero-lead{margin-inline:auto}.hero-actions,.hero-stats{justify-content:center}
  .hero-visual{min-height:520px;max-width:690px;width:100%;margin:auto}
  .course-grid{grid-template-columns:repeat(2,1fr)}
  .feature-grid{grid-template-columns:repeat(2,1fr)}
  .device-grid{grid-template-columns:1fr;gap:45px}.device-visual{max-width:560px;width:100%;margin:auto}
  .steps{grid-template-columns:repeat(3,1fr)}.step:nth-child(3)::after{display:none}
  .footer-grid{grid-template-columns:1.4fr 1fr 1fr}
  .footer-grid>div:last-child{grid-column:1/-1}
}
@media(max-width:760px){
  .container{width:min(100% - 28px,1180px)}
  .nav-wrap{height:68px}
  .brand img{width:40px;height:40px}.brand small{display:none}
  .menu-toggle{display:block}
  .main-nav{position:absolute;top:68px;left:14px;right:14px;background:#fff;border:1px solid var(--line);border-radius:15px;padding:16px;box-shadow:var(--shadow);display:none;flex-direction:column;align-items:stretch}
  .main-nav.open{display:flex}.main-nav>a:not(.btn){display:block;padding:8px 4px}
  .hero{padding:64px 0 54px}.hero h1{font-size:2.7rem}.hero-lead{font-size:.98rem}
  .hero-stats{gap:18px;justify-content:space-between}.hero-stats div{align-items:center}
  .hero-visual{min-height:400px}.dashboard-card{inset:30px 0 25px 0}
  .dashboard-body{grid-template-columns:76px 1fr}.mock-sidebar{padding:15px 8px}.mock-content{padding:15px}.metric-grid{gap:6px}.metric{padding:9px}.metric strong{font-size:1rem}
  .floating-card{display:none}
  .trust-grid{grid-template-columns:repeat(2,1fr);padding:10px 0}.trust-grid div{padding:10px;border-right:0}
  .section{padding:70px 0}.section-heading.split{align-items:stretch;flex-direction:column}.search-box{width:100%}
  .course-grid,.feature-grid,.role-grid{grid-template-columns:1fr}
  .course-card p{min-height:0}
  .steps{grid-template-columns:1fr}.step{min-height:auto}.step::after{display:none!important}
  .device-visual{min-height:390px}.desktop{width:290px;height:200px;left:25px}.tablet{width:135px;height:200px;right:5px}.phone{width:85px;height:170px}
  .cta-card{padding:34px 24px;flex-direction:column;align-items:flex-start}.cta-actions{justify-content:flex-start}
  .footer-grid{grid-template-columns:1fr 1fr}.footer-brand{grid-column:1/-1}.footer-grid>div:last-child{grid-column:1/-1}
  .footer-bottom{flex-direction:column;gap:8px}
}
@media(max-width:520px){
  .hero h1{font-size:2.2rem}.hero-stats span{font-size:.7rem}
  .hero-visual{min-height:330px}.dashboard-card{inset:22px 0 18px 0}.dashboard-top{height:55px}.dashboard-body{grid-template-columns:62px 1fr;min-height:270px}.mock-sidebar span{font-size:.55rem;padding:6px}.welcome-row .status{display:none}.metric-grid{grid-template-columns:1fr 1fr}.metric:nth-child(3){display:none}.progress-card{padding:10px}
  .device-visual{min-height:310px}.desktop{width:225px;height:160px;left:15px;top:55px}.tablet{width:100px;height:155px;right:0}.phone{width:68px;height:135px;bottom:8px}.device-badge{width:78px;height:78px;right:15px}.device-badge strong{font-size:1.65rem}
  .form-grid{grid-template-columns:1fr}.modal-dialog{padding:28px 20px}.selection-bar{align-items:flex-start;flex-wrap:wrap}.selection-bar .btn{width:100%}
}

/* =========================================================
   Dynamic Database Catalog V8.5
   ========================================================= */

.course-card[hidden]{
  display:none !important;
}

.course-cover.has-catalog-image{
  padding:0;
  background:#111;
}

.catalog-cover-image{
  position:absolute;
  inset:0;
  z-index:0;
  width:100%;
  height:100%;
  object-fit:cover;
}

.catalog-cover-shade{
  position:absolute;
  inset:0;
  z-index:1;
  background:
    linear-gradient(
      180deg,
      rgba(0,0,0,.04),
      rgba(0,0,0,.34)
    );
}

.course-cover.has-catalog-image .cover-tag{
  z-index:3;
}

.catalog-message{
  padding:46px 20px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
  color:#737373;
  text-align:center;
}

.catalog-empty{
  display:none;
}

.catalog-empty.show{
  display:flex;
}

.course-footer > div strong{
  text-transform:none;
}

@media(max-width:640px){
  .course-cover{
    height:190px;
  }
}

/* Homepage Login Message V8.7 */
.login-alert{
  margin:16px 0 4px;
  padding:11px 13px;
  border-radius:10px;
  font-size:.82rem;
  font-weight:700;
  line-height:1.55;
}

.login-alert.error{
  border:1px solid rgba(185,28,28,.18);
  color:#991b1b;
  background:#fef2f2;
}

/* =========================================================
   Multi-course quotation + LINE V9.3
   ========================================================= */

.add-course.is-selected{
  border-color:#b40013;
  color:#fff;
  background:#b40013;
}

.selection-summary{
  min-width:0;
}

.quote-course-picker{
  padding:14px;
  border:1px solid #e5e7eb;
  border-radius:14px;
  background:#fafafa;
}

.quote-course-picker-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:11px;
}

.quote-course-picker-head > div{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.quote-course-picker-head strong{
  font-size:.87rem;
}

.quote-course-picker-head span{
  color:#777;
  font-size:.72rem;
}

.quote-clear-courses{
  padding:0;
  border:0;
  color:#9f1239;
  background:transparent;
  cursor:pointer;
  font-size:.72rem;
  font-weight:800;
}

.quote-selected-courses{
  display:grid;
  gap:8px;
  max-height:220px;
  overflow:auto;
}

.quote-empty-courses{
  padding:14px;
  border:1px dashed #d1d5db;
  border-radius:10px;
  color:#888;
  background:#fff;
  font-size:.78rem;
  text-align:center;
}

.quote-course-chip{
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 11px;
  border:1px solid #e5e7eb;
  border-radius:11px;
  background:#fff;
}

.quote-course-chip > div{
  display:flex;
  min-width:0;
  flex:1;
  flex-direction:column;
  gap:2px;
}

.quote-course-chip strong{
  overflow:hidden;
  font-size:.78rem;
  line-height:1.4;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.quote-course-chip span{
  color:#888;
  font-size:.68rem;
}

.quote-remove-course{
  display:grid;
  width:28px;
  height:28px;
  flex:0 0 auto;
  place-items:center;
  border:0;
  border-radius:50%;
  color:#991b1b;
  background:#fee2e2;
  cursor:pointer;
  font-size:1rem;
}

.quote-field-error{
  margin-top:8px;
  color:#b91c1c;
  font-size:.72rem;
  font-weight:800;
}

.quote-submit-status{
  padding:11px 13px;
  border-radius:10px;
  font-size:.78rem;
  font-weight:700;
  line-height:1.55;
}

.quote-submit-status.success{
  border:1px solid #bbf7d0;
  color:#166534;
  background:#f0fdf4;
}

.quote-submit-status.fallback{
  border:1px solid #fde68a;
  color:#854d0e;
  background:#fffbeb;
}

.quote-submit-status.error{
  border:1px solid #fecaca;
  color:#991b1b;
  background:#fef2f2;
}

.quote-line-contact{
  display:flex;
  align-items:center;
  gap:13px;
  margin-top:4px;
  padding:12px;
  border:1px solid #e5e7eb;
  border-radius:12px;
  background:#fff;
}

.quote-line-contact img{
  width:68px;
  height:68px;
  flex:0 0 auto;
  border-radius:8px;
  object-fit:cover;
}

.quote-line-contact > div{
  display:flex;
  min-width:0;
  flex-direction:column;
  gap:3px;
}

.quote-line-contact strong{
  font-size:.8rem;
}

.quote-line-contact span{
  color:#777;
  font-size:.68rem;
  line-height:1.45;
}

.quote-line-contact a{
  color:#047857;
  font-size:.7rem;
  font-weight:800;
  text-decoration:none;
}

#quoteSubmitButton:disabled{
  cursor:wait;
  opacity:.66;
}

@media(max-width:640px){
  .quote-course-picker-head{
    align-items:center;
  }

  .quote-line-contact img{
    width:58px;
    height:58px;
  }
}

/* =========================================================
   LINE mobile / desktop fallback V9.3.3
   ========================================================= */

.quote-desktop-line-help{
  display:grid;
  gap:14px;
  margin-top:4px;
  padding:14px;
  border:1px solid #fde68a;
  border-radius:14px;
  background:#fffbeb;
}

.quote-desktop-line-help[hidden]{
  display:none;
}

.quote-desktop-line-head{
  display:flex;
  align-items:center;
  gap:13px;
}

.quote-desktop-line-head img{
  width:82px;
  height:82px;
  flex:0 0 auto;
  border-radius:9px;
  background:#fff;
  object-fit:contain;
}

.quote-desktop-line-head > div{
  display:flex;
  min-width:0;
  flex-direction:column;
  gap:4px;
}

.quote-desktop-line-head strong{
  color:#713f12;
  font-size:.86rem;
}

.quote-desktop-line-head span{
  color:#854d0e;
  font-size:.72rem;
  line-height:1.5;
}

.quote-desktop-line-help textarea{
  min-height:160px;
  resize:vertical;
  background:#fff;
}

.quote-desktop-line-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

@media(max-width:640px){
  .quote-desktop-line-head img{
    width:68px;
    height:68px;
  }
}


/* =========================================================
   Desktop PDF + QR / Mobile LINE V9.3.5
   ========================================================= */

.quote-desktop-files{
  display:grid;
  gap:14px;
  margin-top:5px;
  padding:14px;
  border:1px solid #bbf7d0;
  border-radius:14px;
  background:#f0fdf4;
}

.quote-desktop-files[hidden]{
  display:none;
}

.quote-desktop-files-head{
  display:flex;
  align-items:center;
  gap:14px;
}

.quote-desktop-files-head img{
  width:94px;
  height:94px;
  flex:0 0 auto;
  border:7px solid #fff;
  border-radius:10px;
  background:#fff;
  object-fit:contain;
}

.quote-desktop-files-head > div{
  display:flex;
  min-width:0;
  flex-direction:column;
  gap:4px;
}

.quote-desktop-files-head strong{
  color:#166534;
  font-size:.88rem;
}

.quote-desktop-files-head span,
.quote-desktop-files > small{
  color:#3f674b;
  font-size:.72rem;
  line-height:1.55;
}

.quote-desktop-file-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.quotation-render-stage{
  position:fixed;
  top:0;
  left:-12000px;
  z-index:-9999;
  width:794px;
  pointer-events:none;
}

.quotation-pdf-card{
  width:794px;
  min-height:1123px;
  padding:64px 62px;
  color:#171717;
  background:#fff;
  font-family:"Noto Sans Thai",Arial,sans-serif;
}

.quotation-pdf-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:30px;
  padding-bottom:28px;
  border-bottom:4px solid #171717;
}

.quotation-pdf-brand{
  color:#b40013;
  font-size:15px;
  font-weight:1000;
  letter-spacing:.18em;
}

.quotation-pdf-head h1{
  margin:7px 0 0;
  font-size:31px;
  line-height:1.15;
}

.quotation-pdf-head p{
  margin:8px 0 0;
  color:#737373;
  font-size:14px;
}

.quotation-pdf-reference{
  display:flex;
  flex-direction:column;
  gap:5px;
  text-align:right;
}

.quotation-pdf-reference strong{
  font-size:14px;
}

.quotation-pdf-reference span{
  color:#777;
  font-size:12px;
}

.quotation-pdf-info{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin:28px 0 34px;
}

.quotation-pdf-info > div{
  padding:14px 16px;
  border:1px solid #e5e5e5;
  border-radius:11px;
  background:#fafafa;
}

.quotation-pdf-info small,
.quotation-pdf-details small{
  display:block;
  color:#777;
  font-size:11px;
}

.quotation-pdf-info strong{
  display:block;
  margin-top:4px;
  font-size:14px;
  line-height:1.45;
}

.quotation-pdf-card h2{
  margin:0 0 12px;
  font-size:18px;
}

.quotation-pdf-table{
  width:100%;
  border-collapse:collapse;
  font-size:13px;
}

.quotation-pdf-table th,
.quotation-pdf-table td{
  padding:11px 10px;
  border:1px solid #dedede;
  text-align:left;
  vertical-align:top;
}

.quotation-pdf-table th{
  background:#171717;
  color:#fff;
  font-size:12px;
}

.quotation-pdf-table th:first-child,
.quotation-pdf-table td:first-child{
  width:42px;
  text-align:center;
}

.quotation-pdf-table th:last-child,
.quotation-pdf-table td:last-child{
  width:95px;
}

.quotation-pdf-details{
  margin-top:24px;
  padding:15px 17px;
  border-left:4px solid #b40013;
  background:#f7f7f7;
}

.quotation-pdf-details p{
  margin:6px 0 0;
  font-size:13px;
  line-height:1.65;
  white-space:pre-wrap;
}

.quotation-pdf-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin-top:34px;
  padding-top:25px;
  border-top:2px solid #171717;
}

.quotation-pdf-footer > div{
  display:flex;
  flex-direction:column;
  gap:5px;
}

.quotation-pdf-footer strong{
  font-size:16px;
}

.quotation-pdf-footer span{
  color:#666;
  font-size:12px;
  line-height:1.55;
}

.quotation-pdf-footer img{
  width:132px;
  height:132px;
  border:8px solid #fff;
  object-fit:contain;
}

@media(max-width:640px){
  .quote-desktop-files-head img{
    width:78px;
    height:78px;
  }
}

/* =========================================================
   VOCA V9.4 — Device quantities + editable homepage
   ========================================================= */

.quote-course-chip{
  align-items:center;
}

.quote-course-device{
  display:grid;
  grid-template-columns:auto 82px auto;
  align-items:center;
  gap:7px;
  flex:0 0 auto;
  margin:0;
}

.quote-course-device > span,
.quote-course-device > small{
  color:#666;
  font-size:.67rem;
  font-weight:800;
  white-space:nowrap;
}

.quote-course-device input{
  width:82px;
  min-width:0;
  padding:8px 9px;
  border:1px solid #d4d4d4;
  border-radius:8px;
  background:#fff;
  font:inherit;
  font-size:.78rem;
  font-weight:900;
  text-align:center;
}

.hero-visual.has-custom-hero-image{
  min-height:520px;
  border-radius:26px;
  overflow:hidden;
  background:#111;
  box-shadow:0 30px 70px rgba(0,0,0,.18);
}

.hero-visual.has-custom-hero-image > *:not(.hero-custom-image){
  display:none !important;
}

.hero-custom-image{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}

.quotation-pdf-info{
  grid-template-columns:repeat(2,minmax(0,1fr));
}

.quotation-pdf-table th:last-child,
.quotation-pdf-table td:last-child{
  width:110px;
  text-align:center;
}

@media(max-width:700px){
  .quote-course-chip{
    align-items:stretch;
    flex-wrap:wrap;
  }

  .quote-course-device{
    width:100%;
    grid-template-columns:1fr 88px auto;
    padding-top:8px;
    border-top:1px solid #eee;
  }

  .hero-visual.has-custom-hero-image{
    min-height:330px;
  }
}


/* =========================================================
   VOCA V9.4.3 — Professional hero cleanup
   ========================================================= */

.hero-main-title{
  max-width:720px;
  margin:0;
  font-size:clamp(2rem,4.4vw,4.7rem);
  line-height:1.06;
  letter-spacing:-.045em;
}

.hero-copy{
  align-self:center;
}

.hero-copy .hero-lead{
  max-width:670px;
  margin-top:22px;
}

.hero-custom-image[hidden]{
  display:none !important;
}

@media(max-width:760px){
  .hero-main-title{
    font-size:clamp(2rem,10vw,3.25rem);
  }
}

/* =========================================================
   VOCA V9.4.4 — Real uploadable system preview image
   ========================================================= */

.hero-visual.has-custom-hero-image{
  position:relative;
  min-height:520px;
  overflow:hidden;
  border:1px solid rgba(0,0,0,.07);
  border-radius:28px;
  background:#f3f4f6;
  box-shadow:
    0 28px 75px rgba(15,23,42,.16),
    0 2px 8px rgba(15,23,42,.06);
}

.hero-custom-image{
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}

@media(max-width:760px){
  .hero-visual.has-custom-hero-image{
    min-height:320px;
    border-radius:20px;
  }
}


/* =========================================================
   VOCA V9.4.5 — Square Hero without border or shadow
   ========================================================= */

.hero-visual.has-custom-hero-image{
  width:100%;
  max-width:620px;
  min-height:0 !important;
  aspect-ratio:1 / 1;
  margin-inline:auto;
  overflow:hidden;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}

.hero-custom-image{
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  border:0;
  border-radius:0;
  box-shadow:none;
}

@media(max-width:760px){
  .hero-visual.has-custom-hero-image{
    max-width:520px;
    min-height:0 !important;
    aspect-ratio:1 / 1;
    border-radius:0 !important;
  }
}


/* =========================================================
   VOCA V9.4.6 — Automatic PDF + LINE QR
   ========================================================= */

.line-qr-dialog{
  width:min(390px,calc(100vw - 30px));
  padding:24px;
  border-radius:18px;
  background:#fff;
}

.line-qr-only-image{
  display:block;
  width:100%;
  max-width:330px;
  aspect-ratio:1 / 1;
  margin:0 auto;
  object-fit:contain;
}

.quotation-pdf-footer-clean{
  display:flex;
  min-height:38px;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

.quotation-pdf-footer-clean span{
  color:#777;
  font-size:11px;
  font-weight:700;
}

.quotation-pdf-footer-clean img{
  display:none !important;
}

/* =========================================================
   VOCA V9.4.7 — LINE QR caption
   ========================================================= */

.line-qr-caption{
  max-width:300px;
  margin:2px auto 16px;
  color:#171717;
  font-size:.92rem;
  font-weight:900;
  line-height:1.5;
  text-align:center;
}

/* =========================================================
   VOCA V9.6.1 — Desktop LINE quotation redesign
   ========================================================= */

.line-quote-dialog{
  width:min(720px,calc(100vw - 32px));
  padding:0;
  overflow:hidden;
  border:1px solid rgba(17,24,39,.08);
  border-radius:26px;
  background:#fff;
  box-shadow:0 34px 90px rgba(15,23,42,.28);
}

.line-quote-dialog .modal-close{
  top:18px;
  right:18px;
  z-index:5;
  color:#111827;
  background:rgba(255,255,255,.92);
  box-shadow:0 8px 24px rgba(15,23,42,.12);
}

.line-quote-header{
  position:relative;
  padding:36px 42px 25px;
  overflow:hidden;
  color:#fff;
  background:
    radial-gradient(
      circle at 88% 14%,
      rgba(255,255,255,.18),
      transparent 28%
    ),
    linear-gradient(
      135deg,
      #111827 0%,
      #1f2937 58%,
      #111827 100%
    );
}

.line-quote-header::after{
  content:"";
  position:absolute;
  right:-56px;
  bottom:-84px;
  width:210px;
  height:210px;
  border:30px solid rgba(255,255,255,.06);
  border-radius:50%;
}

.line-quote-kicker{
  position:relative;
  z-index:1;
  display:inline-flex;
  align-items:center;
  gap:7px;
  margin-bottom:10px;
  color:#86efac;
  font-size:.67rem;
  font-weight:900;
  letter-spacing:.15em;
}

.line-quote-kicker::before{
  content:"";
  width:7px;
  height:7px;
  border-radius:50%;
  background:#22c55e;
  box-shadow:0 0 0 5px rgba(34,197,94,.14);
}

.line-quote-header h2{
  position:relative;
  z-index:1;
  margin:0 0 7px;
  color:#fff;
  font-size:clamp(1.55rem,3vw,2.05rem);
  line-height:1.25;
}

.line-quote-header p{
  position:relative;
  z-index:1;
  max-width:540px;
  margin:0;
  color:rgba(255,255,255,.76);
  font-size:.88rem;
  line-height:1.7;
}

.line-quote-content{
  display:grid;
  grid-template-columns:250px minmax(0,1fr);
  gap:30px;
  align-items:center;
  padding:32px 42px;
}

.line-quote-qr-frame{
  position:relative;
  display:grid;
  width:100%;
  aspect-ratio:1 / 1;
  place-items:center;
  padding:17px;
  border:1px solid #e5e7eb;
  border-radius:22px;
  background:
    linear-gradient(#fff,#fff) padding-box,
    linear-gradient(135deg,#22c55e,#16a34a) border-box;
  box-shadow:0 18px 38px rgba(15,23,42,.10);
}

.line-quote-qr-frame::before,
.line-quote-qr-frame::after{
  content:"";
  position:absolute;
  width:38px;
  height:38px;
  pointer-events:none;
}

.line-quote-qr-frame::before{
  top:8px;
  left:8px;
  border-top:3px solid #22c55e;
  border-left:3px solid #22c55e;
  border-radius:8px 0 0;
}

.line-quote-qr-frame::after{
  right:8px;
  bottom:8px;
  border-right:3px solid #22c55e;
  border-bottom:3px solid #22c55e;
  border-radius:0 0 8px;
}

.line-quote-dialog .line-qr-only-image{
  display:block;
  width:100%;
  max-width:none;
  aspect-ratio:1 / 1;
  margin:0;
  border-radius:12px;
  object-fit:contain;
}

.line-quote-details{
  min-width:0;
}

.line-quote-channel{
  display:inline-flex;
  margin-bottom:12px;
  padding:6px 10px;
  border-radius:999px;
  color:#087f5b;
  background:#dcfce7;
  font-size:.68rem;
  font-weight:900;
  letter-spacing:.08em;
}

.line-quote-details > strong{
  display:block;
  margin-bottom:9px;
  color:#111827;
  font-size:1.08rem;
  line-height:1.45;
}

.line-quote-details > p{
  margin:0 0 18px;
  color:#6b7280;
  font-size:.82rem;
  line-height:1.75;
}

.line-quote-account{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:13px 15px;
  border:1px solid #e5e7eb;
  border-radius:13px;
  background:#f9fafb;
}

.line-quote-account small{
  color:#9ca3af;
  font-size:.64rem;
  font-weight:800;
  letter-spacing:.1em;
}

.line-quote-account b{
  color:#111827;
  font-size:.86rem;
}

.line-quote-footer{
  padding:15px 42px 18px;
  border-top:1px solid #eef0f3;
  color:#6b7280;
  background:#fafafa;
  font-size:.73rem;
  font-weight:700;
  text-align:center;
}

@media(max-width:650px){
  .line-quote-header{
    padding:31px 24px 22px;
  }

  .line-quote-content{
    grid-template-columns:1fr;
    gap:21px;
    padding:25px 24px;
  }

  .line-quote-qr-frame{
    width:min(250px,100%);
    margin:0 auto;
  }

  .line-quote-details{
    text-align:center;
  }

  .line-quote-account{
    text-align:left;
  }

  .line-quote-footer{
    padding:14px 24px 17px;
  }
}
