/* ─── Variables ─────────────────────────────────────── */
:root {
  --orange:       #F97316;
  --orange-dark:  #EA6A00;
  --orange-light: #FED7AA;
  --orange-glow:  rgba(249,115,22,.15);
  --black:        #0A0A0A;
  --black-soft:   #111111;
  --surface:      #181818;
  --surface-2:    #222222;
  --surface-3:    #2A2A2A;
  --border:       rgba(255,255,255,.08);
  --border-orange:rgba(249,115,22,.35);
  --text-primary: #F5F5F5;
  --text-muted:   #9A9A9A;
  --text-dim:     #666;
  --radius-sm:    6px;
  --radius-md:    10px;
  --radius-lg:    16px;
  --font:         'Sarabun', system-ui, sans-serif;
}

/* ─── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ─── Container ──────────────────────────────────────── */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ─── Header ─────────────────────────────────────────── */
.site-header {
  background: var(--black-soft);
  border-bottom: 1px solid var(--border-orange);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-icon { font-size: 22px; }
.logo-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}
.logo-accent { color: var(--orange); }
.header-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav-tagline {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: .3px;
}

/* ─── Sub-Nav ────────────────────────────────────────── */
.sub-nav {
  background: var(--black-soft);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 62px;
  z-index: 99;
}
.sub-nav-inner {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.sub-nav-inner::-webkit-scrollbar { display: none; }
.sub-nav-link {
  display: inline-block;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
}
.sub-nav-link:hover { color: var(--text-primary); }
.sub-nav-link.active {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

/* ─── Ads Banner ─────────────────────────────────────── */
.ads-banner {
  padding: 12px 20px;
  min-height: 70px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

/* ─── Main ───────────────────────────────────────────── */
.site-main { flex: 1; padding: 32px 0 48px; }

/* ─── Period Selector ────────────────────────────────── */
.period-selector-section { margin-bottom: 28px; }
.period-selectors {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.period-select-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 160px;
}
.period-select-group:last-child { flex: 2; }
.period-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--orange);
  margin-bottom: 8px;
}
.period-select-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
}
.period-select {
  width: 100%;
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border-orange);
  border-radius: var(--radius-md);
  padding: 12px 40px 12px 16px;
  font-size: 15px;
  font-family: var(--font);
  appearance: none;
  cursor: pointer;
  transition: border-color .2s;
}
.period-select:focus { outline: none; border-color: var(--orange); }
.period-select-wrap::after {
  content: '▾';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--orange);
  pointer-events: none;
}

/* ─── Result Header ──────────────────────────────────── */
.result-header {
  text-align: center;
  margin-bottom: 28px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.result-header-date {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.result-header-period {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
}

/* ─── First Prize ────────────────────────────────────── */
.prize-first-section { margin-bottom: 24px; }
.prize-first-card {
  background: linear-gradient(135deg, var(--surface) 0%, #1E1200 100%);
  border: 1px solid var(--orange);
  border-radius: var(--radius-lg);
  text-align: center;
  padding: 36px 24px;
  position: relative;
  overflow: hidden;
}
.prize-first-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, var(--orange-glow) 0%, transparent 70%);
  pointer-events: none;
}
.prize-first-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--orange);
  margin-bottom: 16px;
}
.prize-first-number {
  font-size: clamp(52px, 12vw, 80px);
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 12px;
  line-height: 1;
  margin-bottom: 12px;
  text-shadow: 0 0 40px rgba(249,115,22,.4);
}
.prize-first-number.is-placeholder {
  color: var(--text-muted);
  text-shadow: none;
  opacity: 0.35;
}
.prize-first-money {
  font-size: 18px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ─── Near First ─────────────────────────────────────── */
.prize-group-section { margin-bottom: 24px; }
.prize-group-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--orange);
  margin-bottom: 12px;
}
.prize-near-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.prize-near-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
  padding: 20px 16px;
}
.prize-near-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.prize-near-number {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 6px;
}
.prize-near-number.is-placeholder {
  color: var(--text-muted);
  opacity: 0.35;
}

/* ─── Sub Card (shared) ──────────────────────────────── */
.sub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.sub-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}
.sub-card-title { font-size: 13px; font-weight: 600; color: var(--orange); margin-bottom: 4px; }
.sub-card-money { font-size: 12px; color: var(--text-muted); margin-bottom: 14px; }
.numbers-wrap   { display: flex; flex-wrap: wrap; gap: 8px; }

