/* ---------- เมนูผู้ใช้ (ดรอปดาวน์ชื่อ) ---------- */
.user-dd>button{display:flex;align-items:center;gap:8px;border:1.5px solid var(--line)!important;border-radius:999px!important;padding:4px 14px 4px 4px!important}
.user-dd .av{width:30px;height:30px;border-radius:50%;background:var(--pri);color:#fff;display:grid;place-items:center;font-style:normal;font-size:14px;font-weight:700}
.user-dd .nm{max-width:150px;overflow:hidden;text-overflow:ellipsis}
.user-dd .menu{min-width:220px}
.user-dd .menu form{display:block}
.user-dd .menu a,.user-dd .menu .out{display:block;width:100%;text-align:left;padding:9px 12px;border-radius:8px;font-size:15px;background:none;border:0;cursor:pointer;color:inherit}
.user-dd .menu .out{color:#B3321D}
.user-dd .menu a:hover,.user-dd .menu .out:hover{background:var(--pri2)}
body>header nav,body>header .brand{white-space:nowrap}
@media(max-width:1060px){body>header .w{flex-wrap:wrap}}
@media(max-width:560px){.user-dd .nm{display:none}.user-dd>button{padding-right:10px!important}}

/* ---------- หน้าแรก: ฮีโร่ต้อนรับพร้อมกราฟิกเคลื่อนไหว ---------- */
.hero.hx{position:relative;overflow:hidden;padding:72px 0 80px;background:linear-gradient(135deg,var(--pri),color-mix(in srgb,var(--pri) 55%,#6D5BD0),color-mix(in srgb,var(--pri) 70%,#14B8A6));background-size:220% 220%;animation:hxflow 16s ease-in-out infinite}
.hero.hx[style]{animation:none}
@keyframes hxflow{50%{background-position:100% 100%}}
.hx .w{position:relative;z-index:2;display:grid;grid-template-columns:1.15fr .85fr;gap:30px;align-items:center}
.hx .wave{display:inline-block;transform-origin:70% 70%;animation:hxwave 2.4s ease-in-out infinite}
@keyframes hxwave{0%,60%,100%{transform:rotate(0)}10%,30%{transform:rotate(16deg)}20%,40%{transform:rotate(-8deg)}50%{transform:rotate(10deg)}}
.hx .hello{display:inline-block;background:rgba(255,255,255,.16);backdrop-filter:blur(6px);border:1px solid rgba(255,255,255,.3);border-radius:999px;padding:4px 16px;font-size:15px;margin-bottom:14px;animation:hxrise .8s both}
.hx h1{animation:hxrise .8s .1s both}.hx p{animation:hxrise .8s .25s both}.hx .row{animation:hxrise .8s .4s both}.hx .stats{animation:hxrise .8s .55s both}
@keyframes hxrise{from{opacity:0;transform:translateY(22px)}}
.hx .blob{position:absolute;border-radius:50%;filter:blur(8px);opacity:.35;z-index:1;animation:hxfloat 12s ease-in-out infinite}
.hx .b1{width:340px;height:340px;background:#F2A900;top:-120px;right:-80px}
.hx .b2{width:260px;height:260px;background:#5EEAD4;bottom:-110px;left:12%;animation-delay:-4s}
.hx .b3{width:180px;height:180px;background:#F472B6;top:30%;left:-60px;animation-delay:-8s}
@keyframes hxfloat{50%{transform:translate(30px,-34px) scale(1.12)}}
.hx .art{position:relative;height:300px}
.hx .orb{position:absolute;inset:0;margin:auto;width:210px;height:210px;border-radius:50%;background:rgba(255,255,255,.14);border:2px dashed rgba(255,255,255,.45);display:grid;place-items:center;font-size:96px;animation:hxspin 40s linear infinite}
.hx .orb span{animation:hxspin 40s linear infinite reverse}
@keyframes hxspin{to{transform:rotate(360deg)}}
.hx .fl{position:absolute;font-size:44px;filter:drop-shadow(0 8px 10px rgba(0,0,0,.25));animation:hxbob 4s ease-in-out infinite}
.hx .f1{top:6%;left:8%}.hx .f2{top:10%;right:10%;animation-delay:-1s}.hx .f3{bottom:8%;left:14%;animation-delay:-2s}.hx .f4{bottom:12%;right:6%;animation-delay:-3s}.hx .f5{top:44%;left:-2%;font-size:32px;animation-delay:-1.5s}
@keyframes hxbob{50%{transform:translateY(-16px) rotate(6deg)}}
.hx .stats div{background:rgba(255,255,255,.12);border-radius:14px;padding:10px 18px}
.hx .btn.ai{background:#fff;color:var(--pri)}
@media(max-width:860px){.hx .w{grid-template-columns:1fr}.hx .art{height:200px;order:-1}.hx .orb{width:140px;height:140px;font-size:64px}.hx .fl{font-size:32px}}
