:root {
  --bg: #05070f;
  --bg-deep: #02040a;
  --bg-elev: #0b1220;
  --bg-soft: #101a2e;
  --line: rgba(56, 189, 248, 0.14);
  --line-strong: rgba(56, 189, 248, 0.28);
  --text: #e8f4ff;
  --muted: #7f96b5;
  --blue: #38bdf8;
  --blue-hot: #0ea5e9;
  --blue-glow: rgba(14, 165, 233, 0.45);
  --accent: #ff9f1a;
  --accent-2: #ffb347;
  --accent-glow: rgba(255, 159, 26, 0.35);
  --ok: #34d399;
  --danger: #f87171;
  --radius: 18px;
  --font: "Kanit", sans-serif;
  --display: "Sora", "Kanit", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.55;
  background-color: #03060d;
  background-image:
    radial-gradient(ellipse 120% 70% at 50% -25%, rgba(14, 165, 233, 0.32), transparent 55%),
    radial-gradient(ellipse 55% 45% at 100% 8%, rgba(255, 159, 26, 0.14), transparent 52%),
    radial-gradient(ellipse 50% 42% at -5% 85%, rgba(34, 211, 238, 0.12), transparent 50%),
    radial-gradient(ellipse 45% 35% at 85% 78%, rgba(56, 189, 248, 0.08), transparent 55%),
    linear-gradient(165deg, #08111f 0%, #04080f 42%, #02050b 100%);
  background-attachment: fixed;
}
/* พื้นหลังเบา — ไม่ใช้ blur layer เคลื่อนไหว (กิน GPU มาก) */
body::before,
body::after { content: none; display: none; }
.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.025;
  z-index: 0;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.grid-bg {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.28;
  background-image: radial-gradient(rgba(125, 211, 252, 0.12) 1px, transparent 1.2px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 55% at 50% 12%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 12%, #000 0%, transparent 70%);
}
.nav, main, .footer, .page, .panel-wrap { position: relative; z-index: 1; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.nav-main {
  flex: 1;
  justify-content: center;
}
.nav-links a.is-active { color: var(--blue); }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
}
.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: transparent;
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.35), 0 0 18px var(--blue-glow);
}
.brand-text {
  display: grid;
  line-height: 1.05;
}
.brand-text strong {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: #dff6ff;
  text-shadow: 0 0 18px rgba(56, 189, 248, 0.35);
}
.brand-text small {
  font-family: var(--display);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: var(--accent);
  font-weight: 600;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--blue); }
.nav-actions {
  flex-shrink: 0;
  gap: 0.5rem 0.75rem;
}
.btn-topup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-decoration: none !important;
  color: #041018 !important;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  border: 1px solid rgba(125, 211, 252, 0.55);
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.2), 0 6px 20px rgba(14, 165, 233, 0.35);
  white-space: nowrap;
}
.btn-topup:hover {
  color: #fff !important;
  filter: brightness(1.06);
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.55), 0 8px 24px rgba(14, 165, 233, 0.4);
}
.btn-topup.is-on {
  outline: 2px solid #7dd3fc;
  outline-offset: 2px;
}

[hidden], .btn[hidden], a[hidden] { display: none !important; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.55rem 1.15rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s, background .2s, border-color .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1a1000;
  box-shadow: 0 8px 28px var(--accent-glow);
}
.btn-primary:hover { box-shadow: 0 10px 32px rgba(255, 159, 26, 0.5); }
.btn-ghost {
  background: rgba(14, 165, 233, 0.06);
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.15);
}
.btn-danger { background: rgba(248,113,113,.15); color: var(--danger); border-color: rgba(248,113,113,.3); }
.btn-lg { padding: 0.85rem 1.5rem; font-size: 1.02rem; }
.btn-block { width: 100%; }

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.25);
  color: var(--ok);
  font-weight: 600;
  font-size: 0.9rem;
}

/* —— Hero: เรียบ สะอาด แบรนด์ชัด —— */
body.home {
  --display: "Sora", "Kanit", sans-serif;
}
body.home .noise { opacity: 0.02; }
body.home .grid-bg { opacity: 0.14; }
.home-aurora {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(56, 189, 248, 0.22), transparent 60%),
    radial-gradient(700px 380px at 88% 8%, rgba(14, 165, 233, 0.16), transparent 55%),
    radial-gradient(640px 360px at 50% 100%, rgba(34, 211, 238, 0.08), transparent 50%);
  opacity: .9;
}
body.home main,
body.home #nav-root,
body.home .footer { position: relative; z-index: 1; }

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(72svh, 640px);
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(1.75rem, 4.5vh, 3rem) 1.5rem 2rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 1.25rem 1.75rem;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 60% at 78% 48%, rgba(14, 165, 233, 0.2), transparent 68%),
    radial-gradient(ellipse 40% 45% at 18% 30%, rgba(255, 159, 26, 0.07), transparent 70%);
  z-index: 0;
  pointer-events: none;
}
.hero-visual {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: min(46vw, 460px);
}
.hero-badge {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  animation: heroRise 0.95s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-badge::before {
  content: "";
  position: absolute;
  inset: -4%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, rgba(56, 189, 248, 0.22) 0%, transparent 62%);
  z-index: 0;
}
.hero-badge::after {
  content: "";
  position: absolute;
  inset: 1%;
  border-radius: 50%;
  border: 1px solid rgba(125, 211, 252, 0.3);
  box-shadow:
    0 0 0 10px rgba(14, 165, 233, 0.05),
    0 18px 40px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 2;
}
.hero-badge img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 34rem;
  animation: heroRise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-kicker {
  margin: 0 0 1rem;
  color: #8eb4d4;
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.hero-brand {
  font-family: var(--display);
  font-size: clamp(3.6rem, 9.5vw, 5.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.94;
  margin: 0 0 1.1rem;
  color: #f5f9ff;
}
.hero-brand span {
  display: block;
  margin-top: 0.04em;
  font-size: 0.8em;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  filter: none;
}
.hero-lead {
  color: #a8bfd6;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.55;
  margin: 0 0 1.75rem;
  max-width: 26rem;
  font-weight: 400;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.home .btn-primary {
  border-radius: 14px;
  box-shadow: 0 10px 28px var(--accent-glow);
  font-weight: 800;
}
.home .btn-primary:hover {
  box-shadow: 0 12px 34px rgba(255, 159, 26, 0.55);
}
.home .btn-ghost {
  border-radius: 14px;
  background: rgba(4, 12, 24, 0.55);
  border-color: rgba(56, 189, 248, 0.45);
  color: #e0f2fe;
}
.home .btn-ghost:hover {
  border-color: rgba(125, 211, 252, 0.75);
  color: #fff;
  box-shadow: 0 0 22px rgba(14, 165, 233, 0.2);
}
.eyebrow { display: none; }
.home-eyebrow {
  margin: 0 0 .35rem;
  color: #7dd3fc;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-services { padding-top: .5rem; }
.home-sec-head {
  margin-bottom: 1.35rem;
}
.home-sec-head h2 {
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 .35rem;
}
.home-sec-head p {
  color: var(--muted);
  margin: 0;
  font-size: .95rem;
}
.home .cat-grid {
  max-width: none;
  margin: 0;
  padding: 0;
}
.home .cat-card {
  border-color: rgba(56, 189, 248, 0.18);
  background: linear-gradient(165deg, rgba(12, 22, 40, 0.88), rgba(6, 10, 20, 0.92));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.home .cat-card:hover {
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28), 0 0 24px rgba(14, 165, 233, 0.12);
  border-color: rgba(56, 189, 248, 0.45);
}
.home .strip {
  border-block-color: rgba(148, 163, 184, 0.1);
  background: transparent;
}
.home .section h2 {
  font-family: var(--font);
  letter-spacing: -0.02em;
}

.strip {
  max-width: 1160px;
  margin: 0 auto 2.5rem;
  padding: 1.35rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.05), transparent);
}
.strip div { display: grid; gap: 0.15rem; }
.strip strong {
  font-family: var(--font);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #c7e7ff;
}
.strip span { color: var(--muted); font-size: 0.86rem; }

.section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}
.section h2 {
  font-family: var(--display);
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}
.section-sub { color: var(--muted); margin-bottom: 1.75rem; }
.section-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.section-row .section-sub { margin-bottom: 0; }

.cat-grid {
  max-width: 1160px;
  margin: -0.5rem auto 2.25rem;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .9rem;
}
.cat-card {
  --cat: #38bdf8;
  --cat-soft: rgba(56, 189, 248, 0.12);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.15rem;
  text-decoration: none;
  color: inherit;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.03), transparent 42%),
    rgba(12, 18, 32, 0.88);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
  min-height: 96px;
}
.cat-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--cat) 40%, transparent);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--cat) 10%, transparent), transparent 50%),
    rgba(14, 22, 38, 0.95);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}
