/* =====================================================================
 *  login.css — NEXIRO29 หน้าล็อกอิน
 *  Extracted from login.js — ห้ามแก้ CSS ใน login.js โดยตรง
 * ===================================================================== */

/* ===== Layout หลัก ===== */
#nx-gate {
  position: fixed; inset: 0; z-index: 99999;
  display: flex; overflow: hidden;
  font-family: "Anuphan", system-ui, sans-serif;
  background: #efe9fb;
}
#nx-gate * { box-sizing: border-box; }

/* ===== ซ้าย: ภาพร้าน ===== */
#nx-gate .nx-left {
  position: relative; flex: 1 1 50%; min-width: 0;
  overflow: hidden; display: flex;
  align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 42%, #3a1d63 0%, #241041 55%, #180a2e 100%);
}
#nx-gate .nx-left .nx-bg-fill {
  display: none; position: absolute; inset: -40px;
  width: calc(100% + 80px); height: calc(100% + 80px);
  object-fit: cover;
  filter: blur(36px) brightness(.5) saturate(1.15);
  transition: filter .7s ease;
}
#nx-gate.light-off .nx-left .nx-bg-fill {
  filter: blur(36px) brightness(.14) saturate(.55);
}
#nx-gate .nx-stage {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%); z-index: 2;
  aspect-ratio: 1330 / 1182;
  min-width: 100%; min-height: 100%; width: auto; height: auto;
}
#nx-gate .nx-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center center;
  transition: filter .7s ease;
}
#nx-gate.light-off .nx-bg { filter: brightness(.3) saturate(.65); }
#nx-gate .nx-stage .nx-left-dim {
  position: absolute; inset: 0; pointer-events: none;
  opacity: 0; transition: opacity .7s ease;
  background: radial-gradient(circle at 60% 46%, rgba(20,8,40,.1), rgba(11,5,24,.85));
}
#nx-gate.light-off .nx-stage .nx-left-dim { opacity: 1; }
#nx-gate .nx-stage .nx-flash {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 88% 52%, rgba(214,158,255,.6), transparent 40%);
}
#nx-gate.flash-on .nx-stage .nx-flash { animation: nxFlash .7s ease; }
@keyframes nxFlash {
  0%   { opacity: 0; }
  35%  { opacity: .9; }
  100% { opacity: 0; }
}

/* ===== สวิตช์ SALON LIGHTS ===== */
#nx-gate .nx-stage .nx-switch {
  position: absolute; left: 80%; top: 30.5%; width: 8.5%; height: 15.5%;
  z-index: 10; border: 0; padding: 0; margin: 0;
  background: transparent; border-radius: 10px; cursor: pointer; outline: none;
  transition: transform .16s ease, box-shadow .18s ease;
  touch-action: manipulation;
}
#nx-gate .nx-stage .nx-switch:hover::before { opacity: .9; transform: scale(1.12); }
#nx-gate .nx-stage .nx-switch:focus-visible {
  box-shadow: 0 0 0 4px rgba(255,255,255,.9), 0 0 0 7px rgba(129,69,220,.7);
}
#nx-gate .nx-stage .nx-switch.pressing { transform: scale(.95); }
#nx-gate .nx-stage .nx-switch::before {
  content: ""; position: absolute; inset: 4%; border-radius: 50%; opacity: 0;
  filter: blur(7px);
  background: radial-gradient(circle, rgba(222,155,255,.55), transparent 62%);
  transition: opacity .3s ease, transform .3s ease;
}
#nx-gate:not(.light-off) .nx-stage .nx-switch::before { opacity: .35; }

/* ===== ป้ายสถานะไฟ ===== */
#nx-gate .nx-state {
  position: absolute; left: 20px; top: 18px; z-index: 11;
  display: flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: 999px;
  background: rgba(24,12,34,.6); border: 1px solid rgba(255,255,255,.16);
  color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .1em;
  backdrop-filter: blur(6px);
}
#nx-gate .nx-state .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #7CF29A; box-shadow: 0 0 8px #7CF29A;
  transition: background .3s, box-shadow .3s;
}
#nx-gate.light-off .nx-state .dot { background: #9a8fb5; box-shadow: none; }

