:root{
  --navy:#0B1F3A;
  --navy-2:#112a4b;
  --emerald:#067766;
  --emerald-2:#0D8D7A;
  --gold:#D8A23A;
  --gold-2:#F0C45C;
  --white:#ffffff;
  --light:#F6F8FB;
  --light-2:#EEF4F7;
  --text:#1E2A37;
  --muted:#637487;
  --border:#E3E9F1;
  --shadow:0 20px 50px rgba(11,31,58,.10);
  --shadow-soft:0 12px 30px rgba(11,31,58,.07);
}

*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  font-family:"Sarabun",sans-serif;
  color:var(--text);
  background:#fff;
  line-height:1.6;
  overflow-x:hidden;
}
img,video{display:block;max-width:100%}
a{text-decoration:none;color:inherit}
button{font-family:"Sarabun",sans-serif}

.container{
  width:min(1440px,94vw);
  margin:0 auto;
}

/* =========================
   HEADER
========================= */
.site-header{
  position:sticky;
  top:0;
  z-index:200;
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(11,31,58,.06);
  border-radius:0 0 18px 18px;
  box-shadow:0 8px 24px rgba(11,31,58,.04);
  overflow:hidden;
}

.header-inner{
  width:100%;
  max-width:none;
  min-height:68px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:8px 16px;
  gap:18px;
}

.brand-wrap{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}

.brand-logo{
  width:50px;
  height:auto;
  flex:0 0 auto;
}

