/* ═══════════ LIUNI TEA — stylesheet (มือถือ 430px, ธีมสีฟ้า) ═══════════ */
:root {
  --brand: #1f6fd6;            /* ฟ้ากลาง (ปุ่มหลัก) */
  --brand-dark: #1757ad;       /* ฟ้าเข้ม (กดปุ่ม) */
  --brand-soft: #5a9be8;       /* ฟ้าอ่อน (ปุ่มรอง/โปรโมชัน) */
  --brand-tint: #1f6fd6;       /* ข้อความเน้นสีฟ้า */
  --brand-light: #e8f0fa;      /* พื้นฟ้าอ่อน */
  --green-line: #06c755;       /* สีแบรนด์ LINE (คงไว้) */
  --black: #1c1c1c;
  --bg: #eaf0f8;               /* พื้นแอปฟ้าอ่อน */
  --bg-card: #f7fafd;
  --text: #262626;
  --muted: #5f6b7a;
  --line: #c3cfe0;
  --error: #d93025;            /* สีแดงสำหรับข้อผิดพลาดเท่านั้น */
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body { height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #2b2b2b;
  color: var(--text);
}

/* ── กรอบโทรศัพท์บนจอใหญ่ ── */
.phone {
  position: relative;
  width: 430px;
  max-width: 100vw;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
}

/* ═══════════ แถบบน (header) ═══════════ */
.login-header,
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 12px 14px;
  border-bottom: 2px solid #b8d4f5;
  position: relative;
  z-index: 10;
}

.app-header { border-bottom: 1px solid #d3e2f5; }

.icon-btn {
  background: none;
  border: none;
  color: #111;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.login-header-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
  min-width: 0;
}
.login-title-main { font-size: 17px; font-weight: 700; color: #111; }
.login-title-url { font-size: 11px; color: #8a97a8; }

/* โลโก้ LIUNI TEA */
.header-logo {
  display: block;
  height: 38px;
  width: auto;
  border-radius: 10px;
}
.admin-logo { height: 34px; border-radius: 8px; }
.admin-brand { display: flex; align-items: center; gap: 8px; }
.admin-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--brand);
  background: var(--brand-light);
  padding: 4px 9px;
  border-radius: 12px;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 5px;
}
.logo-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #7ab8f5, var(--brand) 70%);
  align-self: center;
  flex-shrink: 0;
}
.logo-main {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 900;
  font-size: 24px;
  letter-spacing: 0.4px;
  color: #111;
}
.logo-sub {
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 2.5px;
  color: var(--brand);
  align-self: center;
}