.cat-card.t-otp { --cat: #38bdf8; --cat-soft: rgba(56, 189, 248, 0.14); }
.cat-card.t-app { --cat: #818cf8; --cat-soft: rgba(129, 140, 248, 0.14); }
.cat-card.t-acc { --cat: #34d399; --cat-soft: rgba(52, 211, 153, 0.14); }
.cat-card.t-game { --cat: #f472b6; --cat-soft: rgba(244, 114, 182, 0.14); }
.cat-card.t-boost { --cat: #fb923c; --cat-soft: rgba(251, 146, 60, 0.14); }
.cat-card.t-topup { --cat: #22d3ee; --cat-soft: rgba(34, 211, 238, 0.14); }
.cat-card.t-2fa { --cat: #a78bfa; --cat-soft: rgba(167, 139, 250, 0.14); }

.cat-ico {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: var(--cat);
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.12), transparent 55%),
    var(--cat-soft);
  border: 1px solid color-mix(in srgb, var(--cat) 28%, transparent);
  box-shadow: 0 6px 14px color-mix(in srgb, var(--cat) 18%, transparent);
  transition: transform .22s ease, background .22s ease, box-shadow .22s ease;
}
.cat-card:hover .cat-ico {
  transform: scale(1.06);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--cat) 28%, transparent);
}
.cat-ico svg {
  width: 26px;
  height: 26px;
  display: block;
}
.cat-ico img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.28));
}
.cat-body {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: .2rem;
}
.cat-card h3 {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.cat-card p {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cat-count {
  margin-top: .15rem;
  color: color-mix(in srgb, var(--cat) 85%, #fff);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
}
.cat-go {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.03);
  position: relative;
  opacity: .55;
  transition: opacity .2s, border-color .2s, background .2s, transform .2s;
}
.cat-go::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 7px;
  height: 7px;
  border-right: 1.8px solid var(--text);
  border-top: 1.8px solid var(--text);
  transform: rotate(45deg) translate(-1px, 1px);
  opacity: .75;
}
.cat-card:hover .cat-go {
  opacity: 1;
  border-color: color-mix(in srgb, var(--cat) 35%, transparent);
  background: var(--cat-soft);
  transform: translateX(2px);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.steps article {
  background: linear-gradient(160deg, rgba(16, 26, 46, 0.9), rgba(11, 18, 32, 0.95));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  transition: border-color .25s, box-shadow .25s;
}
.steps article:hover {
  border-color: var(--line-strong);
  box-shadow: 0 0 28px rgba(14, 165, 233, 0.1);
}
.steps em {
  font-family: var(--display);
  font-style: normal;
  color: var(--accent);
  font-size: 1rem;
  letter-spacing: 0.08em;
}
.steps h3 { margin: 0.5rem 0 0.35rem; font-size: 1.08rem; }
.steps p { color: var(--muted); font-size: 0.92rem; }

.footer {
  max-width: 1160px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.88rem;
  border-top: 1px solid var(--line);
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

/* Auth / panels */
.auth-page .panel-wrap {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}
.panel-wrap {
  max-width: 460px;
  margin: 3rem auto;
  padding: 0 1.25rem 3rem;
}
.panel {
  width: 100%;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.04), transparent 40%),
    linear-gradient(165deg, rgba(16, 26, 46, 0.96), rgba(8, 12, 22, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 22px;
  padding: 1.85rem 1.7rem 1.6rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 24px 48px rgba(0, 0, 0, 0.35);
}
.auth-panel { position: relative; overflow: hidden; }
.auth-panel::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.14), transparent 68%);
  pointer-events: none;
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-bottom: .85rem;
  position: relative;
}
.auth-brand img {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}
.auth-kicker {
  color: var(--blue);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .2rem;
}
.panel h1 {
  font-family: var(--font);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.2;
}
.panel .hint {
  color: var(--muted);
  margin-bottom: 1.35rem;
  font-size: 0.92rem;
  line-height: 1.5;
  position: relative;
}
.auth-form { position: relative; }
.field { display: grid; gap: 0.4rem; margin-bottom: 1rem; }
.field label {
  font-size: 0.86rem;
  font-weight: 500;
  color: #a8bdd6;
}
.field-hint {
  font-size: .78rem;
  color: var(--muted);
  opacity: .9;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: rgba(2, 6, 14, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
  color: var(--text);
  font: inherit;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.field input::placeholder,
.field textarea::placeholder { color: #5f7694; }
.field input:hover, .field select:hover, .field textarea:hover {
  border-color: rgba(148, 163, 184, 0.28);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(4, 10, 20, 0.85);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.14);
}
.field-pass {
  position: relative;
  display: grid;
}
.field-pass input { padding-right: 4.2rem; }
.pass-toggle {
  position: absolute;
  right: .45rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font: inherit;
  font-size: .8rem;
  font-weight: 600;
  padding: .35rem .65rem;
  border-radius: 8px;
  cursor: pointer;
  transition: color .15s, background .15s;
}
.pass-toggle:hover { color: var(--text); background: rgba(56, 189, 248, 0.12); }
.auth-foot {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .45rem;
  margin-top: 1.15rem;
  color: var(--muted);
  font-size: .92rem;
  position: relative;
}
.auth-foot a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}
.auth-foot a:hover { text-decoration: underline; }
.auth-perks {
  list-style: none;
  display: grid;
  gap: .45rem;
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  position: relative;
}
.auth-perks li {
  color: var(--muted);
  font-size: .82rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.auth-perks li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.45);
  flex: 0 0 auto;
}
.alert {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  line-height: 1.4;
}
.alert-error { background: rgba(248,113,113,.1); color: #fda4a4; border: 1px solid rgba(248,113,113,.22); }
.alert-ok { background: rgba(52,211,153,.1); color: #6ee7b7; border: 1px solid rgba(52,211,153,.22); }

.page {
  max-width: 1160px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 4rem;
}
.page-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.5rem;
}
.page-head h1 {
  font-family: var(--display);
  font-size: 1.75rem;
  letter-spacing: 0.04em;
}
.toolbar {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.toolbar input, .toolbar select {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  color: var(--text);
  font: inherit;
}
.toolbar input:focus, .toolbar select:focus {
  outline: none;
  border-color: var(--blue);
}
/* จัดเรียงการ์ดแบบร้าน OTP — ไอคอนขนาดเท่ากัน จัดกลาง คอลัมน์หนาแน่น */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(142px, 1fr));
  gap: .75rem;
}
@media (min-width: 700px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: .85rem; }
}
@media (min-width: 1100px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); }
}
.svc {
  background: linear-gradient(165deg, rgba(16, 26, 46, 0.92), rgba(8, 12, 22, 0.96));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: .55rem .55rem .75rem;
  display: grid;
  gap: .45rem;
  text-align: center;
  align-content: start;
  justify-items: stretch;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.svc:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), 0 0 24px rgba(14, 165, 233, 0.12);
}
.svc-top {
  display: contents; /* layout เก่า: ปล่อยให้ลูกไหลตาม grid ของ .svc */
}
/* โลโก้ใหญ่เต็มการ์ด — พื้นหลังใส ไม่มีกรอบขาว */
.svc-media {
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin: 0;
  order: 1;
  border-radius: 14px;
  overflow: hidden;
  background: transparent;
}
.svc-ico {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  background: transparent;
  object-fit: contain;
  padding: 4%;
  border: 0;
  box-shadow: none;
}
.svc-ico.placeholder,
div.svc-ico {
  background: rgba(56, 189, 248, 0.08);
  color: var(--blue);
  font-size: .7rem;
  font-family: var(--display);
  letter-spacing: .04em;
  display: grid;
  place-items: center;
  padding: 0;
  object-fit: unset;
}
.svc h3 {
  font-size: .86rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  max-width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4em;
  order: 2;
}
.svc-price {
  color: var(--accent);
  font-weight: 700;
  font-size: .95rem;
  text-shadow: 0 0 16px var(--accent-glow);
  order: 3;
}