.brand-text{
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.brand-title{
  display:flex;
  align-items:center;
  gap:6px;
  line-height:1;
  font-size:19px;
  font-weight:800;
  letter-spacing:.2px;
}

.brand-pbb{color:var(--navy)}
.brand-th{color:var(--emerald)}

.brand-sub{
  color:var(--navy);
  font-size:9.8px;
  font-weight:700;
  margin-top:3px;
  letter-spacing:.12px;
}

.main-nav{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.main-nav a{
  color:var(--navy);
  font-weight:700;
  font-size:13.5px;
  padding:9px 11px;
  border-radius:12px;
  transition:.25s ease;
  border:1px solid transparent;
  white-space:nowrap;
}

.main-nav a:hover{
  background:rgba(6,119,102,.08);
  color:var(--emerald);
  border-color:rgba(6,119,102,.16);
}

.main-nav .admin-btn{
  background:linear-gradient(135deg,var(--gold),var(--gold-2));
  color:var(--navy);
  padding:9px 17px;
  border-radius:999px;
  box-shadow:0 10px 22px rgba(216,162,58,.22);
}

.main-nav .admin-btn:hover{
  transform:translateY(-1px);
  color:var(--navy);
  background:linear-gradient(135deg,var(--gold),var(--gold-2));
}

.menu-btn{
  display:none;
  width:42px;
  height:42px;
  border:none;
  background:#f3f7fb;
  color:var(--navy);
  border-radius:12px;
  font-size:20px;
  cursor:pointer;
}

/* =========================
   HERO SLIDER
========================= */
.hero-section{
  padding:12px 0 12px;
  width:100%;
  max-width:100%;
}

.hero-shell{
  width:100%;
  max-width:none;
  margin:0 auto;
  padding:0;
}

.hero-stage{
  position:relative;
  width:100%;
  aspect-ratio:1600 / 600;
  min-height:auto;
  background:#edf3f7;
  overflow:hidden;
  border-radius:0;
  box-shadow:none;
}

.hero-image{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
  display:block;
  user-select:none;
  -webkit-user-drag:none;
}

.hero-video-overlay{
  position:absolute;
  top:8.5%;
  right:4%;
  width:31%;
  aspect-ratio:16 / 9;
  display:none;
  z-index:5;
}

.hero-video-overlay.show{display:block}

.hero-video-frame{
  width:100%;
  height:100%;
  border-radius:22px;
  overflow:hidden;
  background:#0A1C36;
  box-shadow:0 18px 38px rgba(11,31,58,.22);
  border:1px solid rgba(255,255,255,.20);
}

.hero-video-toolbar{
  height:36px;
  padding:0 12px;
  background:#ffffff;
  display:flex;
  align-items:center;
  gap:7px;
  border-bottom:1px solid rgba(11,31,58,.08);
}

.hero-video-toolbar span{
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--gold);
}

.hero-video-toolbar span:nth-child(2){background:var(--emerald)}
.hero-video-toolbar span:nth-child(3){background:#cfd8e1}

.hero-video-toolbar strong{
  color:var(--navy);
  font-size:11px;
  margin-left:6px;
  font-weight:800;
}

.hero-video-body{
  width:100%;
  height:calc(100% - 36px);
  background:#0B1F3A;
}

.hero-video-body video{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  background:#0B1F3A;
}

.hero-dots{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  margin-top:12px;
  margin-bottom:4px;
}

.hero-dots button{
  width:12px;
  height:12px;
  border:none;
  border-radius:999px;
  background:#cfd7e0;
  cursor:pointer;
  transition:.25s ease;
}

.hero-dots button.active{
  width:34px;
  background:var(--emerald);
}

/* =========================
   GLOBAL SECTION
========================= */
.section{padding:72px 0}
.section-light{background:linear-gradient(180deg,#f7fbfc 0%,#ffffff 100%)}
.section-head{max-width:980px;margin:0 auto 34px}
.section-head.center{text-align:center}
.section-kicker{
  display:inline-block;
  font-size:13px;
  letter-spacing:1.3px;
  font-weight:800;
  color:var(--gold);
  margin-bottom:8px;
}

.section-head h2{
  font-size:clamp(30px,3.2vw,52px);
  color:var(--navy);
  line-height:1.15;
  margin-bottom:12px;
}

.section-head p{
  font-size:17px;
  color:var(--muted);
  line-height:1.75;
}

/* =========================
   BUTTONS
========================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:13px 22px;
  border-radius:999px;
  font-size:15px;
  font-weight:800;
  transition:.25s ease;
  border:1px solid transparent;
}

.btn-primary{
  background:linear-gradient(135deg,var(--gold),var(--gold-2));
  color:var(--navy);
  box-shadow:0 14px 28px rgba(216,162,58,.22);
}

.btn-primary:hover{transform:translateY(-2px)}
.btn-outline{background:#fff;color:var(--navy);border-color:#d8e1eb}
.btn-outline:hover{border-color:var(--emerald);color:var(--emerald)}
.full-width{width:100%}

/* =========================
   INTERACTIVE DEMO FULL PAGE
========================= */
.interactive-demo-section{
  width:100%;
  min-height:100vh;
  padding:76px 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(6,119,102,.08), transparent 28%),
    radial-gradient(circle at 88% 16%, rgba(216,162,58,.10), transparent 26%),
    linear-gradient(180deg,#f6fbfc 0%,#ffffff 100%);
}

.interactive-demo-inner{
  width:min(1880px,98vw);
  margin:0 auto;
}

.demo-title-head{margin-bottom:28px}

.interactive-system-lab{
  display:grid;
  grid-template-columns:230px minmax(0,1fr) 230px;
  gap:18px;
  align-items:center;
}

.demo-module-panel{
  display:grid;
  gap:12px;
}

.demo-module-button{
  width:100%;
  border:1px solid var(--border);
  background:#ffffff;
  border-radius:18px;
  padding:14px;
  display:flex;
  align-items:center;
  gap:12px;
  text-align:left;
  cursor:pointer;
  box-shadow:var(--shadow-soft);
  transition:.25s ease;
}

.demo-module-button:hover{
  transform:translateY(-2px);
  border-color:rgba(6,119,102,.24);
}

.demo-module-button.active{
  border-color:var(--emerald);
  background:linear-gradient(135deg,#ffffff,#eefaf6);
}

.demo-module-button .demo-module-icon{
  width:44px;
  height:44px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background:#e8f6f2;
  color:var(--emerald);
  font-size:19px;
  flex:0 0 auto;
}

.demo-module-button.active .demo-module-icon{
  background:var(--emerald);
  color:#ffffff;
}

.demo-module-button strong{
  display:block;
  color:var(--navy);
  font-size:14px;
  line-height:1.25;
}

.demo-module-button span{
  display:block;
  color:var(--muted);
  font-size:11px;
  line-height:1.35;
  margin-top:3px;
}

.demo-device-center{min-width:0}

.demo-device-wrap{
  display:flex;
  justify-content:center;
  align-items:stretch;
  gap:24px;
}

.demo-desktop-device{
  width:min(1000px,100%);
  border:8px solid #071d3a;
  border-radius:28px;
  overflow:hidden;
  background:#071d3a;
  box-shadow:0 26px 70px rgba(11,31,58,.18);
}

.demo-device-toolbar{
  height:46px;
  background:#ffffff;
  display:grid;
  grid-template-columns:88px 1fr 96px;
  align-items:center;
  gap:10px;
  padding:0 16px;
  border-bottom:1px solid rgba(11,31,58,.08);
}

.demo-toolbar-dots{display:flex;gap:7px;align-items:center}
.demo-toolbar-dots span{
  width:10px;
  height:10px;
  border-radius:50%;
  display:inline-block;
  background:var(--gold);
}
.demo-toolbar-dots span:nth-child(2){background:var(--emerald)}
.demo-toolbar-dots span:nth-child(3){background:#cfd8e1}

.demo-device-toolbar strong{
  color:var(--navy);
  font-size:14px;
  font-weight:800;
  text-align:center;
}

.demo-device-toolbar small{
  color:var(--emerald);
  font-size:11px;
  font-weight:800;
  text-align:right;
}

.demo-desktop-ratio{
  aspect-ratio:16 / 9;
  background:#f4f7fb;
}

.demo-mobile-device{
  width:min(400px,18vw);
  min-width:235px;
  background:#071d3a;
  border:4px solid #0d284f;
  border-radius:36px;
  padding:10px;
  box-shadow:0 22px 60px rgba(11,31,58,.18);
  display:flex;
  flex-direction:column;
  align-self:stretch;
  height:auto;
}

.demo-mobile-notch{
  width:82px;
  height:12px;
  border-radius:0 0 12px 12px;
  background:#020d1c;
  margin:0 auto 8px;
}

.demo-mobile-title{
  text-align:center;
  color:#ffffff;
  font-size:12px;
  font-weight:800;
  margin-bottom:8px;
}

.demo-mobile-ratio{
  aspect-ratio:9 / 16;
  border-radius:24px;
  background:#f4f7fb;
  overflow:hidden;
  flex:1 1 auto;
  min-height:0;
}

.demo-screen{
  width:100%;
  height:100%;
  overflow:auto;
  background:#f4f7fb;
}

.demo-screen.mobile{font-size:12px}

.live-system-page{
  min-height:100%;
  padding:20px;
}

.live-system-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  background:#ffffff;
  border:1px solid var(--border);
  border-radius:20px;
  padding:18px;
  margin-bottom:14px;
}

.live-system-header h3{
  color:var(--navy);
  font-size:26px;
  line-height:1.15;
  margin-bottom:6px;
}

.live-system-header p{
  color:var(--muted);
  font-size:14px;
}

.live-system-badge{
  background:#e8f6f2;
  color:var(--emerald);
  padding:8px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  white-space:nowrap;
}

.demo-tool-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:14px;
}

.demo-tool{
  border:1px solid var(--border);
  background:#ffffff;
  border-radius:12px;
  padding:9px 13px;
  color:var(--navy);
  font-weight:800;
  font-size:12px;
  cursor:pointer;
}

.demo-tool:hover,
.demo-tool.active{
  background:var(--emerald);
  color:#ffffff;
  border-color:var(--emerald);
}

.live-stat-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin-bottom:14px;
}

.live-stat-card{
  background:#ffffff;
  border:1px solid var(--border);
  border-radius:18px;
  padding:16px;
}

.live-stat-card span{
  display:block;
  color:var(--muted);
  font-size:12px;
  margin-bottom:6px;
}

.live-stat-card strong{
  color:var(--navy);
  font-size:26px;
  line-height:1;
}

.live-stat-card small{
  display:block;
  color:var(--emerald);
  font-size:12px;
  font-weight:800;
  margin-top:8px;
}

.live-chart-grid{
  display:grid;
  grid-template-columns:1fr 1fr .9fr;
  gap:12px;
  margin-bottom:14px;
}

.live-card{
  background:#ffffff;
  border:1px solid var(--border);
  border-radius:18px;
  padding:16px;
}

.live-card h4{
  color:var(--navy);
  font-size:16px;
  margin-bottom:12px;
}

.demo-bars{
  display:flex;
  align-items:end;
  gap:10px;
  height:160px;
  padding-top:10px;
}

.demo-bar{
  flex:1;
  border-radius:10px 10px 4px 4px;
  background:linear-gradient(180deg,var(--emerald),#0c9b86);
  min-height:22px;
  position:relative;
}

.demo-bar:nth-child(even){background:linear-gradient(180deg,var(--gold),#efc45a)}

.demo-bar span{
  position:absolute;
  bottom:-24px;
  left:50%;
  transform:translateX(-50%);
  font-size:10px;
  color:var(--muted);
}

.demo-donut{
  width:150px;
  height:150px;
  border-radius:50%;
  margin:8px auto 0;
  background:conic-gradient(var(--emerald) 0 68%, var(--gold) 68% 82%, var(--navy) 82% 100%);
  display:grid;
  place-items:center;
}

.demo-donut::before{
  content:attr(data-score);
  width:86px;
  height:86px;
  border-radius:50%;
  background:#ffffff;
  display:grid;
  place-items:center;
  color:var(--navy);
  font-weight:800;
  font-size:24px;
}

.demo-activity-list{display:grid;gap:9px}
.demo-activity-list div{
  display:flex;
  justify-content:space-between;
  gap:10px;
  font-size:13px;
  padding:9px 10px;
  border-radius:12px;
  background:#f6f8fb;
  color:var(--navy);
}

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

.demo-table th,
.demo-table td{
  padding:10px;
  border-bottom:1px solid var(--border);
  text-align:left;
}

.demo-table th{
  color:var(--navy);
  background:#f8fafc;
}

.demo-status{
  display:inline-flex;
  padding:5px 9px;
  border-radius:999px;
  font-size:11px;
  font-weight:800;
}

.demo-status.good{background:#e8f6f2;color:var(--emerald)}
.demo-status.wait{background:#fff6df;color:#9b6b00}
.demo-status.risk{background:#ffecec;color:#c33b3b}

.mobile-live-page{
  min-height:100%;
  padding:14px;
}

.mobile-live-head{
  background:#ffffff;
  border:1px solid var(--border);
  border-radius:18px;
  padding:14px;
  margin-bottom:10px;
}

.mobile-live-head h3{
  font-size:20px;
  color:var(--navy);
  line-height:1.15;
  margin-bottom:6px;
}

.mobile-live-head p{
  font-size:12px;
  color:var(--muted);
}

.mobile-stat-stack{display:grid;gap:10px}
.mobile-stat{
  background:#ffffff;
  border:1px solid var(--border);
  border-radius:16px;
  padding:14px;
}

.mobile-stat span{
  display:block;
  font-size:11px;
  color:var(--muted);
  margin-bottom:5px;
}

.mobile-stat strong{
  color:var(--navy);
  font-size:24px;
}

.mobile-chart-mini{
  background:#ffffff;
  border:1px solid var(--border);
  border-radius:16px;
  padding:14px;
  margin-top:10px;
}

.mobile-bars{
  height:110px;
  display:flex;
  gap:7px;
  align-items:end;
}

.mobile-bars i{
  flex:1;
  display:block;
  border-radius:8px 8px 3px 3px;
  background:var(--emerald);
}

.mobile-bars i:nth-child(even){background:var(--gold)}

.demo-note-box{
  margin-top:16px;
  background:#fff7e5;
  color:#765500;
  border:1px solid rgba(216,162,58,.25);
  border-radius:18px;
  padding:14px 18px;
  font-size:14px;
  line-height:1.7;
}

/* =========================
   MODULES
========================= */
.module-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}

.module-grid.module-grid-9{
  grid-template-columns:repeat(3,minmax(0,1fr));
}

.module-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:24px;
  padding:22px;
  box-shadow:var(--shadow-soft);
  transition:.25s ease;
  display:flex;
  flex-direction:column;
  height:100%;
  min-height:230px;
}

.module-card:hover{
  transform:translateY(-4px);
  border-color:rgba(6,119,102,.18);
}

.module-icon{
  width:56px;
  height:56px;
  border-radius:18px;
  background:#e8f6f2;
  color:var(--emerald);
  display:grid;
  place-items:center;
  font-size:24px;
  margin-bottom:14px;
}

.module-card h3{
  font-size:22px;
  line-height:1.2;
  color:var(--navy);
  margin-bottom:8px;
}

.module-card p{
  color:var(--muted);
  font-size:15px;
  line-height:1.7;
  margin-bottom:14px;
  flex:1;
}

.module-card span{
  font-weight:800;
  color:var(--emerald);
  font-size:14px;
}

/* =========================
   VIDEO
========================= */
.video-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
}

.video-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:24px;
  overflow:hidden;
  box-shadow:var(--shadow-soft);
}

.video-thumb{
  aspect-ratio:16/9;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#12305a,#0c6c5c);
  color:#fff;
  font-size:44px;
}

.video-body{padding:18px}
.video-body h3{font-size:22px;color:var(--navy);margin-bottom:8px}
.video-body p{color:var(--muted);font-size:15px;line-height:1.7}

/* =========================
   QUICK START
========================= */
.step-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:16px;
}

.step-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:24px;
  padding:22px;
  box-shadow:var(--shadow-soft);
}

.step-icon{
  width:54px;
  height:54px;
  border-radius:18px;
  background:#e9f6f2;
  color:var(--emerald);
  display:grid;
  place-items:center;
  font-size:22px;
  margin-bottom:14px;
}

.step-card strong{display:block;color:var(--gold);font-size:22px;margin-bottom:8px}
.step-card h3{font-size:20px;line-height:1.2;color:var(--navy);margin-bottom:8px}
.step-card p{color:var(--muted);font-size:14px;line-height:1.75}

/* =========================
   CONTACT
========================= */
.contact-box{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:28px;
  align-items:center;
  background:#fff;
  border:1px solid var(--border);
  border-radius:32px;
  padding:30px;
  box-shadow:var(--shadow);
}

.contact-copy h2{
  font-size:clamp(30px,3vw,46px);
  line-height:1.15;
  color:var(--navy);
  margin-bottom:12px;
}

.contact-copy p{
  color:var(--muted);
  font-size:17px;
  line-height:1.8;
}

.contact-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:28px;
  padding:24px;
  box-shadow:var(--shadow-soft);
}

.contact-logo-wrap{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#fff;
  border-radius:18px;
  padding:12px 18px;
  border:1px solid var(--border);
  box-shadow:0 10px 24px rgba(11,31,58,.08);
  margin-bottom:16px;
}

.contact-logo-wrap img{width:120px;height:auto}
.contact-card h3{font-size:23px;color:var(--navy);line-height:1.3;margin-bottom:14px}
.contact-card p{font-size:15px;color:var(--navy);margin-bottom:8px}
.contact-card i{width:20px;color:var(--emerald)}

/* =========================
   FOOTER
========================= */
.site-footer{
  background:#07172e;
  color:rgba(255,255,255,.78);
  padding:24px 18px;
}

.footer-inner{
  width:min(1440px,94vw);
  margin:0 auto;
  display:flex;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width:1400px){
  .interactive-system-lab{grid-template-columns:200px minmax(0,1fr) 200px}
  .demo-mobile-device{width:250px;min-width:220px}
  .live-chart-grid{grid-template-columns:1fr 1fr}
}

@media (max-width:1280px){
  .module-grid,.video-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .step-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .contact-box{grid-template-columns:1fr}
}

@media (max-width:1180px){
  .interactive-system-lab{grid-template-columns:1fr}
  .demo-module-panel{grid-template-columns:repeat(3,minmax(0,1fr))}
  .demo-module-panel-left{order:1}
  .demo-device-center{order:2}
  .demo-module-panel-right{order:3}
  .demo-device-wrap{flex-direction:column;align-items:center}
  .demo-mobile-device{width:min(310px,70vw)}
  .live-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (max-width:1080px){
  .main-nav{
    position:absolute;
    top:68px;
    right:12px;
    left:12px;
    display:none;
    flex-direction:column;
    align-items:stretch;
    gap:8px;
    background:rgba(255,255,255,.98);
    border:1px solid var(--border);
    border-radius:18px;
    padding:12px;
    box-shadow:var(--shadow);
  }
  .main-nav.active{display:flex}
  .main-nav a{width:100%}
  .menu-btn{display:inline-grid;place-items:center}
  .hero-video-overlay{width:34%;right:3.5%;top:8.5%}
}

@media (max-width:860px){
  .interactive-demo-inner{width:100%;padding:0 12px}
  .demo-module-panel{grid-template-columns:1fr 1fr}
  .demo-module-button{padding:12px}
  .demo-desktop-device{border-width:5px;border-radius:22px}
  .demo-device-toolbar{height:38px;grid-template-columns:58px 1fr 74px;padding:0 10px}
  .demo-device-toolbar strong{font-size:11px}
  .demo-device-toolbar small{font-size:9px}
  .live-system-page{padding:12px}
  .live-system-header{flex-direction:column}
  .live-system-header h3{font-size:22px}
  .live-stat-grid,.live-chart-grid{grid-template-columns:1fr}
  .module-grid,.video-grid,.step-grid,.module-grid.module-grid-9{grid-template-columns:1fr}
  .footer-inner{flex-direction:column;text-align:center}
  .hero-stage{border-radius:0}
  .hero-video-overlay{width:38%;right:3%;top:8%}
}

@media (max-width:640px){
  .header-inner{min-height:64px;padding:8px 10px}
  .brand-logo{width:44px}
  .brand-title{font-size:17px}
  .brand-sub{font-size:8.8px}
  .menu-btn{width:40px;height:40px;font-size:18px}
  .hero-section{padding:8px 0 8px}
  .hero-shell{width:100%;padding:0}
  .hero-stage{width:100%;aspect-ratio:1600 / 600;min-height:auto;border-radius:0}
  .hero-image{width:100%;height:100%;object-fit:cover;object-position:center center}
  .hero-video-overlay{width:41%;right:2.5%;top:8%}
  .hero-video-toolbar{height:24px;padding:0 7px}
  .hero-video-toolbar span{width:6px;height:6px}
  .hero-video-toolbar strong{font-size:8px;margin-left:4px}
  .hero-video-body{height:calc(100% - 24px)}
  .hero-dots{margin-top:10px}
  .hero-dots button{width:10px;height:10px}
  .hero-dots button.active{width:30px}
  .section,.interactive-demo-section{padding:58px 0}
  .section-head p,.contact-copy p{font-size:15px}
  .contact-copy h2{font-size:30px}
  .btn{width:100%}
  .contact-box{padding:22px;border-radius:24px}
}

@media (max-width:560px){
  .demo-module-panel{grid-template-columns:1fr}
  .demo-module-button .demo-module-icon{width:38px;height:38px;font-size:16px}
  .demo-desktop-ratio{aspect-ratio:16 / 10}
  .demo-mobile-device{width:min(280px,82vw)}
  .live-stat-grid{grid-template-columns:1fr}
}
/* =========================
   UPDATE: ปรับขนาด VDO Overlay บนสไลด์หน้าแรก
========================= */

.hero-video-overlay{
  top:15%;
  right:3.7%;
  width:39%;
  aspect-ratio:16 / 9;
}

.hero-video-frame{
  border-radius:24px;
  box-shadow:0 22px 46px rgba(11,31,58,.28);
}

.hero-video-toolbar{
  height:40px;
  padding:0 14px;
}

.hero-video-toolbar strong{
  font-size:12px;
}

.hero-video-body{
  height:calc(100% - 40px);
}

/* จอขนาดกลาง */
@media (max-width:1080px){
  .hero-video-overlay{
    width:40%;
    right:3%;
    top:7%;
  }
}

/* Tablet */
@media (max-width:860px){
  .hero-video-overlay{
    width:40%;
    right:2.5%;
    top:7.5%;
  }

  .hero-video-frame{
    border-radius:18px;
  }
}

/* Mobile */
@media (max-width:640px){
  .hero-video-overlay{
    width:43%;
    right:2%;
    top:7.5%;
  }

  .hero-video-toolbar{
    height:24px;
    padding:0 7px;
  }

  .hero-video-toolbar strong{
    font-size:8px;
  }

  .hero-video-body{
    height:calc(100% - 24px);
  }
}
/* =========================
   MOBILE DEMO MODULES LAYOUT UPDATE
========================= */

.demo-module-panel-hidden{
  display:none !important;
}

.demo-module-panel-all{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}

@media (max-width:860px){
  .interactive-system-lab{
    grid-template-columns:1fr;
    gap:14px;
  }

  .demo-module-panel-left{
    order:1;
  }

  .demo-module-panel-right{
    order:2;
  }

  .demo-device-center{
    order:3;
  }

  .demo-module-panel-all{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:10px;
    margin-bottom:4px;
  }

  .demo-module-button{
    padding:10px 8px;
    border-radius:14px;
    gap:8px;
    min-height:76px;
    box-shadow:0 8px 18px rgba(11,31,58,.06);
    align-items:flex-start;
  }

  .demo-module-button .demo-module-icon{
    width:34px;
    height:34px;
    border-radius:10px;
    font-size:14px;
    flex:0 0 34px;
  }

  .demo-module-button strong{
    font-size:12px;
    line-height:1.2;
    margin-bottom:1px;
  }

  .demo-module-button span{
    font-size:10px;
    line-height:1.2;
  }
}

@media (max-width:640px){
  .interactive-demo-section{
    padding:54px 0;
  }

  .interactive-demo-inner{
    width:100%;
    padding:0 12px;
  }

  .demo-title-head{
    margin-bottom:18px;
  }

  .demo-title-head h2{
    font-size:clamp(26px,8vw,42px);
    line-height:1.14;
  }

  .demo-title-head p{
    font-size:14px;
    line-height:1.65;
  }

  .demo-module-panel-all{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
  }

  .demo-module-button{
    padding:8px 6px;
    border-radius:12px;
    gap:6px;
    min-height:68px;
  }

  .demo-module-button .demo-module-icon{
    width:30px;
    height:30px;
    font-size:13px;
    border-radius:9px;
    flex:0 0 30px;
  }

  .demo-module-button strong{
    font-size:11px;
    line-height:1.15;
  }

  .demo-module-button span{
    font-size:9px;
    line-height:1.15;
  }

  .demo-device-wrap{
    gap:16px;
  }
}

@media (max-width:420px){
  .demo-module-panel-all{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:7px;
  }

  .demo-module-button{
    padding:7px 5px;
    min-height:64px;
    border-radius:11px;
  }

  .demo-module-button .demo-module-icon{
    width:28px;
    height:28px;
    font-size:12px;
    flex:0 0 28px;
  }

  .demo-module-button strong{
    font-size:10.5px;
  }

  .demo-module-button span{
    font-size:8.5px;
  }
}
/* =========================
   MOBILE DEMO MODULES - CAPSULE STYLE
========================= */

@media (max-width:860px){

  /* รวมปุ่มโมดูลทั้งหมดไว้ด้านบน */
  .demo-module-panel-hidden{
    display:none !important;
  }

  .demo-module-panel-all{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
    margin-bottom:16px;
  }

  .demo-module-panel-left{
    order:1;
  }

  .demo-device-center{
    order:2;
  }

  .demo-module-panel-right{
    order:3;
  }

  /* ปุ่มแบบแคปซูล */
  .demo-module-button{
    min-height:auto !important;
    height:44px;
    padding:7px 10px !important;
    border-radius:999px !important;
    gap:7px;
    align-items:center;
    justify-content:flex-start;
    background:#ffffff;
    border:1px solid #dfe8ef;
    box-shadow:0 6px 14px rgba(11,31,58,.06);
  }

  .demo-module-button.active{
    background:#067766;
    border-color:#067766;
    box-shadow:0 10px 22px rgba(6,119,102,.18);
  }

  .demo-module-button .demo-module-icon{
    width:28px !important;
    height:28px !important;
    min-width:28px;
    flex:0 0 28px !important;
    border-radius:50% !important;
    font-size:12px !important;
    background:#e8f6f2;
    color:#067766;
  }

  .demo-module-button.active .demo-module-icon{
    background:#ffffff;
    color:#067766;
  }

  .demo-module-button strong{
    font-size:11.5px !important;
    line-height:1.1;
    color:#0B1F3A;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .demo-module-button.active strong{
    color:#ffffff;
  }

  /* ซ่อนคำอธิบายบรรทัดรอง เพื่อให้ปุ่มเตี้ยและสะอาด */
  .demo-module-button span{
    display:none !important;
  }
}

/* มือถือจอเล็กมาก */
@media (max-width:480px){

  .demo-module-panel-all{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:7px;
  }

  .demo-module-button{
    height:40px;
    padding:6px 7px !important;
    gap:5px;
  }

  .demo-module-button .demo-module-icon{
    width:24px !important;
    height:24px !important;
    min-width:24px;
    flex:0 0 24px !important;
    font-size:10.5px !important;
  }

  .demo-module-button strong{
    font-size:10px !important;
  }
}

/* มือถือจอแคบมาก เช่น 360px */
@media (max-width:380px){

  .demo-module-panel-all{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:6px;
  }

  .demo-module-button{
    height:38px;
    padding:5px 6px !important;
  }

  .demo-module-button .demo-module-icon{
    display:none !important;
  }

  .demo-module-button{
    justify-content:center;
    text-align:center;
  }

  .demo-module-button strong{
    font-size:10px !important;
    text-align:center;
  }
}
/* =========================
   PBB DEMO REAL SYSTEM UPGRADE
========================= */

.demo-sync-hint{
  margin:12px 0 0;
  padding:10px 14px;
  border-radius:14px;
  background:#eaf8f4;
  color:#067766;
  font-size:13px;
  font-weight:700;
  border:1px solid rgba(6,119,102,.16);
}

.pro-system-page{
  min-height:150%;
  padding:18px;
  background:#f4f7fb;
}

.pro-topbar{
  background:#ffffff;
  border:1px solid var(--border);
  border-radius:20px;
  padding:16px;
  margin-bottom:12px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
}

.pro-topbar h3{
  color:var(--navy);
  font-size:25px;
  line-height:1.15;
  margin-bottom:5px;
}

.pro-topbar p{
  color:var(--muted);
  font-size:13px;
  line-height:1.55;
}

.pro-badge{
  background:#e8f6f2;
  color:#067766;
  padding:8px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  white-space:nowrap;
}

.pro-toolbar{
  background:#ffffff;
  border:1px solid var(--border);
  border-radius:18px;
  padding:12px;
  margin-bottom:12px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.pro-tool-btn{
  border:1px solid #dce5ee;
  background:#ffffff;
  color:var(--navy);
  border-radius:999px;
  padding:9px 13px;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}

.pro-tool-btn.active,
.pro-tool-btn:hover{
  background:#067766;
  color:#ffffff;
  border-color:#067766;
}

.pro-actionbar{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:10px;
  margin-bottom:12px;
}

.pro-action{
  background:#ffffff;
  border:1px solid var(--border);
  border-radius:16px;
  padding:12px;
  display:flex;
  align-items:center;
  gap:10px;
  min-height:66px;
}

.pro-action i{
  width:36px;
  height:36px;
  border-radius:12px;
  background:#e8f6f2;
  color:#067766;
  display:grid;
  place-items:center;
}

.pro-action strong{
  display:block;
  color:var(--navy);
  font-size:13px;
  line-height:1.25;
}

.pro-action span{
  display:block;
  color:var(--muted);
  font-size:11px;
  margin-top:2px;
}

.pro-flow{
  background:#ffffff;
  border:1px solid var(--border);
  border-radius:18px;
  padding:14px;
  margin-bottom:12px;
}

.pro-flow h4{
  color:var(--navy);
  font-size:16px;
  margin-bottom:12px;
}

.pro-flow-line{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:10px;
}

.pro-flow-step{
  border:1px solid #e3eaf1;
  background:#f8fbfd;
  border-radius:14px;
  padding:12px;
  position:relative;
}

.pro-flow-step strong{
  display:block;
  color:#D8A23A;
  font-size:15px;
}

.pro-flow-step span{
  display:block;
  color:var(--navy);
  font-size:12px;
  font-weight:800;
  line-height:1.35;
  margin-top:3px;
}

.pro-grid-stat{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-bottom:12px;
}

.pro-stat{
  background:#ffffff;
  border:1px solid var(--border);
  border-radius:18px;
  padding:14px;
}

.pro-stat span{
  display:block;
  color:var(--muted);
  font-size:12px;
  margin-bottom:5px;
}

.pro-stat strong{
  color:var(--navy);
  font-size:24px;
  line-height:1;
}

.pro-stat small{
  display:block;
  margin-top:8px;
  color:#067766;
  font-weight:800;
  font-size:11px;
}

.pro-workspace{
  display:grid;
  grid-template-columns:1fr 1fr .9fr;
  gap:12px;
  margin-bottom:12px;
}

.pro-card{
  background:#ffffff;
  border:1px solid var(--border);
  border-radius:18px;
  padding:14px;
}

.pro-card h4{
  color:var(--navy);
  font-size:15px;
  margin-bottom:12px;
}

.pro-bars{
  height:150px;
  display:flex;
  align-items:end;
  gap:8px;
  padding-top:10px;
}

.pro-bar{
  flex:1;
  border-radius:10px 10px 4px 4px;
  background:linear-gradient(180deg,#067766,#0d927d);
  min-height:24px;
}

.pro-bar:nth-child(even){
  background:linear-gradient(180deg,#D8A23A,#f0c45c);
}

.pro-donut{
  width:142px;
  height:142px;
  border-radius:50%;
  margin:4px auto 0;
  background:conic-gradient(#067766 0 68%, #D8A23A 68% 84%, #0B1F3A 84% 100%);
  display:grid;
  place-items:center;
}

.pro-donut::before{
  content:attr(data-score);
  width:82px;
  height:82px;
  border-radius:50%;
  background:#fff;
  color:var(--navy);
  font-size:22px;
  font-weight:800;
  display:grid;
  place-items:center;
}

.pro-activity{
  display:grid;
  gap:8px;
}

.pro-activity div{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:9px 10px;
  background:#f7fafc;
  border-radius:12px;
  color:var(--navy);
  font-size:12px;
}

.pro-table{
  width:100%;
  border-collapse:collapse;
  font-size:12px;
}

.pro-table th,
.pro-table td{
  padding:10px;
  border-bottom:1px solid var(--border);
  text-align:left;
}

.pro-table th{
  background:#f8fafc;
  color:var(--navy);
}

.pro-status{
  display:inline-flex;
  padding:5px 9px;
  border-radius:999px;
  font-size:11px;
  font-weight:800;
}

.pro-status.good{
  background:#e8f6f2;
  color:#067766;
}

.pro-status.wait{
  background:#fff6df;
  color:#956800;
}

.pro-status.risk{
  background:#ffecec;
  color:#bf3030;
}

.pro-real-link{
  display:inline-flex;
  margin-top:10px;
  padding:10px 14px;
  border-radius:999px;
  background:linear-gradient(135deg,var(--gold),var(--gold-2));
  color:var(--navy);
  font-size:13px;
  font-weight:800;
}

/* Mobile screen inside mockup */
.mobile-live-page{
  min-height:150%;
  padding:12px;
  background:#f4f7fb;
}

.mobile-live-head{
  background:#fff;
  border:1px solid var(--border);
  border-radius:18px;
  padding:13px;
  margin-bottom:10px;
}

.mobile-live-head h3{
  font-size:19px;
  color:var(--navy);
  line-height:1.15;
}

.mobile-live-head p{
  font-size:11px;
  color:var(--muted);
  margin-top:5px;
}

.mobile-tool-row{
  display:flex;
  gap:6px;
  overflow-x:auto;
  padding-bottom:8px;
  margin-bottom:8px;
}

.mobile-tool-row span{
  white-space:nowrap;
  padding:7px 10px;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--border);
  color:var(--navy);
  font-size:10px;
  font-weight:800;
}

.mobile-stat-stack{
  display:grid;
  gap:9px;
}

.mobile-stat{
  background:#ffffff;
  border:1px solid var(--border);
  border-radius:16px;
  padding:12px;
}

.mobile-stat span{
  display:block;
  color:var(--muted);
  font-size:10px;
}

.mobile-stat strong{
  display:block;
  color:var(--navy);
  font-size:22px;
  margin-top:4px;
}

.mobile-mini-flow{
  display:grid;
  gap:8px;
  margin-top:10px;
}

.mobile-mini-flow div{
  background:#ffffff;
  border:1px solid var(--border);
  border-radius:14px;
  padding:10px;
  font-size:11px;
  color:var(--navy);
  font-weight:800;
}

.mobile-chart-mini{
  background:#ffffff;
  border:1px solid var(--border);
  border-radius:16px;
  padding:12px;
  margin-top:10px;
}

.mobile-bars{
  height:108px;
  display:flex;
  align-items:end;
  gap:6px;
}

.mobile-bars i{
  flex:1;
  display:block;
  border-radius:8px 8px 3px 3px;
  background:#067766;
}

.mobile-bars i:nth-child(even){
  background:#D8A23A;
}

@media (max-width:1180px){
  .pro-actionbar{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .pro-flow-line{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .pro-grid-stat{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .pro-workspace{
    grid-template-columns:1fr;
  }
}

@media (max-width:640px){
  .pro-system-page{
    padding:11px;
  }

  .pro-topbar{
    flex-direction:column;
  }

  .pro-topbar h3{
    font-size:21px;
  }

  .pro-actionbar{
    grid-template-columns:1fr;
  }

  .pro-grid-stat{
    grid-template-columns:1fr;
  }
}
/* =========================
   PBB DEMO PRO SYSTEM V2
   Sidebar / Bottom bar / Clickable charts
========================= */

.pro-app-shell{
  min-height:155%;
  display:grid;
  grid-template-columns:190px 1fr;
  background:#f4f7fb;
}

.pro-sidebar{
  background:#071d3a;
  color:#ffffff;
  padding:16px 12px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.pro-sidebar-brand{
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 10px 14px;
  border-bottom:1px solid rgba(255,255,255,.12);
  margin-bottom:6px;
}

.pro-sidebar-brand i{
  width:34px;
  height:34px;
  border-radius:12px;
  background:#ffffff;
  color:#067766;
  display:grid;
  place-items:center;
}

.pro-sidebar-brand strong{
  font-size:13px;
  line-height:1.2;
}

.pro-sidebar-menu{
  display:grid;
  gap:7px;
}

.pro-sidebar-item{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 11px;
  border-radius:13px;
  color:rgba(255,255,255,.76);
  font-size:12px;
  font-weight:800;
  cursor:pointer;
  border:1px solid transparent;
}

.pro-sidebar-item i{
  width:18px;
  text-align:center;
  color:#D8A23A;
}

.pro-sidebar-item.active,
.pro-sidebar-item:hover{
  background:rgba(255,255,255,.10);
  color:#ffffff;
  border-color:rgba(255,255,255,.12);
}

.pro-main{
  padding:18px;
  min-width:0;
}

.pro-topbar{
  background:#ffffff;
  border:1px solid var(--border);
  border-radius:20px;
  padding:16px;
  margin-bottom:12px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
}

.pro-topbar h3{
  color:var(--navy);
  font-size:25px;
  line-height:1.15;
  margin-bottom:5px;
}

.pro-topbar p{
  color:var(--muted);
  font-size:13px;
  line-height:1.55;
}

.pro-badge{
  background:#e8f6f2;
  color:#067766;
  padding:8px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  white-space:nowrap;
}

.pro-actionbar{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:10px;
  margin-bottom:12px;
}

.pro-action{
  background:#ffffff;
  border:1px solid var(--border);
  border-radius:16px;
  padding:12px;
  display:flex;
  align-items:center;
  gap:10px;
  min-height:66px;
}

.pro-action i{
  width:36px;
  height:36px;
  border-radius:12px;
  background:#e8f6f2;
  color:#067766;
  display:grid;
  place-items:center;
  flex:0 0 auto;
}

.pro-action strong{
  display:block;
  color:var(--navy);
  font-size:13px;
  line-height:1.25;
}

.pro-action span{
  display:block;
  color:var(--muted);
  font-size:11px;
  margin-top:2px;
}

.pro-grid-stat{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-bottom:12px;
}

.pro-stat{
  background:#ffffff;
  border:1px solid var(--border);
  border-radius:18px;
  padding:14px;
  transition:.2s ease;
}

.pro-stat.active{
  border-color:#067766;
  box-shadow:0 10px 24px rgba(6,119,102,.12);
}

.pro-stat span{
  display:block;
  color:var(--muted);
  font-size:12px;
  margin-bottom:5px;
}

.pro-stat strong{
  color:var(--navy);
  font-size:24px;
  line-height:1;
}

.pro-stat small{
  display:block;
  margin-top:8px;
  color:#067766;
  font-weight:800;
  font-size:11px;
}

.pro-dashboard-grid{
  display:grid;
  grid-template-columns:1.05fr .95fr .9fr;
  gap:12px;
  margin-bottom:12px;
}

.pro-card{
  background:#ffffff;
  border:1px solid var(--border);
  border-radius:18px;
  padding:14px;
  min-width:0;
}

.pro-card h4{
  color:var(--navy);
  font-size:15px;
  margin-bottom:12px;
}

.pro-chart-card{
  min-height:230px;
}

.pro-bars{
  height:150px;
  display:flex;
  align-items:end;
  gap:8px;
  padding-top:10px;
  padding-bottom:22px;
}

.pro-bar{
  flex:1;
  border-radius:10px 10px 4px 4px;
  background:linear-gradient(180deg,#067766,#0d927d);
  min-height:24px;
  position:relative;
  cursor:pointer;
  transition:.2s ease;
}

.pro-bar:nth-child(even){
  background:linear-gradient(180deg,#D8A23A,#f0c45c);
}

.pro-bar:hover,
.pro-bar.active{
  transform:translateY(-5px);
  filter:brightness(1.05);
  box-shadow:0 8px 16px rgba(11,31,58,.15);
}

.pro-bar span{
  position:absolute;
  bottom:-20px;
  left:50%;
  transform:translateX(-50%);
  font-size:10px;
  color:var(--muted);
}

.pro-line-chart{
  height:170px;
  position:relative;
  display:flex;
  align-items:stretch;
  justify-content:space-between;
  padding:14px 6px 22px;
  background:
    linear-gradient(to top, rgba(11,31,58,.07) 1px, transparent 1px);
  background-size:100% 34px;
}

.pro-line-point{
  width:16px;
  height:16px;
  border-radius:50%;
  background:#067766;
  border:3px solid #ffffff;
  box-shadow:0 0 0 2px rgba(6,119,102,.2);
  cursor:pointer;
  position:relative;
  transform:translateY(calc(-1px * var(--value)));
  transition:.2s ease;
}

.pro-line-point:nth-child(even){
  background:#D8A23A;
  box-shadow:0 0 0 2px rgba(216,162,58,.25);
}

.pro-line-point:hover,
.pro-line-point.active{
  transform:translateY(calc(-1px * var(--value))) scale(1.25);
}

.pro-line-point span{
  position:absolute;
  bottom:-24px;
  left:50%;
  transform:translateX(-50%);
  font-size:10px;
  color:var(--muted);
}

.pro-donut-wrap{
  display:grid;
  place-items:center;
  min-height:170px;
}

.pro-donut{
  width:142px;
  height:142px;
  border-radius:50%;
  margin:4px auto 0;
  background:conic-gradient(#067766 0 68%, #D8A23A 68% 84%, #0B1F3A 84% 100%);
  display:grid;
  place-items:center;
  cursor:pointer;
  transition:.2s ease;
}

.pro-donut:hover,
.pro-donut.active{
  transform:scale(1.05);
  box-shadow:0 12px 26px rgba(11,31,58,.16);
}

.pro-donut::before{
  content:attr(data-score);
  width:82px;
  height:82px;
  border-radius:50%;
  background:#fff;
  color:var(--navy);
  font-size:22px;
  font-weight:800;
  display:grid;
  place-items:center;
}

.pro-mini-kpi-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-bottom:12px;
}

.pro-mini-kpi{
  background:#ffffff;
  border:1px solid var(--border);
  border-radius:16px;
  padding:12px;
  cursor:pointer;
  transition:.2s ease;
}

.pro-mini-kpi:hover,
.pro-mini-kpi.active{
  border-color:#067766;
  box-shadow:0 10px 22px rgba(6,119,102,.10);
}

.pro-mini-kpi span{
  display:block;
  color:var(--muted);
  font-size:11px;
}

.pro-mini-kpi strong{
  display:block;
  color:var(--navy);
  font-size:20px;
  margin-top:3px;
}

.pro-flow{
  background:#ffffff;
  border:1px solid var(--border);
  border-radius:18px;
  padding:14px;
  margin-bottom:12px;
}

.pro-flow h4{
  color:var(--navy);
  font-size:16px;
  margin-bottom:12px;
}

.pro-flow-line{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:10px;
}

.pro-flow-step{
  border:1px solid #e3eaf1;
  background:#f8fbfd;
  border-radius:14px;
  padding:12px;
}

.pro-flow-step strong{
  display:block;
  color:#D8A23A;
  font-size:15px;
}

.pro-flow-step span{
  display:block;
  color:var(--navy);
  font-size:12px;
  font-weight:800;
  line-height:1.35;
  margin-top:3px;
}

.pro-activity{
  display:grid;
  gap:8px;
}

.pro-activity div{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:9px 10px;
  background:#f7fafc;
  border-radius:12px;
  color:var(--navy);
  font-size:12px;
}

.pro-table{
  width:100%;
  border-collapse:collapse;
  font-size:12px;
}

.pro-table th,
.pro-table td{
  padding:10px;
  border-bottom:1px solid var(--border);
  text-align:left;
}

.pro-table th{
  background:#f8fafc;
  color:var(--navy);
}

.pro-status{
  display:inline-flex;
  padding:5px 9px;
  border-radius:999px;
  font-size:11px;
  font-weight:800;
}

.pro-status.good{
  background:#e8f6f2;
  color:#067766;
}

.pro-status.wait{
  background:#fff6df;
  color:#956800;
}

.pro-status.risk{
  background:#ffecec;
  color:#bf3030;
}

.pro-insight-box{
  margin-top:12px;
  padding:13px 15px;
  border-radius:16px;
  background:#fff7e5;
  border:1px solid rgba(216,162,58,.25);
  color:#765500;
  font-size:13px;
  line-height:1.65;
}

.demo-sync-hint{
  margin:12px 0 0;
  padding:10px 14px;
  border-radius:14px;
  background:#eaf8f4;
  color:#067766;
  font-size:13px;
  font-weight:700;
  border:1px solid rgba(6,119,102,.16);
}

/* Online Test iframe */
.demo-iframe-wrap{
  width:100%;
  height:100%;
  min-height:100%;
  background:#ffffff;
}

.demo-iframe-wrap iframe{
  width:100%;
  height:100%;
  min-height:780px;
  border:0;
  background:#ffffff;
}

/* Mobile mockup */
.mobile-live-page{
  min-height:155%;
  padding:12px 12px 72px;
  background:#f4f7fb;
  position:relative;
}

.mobile-live-head{
  background:#fff;
  border:1px solid var(--border);
  border-radius:18px;
  padding:13px;
  margin-bottom:10px;
}

.mobile-live-head h3{
  font-size:19px;
  color:var(--navy);
  line-height:1.15;
}

.mobile-live-head p{
  font-size:11px;
  color:var(--muted);
  margin-top:5px;
}

.mobile-stat-stack{
  display:grid;
  gap:9px;
}

.mobile-stat{
  background:#ffffff;
  border:1px solid var(--border);
  border-radius:16px;
  padding:12px;
}

.mobile-stat span{
  display:block;
  color:var(--muted);
  font-size:10px;
}

.mobile-stat strong{
  display:block;
  color:var(--navy);
  font-size:22px;
  margin-top:4px;
}

.mobile-chart-mini{
  background:#ffffff;
  border:1px solid var(--border);
  border-radius:16px;
  padding:12px;
  margin-top:10px;
}

.mobile-bars{
  height:108px;
  display:flex;
  align-items:end;
  gap:6px;
}

.mobile-bars i{
  flex:1;
  display:block;
  border-radius:8px 8px 3px 3px;
  background:#067766;
}

.mobile-bars i:nth-child(even){
  background:#D8A23A;
}

.mobile-bottom-nav{
  position:sticky;
  bottom:0;
  left:0;
  right:0;
  height:54px;
  background:#ffffff;
  border-top:1px solid var(--border);
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:4px;
  padding:6px;
  border-radius:18px 18px 0 0;
  box-shadow:0 -8px 18px rgba(11,31,58,.08);
  margin-top:12px;
}

.mobile-bottom-nav button{
  border:0;
  background:transparent;
  color:#647487;
  border-radius:12px;
  font-size:13px;
  cursor:pointer;
}

.mobile-bottom-nav button.active{
  background:#e8f6f2;
  color:#067766;
}

.mobile-iframe-page{
  height:100%;
  min-height:760px;
  background:#ffffff;
}

.mobile-iframe-page iframe{
  width:100%;
  height:100%;
  min-height:760px;
  border:0;
  background:#ffffff;
}

/* responsive */
@media (max-width:1180px){
  .pro-app-shell{
    grid-template-columns:150px 1fr;
  }

  .pro-actionbar{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .pro-flow-line{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .pro-grid-stat{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .pro-dashboard-grid{
    grid-template-columns:1fr;
  }

  .pro-mini-kpi-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:640px){
  .pro-app-shell{
    grid-template-columns:1fr;
  }

  .pro-sidebar{
    display:none;
  }

  .pro-main{
    padding:11px;
  }

  .pro-topbar{
    flex-direction:column;
  }

  .pro-topbar h3{
    font-size:21px;
  }

  .pro-actionbar,
  .pro-grid-stat,
  .pro-mini-kpi-grid{
    grid-template-columns:1fr;
  }

  .pro-flow-line{
    grid-template-columns:1fr;
  }

  .demo-iframe-wrap iframe,
  .mobile-iframe-page iframe{
    min-height:720px;
  }
}

/* =========================
   DEMO HEIGHT + CLEAN ACTION BAR
========================= */
.pro-actionbar{display:none !important;}

@media (min-width: 1181px){
  .demo-device-wrap{
    align-items:stretch !important;
  }

  .demo-desktop-device,
  .demo-mobile-device{
    align-self:stretch !important;
  }

  .demo-mobile-device{
    margin-top:0 !important;
  }
}
/* =========================
   ขยับการ์ดฟังก์ชันฝั่งซ้ายออกจากขอบจอ
========================= */
@media (min-width:1181px){

  .demo-module-panel-left{
    margin-left: 30px !important;   /* เพิ่มค่านี้ถ้าอยากให้ห่างขอบซ้ายมากขึ้น */
  }

  .demo-module-panel-right{
    margin-left: 5px !important;   /* เพิ่มค่านี้ถ้าอยากให้ห่างขอบซ้ายมากขึ้น */
     margin-right: 30px !important;
  }

}