/* ===== Tooltip สวิตช์ ===== */
#nx-gate .nx-stage .nx-switch-tip {
  position: absolute; left: 69%; top: 46.5%; z-index: 11;
  pointer-events: none; display: flex; flex-direction: column;
  align-items: flex-start; opacity: .92; transition: opacity .6s ease;
}
#nx-gate .nx-stage .nx-switch-tip .tip-arrow {
  width: 92px; height: 64px; display: block; margin: 0 0 -2px 46px;
  color: #efe2ff; opacity: .85;
  animation: nxBob 2.6s ease-in-out infinite;
}
#nx-gate .nx-stage .nx-switch-tip .tip-txt {
  font-size: 13px; font-weight: 600; letter-spacing: .02em; color: #f2e8ff;
  text-shadow: 0 1px 10px rgba(20,8,40,.9), 0 0 24px rgba(20,8,40,.7);
  white-space: nowrap;
}
#nx-gate.tip-used .nx-stage .nx-switch-tip { opacity: 0; }
@keyframes nxBob {
  0%, 100% { transform: translate(0, 0); }
  50%       { transform: translate(4px, -5px); }
}

/* ===== ขวา: พื้นหลัง ===== */
#nx-gate .nx-right {
  flex: 0 0 42%; max-width: none;
  display: flex; padding: 28px 30px; overflow-y: auto;
  background: linear-gradient(150deg, #d9c9f5 0%, #e9def9 45%, #f3ecfc 100%);
  transition: background .6s ease;
}
#nx-gate.light-off .nx-right {
  background:
    radial-gradient(120% 80% at 18% 10%,  rgba(133,86,208,.40),  transparent 58%),
    radial-gradient(100% 70% at 88% 22%,  rgba(88,50,166,.45),   transparent 60%),
    radial-gradient(120% 90% at 65% 100%, rgba(158,100,226,.26), transparent 62%),
    linear-gradient(160deg, #281549 0%, #1c1035 46%, #150b28 100%);
}
#nx-gate .nx-right-inner {
  position: relative; width: 100%; max-width: 460px; margin: auto;
  transition: max-width .45s ease;
}
#nx-gate.light-off .nx-right-inner { max-width: 660px; }

/* ===== สลับแผง (ฟอร์ม ↔ โหมดปิดไฟ) ===== */
#nx-gate .nx-panel { transition: opacity .35s ease, transform .35s ease; }
#nx-gate .nx-panel.is-hidden { opacity: 0; transform: translateY(10px); pointer-events: none; }
#nx-gate .nx-panel.is-gone   { display: none; }

/* ===== การ์ดฟอร์มขาว (ไฟเปิด) ===== */
#nx-gate .nx-card {
  width: 100%;
  background: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.9);
  border-radius: 26px; padding: 28px 30px 30px;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px rgba(80,50,150,.18);
}
#nx-gate .nx-badge {
  display: block; width: fit-content; margin: 0 auto 18px;
  font-size: 12.5px; font-weight: 700; color: #7B4FE0;
  background: rgba(255,255,255,.75); border: 1px solid rgba(150,110,230,.3);
  padding: 7px 18px; border-radius: 999px;
}
#nx-gate .nx-logo {
  text-align: center; font-size: 42px; font-weight: 800;
  letter-spacing: -.02em; margin: 0; line-height: 1;
  background: linear-gradient(90deg, #5b2fd0 0%, #7c3fe3 40%, #d648c8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
#nx-gate .nx-tagline {
  text-align: center; font-size: 12px; font-weight: 700;
  letter-spacing: .24em; color: #9a7fd0; margin: 8px 0 22px;
}
#nx-gate h1 {
  text-align: center; margin: 0 0 4px;
  font-size: 25px; font-weight: 800; color: #2b2150;
}
#nx-gate .nx-sub {
  text-align: center; margin: 0 0 24px; font-size: 14px; color: #8a83a6;
}
#nx-gate label {
  display: block; font-size: 14px; font-weight: 600; color: #6b6488; margin: 0 0 7px;
}
#nx-gate .nx-field { position: relative; margin-bottom: 18px; }
#nx-gate .nx-field .sym {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: #9a8fbb; font-size: 16px; pointer-events: none;
}
#nx-gate input {
  width: 100%; height: 54px; padding: 0 48px;
  font-family: inherit; font-size: 15.5px;
  border: 1px solid rgba(140,120,190,.28); border-radius: 16px;
  background: rgba(255,255,255,.9); color: #372b4e;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