/* ราคาลดหลอก (การตลาด) */
.price-stack {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: .3rem .45rem;
}
.price-now {
  font-weight: 800;
  color: #7dd3fc;
}
.price-was {
  font-size: .82em;
  font-weight: 600;
  color: #94a3b8;
  text-decoration: line-through;
  opacity: .85;
}
.price-off {
  display: inline-flex;
  align-items: center;
  padding: .12rem .4rem;
  border-radius: 6px;
  background: linear-gradient(135deg, #f97316, #ef4444);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.2;
}
.pd-var-price .price-stack,
.pd-total .price-stack,
.game-pack-price .price-stack,
.game-card-price .price-stack {
  justify-content: flex-start;
}
.pd-total .price-now { font-size: 1.2rem; }
.otp-price-tag .price-stack { gap: 0; }
.otp-price-tag .price-now { font-size: inherit; color: inherit; font-weight: inherit; }
.otp-price-tag .price-was,
.otp-price-tag .price-off { display: none; }
.svc > p {
  order: 4;
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.3;
}
.svc .btn,
.svc .btn-block {
  width: 100%;
  order: 5;
  padding: .42rem .5rem;
  font-size: .8rem;
  margin-top: .1rem;
}

.order-live {
  display: grid;
  gap: 1rem;
  max-width: 560px;
  margin: 0 auto;
  animation: orderIn .45s ease both;
}
@keyframes orderIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.order-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(16, 26, 46, 0.97), rgba(8, 12, 22, 0.99));
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 22px;
  padding: 1.6rem 1.5rem 1.4rem;
  box-shadow:
    0 0 0 1px rgba(14, 165, 233, 0.06),
    0 20px 50px rgba(0, 0, 0, 0.35),
    0 0 48px rgba(14, 165, 233, 0.1);
}
.order-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), var(--accent), transparent);
  opacity: .85;
}
.order-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.order-head h2 {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: .04em;
  margin: 0 0 .35rem;
}
.order-sub { color: var(--muted); font-size: .9rem; margin: 0; }
.order-meta-chip {
  flex-shrink: 0;
  font-size: .78rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .35rem .7rem;
  white-space: nowrap;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .86rem;
  font-weight: 600;
  padding: .4rem .75rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
  background: rgba(14,165,233,.12);
  color: var(--blue);
  border: 1px solid rgba(56,189,248,.25);
}
.status-pill.is-wait { animation: pillPulse 1.8s ease-in-out infinite; }
.status-pill.is-ok {
  background: rgba(52,211,153,.12);
  color: var(--ok);
  border-color: rgba(52,211,153,.3);
  animation: none;
}
.status-pill.is-warn {
  background: rgba(255,159,26,.1);
  color: var(--accent);
  border-color: rgba(255,159,26,.28);
  animation: none;
}
.status-pill.is-muted {
  background: rgba(148,163,184,.12);
  color: #94a3b8;
  border-color: rgba(148,163,184,.25);
  animation: none;
}
@keyframes pillPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(56,189,248,.25); }
  50% { box-shadow: 0 0 0 8px rgba(56,189,248,0); }
}
.status-pill .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}
.status-pill.is-wait .dot { animation: pulse 1.2s infinite; }

.order-radar {
  position: relative;
  width: 120px; height: 120px;
  margin: .5rem auto 1.25rem;
}
.order-radar .ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(56,189,248,.25);
  animation: radar 2.4s ease-out infinite;
}
.order-radar .ring:nth-child(2) { animation-delay: .8s; }
.order-radar .ring:nth-child(3) { animation-delay: 1.6s; }
.order-radar .core {
  position: absolute; inset: 34%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #38bdf8, #0ea5e9 55%, #0369a1);
  box-shadow: 0 0 28px rgba(56,189,248,.45);
}
@keyframes radar {
  0% { transform: scale(.35); opacity: .8; }
  100% { transform: scale(1.15); opacity: 0; }
}
.order-radar.hidden, .order-success-ico.hidden { display: none; }
.order-success-ico {
  width: 72px; height: 72px;
  margin: .4rem auto 1.1rem;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(52,211,153,.12);
  border: 1px solid rgba(52,211,153,.35);
  color: var(--ok);
  font-size: 2rem;
  animation: popIn .4s ease both;
}
@keyframes popIn {
  from { transform: scale(.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.phone-panel {
  text-align: center;
  padding: 1.1rem 1rem;
  border-radius: 16px;
  background: rgba(14,165,233,.06);
  border: 1px solid rgba(56,189,248,.18);
  margin-bottom: 1rem;
}
.phone-panel .label {
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: .35rem;
  letter-spacing: .04em;
}
.order-phone {
  font-family: var(--display);
  font-size: clamp(1.45rem, 4vw, 1.85rem);
  letter-spacing: 0.08em;
  margin: 0;
  cursor: pointer;
  color: #7dd3fc;
  text-shadow: 0 0 22px rgba(56, 189, 248, 0.35);
  user-select: all;
}
.phone-panel .hint {
  margin: .55rem 0 0;
  font-size: .82rem;
  color: var(--muted);
}
.phone-actions {
  display: flex;
  gap: .5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: .85rem;
}

/* กล่องรหัส OTP ในหน้า order (อย่าไปกระทบรายการประเทศใน /shop) */
#otp-box.otp-panel {
  text-align: center;
  padding: 1.25rem 1rem;
  border-radius: 16px;
  background: rgba(56, 189, 248, .08);
  border: 1px solid rgba(56, 189, 248, .28);
  margin-bottom: 1rem;
  animation: popIn .45s ease both;
}
#otp-box.otp-panel .label {
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: .4rem;
}
.otp-big {
  font-family: var(--display);
  font-size: clamp(2rem, 6vw, 2.6rem);
  letter-spacing: 0.22em;
  color: var(--accent);
  margin: 0.2rem 0 0.65rem;
  text-shadow: 0 0 28px var(--accent-glow);
  user-select: all;
}
.otp-sms {
  color: var(--muted);
  font-size: .88rem;
  margin: 0 0 .9rem;
  line-height: 1.45;
  word-break: break-word;
}
.steps-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
  margin: 1rem 0 1.25rem;
}
.steps-mini div {
  text-align: center;
  padding: .65rem .4rem;
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  font-size: .75rem;
  color: var(--muted);
  line-height: 1.35;
}
.steps-mini strong {
  display: block;
  color: var(--text);
  font-size: .82rem;
  margin-bottom: .15rem;
}
.steps-mini .on {
  border-color: rgba(56,189,248,.35);
  background: rgba(14,165,233,.08);
  color: #bae6fd;
}
.steps-mini .on strong { color: #7dd3fc; }
.steps-mini .done {
  border-color: rgba(52,211,153,.35);
  background: rgba(52,211,153,.08);
}
.steps-mini .done strong { color: var(--ok); }
.order-foot {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.order-foot .meta { color: var(--muted); font-size: .82rem; }
.toast-copy {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%) translateY(12px);
  background: rgba(16,26,46,.95);
  border: 1px solid rgba(52,211,153,.4);
  color: var(--ok);
  padding: .55rem 1rem;
  border-radius: 999px;
  font-size: .88rem;
  opacity: 0;
  pointer-events: none;
  transition: .25s ease;
  z-index: 50;
}
.toast-copy.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.status-dot::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 10px var(--blue-glow);
  animation: pulse 1.2s infinite;
}
.status-dot.done::before { background: var(--ok); box-shadow: 0 0 10px rgba(52,211,153,.5); animation: none; }