/* ─── Sub Prizes Grid ────────────────────────────────── */
.prize-sub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.prize-sub-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}
.prize-sub-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 4px;
}
.prize-sub-money {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.prize-sub-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.badge-number {
  display: inline-block;
  background: var(--surface-3);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 3px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
}
.badge-number.large {
  font-size: 28px;
  letter-spacing: 5px;
  padding: 10px 20px;
}
.badge-number.is-placeholder {
  color: var(--text-muted);
  background: var(--surface-2);
  border-color: var(--border);
  opacity: 0.4;
  letter-spacing: 4px;
}

/* ─── Check Section ──────────────────────────────────── */
.check-section {
  background: var(--surface);
  border: 1px solid var(--border-orange);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  margin-bottom: 32px;
}
.check-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.check-form { margin-bottom: 20px; }
.check-input-wrap {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.check-input {
  flex: 1;
  min-width: 200px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 6px;
  padding: 12px 20px;
  text-align: center;
  transition: border-color .2s;
}
.check-input::placeholder { font-size: 14px; letter-spacing: 1px; font-weight: 400; color: var(--text-dim); }
.check-input:focus { outline: none; border-color: var(--orange); }
.check-btn {
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 28px;
  cursor: pointer;
  transition: background .2s, transform .1s;
  white-space: nowrap;
}
.check-btn:hover { background: var(--orange-dark); }
.check-btn:active { transform: scale(.97); }

/* ─── Check Result ───────────────────────────────────── */
.check-result-box {
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  animation: fadeIn .3s ease;
}
.check-result-box.win {
  background: rgba(34,197,94,.08);
  border: 1px solid rgba(34,197,94,.3);
}
.check-result-box.lose {
  background: rgba(239,68,68,.06);
  border: 1px solid rgba(239,68,68,.2);
}
.check-result-icon { font-size: 36px; margin-bottom: 8px; }
.check-result-title { font-size: 17px; font-weight: 600; margin-bottom: 14px; }
.check-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.check-result-row:last-child { border-bottom: none; }
.check-result-prize { color: var(--text-muted); }
.check-result-money { font-weight: 700; color: var(--orange); }
.check-result-sub { font-size: 14px; color: var(--text-muted); margin-top: 4px; }

/* ─── Result Full Page Button ────────────────────────── */
.result-fullpage-btn {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 18px;
  border: 1px solid var(--border-orange);
  border-radius: var(--radius-md);
  color: var(--orange);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s;
}
.result-fullpage-btn:hover { background: var(--orange-glow); }

/* ─── No Data ────────────────────────────────────────── */
.no-data-msg {
  text-align: center;
  color: var(--text-muted);
  padding: 60px 0;
  font-size: 15px;
}

/* ─── Footer ─────────────────────────────────────────── */
.site-footer {
  background: var(--black-soft);
  border-top: 1px solid var(--border);
  padding: 24px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-brand { font-size: 13px; font-weight: 600; color: var(--orange); }
.footer-note  { font-size: 12px; color: var(--text-dim); }
.footer-nav   { display: flex; gap: 20px; }
.footer-nav a {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .2s;
}
.footer-nav a:hover { color: var(--orange); }

/* ─── Static Pages (Privacy / About) ────────────────── */
.static-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 0 48px;
}
.static-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.static-updated {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 32px;
}
.static-section {
  margin-bottom: 28px;
}
.static-section h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--orange);
  margin-bottom: 10px;
}
.static-section p, .static-section li {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 8px;
}
.static-section ul {
  padding-left: 20px;
}
.static-section a {
  color: var(--orange);
  text-decoration: none;
}
.static-section a:hover { text-decoration: underline; }
.lottery-history-sub {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 24px 0 10px;
}
.static-section ol {
  padding-left: 20px;
}
.static-section ol li {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 8px;
}