#nx-gate input::placeholder { color: #b3aac8; }
#nx-gate input:focus {
  border-color: #8052e8; box-shadow: 0 0 0 4px rgba(128,82,232,.13); background: #fff;
}
#nx-gate .nx-eye {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border: 0; background: transparent;
  color: #8073a0; cursor: pointer; font-size: 17px; border-radius: 9px;
}
#nx-gate .nx-eye:hover { background: rgba(119,83,184,.08); }
#nx-gate .nx-submit {
  width: 100%; height: 56px; margin-top: 8px; border: 0;
  border-radius: 17px; cursor: pointer; color: #fff;
  font-family: inherit; font-size: 16.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  background: linear-gradient(90deg, #5b2fd0 0%, #8a4cf1 55%, #d54bd5 100%);
  box-shadow: 0 14px 30px rgba(106,66,222,.3);
  transition: transform .15s, filter .15s;
}
#nx-gate .nx-submit:hover   { transform: translateY(-1px); filter: brightness(1.06); }
#nx-gate .nx-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; filter: none; }
#nx-gate .nx-error {
  margin-top: 15px; font-size: 13.5px; color: #B23A2C;
  background: #FBE0D9; padding: 10px 13px; border-radius: 11px; display: none;
}
#nx-gate .nx-feats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 20px;
}
#nx-gate .nx-feat {
  background: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.8);
  border-radius: 16px; padding: 14px 8px; text-align: center;
}
#nx-gate .nx-feat .fi { font-size: 22px; margin-bottom: 8px; }
#nx-gate .nx-feat .ft { font-size: 13px; font-weight: 700; color: #4a4270; margin-bottom: 2px; }
#nx-gate .nx-feat .fd { font-size: 11.5px; color: #9a8fb5; }
#nx-gate .nx-copyright { text-align: center; font-size: 12px; color: #a99fc4; margin-top: 18px; }

/* =====================================================================
 *  โหมดปิดไฟ (Lights Off) — การ์ดกระจก
 * ===================================================================== */
#nx-gate .nx-night {
  position: relative; overflow: hidden; border-radius: 30px; padding: 20px 22px 20px;
  background: linear-gradient(160deg, rgba(255,255,255,.11), rgba(255,255,255,.03) 48%, rgba(255,255,255,.07));
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 70px rgba(10,4,28,.55), inset 0 1px 0 rgba(255,255,255,.15);
}
#nx-gate .nx-night .deco-moon {
  position: absolute; left: 30px; top: 78px; width: 30px; height: 30px;
  border-radius: 50%; box-shadow: inset -10px -6px 0 0 rgba(246,240,255,.92);
  filter: drop-shadow(0 0 12px rgba(198,168,255,.55)); pointer-events: none;
}
#nx-gate .nx-night .deco-stars {
  position: absolute; left: 0; top: 0; width: 2px; height: 2px;
  border-radius: 50%; background: transparent; pointer-events: none;
  box-shadow:
    28px 152px 0 0 rgba(255,255,255,.55), 74px 118px 0 0 rgba(255,255,255,.32),
    96px 168px 0 0 rgba(255,255,255,.45), 46px 196px 0 0 rgba(255,255,255,.25),
    18px 128px 0 0 rgba(255,255,255,.30),120px 132px 0 0 rgba(255,255,255,.20),
    62px 152px 0 0 rgba(255,255,255,.40);
}
#nx-gate .nx-night .deco-paw {
  position: absolute; right: 20px; top: 52px; width: 96px; height: 96px;
  opacity: .085; transform: rotate(12deg); pointer-events: none; fill: #fff;
}
#nx-gate .nx-night-pill {
  position: relative; z-index: 2; display: flex; width: fit-content;
  margin: 0 auto 14px; align-items: center; gap: 10px;
  padding: 9px 20px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  color: #f0e8ff; background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.20); backdrop-filter: blur(6px);
}
#nx-gate .nx-night-pill i {
  width: 8px; height: 8px; border-radius: 50%;
  background: #ea5fce; box-shadow: 0 0 9px #ea5fce;
}
#nx-gate .nx-night-logo {
  position: relative; z-index: 2; text-align: center; margin: 0;
  font-size: 40px; line-height: 1; font-weight: 800; letter-spacing: -.02em;
  background: linear-gradient(92deg, #6f5bff 0%, #9a5ef0 36%, #e05ad6 70%, #ff6ec8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
#nx-gate .nx-night-tag {
  position: relative; z-index: 2; text-align: center; margin: 8px 0 14px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .3em; color: #bd8ce8;
}
#nx-gate .nx-night-h {
  position: relative; z-index: 2; text-align: center; margin: 0 0 6px;
  font-size: 21px; line-height: 1.4; font-weight: 800; color: #fff;
}
#nx-gate .nx-night-sub {
  position: relative; z-index: 2; text-align: center;
  margin: 0 0 14px; font-size: 13.5px; color: #b7a7dd;
}
#nx-gate .nx-night-grid {
  position: relative; z-index: 2; display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
}
#nx-gate .nx-ncard {
  position: relative; padding: 13px 12px 12px; border-radius: 17px; text-align: center;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.11);
  cursor: pointer; transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
