/* หน้าเติมเหรียญ + คำสั่งซื้อ + พื้นหลังร้าน: โทนฟ้าแบบ ref ร้าน (โหลดหลัง shop.css / store.css / rcshop.css) */

/* ---- พื้นหลังร้าน: แสงฟ้าจาง ๆ แบบกรอบใหญ่ของ ref */
body.zs-has-side {
  background:
    radial-gradient(70% 50% at 85% 0%, rgba(14, 165, 255, 0.12), transparent 70%),
    radial-gradient(60% 50% at 0% 100%, rgba(37, 99, 235, 0.1), transparent 70%),
    #080c14;
  background-attachment: fixed;
}

/* ---- แบนเนอร์หัวหน้า (เติมเหรียญ / คำสั่งซื้อ) */
.tu-hero,
.ol-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 220px;
  margin: 0 0 1.6rem;
  padding: 2rem 2.2rem;
  border-radius: 22px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(92, 200, 255, 0.18);
  background:
    linear-gradient(90deg, rgba(6, 12, 24, 0.95) 0%, rgba(6, 12, 24, 0.75) 45%, rgba(6, 12, 24, 0.2) 80%),
    url('/assets/images/hero-bg.jpg') center 40% / cover no-repeat,
    #0b1a33;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), inset 0 0 120px rgba(14, 165, 255, 0.12);
}
.tu-hero::after,
.ol-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(50% 90% at 78% 60%, rgba(14, 165, 255, 0.3), transparent 70%);
}
.tu-hero-art,
.ol-hero-art {
  position: absolute;
  right: 18%;
  bottom: -12%;
  height: 125%;
  width: auto;
  z-index: -1;
  pointer-events: none;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.55));
}
.tu-head-main,
.ol-hero-main { position: relative; display: grid; gap: 0.6rem; justify-items: start; max-width: 520px; }
.tu-hero .tu-title,
.ol-hero .ol-title {
  font-family: var(--font-display, 'Outfit', 'Kanit', sans-serif);
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 800;
  line-height: 1.05;
  text-shadow: 0 4px 30px rgba(14, 165, 255, 0.35);
}
.tu-hero .tu-sub,
.ol-hero .ol-sub { color: #c7d6ea; font-size: 0.98rem; margin: 0; }
.tu-hero .tu-balance {
  position: relative;
  align-self: flex-start;
  border-radius: 16px;
  background: rgba(6, 14, 28, 0.72);
  border: 1px solid rgba(92, 200, 255, 0.25);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.tu-hero .tu-balance-ic { color: #ffc93c; }
.ol-hero .ol-count {
  position: relative;
  align-self: flex-start;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  color: #e6f4ff;
  background: rgba(6, 14, 28, 0.72);
  border: 1px solid rgba(92, 200, 255, 0.25);
}

/* ---- เติมเหรียญ: ช่องทางเป็นแถวการ์ดด้านบน · แผงเต็มความกว้าง */
.tu-layout { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
.tu-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0.8rem; }
.tu-method {
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: linear-gradient(180deg, #151e2e 0%, #101723 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.tu-method.active {
  border: 1px solid #0ea5ff;
  background: linear-gradient(135deg, rgba(14, 165, 255, 0.22), rgba(37, 99, 235, 0.08)), #111a2a;
  box-shadow: 0 10px 30px rgba(14, 165, 255, 0.18);
}
.tu-method-ic { width: 46px; height: 46px; border-radius: 12px; color: #fff; border: 0; background: linear-gradient(135deg, #22b8ff, #2563eb); }
.tu-panel {
  padding: 1.5rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, #131c2c 0%, #0e1522 100%);
}
.tu-pane-h { font-size: 1.1rem; }
.cc-player { border-radius: 14px; background: rgba(4, 10, 20, 0.55); border: 1px solid rgba(92, 200, 255, 0.14); }
.cc-player-balance { color: #38b6ff; }

/* การ์ดแพ็กเกจเหรียญแบบการ์ดสินค้า ref: ภาพบน · จำนวนเหรียญ · ราคา · ปุ่มแคปซูล */
.cc-packages { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 1rem; }
.cc-package {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  padding: 0.75rem 0.75rem 0.95rem;
  text-align: left;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, #151e2e 0%, #101723 100%);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.cc-package:hover:not(:disabled) { transform: translateY(-3px); border-color: rgba(92, 200, 255, 0.35); box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4); }
.cc-package-art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  margin-bottom: 0.3rem;
  border-radius: 13px;
  overflow: hidden;
  background: radial-gradient(90% 90% at 70% 20%, rgba(255, 255, 255, 0.18), transparent 60%), linear-gradient(135deg, #1d7fe0, #0b2f6b);
}
.cc-package-art img { position: absolute; left: 50%; top: 4%; height: 92%; width: auto; transform: translateX(-50%); filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45)); transition: transform 0.25s ease; }
.cc-package:hover .cc-package-art img { transform: translateX(-50%) scale(1.06) rotate(-2deg); }
.cc-package-sale { position: absolute; top: 0.55rem; left: 0.55rem; font-size: 0.72rem; font-weight: 700; padding: 0.15rem 0.55rem; border-radius: 999px; background: #1fbf75; color: #04140b; }
.cc-package-coins { font-size: 1.55rem; color: #fff; }
.cc-package-coins small { color: #8fa3bd; }
.cc-package-name { color: #a9b8cc; font-size: 0.85rem; }
.cc-package-price { font-size: 1.35rem; font-weight: 800; color: #38b6ff; margin-top: auto; }
.cc-package-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 42px;
  margin-top: 0.35rem;
  border-radius: 999px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #22b8ff 0%, #0ea5ff 45%, #2563eb 100%);
  box-shadow: 0 8px 20px rgba(14, 165, 255, 0.3);
}
.cc-package:disabled .cc-package-cta { filter: grayscale(0.8) brightness(0.7); box-shadow: none; }

.tu-recent { border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.07); background: linear-gradient(180deg, #131c2c 0%, #0e1522 100%); }

/* ---- คำสั่งซื้อ: ตารางเป็นการ์ดโค้งมนโทนฟ้า */
.ol-filter { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.08); }
.ol-filter.active { border-color: transparent; background: linear-gradient(135deg, #22b8ff, #2563eb); box-shadow: 0 6px 18px rgba(14, 165, 255, 0.3); }
.ol-filter.active em { background: rgba(0, 0, 0, 0.3); }
.ol-table { border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.07); background: linear-gradient(180deg, #131c2c 0%, #0e1522 100%); }
.ol-row-head { background: rgba(14, 165, 255, 0.06); color: #8fb4d9; }
.ol-list .ol-row:hover { background: rgba(14, 165, 255, 0.06); }
.ol-act { border-radius: 999px; }

@media (max-width: 760px) {
  .tu-hero, .ol-hero { min-height: 0; padding: 1.5rem 1.2rem; flex-direction: column; align-items: flex-start; }
  .tu-hero-art, .ol-hero-art { right: -8%; height: 100%; bottom: -10%; opacity: 0.35; }
  .tu-hero .tu-balance, .ol-hero .ol-count { align-self: stretch; }
}

/* กล่องสถานะว่าง/ผิดพลาดของหน้าในร้าน ให้เข้าชุดการ์ดโค้งมน */
body.zs-has-side #view .cc-panel.cc-state,
body.zs-has-side #view .ol-empty,
body.zs-has-side #view .cc-empty { border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.07); border-top: 1px solid rgba(92, 200, 255, 0.35); background: radial-gradient(60% 120% at 50% 0%, rgba(14, 165, 255, 0.12), transparent 70%), linear-gradient(180deg, #131c2c 0%, #0e1522 100%); }

/* ---- หน้าชำระเงิน: ตัวเลือกช่องทางจ่ายเป็นการ์ดฟ้า */
body.zs-has-side #view .cc-method {
  border-radius: 16px;
  border: 1px solid rgba(92, 200, 255, 0.25);
  background: linear-gradient(135deg, rgba(14, 165, 255, 0.16), rgba(37, 99, 235, 0.05)), #111a2a;
  transition: border-color 0.15s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
body.zs-has-side #view .cc-method:hover { border-color: #0ea5ff; box-shadow: 0 10px 28px rgba(14, 165, 255, 0.2); transform: translateY(-2px); }
.cc-package-art img { top: -8%; height: 120%; }

/* ---- ป๊อปอัปยืนยัน (askDialog ใน rcstore.js): แจ้งเตือน + ปุ่มซ้าย/ขวา */
.ask-bg {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(2, 6, 14, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.16s ease;
}
.ask-bg.is-open { opacity: 1; }
.ask-box {
  width: min(100%, 420px);
  padding: 1.8rem 1.6rem 1.4rem;
  text-align: center;
  border-radius: 22px;
  border: 1px solid rgba(92, 200, 255, 0.18);
  background: linear-gradient(180deg, #152036 0%, #0d1422 100%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 50px rgba(14, 165, 255, 0.1);
  transform: translateY(10px) scale(0.97);
  transition: transform 0.18s ease;
}
.ask-bg.is-open .ask-box { transform: none; }
.ask-ic {
  width: 64px;
  height: 64px;
  margin: 0 auto 0.9rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ff8a8a;
  background: rgba(255, 77, 77, 0.12);
  border: 1px solid rgba(255, 99, 99, 0.35);
  box-shadow: 0 0 24px rgba(255, 77, 77, 0.2);
}
.ask-primary .ask-ic { color: #5cc8ff; background: rgba(14, 165, 255, 0.12); border-color: rgba(92, 200, 255, 0.35); box-shadow: 0 0 24px rgba(14, 165, 255, 0.25); }
.ask-box h3 { margin: 0; font-size: 1.2rem; color: #fff; }
.ask-box p { margin: 0.6rem 0 0; color: #a9b8cc; font-size: 0.92rem; line-height: 1.55; }
.ask-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; margin-top: 1.5rem; }
.ask-btn {
  min-height: 46px;
  padding: 0 1rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.15s ease;
}
.ask-btn:focus-visible { outline: 2px solid #5cc8ff; outline-offset: 3px; }
.ask-no { color: #dbe7f5; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); }
.ask-no:hover { background: rgba(255, 255, 255, 0.1); }
.ask-yes { border: 0; color: #fff; }
.ask-yes:hover { transform: translateY(-1px); }
.ask-yes.ask-danger { background: linear-gradient(135deg, #ff5f5f, #d92d4b); box-shadow: 0 8px 22px rgba(217, 45, 75, 0.35); }
.ask-yes.ask-primary { background: linear-gradient(135deg, #22b8ff, #2563eb); box-shadow: 0 8px 22px rgba(14, 165, 255, 0.35); }
@media (prefers-reduced-motion: reduce) { .ask-bg, .ask-box { transition: none; } }

/* รูปเงิน (money-stack-zc.webp ตัดขอบแล้ว): อยู่ในกรอบทั้งหมด ไม่ล้นขอบ ไม่ทับข้อความ */
.tu-hero .tu-hero-art {
  right: 185px;
  bottom: 50%;
  transform: translateY(50%);
  height: auto;
  width: min(27%, 280px);
}
.tu-hero .tu-head-main { max-width: min(520px, 55%); }
.cc-package-art img {
  top: 50%;
  left: 50%;
  width: 78%;
  height: auto;
  max-height: 86%;
  object-fit: contain;
  transform: translate(-50%, -50%);
}
.cc-package:hover .cc-package-art img { transform: translate(-50%, -50%) scale(1.06) rotate(-2deg); }
@media (max-width: 760px) {
  .tu-hero .tu-hero-art { right: 1rem; width: 42%; bottom: auto; top: 1rem; transform: none; opacity: 0.35; }
  .tu-hero .tu-head-main { max-width: none; }
}

/* แบนเนอร์เติมเหรียญ / คำสั่งซื้อ: พื้นหลังเบลอ */
.tu-hero, .ol-hero { background: #0a1730; }
.tu-hero::before, .ol-hero::before {
  content: "";
  position: absolute;
  inset: -24px;
  z-index: -2;
  background: url('/assets/images/hero-bg.jpg') center 40% / cover no-repeat;
  filter: blur(14px) saturate(1.2) brightness(0.75);
}
.tu-hero::after, .ol-hero::after {
  background:
    radial-gradient(50% 90% at 72% 55%, rgba(14, 165, 255, 0.28), transparent 70%),
    linear-gradient(90deg, rgba(6, 12, 24, 0.92) 0%, rgba(6, 12, 24, 0.7) 45%, rgba(6, 12, 24, 0.3) 80%);
}

/* รูปบนแบนเนอร์ต้องอยู่เหนือชั้นไล่สีเข้ม (::after) */
.tu-hero .tu-hero-art, .ol-hero .ol-hero-art { z-index: 0; }
.tu-head-main, .ol-hero-main, .tu-hero .tu-balance, .ol-hero .ol-count { z-index: 1; }

.ol-hero .ol-hero-art { right: 150px; height: 100%; bottom: -4%; }
.ol-hero .ol-hero-main { max-width: min(560px, 55%); }
@media (max-width: 760px) { .ol-hero .ol-hero-main { max-width: none; } }

/* ---- ช่องทางเติม (ใหม่): การ์ดใหญ่ ไอคอนไล่สี ชิปวิธีจ่าย วงกลมเลือกมุมขวา */
.tu-h2 { font-size: 1.15rem; margin-bottom: 0.9rem; }
.tu-methods { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.tu-method {
  position: relative;
  align-items: center;
  gap: 1rem;
  min-height: 112px;
  padding: 1.1rem 3.4rem 1.1rem 1.1rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(160deg, #16213a 0%, #0f1625 100%);
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.2s ease, transform 0.18s ease;
}
.tu-method::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(70% 120% at 0% 0%, rgba(14, 165, 255, 0.28), transparent 60%);
  transition: opacity 0.2s ease;
}
.tu-method:hover { transform: translateY(-2px); border-color: rgba(92, 200, 255, 0.3); }
.tu-method.active {
  border: 1px solid rgba(56, 182, 255, 0.85);
  background: linear-gradient(160deg, #142a4a 0%, #0f1a2e 100%);
  box-shadow: 0 14px 36px rgba(14, 165, 255, 0.2), inset 0 0 0 1px rgba(56, 182, 255, 0.25);
}
.tu-method.active::before { opacity: 1; }
.tu-method-ic {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  color: #fff;
  border: 0;
  background: linear-gradient(135deg, #2a3a55, #1a2436);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.tu-method.active .tu-method-ic { background: linear-gradient(135deg, #22b8ff, #2563eb); box-shadow: 0 8px 22px rgba(14, 165, 255, 0.45); }
.tu-method-txt { position: relative; display: grid; gap: 0.3rem; }
.tu-method-title { font-size: 1.05rem; }
.tu-method-txt small { white-space: normal; color: #9fb0c6; font-size: 0.82rem; margin: 0; }
.tu-badge { border-radius: 999px; color: #04140b; background: #34d399; border: 0; font-weight: 700; padding: 0.1rem 0.55rem; }
.tu-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.15rem; }
.tu-chip { font-size: 0.72rem; padding: 0.15rem 0.55rem; border-radius: 999px; color: #cfe3f7; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.08); }
.tu-status { color: #ffd66b; border-color: rgba(255, 214, 107, 0.3); background: rgba(255, 196, 0, 0.08); }
.tu-status.is-ok { color: #6ee7b7; border-color: rgba(52, 211, 153, 0.35); background: rgba(52, 211, 153, 0.08); }
.tu-check {
  position: absolute;
  top: 50%;
  right: 1.1rem;
  width: 26px;
  height: 26px;
  margin-top: -13px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: transparent;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.18s ease;
}
.tu-method.active .tu-check { color: #fff; border-color: transparent; background: linear-gradient(135deg, #22b8ff, #2563eb); box-shadow: 0 0 14px rgba(14, 165, 255, 0.5); }

/* เอาพื้นหลังเส้นตารางเดิมของร้านออก (store.css .cc-app) — ใช้แสงฟ้าจางแทนทุกหน้า */
body.cc-app {
  background:
    radial-gradient(70% 50% at 85% 0%, rgba(14, 165, 255, 0.12), transparent 70%),
    radial-gradient(60% 50% at 0% 100%, rgba(37, 99, 235, 0.1), transparent 70%),
    #080c14;
  background-attachment: fixed;
}

/* ---- เติมเงิน (กระเป๋าเงินบาท): ยอดในกระเป๋า · ปุ่มจำนวนเงิน · ช่องกรอกเอง · แถบจ่าย */
.tu-wallet { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; padding: 0.9rem 1rem; border-radius: 16px; background: linear-gradient(135deg, rgba(14, 165, 255, 0.16), rgba(37, 99, 235, 0.05)); border: 1px solid rgba(92, 200, 255, 0.25); }
.tu-wallet-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #22b8ff, #2563eb); }
.tu-wallet > span:nth-child(2) { display: grid; }
.tu-wallet small { color: #9fb0c6; font-size: 0.78rem; }
.tu-wallet b { color: #fff; font-size: 1.5rem; line-height: 1.1; }
.tu-wallet-note { margin-left: auto; }
.tu-amounts { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 0.7rem; }
.tu-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.2rem;
  min-height: 72px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, #172238 0%, #111a2a 100%);
  color: #dbe7f5;
  font: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease;
}
.tu-amount b { font-size: 1.5rem; font-weight: 800; color: #fff; }
.tu-amount-cur { color: #5cc8ff; font-weight: 700; }
.tu-amount:hover { transform: translateY(-2px); border-color: rgba(92, 200, 255, 0.35); }
.tu-amount[aria-checked='true'] { border-color: #38b6ff; background: linear-gradient(135deg, rgba(34, 184, 255, 0.28), rgba(37, 99, 235, 0.18)); box-shadow: 0 10px 26px rgba(14, 165, 255, 0.25); }
.tu-amount:focus-visible, .tu-pay:focus-visible { outline: 2px solid #5cc8ff; outline-offset: 3px; }
.tu-amount-input { width: 100%; height: 50px; padding: 0 1rem; border-radius: 14px; border: 1px solid #22314a; background: #121b2b; color: #fff; font: inherit; }
.tu-amount-input:focus { outline: none; border-color: #0ea5ff; box-shadow: 0 0 0 3px rgba(14, 165, 255, 0.2); }
.tu-paybar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1rem 1.1rem; border-radius: 16px; background: rgba(4, 10, 20, 0.55); border: 1px solid rgba(92, 200, 255, 0.14); }
.tu-paybar > span { display: grid; }
.tu-paybar small { color: #9fb0c6; font-size: 0.8rem; }
.tu-paybar strong { color: #fff; font-size: 1.6rem; }
.tu-pay { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 52px; padding: 0 1.8rem; border: 0; border-radius: 999px; font: inherit; font-weight: 700; font-size: 1.02rem; color: #fff; cursor: pointer; background: linear-gradient(135deg, #22b8ff 0%, #0ea5ff 45%, #2563eb 100%); box-shadow: 0 10px 26px rgba(14, 165, 255, 0.35); }
.tu-pay:disabled { filter: grayscale(0.8) brightness(0.7); cursor: not-allowed; box-shadow: none; }
.tu-plus { color: #34d399; }
.tu-minus { color: #ff8a8a; }

/* แพ็กเกจ/ไอเท็มในโปรไฟล์: พื้นดำ */
.cc-package-art { background: radial-gradient(80% 90% at 50% 35%, #1a1d24 0%, #0b0d12 55%, #000 100%) !important; border: 1px solid rgba(255, 255, 255, 0.06); }

/* ---- เติมเงินในหน้าเดียว: QR + บัญชี + แนบสลิป */
.sp { gap: 1rem; }
.sp-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1rem 1.1rem; border-radius: 16px; background: linear-gradient(135deg, rgba(14, 165, 255, 0.16), rgba(37, 99, 235, 0.05)); border: 1px solid rgba(92, 200, 255, 0.25); }
.sp-head > div { display: grid; }
.sp-head small { color: #9fb0c6; font-size: 0.8rem; }
.sp-head strong { color: #fff; font-size: 2rem; line-height: 1.1; }
.sp-timer { padding: 0.35rem 0.8rem; border-radius: 999px; color: #ffd66b; background: rgba(255, 196, 0, 0.08); border: 1px solid rgba(255, 214, 107, 0.3); font-size: 0.85rem; }
.sp-steps { margin: 0; padding-left: 1.2rem; color: #c7d6ea; font-size: 0.9rem; display: grid; gap: 0.25rem; }
.sp-grid { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 1rem; align-items: stretch; }
.sp-qrbox { display: grid; justify-items: center; gap: 0.5rem; padding: 1rem; border-radius: 16px; background: #fff; }
.sp-qrbox small { color: #334; font-size: 0.78rem; }
.sp-qr { width: 220px; height: 220px; display: grid; place-items: center; }
.sp-qr svg { width: 100%; height: 100%; }
.sp-qr-none { display: grid; justify-items: center; color: #556; text-align: center; }
.sp-bank { display: grid; gap: 0.5rem; align-content: start; padding: 1rem; border-radius: 16px; background: rgba(4, 10, 20, 0.55); border: 1px solid rgba(92, 200, 255, 0.14); }
.sp-row { display: grid; grid-template-columns: 6rem 1fr auto; align-items: center; gap: 0.6rem; min-height: 38px; }
.sp-row small { color: #8fa3bd; }
.sp-row b { color: #fff; overflow-wrap: anywhere; }
.sp-copy { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.3rem 0.7rem; border-radius: 999px; border: 1px solid rgba(92, 200, 255, 0.3); background: rgba(14, 165, 255, 0.1); color: #bfe6ff; font: inherit; font-size: 0.78rem; cursor: pointer; }
.sp-drop { position: relative; display: grid; place-items: center; min-height: 150px; padding: 1rem; border-radius: 16px; border: 2px dashed rgba(92, 200, 255, 0.35); background: rgba(4, 10, 20, 0.45); cursor: pointer; text-align: center; transition: border-color 0.15s ease, background 0.15s ease; }
.sp-drop:hover, .sp-drop.is-over { border-color: #38b6ff; background: rgba(14, 165, 255, 0.08); }
.sp-file { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.sp-drop-txt { display: grid; justify-items: center; gap: 0.3rem; color: #cfe3f7; pointer-events: none; }
.sp-drop-txt small { color: #8fa3bd; }
.sp-drop.has-file .sp-drop-txt { display: none; }
.sp-preview { max-height: 260px; max-width: 100%; border-radius: 10px; pointer-events: none; }
.sp-status { margin: 0; min-height: 1.2em; color: #9fb0c6; font-size: 0.9rem; }
.sp-status.is-err { color: #ff8a8a; }
.sp-actions { display: flex; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap; }
.sp-cancel { min-height: 52px; padding: 0 1.4rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.05); color: #dbe7f5; font: inherit; font-weight: 700; cursor: pointer; }
.sp-send { flex: 1 1 260px; justify-content: center; }
@media (max-width: 640px) { .sp-grid { grid-template-columns: minmax(0, 1fr); } .sp-qrbox { justify-self: center; } }

/* เมนูโปรไฟล์ (ไอคอนผู้ใช้มุมขวาบน) */
.am-pop { position: fixed; z-index: 900; width: 250px; padding: 0.5rem; border-radius: 18px; border: 1px solid rgba(92, 200, 255, 0.2);
  background: linear-gradient(180deg, #152036 0%, #0d1422 100%); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); animation: am-in 0.14s ease; }
@keyframes am-in { from { opacity: 0; transform: translateY(-6px); } }
.am-head { display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem 0.6rem 0.8rem; margin-bottom: 0.3rem; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.am-avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #22b8ff, #2563eb); }
.am-who { display: grid; min-width: 0; }
.am-who b { color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.am-who small { color: #8fa3bd; font-size: 0.76rem; }
.am-item { display: flex; align-items: center; gap: 0.7rem; width: 100%; min-height: 42px; padding: 0 0.7rem; border: 0; border-radius: 12px; background: none; color: #dbe7f5; font: inherit; font-size: 0.92rem; text-decoration: none; cursor: pointer; text-align: left; }
.am-item:hover, .am-item:focus-visible { background: rgba(14, 165, 255, 0.12); color: #fff; outline: none; }
.am-item svg { color: #5cc8ff; flex: none; }
.am-logout { margin-top: 0.3rem; border-top: 1px solid rgba(255, 255, 255, 0.07); border-radius: 0 0 12px 12px; color: #ff9a9a; }
.am-logout svg { color: #ff8a8a; }
.am-logout:hover { background: rgba(255, 77, 77, 0.1); color: #ffb3b3; }

/* ---- โทรศัพท์: การ์ดบัญชีด้านบนแบบกะทัดรัด, บัญชีธนาคารไม่ตัดบรรทัด */
@media (max-width: 960px) {
  .rc-acct { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.6rem 0.8rem; padding: 0.9rem 1rem; }
  .rc-acct-top { grid-column: 1 / -1; }
  .rc-acct-tags, .rc-acct-foot, .rc-acct-pick > span { display: none; }
  .rc-acct-pick { grid-column: 1 / -1; }
  .rc-acct-coins { padding: 0.55rem 0.8rem; }
  .rc-acct .rc-coins { font-size: 1.4rem; }
  .rc-topup { height: 44px; padding: 0 1.1rem; white-space: nowrap; }
}
@media (max-width: 480px) {
  .sp-row { grid-template-columns: 4.6rem 1fr auto; gap: 0.4rem; }
  .sp-row b { white-space: nowrap; font-size: 0.92rem; }
  .sp-head strong { font-size: 1.6rem; }
  .sp-qr { width: 200px; height: 200px; }
  .tu-amounts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tu-amount { min-height: 60px; }
  .tu-amount b { font-size: 1.2rem; }
  .tu-paybar { flex-direction: column; align-items: stretch; }
  .tu-pay { justify-content: center; }
  .pd-buybox, .pd-info { padding: 1.1rem; }
  .pd-price b { font-size: 1.9rem; }
  .am-pop { width: min(260px, calc(100vw - 16px)); }
}

/* ปุ่มจำนวนเงิน: 6 ช่องเต็มแถว (5 จำนวน + ระบุเอง) ตัวเลขอยู่กลางปุ่ม */
.tu-amounts { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.tu-amount { align-items: center; justify-content: center; gap: 0.25rem; min-height: 76px; padding: 0 0.4rem; }
.tu-amount-cur { font-size: 1.05rem; line-height: 1; }
.tu-amount b { line-height: 1; }
.tu-amount-custom { flex-direction: column; gap: 0.35rem; color: #9fb0c6; }
.tu-amount-custom b { font-size: 0.95rem; font-weight: 700; color: #cfe3f7; }
.tu-amount-custom svg { color: #5cc8ff; }
@media (max-width: 760px) { .tu-amounts { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tu-amount { min-height: 64px; } }

/* ---- เติมเงินด้วยคริปโต: รายการเหรียญที่รองรับ · คำเตือนเครือข่าย · ใบแจ้งยอด (QR + ที่อยู่ + ยอดตรงทุกหลัก) · สถานะสด */
.cr-ic { width: 20px; height: 20px; flex: none; vertical-align: -4px; border-radius: 50%; }
.cr-ic-lg { width: 30px; height: 30px; }
.cr-ic-chip { width: 14px; height: 14px; margin-right: 0.3rem; vertical-align: -2px; }
.tu-chip:has(.cr-ic-chip) { display: inline-flex; align-items: center; }
.cr-intro { margin: -0.3rem 0 0; color: #9fb0c6; font-size: 0.88rem; }
.cr-coins { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0.7rem; }
.cr-coin { display: flex; align-items: center; gap: 0.75rem; min-height: 64px; padding: 0.7rem 0.9rem; border-radius: 16px; border: 1px solid #22314a; background: #121b2b; color: #fff; font: inherit; text-align: left; cursor: pointer; transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease; }
.cr-coin:hover:not(:disabled) { transform: translateY(-2px); border-color: rgba(92, 200, 255, 0.35); }
.cr-coin[aria-checked='true'] { border-color: #38b6ff; background: linear-gradient(135deg, rgba(34, 184, 255, 0.24), rgba(37, 99, 235, 0.14)); box-shadow: 0 10px 26px rgba(14, 165, 255, 0.22); }
.cr-coin:focus-visible { outline: 2px solid #5cc8ff; outline-offset: 3px; }
.cr-coin.is-off { cursor: not-allowed; opacity: 0.62; }
.cr-coin-ic { position: relative; flex: none; width: 34px; height: 34px; }
.cr-coin-ic .cr-ic-net { position: absolute; right: -5px; bottom: -4px; width: 16px; height: 16px; box-shadow: 0 0 0 2px #121b2b; }
.cr-coin-txt { display: grid; gap: 0.1rem; min-width: 0; flex: 1; }
.cr-coin-txt b { font-size: 0.98rem; }
.cr-coin-txt small { color: #9fb0c6; font-size: 0.78rem; }
.cr-coin .tu-chip { flex: none; }
.cr-netwarn { display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.75rem 0.9rem; border-radius: 14px; color: #ffe1a6; background: rgba(255, 170, 0, 0.08); border: 1px solid rgba(255, 196, 0, 0.32); font-size: 0.88rem; line-height: 1.45; }
.cr-netwarn svg { flex: none; color: #ffc44d; margin-top: 1px; }
.cr-netwarn b { color: #ffd66b; }
.cr-est { color: #8fa3bd; font-size: 0.78rem; }
.cr-amt { display: inline-flex; align-items: center; gap: 0.5rem; font-variant-numeric: tabular-nums; }
.cr .sp-qrbox { align-content: start; }
.cr-netbadge { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.2rem 0.65rem; border-radius: 999px; background: #0f172a; color: #e6f2ff; font-size: 0.78rem; font-weight: 700; }
.cr .sp-row b.cr-inline { display: inline-flex; align-items: center; gap: 0.35rem; }
.cr-mono { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: 0.9rem; letter-spacing: 0.01em; }
.cr .sp-row b.cr-exact { color: #6ee7b7; font-size: 1.12rem; }
.cr-exactnote { display: flex; gap: 0.4rem; align-items: flex-start; margin: 0.2rem 0 0; color: #9fb0c6; font-size: 0.8rem; line-height: 1.45; }
.cr-exactnote svg { flex: none; margin-top: 2px; color: #5cc8ff; }
.cr-status { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 0.7rem; row-gap: 0.35rem; padding: 0.9rem 1rem; border-radius: 16px; background: rgba(4, 10, 20, 0.55); border: 1px solid rgba(92, 200, 255, 0.18); }
.cr-status > :not(.cr-dot) { grid-column: 2; }
.cr-status b { color: #fff; }
.cr-status small { color: #9fb0c6; font-size: 0.82rem; }
.cr-status.is-paid { border-color: rgba(52, 211, 153, 0.45); background: rgba(16, 185, 129, 0.1); }
.cr-status.is-needs_review { border-color: rgba(255, 196, 0, 0.4); }
.cr-status.is-expired, .cr-status.is-cancelled { border-color: rgba(255, 120, 120, 0.35); }
.cr-dot { grid-row: 1 / span 3; align-self: start; margin-top: 0.3rem; width: 12px; height: 12px; border-radius: 50%; background: #5cc8ff; }
.cr-dot.is-wait { animation: cr-pulse 1.4s ease-in-out infinite; }
.cr-dot.is-conf { background: #ffd66b; animation: cr-pulse 1s ease-in-out infinite; }
.cr-dot.is-ok { background: #34d399; }
.cr-dot.is-warn { background: #ffc44d; }
.cr-dot.is-err { background: #ff7a7a; }
@keyframes cr-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(92, 200, 255, 0.55); } 50% { box-shadow: 0 0 0 8px rgba(92, 200, 255, 0); } }
.cr-bar { display: block; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.cr-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #22b8ff, #34d399); transition: width 0.4s ease; }
.cr-tx { color: #5cc8ff; font-size: 0.85rem; justify-self: start; }
.cr.is-done .sp-qr { opacity: 0.25; }
@media (prefers-reduced-motion: reduce) { .cr-dot { animation: none !important; } }
@media (max-width: 640px) { .cr .sp-row { grid-template-columns: 4.6rem minmax(0, 1fr) auto; } .cr .sp-row b.cr-mono { white-space: normal; overflow-wrap: anywhere; font-size: 0.84rem; } }
@media (max-width: 480px) { .cr-coins { grid-template-columns: minmax(0, 1fr); } .cr-amt { font-size: 1.45rem; } .cr .sp-row b.cr-exact { white-space: nowrap; font-size: 1rem; } }
/* QA2: ข้อความเตือนจำนวนเงินที่ระบุเอง · ยอดค้างชำระ · แผงจ่ายเงินไม่หลบใต้แถบด้านบน */
.tu-amount-msg { margin: 0.45rem 0 0; color: #ffb4a8; font-size: 0.85rem; }
.tu-amount-input[aria-invalid='true'] { border-color: #f87171; }
.tu-debt { display: flex; align-items: flex-start; gap: 0.5rem; margin: 0 0 1rem; }
.tu-debt svg { flex: none; margin-top: 0.15rem; }
.tu-panel { scroll-margin-top: 6.5rem; }

/* ไอคอนช่องทางเติม (ใหม่) */
.tu-method-ic { width: 58px; height: 58px; }
.tu-mi-svg { display: grid; place-items: center; line-height: 0; }
.tu-mi-coins { position: relative; width: 40px; height: 34px; }
.tu-mi-coins img { position: absolute; width: 28px; height: 28px; border-radius: 50%; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45); }
.tu-mi-coins img:first-child { left: 0; top: 0; z-index: 1; }
.tu-mi-coins img:last-child { right: 0; bottom: 0; }
.tu-method .tu-mi-coins img { filter: none; transition: filter 0.2s ease; }
.tu-method.active .tu-mi-coins img, .tu-method:hover .tu-mi-coins img { filter: none; }
.tu-method.tu-mi-crypto, .tu-method .tu-mi-crypto { background: linear-gradient(135deg, #1e2b40, #121a28); }
.tu-method.active .tu-mi-crypto { background: linear-gradient(135deg, #0f3b2e, #10233f); box-shadow: 0 8px 22px rgba(38, 161, 123, 0.35); }

/* ซองอั่งเปา TrueMoney: ไอคอนส้ม (วาดเอง) · ขั้นตอน · ช่องลิงก์ + วาง · ผลลัพธ์ · ประวัติ */
.tu-method .tu-mi-truewallet { background: linear-gradient(135deg, #4a2f17, #2a1b10); }
.tu-method.active .tu-mi-truewallet, .tu-method:hover .tu-mi-truewallet { background: linear-gradient(135deg, #ff9a1f, #f05a00); box-shadow: 0 8px 22px rgba(255, 122, 0, 0.4); }
.tw-steps { list-style: none; counter-reset: tw; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0.6rem; }
.tw-steps li { counter-increment: tw; position: relative; display: grid; gap: 0.2rem; align-content: start; padding: 0.75rem 0.85rem 0.8rem 2.85rem; border-radius: 14px; background: rgba(4, 10, 20, 0.55); border: 1px solid rgba(255, 154, 31, 0.18); }
.tw-steps li::before { content: counter(tw); position: absolute; left: 0.8rem; top: 0.75rem; width: 1.55rem; height: 1.55rem; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 0.85rem; color: #fff; background: linear-gradient(135deg, #ff9a1f, #f05a00); }
.tw-steps b { color: #fff; font-size: 0.92rem; }
.tw-steps small { color: #9fb0c6; font-size: 0.8rem; line-height: 1.4; }
.tw-label { display: block; margin: 0.4rem 0 -0.3rem; color: #cfe3f7; font-weight: 700; font-size: 0.92rem; }
.tw-field { display: flex; gap: 0.5rem; align-items: stretch; }
.tw-input { flex: 1; min-width: 0; min-height: 50px; padding: 0 0.95rem; border-radius: 14px; border: 1px solid #2a3a55; background: #0b1220; color: #fff; font: inherit; font-size: 0.95rem; }
.tw-input::placeholder { color: #61748f; }
.tw-input:focus-visible { outline: 2px solid #5cc8ff; outline-offset: 2px; border-color: #38b6ff; }
.tw-input[aria-invalid='true'] { border-color: #f87171; }
.tw-input:disabled { opacity: 0.6; cursor: not-allowed; }
.tw-paste, .tw-retry, .tw-recheck { display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem; border-radius: 14px; border: 1px solid rgba(92, 200, 255, 0.3); background: rgba(14, 165, 255, 0.1); color: #cfe9ff; font: inherit; font-weight: 700; cursor: pointer; }
.tw-paste { flex: none; min-width: 84px; padding: 0 0.9rem; }
.tw-paste:hover:not(:disabled), .tw-retry:hover, .tw-recheck:hover:not(:disabled) { background: rgba(14, 165, 255, 0.2); }
.tw-paste:disabled, .tw-recheck:disabled { opacity: 0.55; cursor: not-allowed; }
.tw-paste:focus-visible, .tw-retry:focus-visible, .tw-recheck:focus-visible { outline: 2px solid #5cc8ff; outline-offset: 2px; }
.tw-hint { margin: -0.35rem 0 0; color: #ffb4a8; font-size: 0.84rem; min-height: 0; }
.tw-hint:empty { display: none; }
.tw-actions { display: flex; justify-content: flex-end; }
.tw-go { min-width: 200px; justify-content: center; }
.tw-box { display: flex; align-items: flex-start; gap: 0.7rem; flex-wrap: wrap; padding: 0.85rem 1rem; border-radius: 16px; border: 1px solid; }
.tw-box > svg { flex: none; margin-top: 2px; }
.tw-box-txt { display: grid; gap: 0.2rem; flex: 1; min-width: 12rem; }
.tw-box b { color: #fff; }
.tw-box small { color: #c7d6ea; font-size: 0.86rem; line-height: 1.45; }
.tw-box.is-ok { border-color: rgba(52, 211, 153, 0.45); background: rgba(16, 185, 129, 0.1); color: #34d399; }
.tw-box.is-warn { border-color: rgba(255, 196, 0, 0.4); background: rgba(255, 196, 0, 0.07); color: #ffc44d; }
.tw-box.is-err { border-color: rgba(248, 113, 113, 0.45); background: rgba(248, 113, 113, 0.08); color: #ff8a8a; }
.tw-retry { min-height: 38px; padding: 0 0.85rem; align-self: center; }
.tw-hist .tu-list { margin: 0; }
.tw-row-ic { color: #ff9a1f; }
.tw-row-msg { color: #ffb4a8 !important; white-space: normal; }
.tw .tu-row-end { display: grid; justify-items: end; gap: 0.25rem; }
.tw-chip { font-size: 0.72rem; padding: 0.12rem 0.55rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.12); color: #cfe3f7; white-space: nowrap; }
.tw-chip.is-ok { color: #6ee7b7; border-color: rgba(52, 211, 153, 0.35); background: rgba(52, 211, 153, 0.08); }
.tw-chip.is-warn { color: #ffd66b; border-color: rgba(255, 214, 107, 0.3); background: rgba(255, 196, 0, 0.08); }
.tw-chip.is-err { color: #ff9b9b; border-color: rgba(248, 113, 113, 0.35); background: rgba(248, 113, 113, 0.08); }
.tw-recheck { min-height: 32px; padding: 0 0.6rem; font-size: 0.78rem; border-radius: 10px; }
.tw-empty { margin: 0; color: #8fa3bd; font-size: 0.88rem; }
@media (max-width: 480px) {
  .tw-steps { grid-template-columns: minmax(0, 1fr); }
  .tw-actions .tw-go { width: 100%; }
  .tw-paste { min-width: 72px; padding: 0 0.7rem; }
}

/* ช่องทางเติม: 2 แถว (2 คอลัมน์) บนจอกว้าง, 1 คอลัมน์บนมือถือ */
.tu-methods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tu-methods > .tu-method:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 640px) { .tu-methods { grid-template-columns: 1fr; } }
