/* =========================================================
   Kaizenshop — gothic lilac theme
   (ออกแบบตามดีไซน์ขนาดจอ 402px — จอใหญ่จะจัดกึ่งกลาง)
   ========================================================= */

:root {
  --bg: #0f0a14;
  --panel-top: #2a2035;
  --panel-bottom: #19121f;
  --line: #a38bd6;
  --line-soft: rgba(185, 162, 236, 0.55);
  --line-dim: #4a3c66;
  --glow: rgba(168, 136, 240, 0.32);
  --lilac-1: #ece3ff;
  --lilac-2: #a98de2;
  --ink: #1d1428;
  --text: #f4eeff;
  --muted: #d5c9ec;
  --danger: #ff9db5;
  --ok: #b8f5cf;
  /* ภาษาอังกฤษ/ตัวเลข = Jua, ภาษาไทย = Mitr (Jua ไม่มีตัวไทย เบราว์เซอร์จะใช้ Mitr ให้เองทีละตัวอักษร) */
  --font-th: 'Jua', 'Mitr', system-ui, sans-serif;
  --font-cute: 'Jua', 'Mitr', system-ui, sans-serif;
  /* หัวข้อใหญ่: Kaizenshop / QR Code / customer slip */
  --font-display: 'Cherry Bomb One', 'Mitr', system-ui, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg); }
body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-th);
  font-synthesis: none; /* Jua / Cherry Bomb มีแค่น้ำหนักเดียว — ห้ามเบราว์เซอร์ทำตัวหนาปลอม */
  color: var(--text);
  background: transparent;
  overflow-x: hidden;
}
/* iOS ไม่รองรับ background-attachment: fixed — ใช้ชั้นพื้นหลังแยกแทน */
/* .bg-layer {
  position: fixed; inset: 0; z-index: -2;
  background: var(--bg) url('/assets/bg.jpg') center top / cover no-repeat;
} */

.bg-layer {
  position: fixed;
  top: 0;
  left: 50%;
  width: min(100vw, 50dvh);
  height: 100%;
  transform: translateX(-50%);
  z-index: -2;

  /* background: var(--bg) url('/assets/bg.jpg') */
  background: var(--bg) url('/assets/bg.png')
    center center / 100% 100% no-repeat;

  overflow: hidden;
}

.bg-layer::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(120, 84, 180, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(10, 6, 14, 0) 60%, rgba(10, 6, 14, 0.7));
}
.stars { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.stars i {
  position: absolute; width: 2px; height: 2px; border-radius: 50%;
  background: #fff; opacity: 0.2;
  animation: twinkle var(--d, 3s) ease-in-out infinite var(--delay, 0s);
}
@keyframes twinkle { 0%, 100% { opacity: 0.15; transform: scale(0.8); } 50% { opacity: 0.95; transform: scale(1.3); } }

img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }

.page {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 14px 16px 40px;
}

/* ---------- top bar ---------- */
.topbar {
  position: relative; z-index: 5;
  display: flex; justify-content: space-between; align-items: flex-start;
  height: 64px;
}
.pill-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #2a1f36, #150f1b);
  border: 2.5px solid #e9defc;
  box-shadow: 0 0 0 3px rgba(80, 64, 110, 0.85), 0 0 14px var(--glow);
  color: #f6f0ff; font-size: 15px; font-weight: 600; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease;
}
.pill-btn:active { transform: scale(.95); }
.pill-btn svg { width: 16px; height: 16px; }
.round-btn {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 35%, #2c2138, #140e19);
  border: 2.5px solid #e9defc;
  box-shadow: 0 0 0 3px rgba(80, 64, 110, 0.85), 0 0 16px var(--glow);
  transition: transform .15s ease, opacity .2s ease;
}
.round-btn:active { transform: scale(.92); }
.round-btn img { width: 31px; height: 31px; }
.music-btn.off img { opacity: .35; }
.music-btn.off::after {
  content: ''; position: absolute; width: 34px; height: 2.5px; background: #e9defc;
  transform: rotate(-45deg); border-radius: 2px;
}
.music-btn { position: relative; }
.music-btn.playing img { animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-2px) rotate(-6deg); } }