#nx-gate .nx-ncard:focus-visible { outline: 3px solid rgba(255,255,255,.85); outline-offset: 3px; }
#nx-gate .nx-ncard:hover {
  transform: translateY(-3px); background: rgba(255,255,255,.09);
  border-color: rgba(214,150,255,.38);
}
#nx-gate .nx-ncard .top {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px;
}
#nx-gate .nx-ncard .ic {
  width: 42px; height: 42px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 21px; line-height: 1;
  background: linear-gradient(145deg, rgba(155,98,246,.45), rgba(94,58,188,.32));
  border: 1px solid rgba(255,255,255,.14);
}
#nx-gate .nx-ncard .new {
  font-size: 10.5px; font-weight: 800; letter-spacing: .06em; color: #fff;
  padding: 4px 11px; border-radius: 999px; white-space: nowrap;
  background: linear-gradient(90deg, #a03ce2, #ef52b2);
}
#nx-gate .nx-ncard .tag  { margin: 0 0 9px; font-size: 15px; font-weight: 800; color: #fff; }
#nx-gate .nx-ncard .ttl  { margin: 0 0 6px; font-size: 14px; font-weight: 700; color: #efe6ff; line-height: 1.4; }
#nx-gate .nx-ncard .ttl b { font-weight: 800; color: #f18ada; white-space: nowrap; }
#nx-gate .nx-ncard .dsc  { margin: 0; font-size: 12.5px; color: #a99bd0; line-height: 1.6; }
#nx-gate .nx-ncard .lnk {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 13px;
  font-size: 12.5px; font-weight: 700; color: #c98bf5;
  text-decoration: none; font-family: inherit;
}
#nx-gate .nx-ncard a.lnk { cursor: pointer; }
#nx-gate .nx-ncard a.lnk:hover { color: #e0a6ff; }
#nx-gate .nx-ncard a.lnk:focus-visible {
  outline: 2px solid rgba(255,255,255,.8); outline-offset: 3px; border-radius: 6px;
}
#nx-gate .nx-ncard .lnk span { transition: transform .18s ease; }
#nx-gate .nx-ncard:hover .lnk span { transform: translateX(4px); }
#nx-gate .nx-night-note {
  position: relative; z-index: 2; display: flex; align-items: center;
  gap: 12px; margin-top: 12px; padding: 10px 15px; border-radius: 17px;
  background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.11);
}
#nx-gate .nx-night-note .ic { flex: none; font-size: 27px; line-height: 1; }
#nx-gate .nx-night-note p b {
  font-weight: 800; letter-spacing: .06em; white-space: nowrap;
  background: linear-gradient(90deg, #a273ff 0%, #c76bf0 55%, #ff6ec8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 10px rgba(190,120,255,.45));
}
#nx-gate .nx-night-note p { margin: 0; font-size: 13px; line-height: 1.65; color: #ccbeea; }
#nx-gate .nx-night-btn {
  position: relative; z-index: 2; width: 100%; height: 54px; margin-top: 12px;
  border: 0; border-radius: 19px; cursor: pointer; color: #fff;
  font-family: inherit; font-size: 18px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(90deg, #5b3ae0 0%, #8a4cf1 45%, #e055c8 100%);
  box-shadow: 0 18px 40px rgba(122,60,224,.45);
  transition: transform .15s, filter .15s;
}
#nx-gate .nx-night-btn:hover        { transform: translateY(-1px); filter: brightness(1.07); }
#nx-gate .nx-night-btn:focus-visible { outline: 3px solid rgba(255,255,255,.85); outline-offset: 3px; }
#nx-gate .nx-night-feats {
  display: grid; gap: 10px; margin-top: 12px;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
}
#nx-gate .nx-nfeat {
  padding: 12px 8px; border-radius: 16px; text-align: center;
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.09);
}
#nx-gate .nx-nfeat .fi { font-size: 22px; line-height: 1; margin-bottom: 7px; }
#nx-gate .nx-nfeat .ft { font-size: 14px; font-weight: 700; color: #ece3fb; margin-bottom: 3px; }
#nx-gate .nx-nfeat .fd { font-size: 12px; color: #a495c9; }
#nx-gate .nx-night-copy { text-align: center; font-size: 12px; color: #8d7fb4; margin-top: 12px; }