.modal.is-buying .modal-actions { opacity: .55; pointer-events: none; }
.modal-buying {
  display: none;
  text-align: center;
  padding: 1rem 0 .25rem;
}
.modal.is-buying .modal-buying { display: block; }
.modal-buying .spin {
  width: 42px; height: 42px;
  margin: 0 auto .75rem;
  border-radius: 50%;
  border: 2px solid rgba(56,189,248,.2);
  border-top-color: var(--blue);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* —— OTP dock: หน้าต่างย่อซ้อนกัน —— */
.otp-dock {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  width: min(320px, calc(100vw - 1.5rem));
  display: flex;
  flex-direction: column;
  gap: .55rem;
  max-height: min(78vh, 640px);
}
.otp-dock[hidden] { display: none !important; }
.otp-dock-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .45rem .7rem;
  border-radius: 12px;
  background: rgba(10, 16, 28, .92);
  border: 1px solid rgba(56,189,248,.28);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 28px rgba(0,0,0,.35);
}
.otp-dock-title {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
}
.otp-dock-title em {
  font-style: normal;
  color: var(--accent);
  margin-left: .25rem;
}
.otp-dock-min {
  all: unset;
  cursor: pointer;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 8px;
  color: var(--muted);
  border: 1px solid var(--line);
}
.otp-dock-min:hover { color: var(--text); border-color: var(--blue); }
.otp-dock.is-collapsed .otp-dock-list { display: none; }
.otp-dock-list {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  overflow-y: auto;
  padding-right: 2px;
}
.otp-mini {
  background: linear-gradient(165deg, rgba(16,26,46,.97), rgba(8,12,22,.98));
  border: 1px solid rgba(56,189,248,.28);
  border-radius: 16px;
  padding: .75rem .8rem .7rem;
  box-shadow: 0 12px 32px rgba(0,0,0,.4), 0 0 24px rgba(14,165,233,.08);
  animation: miniIn .28s ease both;
}
.otp-mini.flash-ok { border-color: rgba(52,211,153,.55); box-shadow: 0 0 28px rgba(52,211,153,.2); }
@keyframes miniIn {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.otp-mini header {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .45rem;
}
.otp-mini header strong {
  display: block;
  font-size: .92rem;
  margin-bottom: .2rem;
}
.otp-mini-st {
  font-size: .72rem;
  font-weight: 600;
  padding: .12rem .45rem;
  border-radius: 999px;
}
.otp-mini-st.wait { background: rgba(14,165,233,.15); color: var(--blue); }
.otp-mini-st.ok { background: rgba(52,211,153,.15); color: var(--ok); }
.otp-mini-st.muted { background: rgba(148,163,184,.15); color: #94a3b8; }
.otp-mini-x {
  all: unset;
  cursor: pointer;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 8px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1;
}
.otp-mini-x:hover { color: var(--danger); background: rgba(248,113,113,.1); }
.otp-mini-phone {
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: .06em;
  color: #7dd3fc;
  cursor: pointer;
  margin: .2rem 0 .45rem;
  word-break: break-all;
}
.otp-mini-code {
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: .16em;
  color: var(--accent);
  text-align: center;
  padding: .45rem;
  margin-bottom: .5rem;
  border-radius: 10px;
  background: rgba(255,159,26,.1);
  border: 1px solid rgba(255,159,26,.3);
  cursor: pointer;
  text-shadow: 0 0 18px var(--accent-glow);
}
.otp-mini-pulse {
  display: flex;
  gap: .35rem;
  justify-content: center;
  padding: .45rem 0 .55rem;
}
.otp-mini-pulse i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
  animation: miniDot 1s ease-in-out infinite;
}
.otp-mini-pulse i:nth-child(2) { animation-delay: .15s; }
.otp-mini-pulse i:nth-child(3) { animation-delay: .3s; }
@keyframes miniDot {
  0%, 100% { opacity: .25; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
}
.otp-mini footer {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}
.otp-mini-btn {
  padding: .3rem .55rem !important;
  font-size: .75rem !important;
  border-radius: 8px !important;
}
.otp-dock-toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%) translateY(10px);
  z-index: 90;
  background: rgba(16,26,46,.95);
  border: 1px solid rgba(52,211,153,.4);
  color: var(--ok);
  padding: .5rem .95rem;
  border-radius: 999px;
  font-size: .85rem;
  opacity: 0;
  pointer-events: none;
  transition: .22s ease;
}
.otp-dock-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
@media (max-width: 560px) {
  .otp-dock { right: .6rem; bottom: .6rem; width: calc(100vw - 1.2rem); }
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.table th, .table td {
  text-align: left;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--line);
}
.table th { color: var(--muted); font-weight: 500; }
.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}
.badge-waiting { background: rgba(14,165,233,.15); color: var(--blue); }
.badge-success { background: rgba(52,211,153,.15); color: var(--ok); }
.badge-pending { background: rgba(255,159,26,.12); color: var(--accent); }
.badge-approved { background: rgba(52,211,153,.15); color: var(--ok); }
.badge-rejected { background: rgba(248,113,113,.15); color: var(--danger); }
.badge-refunded { background: rgba(52,211,153,.14); color: var(--ok); }

.od-line { margin: .15rem 0; line-height: 1.5; }
.od-label { color: var(--muted); }
.od-label::after { content: ':'; margin-right: .25rem; }
.otp-inline {
  display: inline-block;
  font-family: Orbitron, ui-monospace, monospace;
  font-size: 1.05rem;
  letter-spacing: .08em;
  color: var(--accent);
  background: rgba(255,159,26,.12);
  border: 1px solid rgba(255,159,26,.35);
  border-radius: 8px;
  padding: .15rem .5rem;
}

.delivery-fields { display: flex; flex-direction: column; gap: .65rem; }
.delivery-row {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: .5rem .75rem;
  align-items: start;
  padding: .75rem .9rem;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.delivery-label { color: var(--muted); font-size: .85rem; padding-top: .15rem; }
.delivery-value {
  all: unset;
  cursor: pointer;
  color: var(--text);
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: .95rem;
  word-break: break-all;
  line-height: 1.45;
}
.delivery-value:hover { color: var(--accent); }
.delivery-value.copied { color: var(--ok); }
.delivery-raw {
  margin: 0;
  padding: 1rem;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: 12px;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: .92rem;
  color: var(--text);
  font-family: ui-monospace, Consolas, monospace;
}
@media (max-width: 560px) {
  .delivery-row { grid-template-columns: 1fr; }
}

.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 14, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 1rem;
  animation: modalBgIn .2s ease;
}
.modal-bg.show { display: flex; }
@keyframes modalBgIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal {
  width: min(520px, 100%);
  max-height: min(92vh, 820px);
  overflow: auto;
  background:
    linear-gradient(160deg, rgba(56, 189, 248, 0.08), transparent 40%),
    linear-gradient(165deg, #121c32, #080c16);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 22px;
  padding: 1.25rem 1.25rem 1.15rem;
  box-shadow:
    0 0 0 1px rgba(14, 165, 233, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 28px 64px rgba(0, 0, 0, 0.5);
  animation: modalIn .22s ease;
  position: relative;
}
.modal.modal-product { width: min(560px, 100%); }
.product-detail {
  margin: 0 0 .75rem;
  display: grid;
  gap: .85rem;
}
.pd-hero {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  background:
    radial-gradient(ellipse 80% 80% at 0% 0%, rgba(56, 189, 248, 0.12), transparent 55%),
    rgba(8, 16, 32, 0.75);
}
.pd-img {
  width: 84px;
  height: 84px;
  border-radius: 18px;
  object-fit: contain;
  background: transparent;
  border: 1px solid rgba(56, 189, 248, 0.2);
  flex: 0 0 auto;
  padding: 6px;
  box-shadow: none;
}
.pd-img.is-empty {
  display: grid;
  place-items: center;
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
  font-size: .7rem;
  font-weight: 700;
  font-family: var(--display);
  letter-spacing: .06em;
}
.pd-main { min-width: 0; flex: 1; }
.pd-eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #7dd3fc;
  margin-bottom: .35rem;
}
.pd-name {
  display: block;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: .55rem;
  color: #f0f9ff;
}
.pd-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}
.pd-chip {
  display: inline-flex;
  align-items: center;
  padding: .2rem .55rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  color: #c7d4ea;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.16);
}
.pd-chip.ok {
  color: #86efac;
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.28);
}
.pd-chip.warn {
  color: #fdba74;
  background: rgba(251, 146, 60, 0.12);
  border-color: rgba(251, 146, 60, 0.28);
}
.pd-block {
  padding: .85rem .95rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(255, 255, 255, 0.03);
}
.pd-h {
  margin: 0 0 .55rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #7dd3fc;
}
.pd-list {
  margin: 0;
  padding: 0 0 0 1.05rem;
  display: grid;
  gap: .35rem;
  color: #d6e4f5;
  font-size: .9rem;
  line-height: 1.5;
}
.pd-list li::marker { color: var(--blue); }
.pd-empty {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.5;
}
.pd-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .45rem;
  counter-reset: pdstep;
}
.pd-steps li {
  counter-increment: pdstep;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: .55rem;
  align-items: start;
  font-size: .88rem;
  color: #d6e4f5;
  line-height: 1.45;
}
.pd-steps li::before {
  content: counter(pdstep);
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: .75rem;
  font-weight: 700;
  color: #041018;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
}
.pd-note {
  margin: 0;
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.5;
}
.pd-note a {
  color: #7dd3fc;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.pd-howto {
  margin-top: .15rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.2);
}
.pd-howto img {
  display: block;
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  background: #0a101c;
}
/* รองรับโค้ดเก่า */
.pd-top { display: contents; }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .65rem;
}
.modal h3 {
  font-family: var(--font);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.3;
}
.modal-close {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: color .15s, border-color .15s, background .15s;
}
.modal-close:hover {
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.3);
  background: rgba(255, 255, 255, 0.06);
}
.modal .hint,
.modal > .hint {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.45;
  margin: 0 0 1rem;
}
.modal-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .85rem 1rem;
  margin: .75rem 0 .85rem;
  border-radius: 14px;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.35);
}
.modal-price span {
  color: var(--muted);
  font-size: .88rem;
}
.modal-price strong {
  color: #7dd3fc;
  font-size: 1.25rem;
  font-weight: 700;
  text-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
}
.modal-actions {
  display: flex;
  gap: .65rem;
  margin-top: .85rem;
  position: sticky;
  bottom: 0;
  padding-top: .35rem;
  background: linear-gradient(180deg, transparent, #080c16 28%);
}
.modal-actions .btn { flex: 1; justify-content: center; min-height: 46px; font-weight: 700; }
.modal-actions .btn-ghost { flex: 0.85; }
.modal-actions .btn-primary {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: #041018;
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.35);
}
.modal-sub {
  margin: -.25rem 0 .75rem;
  color: var(--muted);
  font-size: .86rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.stat {
  background: linear-gradient(165deg, rgba(16, 26, 46, 0.95), rgba(8, 12, 22, 0.98));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.1rem;
}
.stat strong {
  display: block;
  font-family: var(--display);
  font-size: 1.35rem;
  margin-top: 0.25rem;
  color: var(--blue);
}
.stat span { color: var(--muted); font-size: 0.85rem; }

.empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(11, 18, 32, 0.4);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}
@keyframes heroDrift {
  0%, 100% { transform: translateY(-48%) translateX(0) scale(1); }
  50% { transform: translateY(-52%) translateX(-1.5%) scale(1.02); }
}
@keyframes heroPulse {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}
@keyframes heroRise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes brandShine {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 8px 28px var(--accent-glow); }
  50% { box-shadow: 0 10px 36px rgba(255, 159, 26, 0.55); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  body::before, body::after { animation: none !important; }
}

