/* TKR Brokerages purchase UI — static, Cloudflare Pages ready */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;700&family=Noto+Sans+Thai:wght@400;700&display=swap");

:root {
  --blue-950: #002a86;
  --blue-900: #0033b5;
  --blue-800: #0040c8;
  --blue-700: #0050dc;
  --blue-600: #1a63e8;
  --blue-200: #9ec4ff;
  --blue-100: #dcebff;
  --blue-50: #e5f1ff;
  --ink: #0b2a66;
  --ink-2: #163a86;
  --muted: #4d6490;
  --line: #b7d0f5;
  --yellow: #ffd43b;
  --red: #e31b23;
  --green: #2f8a3a;
  --white: #fff;
  --shadow: 0 8px 24px rgba(0, 55, 170, 0.12);
  --radius: 18px;
  --pill: 999px;
  --header-h: 72px;
  --font: "Noto Sans Thai", "Noto Sans", sans-serif;
  --blue-900: #0033b5;
  --blue-800: #0040c8;
  --blue-700: #0050dc;
  --blue-600: #1a63e8;
  --ink: #0b2a66;
  --ink-2: #163a86;
  --yellow: #ffd43b;
  --red: #e31b23;
  --shadow: 0 8px 24px rgba(0, 55, 170, 0.12);
  --pill: 999px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16px;
  color: var(--ink);
  background: var(--blue-50);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.45;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; }

.wrap { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }

/* Header */
.topbar {
  position: sticky; top: 0; z-index: 40;
  height: var(--header-h);
  display: flex; align-items: center; gap: 28px;
  padding: 0 22px;
  background: linear-gradient(180deg, #f7fbff, #eaf4ff);
  border-bottom: 1px solid rgba(0, 70, 180, 0.08);
}
.brand { display: flex; align-items: center; }
.brand svg { width: 138px; height: 48px; }
.brand-logo { height: 40px; width: auto; display: block; }
.nav-links { display: flex; gap: 22px; font-weight: 400; font-size: 16px; color: var(--ink-2); }
.nav-links a.is-active, .nav-links a:hover { color: var(--blue-800); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang-btn {
  display: flex; align-items: center; gap: 8px;
  background: none; border: 0; font-weight: 700; font-size: 14px;
}
.lang-btn .flag { width: 22px; height: 22px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1px #ddd; }
.icon-btn {
  width: 40px; height: 40px; border: 0; background: transparent;
  display: grid; place-items: center;
}
.icon-btn svg { width: 26px; height: 26px; }

.drawer { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.drawer.is-open { pointer-events: auto; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(0,20,70,.35); opacity: 0; transition: opacity .2s; }
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(320px, 86vw);
  background: #fff; transform: translateX(100%); transition: transform .22s ease;
  padding: 22px 18px; box-shadow: -8px 0 30px rgba(0,0,0,.12);
}
.drawer.is-open .drawer-panel { transform: none; }
.drawer-panel h3 { margin: 8px 0 16px; color: var(--blue-900); }
.drawer-panel a { display: block; padding: 12px 8px; border-bottom: 1px solid #eef3ff; font-weight: 400; }

.channel-chip {
  margin-left: auto;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-800);
  background: #fff;
  border: 1px solid #c5ddff;
  border-radius: var(--pill);
  padding: 4px 12px;
  max-width: 42vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.service-card.is-off,
.drawer-panel a.is-off {
  opacity: .4;
  pointer-events: none;
  filter: grayscale(.4);
}
.status-card {
  max-width: 560px;
  margin: 48px auto;
  background: #fff;
  border-radius: 18px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
  text-align: center;
}
.status-card h2 { margin: 0 0 10px; color: var(--blue-900); }
.status-card p { margin: 0 0 12px; color: var(--ink-2); }
.status-card .tiny { font-size: 13px; color: var(--muted); }
.status-card .tiny a { color: var(--blue-800); text-decoration: underline; }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1200px 420px at 18% -8%, rgba(160,210,255,.45), transparent 55%),
    linear-gradient(180deg, #0b4cb8 0%, #155fd4 46%, #1c6ae0 78%, #2374e8 100%);
  min-height: 430px;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 92px;
  background: url("../img/skyline.svg") center bottom / 1400px auto no-repeat;
  opacity: .55; pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 12px;
  padding: 28px 0 92px;
}
.badge-rank {
  display: inline-flex; background: var(--red); color: #fff;
  font-weight: 700; font-size: 13px; padding: 4px 12px; border-radius: 6px; margin-bottom: 10px;
}
.hero h1 {
  margin: 0; font-size: clamp(28px, 4.2vw, 44px); font-weight: 700; line-height: 1.18;
  text-shadow: 0 2px 0 rgba(0,30,90,.35);
}
.hero-sub { margin: 10px 0 0; font-size: 14px; opacity: .92; }
.hero-cta-row { display: flex; align-items: center; gap: 14px; margin-top: 22px; flex-wrap: wrap; }
.btn-scan {
  background: var(--yellow); color: #123; border: 0; font-weight: 700; font-size: 16px;
  padding: 10px 22px; border-radius: var(--pill); box-shadow: 0 6px 0 #d4ae12;
}
.line-qr { width: 118px; background: #fff; padding: 8px; border-radius: 8px; }
.line-qr span { display: block; text-align: center; color: #111; font-size: 11px; font-weight: 700; margin-top: 2px; }
.flags { display: flex; gap: 8px; }
.flags img { width: 36px; height: 36px; border-radius: 50%; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.hero-art { position: relative; min-height: 280px; }
.hero-art .people { position: absolute; right: 8%; bottom: -20px; width: min(340px, 100%); z-index: 2; }
.hero-art .one { position: absolute; right: -8px; bottom: 8px; width: 150px; z-index: 1; filter: drop-shadow(0 10px 16px rgba(0,0,0,.25)); }

.buy-capsule {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 3;
  display: flex; align-items: center; gap: 14px;
  background: #d7ecff; color: var(--ink);
  padding: 8px 10px 8px 18px; border-radius: var(--pill);
  box-shadow: 0 8px 20px rgba(0,40,120,.18); white-space: nowrap;
}
.buy-capsule strong { font-size: 14px; }
.buy-capsule .by { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.capsule-go {
  width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--yellow);
  display: grid; place-items: center; box-shadow: 0 3px 0 #d4ae12;
}

.page { flex: 1; padding: 28px 0 48px; }
.section-title { text-align: center; color: var(--blue-900); font-size: 26px; margin: 8px 0 22px; font-weight: 700; }

.service-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 28px; }
.service-card {
  background: #fff; border-radius: 16px; padding: 18px 12px 16px; text-align: center;
  box-shadow: var(--shadow); border: 1px solid #e6f0ff; transition: transform .15s, box-shadow .15s;
}
.service-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,55,170,.18); }
.service-card .ico {
  width: 56px; height: 56px; margin: 0 auto 10px;
  display: grid; place-items: center;
}
.service-card .ico img {
  width: 48px; height: 48px; object-fit: contain; display: block;
}
.service-card p { margin: 0; font-weight: 700; font-size: 14px; color: var(--ink-2); line-height: 1.35; }

.coverage {
  background: #d7ecff;
  border-radius: 20px;
  overflow: hidden;
}
.cov-panel { width: 100%; height: auto; display: block; }
.cov-table { width: 100%; border-collapse: separate; border-spacing: 0 8px; font-size: 13.5px; }
.cov-table thead th { background: var(--blue-900); color: #fff; padding: 10px 12px; font-weight: 700; }
.cov-table thead th:first-child { border-radius: 8px 0 0 8px; text-align: left; }
.cov-table thead th:last-child { border-radius: 0 8px 8px 0; width: 210px; }
.cov-table tbody td { background: #fff; padding: 10px 12px; vertical-align: top; }
.cov-table tbody tr td:first-child { border-radius: 8px 0 0 8px; }
.cov-table .amt {
  background: var(--yellow); color: var(--blue-900); font-weight: 700;
  text-align: center; font-size: 16px; border-radius: 0 8px 8px 0;
}
.cov-img { width: 100%; height: auto; display: block; border-radius: 12px; }
.side-card { background: #fff; border-radius: 16px; padding: 16px; box-shadow: var(--shadow); text-align: center; }
.side-card h3 { margin: 0 0 4px; color: var(--blue-900); font-size: 16px; }
.side-card .hint { font-size: 13px; color: var(--muted); margin-bottom: 10px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.side-card .hint img { width: 18px; height: 18px; }
.dhipaya-logo { width: 180px; margin: 0 auto 10px; }
.hosp-qr { width: 170px; margin: 8px auto; }
.notes { margin-top: 14px; text-align: left; font-size: 11.5px; color: #334; max-height: 280px; overflow: auto; padding-right: 6px; }
.notes ol { padding-left: 18px; margin: 0; }
.notes li { margin-bottom: 6px; }

.buy-online { padding: 8px 0 10px; }
.product-card {
  width: 220px; background: #fff; border: 1px solid #cfe3ff; border-radius: 14px;
  overflow: hidden; box-shadow: var(--shadow);
}
.product-card .thumb { height: 120px; background: linear-gradient(180deg, #1a63d8, #3b8cff); }
.product-card p { margin: 0; padding: 10px; font-weight: 700; color: var(--blue-900); font-size: 14px; }

[hidden] { display: none !important; }
.panel { background: #fff; border-radius: 16px; padding: 18px 22px 24px; box-shadow: var(--shadow); }
.panel + .panel { margin-top: 16px; }
.h-line {
  color: var(--blue-900); font-size: 18px; font-weight: 700;
  padding-bottom: 8px; border-bottom: 2px solid #d6e7ff; margin: 0 0 16px;
}
.req { color: var(--red); }
.radio-row { display: flex; flex-wrap: wrap; gap: 18px 22px; margin-bottom: 12px; font-size: 15px; }
.radio-row label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.search-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.input, select.input, textarea.input {
  appearance: none; border: 1px solid #c9ddf7; background: #fff; border-radius: var(--pill);
  padding: 10px 16px; min-height: 42px; box-shadow: 0 4px 12px rgba(40,110,200,.08);
  color: var(--ink); outline: none; width: 100%;
}
.input:focus { border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(0,80,220,.15); }
textarea.input { border-radius: 16px; min-height: 88px; resize: vertical; }
.grow { flex: 1; min-width: 220px; }
.help { font-size: 14px; color: var(--blue-800); margin: 8px 0 0; }
.link-dl { display: inline-flex; align-items: center; gap: 6px; color: var(--blue-800); font-weight: 700; font-size: 14px; white-space: nowrap; }
.kv { display: grid; grid-template-columns: 220px 1fr; gap: 8px 16px; align-items: center; margin: 8px 0; font-size: 15px; }
.readonly { background: #eef6ff; border-radius: 12px; padding: 8px 14px; min-height: 40px; display: flex; align-items: center; }
.plan-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 8px 0 14px; }
.plan {
  border: 0; background: #eef4ff; color: var(--blue-900); font-weight: 700;
  padding: 10px 18px; border-radius: var(--pill); min-width: 160px;
}
.plan small { display: block; font-weight: 400; font-size: 12px; opacity: .85; }
.plan.is-on { background: var(--blue-800); color: #fff; }
.legend { font-size: 13px; color: #333; margin: 0 0 10px; }
.legend .g { color: #1a7f32; font-weight: 700; }
.legend .b { color: #1a4cad; font-weight: 700; }
.legend .r { color: #c81e1e; font-weight: 700; }

.table-wrap { overflow: auto; border: 1px solid #7eabef; border-radius: 8px; }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 860px; }
table.data th { background: var(--blue-900); color: #fff; padding: 8px 6px; font-weight: 700; white-space: nowrap; }
table.data td { padding: 8px 6px; border: 1px solid #c5daf7; background: #fff; text-align: center; }
table.data td.name { text-align: left; }
.x-del { color: #e31b23; background: none; border: 0; font-size: 18px; font-weight: 700; line-height: 1; }
.center { text-align: center; }
.mt-12 { margin-top: 12px; }
.mt-18 { margin-top: 18px; }
.row-end { display: flex; justify-content: flex-end; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: var(--pill); font-weight: 700; padding: 10px 22px; min-height: 42px;
  box-shadow: 0 6px 14px rgba(0,60,180,.18);
}
.btn-primary { background: var(--blue-800); color: #fff; }
.btn-primary:hover { background: var(--blue-900); }
.btn-ghost { background: #fff; color: var(--blue-800); border: 1.5px solid #9ec0f3; box-shadow: none; }
.btn-yellow { background: var(--yellow); color: var(--blue-900); border: 0; min-width: 140px; }
.btn-wide { min-width: 220px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.agree { display: flex; gap: 8px; align-items: flex-start; font-weight: 700; color: var(--blue-900); margin: 16px 0 8px; }
.fineprint { font-size: 12px; color: #555; line-height: 1.55; }
.fineprint .alert { color: #c81e1e; }
.notice { text-align: center; color: var(--blue-900); font-size: 14px; margin: 0 0 18px; line-height: 1.6; }
.notice a { color: var(--blue-700); text-decoration: underline; font-weight: 700; }
.notice .warn { color: var(--red); font-weight: 700; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
.field label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.stack-btns { display: flex; flex-direction: column; gap: 8px; }

.pay-box { background: #fff; border-radius: 18px; padding: 28px 24px; box-shadow: var(--shadow); max-width: 820px; margin: 0 auto; }
.pay-head { display: flex; gap: 22px; align-items: flex-start; }
.pay-copy h2 { margin: 0 0 6px; color: var(--blue-900); font-size: 20px; }
.pay-copy .co { font-size: 22px; font-weight: 700; }
.pay-meta { margin-top: 10px; font-size: 14.5px; }
.pay-meta div { margin: 3px 0; }
.pay-amt { font-weight: 700; color: var(--blue-900); font-size: 18px; }
.pay-center { text-align: center; max-width: 640px; margin: 0 auto; }
.pay-center .amt-lg { font-size: 28px; font-weight: 700; color: var(--blue-800); margin: 6px 0 16px; }
.pp-bar {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--blue-800); color: #fff; border-radius: var(--pill);
  padding: 10px 18px; font-weight: 700; margin: 8px auto 16px; max-width: 420px;
}
.deadline { color: #d10b0b; font-size: 13.5px; margin: 8px 0 14px; font-weight: 600; }
.qr-frame {
  width: 260px; margin: 0 auto 10px; background: #fff; border: 1px solid #9ec0f3;
  border-radius: 12px; padding: 12px; box-shadow: var(--shadow);
}
.pay-actions { display: flex; justify-content: center; gap: 12px; margin-top: 16px; }
.pay-wait { margin-top: 14px; color: var(--blue-800); font-weight: 700; text-align: center; }
.pay-wait::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px; border: 2px solid #9ec0f3; border-top-color: var(--blue-800); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -1px; }
@keyframes spin { to { transform: rotate(360deg); } }
.tiny { font-size: 12px; color: #888; margin-top: 10px; }

.success-card { background: #fff; border-radius: 22px; padding: 28px 28px 32px; box-shadow: var(--shadow); max-width: 920px; margin: 0 auto; }
.success-top { display: grid; grid-template-columns: 1.2fr .8fr; gap: 12px; align-items: center; }
.success-top h2 { margin: 0; font-size: 32px; color: var(--blue-900); }
.success-top .brand-name { color: var(--blue-800); font-weight: 700; font-size: 18px; margin: 4px 0 10px; }
.dl-list { margin: 18px 0; }
.dl-row {
  display: grid; grid-template-columns: 220px 1fr; gap: 8px; padding: 8px 0;
  border-bottom: 1px solid #e6eef8; font-size: 15px;
}
.badge-ok { display: inline-block; background: #b7dd9b; color: #1d5a22; font-weight: 700; padding: 4px 14px; border-radius: var(--pill); }
.success-actions { display: flex; justify-content: center; gap: 16px; margin-top: 22px; }

.modal { position: fixed; inset: 0; z-index: 60; display: none; }
.modal.is-open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(8,30,90,.45); }
.modal-card {
  position: relative; z-index: 1; width: min(420px, calc(100% - 32px));
  margin: 18vh auto 0; background: var(--blue-800); color: #fff; border-radius: 16px;
  padding: 28px 22px 22px; text-align: center; box-shadow: 0 16px 40px rgba(0,0,0,.25);
}
.modal-card p { margin: 0 0 18px; font-size: 16px; font-weight: 700; }
.modal-card.light { background: #fff; color: var(--ink); width: min(720px, calc(100% - 32px)); margin-top: 8vh; text-align: left; }
.modal-card.light h2 { text-align: center; color: var(--blue-900); margin: 0 0 12px; font-size: 20px; }
.terms-scroll { max-height: 46vh; overflow: auto; background: #f7fbff; border-radius: 12px; padding: 14px 16px; font-size: 14px; margin-bottom: 16px; }
.terms-scroll h3 { color: var(--blue-800); font-size: 15px; margin: 12px 0 4px; }
.modal-actions { display: flex; justify-content: center; gap: 10px; }

.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 45;
  background: rgba(18,48,120,.92); color: #fff; border-radius: 14px; padding: 16px 18px;
  display: flex; gap: 16px; align-items: center; justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.cookie[hidden] { display: none !important; }
.cookie h4 { margin: 0 0 4px; }
.cookie p { margin: 0; font-size: 13px; opacity: .9; }
.cookie-actions { display: flex; gap: 10px; align-items: center; }
.cookie .cookie-pref {
  background: transparent;
  color: #fff;
  border: 1.5px solid #fff;
  box-shadow: none;
}
.cookie .cookie-pref:hover { background: rgba(255,255,255,.12); }
.cookie .btn-primary {
  background: #fff;
  color: var(--blue-800);
}
.cookie .btn-primary:hover { background: #e8f1ff; }

.footer { background: #0039c9; color: #fff; margin-top: auto; padding: 28px 0 16px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; }
.footer-brands {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0 0 8px;
}
.footer-logo { height: 34px; width: auto; display: block; }
.footer-badge { height: 88px; width: auto; display: block; margin-left: 6px; }
.footer .co { font-weight: 700; font-size: 15px; margin: 4px 0 6px; }
.footer .muted { font-weight: 400; font-size: 12px; line-height: 1.55; opacity: 1; }
.footer-end {
  justify-self: end;
  text-align: center;
}
.footer-end .socials { justify-content: center; }
.contact-lbl { font-weight: 700; font-size: 12px; margin-bottom: 4px; }
.slogan { font-size: clamp(22px, 3vw, 32px); font-weight: 700; margin: 8px 0 6px; line-height: 1.2; }
.socials { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.socials a {
  display: block;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 0;
  overflow: visible;
  line-height: 0;
}
.socials a img { width: 32px; height: 32px; object-fit: contain; display: block; }
.socials a[aria-label="LINE"] { width: 38px; }
.socials a[aria-label="LINE"] img { width: 38px; height: 32px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 12px; margin-top: 28px; font-size: 12px; font-weight: 400; flex-wrap: wrap;
}
.footer-legal { display: flex; flex-direction: column; gap: 4px; }

.search-form .row { display: grid; grid-template-columns: 240px 1fr; gap: 12px; margin-bottom: 10px; align-items: center; }
.pager { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 12px; }
.page-num { background: var(--blue-800); color: #fff; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 4px; font-weight: 700; }

.contact-card { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.map {
  min-height: 260px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(0,70,180,.08), rgba(0,70,180,.18));
  display: grid; place-items: center; color: var(--blue-900); font-weight: 700;
}

@media (max-width: 980px) {
  .hero-inner, .coverage, .success-top, .footer-grid, .contact-card, .grid-2, .pay-head { grid-template-columns: 1fr; }
  .footer-end { justify-self: center; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .buy-capsule { position: relative; left: 0; transform: none; margin: 16px auto 0; flex-wrap: wrap; justify-content: center; }
  .kv, .search-form .row { grid-template-columns: 1fr; }
  .cookie { flex-direction: column; align-items: stretch; }
}
.brand-mark {
  display: inline-grid; place-items: center;
  min-width: 52px; height: 40px; padding: 0 8px;
  background: #0b5bd3; color: #fff; border-radius: 10px;
  font-weight: 700; font-size: 16px; letter-spacing: .04em;
}
.brand-txt { font-weight: 700; letter-spacing: .12em; color: #0b3a9a; font-size: 13px; }
.brand { gap: 8px; }
.brand-light .brand-mark { background: #fff; color: #0b5bd3; }
.brand-light .brand-txt { color: #fff; }
.hero-photo { background: var(--blue-50); padding: 12px 0 0; }
.hero-photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 16px;
}
.drawer-backdrop { position: absolute; inset: 0; background: rgba(0,20,70,.35); opacity: 0; transition: opacity .2s; }
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(320px, 86vw);
  background: #fff; transform: translateX(100%); transition: transform .22s ease;
  padding: 22px 18px; box-shadow: -8px 0 30px rgba(0,0,0,.12);
}
.drawer.is-open .drawer-panel { transform: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(8,30,90,.45); }
.modal-card {
  position: relative; z-index: 1; width: min(420px, calc(100% - 32px));
  margin: 18vh auto 0; background: var(--blue-800); color: #fff; border-radius: 16px;
  padding: 28px 22px 22px; text-align: center; box-shadow: 0 16px 40px rgba(0,0,0,.25);
}
.modal-card.light { background: #fff; color: var(--ink); width: min(720px, calc(100% - 32px)); margin-top: 8vh; text-align: left; }
.modal-actions { display: flex; justify-content: center; gap: 10px; }
.cookie-actions { display: flex; gap: 10px; align-items: center; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 12px; margin-top: 28px; font-size: 12px; font-weight: 400; flex-wrap: wrap;
}
.co { font-weight: 700; margin: 8px 0 6px; }
.muted { opacity: .92; font-size: 13.5px; line-height: 1.55; }
.foot-links { margin-top: 14px; font-size: 12.5px; opacity: .9; }
.slogan { font-size: clamp(22px, 3vw, 32px); font-weight: 700; margin: 8px 0 6px; }
.socials { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.socials a {
  display: block;
  width: 32px;
  height: 32px;
  border: 0;
  overflow: visible;
  line-height: 0;
}
.socials a img { width: 32px; height: 32px; object-fit: contain; display: block; }
.socials a[aria-label="LINE"] { width: 38px; }
.socials a[aria-label="LINE"] img { width: 38px; height: 32px; }
.btn-ghost { background: #fff; color: var(--blue-800); border: 1.5px solid #9ec0f3; box-shadow: none; }
.btn-primary { background: var(--blue-800); color: #fff; }
.btn-yellow { background: var(--yellow); color: var(--blue-900); border: 0; min-width: 140px; }
.panel { background: #fff; border-radius: 16px; padding: 18px 22px 24px; box-shadow: var(--shadow); }
.panel + .panel { margin-top: 16px; }
.h-line { color: var(--blue-900); font-size: 18px; font-weight: 700; padding-bottom: 8px; border-bottom: 2px solid #d6e7ff; margin: 0 0 16px; }
.req { color: var(--red); }
.radio-row { display: flex; flex-wrap: wrap; gap: 18px 22px; margin-bottom: 12px; font-size: 15px; }
.search-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.plan { border: 0; background: #eef4ff; color: var(--blue-900); font-weight: 700; padding: 10px 22px; border-radius: var(--pill); min-width: 220px; }
.plan.is-on { background: var(--blue-800); color: #fff; }
.x-del { color: #e31b23; background: none; border: 0; font-size: 18px; font-weight: 700; }

.plan.is-on { background: var(--blue-800); color: #fff; }
.grow { flex: 1; min-width: 220px; }
.link-dl { color: var(--blue-800); font-weight: 700; }
.help { font-size: 14px; color: var(--blue-800); margin: 8px 0 0; }
.kv { display: grid; grid-template-columns: 220px 1fr; gap: 8px 16px; align-items: center; margin: 8px 0; font-size: 15px; }
.readonly { background: #eef6ff; border-radius: 12px; padding: 8px 14px; min-height: 40px; display: flex; align-items: center; }
.plan-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 8px 0 14px; }
.legend { font-size: 13px; color: #333; }
.legend .g { color: #1a7f32; font-weight: 700; }
.legend .b { color: #1a4cad; font-weight: 700; }
.legend .r { color: #c81e1e; font-weight: 700; }
.table-wrap { overflow: auto; border: 1px solid #7eabef; border-radius: 8px; }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 860px; }
table.data th { background: var(--blue-900); color: #fff; padding: 8px 6px; }
table.data td { padding: 8px 6px; border: 1px solid #c5daf7; text-align: center; }
table.data td.name { text-align: left; }
.agree { display: flex; gap: 8px; align-items: flex-start; font-weight: 700; color: var(--blue-900); margin: 16px 0 8px; }
.fineprint { font-size: 12px; color: #555; line-height: 1.55; }
.fineprint .alert { color: #c81e1e; }
.row-end { display: flex; justify-content: flex-end; }
.btn-wide { min-width: 220px; }
.pay-box { background: #fff; border-radius: 18px; padding: 28px 24px; box-shadow: var(--shadow); max-width: 820px; margin: 0 auto; }
.pay-center { text-align: center; }
.pp-bar { display: flex; align-items: center; justify-content: space-between; background: var(--blue-800); color: #fff; border-radius: var(--pill); padding: 10px 18px; font-weight: 700; margin: 8px auto 16px; max-width: 420px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
.field label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.amt-lg { font-size: 28px; font-weight: 700; color: var(--blue-800); margin: 6px 0 16px; }
.deadline { color: #d10b0b; font-size: 13.5px; margin: 8px 0 14px; font-weight: 600; }
.qr-frame { width: 260px; margin: 0 auto 10px; background: #fff; border: 1px solid #9ec0f3; border-radius: 12px; padding: 12px; }
.qr-frame canvas, .qr-frame img { width: 236px; height: 236px; display: block; margin: 0 auto; }
.success-card { background: #fff; border-radius: 22px; padding: 28px; box-shadow: var(--shadow); max-width: 920px; margin: 0 auto; }
.success-top { display: grid; grid-template-columns: 1.2fr .8fr; gap: 12px; align-items: center; }
.dl-list { margin: 18px 0; }
.dl-row { display: grid; grid-template-columns: 220px 1fr; gap: 8px; padding: 8px 0; border-bottom: 1px solid #e6eef8; }
.badge-ok { display: inline-block; background: #b7dd9b; color: #1d5a22; font-weight: 700; padding: 4px 14px; border-radius: var(--pill); }
.success-actions, .pay-actions { display: flex; justify-content: center; gap: 16px; margin-top: 22px; }
.issue-list { margin-top: 8px; }
.issue-list .dl-row { font-size: 14px; }
.tiny { font-size: 12px; color: #888; margin-top: 10px; }
.mt-12 { margin-top: 12px; }
.mt-18 { margin-top: 18px; }
.center { text-align: center; }
.input { appearance: none; border: 1px solid #c9ddf7; background: #fff; border-radius: var(--pill); padding: 10px 16px; min-height: 42px; width: 100%; }
.notice { text-align: center; color: var(--blue-900); font-size: 14px; margin: 0 0 18px; line-height: 1.6; }
.notice a { color: var(--blue-700); text-decoration: underline; font-weight: 700; }
.notice .warn { color: var(--red); font-weight: 700; }
.search-row, .radio-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.stack-btns { display: flex; flex-direction: column; gap: 8px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { margin: 12px 0; }
.map { min-height: 260px; border-radius: 16px; background: linear-gradient(180deg, rgba(0,70,180,.08), rgba(0,70,180,.18)); display: grid; place-items: center; color: var(--blue-900); font-weight: 700; }
.contact-card { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.pp-logo { height: 40px; width: auto; margin: 8px auto 16px; display: block; }
.success-card { position: relative; overflow: hidden; }
.success-deco { position: absolute; pointer-events: none; opacity: .9; }
.success-deco.flowers { width: 88px; left: 10px; bottom: 10px; }
.success-deco.gears { width: 64px; right: 12px; bottom: 16px; }
.ico-sm { width: 22px; height: 22px; display: inline-block; vertical-align: middle; }

@media (max-width: 560px) {
  .service-grid { grid-template-columns: 1fr; }
  .success-actions, .pay-actions { flex-direction: column; }
}