/* =====================================================================
 *  Modal รายละเอียด
 * ===================================================================== */
#nx-gate .nx-modal {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center;
  padding: 24px 18px; overflow-y: auto; opacity: 0; pointer-events: none;
  background: rgba(16,7,36,.66); backdrop-filter: blur(7px);
  transition: opacity .25s ease;
}
#nx-gate .nx-modal.open { opacity: 1; pointer-events: auto; }
#nx-gate .nx-modal-box {
  position: relative; width: 100%; max-width: 600px; margin: auto;
  border-radius: 30px; padding: 26px 30px 24px;
  transform: translateY(14px) scale(.97);
  transition: transform .28s cubic-bezier(.2,.8,.3,1);
  background: linear-gradient(165deg, #fbf8ff 0%, #f2ecff 55%, #eae1fb 100%);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 40px 90px rgba(18,7,48,.55);
}
#nx-gate .nx-modal.open .nx-modal-box { transform: none; }
#nx-gate .nx-modal-x {
  position: absolute; right: 20px; top: 20px;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(140,110,200,.16); background: #fff;
  color: #6b6488; font-size: 19px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; line-height: 1;
  box-shadow: 0 6px 16px rgba(70,40,130,.12);
  transition: transform .15s, background .15s;
}
#nx-gate .nx-modal-x:hover { transform: rotate(90deg); background: #f6f1ff; }
#nx-gate .nx-modal-top   { display: flex; align-items: center; gap: 12px; margin: 0 52px 20px 0; }
#nx-gate .nx-modal-tag   { font-size: 14px; font-weight: 700; padding: 8px 18px; border-radius: 999px; }
#nx-gate .nx-modal-tag.promo   { background: #fdeaf5; color: #cf5399; }
#nx-gate .nx-modal-tag.feature { background: #ece6fd; color: #6c3fe3; }
#nx-gate .nx-modal-tag.update  { background: #e0eefa; color: #1e6fa5; }
#nx-gate .nx-modal-badge {
  margin-left: auto; font-size: 13.5px; font-weight: 700; color: #6b4aa8;
  background: rgba(122,80,200,.13); padding: 8px 16px; border-radius: 999px; white-space: nowrap;
}
#nx-gate .nx-modal-head { display: flex; align-items: center; gap: 20px; margin-bottom: 14px; }
#nx-gate .nx-modal-head .ic {
  flex: none; width: 96px; height: 96px; border-radius: 26px;
  display: flex; align-items: center; justify-content: center;
  font-size: 46px; line-height: 1;
  background: linear-gradient(150deg, #c193fa, #8a5ce0);
  box-shadow: 0 14px 30px rgba(120,70,215,.32);
}
#nx-gate .nx-modal-head h3 {
  margin: 0; font-size: 26px; line-height: 1.35; font-weight: 800; color: #3a2a63;
}
#nx-gate .nx-modal-head h3 b { font-weight: 800; color: #3a2a63; white-space: nowrap; }
#nx-gate .nx-modal-desc { margin: 0 0 22px; font-size: 15.5px; line-height: 1.75; color: #6f6490; }
#nx-gate .nx-modal-sec { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
#nx-gate .nx-modal-sec .ic {
  width: 32px; height: 32px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; background: #7c4fd8; color: #fff;
}
#nx-gate .nx-modal-sec h4 { margin: 0; font-size: 17.5px; font-weight: 800; color: #4b3583; }
#nx-gate .nx-modal-list {
  list-style: none; margin: 0 0 22px; padding: 0;
  display: flex; flex-direction: column; gap: 11px;
}
#nx-gate .nx-modal-list li {
  display: flex; align-items: flex-start; gap: 11px;
  font-size: 15px; line-height: 1.6; color: #4f4570;
}
#nx-gate .nx-modal-list li::before {
  content: "✓"; flex: none; width: 21px; height: 21px; margin-top: 2px;
  border-radius: 50%; background: #7c4fd8; color: #fff;
  font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