@keyframes flash {
  from { transform: scale(0.94); opacity: .6; }
  to { transform: scale(1); opacity: 1; }
}
.flash { animation: flash .45s ease; }

/* —— โฮมสไตล์คล้าย otp24hr (ธีมฟ้า) —— */
.hub-sec {
  max-width: 1160px;
  margin: 0 auto 2.25rem;
  padding: 0 1.25rem;
}
.hub-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .9rem;
  flex-wrap: wrap;
}
.hub-head h2 {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: .01em;
  margin: 0 0 .25rem;
}
.hub-head p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
  max-width: 42rem;
}
.hub-head .btn-ghost {
  border-color: rgba(56, 189, 248, 0.45);
  color: #bae6fd;
  border-radius: 12px;
  white-space: nowrap;
}
.hub-head .btn-ghost:hover {
  border-color: var(--blue);
  box-shadow: 0 0 18px rgba(14, 165, 233, 0.25);
}

.sold-rail {
  display: flex;
  gap: .65rem;
  overflow-x: auto;
  padding: .75rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 14px;
  background: rgba(8, 16, 32, 0.65);
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.08), inset 0 0 40px rgba(14, 165, 233, 0.04);
  scrollbar-width: thin;
}
.sold-rail:empty { display: none; }
.sold-card {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: .45rem .55rem;
  align-items: center;
  min-width: 220px;
  max-width: 280px;
  padding: .45rem .55rem;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.12);
}
.sold-card img,
.sold-card .sold-ph {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
  background: transparent;
  padding: 2px;
}
.sold-card .sold-ph {
  display: grid;
  place-items: center;
  font-size: .55rem;
  color: var(--blue);
  background: rgba(255,255,255,.06);
}
.sold-card strong {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sold-card time {
  display: block;
  font-size: .68rem;
  color: var(--muted);
  margin-top: .1rem;
}
.sold-badges {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}
.sold-badge {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  font-size: .68rem;
  font-weight: 600;
  padding: .15rem .45rem;
  border-radius: 999px;
}
.sold-badge.is-sold {
  background: rgba(248, 113, 113, 0.16);
  color: #fca5a5;
}
.sold-badge.is-ago {
  background: rgba(56, 189, 248, 0.16);
  color: #7dd3fc;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: .85rem;
}
@media (min-width: 900px) {
  .hub-grid { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 700px) {
  .hub-grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: .7rem; }
}

.svc.hub {
  border: 1px solid rgba(56, 189, 248, 0.32);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(12, 22, 40, 0.95), rgba(6, 10, 20, 0.98));
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.05), 0 8px 28px rgba(0, 0, 0, 0.28);
  padding: .5rem .5rem .75rem;
  gap: .5rem;
}
.svc.hub:hover {
  border-color: rgba(56, 189, 248, 0.65);
  box-shadow: 0 0 22px rgba(14, 165, 233, 0.22), 0 14px 36px rgba(0, 0, 0, 0.4);
  transform: translateY(-3px);
}
.svc.hub .svc-media {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
}
.svc.hub .svc-ico {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  padding: 4%;
  object-fit: contain;
  background: transparent;
}
.svc.hub h3 {
  font-family: var(--display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  min-height: 2.2em;
  color: #f0f9ff;
}
.svc.hub .svc-price {
  color: #7dd3fc;
  text-shadow: 0 0 14px rgba(56, 189, 248, 0.35);
  font-size: .88rem;
}
.svc.hub .btn-hub {
  width: 100%;
  order: 5;
  padding: .45rem .5rem;
  font-size: .82rem;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.5);
  background: rgba(8, 16, 32, 0.8);
  color: #bae6fd;
  text-align: center;
}
.svc.hub:hover .btn-hub {
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 0 16px rgba(14, 165, 233, 0.25);
}

body.home .home-services { margin-bottom: 1.5rem; }
body.home .hero {
  min-height: min(70svh, 620px);
}

/* —— ระบบเลือก OTP (เลย์เอาต์แบบ otp24hr · ธีมฟ้า) —— */
.otp-page { max-width: 1200px; }
.otp-desk {
  display: grid;
  grid-template-columns: minmax(240px, 280px) 1fr;
  gap: 1rem;
  align-items: stretch;
  min-height: min(72vh, 720px);
}
.otp-side {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  min-height: 0;
}
.otp-panel {
  background: linear-gradient(165deg, rgba(12, 22, 40, 0.96), rgba(6, 10, 20, 0.98));
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 16px;
  padding: .9rem;
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.06);
}
.otp-panel-grow {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}
.otp-panel-title {
  margin: 0 0 .65rem;
  font-size: .92rem;
  font-weight: 700;
  color: #e0f2fe;
}
.otp-type-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .45rem;
}
.otp-type {
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.4);
  background: rgba(8, 16, 32, 0.9);
  color: #bae6fd;
  font: inherit;
  font-size: .82rem;
  font-weight: 600;
  padding: .55rem .4rem;
  cursor: pointer;
  transition: .15s ease;
}
.otp-type.is-on,
.otp-type:hover {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: #041018;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(14, 165, 233, 0.35);
}
.otp-search {
  width: 100%;
  padding: .55rem .7rem;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  background: rgba(4, 10, 20, 0.85);
  color: var(--text);
  font: inherit;
  font-size: .88rem;
  margin-bottom: .55rem;
}
.otp-search:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}
.otp-search-wide { margin-bottom: .65rem; }
.otp-country-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: .2rem;
  align-content: flex-start;
  padding-right: .1rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.45) transparent;
}
.otp-country {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex: 0 0 auto;
  width: 100%;
  text-align: left;
  padding: .38rem .55rem;
  min-height: 0;
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.12);
  background: rgba(8, 16, 32, 0.55);
  color: var(--text);
  font: inherit;
  font-size: .88rem;
  line-height: 1.25;
  cursor: pointer;
  transition: .12s ease;
}
.otp-country:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.35);
}
.otp-country.is-on {
  background: rgba(14, 165, 233, 0.14);
  border-color: rgba(56, 189, 248, 0.7);
  color: #e0f2fe;
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.15);
}
.otp-flag { font-size: 1rem; line-height: 1; flex-shrink: 0; }
.otp-flag-img {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.otp-flag-inline {
  display: inline-block;
  vertical-align: -2px;
  margin-right: .15rem;
}
.otp-cname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.otp-empty-side { color: var(--muted); font-size: .85rem; margin: .5rem 0; }

.otp-main {
  background: linear-gradient(165deg, rgba(12, 22, 40, 0.96), rgba(6, 10, 20, 0.98));
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 16px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  min-height: 0;
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.06);
}
.otp-main-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .35rem;
}
.otp-main-head .otp-panel-title { margin: 0; }
.btn-sm { padding: .35rem .7rem; font-size: .8rem; }
.otp-selected-hint {
  margin: 0 0 .75rem;
  font-size: .82rem;
  color: #7dd3fc;
}
.otp-app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: .7rem;
  overflow-y: auto;
  flex: 1;
  align-content: start;
  padding-right: .1rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.45) transparent;
}
@media (min-width: 900px) {
  .otp-app-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (min-width: 1100px) {
  .otp-app-grid { grid-template-columns: repeat(6, 1fr); }
}
.otp-app {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  height: 100%;
  padding: .5rem .45rem .55rem;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(180deg, rgba(14, 22, 40, 0.96), rgba(6, 10, 20, 0.98));
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: border-color .15s, transform .15s, box-shadow .15s;
  text-align: center;
}
.otp-app:hover {
  border-color: rgba(56, 189, 248, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35), 0 0 20px rgba(14, 165, 233, 0.16);
}
.otp-app-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 12px;
  overflow: hidden;
  background: #070d18;
  flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.otp-app-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 10%;
  box-sizing: border-box;
}
.otp-app-media img.is-ph {
  background: rgba(56, 189, 248, 0.08);
}
.otp-price-tag {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: .42rem;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - .7rem);
  min-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  padding: .28rem .7rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: #e0f2fe;
  background: rgba(4, 10, 20, 0.78);
  border: 1px solid rgba(125, 211, 252, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
  white-space: nowrap;
}
.otp-price-tag .price-now {
  color: #7dd3fc;
  font-size: .8rem;
  font-weight: 800;
  line-height: 1;
}
.otp-app:hover .otp-price-tag {
  border-color: rgba(125, 211, 252, 0.7);
  background: rgba(4, 12, 24, 0.88);
}
.otp-off {
  position: absolute;
  z-index: 2;
  top: .4rem;
  right: .4rem;
  padding: .18rem .42rem;
  border-radius: 7px;
  font-size: .65rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}
