/* ============================================================
   LINGLOM ADMIN — design tokens + login
   โทน: น้ำเงินเข้ม / ขาว / ส้ม  ·  ฟอนต์ Prompt
   ============================================================ */
:root{
  --navy:#0A2540;
  --navy-2:#0E3157;
  --navy-3:#12395F;
  --orange:#FF7A00;
  --orange-deep:#E86A00;
  --ink:#0A2540;
  --muted:#647587;
  --line:#E4EBF2;
  --bg:#F5F8FC;
  --white:#fff;
  --radius:16px;
  --shadow:0 18px 50px rgba(10,37,64,.12);
  --font:'Prompt',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0}
[v-cloak]{display:none}
html,body{height:100%}
body{font-family:var(--font);background:var(--bg);color:var(--ink);-webkit-font-smoothing:antialiased}

/* ---------- layout ---------- */
.login-wrap{min-height:100vh;display:grid;grid-template-columns:1.05fr .95fr}
@media(max-width:900px){.login-wrap{grid-template-columns:1fr}}

/* ---------- brand (ซ้าย) ---------- */
.brand{
  position:relative;overflow:hidden;color:#fff;
  background:radial-gradient(1200px 500px at -10% -20%,var(--navy-3),transparent),
             linear-gradient(150deg,var(--navy) 0%,var(--navy-2) 60%,#0b2c4d 100%);
  padding:56px 52px;display:flex;flex-direction:column;justify-content:center;
  animation:brandIn .7s cubic-bezier(.2,.7,.2,1) both;
}
@media(max-width:900px){
  .brand{padding:40px 28px 90px;min-height:300px}
}
.brand-inner{position:relative;z-index:2;max-width:440px}
.brand-logo{display:flex;align-items:center;gap:14px;margin-bottom:44px}
.logo-mark{
  width:52px;height:52px;border-radius:15px;display:grid;place-items:center;
  background:linear-gradient(140deg,var(--orange),var(--orange-deep));
  font-weight:800;font-size:28px;color:#fff;box-shadow:0 10px 24px rgba(255,122,0,.4);
}
.logo-word{font-size:26px;font-weight:800;letter-spacing:.3px}
.brand-title{font-size:38px;line-height:1.18;font-weight:800;letter-spacing:.2px}
@media(max-width:900px){.brand-title{font-size:28px}}
.brand-sub{margin-top:18px;font-size:16px;line-height:1.7;color:rgba(255,255,255,.72);font-weight:300}
.brand-feats{list-style:none;margin-top:34px;display:flex;flex-direction:column;gap:15px}
.brand-feats li{display:flex;align-items:center;gap:12px;font-size:15px;color:rgba(255,255,255,.9);font-weight:400}
.brand-feats .dot{width:9px;height:9px;border-radius:50%;background:var(--orange);flex:none;box-shadow:0 0 0 4px rgba(255,122,0,.18)}
.brand-foot{position:absolute;left:52px;bottom:26px;z-index:2;font-size:12.5px;color:rgba(255,255,255,.4)}
@media(max-width:900px){.brand-foot{left:28px;bottom:20px}}

/* signature: เส้นทางส่งอาหาร */
.route{position:absolute;right:-30px;bottom:0;width:min(560px,80%);opacity:.9;z-index:1}
.route-path{stroke:rgba(255,255,255,.16);stroke-width:2.5;stroke-dasharray:7 9;fill:none}
.route-dot{fill:var(--orange);filter:drop-shadow(0 0 8px rgba(255,122,0,.7))}
.pin{fill:#fff}.pin.end{fill:var(--orange)}

/* ---------- panel (ขวา) ---------- */
.panel{display:flex;align-items:center;justify-content:center;padding:40px 28px}
.card{width:100%;max-width:410px;animation:cardIn .7s .1s cubic-bezier(.2,.7,.2,1) both}
.card-head h2{font-size:27px;font-weight:700;letter-spacing:.2px}
.card-head p{margin-top:8px;color:var(--muted);font-size:14.5px;font-weight:300}

.form{margin-top:32px;display:flex;flex-direction:column;gap:18px}
.field label{display:block;font-size:13.5px;font-weight:600;margin-bottom:8px;color:#3a4a5b}
.input-box{
  display:flex;align-items:center;gap:10px;background:#fff;border:1.6px solid var(--line);
  border-radius:13px;padding:0 14px;height:52px;transition:border-color .18s,box-shadow .18s;
}
.input-box.focus{border-color:var(--orange);box-shadow:0 0 0 4px rgba(255,122,0,.12)}
.input-box .ic{width:20px;height:20px;fill:#9fb0c0;flex:none}
.input-box.focus .ic{fill:var(--orange)}
.input-box input{border:0;outline:0;flex:1;font-family:var(--font);font-size:15.5px;color:var(--ink);background:transparent}
.input-box input::placeholder{color:#adbccb;font-weight:300}
.eye{border:0;background:transparent;cursor:pointer;padding:4px;display:grid;place-items:center}
.eye svg{width:21px;height:21px;fill:none;stroke:#9fb0c0;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.eye:hover svg{stroke:var(--orange)}

.alert{
  display:flex;align-items:center;gap:9px;background:#FFF2EC;border:1px solid #FFD5BE;
  color:#C64B00;border-radius:11px;padding:12px 14px;font-size:13.5px;font-weight:500;
}
.alert svg{width:19px;height:19px;fill:none;stroke:#E86A00;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}

.remember-row{margin-top:2px}
.chk{display:inline-flex;align-items:center;gap:10px;cursor:pointer;user-select:none}
.chk input{position:absolute;opacity:0;width:0;height:0}
.chk .box{width:22px;height:22px;border-radius:7px;border:1.8px solid var(--line);background:#fff;
  display:grid;place-items:center;transition:all .16s}
.chk .box svg{width:14px;height:14px;fill:none;stroke:#fff;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;
  opacity:0;transform:scale(.6);transition:all .16s}
.chk input:checked + .box{background:var(--orange);border-color:var(--orange)}
.chk input:checked + .box svg{opacity:1;transform:scale(1)}
.chk input:focus-visible + .box{outline:2px solid var(--orange);outline-offset:2px}
.chk-label{font-size:14px;color:#3a4a5b;font-weight:400}

.btn{
  height:53px;border:0;border-radius:13px;cursor:pointer;margin-top:4px;
  background:linear-gradient(135deg,var(--orange),var(--orange-deep));
  color:#fff;font-family:var(--font);font-size:16px;font-weight:700;letter-spacing:.3px;
  box-shadow:0 12px 26px rgba(255,122,0,.32);transition:transform .15s,box-shadow .15s,opacity .15s;
  display:grid;place-items:center;
}
.btn:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 16px 32px rgba(255,122,0,.4)}
.btn:active:not(:disabled){transform:translateY(0)}
.btn:disabled{opacity:.7;cursor:default}
.spin{width:22px;height:22px;border:2.5px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;animation:spin .7s linear infinite}

.hint{margin-top:26px;text-align:center;font-size:13px;color:var(--muted);font-weight:300}

/* focus visible (คีย์บอร์ด) */
:focus-visible{outline:2px solid var(--orange);outline-offset:2px}

/* ---------- animations ---------- */
@keyframes brandIn{from{opacity:0;transform:scale(1.02)}to{opacity:1;transform:none}}
@keyframes cardIn{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
@keyframes spin{to{transform:rotate(360deg)}}
.fade-enter-active,.fade-leave-active{transition:opacity .2s,transform .2s}
.fade-enter-from,.fade-leave-to{opacity:0;transform:translateY(-4px)}

@media(prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important}
  .route-dot{display:none}
}

/* ============================================================
   ADMIN SHELL (sidebar + topbar + dashboard) — เฟส 1
   ============================================================ */
.adm{background:var(--bg)}
.adm-layout{display:flex;min-height:100vh}

/* ---------- Sidebar (icon กรอบ แถวละ 2) ---------- */
.sidebar{
  width:252px;flex:none;color:#fff;display:flex;flex-direction:column;box-sizing:border-box;overflow:hidden;
  background:linear-gradient(180deg,var(--navy) 0%,var(--navy-2) 100%);
  position:sticky;top:0;height:100vh;z-index:40;padding:18px 14px;
}
.sb-brand{display:flex;align-items:center;gap:11px;padding:4px 6px 16px}
.sb-mark{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;flex:none;
  background:linear-gradient(140deg,var(--orange),var(--orange-deep));font-weight:800;font-size:22px;
  box-shadow:0 6px 16px rgba(255,122,0,.4)}
.sb-brand-txt b{display:block;font-size:18px;font-weight:800;letter-spacing:.3px;line-height:1.1}
.sb-brand-txt small{font-size:9.5px;font-weight:700;letter-spacing:2px;color:rgba(255,255,255,.5)}

/* โปรไฟล์ + ฟันเฟือง */
.sb-profile{position:relative;display:flex;align-items:center;gap:8px;background:rgba(255,255,255,.06);
  border-radius:14px;padding:8px;margin-bottom:16px}
.sb-prof-btn{flex:1;display:flex;align-items:center;gap:10px;background:transparent;border:0;cursor:pointer;
  font-family:var(--font);text-align:left;padding:2px;min-width:0}
.sb-avatar{width:40px;height:40px;border-radius:11px;flex:none;display:grid;place-items:center;
  background:linear-gradient(140deg,var(--orange),var(--orange-deep));color:#fff;font-weight:700;font-size:18px}
.sb-prof-info{min-width:0}
.sb-prof-info b{display:block;font-size:13.5px;font-weight:600;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sb-prof-info small{font-size:11px;color:rgba(255,255,255,.55)}
.sb-gear{width:38px;height:38px;flex:none;border:0;border-radius:11px;background:rgba(255,255,255,.08);cursor:pointer;
  display:grid;place-items:center;transition:background .15s}
.sb-gear svg{width:21px;height:21px;fill:rgba(255,255,255,.8);transition:transform .5s}
.sb-gear:hover{background:rgba(255,122,0,.25)}
.sb-gear:hover svg{transform:rotate(180deg);fill:#fff}
.sb-dropdown{position:absolute;top:calc(100% + 8px);left:0;right:0;background:#fff;border-radius:13px;
  box-shadow:0 16px 40px rgba(0,0,0,.28);padding:6px;opacity:0;visibility:hidden;transform:translateY(-6px);
  transition:all .18s;z-index:60}
.sb-profile.open .sb-dropdown{opacity:1;visibility:visible;transform:none}
.sb-dropdown a,.sb-dropdown button{display:flex;align-items:center;gap:10px;width:100%;padding:10px 11px;border:0;
  background:transparent;border-radius:9px;cursor:pointer;font-family:var(--font);font-size:13.5px;font-weight:500;
  color:#3a4a5b;text-decoration:none;text-align:left;transition:background .14s}
.sb-dropdown a:hover,.sb-dropdown button:hover{background:#F5F8FC}
.sb-dropdown svg{width:18px;height:18px;fill:none;stroke:#7a8794;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
.sb-dropdown button:last-child{color:#E03131;border-top:1px solid #eef2f6;margin-top:4px;border-radius:0 0 9px 9px}
.sb-dropdown button:last-child svg{stroke:#E03131}

/* กริดเมนู icon กรอบ แถวละ 2 */
.sb-grid{flex:1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-content:start;overflow:hidden}
.sb-box{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-width:0;
  background:rgba(255,255,255,.06);border:1.5px solid transparent;border-radius:15px;padding:15px 6px;cursor:pointer;
  text-decoration:none;font-family:var(--font);transition:all .16s;min-height:92px}
.sb-box:hover{background:rgba(255,255,255,.12);transform:translateY(-2px)}
.sb-box.active{background:#fff;border-color:var(--orange)}
.sb-box-ic{width:44px;height:44px;border-radius:13px;display:grid;place-items:center;
  background:linear-gradient(140deg,var(--orange),var(--orange-deep));transition:all .16s}
.sb-box-ic svg{width:24px;height:24px;fill:#fff}
.sb-box-lb{font-size:12px;font-weight:600;color:rgba(255,255,255,.85);text-align:center;line-height:1.25;width:100%;overflow:hidden}
.sb-box.active .sb-box-lb{color:var(--navy)}
.sb-copy{text-align:center;font-size:11px;color:rgba(255,255,255,.35);padding-top:12px}
.sb-scrim{display:none}

/* ---------- Main + Topbar ---------- */
.adm-main{flex:1;min-width:0;display:flex;flex-direction:column}
.topbar{height:66px;background:#fff;border-bottom:1px solid var(--line);
  display:flex;align-items:center;gap:14px;padding:0 26px;position:sticky;top:0;z-index:30}
.burger{display:none;border:0;background:transparent;cursor:pointer;padding:6px}
.burger svg{width:26px;height:26px;fill:none;stroke:var(--navy);stroke-width:2;stroke-linecap:round}
.tb-title{font-size:19px;font-weight:700;color:var(--ink);flex:1}
.tb-right{display:flex;align-items:center;gap:16px}
.tb-name{font-size:14px;color:var(--muted);font-weight:500}
.tb-logout{border:1.5px solid var(--line);background:#fff;color:#3a4a5b;cursor:pointer;
  padding:8px 16px;border-radius:10px;font-family:var(--font);font-size:13.5px;font-weight:600;transition:all .15s}
.tb-logout:hover{border-color:var(--orange);color:var(--orange-deep)}
.adm-content{padding:28px;flex:1}

/* ---------- Dashboard ---------- */
.hello{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}
.hello h2{font-size:23px;font-weight:700;color:var(--ink)}
.hello p{color:var(--muted);font-size:14px;font-weight:300;margin-top:4px}
.refresh{width:44px;height:44px;border-radius:12px;border:1.5px solid var(--line);background:#fff;cursor:pointer;
  display:grid;place-items:center;transition:all .15s}
.refresh svg{width:20px;height:20px;fill:none;stroke:var(--navy);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.refresh:hover{border-color:var(--orange)}
.refresh:hover svg{stroke:var(--orange)}
.refresh.spin svg{animation:spin .8s linear infinite}

.attention{display:flex;gap:14px;flex-wrap:wrap;margin-bottom:22px}
.att-card{display:flex;align-items:center;gap:12px;background:#fff;border-radius:14px;padding:14px 18px;
  box-shadow:var(--shadow);flex:1;min-width:240px;border-left:4px solid}
.att-card.orange{border-color:var(--orange)}
.att-card.blue{border-color:#1971C2}
.att-card.red{border-color:#E03131}
.att-ic{width:40px;height:40px;border-radius:11px;display:grid;place-items:center;flex:none;background:#F5F8FC}
.att-ic svg{width:22px;height:22px;fill:none;stroke:var(--navy);stroke-width:2;stroke-linejoin:round}
.att-card.orange .att-ic{background:#FFF2E8}.att-card.orange .att-ic svg{stroke:var(--orange-deep)}
.att-card.blue .att-ic{background:#EAF2FB}.att-card.blue .att-ic svg{stroke:#1971C2}
.att-card.red .att-ic{background:#FFF0F0}.att-card.red .att-ic svg{stroke:#E03131}
.att-card b{font-size:20px;color:var(--ink)}
.att-card div{flex:1;font-size:14px;color:#3a4a5b}
.att-card a{color:var(--orange-deep);font-weight:700;font-size:13.5px;text-decoration:none;white-space:nowrap}
.att-card a:hover{text-decoration:underline}

.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
@media(max-width:1100px){.stat-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:520px){.stat-grid{grid-template-columns:1fr}}
.stat{background:#fff;border-radius:16px;padding:20px;display:flex;align-items:center;gap:15px;
  box-shadow:var(--shadow);transition:transform .15s}
.stat:hover{transform:translateY(-3px)}
.stat-ic{width:52px;height:52px;border-radius:14px;display:grid;place-items:center;flex:none}
.stat-ic svg{width:26px;height:26px;fill:#fff}
.stat-ic.o{background:linear-gradient(140deg,#FF8A2B,#E86A00)}
.stat-ic.g{background:linear-gradient(140deg,#3BC77A,#2E8B57)}
.stat-ic.b{background:linear-gradient(140deg,#3B9BE8,#1971C2)}
.stat-ic.teal{background:linear-gradient(140deg,#2BC4C4,#118A8A)}
.stat-ic.gold{background:linear-gradient(140deg,#FFC93C,#F59F00)}
.stat-ic.red{background:linear-gradient(140deg,#FF6B6B,#E03131)}
.stat-body{display:flex;flex-direction:column;min-width:0}
.stat-num{font-size:26px;font-weight:800;color:var(--ink);line-height:1.1}
.stat-lbl{font-size:13px;color:var(--muted);font-weight:400;margin-top:3px}
.err-box{margin-top:18px;background:#FFF2EC;border:1px solid #FFD5BE;color:#C64B00;
  padding:12px 16px;border-radius:12px;font-size:14px}

/* ---------- soon page ---------- */
.soon{text-align:center;padding:80px 20px;max-width:440px;margin:0 auto}
.soon-ic{width:88px;height:88px;border-radius:24px;margin:0 auto 22px;display:grid;place-items:center;
  background:#EAF2FB}
.soon-ic svg{width:44px;height:44px;fill:var(--navy)}
.soon h2{font-size:24px;font-weight:700;color:var(--ink)}
.soon p{color:var(--muted);margin-top:10px;font-weight:300}
.soon-back{display:inline-block;margin-top:24px;color:var(--orange-deep);font-weight:700;text-decoration:none}
.soon-back:hover{text-decoration:underline}

/* ---------- responsive sidebar ---------- */
@media(max-width:860px){
  .sidebar{position:fixed;left:0;top:0;transform:translateX(-100%);transition:transform .25s;box-shadow:0 0 40px rgba(0,0,0,.3)}
  .sidebar.open{transform:none}
  .burger{display:grid;place-items:center}
  .sb-scrim.show{display:block;position:fixed;inset:0;background:rgba(10,37,64,.5);z-index:35}
  .tb-name{display:none}
}

/* ============================================================
   UI FRAMEWORK — Loading / Toast / Modal (รอบ A: A1-A3)
   ============================================================ */

/* ---------- LOADING overlay (Linglom หมุน) ---------- */
.lg-loading{position:fixed;inset:0;z-index:9000;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:22px;background:rgba(10,37,64,.82);backdrop-filter:blur(6px);opacity:0;visibility:hidden;transition:opacity .25s}
.lg-loading.show{opacity:1;visibility:visible}
.lg-loader{position:relative;width:110px;height:110px;display:grid;place-items:center}
.lg-ring{position:absolute;inset:0;border-radius:50%;border:3px solid transparent}
.lg-ring.r1{border-top-color:var(--orange);border-right-color:var(--orange);animation:lgspin 1s linear infinite}
.lg-ring.r2{inset:14px;border-bottom-color:#FFC93C;border-left-color:#FFC93C;animation:lgspin 1.3s linear infinite reverse}
.lg-logo{width:62px;height:62px;border-radius:20px;display:grid;place-items:center;
  background:linear-gradient(140deg,var(--orange),var(--orange-deep));color:#fff;font-weight:800;font-size:32px;
  box-shadow:0 0 30px rgba(255,122,0,.6)}
.lg-loadtext{color:#fff;font-size:19px;font-weight:700;letter-spacing:3px;opacity:.9;
  animation:lgpulse 1.4s ease-in-out infinite}
@keyframes lgspin{to{transform:rotate(360deg)}}
@keyframes lgpulse{0%,100%{opacity:.4}50%{opacity:1}}

/* ---------- TOAST ---------- */
.lg-toasts{position:fixed;top:20px;right:20px;z-index:9200;display:flex;flex-direction:column;gap:12px;width:340px;max-width:calc(100vw - 40px)}
.lg-toast{position:relative;overflow:hidden;display:flex;align-items:flex-start;gap:12px;background:#fff;
  border-radius:14px;padding:14px 40px 14px 14px;box-shadow:0 14px 40px rgba(10,37,64,.2);
  transform:translateX(120%);opacity:0;transition:transform .3s cubic-bezier(.2,.8,.2,1),opacity .3s}
.lg-toast.show{transform:none;opacity:1}
.lg-toast.hide{transform:translateX(120%);opacity:0}
.lg-toast-ic{width:38px;height:38px;border-radius:11px;flex:none;display:grid;place-items:center}
.lg-toast-ic svg{width:20px;height:20px;fill:none;stroke:#fff;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.lg-toast.success .lg-toast-ic{background:linear-gradient(140deg,#3BC77A,#2E8B57)}
.lg-toast.error .lg-toast-ic{background:linear-gradient(140deg,#FF6B6B,#E03131)}
.lg-toast.warn .lg-toast-ic{background:linear-gradient(140deg,#FFC93C,#F59F00)}
.lg-toast.info .lg-toast-ic{background:linear-gradient(140deg,#3B9BE8,#1971C2)}
.lg-toast-body{flex:1;padding-top:1px}
.lg-toast-body b{display:block;font-size:14.5px;font-weight:700;color:var(--ink);margin-bottom:2px}
.lg-toast-body span{font-size:13.5px;color:#4a5a6b;line-height:1.5}
.lg-toast-x{position:absolute;top:8px;right:10px;border:0;background:transparent;font-size:20px;color:#b7c2cd;cursor:pointer;line-height:1}
.lg-toast-x:hover{color:var(--ink)}
.lg-toast-bar{position:absolute;left:0;bottom:0;height:3px;width:100%;background:rgba(0,0,0,.05)}
.lg-toast-bar i{display:block;height:100%;width:100%}
.lg-toast.success .lg-toast-bar i{background:#2E8B57}
.lg-toast.error .lg-toast-bar i{background:#E03131}
.lg-toast.warn .lg-toast-bar i{background:#F59F00}
.lg-toast.info .lg-toast-bar i{background:#1971C2}

/* ---------- MODAL ---------- */
.lg-modal{position:fixed;inset:0;z-index:9100;display:flex;align-items:center;justify-content:center;padding:24px;
  opacity:0;visibility:hidden;transition:opacity .22s}
.lg-modal.show{opacity:1;visibility:visible}
.lg-modal-scrim{position:absolute;inset:0;background:rgba(10,37,64,.5);backdrop-filter:blur(4px)}
.lg-modal-card{position:relative;z-index:1;background:#fff;border-radius:24px;padding:30px 30px 30px;
  width:100%;max-width:440px;box-shadow:0 30px 70px rgba(10,37,64,.3);text-align:center;
  transform:translateY(20px) scale(.97);transition:transform .28s cubic-bezier(.2,.8,.2,1)}
.lg-modal.show .lg-modal-card{transform:none}
.lg-modal-card.wide{max-width:560px}
.lg-modal-x{position:absolute;top:14px;right:16px;width:34px;height:34px;border:0;border-radius:10px;
  background:#F2F5F9;color:#7a8794;font-size:22px;cursor:pointer;line-height:1;transition:all .15s}
.lg-modal-x:hover{background:#E5EBF1;color:var(--ink)}
.lg-modal-icon{width:74px;height:74px;border-radius:22px;margin:0 auto 18px;display:grid;place-items:center}
.lg-modal-icon svg{width:38px;height:38px;fill:none;stroke:#fff;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.lg-modal-icon.succ{background:linear-gradient(140deg,#3BC77A,#2E8B57)}
.lg-modal-icon.err{background:linear-gradient(140deg,#FF6B6B,#E03131)}
.lg-modal-icon.warn{background:linear-gradient(140deg,#FFC93C,#F59F00)}
.lg-modal-icon.info{background:linear-gradient(140deg,#3B9BE8,#1971C2)}
.lg-modal-title{font-size:21px;font-weight:700;color:var(--ink);margin-bottom:8px}
.lg-modal-content{color:#556676;font-size:14.5px;line-height:1.65}
.lg-modal-text{color:#556676;font-size:14.5px;line-height:1.65}
.lg-modal-actions{display:flex;gap:10px;justify-content:center;margin-top:24px;flex-wrap:wrap}
.lg-btn{border:0;border-radius:12px;padding:12px 24px;cursor:pointer;font-family:var(--font);
  font-size:14.5px;font-weight:700;transition:transform .12s,box-shadow .15s,background .15s}
.lg-btn:hover{transform:translateY(-1px)}
.lg-btn.primary{background:linear-gradient(135deg,var(--orange),var(--orange-deep));color:#fff;box-shadow:0 8px 20px rgba(255,122,0,.32)}
.lg-btn.danger{background:linear-gradient(135deg,#FF6B6B,#E03131);color:#fff;box-shadow:0 8px 20px rgba(224,49,49,.3)}
.lg-btn.ghost{background:#F2F5F9;color:#4a5a6b}
.lg-btn.ghost:hover{background:#E5EBF1}

/* modal เมนูย่อย (icon grid) */
.lg-sub-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(118px,1fr));gap:14px;margin-top:10px}
.lg-sub{display:flex;flex-direction:column;align-items:center;gap:12px;padding:22px 10px;border-radius:18px;
  background:#F7F9FC;border:1.5px solid #EDF1F6;text-decoration:none;transition:all .18s cubic-bezier(.2,.8,.2,1)}
.lg-sub:hover{background:#fff;border-color:var(--orange);box-shadow:0 6px 16px rgba(255,122,0,.12)}
.lg-sub-ic{width:58px;height:58px;border-radius:18px;display:grid;place-items:center;
  background:linear-gradient(145deg,#FFE8D2,#FFD3AE);transition:all .18s}
.lg-sub:hover .lg-sub-ic{background:linear-gradient(140deg,var(--orange),var(--orange-deep))}
.lg-sub-ic svg{width:27px;height:27px;fill:var(--orange-deep);transition:fill .18s}
.lg-sub:hover .lg-sub-ic svg{fill:#fff}
.lg-sub-lb{font-size:13px;font-weight:600;color:var(--ink);text-align:center;line-height:1.35}

@media(prefers-reduced-motion:reduce){
  .lg-ring{animation:none!important}
  .lg-loadtext{animation:none!important}
}

/* ---------- Topbar profile dropdown (A4 บางส่วน) ---------- */
.tb-profile{position:relative}
.tb-prof-btn{display:flex;align-items:center;gap:11px;border:1.5px solid var(--line);background:#fff;
  border-radius:13px;padding:6px 12px 6px 6px;cursor:pointer;font-family:var(--font);transition:border-color .15s}
.tb-prof-btn:hover{border-color:var(--orange)}
.tb-avatar{width:38px;height:38px;border-radius:10px;flex:none;display:grid;place-items:center;
  background:linear-gradient(140deg,var(--navy-3),var(--navy));color:#fff;font-weight:700;font-size:17px}
.tb-prof-name{text-align:left;line-height:1.25}
.tb-prof-name b{display:block;font-size:13.5px;font-weight:600;color:var(--ink)}
.tb-prof-name small{font-size:11.5px;color:var(--muted)}
.tb-caret{width:18px;height:18px;fill:none;stroke:#9fb0c0;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s}
.tb-profile.open .tb-caret{transform:rotate(180deg)}
.tb-dropdown{position:absolute;top:calc(100% + 8px);right:0;width:230px;background:#fff;border-radius:14px;
  box-shadow:0 16px 44px rgba(10,37,64,.18);border:1px solid var(--line);padding:7px;
  opacity:0;visibility:hidden;transform:translateY(-6px);transition:all .18s;z-index:50}
.tb-profile.open .tb-dropdown{opacity:1;visibility:visible;transform:none}
.tb-dropdown a,.tb-dropdown button{display:flex;align-items:center;gap:11px;width:100%;padding:11px 12px;border:0;
  background:transparent;border-radius:10px;cursor:pointer;font-family:var(--font);font-size:14px;font-weight:500;
  color:#3a4a5b;text-decoration:none;text-align:left;transition:background .14s}
.tb-dropdown a:hover,.tb-dropdown button:hover{background:#F5F8FC}
.tb-dropdown svg{width:19px;height:19px;fill:none;stroke:#7a8794;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
.tb-dropdown button:last-child{color:#E03131;border-top:1px solid var(--line);border-radius:0 0 10px 10px;margin-top:4px}
.tb-dropdown button:last-child svg{stroke:#E03131}
@media(max-width:860px){.tb-prof-name{display:none}}