#nx-gate .nx-modal-acts {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 13px;
  padding-top: 20px; border-top: 1px solid rgba(120,90,180,.16);
}
#nx-gate .nx-modal-call {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  height: 74px; border: 0; border-radius: 18px; cursor: pointer;
  text-decoration: none; color: #fff; font-family: inherit;
  background: linear-gradient(135deg, #8451dd, #6a35c6);
  box-shadow: 0 14px 30px rgba(106,53,198,.32);
  transition: transform .15s, filter .15s;
}
#nx-gate .nx-modal-call:hover { transform: translateY(-2px); filter: brightness(1.06); }
#nx-gate .nx-modal-call .ph  { font-size: 22px; line-height: 1; }
#nx-gate .nx-modal-call .tx  { display: flex; flex-direction: column; align-items: center; }
#nx-gate .nx-modal-call .t1  { font-size: 17px; font-weight: 800; line-height: 1.3; }
#nx-gate .nx-modal-call .t2  { font-size: 13.5px; font-weight: 600; opacity: .9; line-height: 1.3; }
#nx-gate .nx-modal-close {
  height: 74px; border-radius: 18px; cursor: pointer;
  font-family: inherit; font-size: 17px; font-weight: 700;
  color: #4b4270; background: #fff; border: 1px solid rgba(130,100,195,.18);
  box-shadow: 0 8px 20px rgba(70,40,130,.10);
  transition: transform .15s, background .15s;
}
#nx-gate .nx-modal-close:hover { transform: translateY(-2px); background: #f7f3ff; }
#nx-gate .nx-modal-hint {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin: 16px 0 0; font-size: 12.5px; color: #7d7199; text-align: center;
}

/* ===== ปุ่ม Sign Out ลอย ===== */
#nx-signout {
  position: fixed; bottom: 18px; right: 18px; z-index: 9998;
  font-family: "Anuphan", system-ui, sans-serif;
  font-size: 13px; font-weight: 600; color: #5C6279;
  background: #fff; border: 1px solid #DFE1EC; border-radius: 20px;
  padding: 8px 16px; cursor: pointer; display: none;
  box-shadow: 0 4px 14px rgba(30,16,80,.16); transition: all .15s;
}
#nx-signout:hover { border-color: #B23A2C; color: #B23A2C; }
#nx-signout b { color: #241a45; }

/* =====================================================================
 *  Responsive
 * ===================================================================== */