.otp-app-name {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  line-height: 1.25;
  max-width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.2em;
  margin-top: auto;
  color: #e2e8f0;
}
.otp-app-grid { align-items: stretch; }
@media (max-width: 860px) {
  .otp-desk {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .otp-panel-grow {
    flex: none;
    min-height: 0;
    max-height: 280px;
  }
  .otp-country-list {
    max-height: 220px;
  }
  .otp-app-grid { max-height: none; overflow: visible; }
}

/* —— ปั๊มโซเชียล: หมวดแพลตฟอร์ม —— */
.social-page { max-width: 1160px; }
.social-search {
  display: block;
  max-width: 280px;
  padding: .75rem .9rem;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font: inherit;
}
.social-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0 0 1.25rem;
}
.social-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .4rem .75rem;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(8, 16, 32, 0.75);
  color: #bae6fd;
  font-size: .82rem;
  font-weight: 600;
}
.social-cat-sec { margin-bottom: 1.25rem; }
.social-cat-title {
  margin: 0 0 .75rem;
  font-size: 1.15rem;
  font-family: var(--display);
  font-weight: 700;
}
.social-cats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .55rem;
}
@media (max-width: 900px) {
  .social-cats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .social-cats { grid-template-columns: repeat(2, 1fr); }
}
.social-cat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  flex-wrap: wrap;
  padding: .7rem .55rem;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(8, 16, 32, 0.85);
  color: #e0f2fe;
  font: inherit;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: .15s ease;
}
.social-cat:hover:not(:disabled) {
  border-color: rgba(56, 189, 248, 0.65);
  box-shadow: 0 0 16px rgba(14, 165, 233, 0.2);
}
.social-cat.is-on {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: #041018;
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(14, 165, 233, 0.35);
}
.social-cat.is-empty,
.social-cat:disabled {
  opacity: .4;
  cursor: not-allowed;
}
.social-cat-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
  background: transparent;
}
.social-cat-star {
  font-size: 1.05rem;
  line-height: 1;
  color: #fbbf24;
}
.social-cat.is-on .social-cat-star { color: #041018; }
.social-cat-n {
  font-size: .72rem;
  font-weight: 700;
  opacity: .75;
  min-width: 1.2em;
}
.social-cat.is-on .social-cat-n { opacity: .9; }

/* —— ระบบเติมเกม: การ์ดแบบ otp24hr/games —— */
.game-page { max-width: 1160px; }
.game-search-wrap {
  text-align: center;
  margin: 0 0 1.25rem;
}
.game-search-title {
  margin: 0 0 .55rem;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 800;
}
.game-search {
  display: block;
  width: min(420px, 100%);
  margin: 0 auto;
  padding: .75rem .95rem;
  background: var(--bg-elev);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 12px;
  color: var(--text);
  font: inherit;
}
.game-search:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.7);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}
.game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 1000px) {
  .game-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .game-grid { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
}
.game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .45rem;
  padding: .7rem .65rem .85rem;
  border-radius: 16px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  background: linear-gradient(165deg, rgba(12, 22, 40, 0.96), rgba(6, 10, 20, 0.98));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: .18s ease;
  text-align: center;
}
.game-card:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.65);
  box-shadow: 0 0 22px rgba(14, 165, 233, 0.22), 0 16px 36px rgba(0, 0, 0, 0.42);
}
.game-card-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
}
.game-card-img.is-fallback,
div.game-card-img {
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 800;
  color: #7dd3fc;
  background: rgba(8, 16, 32, 0.9);
}
.game-card-name {
  width: 100%;
  font-weight: 700;
  font-size: .9rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #f0f9ff;
}
.game-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: .42rem .5rem;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.45);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(14, 165, 233, 0.12));
  color: #bae6fd;
  font-size: .82rem;
  font-weight: 700;
}
.game-card:hover .game-card-cta {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: #041018;
  border-color: transparent;
}
.game-card-price {
  font-size: .8rem;
  color: #7dd3fc;
  font-weight: 600;
}
.game-detail-bar { margin-bottom: 1rem; }
.game-detail {
  display: grid;
  grid-template-columns: minmax(200px, 260px) 1fr;
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 800px) {
  .game-detail { grid-template-columns: 1fr; }
}
.game-detail-side {
  background: linear-gradient(165deg, rgba(12, 22, 40, 0.96), rgba(6, 10, 20, 0.98));
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 16px;
  padding: 1rem;
  text-align: center;
}
.game-detail-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: .75rem;
}
.game-detail-img.is-fallback {
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 800;
  color: #7dd3fc;
  background: rgba(8, 16, 32, 0.9);
}
.game-detail-side h2 {
  margin: 0 0 .35rem;
  font-family: var(--display);
  font-size: 1.15rem;
}
.game-detail-main {
  background: linear-gradient(165deg, rgba(12, 22, 40, 0.96), rgba(6, 10, 20, 0.98));
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 16px;
  padding: 1rem 1.1rem 1.2rem;
}
.game-sec-title {
  margin: 0 0 .75rem;
  font-size: 1rem;
  font-weight: 700;
  color: #e0f2fe;
}
.game-packs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .55rem;
}
.game-pack {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  align-items: flex-start;
  padding: .7rem .75rem;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  background: rgba(8, 16, 32, 0.75);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: .12s ease;
}
.game-pack:hover {
  border-color: rgba(56, 189, 248, 0.5);
}
.game-pack.is-on {
  border-color: rgba(56, 189, 248, 0.75);
  background: rgba(14, 165, 233, 0.16);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.2);
}
.game-pack-name {
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.3;
}
.game-pack-price {
  color: #7dd3fc;
  font-weight: 700;
  font-size: .95rem;
}
.game-detail-actions { margin-top: 1rem; }

/* —— บัญชีโซเชียล: การ์ดแบรนด์แบบ otp24hr/apps —— */
.acc-page { max-width: 1160px; }

