/* =====================================================
   DESKTOP / BASE
   ===================================================== */

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;padding:0;background:#f7f4ff;color:#171322;font-family:Tahoma,-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans Thai",Arial,sans-serif}
a{-webkit-tap-highlight-color:transparent}

.site-shell{
min-height:100vh;
background:#f7f4ff;
}

.topbar{
background:#fff;
border-bottom:1px solid #eee8ff;
box-shadow:0 4px 14px rgba(16,24,40,.05);
position:relative;
z-index:20;
}

.topbar-inner{
width:94%;
max-width:1320px;
min-height:74px;
margin:0 auto;
display:flex;
align-items:center;
justify-content:space-between;
gap:18px;
}

.brand{
display:flex;
align-items:center;
gap:7px;
color:#171322;
font-size:1.95rem;
font-weight:900;
letter-spacing:-1px;
text-decoration:none;
white-space:nowrap;
}

.brand-star{color:#f5c542;font-size:1.25rem}
.brand-blue{color:#6b46ff}
.brand-dark{color:#171322}

.topnav{display:flex;align-items:center;gap:24px}
.topnav a{color:#171322;text-decoration:none;font-size:1.1rem;font-weight:800}
.topnav a:first-child{color:#6b46ff}
.mobile-menu{display:none;text-decoration:none;}

.hero-banner{
background-image:url("img/hero-bg.webp");
background-repeat:no-repeat;
background-position:center center;
background-size:cover;
color:#fff;
position:relative;
overflow:hidden;
}

.hero-banner:before{
content:"";
position:absolute;
left:-160px;
bottom:-210px;
width:460px;
height:460px;
border-radius:50%;
background:rgba(245,197,66,.15);
}

.hero-banner:after{
content:"";
position:absolute;
right:-160px;
top:-190px;
width:480px;
height:480px;
border-radius:50%;
background:rgba(255,255,255,.08);
}

.hero-inner{
position:relative;
z-index:2;
width:94%;
max-width:1320px;
min-height:360px;
margin:0 auto;
padding:30px 0 76px;
display:flex;
align-items:center;
justify-content:center;
}

.hero-text{
flex:0 1 620px;
}

.hero-text h1{
margin:0;
font-size:2.8rem;
line-height:1.12;
font-weight:900;
letter-spacing:-1.5px;
}

.hero-text h1 span{
color:#f5c542;
}

.hero-text p{
margin:18px 0 0;
font-size:1.18rem;
line-height:1.9;
color:rgba(255,255,255,.88);
}

.main-area{
width:94%;
max-width:1320px;
margin:-58px auto 0;
position:relative;
z-index:5;
}

.search-float{
max-width:980px;
margin:0 auto;
background:#fff;
border:1px solid #eee8ff;
border-radius:30px;
padding:28px;
box-shadow:0 18px 44px rgba(23,19,34,.16);
}

.checkber-box{margin:0}
.checkber-head{text-align:center;margin-bottom:20px}

.checkber-badge{
display:inline-block;
padding:7px 14px;
border-radius:999px;
background:#171322;
color:#f5c542;
font-size:.82rem;
line-height:1.4;
font-weight:900;
letter-spacing:.4px;
margin-bottom:11px;
}

.checkber-head h2{
margin:0 0 8px;
font-size:2rem;
line-height:1.25;
font-weight:900;
color:#171322;
}

.checkber-head p{
max-width:680px;
margin:0 auto;
font-size:1.24rem;
line-height:1.75;
color:#667085;
}

.checkber-form{
display:flex;
flex-direction:column;
gap:14px;
max-width:780px;
margin:0 auto;
}

.checkber-form label{
font-size:1.24rem;
line-height:1.5;
font-weight:800;
color:#344054;
}

.phone-input-wrap{
display:flex;
align-items:center;
gap:12px;
}

.phone-input-wrap input{
width:100%;
height:64px;
border:1px solid #d9d3ef;
border-radius:18px;
font-size:1.9rem;
font-weight:900;
padding:0 16px;
text-align:center;
background:#fff;
color:#171322;
font-family:Tahoma,-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans Thai",Arial,sans-serif;
transition:.15s;
}

.phone-input-wrap input:focus{
outline:none;
border-color:#6b46ff;
box-shadow:0 0 0 4px rgba(107,70,255,.1);
}

.phone-input-wrap button{
width:180px;
height:64px;
border:0;
border-radius:18px;
background:linear-gradient(135deg,#6b46ff,#8b5cf6);
color:#fff;
font-size:1.08rem;
line-height:1.35;
font-weight:900;
cursor:pointer;
transition:.18s;
box-shadow:0 10px 22px rgba(107,70,255,.22);
}

.phone-input-wrap button:hover{
transform:translateY(-2px);
box-shadow:0 14px 26px rgba(107,70,255,.28);
}

.phone-input-wrap button:disabled{
opacity:.65;
cursor:not-allowed;
transform:none;
}

.form-note{
display:flex;
justify-content:center;
gap:14px;
flex-wrap:wrap;
font-size:.98rem;
line-height:1.6;
color:#667085;
}

.checkber-message{
font-size:1rem;
line-height:1.6;
font-weight:800;
color:#dc2626;
text-align:center;
}

.trust-row{
display:flex;
justify-content:center;
gap:10px;
flex-wrap:wrap;
margin-top:18px;
}

.trust-row span{
display:inline-flex;
align-items:center;
justify-content:center;
padding:7px 13px;
border-radius:999px;
background:#faf8ff;
border:1px solid #eee8ff;
color:#5f5a72;
font-size:.95rem;
line-height:1.4;
font-weight:800;
}

.checkber-result{
max-width:980px;
margin:22px auto 0;
}

.loading-card{
background:#fff;
border:1px solid #eee8ff;
border-radius:22px;
padding:22px;
text-align:center;
font-size:1.28rem;
line-height:1.55;
font-weight:900;
color:#6b46ff;
box-shadow:0 8px 20px rgba(23,19,34,.05);
}

.result-card{
background:#fff;
border:1px solid #eee8ff;
border-radius:26px;
padding:26px;
margin:24px 0 36px;
box-shadow:0 10px 26px rgba(23,19,34,.07);
}

.result-card.error{
border-color:#fecdd3;
background:#fff5f7;
color:#be123c;
text-align:center;
}

.result-head{text-align:center}
.result-badge{display:inline-block;padding:7px 14px;border-radius:999px;font-size:.95rem;line-height:1.4;font-weight:900;margin-bottom:12px}
.result-badge.good{background:#ecfdf3;color:#16a34a}
.result-badge.normal{
background:#fff3d6;
color:#b45309;
font-size:1.05rem;
font-weight:900;
padding:8px 16px;
border-radius:999px;
}
.result-badge.bad{background:#fff1f2;color:#dc2626}


.result-head h2{
font-size:2.8rem;
font-weight:900;
line-height:1.12;
color:#171322;
margin:10px 0;
}

.result-head p{
font-size:1.16rem;
line-height:1.7;
color:#667085;
margin:8px 0 18px;
}

.result-desc,.legacy-result{
margin-top:22px;
background:#faf8ff;
border:1px solid #eee8ff;
border-radius:20px;
padding:20px;
font-size:1.14rem;
line-height:1.9;
color:#4b5563;
overflow-wrap:break-word;
word-break:break-word;
}

.result-desc h1,.result-desc h2,.result-desc h3,
.legacy-result h1,.legacy-result h2,.legacy-result h3{
font-size:1.45rem;
line-height:1.45;
margin:14px 0 10px;
font-weight:900;
color:#171322;
}
.legacy-result .legacy-title{
font-size:1.55rem;
line-height:1.45;
font-weight:900;
color:#A10000;
margin:16px 0 10px;
}
.result-desc p,.legacy-result p{margin:0 0 12px}
.result-desc table,.legacy-result table{width:100%;border-collapse:collapse;margin:14px 0;background:#fff;border-radius:16px;overflow:hidden}
.result-desc td,.result-desc th,.legacy-result td,.legacy-result th{padding:12px 10px;border-bottom:1px solid #eee8ff;font-size:1.02rem;line-height:1.6}


.score-circle{
width:auto;
height:auto;
display:inline-block;
border-radius:18px;
background:#f3edff;
color:#5b21b6;
font-size:2.3rem;
font-weight:900;
line-height:1.1;
padding:10px 22px;
margin:4px 0 8px;
box-shadow:none;
}

.score-caption{
font-size:1.25rem;
font-weight:900;
color:#4b5563;
}
.method-section{margin-top:28px}
.method-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}

.method-card{
display:flex;
align-items:center;
gap:14px;
background:#fff;
border:1px solid #eee8ff;
border-radius:22px;
padding:18px;
text-decoration:none;
color:#171322;
box-shadow:0 8px 22px rgba(23,19,34,.06);
transition:.18s;
}

.method-card:hover{
transform:translateY(-3px);
box-shadow:0 14px 30px rgba(23,19,34,.1);
}

.method-icon,.tool-icon{
width:52px;
height:52px;
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
flex:0 0 52px;
color:#fff;
font-size:1.2rem;
line-height:1;
font-weight:900;
box-shadow:0 8px 18px rgba(23,19,34,.18);
}

.method-card h3{margin:0 0 5px;font-size:1.12rem;line-height:1.3;font-weight:900}
.method-card p{margin:0;font-size:1.05rem;line-height:1.5;color:#667085}

.purple{background:#8b5cf6}
.gold{background:#f5b21f}
.pink{background:#ec4899}
.green{background:#22c55e}
.blue{background:#2563eb}
.teal{background:#14b8a6}
.orange{background:#f59e0b}
.violet{background:#6366f1}
.red{background:#dc2626}
.dark{background:#171322}

.tools-section,.promo-section,.trust-section{margin-top:44px}

.section-title{
margin:0 0 22px;
text-align:center;
font-size:2rem;
line-height:1.25;
font-weight:900;
color:#171322;
letter-spacing:-1px;
}

.section-title span{color:#f5c542;font-size:1.1rem;vertical-align:middle}

.tool-grid{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:18px;
}

.tool-card{
display:block;
min-height:190px;
background:#fff;
border:1px solid #eee8ff;
border-radius:24px;
padding:22px;
text-decoration:none;
color:#171322;
box-shadow:0 8px 22px rgba(23,19,34,.06);
transition:.18s;
}

.tool-card:hover{
transform:translateY(-4px);
box-shadow:0 14px 30px rgba(23,19,34,.1);
}

.tool-card .tool-icon{margin:0 auto 16px}
.tool-card h3{margin:0 0 8px;text-align:center;font-size:1.16rem;line-height:1.4;font-weight:900}
.tool-card p{margin:0;text-align:center;font-size:1.05rem;line-height:1.68;color:#667085}

.promo-banner{
margin-top:44px;
display:flex;
align-items:center;
justify-content:space-between;
gap:18px;
padding:26px 30px;
border-radius:28px;
background:linear-gradient(135deg,#171322,#5b21b6);
color:#fff;
box-shadow:0 18px 38px rgba(23,19,34,.16);
}

.promo-left{display:flex;align-items:center;gap:18px}

.promo-icon{
width:64px;
height:64px;
border-radius:50%;
background:#f5c542;
color:#171322;
display:flex;
align-items:center;
justify-content:center;
font-size:1.8rem;
font-weight:900;
flex:0 0 64px;
}

.promo-banner h2{margin:0 0 6px;font-size:1.65rem;line-height:1.35;font-weight:900}
.promo-banner p{margin:0;font-size:1.05rem;line-height:1.6;color:rgba(255,255,255,.84)}

.promo-button{
display:inline-flex;
align-items:center;
justify-content:center;
gap:8px;
min-height:48px;
padding:12px 20px;
border-radius:999px;
background:#fff;
color:#5b21b6;
text-decoration:none;
font-weight:900;
white-space:nowrap;
}

.promo-grid{
display:grid;
grid-template-columns:repeat(2,1fr);
gap:16px;
}

.promo-card{
display:flex;
align-items:center;
gap:16px;
background:#fff;
border:1px solid #eee8ff;
border-radius:24px;
padding:20px;
text-decoration:none;
color:#171322;
box-shadow:0 8px 22px rgba(23,19,34,.06);
transition:.18s;
}

.promo-card:hover{
transform:translateY(-3px);
box-shadow:0 14px 30px rgba(23,19,34,.1);
}

.promo-card h3{margin:0 0 5px;font-size:1.15rem;line-height:1.38;font-weight:900}
.promo-card p{margin:0;font-size:1.05rem;line-height:1.65;color:#667085}

.trust-section{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:18px;
}

.trust-card{
background:#fff;
border:1px solid #eee8ff;
border-radius:24px;
padding:24px;
text-align:center;
box-shadow:0 8px 22px rgba(23,19,34,.06);
}

.trust-card .tool-icon{margin:0 auto 16px}
.trust-card h3{margin:0 0 8px;font-size:1.15rem;line-height:1.45;font-weight:900}
.trust-card p{margin:0;font-size:1rem;line-height:1.7;color:#667085}

.footer-main{
margin-top:50px;
background:#171322;
color:rgba(255,255,255,.78);
padding:28px 3%;
display:flex;
align-items:center;
justify-content:space-between;
gap:18px;
font-size:1rem;
line-height:1.7;
}

.footer-links{
display:flex;
gap:16px;
flex-wrap:wrap;
justify-content:flex-end;
}

.footer-links a{
color:#fff;
text-decoration:none;
font-weight:800;
}



.special-code,
.pair-code{
display:inline-block;
font-size:2rem;
font-weight:900;
color:#5b21b6;
background:#f3edff;
border-radius:14px;
padding:8px 16px;
margin-bottom:12px;
}
.pair-title{
font-size:1.25rem;
font-weight:900;
margin-bottom:10px;
}
.pair-card + .pair-card{
margin-top:24px;
}
/* =====================================================
   TABLET / MOBILE AREA - รอปรับหลังดู Capture Screen
   ===================================================== */