@media (max-width: 560px) {
  #nx-gate .nx-modal-box    { padding: 22px 18px 20px; border-radius: 24px; }
  #nx-gate .nx-modal-head   { flex-direction: column; text-align: center; gap: 14px; }
  #nx-gate .nx-modal-head .ic { width: 78px; height: 78px; font-size: 38px; border-radius: 22px; }
  #nx-gate .nx-modal-head h3  { font-size: 22px; }
  #nx-gate .nx-modal-desc     { text-align: center; }
  #nx-gate .nx-modal-acts     { grid-template-columns: 1fr; }
  #nx-gate .nx-modal-x       { right: 12px; top: 12px; width: 38px; height: 38px; }
}
@media (max-width: 820px) {
  #nx-gate                  { flex-direction: column; overflow: auto; }
  #nx-gate .nx-left         { flex: 0 0 260px; width: 100%; }
  #nx-gate .nx-right        { flex: 1 1 auto; max-width: none; width: 100%; padding: 22px 16px; }
  #nx-gate .nx-stage .nx-switch { left: 79.5%; top: 30%; width: 10%; height: 16%; }
  #nx-gate .nx-feats        { gap: 8px; }
  #nx-gate .nx-night        { padding: 22px 16px 18px; border-radius: 24px; }
  #nx-gate .nx-night-logo   { font-size: 42px; }
  #nx-gate .nx-night-h      { font-size: 21px; }
  #nx-gate .nx-night .deco-paw  { width: 70px; right: 12px; top: 44px; }
  #nx-gate .nx-night .deco-moon { left: 22px; top: 84px; width: 24px; height: 24px;
    box-shadow: inset -8px -5px 0 0 rgba(246,240,255,.92); }
}
@media (max-height: 940px) {
  #nx-gate .nx-card         { padding: 18px 24px 20px; }
  #nx-gate .nx-badge        { margin: 0 auto 12px; padding: 6px 15px; font-size: 11.5px; }
  #nx-gate .nx-logo         { font-size: 32px; }
  #nx-gate .nx-tagline      { margin: 6px 0 14px; font-size: 10.5px; }
  #nx-gate h1               { font-size: 21px; }
  #nx-gate .nx-sub          { margin: 0 0 16px; font-size: 13px; }
  #nx-gate label            { margin: 0 0 5px; font-size: 13px; }
  #nx-gate .nx-field        { margin-bottom: 12px; }
  #nx-gate input            { height: 46px; font-size: 14.5px; }
  #nx-gate .nx-submit       { height: 48px; margin-top: 4px; font-size: 15.5px; }
  #nx-gate .nx-feats        { gap: 8px; margin-top: 14px; }
  #nx-gate .nx-feat         { padding: 10px 6px; }
  #nx-gate .nx-feat .fi     { font-size: 18px; margin-bottom: 5px; }
  #nx-gate .nx-feat .ft     { font-size: 12px; }
  #nx-gate .nx-feat .fd     { font-size: 10.5px; }
  #nx-gate .nx-copyright    { margin-top: 12px; font-size: 11px; }
  #nx-gate .nx-night        { padding: 15px 18px 15px; }
  #nx-gate .nx-night-pill   { margin: 0 auto 10px; padding: 6px 15px; font-size: 12px; }
  #nx-gate .nx-night-logo   { font-size: 31px; }
  #nx-gate .nx-night-tag    { margin: 5px 0 10px; font-size: 10.5px; }
  #nx-gate .nx-night-h      { font-size: 17.5px; margin: 0 0 5px; }
  #nx-gate .nx-night-sub    { margin: 0 0 10px; font-size: 12.5px; }
  #nx-gate .nx-ncard        { padding: 10px 10px 10px; }
  #nx-gate .nx-ncard .top   { margin-bottom: 6px; }
  #nx-gate .nx-ncard .ic    { width: 34px; height: 34px; font-size: 17px; border-radius: 11px; }
  #nx-gate .nx-ncard .tag   { margin: 0 0 6px; font-size: 13.5px; }
  #nx-gate .nx-ncard .ttl   { font-size: 12.5px; margin: 0 0 4px; }
  #nx-gate .nx-ncard .dsc   { font-size: 11.5px; line-height: 1.5; }
  #nx-gate .nx-ncard .lnk   { margin-top: 8px; font-size: 11.5px; }
  #nx-gate .nx-night-note   { margin-top: 9px; padding: 7px 13px; }
  #nx-gate .nx-night-note .ic { font-size: 21px; }
  #nx-gate .nx-night-note p  { font-size: 12px; line-height: 1.5; }
  #nx-gate .nx-night-btn    { height: 46px; margin-top: 9px; font-size: 16px; }
  #nx-gate .nx-night-feats  { margin-top: 9px; gap: 8px; }
  #nx-gate .nx-nfeat        { padding: 8px 6px; border-radius: 13px; }
  #nx-gate .nx-nfeat .fi    { font-size: 18px; margin-bottom: 4px; }
  #nx-gate .nx-nfeat .ft    { font-size: 12.5px; }
  #nx-gate .nx-nfeat .fd    { font-size: 11px; }
  #nx-gate .nx-night-copy   { margin-top: 8px; font-size: 11px; }
  #nx-gate .nx-night .deco-moon { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  #nx-gate *, #nx-gate *::before {
    transition: none !important; animation: none !important;
  }
}