/* หัวข้อ + แท็บ + ค้นหา (เรียงแนวตั้ง สมดุล) */
.pack-head {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  margin-bottom: 1.25rem;
}
.pack-head-text h1 {
  margin: 0 0 .3rem;
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f0f9ff;
}
.pack-head-text p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.45;
  max-width: 40rem;
}
.pack-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem .75rem;
  padding: .7rem .8rem;
  border-radius: 14px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  background: rgba(8, 16, 32, 0.55);
}
.pack-toolbar-simple {
  justify-content: stretch;
}
.pack-toolbar-simple .acc-search {
  width: 100%;
  max-width: none;
}
.acc-search {
  display: block;
  width: min(260px, 100%);
  margin: 0;
  margin-left: auto;
  padding: .65rem .85rem;
  background: rgba(4, 10, 20, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 11px;
  color: var(--text);
  font: inherit;
  font-size: .9rem;
}
.acc-search:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.65);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}
@media (max-width: 720px) {
  .pack-toolbar { flex-direction: column; align-items: stretch; }
  .acc-search {
    width: 100%;
    max-width: none;
    margin-left: 0;
  }
}
.acc-brands {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  align-items: stretch;
}
@media (max-width: 1000px) {
  .acc-brands { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .acc-brands { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
}
.acc-brand {
  --brand: #38bdf8;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--brand) 45%, transparent);
  background: linear-gradient(165deg, rgba(12, 22, 40, 0.96), rgba(6, 10, 20, 0.98));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: .18s ease;
}
.acc-brand:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand) 75%, #fff);
  box-shadow: 0 0 22px color-mix(in srgb, var(--brand) 35%, transparent), 0 16px 36px rgba(0, 0, 0, 0.45);
}
.acc-brand-top {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
  min-height: 2.35rem;
  padding: .45rem .7rem;
  background: color-mix(in srgb, var(--brand) 28%, rgba(6, 12, 24, 0.98));
  border-bottom: 1px solid color-mix(in srgb, var(--brand) 42%, transparent);
}
.acc-brand-name {
  flex: 1;
  min-width: 0;
  font-family: var(--display);
  font-size: .92rem;
  font-weight: 800;
  letter-spacing: .03em;
  color: #f0f9ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
}
.acc-brand-count {
  font-size: .88rem;
  font-weight: 700;
  color: #e0f2fe;
  opacity: .95;
  flex-shrink: 0;
}
.acc-brand-line {
  display: none;
}
.acc-brand-line-rev {
  display: none;
}
.pack-cats {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 0;
  flex: 1;
  min-width: 0;
}
.pack-cat {
  padding: .42rem .8rem;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(4, 10, 20, 0.65);
  color: #bae6fd;
  font: inherit;
  font-size: .84rem;
  font-weight: 600;
  cursor: pointer;
  transition: .15s ease;
  white-space: nowrap;
}
.pack-cat:hover {
  border-color: rgba(56, 189, 248, 0.65);
}
.pack-cat.is-on {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: #041018;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(14, 165, 233, 0.3);
}
.acc-brand-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
  min-height: 0;
  overflow: hidden;
  background: #070d18;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.acc-brand-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 12%;
  box-sizing: border-box;
  background: transparent;
  display: block;
}
.acc-brand-img.is-fallback,
div.acc-brand-img {
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--brand);
  background: rgba(8, 16, 32, 0.9);
  padding: 0;
}
.acc-brand-sale {
  position: absolute;
  top: .45rem;
  left: .45rem;
  z-index: 1;
  min-width: 3.6rem;
  text-align: center;
  padding: .2rem .45rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #f97316, #ef4444);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}
.acc-brand-meta {
  flex: 1 1 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: .2rem;
  padding: .65rem .7rem .75rem;
  min-height: 5.6rem;
}
.acc-brand-sub {
  display: block;
  width: 100%;
  max-width: 100%;
  color: color-mix(in srgb, var(--brand) 85%, #fff);
  font-weight: 700;
  font-size: .82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 1.25em;
  line-height: 1.25;
}
.acc-brand-price {
  margin-top: .1rem;
  width: 100%;
  height: 3.55rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: .12rem;
  font-size: .88rem;
  color: #e0f2fe;
}
.acc-brand-price b {
  display: block;
  color: var(--muted);
  font-weight: 600;
  font-size: .72rem;
  line-height: 1.2;
}
.acc-brand-price .price-stack {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  gap: .12rem;
  min-height: 2.35rem;
}
.acc-brand-price .price-now {
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.2;
}
.acc-brand-price .price-was {
  color: #94a3b8;
  font-size: .72rem;
  line-height: 1.2;
  min-height: 1em;
}
.acc-brand-price .price-off {
  font-size: .68rem;
  line-height: 1.2;
}
.acc-brand-price .price-was:empty,
.acc-brand-price .price-off:empty {
  visibility: hidden;
}
.acc-pack-bar {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
}
.acc-pack-title {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 800;
}

/* —— หน้ารายละเอียดสินค้า (แบบ otp24hr apps/:brand) —— */
.pd-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  align-items: center;
  margin: 0 0 .9rem;
  font-size: .88rem;
  color: var(--muted);
}
.pd-crumb a { color: #7dd3fc; text-decoration: none; }
.pd-crumb a:hover { text-decoration: underline; }
.pd-shop {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 1.35rem;
  align-items: start;
}
@media (max-width: 960px) {
  .pd-shop { grid-template-columns: 1fr; }
  .pd-shop-left { position: static; max-width: 480px; }
}
.pd-shop-left {
  position: sticky;
  top: .85rem;
  align-self: start;
  width: 100%;
  min-width: 0;
}
.pd-shop-title {
  margin: 0 0 .75rem;
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #f0f9ff;
}
.pd-shop-hero {
  position: relative;
  width: 100%;
  max-width: none;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.14);
  margin: 0 0 .85rem;
  display: block;
}
.pd-shop-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  padding: 0;
  background: #0f172a;
}
.pd-shop-hero-fallback {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 800;
  color: #7dd3fc;
  display: grid;
  place-items: center;
  height: 100%;
}
.pd-shop-card {
  width: 100%;
  box-sizing: border-box;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(12, 18, 32, 0.92);
  padding: 1.05rem 1.15rem;
}
.pd-shop-h {
  margin: 0 0 .6rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #f0f9ff;
  letter-spacing: .01em;
}
.pd-shop-card .pd-shop-h + .pd-shop-h { margin-top: 1.05rem; }
.pd-shop-right > .pd-shop-h { margin: 0 0 .55rem; }
.pd-checkout .pd-shop-h { margin-top: .55rem; font-size: .86rem; }
.pd-checkout .pd-shop-h:first-child { margin-top: 0; }
.pd-shop-body {
  color: #e2e8f0;
  font-size: .96rem;
  line-height: 1.65;
  margin-bottom: .2rem;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}