/* About page */
.about-lead {
  font-size: 17px;
  color: var(--text-primary);
  line-height: 1.8;
}
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 28px 0;
}
.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}
.about-icon { font-size: 28px; margin-bottom: 10px; }
.about-card h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.about-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── Shopee Affiliate Banner ────────────────────── */
.shopee-banner-wrap {
  background: linear-gradient(135deg, #1a1a1a 0%, #111 100%);
  border-top: 1px solid rgba(249,115,22,.2);
  border-bottom: 1px solid rgba(249,115,22,.1);
  padding: 12px 20px;
}
.shopee-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 900px;
  margin: 0 auto;
  text-decoration: none;
  transition: opacity .2s;
}
.shopee-banner:hover { opacity: .85; }
.shopee-icon { font-size: 24px; flex-shrink: 0; }
.shopee-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.shopee-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}
.shopee-sub {
  font-size: 12px;
  color: #888;
}
.shopee-cta {
  background: #F97316;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}
@media (max-width: 480px) {
  .shopee-sub { display: none; }
  .shopee-cta { padding: 6px 12px; font-size: 12px; }
}

/* ─── Cookie Consent Banner ──────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a1a1a;
  border-top: 1px solid rgba(249,115,22,.4);
  z-index: 9999;
  padding: 16px 0;
  animation: slideUp .3s ease;
}
.cookie-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-text {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 260px;
}
.cookie-icon { font-size: 22px; flex-shrink: 0; }
.cookie-text p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}
.cookie-text a {
  color: var(--orange);
  text-decoration: none;
}
.cookie-text a:hover { text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn {
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 20px;
  cursor: pointer;
  transition: background .2s;
  font-family: var(--font);
  white-space: nowrap;
}
.cookie-btn.accept { background: var(--orange); color: #fff; }
.cookie-btn.accept:hover { background: var(--orange-dark); }
.cookie-btn.decline { background: var(--surface-3); color: var(--text-muted); }
.cookie-btn.decline:hover { background: var(--surface-2); }
@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
@media (max-width: 560px) {
  .cookie-inner { flex-direction: column; }
  .cookie-actions { width: 100%; }
  .cookie-btn { flex: 1; text-align: center; }
}

/* ─── Animation ──────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Near First money ───────────────────────────────── */
.prize-near-money {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ─── Prize group money label ────────────────────────── */
.prize-group-money {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 10px;
}

/* ─── Multi number grid (รางวัลที่ 2-5) ──────────────── */
.prize-multi-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ─── Check Section (ใหม่) ───────────────────────────── */
.check-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  margin-top: -10px;
}
.check-textarea {
  flex: 1;
  min-width: 200px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 4px;
  padding: 12px 16px;
  resize: vertical;
  transition: border-color .2s;
  line-height: 1.8;
}
.check-textarea::placeholder { font-size: 14px; letter-spacing: 1px; font-weight: 400; color: var(--text-dim); }
.check-textarea:focus { outline: none; border-color: var(--orange); }

/* summary bar */
.check-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface-3);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  font-size: 14px;
}
.check-summary-total { color: var(--text-muted); }
.check-summary-win   { color: #4ade80; font-weight: 600; }
.check-summary-lose  { color: var(--text-muted); }

/* result list */
.check-result-list { display: flex; flex-direction: column; gap: 10px; }

.check-result-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}
.check-result-item.win  { border-color: rgba(74,222,128,.3); }
.check-result-item.lose { border-color: var(--border); }

.check-result-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--surface-3);
}
.check-result-num {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 5px;
  color: var(--text-primary);
}
.check-result-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 99px;
}
.check-result-badge.win  { background: rgba(74,222,128,.15); color: #4ade80; }
.check-result-badge.lose { background: var(--surface-2); color: var(--text-dim); }

.check-result-prizes { padding: 0 16px 12px; }

.check-no-input {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  padding: 16px 0;
}

/* ─── Loading Spinner ────────────────────────────────── */
.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px 0;
  color: var(--text-muted);
  font-size: 15px;
}
.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--surface-3);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.spinner.small {
  width: 16px;
  height: 16px;
  border-width: 2px;
  display: inline-block;
}
.check-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
  padding: 12px 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 560px) {
  .prize-first-number { letter-spacing: 6px; }
  .prize-near-grid { grid-template-columns: 1fr; }
  .check-input-wrap { flex-direction: column; }
  .check-btn { width: 100%; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-nav { justify-content: center; }
  .about-grid { grid-template-columns: 1fr 1fr; }
}

/* ─── Donate ─────────────────────────────────────── */
.donate-wrap {
    display: flex;
    justify-content: center;
    padding: 12px 20px;
    background: #0a0a0a;
}

.donate-btn {
    background: transparent;
    border: 1px solid rgba(249,115,22,.4);
    color: #F97316;
    padding: 8px 24px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    font-family: var(--font);
}

    .donate-btn:hover {
        background: rgba(249,115,22,.1);
    }

.donate-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.7);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
}

.donate-modal-box {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 320px;
    text-align: center;
}

.donate-modal-header {
    background: #00467f;
    margin: -30px -30px 20px;
    padding: 15px;
    border-radius: 20px 20px 0 0;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
}

.donate-title {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin-bottom: 5px;
}

.donate-sub {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
}

.donate-amount-wrap {
    text-align: left;
    margin-bottom: 20px;
}

    .donate-amount-wrap label {
        font-size: 12px;
        font-weight: 700;
        color: #444;
        display: block;
        margin-bottom: 5px;
    }

.donate-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.donate-baht {
    position: absolute;
    left: 15px;
    font-weight: 700;
    color: #00467f;
    font-size: 16px;
}

.donate-input {
    width: 100%;
    padding: 10px 15px 10px 35px;
    border: 2px solid #00467f;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    color: #000;
    text-align: right;
}

.donate-qr-wrap {
    background: #fff;
    padding: 15px;
    border-radius: 16px;
    border: 1px solid #ddd;
    display: inline-block;
}