/* ---------- frames (กรอบเส้นคู่สีม่วง) ---------- */
.frame {
  position: relative;
  border-radius: 32px;
  border: 3px solid var(--line);
  background: linear-gradient(180deg, rgba(42, 32, 53, 0.8), rgba(25, 18, 31, 0.8));
  box-shadow:
    0 0 0 2px var(--line-dim),
    0 0 26px var(--glow),
    inset 0 0 0 7px rgba(22, 16, 30, 0.9),
    inset 0 0 0 8.5px var(--line-soft);
}
.frame--galaxy {
  background:
    linear-gradient(180deg, rgba(30, 20, 44, 0.25), rgba(16, 10, 22, 0.55)),
    url('/assets/galaxy.jpg') center / cover;
}

/* ---------- hero ---------- */
.hero { position: relative; height: 196px; margin-top: -30px; z-index: 3; pointer-events: none; }
.hero .web { position: absolute; left: 50%; top: 14px; width: 168px; transform: translateX(-118%); opacity: .55; }
.hero .rose { position: absolute; left: 50%; top: 96px; width: 80px; transform: translateX(-157%); filter: drop-shadow(0 4px 8px rgba(0,0,0,.5)); }
.hero .cat { position: absolute; left: 50%; top: 40px; width: 130px; transform: translateX(14%); filter: drop-shadow(0 4px 10px rgba(0,0,0,.45)); }
.heart {
  position: absolute; left: 50%; top: 24px; width: 172px; height: 172px;
  transform: translateX(-50%);
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.55));
  animation: float 5s ease-in-out infinite;
}
.heart .pic {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  -webkit-mask: url('/assets/heart-mask.png') center / 100% 100% no-repeat;
          mask: url('/assets/heart-mask.png') center / 100% 100% no-repeat;
}
.heart .ring { position: absolute; inset: 0; width: 100%; height: 100%; }
@keyframes float { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -5px); } }

.card { margin-top: -72px; padding: 70px 22px 26px; text-align: center; z-index: 1; }
.card + .card, .section-gap { margin-top: 18px; }

.display {
  /* หัวข้อภาษาไทยใน popup: สีม่วงอ่อน มีความหนาด้านล่าง + แสงฟุ้ง ให้เข้ากับรูปหัวข้อ */
  font-family: var(--font-display); font-weight: 600;
  letter-spacing: .5px;
  color: #e6defd;
  text-shadow:
    0 1px 0 #cfc2f7,
    0 2px 0 #b4a5ea,
    0 3px 4px rgba(70, 50, 130, .6),
    0 0 12px rgba(190, 165, 255, .55),
    0 0 26px rgba(150, 120, 230, .35);
  margin: 0;
}
/* หัวข้อ Kaizenshop / QR Code / customer slip = รูปจากดีไซน์ (ตัวนูน 3D + แสงฟุ้ง)
   margin ติดลบ = ตัดขอบแสงฟุ้งออกจากการจัดวาง ให้ตำแหน่งตัวหนังสือตรงกับดีไซน์ */