.pd-shop-body p { margin: 0 0 .45rem; }
.pd-shop-body li { margin: 0 0 .4rem; }
.pd-shop-right {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.pd-variants {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .5rem;
  max-height: none;
  overflow: visible;
  padding: 0;
  align-content: start;
}
@media (max-width: 1200px) {
  .pd-variants { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .pd-variants { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .pd-variants { grid-template-columns: 1fr 1fr; gap: .45rem; }
  .pd-shop-left { max-width: none; }
  .pd-shop-hero { aspect-ratio: 16 / 11; }
}
.pd-variant {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  padding: .55rem .45rem .5rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(18, 24, 38, 0.95);
  color: inherit;
  font: inherit;
  text-align: center;
  cursor: pointer;
  transition: .14s ease;
  min-width: 0;
  min-height: 0;
}
.pd-variant:hover {
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}
.pd-variant.is-on {
  border-color: rgba(56, 189, 248, 0.75);
  background: rgba(14, 165, 233, 0.12);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.2);
}
.pd-var-top {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #0a1220;
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.pd-var-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
}
.pd-var-fb {
  font-weight: 800;
  color: #7dd3fc;
  font-family: var(--display);
  font-size: .85rem;
}
.pd-var-name {
  font-weight: 700;
  font-size: .74rem;
  line-height: 1.25;
  color: #f1f5f9;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  width: 100%;
  min-height: 0;
}
.pd-var-tip {
  font-size: .65rem;
  color: #64748b;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}
.pd-var-price {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .25rem;
  margin: .1rem 0 0;
}
.pd-var-price .price-now {
  font-size: .95rem;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  letter-spacing: .01em;
}
.pd-variant.is-on .pd-var-price .price-now {
  color: #7dd3fc;
}
.pd-var-price .price-off {
  display: inline-flex;
  padding: .08rem .28rem;
  border-radius: 5px;
  font-size: .58rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #ef4444);
}
.pd-var-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .25rem;
  width: 100%;
  margin-top: .2rem;
  padding-top: .3rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}
.pd-var-sold {
  font-size: .62rem;
  font-weight: 700;
  color: #f87171;
  white-space: nowrap;
}
.pd-var-meta {
  font-size: .62rem;
  color: #94a3b8;
  line-height: 1.2;
  white-space: nowrap;
}
.pd-checkout {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(12, 18, 32, 0.95);
  padding: .7rem .8rem .75rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 420px;
}
.pd-qty {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  gap: .3rem;
  align-items: stretch;
  max-width: 200px;
}
.pd-qty-btn {
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(8, 16, 32, 0.9);
  color: #e0f2fe;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 36px;
}
.pd-qty-btn:hover {
  border-color: rgba(56, 189, 248, 0.7);
  background: rgba(14, 165, 233, 0.15);
}
.pd-qty input {
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(4, 10, 20, 0.9);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-align: center;
  font-size: .95rem;
  min-height: 36px;
}
.pd-stock {
  margin: .3rem 0 .05rem;
  font-size: .78rem;
  color: var(--muted);
}
.pd-pay {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .45rem .6rem;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(14, 165, 233, 0.1);
}
.pd-pay.is-on {
  border-color: rgba(56, 189, 248, 0.7);
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.12);
}
.pd-pay-ico {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: #041018;
  font-size: 1rem;
  font-weight: 800;
  flex-shrink: 0;
}
.pd-pay-name { font-weight: 700; color: #f0f9ff; font-size: .84rem; }
.pd-pay-bal { font-size: .74rem; color: #94a3b8; margin-top: .05rem; }
.pd-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: .55rem 0 .45rem;
  padding: .5rem .7rem;
  border-radius: 10px;
  background: rgba(4, 10, 20, 0.75);
  border: 1px solid rgba(125, 211, 252, 0.22);
}
.pd-total span { color: var(--muted); font-weight: 600; font-size: .82rem; }
.pd-total strong {
  font-size: 1.1rem;
  color: #7dd3fc;
  font-weight: 800;
}
.pd-checkout .btn-primary {
  min-height: 40px;
  font-size: .92rem;
  font-weight: 800;
  border-radius: 10px;
}
.pd-note-inline {
  margin: .5rem 0 0;
  font-size: .74rem;
  color: var(--muted);
  text-align: center;
}
.pd-note-inline a { color: #7dd3fc; }

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding-top: 1.25rem;
    padding-bottom: 2rem;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
  .hero-visual {
    order: -1;
    min-height: 0;
  }
  .hero-badge { width: min(72vw, 300px); }
  .hero-content {
    max-width: 100%;
    justify-self: center;
  }
  .hero-cta { justify-content: center; }
  .hero-brand { font-size: clamp(3rem, 14vw, 4.2rem); }
  .strip, .steps, .admin-grid, .cat-grid { grid-template-columns: 1fr 1fr; }
  .toolbar { grid-template-columns: 1fr; }
  .nav-main { order: 3; width: 100%; justify-content: flex-start; overflow-x: auto; }
}
@media (max-width: 560px) {
  .hero-badge { width: min(78vw, 260px); }
  .strip, .steps, .admin-grid, .cat-grid { grid-template-columns: 1fr; }
  .nav { flex-direction: column; align-items: flex-start; }
  .hero-lead { font-size: 1.02rem; }
}

.home-steps { max-width: 1160px; margin: 0 auto 2.5rem; padding: 0 1.25rem; }
.home-steps-grid article {
  border: 1px solid rgba(56, 189, 248, 0.22);
  background: linear-gradient(165deg, rgba(12, 22, 40, 0.9), rgba(6, 10, 20, 0.95));
  border-radius: 16px;
  padding: 1.15rem 1.1rem;
  transition: .18s ease;
}
.home-steps-grid article:hover {
  border-color: rgba(56, 189, 248, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}
.home-footer {
  border-top: 1px solid rgba(56, 189, 248, 0.15);
  background: rgba(4, 10, 20, 0.65);
}
body.home .hub-sec {
  border-color: rgba(56, 189, 248, 0.16);
  background: linear-gradient(180deg, rgba(10, 18, 32, 0.55), rgba(6, 10, 18, 0.35));
}

/* —— หน้าเติมเครดิต —— */
.topup-page .page.topup-wrap { max-width: 1100px; }
.topup-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.topup-hero h1 {
  margin: 0 0 .35rem;
  font-family: var(--display, "Sora", "Kanit", sans-serif);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 800;
}
.topup-hero-bal {
  min-width: 180px;
  padding: .85rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(8, 16, 32, 0.9));
  text-align: right;
}
.topup-hero-bal span {
  display: block;
  font-size: .78rem;
  color: #94a3b8;
  margin-bottom: .2rem;
}
.topup-hero-bal strong {
  font-size: 1.35rem;
  color: #7dd3fc;
  font-weight: 800;
}
.topup-desk {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1rem;
}
@media (max-width: 900px) {
  .topup-desk { grid-template-columns: 1fr; }
}
.topup-panel {
  border-radius: 18px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  background: linear-gradient(165deg, rgba(12, 22, 40, 0.96), rgba(6, 10, 20, 0.98));
  padding: 1.15rem 1.2rem 1.25rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}
.topup-h {
  margin: 0 0 .85rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #e0f2fe;
  font-family: var(--display, "Sora", "Kanit", sans-serif);
}
.deposit-poster {
  width: 100%;
  max-width: 100%;
  display: block;
  margin: 0 0 .85rem;
  border-radius: 14px;
  border: 1px solid rgba(56, 189, 248, 0.2);
}
.pay-rows { margin: 0; padding: 0; list-style: none; }
.pay-rows li {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  align-items: center;
  padding: .55rem 0;
  border-bottom: 1px solid rgba(56, 189, 248, 0.12);
  font-size: .92rem;
}
.pay-rows li:last-child { border-bottom: 0; }
.pay-rows strong { color: var(--text); word-break: break-all; }
.pay-rows .lbl { color: var(--muted); flex-shrink: 0; }
.pay-rows a { color: #7dd3fc; font-weight: 700; text-decoration: none; }
.pay-group-title {
  display: block !important;
  border: 0 !important;
  margin: .7rem 0 .1rem;
  padding: .55rem 0 .1rem !important;
  color: #7dd3fc;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.pay-group-title:first-child { margin-top: 0; padding-top: 0 !important; }
.btn-copy {
  margin-left: .35rem;
  padding: .2rem .55rem;
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(8, 16, 32, 0.8);
  color: #bae6fd;
  font: inherit;
  font-size: .75rem;
  cursor: pointer;
}
.qr-box { text-align: center; margin: 1rem 0 .5rem; }
.qr-box img {
  width: min(220px, 70vw);
  height: auto;
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}
.qr-box p {
  color: var(--muted);
  font-size: .85rem;
  margin: .55rem 0 0;
}
.pay-note {
  margin-top: .85rem;
  padding: .75rem .9rem;
  border-radius: 12px;
  background: rgba(248, 113, 113, .08);
  border: 1px solid rgba(248, 113, 113, .25);
  color: #fca5a5;
  font-size: .86rem;
  line-height: 1.55;
}
.pay-steps {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.7;
  margin: 0 0 1rem;
  padding-left: 1.15rem;
}
.amt-chips {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: .4rem;
  margin-bottom: 1rem;
}
@media (max-width: 560px) {
  .amt-chips { grid-template-columns: repeat(3, 1fr); }
}
.amt-chips button {
  padding: .55rem .35rem;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  background: rgba(8, 16, 32, 0.85);
  color: #e0f2fe;
  font: inherit;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  transition: .12s ease;
}
.amt-chips button:hover {
  border-color: rgba(56, 189, 248, 0.6);
}
.amt-chips button.is-on {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: #041018;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.3);
}
.slip-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .25rem;
  min-height: 120px;
  padding: 1rem;
  border-radius: 14px;
  border: 1.5px dashed rgba(56, 189, 248, 0.4);
  background: rgba(8, 16, 32, 0.55);
  color: #bae6fd;
  font-weight: 600;
  cursor: pointer;
  transition: .15s ease;
  text-align: center;
}
.slip-drop:hover,
.slip-drop.has-file {
  border-color: rgba(56, 189, 248, 0.75);
  background: rgba(14, 165, 233, 0.1);
}
.slip-drop-ico {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(56, 189, 248, 0.2);
  font-size: 1.4rem;
  line-height: 1;
  margin-bottom: .2rem;
}
.slip-drop .hint {
  font-size: .78rem;
  font-weight: 500;
  color: var(--muted);
}
.slip-preview {
  margin-top: .65rem;
  max-width: 100%;
  max-height: 180px;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  display: none;
}
.slip-preview.show { display: block; }
.manual-toggle {
  margin-top: 1.1rem;
  padding-top: .85rem;
  border-top: 1px dashed rgba(56, 189, 248, 0.2);
  font-size: .88rem;
}
.manual-toggle summary {
  cursor: pointer;
  color: var(--muted);
  font-weight: 600;
}
.manual-toggle form { margin-top: .85rem; }
.topup-hist { margin-top: 0; }
.topup-hist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: .85rem;
}
#hist-live { color: var(--muted); font-size: .82rem; }
.table-scroll { overflow-x: auto; }
.slip-thumb {
  padding: 0;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 8px;
  background: #0b1220;
  cursor: zoom-in;
  width: 44px;
  height: 44px;
  overflow: hidden;
}
.slip-thumb img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  display: block;
}
.ch-auto { color: #67e8f9; font-size: .85rem; }
.ch-manual { color: var(--muted); font-size: .85rem; }
.muted { color: var(--muted); }
#tbl tr.is-flash { background: rgba(34, 197, 94, .10); }
#slip-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, .82);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  cursor: zoom-out;
}
#slip-lightbox.show { display: flex; }
#slip-lightbox img {
  max-width: min(920px, 96vw);
  max-height: 92vh;
  border-radius: 12px;
  cursor: default;
}