/* ═══════════ Hero การ์ดคะแนน (โมเดิร์น) ═══════════ */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #2f7fe0 0%, #4f9aec 55%, #7db8f5 100%);
  border-radius: 24px;
  padding: 20px 20px 16px;
  color: #fff;
  box-shadow: 0 8px 24px rgba(31, 111, 214, 0.28);
}
.hero-deco {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
.hero-deco-1 { width: 170px; height: 170px; top: -64px; right: -44px; }
.hero-deco-2 { width: 120px; height: 120px; bottom: -56px; left: -34px; }
.hero-bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}
.hero-bubble-1 { width: 14px; height: 14px; top: 30px; right: 74px; }
.hero-bubble-2 { width: 8px; height: 8px; top: 56px; right: 50px; }
.hero-top { display: flex; justify-content: space-between; align-items: center; }
.hero-greet { font-size: 15px; font-weight: 700; opacity: 0.95; }
.hero-greet span { font-weight: 800; }
.hero-cup { font-size: 34px; line-height: 1; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.22)); }
.hero-points {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 14px;
}
.hero-points-num {
  font-size: 60px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1px;
}
.hero-points-label { font-size: 18px; font-weight: 700; opacity: 0.95; }
.hero-refresh {
  margin-left: auto;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.hero-refresh:hover { background: rgba(255, 255, 255, 0.32); }
.hero-refresh:active { transform: scale(0.92); }
.hero-refresh.spinning svg { animation: hero-refresh-spin 0.8s linear infinite; }
@keyframes hero-refresh-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.hero-hint { font-size: 12.5px; opacity: 0.85; margin-top: 8px; }
.hero-stats {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.hero-stat {
  flex: 1;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-stat-label { font-size: 11.5px; opacity: 0.85; }
.hero-stat-value { font-size: 15px; font-weight: 800; }

/* ═══════════ เมนูด่วน (action grid) ═══════════ */
.actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}
.action-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  background: #fff;
  border: 1px solid #dce5f1;
  border-radius: 20px;
  padding: 14px;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(31, 111, 214, 0.06);
  transition: transform 0.12s ease;
}
.action-tile:active { transform: scale(0.96); }
.action-tile.primary {
  background: linear-gradient(135deg, #2f7fe0, #5aa8f0);
  border: none;
  color: #fff;
  box-shadow: 0 6px 16px rgba(31, 111, 214, 0.3);
}
.action-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #e8f1fd;
  color: #1f6fd6;
  display: flex;
  align-items: center;
  justify-content: center;
}
.action-tile.primary .action-icon { background: #fff; color: #1f6fd6; }
.action-icon.tile-cyan { background: #e0f4fb; color: #0f9cc4; }
.action-icon.tile-amber { background: #fdf1dc; color: #d97706; }
.action-icon.tile-violet { background: #efe9fd; color: #7c3aed; }
.action-icon.tile-coral { background: #fdecec; color: #e05252; }
.action-label { font-size: 14.5px; font-weight: 800; color: #1c1c1c; }
.action-tile.primary .action-label { color: #fff; }
.action-sub { font-size: 11.5px; color: var(--muted); }
.action-tile.primary .action-sub { color: rgba(255, 255, 255, 0.85); }

.action-tile-wide {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.action-tile-wide .action-tile-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.action-tile-wide .action-arrow { color: var(--brand); font-size: 20px; font-weight: 800; }

/* ═══════════ ส่วนคะแนน ═══════════ */
.points-section { padding: 18px 16px 40px; }

.section-title-brand {
  text-align: center;
  font-size: 21px;
  font-weight: 800;
  color: var(--brand);
  padding-bottom: 10px;
  position: relative;
}
.section-title-brand::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background: var(--brand);
  margin-top: 8px;
}

.points-big {
  text-align: center;
  font-size: 64px;
  font-weight: 800;
  color: #111;
  margin-top: 18px;
  line-height: 1;
}
.points-label {
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  color: #3d3d3d;
  margin: 4px 0 22px;
}

/* ── ปุ่ม ── */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 26px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
}
.btn + .btn { margin-top: 12px; }
.btn-lg { padding: 15px; font-size: 17px; }
.btn-primary { background: var(--brand); }
.btn-primary:active { background: var(--brand-dark); }
.btn-black { background: var(--black); }
.btn-light { background: var(--brand-soft); }
.btn-line { background: var(--green-line); }
.btn-ghost { background: #dbe6f4; color: #333; }
.btn-back { background: #4b4b4b; color: #fff; width: auto; min-width: 180px; font-size: 14px; }

/* ── แถวข้อมูล ── */
.divider-line {
  height: 1px;
  background: var(--line);
  margin: 24px 0 6px;
}
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 2px;
  font-size: 15px;
  color: #444;
  border-bottom: 1px dashed #c8d4e4;
}
.info-row .brand { color: var(--brand-tint); font-weight: 600; }

/* ── ขอบกระดาษฉีก ── */
.tear-edge {
  display: block;
  width: calc(100% + 36px);
  height: 12px;
  margin: 22px -18px 0;
}

/* ── ประวัติ ── */
.history-title {
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  color: #333;
  margin: 20px 0 14px;
}
.history-list { display: flex; flex-direction: column; gap: 12px; }

.history-card {
  background: #fff;
  border: 1px solid #dce5f1;
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 1px 4px rgba(31, 111, 214, 0.08);
}
.h-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  padding: 3px 0;
}
.h-row .dim { color: var(--muted); }
.h-row .branch { font-weight: 700; color: #222; }
.h-row .amount { color: #222; }
.h-divider { border-top: 1px solid #e6edf6; margin: 8px 0; }
.h-earn { color: var(--brand-tint); font-weight: 700; }
.h-empty {
  background: #fff;
  border: 1px dashed #c3cfe0;
  border-radius: 12px;
  text-align: center;
  color: var(--muted);
  padding: 26px;
  font-size: 14px;
}

/* ═══════════ หน้าเข้าสู่ระบบ ═══════════ */
.login-body { padding: 34px 28px; }
.login-heading { font-size: 24px; font-weight: 800; margin-bottom: 26px; }
.login-heading.small { font-size: 19px; }

.text-input {
  width: 100%;
  border: none;
  border-bottom: 1px solid #a9bdd8;
  background: transparent;
  padding: 11px 2px;
  font-size: 16px;
  font-family: inherit;
  color: #111;
  border-radius: 0;
  outline: none;
}
.text-input:focus { border-bottom-color: var(--brand); }
.text-input::placeholder { color: #8a97a8; }
.text-input + .text-input { margin-top: 18px; }

.pw-wrap { position: relative; margin-top: 18px; }
.pw-wrap .text-input { margin-top: 0; padding-right: 40px; }
.pw-eye {
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #777;
  cursor: pointer;
  display: flex;
  padding: 6px;
}

.forgot-link {
  display: block;
  text-align: right;
  font-size: 13px;
  color: #333;
  margin: 14px 0 26px;
  text-decoration: none;
}

.or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: #8a97a8;
  font-size: 14px;
}
.or-divider::before,
.or-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #c3cfe0;
}

.btn-line svg { flex-shrink: 0; }

.form-error {
  color: var(--error);
  text-align: center;
  font-size: 14px;
  margin-top: 16px;
}

.demo-note {
  margin-top: 26px;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
  background: #f4f8fe;
  border: 1px dashed #b9cdea;
  border-radius: 10px;
  padding: 12px;
}
.demo-note b { color: var(--brand); }

/* หน้าเลือกบัญชีโหมดสาธิต */
.demo-badge {
  display: inline-block;
  background: #cfe2fa;
  color: #14487f;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 12px;
  margin-bottom: 16px;
}
.demo-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 22px;
}
.demo-desc code { background: #e3ecf8; padding: 1px 5px; border-radius: 4px; font-size: 12px; }
.demo-members {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}
.demo-member {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #dce5f1;
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  text-align: left;
  color: #222;
}
.demo-member:active { background: #f0f6fd; }
.demo-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--green-line);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.demo-member .dm-name { font-weight: 700; display: block; }
.demo-member .dm-sub { font-size: 12px; color: var(--muted); display: block; }

/* ═══════════ หน้าข้อมูลส่วนตัว ═══════════ */
.profile-header { border-bottom: 2px solid #b8d4f5; }
.profile-body { padding: 26px 18px 40px; }
.profile-card {
  background: #fff;
  border-radius: 14px;
  margin-top: 26px;
  padding: 6px 18px;
  border: 1px solid #dce5f1;
}
.pfield {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #eef3fa;
}
.pfield:last-child { border-bottom: none; }
.plabel { font-size: 14px; color: var(--muted); }
.pvalue { font-size: 14.5px; font-weight: 600; color: #222; }

/* ── แก้ไขข้อมูลส่วนตัว ── */
.profile-actions { margin-top: 14px; }
.profile-actions .btn + .btn { margin-top: 10px; }
#btn-edit-profile { margin-top: 14px; }

.pedit-input {
  flex: 1;
  min-width: 0;
  text-align: right;
  border: 1px solid #a9bdd8;
  border-radius: 10px;
  background: #f5f9ff;
  padding: 8px 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: #222;
  font-family: inherit;
  outline: none;
}
.pedit-input:focus { border-color: var(--brand); }
.pedit-select { text-align: left; padding-right: 8px; }

.confirm-desc { font-size: 13px; color: var(--muted); text-align: center; margin-bottom: 12px; }
.confirm-list {
  background: #f7fafd;
  border: 1px dashed #b9cdea;
  border-radius: 10px;
  padding: 6px 14px;
  margin-bottom: 10px;
}
.confirm-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid #eef3fa;
  font-size: 13.5px;
}
.confirm-row:last-child { border-bottom: none; }
.c-label { flex: 0 0 100px; color: var(--muted); font-size: 12.5px; }
.c-old {
  flex: 1;
  color: #999;
  text-decoration: line-through;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.c-new {
  flex: 1;
  color: var(--brand);
  font-weight: 700;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ═══════════ Modal / Bottom sheet ═══════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 50;
}
.modal-overlay[hidden] { display: none; }

/* ป๊อปอัป QR */
.qr-popup {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,0.05) 0 1px, transparent 1px) 0 0 / 6px 6px,
    #2c3a4d;
  border-radius: 16px;
  padding: 26px 24px 20px;
  width: min(380px, 88vw);
}
.qr-left { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.qr-left img { width: 172px; height: 172px; background: #fff; padding: 6px; border-radius: 6px; }
.qr-memberno { color: #fff; font-size: 15px; font-weight: 700; letter-spacing: 2px; }

.qr-right { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ring-wrap { position: relative; width: 96px; height: 96px; }
.ring { width: 96px; height: 96px; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: rgba(255,255,255,0.22); stroke-width: 5; }
.ring-progress { fill: none; stroke: #7db4f0; stroke-width: 5; stroke-linecap: round; }
.ring-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.ring-num { font-size: 26px; font-weight: 800; line-height: 1; }
.ring-unit { font-size: 10px; color: rgba(255,255,255,0.75); }
.qr-time { color: #fff; font-size: 15px; font-weight: 700; margin-top: 4px; }
.qr-date { color: rgba(255,255,255,0.7); font-size: 13px; }

.qr-popup .btn-back { margin-top: 6px; }
.qr-warning {
  color: rgba(255,255,255,0.85);
  font-size: 12px;
  margin-top: 14px;
  text-align: center;
}

/* Bottom sheet */
.sheet {
  width: min(420px, 92vw);
  background: #fff;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  align-self: flex-end;
}
.sheet-header {
  background: var(--brand);
  color: #fff;
  text-align: center;
  font-size: 17px;
  font-weight: 800;
  padding: 15px;
}
.sheet-list { padding: 10px 0; }
.sheet-item {
  display: block;
  width: 100%;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 16px;
  color: #222;
  padding: 16px;
  text-align: center;
  cursor: pointer;
}
.sheet-item + .sheet-item { border-top: 1px solid #f0ede6; }
.sheet-item.danger { color: var(--error); font-weight: 600; }
.sheet-item:active { background: #f0f6fd; }

.sheet-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid #eee;
  font-size: 15px;
  font-weight: 700;
}
.lang-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  color: #999;
}
.lang-btn.lang-active { color: var(--brand); }
.lang-sep { color: #bbb; }
.lang-btn.lang-inactive { color: #999; }

/* แผ่นเปลี่ยนรหัสผ่าน */
.pw-sheet {
  border-radius: 18px;
  align-self: center;
  padding-bottom: 20px;
}
.pw-form { padding: 20px 22px 6px; }
.pw-form .text-input { margin-top: 14px; }
.pw-form .text-input:first-child { margin-top: 0; }
.pw-form .btn { margin-top: 16px; }

/* Toast */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 20, 20, 0.92);
  color: #fff;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 24px;
  z-index: 100;
  max-width: 86vw;
  text-align: center;
}
.toast[hidden] { display: none; }

/* ── จอเล็ก (มือถือจริง) ── */
@media (max-width: 430px) {
  .phone { width: 100vw; }
  .floating-actions { left: 6px; }
}

/* ═══════════ หน้า: ประกาศความเป็นส่วนตัว (PDPA) ═══════════ */
.privacy-page { background: var(--bg); }
.privacy-header { border-bottom: 1px solid #d3e2f5; }
.privacy-body {
  padding: 22px 20px 48px;
  background: #fff;
  min-height: calc(100vh - 61px);
}
.pn-updated {
  display: inline-block;
  font-size: 12.5px;
  color: var(--brand);
  background: var(--brand-light);
  padding: 6px 12px;
  border-radius: 14px;
  margin-bottom: 18px;
  font-weight: 600;
}
.pn-title {
  font-size: 23px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.35;
  margin: 0 0 4px;
}
.pn-brand {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 14px;
}
.pn-h2 {
  font-size: 17.5px;
  font-weight: 800;
  color: var(--brand-dark);
  margin: 26px 0 10px;
  padding-top: 14px;
  border-top: 2px solid var(--brand-light);
  line-height: 1.4;
}
.pn-h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 18px 0 8px;
  line-height: 1.4;
}
.pn-p {
  font-size: 14px;
  line-height: 1.75;
  color: #3a3f47;
  margin: 0 0 10px;
  text-align: justify;
}
.pn-ul {
  margin: 2px 0 12px;
  padding-left: 22px;
}
.pn-ul li {
  font-size: 14px;
  line-height: 1.75;
  color: #3a3f47;
  margin-bottom: 5px;
}

/* สลับภาษา TH/EN (หน้าเข้าสู่ระบบ) */
.login-lang {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

/* หมายเหตุช่องกรอกเบอร์โทร (หน้าเข้าสู่ระบบ) */
.login-phone-note {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.login-phone-note .req {
  color: var(--error);
  font-weight: 800;
}

/* ═══════════ หน้าแลกคะแนน ═══════════ */
.redeem-points-bar {
  background: var(--brand-light);
  border: 1px solid #c3d8ed;
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 15px;
  color: #333;
  text-align: center;
  margin-bottom: 16px;
}
.redeem-points-bar b { color: var(--brand); font-size: 22px; font-weight: 900; }
.redeem-list { display: flex; flex-direction: column; gap: 12px; }
.redeem-card {
  background: #fff;
  border: 1px solid #dce5f1;
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 2px 8px rgba(31,111,214,0.06);
  transition: opacity .2s;
}
.redeem-card.disabled { opacity: 0.55; }
.redeem-card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
  display: block;
  background: #f0f4f9;
}
.redeem-card-top { display: flex; justify-content: space-between; align-items: center; }
.redeem-card-title { font-size: 16px; font-weight: 800; color: #222; flex: 1; }
.redeem-card-cost { font-size: 14px; color: var(--muted); white-space: nowrap; margin-left: 12px; }
.redeem-card-cost b { color: var(--brand); font-weight: 900; font-size: 18px; }
.redeem-card-desc { font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.redeem-history-card .h-earn { color: #d93025 !important; }

/* ═══════════ หน้าคูปอง ═══════════ */
.coupon-input-wrap { margin-bottom: 18px; }
.coupon-list { display: flex; flex-direction: column; gap: 12px; }

/* ═══════════ หน้าโปรโมชัน ═══════════ */
.promo-list { display: flex; flex-direction: column; gap: 14px; }
.promo-card {
  background: #fff;
  border: 1px solid #dce5f1;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(31,111,214,0.06);
}
.promo-img { width: 100%; height: auto; display: block; object-fit: cover; max-height: 200px; }
.promo-body { padding: 16px 18px; }
.promo-title { font-size: 17px; font-weight: 800; color: #222; }
.promo-desc { font-size: 13.5px; color: #555; margin-top: 6px; line-height: 1.6; }
.promo-date { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