.title-img { margin: 0; line-height: 0; }
.title-img img { display: block; height: auto; max-width: none; pointer-events: none; }
.title-shop img { width: 234px; margin: -14px auto -11px; }
.title-qr img   { width: 132px; margin: -11px -18px; }
.title-slip img { width: 176px; margin: -11px -11px; }
.tagline { margin: 8px 0 0; font-size: 14.5px; font-weight: 400; color: #e8d8fc; display: flex; align-items: center; justify-content: center; gap: 6px; }
.tagline .spark { color: #efe6f9; font-size: 11px; letter-spacing: -2px; }
.divider { height: 1.5px; margin: 16px 6px; background: linear-gradient(90deg, transparent, rgba(185, 162, 236, .65), transparent); }

.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-btn {
  display: flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 14px 0 6px; border-radius: 999px;
  font-family: var(--font-cute); font-weight: 600; font-size: 17px;
  transition: transform .15s ease;
}
.contact-btn:active { transform: scale(.96); }
.contact-btn img { width: 40px; height: 40px; flex: none; }
.contact-btn span { flex: 1; text-align: center; }
.btn-dark {
  background: linear-gradient(180deg, #2a1f36, #140e19);
  border: 2.5px solid #a38bd6; color: #fff;
  box-shadow: 0 0 0 2px var(--line-dim), 0 0 14px var(--glow);
}
.btn-lilac {
  background: linear-gradient(180deg, var(--lilac-1), var(--lilac-2));
  border: 2.5px solid #f3ecff; color: var(--ink);
  box-shadow: 0 0 0 2px #6d5a91, 0 0 18px rgba(190, 160, 255, .55), inset 0 -3px 8px rgba(90, 60, 150, .25);
}

/* ---------- QR ---------- */
.section-title { display: flex; align-items: center; justify-content: center; gap: 10px; }
.section-title > img { flex: none; width: 34px; height: 32px; }
.sub { margin: 10px 0 0; font-size: 14.5px; font-weight: 300; color: #d9c5f6; }
.qr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
.qr-item { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.qr-frame {
  width: 100%; aspect-ratio: 1; padding: 12px;
  border-radius: 24px;
  border: 2.5px solid var(--line);
  background: #120c17;
  box-shadow: 0 0 0 2px var(--line-dim), 0 0 18px var(--glow), inset 0 0 0 5px #120c17, inset 0 0 0 6.5px var(--line-soft);
  transition: transform .15s ease;
}
.qr-frame:active { transform: scale(.97); }
.qr-frame img { width: 100%; height: 100%; object-fit: contain; border-radius: 12px; background: #fff; }
.qr-item p { margin: 0; font-size: 14.5px; font-weight: 300; color: #e8d8fc;}

.reminder { margin: 4px 0 0; font-size: 16px; font-weight: 500; color: #e8d8fc; }
.note-box {
  margin: 16px -8px 0;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 8px 8px 8px; border-radius: 999px;
  background: linear-gradient(180deg, #1d1525, #120c17);
  border: 2.5px solid var(--line);
  box-shadow: 0 0 0 2px var(--line-dim), 0 0 14px var(--glow), inset 0 0 0 4px #150f1b, inset 0 0 0 5.5px rgba(185,162,236,.35);
  text-align: left;
}
.note-icon {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: #2a2036; border: 1.5px solid rgba(185,162,236,.5);
}
.note-icon img { width: 18px; }
.note-text { flex: 1; min-width: 0; line-height: 1.35; color: #e8d8fc;}
.note-text small { display: block; font-size: 13.5px; color: var(--muted); }
.note-text b { display: block; font-size: 13.5px; font-weight: 400; word-break: break-word; }
.copy-btn {
  flex: none; display: flex; align-items: center; gap: 7px;
  height: 42px; padding: 0 11px 0 6px; border-radius: 999px;
  background: #2b2138; border: 1.5px solid rgba(185,162,236,.6);
  font-size: 14px; font-weight: 300; gap: 5px;
  transition: transform .15s ease, background .2s ease;
}
.copy-btn .ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid rgba(233,222,252,.75); }
.copy-btn .ic img { width: 14px; }
.copy-btn:active { transform: scale(.95); }
.copy-btn.done { background: #4a3a68; }

/* ---------- slip CTA ---------- */
.cta-wrap { position: relative; margin-top: 18px; padding: 10px; border-radius: 30px; }
.cta-wrap .bow { position: absolute; left: -8px; top: -20px; width: 66px; z-index: 2; transform: rotate(-12deg); filter: drop-shadow(0 4px 6px rgba(0,0,0,.5)); pointer-events: none; }
.cta-btn {
  width: 100%; padding: 20px 14px; border-radius: 24px;
  background: linear-gradient(180deg, #e4d7ff, #a487df);
  border: 2px solid #f3ecff;
  outline: 2px dashed rgba(40, 26, 60, .75); outline-offset: -9px;
  color: #1a1a2e; font-weight: 500; font-size: 17px; line-height: 1.45;
  box-shadow: 0 0 22px rgba(190, 160, 255, .45), inset 0 -4px 10px rgba(90, 60, 150, .25);
  transition: transform .15s ease, filter .2s ease;
  animation: pulse 2.6s ease-in-out infinite;
}
.cta-btn:active { transform: scale(.97); }
@keyframes pulse { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.08); } }

.footer-pill {
  display: block; width: fit-content; min-width: 62%;
  margin: 22px auto 0; padding: 12px 26px; border-radius: 999px;
  text-align: center; font-size: 15px; font-weight: 600;
  background: linear-gradient(180deg, #221a2c, #120c17);
  border: 2.5px solid var(--line);
  box-shadow: 0 0 0 2px var(--line-dim), 0 0 14px var(--glow);
}

/* ---------- popups ---------- */
.modal {
  position: fixed; inset: 0; z-index: 50;
  display: none; align-items: center; justify-content: center;
  padding: 24px 16px;
  background: rgba(6, 3, 9, .72);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  overflow-y: auto;
}
.modal.open { display: flex; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-box {
  position: relative; width: 100%; max-width: 350px;
  margin: auto; padding: 30px 22px 30px;
  animation: popIn .28s cubic-bezier(.2, 1.3, .4, 1);
}
@keyframes popIn { from { transform: scale(.85) translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-close {
  position: absolute; right: -10px; top: -22px; z-index: 3;
  width: 62px; height: 62px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 35%, #2f2440, #150f1c);
  border: 3px solid #b39ce3;
  box-shadow: 0 0 0 2px #4a3c66, 0 0 18px var(--glow);
}
.modal-close img { width: 26px; height: 26px; }
.modal-close:active { transform: scale(.92); }
.modal-bow {
  position: absolute; left: 50%; bottom: -46px; width: 74px; transform: translateX(-50%);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.6)); pointer-events: none; z-index: 2;
}
.modal-bow.left { left: -18px; bottom: -64px; width: 96px; transform: rotate(-8deg); }
.modal-title { 
  font-weight: 600;
  font-size: 26px; 
  text-align: center; 
  color: #191421;
  text-shadow: none;

  /* stroke */
  -webkit-text-stroke: 5px #f1e7ff;
  paint-order: stroke fill;

}
.modal-sub { margin: 6px 0 0; text-align: center; font-size: 14.5px; font-weight: 500; }

.big-frame {
  padding: 12px; border-radius: 28px;
  background: #150f1b;
  border: 2.5px solid var(--line);
  box-shadow: 0 0 0 2px var(--line-dim), 0 0 18px var(--glow), inset 0 0 0 6px #150f1b, inset 0 0 0 7.5px var(--line-soft);
}
.big-frame img { width: 100%; border-radius: 16px; background: #fff; }
.big-frame.slip-stack { display: grid; gap: 10px; max-height: 62vh; overflow-y: auto; }
.big-frame.slip-stack img { background: #fff; }

.lilac-btn {
  display: flex; align-items: center; justify-content: center;
  margin: 18px auto 0; min-width: 150px; height: 52px; padding: 0 26px;
  border-radius: 999px; font-size: 19px; font-weight: 600;
  background: linear-gradient(180deg, var(--lilac-1), var(--lilac-2));
  border: 2.5px solid #f3ecff; color: var(--ink);
  box-shadow: 0 0 0 2px #6d5a91, 0 0 20px rgba(190, 160, 255, .5), inset 0 -3px 8px rgba(90, 60, 150, .25);
  transition: transform .15s ease, opacity .2s ease;
}
.lilac-btn.wide { width: 100%; }
.lilac-btn:active { transform: scale(.96); }
.lilac-btn:disabled { opacity: .6; cursor: wait; }

.field { margin-top: 16px; text-align: left; }
.field label { display: block; margin: 0 0 8px 6px; font-family: var(--font-cute); font-size: 14.5px; font-weight: 600; }
.input {
  width: 100%; height: 50px; padding: 0 20px; border-radius: 999px;
  background: #1a1220; color: #fff; font: inherit; font-size: 16px;
  border: 2.5px solid #a38bd6;
  box-shadow: 0 0 0 2px var(--line-dim), 0 0 12px var(--glow), inset 0 2px 6px rgba(0,0,0,.4);
  outline: none;
}
.input:focus { border-color: #e9defc; box-shadow: 0 0 0 2px #7d68ad, 0 0 18px rgba(200,170,255,.55); }
.input::placeholder { color: rgba(220, 205, 245, .4); }

.add-slip {
  margin-top: 18px; width: 100%; height: 44px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(180deg, #3b2e4f, #2a2038);
  border: 2px solid rgba(185,162,236,.7);
  font-size: 15.5px; font-weight: 400;
}
.add-slip img { width: 24px; height: 24px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; }
.thumb { position: relative; width: 92px; height: 92px; border-radius: 14px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; border: 2px solid rgba(233,222,252,.6); }
.thumb button {
  position: absolute; right: -9px; top: -9px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: #241a30; border: 2px solid #c7b4f0; color: #fff; font-size: 15px; line-height: 1;
}
.form-msg { min-height: 20px; margin: 12px 0 0; text-align: center; font-size: 14px; font-weight: 600; color: var(--danger); }
.form-msg.ok { color: var(--ok); }

.success-view { text-align: center; padding: 10px 0 4px; }
.success-view img { display:block; position:relative; left:50%; width: 120px; margin: 0 auto 8px; animation: float 3s ease-in-out infinite; transform: none; }
.success-view h3 { margin: 6px 0 4px; font-size: 22px; }
.success-view p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- effects ---------- */
.fx-layer { position: fixed; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.fall {
  position: absolute; top: -60px;
  animation: fall var(--t, 9s) linear forwards;
  opacity: .85;
}
@keyframes fall {
  0%   { transform: translate(0, 0) rotate(0deg); }
  25%  { transform: translate(var(--sway), 27vh) rotate(calc(var(--rot) * .25)); }
  50%  { transform: translate(calc(var(--sway) * -1), 55vh) rotate(calc(var(--rot) * .5)); }
  75%  { transform: translate(var(--sway), 82vh) rotate(calc(var(--rot) * .75)); }
  100% { transform: translate(0, 112vh) rotate(var(--rot)); }
}
.pop-char {
  position: fixed; z-index: 60; width: 78px; pointer-events: none;
  transform: translate(-50%, -50%);
  animation: popChar .95s cubic-bezier(.2, 1.4, .4, 1) forwards;
  filter: drop-shadow(0 4px 10px rgba(150, 100, 255, .55));
}
@keyframes popChar {
  0%   { transform: translate(-50%, -50%) scale(.2) rotate(-15deg); opacity: 0; }
  25%  { transform: translate(-50%, -60%) scale(1.1) rotate(6deg); opacity: 1; }
  60%  { transform: translate(-50%, -80%) scale(1) rotate(-3deg); opacity: 1; }
  100% { transform: translate(-50%, -125%) scale(.9) rotate(0); opacity: 0; }
}
.spark-dot {
  position: fixed; z-index: 59; width: 7px; height: 7px; border-radius: 50%; pointer-events: none;
  background: #f1e8ff; box-shadow: 0 0 8px #c9a8ff;
  animation: sparkOut .7s ease-out forwards;
}
@keyframes sparkOut { to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 80;
  transform: translate(-50%, 20px); opacity: 0;
  padding: 10px 20px; border-radius: 999px;
  background: rgba(30, 22, 42, .95); border: 2px solid var(--line);
  box-shadow: 0 0 18px var(--glow);
  font-size: 14.5px; font-weight: 600; white-space: nowrap;
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- admin ---------- */
.admin-panel { margin-top: 6px; padding: 30px 16px 34px; }
.slip-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.slip-row {
  position: relative; display: flex; align-items: center; gap: 12px;
  height: 74px; padding: 0 8px 0 12px; border-radius: 999px;
  background: linear-gradient(180deg, #221a2c, #120c17);
  border: 2.5px solid #9e86d1;
  box-shadow: 0 0 0 2px var(--line-dim), 0 0 14px var(--glow);
  text-align: left;
}
.slip-row.new { border-color: #d9c9fb; box-shadow: 0 0 0 2px #7b66ab, 0 0 22px rgba(200, 170, 255, .55); }
.new-tag {
  position: absolute; left: 0; top: -12px;
  padding: 1px 10px 3px; border-radius: 999px;
  background: linear-gradient(180deg, #b9a2ea, #8e74c9);
  border: 2px solid #e9defc; color: #1d1428;
  font-family: var(--font-cute); font-weight: 700; font-size: 13px;
}
.slip-thumb { flex: none; width: 48px; height: 48px; border-radius: 6px; object-fit: cover; background: #fff; }
.slip-info { flex: 1; min-width: 0; }
.slip-info .u {
  font-family: var(--font-cute); font-weight: 700; font-size: 19px; color: #e5d9ff;
  text-shadow: 0 0 6px rgba(200, 170, 255, .6);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.slip-info .t { font-size: 14.5px; font-weight: 600; }
.slip-info .t span { font-family: var(--font-cute); }
.eye-btn {
  flex: none; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: #efe6ff; box-shadow: 0 0 12px rgba(220, 200, 255, .5);
  transition: transform .15s ease;
}
.eye-btn img { width: 26px; }
.eye-btn:active { transform: scale(.9); }
.empty { padding: 40px 10px 20px; text-align: center; color: var(--muted); font-size: 15px; }
.empty img { width: 110px; margin: 0 auto 10px; opacity: .9; }

.pager { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 26px; }
.pager button {
  min-width: 32px; height: 32px; padding: 0 6px; border-radius: 9px;
  display: grid; place-items: center;
  font-weight: 700; font-size: 15px;
  background: linear-gradient(180deg, #6d55a6, #4d3a7c); color: #fff;
  border: 2px solid #c7b4f0;
}
.pager button.active { background: #f1e9ff; color: #3b2a5c; border-color: #fff; }
.pager button.nav { background: #1b1422; color: #c9b6f2; border-color: #a38bd6; }
.pager button:disabled { opacity: .35; cursor: default; }
.pager .dots { color: var(--muted); padding: 0 2px; }

.gear-btn {
  position: absolute; right: -10px; bottom: -34px; z-index: 4;
  width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 35%, #2c2138, #140e19);
  border: 3px solid #e9defc;
  box-shadow: 0 0 0 3px rgba(80, 64, 110, .9), 0 0 18px var(--glow);
}
.gear-btn img { width: 46px; transition: transform .6s ease; }
.gear-btn:hover img, .gear-btn:active img { transform: rotate(90deg); }

.slip-meta { margin: 12px 4px 0; text-align: center; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.slip-meta b { color: #fff; font-family: var(--font-cute); }

.settings-box { padding-top: 34px; }
.setting-block { text-align: center; }
.setting-block + .setting-block { margin-top: 30px; }
.setting-block h3 { margin: 0 0 12px; font-size: 16px; font-weight: 700; color: #f0e8ff; }
.setting-heart { position: relative; width: 210px; height: 190px; margin: 0 auto; }
.setting-heart .heart { top: 4px; width: 180px; height: 180px; animation: none; transform: translateX(-50%); }
.setting-heart .web { position: absolute; left: -6px; top: -8px; width: 110px; opacity: .55; }
.setting-heart .rose { position: absolute; left: -2px; top: 98px; width: 70px; }
.setting-heart .cat { position: absolute; right: -36px; top: 26px; width: 110px; }
.qr-preview { width: 82%; margin: 0 auto; }
.change-btn { min-width: 0; height: 46px; font-size: 17px; margin-top: 16px; }
.setting-block .form-msg { min-height: 0; margin-top: 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; }
}
@media (max-width: 360px) {
  .contact-btn { font-size: 15px; padding-right: 10px; }
  .contact-btn img { width: 34px; height: 34px; }
  .shop-name { font-size: 30px; }
  .note-text b { font-size: 13px; }
  .copy-btn { padding: 0 10px 0 6px; font-size: 13px; }
}
