/* ธีม clean: ดำเรียบ ไม่มีกรอบ เส้นใต้บาง ๆ ปุ่มหลักสีเดียว */
:root {
  --taro: #000;
  --milk: #0b0b0c;
  --grape: #f5f5f7;
  --grape-soft: #8a8a90;
  --line: #232326;
  --shadow: transparent;
  --berry: #2bb3a3;          /* สีปุ่มหลัก เปลี่ยนได้ที่นี่ */
  --on-accent: #fff;
  --matcha: #2bb3a3;
  --selected-text: #fff;
  --thaitea: #2bb3a3;
  --surface-2: #141416;
  --field-bg: transparent;
  --placeholder: #5c5c62;
  --disabled-bg: #1a1a1d;
  --focus-ring: transparent;
  --backdrop: rgba(0, 0, 0, .75);
  --ok: #4ade80;
  --danger: #ff6b6b;
  --display: 'Anuphan', system-ui, sans-serif;
  --body: 'Anuphan', system-ui, sans-serif;
  --mono: 'Anuphan', system-ui, sans-serif;
  --radius: 14px;
  --ink: 1px solid var(--line);
  --pop: none;
  color-scheme: dark;
}

body { background: #000; font-size: 15px; }

.stall { max-width: 620px; grid-template-columns: 1fr; gap: 0; padding-top: 0; }

/* ---------- โปรไฟล์ ---------- */
.sign {
  position: static;
  background: none; border: 0; box-shadow: none; border-radius: 0;
  overflow: visible;
  text-align: left;
}
/* ส่วนหัวโปร่ง ให้เห็นรูปพื้นหลังด้านหลัง */
.awning { height: 300px; border: 0; background: none; }
.awning::after { display: none; }
@media (max-width: 780px) { .awning { height: 190px; } }

/* ---------- รูปพื้นหลัง: คมตรงกลาง เบลอและจางลงเป็นสีดำรอบขอบ ---------- */
.hero-bg {
  display: block;
  position: absolute; top: 0; left: 0; right: 0;
  height: 440px;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
  --img: var(--banner, radial-gradient(ellipse 70% 120% at 70% 0%, #12403b, #07121a 55%, #000));
}
.hero-blur, .hero-sharp {
  position: absolute; inset: 0;
  background: var(--img) center 42% / cover no-repeat;
}
/* ชั้นเบลอ: รองรับขอบ ทำให้ช่วงต่อจากรูปไปสีดำดูนุ่ม */
.hero-blur {
  inset: -60px;
  filter: blur(32px) brightness(.6) saturate(1.1);
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 92%);
          mask-image: linear-gradient(180deg, #000 30%, transparent 92%);
}
/* ชั้นคม: เห็นชัดตรงกลางบน แล้วค่อย ๆ จางออกทุกด้าน */
.hero-sharp {
  filter: brightness(.75);
  -webkit-mask-image: radial-gradient(ellipse 62% 95% at 50% 10%, #000 35%, rgba(0, 0, 0, .5) 62%, transparent 88%);
          mask-image: radial-gradient(ellipse 62% 95% at 50% 10%, #000 35%, rgba(0, 0, 0, .5) 62%, transparent 88%);
}
/* ไล่ดำด้านล่างให้ตัวหนังสืออ่านง่าย */
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .1) 0%, rgba(0, 0, 0, .3) 50%, rgba(0, 0, 0, .8) 82%, #000 100%);
}
@media (max-width: 780px) {
  .hero-bg { height: 300px; }
  .hero-sharp {
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 35%, rgba(0, 0, 0, .5) 62%, transparent 88%);
            mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 35%, rgba(0, 0, 0, .5) 62%, transparent 88%);
  }
}

.sign-body {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 18px;
  align-items: center;
  position: relative;
  margin-top: -48px;
  padding: 24px 24px 6px;
  background: #000;
  border: 1px solid #1c1c1f;
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
}
.avatar {
  grid-row: 1 / span 2;
  width: 112px; height: 112px; margin: 0;
  border: 0;
  background-color: #1c1c1f;
  color: #fff;
  font-size: 40px; font-weight: 700;
}
.sign-eyebrow { display: none; }
.sign h1 { font-family: var(--display); font-weight: 700; font-size: 30px; letter-spacing: -.01em; align-self: end; }
.tagline { margin: 2px 0 0; color: var(--grape-soft); font-size: 14px; align-self: start; }
@media (max-width: 480px) {
  .avatar { width: 84px; height: 84px; font-size: 32px; }
  .sign h1 { font-size: 24px; }
  .sign-body { margin-top: -36px; padding: 18px 16px 4px; border-radius: 18px 18px 0 0; }
}

/* ---------- ฟอร์ม ---------- */
/* กรอบเดียวกับโปรไฟล์ (ต่อจากด้านบน) */
.menu {
  background: #000;
  border: 1px solid #1c1c1f;
  border-top: 0;
  border-radius: 0 0 20px 20px;
  box-shadow: none;
  padding: 22px 24px 24px;
  display: flex; flex-direction: column;
}
.menu-title { display: none; }
@media (max-width: 480px) { .menu { padding: 18px 16px 18px; border-radius: 0 0 18px 18px; } }

/* ยอดเงินตัวใหญ่ขึ้นก่อน แล้วค่อยปุ่มยอด */
.goal { order: -4; margin-bottom: 26px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.custom { order: -3; }
.hint { order: -2; }
#presets { order: -1; }

.custom {
  margin: 0; padding: 0;
  border: 0;
  justify-content: flex-start;
}
.custom > span:first-child { display: none; }
.custom:focus-within { border: 0; }
.custom-input { gap: 6px; font-family: var(--display); }
.custom-input b { font-size: 30px; font-weight: 600; color: var(--grape-soft); }
.custom-input input {
  width: 100%;
  text-align: left;
  font-size: 56px; font-weight: 700; letter-spacing: -.02em;
  line-height: 1.1;
}
.custom-input input::placeholder { color: #3a3a3f; }
.hint { margin: 0 0 12px; font-size: 12px; }

.menu-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.item {
  display: inline-flex;
  padding: 6px 16px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--grape);
  font-size: 14px;
  transition: border-color .15s, background .15s;
}
.item:hover { transform: none; box-shadow: none; border-color: #48484d; }
.item[aria-checked='true'] { background: #fff; color: #000; border-color: #fff; box-shadow: none; transform: none; }
.item-icon, .item-name { display: none; }
.item-price { font-family: var(--body); font-size: 14px; font-weight: 500; }
.item[aria-checked='true'] .item-price { color: #000; }
@media (max-width: 480px) {
  .item { display: inline-flex; padding: 6px 16px; text-align: left; }
  .item-price { font-size: 14px; }
}

/* ช่องกรอกแบบเส้นใต้ */
.field { margin-top: 18px; }
.field > span { font-weight: 400; font-size: 13px; color: var(--grape-soft); margin-bottom: 2px; }
.field input, .field textarea {
  background: transparent;
  border: 0; border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 8px 0;
  resize: none;
}
.field input:focus, .field textarea:focus { border-color: #6a6a70; box-shadow: none; }
.counter { right: 0; bottom: 12px; font-family: var(--body); }
.check { font-size: 13px; margin-top: 12px; }

.btn { border-radius: 14px; font-family: var(--body); font-size: 16px; font-weight: 600; padding: 15px; border: 0; }
.btn.primary { background: var(--berry); color: var(--on-accent); box-shadow: none; margin-top: 18px; }
.btn.primary:not(:disabled):hover { transform: none; box-shadow: none; filter: brightness(1.1); }
.btn.primary:not(:disabled):active { transform: scale(.99); box-shadow: none; }
.btn.primary:disabled { background: var(--disabled-bg); color: var(--grape-soft); border: 0; }
.btn.ghost { background: #161618; border: 0; }
.btn.ghost:hover { background: #222225; color: var(--grape); }

/* ---------- กล่องชำระเงิน ---------- */
dialog {
  background: #0b0b0c;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 30px 80px -20px #000;
}
dialog::backdrop { background: rgba(0, 0, 0, .75); }
.close { border: 0; background: #1a1a1d; width: 34px; height: 34px; font-size: 20px; }
.close:hover { background: #2a2a2e; color: #fff; }
.receipt {
  margin: 0 0 14px; padding: 4px 4px 0;
  background: none;
  font-family: var(--body);
  -webkit-mask: none; mask: none;
}
.r-shop { font-family: var(--body); font-size: 15px; font-weight: 500; color: var(--grape-soft); }
.r-sub { font-size: 13px; }
.receipt hr { border-top: 1px solid var(--line); margin: 12px 0; }
.r-total { font-size: 15px; font-weight: 500; }
.r-total b { font-size: 30px; font-weight: 700; }
.qr-wrap { border: 0; border-radius: 14px; padding: 10px; width: 220px; }
.link { color: var(--berry); }
.dropzone { background: #111113; border: 1px dashed #2e2e32; border-radius: 14px; font-weight: 500; }
.dropzone:hover, .dropzone.drag { background: #161618; color: var(--grape); }
.dropzone img { border: 0; }
.step h2 { font-family: var(--body); font-size: 20px; font-weight: 600; }
.bubble { border: 0; border-radius: 12px 12px 4px 12px; font-family: var(--body); font-weight: 600; font-size: 14px; }