.donate-amount-label {
    margin-top: 12px;
    font-size: 16px;
    font-weight: 800;
    color: #00467f;
}

.donate-close {
    margin-top: 20px;
    width: 100%;
    background: #eee;
    color: #333;
    border: none;
    padding: 10px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}

.line-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #06c755;
    color: #fff;
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity .2s;
}

    .line-btn:hover {
        opacity: .85;
    }



/* 📱 ──────────────── ซ่อมแซมเมนู Header สำหรับหน้าจอมือถือ ──────────────── */
@media (max-width: 768px) {
    /* 1. สั่งซ่อนข้อความแท็กไลน์ตัวหนังสือยาว ๆ ทิ้งไปเลย เพื่อไม่ให้มันไปดันปุ่มจนพัง */
    .nav-tagline {
        display: none !important;
    }

    /* 2. จัดระเบียบกล่องรับปุ่มขวา ให้เรียงกันสวย ๆ ไม่เบี้ยว ไม่หลุดเลเยอร์ */
    .header-nav {
        display: flex;
        align-items: center;
        gap: 8px; /* เว้นระยะห่างปุ่มให้พอดีนิ้วกด */
    }

    /* 3. ปรับขนาดปุ่มสนับสนุน (Donate) ให้เล็กลงพอดีหน้าจอมือถือ และแก้จากวงรีเบี้ยวเป็นมนเหลี่ยมสวย ๆ */
    .donate-btn {
        padding: 6px 14px !important;
        font-size: 12px !important;
        border-radius: 6px !important; /* ปรับให้เป็นเหลี่ยมมนแบบสากล เข้ากับธีมเว็บ */
        white-space: nowrap;
    }

    /* 4. ปรับขนาดปุ่ม Line OA ไม่ให้กลมดิบอุบาทว์เป็นลูกบอล บังคับให้ยาวเป็นปุ่มกดมาตรฐาน */
    .line-btn {
        padding: 6px 14px !important;
        font-size: 12px !important;
        border-radius: 6px !important; /* ปรับเหลี่ยมมนเท่ากับปุ่มสนับสนุน */
        white-space: nowrap;
        height: auto !important;
        width: auto !important;
    }

    /* 5. ปรับโลโก้ฝั่งซ้ายให้กระชับขึ้นเล็กน้อยเวลามือถือจอแคบ */
    .logo-text {
        font-size: 18px !important;
    }

    .logo-icon {
        font-size: 18px !important;
    }
}

/* ─── Info Sections (SEO Content) ───────────────────── */
.info-sections {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
}
.info-heading {
  font-size: 17px;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.info-steps {
  padding-left: 22px;
  margin-bottom: 16px;
}
.info-steps li {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 10px;
}
.info-steps li strong { color: var(--text-primary); }
.info-steps a {
  color: var(--orange);
  text-decoration: none;
  font-weight: 600;
  transition: color .15s;
}
.info-steps a:hover { color: var(--orange-light); text-decoration: underline; }
.info-note {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 8px;
}
.info-note a { color: var(--orange); text-decoration: none; }
.info-note a:hover { text-decoration: underline; }
.prize-table-wrap { overflow-x: auto; margin-bottom: 16px; }
.prize-info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.prize-info-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.prize-info-table td {
  padding: 11px 14px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.prize-info-table tr:last-child td { border-bottom: none; }
.prize-info-table td strong { color: var(--text-primary); }
.prize-amount { color: var(--orange) !important; font-weight: 600; white-space: nowrap; }
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: none; }
.faq-q { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
.faq-a { font-size: 14px; color: var(--text-muted); line-height: 1.75; }
.info-card p { font-size: 15px; color: var(--text-muted); line-height: 1.8; }

@media (max-width: 600px) {
  .info-card { padding: 20px 16px; }
  .prize-info-table { font-size: 13px; }
  .prize-info-table th,
  .prize-info-table td { padding: 9px 10px; }
}

/* ─── Articles ───────────────────────────────────────── */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 28px 0;
}
.article-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.article-card:hover { border-color: var(--border-orange); transform: translateY(-2px); }
.article-card-icon { font-size: 30px; margin-bottom: 12px; }
.article-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 10px;
}
.article-card-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 14px;
}
.article-card-more { font-size: 13px; font-weight: 600; color: var(--orange); }

.article-body { max-width: 760px; }
.article-meta {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 28px;
}
.article-body .static-section h2 { font-size: 18px; }

.article-related {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.article-related-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 14px;
}
.article-related-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.article-related-list a {
  color: var(--orange);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: color .15s;
}
.article-related-list a:hover { color: var(--orange-light); text-decoration: underline; }
.article-related-back { margin-top: 18px; }
.article-related-back a { color: var(--text-muted); text-decoration: none; font-size: 14px; }
.article-related-back a:hover { color: var(--orange); }
