/* ---------- หน้า AI Agent: ข้อความต้อนรับ + หุ่น AI น่ารัก ---------- */
.agx-hero{position:relative;overflow:hidden}
.agx-hero .w{position:relative;z-index:2}
.agx-bot{width:120px;height:120px;margin:0 auto 10px;position:relative;animation:agbob 3s ease-in-out infinite}
.agx-bot .head{position:absolute;inset:14px 10px 0;background:#fff;border-radius:34px;border:4px solid #0369A1;box-shadow:0 10px 24px rgba(3,105,161,.25)}
.agx-bot .head::before{content:"";position:absolute;left:50%;top:-22px;width:4px;height:16px;background:#0369A1;transform:translateX(-50%)}
.agx-bot .head::after{content:"";position:absolute;left:50%;top:-30px;width:14px;height:14px;background:#F472B6;border-radius:50%;transform:translateX(-50%);animation:agpulse 1.6s ease-in-out infinite}
.agx-bot .eye{position:absolute;top:30px;width:16px;height:20px;background:#0F172A;border-radius:50%;animation:agblink 4s infinite}
.agx-bot .eye.l{left:26px}.agx-bot .eye.r{right:26px}
.agx-bot .cheek{position:absolute;top:56px;width:14px;height:8px;background:#FBCFE8;border-radius:50%}
.agx-bot .cheek.l{left:14px}.agx-bot .cheek.r{right:14px}
.agx-bot .mouth{position:absolute;left:50%;top:60px;width:22px;height:11px;border:4px solid #0F172A;border-top:0;border-radius:0 0 22px 22px;transform:translateX(-50%)}
.agx-bot .ear{position:absolute;top:44px;width:10px;height:26px;background:#0369A1;border-radius:6px}
.agx-bot .ear.l{left:0}.agx-bot .ear.r{right:0}
@keyframes agblink{0%,92%,100%{transform:scaleY(1)}96%{transform:scaleY(.1)}}
@keyframes agpulse{50%{transform:translateX(-50%) scale(1.5);opacity:.6}}
.agx-spark{position:absolute;z-index:1;font-size:26px;animation:agtwinkle 3s ease-in-out infinite}
.agx-spark.s1{top:18%;left:12%}.agx-spark.s2{top:30%;right:14%;animation-delay:-1s}.agx-spark.s3{bottom:16%;left:22%;animation-delay:-2s}.agx-spark.s4{bottom:22%;right:24%;animation-delay:-.5s}
@keyframes agtwinkle{50%{transform:scale(1.4) rotate(20deg);opacity:.5}}
.agx-welcome{display:inline-block;margin-top:14px;background:#fff;border-radius:18px;padding:8px 18px;font-size:15px;box-shadow:0 6px 16px rgba(15,23,42,.08);animation:agpop .7s .2s both}
@keyframes agpop{from{opacity:0;transform:scale(.7)}}
.agx-hero h1,.agx-hero p{animation:agrise .7s both}.agx-hero p{animation-delay:.15s}
@keyframes agrise{from{opacity:0;transform:translateY(16px)}}
.agx-card{animation:agrise .6s both}.agx-card:nth-child(2){animation-delay:.08s}.agx-card:nth-child(3){animation-delay:.16s}.agx-card:nth-child(4){animation-delay:.24s}.agx-card:nth-child(5){animation-delay:.32s}

/* กล่องเชิญเข้าสู่ระบบแทนช่องพิมพ์ เมื่อยังไม่ได้ล็อกอิน */
.agp-lock{display:flex;align-items:center;gap:14px;flex-wrap:wrap;justify-content:center;padding:14px 22px;border-top:1px solid var(--line);background:var(--abg)}
.agp-lock .btn{background:var(--ac);color:#fff;border-radius:14px}
.agp-lock .btn.o{background:transparent;border:1.5px solid var(--ac);color:var(--ac)}
.agp-lock p{font-size:14.5px;color:#334155}
.agp-hello{animation:agbob 3s ease-in-out infinite;display:inline-block}
