body { font-family: SukhumvitReg, "Noto Sans Thai", sans-serif; }
.hd-head{width:100%;clear:both;position:sticky;top:0;z-index:20}
.hd-gold{display:flex;align-items:center;gap:12px;width:100%;min-height:58px;padding:8px 16px;box-sizing:border-box;background:#d4a017 url(/assets/images/gold-pattern.jpg) center/cover}
.hd-brand{display:inline-flex;align-items:center;gap:8px;flex:0 0 auto;color:#2a2114;text-decoration:none;font-weight:700;font-size:22px;line-height:1;letter-spacing:.04em}
.hd-brand img{width:36px;height:36px;object-fit:contain;display:block}
.hd-account{margin-left:auto;display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;color:#2a2114;font-size:14px;line-height:1.2}
.hd-account form{margin:0}
.hd-account button,.hd-out{border:1px solid #2a2114;background:#fff;color:#2a2114;border-radius:4px;padding:4px 8px;font-size:13px;line-height:1.2;text-decoration:none;cursor:pointer}
.hd-out{background:#111;color:#fff}
.hd-menu{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;width:100%;box-sizing:border-box;background:#111;padding:10px 12px}
.hd-menu a{color:#f5d76e;background:#1a1a1a;border:1px solid #c79810;border-radius:999px;padding:5px 12px;font-size:15px;line-height:1.3;text-decoration:none;white-space:nowrap}
.hd-menu a:hover,.hd-menu a:focus{background:#2a2114;color:#fff6d4;text-decoration:none}
.topbar .logo a{cursor:pointer;text-decoration:none}
.demo-gold {
  background: var(--t-btn-primary-bg);
  border: 1px solid var(--t-btn-primary-border);
  color: var(--t-btn-primary-text);
  font-weight: 700;
  box-shadow: var(--t-btn-primary-shadow);
}
.demo-kinds { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.demo-kind, .demo-kind.active {
  border: 1px solid var(--t-border);
  background: #1b1b1b;
  color: var(--t-text-light);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 14px;
}
.demo-kind.active { background: var(--t-gradient-gold); color: #2a2114; }
.demo-number {
  text-align: center;
  font-size: 42px;
  letter-spacing: .28em;
  color: #7a2a16;
  background: #fff;
  border-radius: 10px;
  min-height: 72px;
  line-height: 72px;
  margin-bottom: 8px;
}
.demo-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.demo-options:empty { display: none; }
.demo-options button {
  flex: 1 1 120px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid #c79810;
  background: #1b1b1b;
  color: #f5d76e;
  font-size: 16px;
}
.demo-option-note { margin: 6px 0 0; color: #8d8d8d; font-size: 12px; line-height: 1.4; }
.demo-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.demo-pad button {
  height: 52px;
  border-radius: 10px;
  border: 1px solid var(--t-border-gold);
  background: #161616;
  color: #f3e2b3;
  font-size: 22px;
}
html, body { background-attachment: scroll !important; }
.demo-count {
  display: inline-block;
  min-width: 4.6em;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
/* Slip rows: each line has its own editable stake */
.demo-slip-hint { margin: -4px 0 6px; font-size: 12px; color: #777; }
.demo-stake-label { display: block; margin: 0 0 2px; font-size: 12px; color: #777; }
.demo-slip-list { max-height: 360px; overflow-y: auto; -webkit-overflow-scrolling: touch; margin: 0 -2px; padding: 0 2px; }
.demo-slip-line { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid rgba(0,0,0,.08); color: #333; }
.demo-slip-info { flex: 1 1 auto; min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.demo-slip-num { font-size: 18px; font-weight: 700; letter-spacing: 1px; color: #222; font-variant-numeric: tabular-nums; }
.demo-slip-type { font-size: 12px; color: #8a5a00; background: rgba(214,166,61,.16); border-radius: 999px; padding: 1px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-slip-amount { flex: 0 0 auto; display: flex; align-items: center; gap: 4px; margin: 0; font-size: 12px; color: #666; }
.demo-slip-stake { width: 76px; height: 36px; padding: 4px 8px; font-size: 16px; text-align: right; font-variant-numeric: tabular-nums; border: 1px solid #c9a24a; border-radius: 6px; background: #fff; color: #222; }
.demo-slip-stake:focus { outline: none; border-color: #b8860b; box-shadow: 0 0 0 2px rgba(214,166,61,.35); }
.demo-slip-line.is-bad .demo-slip-stake { border-color: #c62828; background: #fff3f3; color: #a11b1b; }
.demo-slip-del { flex: 0 0 auto; width: 36px; height: 36px; border: 0; border-radius: 6px; background: rgba(161,27,27,.1); color: #a11b1b; font-size: 20px; line-height: 1; cursor: pointer; }
.demo-slip-del:hover, .demo-slip-del:focus { background: rgba(161,27,27,.2); }
.demo-slip-warn { margin-top: 6px; font-size: 12px; color: #a11b1b; }
.demo-slip-total { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: rgba(214,166,61,.14); color: #333; font-size: 14px; }
.demo-slip-total strong { font-size: 16px; color: #222; font-variant-numeric: tabular-nums; }
.demo-slip-total.has-error strong { color: #a11b1b; }
#demo-send:disabled { opacity: .6; cursor: wait; }
@media (max-width: 576px) {
  .demo-slip-list { max-height: none; }
  .demo-slip-line { gap: 6px; }
  .demo-slip-info { flex-direction: column; align-items: flex-start; gap: 2px; }
  .demo-slip-stake { width: 72px; height: 40px; }
  .demo-slip-del { width: 40px; height: 40px; }
}
.demo-plus { color: #0b7a32; font-weight: 700; }
.demo-minus { color: #a11b1b; font-weight: 700; }
.demo-flat { color: #333; }
.demo-wait { color: #8a5a00; font-weight: 700; }
.demo-sum { background: rgba(255,255,255,.92); border: 2px solid var(--t-border-light); border-radius: 10px; padding: 8px 10px; color: #333; }
.demo-sum div { font-size: 12px; color: #666; }
.table td, .table th { vertical-align: middle; }


/* HUAYDEE live results ticker */
.hd-ticker {
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(90deg, #1a1408 0%, #2a2114 40%, #1a1408 100%);
  border-bottom: 2px solid #d4a017;
  color: #f5d76e;
  overflow: hidden;
  position: relative;
  z-index: 30;
  box-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.hd-ticker-inner {
  display: flex;
  align-items: stretch;
  min-height: 42px;
}
.hd-ticker-label {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  background: linear-gradient(180deg, #f0d278, #c79810);
  color: #2a2114;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .02em;
  white-space: nowrap;
  border-right: 1px solid #8a6a0a;
  text-shadow: 0 1px 0 rgba(255,255,255,.25);
}
.hd-ticker-label i { font-size: 14px; }
.hd-ticker-viewport {
  flex: 1 1 auto;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}
.hd-ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  padding: 8px 0;
  animation: hd-ticker-scroll 55s linear infinite;
  will-change: transform;
}
.hd-ticker:hover .hd-ticker-track { animation-play-state: paused; }
.hd-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 18px;
  font-size: 14px;
  line-height: 1.3;
  color: #ffe9a8;
}
.hd-ticker-item + .hd-ticker-item {
  border-left: 1px solid rgba(212,160,23,.35);
}
.hd-ticker-name { color: #f5d76e; font-weight: 700; }
.hd-ticker-round { color: #cfc3a0; font-size: 13px; }
.hd-ticker-nums {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.hd-ticker-chip {
  display: inline-block;
  background: rgba(212,160,23,.15);
  border: 1px solid rgba(212,160,23,.55);
  color: #fff6d4;
  border-radius: 999px;
  padding: 2px 8px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: .03em;
}
.hd-ticker-chip em {
  font-style: normal;
  color: #f5d76e;
  font-weight: 600;
  margin-right: 4px;
  font-size: 12px;
}
@keyframes hd-ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .hd-ticker-track { animation: none; }
}
@media (max-width: 576px) {
  .hd-ticker-label { font-size: 12px; padding: 0 10px; }
  .hd-ticker-item { font-size: 13px; padding: 4px 12px; }
}

/* ===== HUAYDEE homepage redesign (20261006h) ===== */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.hd-home {
  --hd-gold: #f5d76e; --hd-gold-2: #d4a017; --hd-gold-3: #8a6a0a;
  --hd-ink: #0d0d0d; --hd-card: #161513; --hd-line: rgba(212,160,23,.35); --hd-text: #e9e2cc; --hd-mute: #9b927c;
  max-width: 1200px; margin: 0 auto; padding: 8px 16px 28px; box-sizing: border-box; color: var(--hd-text);
}
.hd-home *, .hd-footer * { box-sizing: border-box; }
.hd-home a { text-decoration: none; }
.hd-muted { color: var(--hd-mute); margin: 0; }
.hd-login-error { margin: 8px 8px 0; padding: 8px 12px; border-radius: 8px; background: rgba(161,27,27,.15); border: 1px solid rgba(255,120,100,.5); color: #ffb4a8; font-size: 14px; text-align: center; }

/* hero + stats */
.hd-hero { text-align: center; padding: 18px 0 6px; }
.hd-hero h1 { margin: 0 0 6px; font-size: 22px; line-height: 1.35; font-weight: 700;
  background: linear-gradient(90deg, #c79810, #fff0b8 45%, #d4a017 70%, #f5d76e); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: hd-shine 7s linear infinite; }
@keyframes hd-shine { to { background-position: 200% center; } }
.hd-hero-note { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 5px 14px; border-radius: 999px;
  border: 1px solid var(--hd-line); background: rgba(212,160,23,.08); color: var(--hd-gold); font-size: 14px; }
.hd-stats { display: grid; grid-template-columns: 1fr 1fr 2fr 2fr; gap: 10px; text-align: left; }
.hd-stat { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center;
  padding: 10px 14px; border-radius: 12px; background: linear-gradient(160deg, #1d1a12, #111); border: 1px solid var(--hd-line); min-width: 0; }
.hd-stat i { grid-row: 1 / 3; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(180deg, #f0d278, #c79810); color: #2a2114; font-size: 15px; }
.hd-stat b { font-size: 22px; line-height: 1.1; color: #fff6d4; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hd-stat b small { font-size: 14px; color: var(--hd-gold); margin-left: 6px; font-weight: 600; }
.hd-stat b small::before { content: "2ล่าง "; font-size: 11px; color: var(--hd-mute); }
.hd-stat span { font-size: 12px; color: var(--hd-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* sticky category pills */
.hd-public-nav { position: sticky; top: 0; z-index: 15; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
  margin: 16px -16px 6px; padding: 10px 16px; background: rgba(10,10,10,.82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(212,160,23,.2); max-width: none; }
.hd-public-nav a { display: inline-flex; align-items: center; gap: 6px; color: var(--hd-gold); background: #1a1a1a; border: 1px solid #c79810;
  border-radius: 999px; padding: 5px 13px; font-size: 14px; line-height: 1.3; white-space: nowrap; transition: background .2s, color .2s, transform .2s; }
.hd-public-nav a em { font-style: normal; font-size: 11px; font-weight: 700; min-width: 18px; padding: 0 5px; border-radius: 999px; text-align: center; background: #2f6b2a; color: #e8ffe0; }
.hd-public-nav a:hover, .hd-public-nav a.is-active { background: linear-gradient(180deg, #f0d278, #c79810); color: #2a2114; transform: translateY(-1px); }
.hd-public-nav a.is-link { border-style: dashed; }

.hd-title { margin: 18px 0 4px; font-size: 19px; color: var(--hd-gold); }
.hd-lead { margin: 0 0 14px; color: var(--hd-mute); font-size: 14px; }

/* yeekee + latest side panel */
.hd-split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 14px; align-items: start; }
.hd-split-side { position: sticky; top: 62px; }
.hd-home #yeekee { background: var(--hd-card) !important; border: 1px solid var(--hd-line) !important; border-radius: 14px !important; padding: 12px !important; margin: 0 !important; scroll-margin-top: 64px; }
.hd-home #yeekee h6 { color: var(--hd-gold) !important; font-size: 17px; }
.hd-home #yeekee .table { color: var(--hd-text); margin: 0; }
.hd-home #yeekee .table th { color: var(--hd-mute); border-color: rgba(212,160,23,.25); font-weight: 600; font-size: 13px; }
.hd-home #yeekee .table td { border-color: rgba(255,255,255,.06); font-size: 14px; }
.hd-home #yeekee tbody tr:hover { background: rgba(212,160,23,.07); }
.hd-home #yeekee tbody tr:has(.demo-gold) { background: rgba(212,160,23,.12); box-shadow: inset 3px 0 0 var(--hd-gold-2); }
.hd-home #yeekee .table-responsive { max-height: 520px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #8a6a0a #111; }
.hd-panel { background: var(--hd-card); border: 1px solid var(--hd-line); border-radius: 14px; padding: 12px 14px; }
.hd-panel h2 { font-size: 17px; color: var(--hd-gold); margin: 0 0 8px; }
.hd-latest { list-style: none; margin: 0; padding: 0; }
.hd-latest li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px dashed rgba(212,160,23,.2); }
.hd-latest li:last-child { border-bottom: 0; }
.hd-latest strong { display: block; color: #fff6d4; font-size: 14px; font-weight: 600; }
.hd-latest small { color: var(--hd-mute); font-size: 12px; }

/* sections + responsive grid (no dead space: filler tile absorbs the rest of the last row) */
.hd-section { margin-top: 26px; scroll-margin-top: 64px; position: relative; }
.hd-anchor { position: absolute; top: 0; }
.hd-section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid rgba(212,160,23,.2); }
.hd-section-head h2 { margin: 0; font-size: 19px; color: var(--hd-gold); }
.hd-section-head p { flex-basis: 100%; margin: 0; font-size: 13px; color: var(--hd-mute); }
.hd-count { font-size: 12px; padding: 1px 9px; border-radius: 999px; background: rgba(60,160,70,.18); color: #9be59b; border: 1px solid rgba(60,160,70,.45); }
.hd-count.is-zero { background: rgba(255,255,255,.05); color: var(--hd-mute); border-color: rgba(255,255,255,.12); }
.hd-grid { --cols: 4; --gap: 12px; display: flex; flex-wrap: wrap; gap: var(--gap); }
.hd-grid > .hd-card { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); min-width: 0; }
.hd-grid > .hd-filler { flex: 1 1 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols) - 1px); }
@media (max-width: 1100px) { .hd-grid { --cols: 3; } }
@media (max-width: 820px) { .hd-grid { --cols: 2; } }
@media (max-width: 520px) { .hd-grid { --cols: 1; --gap: 10px; } }

.hd-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 14px;
  background: linear-gradient(165deg, #1f1c14 0%, #141414 55%, #101010 100%); border: 1px solid rgba(212,160,23,.28);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; overflow: hidden; }
.hd-card.is-open { border-color: rgba(212,160,23,.6); }
.hd-card.is-open::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, transparent, #f5d76e, transparent);
  background-size: 200% 100%; animation: hd-sweep 3.2s linear infinite; }
@keyframes hd-sweep { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.hd-card:hover { transform: translateY(-3px); border-color: #f5d76e; box-shadow: 0 10px 24px rgba(0,0,0,.5), 0 0 0 1px rgba(245,215,110,.25), 0 0 18px rgba(212,160,23,.18); }
.hd-card.is-done { opacity: .82; }
.hd-card.is-soon { border-color: #ff9f43; box-shadow: 0 0 0 1px rgba(255,159,67,.35); }
.hd-card.is-soon .hd-timer { color: #ffb36b; background: rgba(255,159,67,.12); border-color: rgba(255,159,67,.5); }
.hd-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.hd-card-head h3 { margin: 0; font-size: 16px; font-weight: 700; color: #ffe9a8; line-height: 1.3; }
.hd-card-head h3 i { color: var(--hd-gold-2); font-size: 13px; }
.hd-badge { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; font-size: 11px; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.hd-badge.is-open { background: rgba(60,160,70,.16); color: #9be59b; border: 1px solid rgba(60,160,70,.45); }
.hd-badge.is-open i { width: 7px; height: 7px; border-radius: 50%; background: #5ddc6a; box-shadow: 0 0 0 0 rgba(93,220,106,.7); animation: hd-pulse 1.8s infinite; }
@keyframes hd-pulse { 70% { box-shadow: 0 0 0 6px rgba(93,220,106,0); } 100% { box-shadow: 0 0 0 0 rgba(93,220,106,0); } }
.hd-badge.is-done { background: rgba(255,255,255,.06); color: var(--hd-mute); border: 1px solid rgba(255,255,255,.14); }
.hd-card-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--hd-mute); min-height: 22px; }
.hd-timer { margin-left: auto; padding: 1px 8px; border-radius: 999px; border: 1px solid rgba(212,160,23,.35); background: rgba(212,160,23,.07); color: var(--hd-gold); font-size: 12px; white-space: nowrap; }
.hd-timer.is-muted { color: var(--hd-mute); border-color: rgba(255,255,255,.1); background: transparent; }
.hd-timer .demo-count { min-width: 0; text-align: left; }
.hd-card-result { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-height: 30px; padding: 6px 8px; border-radius: 10px; background: rgba(0,0,0,.35); }
.hd-card-result small { flex-basis: 100%; color: var(--hd-mute); font-size: 11px; }
.hd-card-label { font-size: 12px; color: var(--hd-mute); }
.hd-card-wait { font-size: 13px; color: #b8ad8e; }
.hd-card-chips { display: inline-flex; flex-wrap: wrap; gap: 5px; }
.hd-chip { display: inline-block; padding: 1px 8px; border-radius: 999px; background: rgba(212,160,23,.15); border: 1px solid rgba(212,160,23,.55); color: #fff6d4;
  font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; letter-spacing: .03em; white-space: nowrap; }
.hd-chip em { font-style: normal; color: var(--hd-gold); font-weight: 600; font-size: 11px; margin-right: 4px; }
.hd-card-btn { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 6px; height: 38px; border-radius: 10px;
  background: linear-gradient(180deg, #f6dc84 0%, #d4a017 55%, #a67c0c 100%); color: #2a2114 !important; font-weight: 700; font-size: 15px;
  border: 1px solid #f0d278; box-shadow: 0 2px 0 #6b5208, inset 0 1px 0 rgba(255,255,255,.4); transition: filter .2s, transform .1s; }
.hd-card-btn:hover { filter: brightness(1.08); }
.hd-card-btn:active { transform: translateY(1px); }
.hd-card-btn.is-ghost { background: transparent; color: var(--hd-gold) !important; border: 1px solid rgba(212,160,23,.45); box-shadow: none; font-weight: 600; }
.hd-card-btn.is-static { cursor: default; opacity: .7; }

.hd-filler { display: flex; align-items: center; gap: 12px; min-height: 96px; padding: 14px 16px; border-radius: 14px;
  border: 1px dashed rgba(212,160,23,.45); background: repeating-linear-gradient(135deg, rgba(212,160,23,.05) 0 10px, transparent 10px 20px), #121110;
  color: var(--hd-text) !important; transition: border-color .2s, background-color .2s; }
a.hd-filler:hover { border-color: #f5d76e; background-color: #1a170f; }
.hd-filler strong { color: #ffe9a8; font-size: 15px; }
.hd-filler p { margin: 2px 0 0; font-size: 13px; color: var(--hd-mute); }
.hd-filler-icon { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 18px;
  background: rgba(212,160,23,.12); border: 1px solid rgba(212,160,23,.4); color: var(--hd-gold); }
.hd-filler-go { margin-left: auto; color: var(--hd-gold); transition: transform .2s; }
a.hd-filler:hover .hd-filler-go { transform: translateX(4px); }
.hd-filler.is-empty { justify-content: center; text-align: left; min-height: 110px; }
.hd-filler-links a { color: var(--hd-gold); text-decoration: underline; text-underline-offset: 3px; }

/* features + CTA */
.hd-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.hd-features div { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; padding: 12px; border-radius: 12px; background: var(--hd-card); border: 1px solid rgba(212,160,23,.22); }
.hd-features i { grid-row: 1 / 3; color: var(--hd-gold); font-size: 20px; width: 28px; text-align: center; }
.hd-features strong { color: #ffe9a8; font-size: 15px; }
.hd-features span { color: var(--hd-mute); font-size: 13px; }
.hd-cta { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 18px 20px; border-radius: 16px;
  background: linear-gradient(120deg, rgba(212,160,23,.22), rgba(20,18,12,.9) 55%), url(/assets/images/gold-black.jpg) center/cover; border: 1px solid rgba(212,160,23,.55); }
.hd-cta h2 { margin: 0 0 2px; font-size: 20px; color: #fff0b8; }
.hd-cta p { margin: 0; color: #d9cfb2; font-size: 14px; }
.hd-cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.hd-btn-gold, .hd-btn-line { display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 15px; }
.hd-btn-gold { background: linear-gradient(180deg, #f6dc84, #d4a017 55%, #a67c0c); color: #2a2114 !important; border: 1px solid #f0d278; box-shadow: 0 2px 0 #6b5208; }
.hd-btn-line { color: var(--hd-gold) !important; border: 1px solid var(--hd-gold); background: rgba(0,0,0,.35); }
.hd-btn-gold:hover, .hd-btn-line:hover { filter: brightness(1.1); }

/* footer */
.hd-footer { margin-top: 30px; background: linear-gradient(180deg, #0f0e0b, #070707); border-top: 2px solid #d4a017; color: #b9b09a; position: relative; }
.hd-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: linear-gradient(90deg, transparent, #fff0b8, transparent); opacity: .7; }
.hd-footer-inner { max-width: 1200px; margin: 0 auto; padding: 22px 16px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.hd-footer-logo { display: inline-flex; align-items: center; gap: 8px; color: var(--hd-gold, #f5d76e) !important; text-decoration: none !important; font-weight: 800; font-size: 20px; letter-spacing: .05em; }
.hd-footer-logo img { width: 34px; height: 34px; object-fit: contain; }
.hd-footer-brand p { margin: 4px 0 0; font-size: 13px; color: #8f8670; }
.hd-footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hd-footer-links a { color: #e9d9a6 !important; font-size: 14px; text-decoration: none !important; position: relative; padding: 2px 0; }
.hd-footer-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: #f5d76e; transform: scaleX(0); transition: transform .2s; }
.hd-footer-links a:hover { color: #fff6d4 !important; }
.hd-footer-links a:hover::after { transform: scaleX(1); }
.hd-footer-badge { font-size: 12px; letter-spacing: .08em; color: #8f8670; padding: 4px 10px; border: 1px solid rgba(212,160,23,.3); border-radius: 999px; }
.hd-footer-badge i { color: #d4a017; }
.hd-footer-copy { text-align: center; font-size: 12px; color: #6f6857; padding: 10px 16px 18px; border-top: 1px solid rgba(255,255,255,.06); letter-spacing: .03em; }
.hd-footer-copy a { color: #b9a46a !important; }
.hd-totop { position: fixed; right: 16px; bottom: 18px; z-index: 40; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(180deg, #f0d278, #c79810); color: #2a2114 !important; box-shadow: 0 6px 16px rgba(0,0,0,.5); opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .25s, transform .25s; }
.hd-totop.is-show { opacity: 1; pointer-events: auto; transform: none; }

@media (max-width: 991px) {
  .hd-stats { grid-template-columns: 1fr 1fr; }
  .hd-split { grid-template-columns: 1fr; }
  .hd-split-side { position: static; }
  .hd-features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 576px) {
  .hd-home { padding: 6px 12px 22px; }
  .hd-hero h1 { font-size: 18px; }
  .hd-hero-note { font-size: 12px; border-radius: 12px; }
  .hd-stat { padding: 8px 10px; }
  .hd-stat b { font-size: 18px; }
  .hd-stat.is-wide { grid-column: 1 / -1; }
  .hd-public-nav { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 12px -12px 4px; padding: 8px 12px; scrollbar-width: none; }
  .hd-public-nav::-webkit-scrollbar { display: none; }
  .hd-features { grid-template-columns: 1fr; }
  .hd-cta { padding: 16px; }
  .hd-cta-btns { width: 100%; }
  .hd-cta-btns a { flex: 1 1 0; }
  .hd-footer-inner { flex-direction: column; align-items: flex-start; }
  .hd-footer-links a { font-size: 15px; }
  .hd-home #yeekee .table-responsive { max-height: 380px; }
}
@media (prefers-reduced-motion: reduce) {
  .hd-hero h1, .hd-card.is-open::before, .hd-badge.is-open i { animation: none; }
  .hd-card:hover { transform: none; }
}
.hd-stat .demo-count { min-width: 0; text-align: left; }
.hd-card.is-folded { display: none; }
.hd-more { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 10px; height: 42px; border-radius: 12px;
  border: 1px solid rgba(212,160,23,.55); background: #15130e; color: #f5d76e; font-size: 15px; font-weight: 600; cursor: pointer; }
.hd-more[hidden] { display: none; }
.hd-grid > .hd-more { flex: 1 1 100%; margin-top: 0; }
.hd-more:hover { background: #1f1b10; }
@media (max-width: 576px) {
  .hd-home #yeekee .table td, .hd-home #yeekee .table th { font-size: 13px; padding: .3rem .35rem; }
}

/* ===== Logged-in account bar on homepage (20261006i) ===== */
#login.hd-acct { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 14px; min-height: 46px; width: 100%;
  color: #e9e2cc; font-size: 14px; line-height: 1.25; text-align: left; }
#login.hd-acct .hd-acct-info { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 0; }
#login.hd-acct .hd-acct-item { display: inline-flex; align-items: center; gap: 8px; min-width: 0; padding: 2px 14px; color: #e9e2cc; text-decoration: none;
  border-left: 1px solid rgba(212,160,23,.35); border-radius: 0; transition: background .2s; }
#login.hd-acct .hd-acct-item:first-child { border-left: 0; padding-left: 4px; }
#login.hd-acct a.hd-acct-item:hover { background: rgba(212,160,23,.08); }
#login.hd-acct .hd-acct-item > span { display: flex; flex-direction: column; min-width: 0; color: inherit; }
#login.hd-acct .hd-acct-item em { display: block; font-style: normal; font-size: 11.5px; color: #9b927c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
#login.hd-acct .hd-acct-item b { display: block; font-size: 15px; font-weight: 700; color: #fff6d4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; font-variant-numeric: tabular-nums; }
#login.hd-acct .hd-acct-item b span, #login.hd-acct .hd-acct-item b i { display: inline; color: #f5d76e; }
#login.hd-acct .hd-acct-item b strong { color: #f5d76e; font-weight: 800; letter-spacing: .03em; }
#login.hd-acct .hd-acct-item b.is-mute { color: #cfc3a0; font-weight: 600; font-size: 14px; }
#login.hd-acct .hd-acct-item b.is-mute u { color: #f5d76e; text-underline-offset: 3px; margin-left: 4px; }
#login.hd-acct .hd-acct-item .demo-count { min-width: 0; text-align: left; }
#login.hd-acct .hd-acct-hi > i { font-size: 26px; color: #d4a017; }
#login.hd-acct .hd-acct-hi b { color: #f5d76e; max-width: 160px; }
#login.hd-acct .hd-acct-links { display: inline-flex; gap: 6px; padding-left: 12px; border-left: 1px solid rgba(212,160,23,.35); }
#login.hd-acct .hd-acct-links a { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 11px; border-radius: 999px; white-space: nowrap;
  border: 1px solid rgba(212,160,23,.6); background: #15130e; color: #f5d76e; font-size: 13px; text-decoration: none; transition: background .2s, color .2s; }
#login.hd-acct .hd-acct-links a:hover { background: linear-gradient(180deg, #f0d278, #c79810); color: #2a2114; }
#login.hd-acct .hd-acct-side { flex: 0 0 auto; margin-left: auto; display: flex; align-items: center; gap: 8px; }
#login.hd-acct .hd-acct-bal { color: #f5d76e; font-size: 16px; white-space: nowrap; font-variant-numeric: tabular-nums; }
#login.hd-acct .hd-acct-side .btn { white-space: nowrap; }
@media (max-width: 1199px) {
  #login.hd-acct .hd-acct-item em, #login.hd-acct .hd-acct-item b { max-width: 170px; }
}
@media (max-width: 576px) {
  #login.hd-acct { gap: 10px; }
  #login.hd-acct .hd-acct-info { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; flex-basis: 100%; }
  #login.hd-acct .hd-acct-item { padding: 6px 8px; border: 1px solid rgba(212,160,23,.25); border-radius: 10px; background: rgba(255,255,255,.03); }
  #login.hd-acct .hd-acct-item:first-child { padding-left: 8px; border: 0; background: none; grid-column: 1 / -1; }
  #login.hd-acct .hd-acct-res { grid-column: 1 / -1; }
  #login.hd-acct .hd-acct-item em, #login.hd-acct .hd-acct-item b { max-width: none; }
  #login.hd-acct .hd-acct-hi b { max-width: none; }
  #login.hd-acct .hd-acct-links { grid-column: 1 / -1; padding-left: 0; border-left: 0; }
  #login.hd-acct .hd-acct-links a { flex: 1 1 0; justify-content: center; height: 34px; font-size: 14px; }
  #login.hd-acct .hd-acct-side { width: 100%; margin-left: 0; padding-top: 10px; border-top: 1px solid rgba(212,160,23,.25); }
  #login.hd-acct .hd-acct-bal { margin-right: auto; font-size: 17px; }
}

/* ===== home articles (20261012d) ===== */
.hd-articles { margin: 34px 0 10px; }
.hd-art-head { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin-bottom: 20px; }
.hd-art-title { position: relative; padding-left: 16px; }
.hd-art-title::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 4px; border-radius: 4px; background: linear-gradient(180deg, #f5d76e, #b8860b); }
.hd-art-head h2 { margin: 0; font-size: 21px; line-height: 1.3; color: var(--hd-gold); font-weight: 700; }
.hd-art-head p { margin: 2px 0 0; font-size: 13px; color: var(--hd-mute); }
.hd-art-all { font-size: 14px; color: var(--hd-gold); border: 1px solid rgba(212,160,23,.55); border-radius: 999px; padding: 7px 18px; line-height: 1.2; background: transparent; transition: background .2s, border-color .2s, box-shadow .2s; }
.hd-art-all:hover, .hd-art-all:focus-visible { background: rgba(245,215,110,.12); border-color: #f5d76e; box-shadow: 0 0 14px rgba(212,160,23,.2); }
.hd-art-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hd-art { display: flex; flex-direction: column; min-width: 0; border-radius: 16px; overflow: hidden; color: inherit;
  background: linear-gradient(170deg, #1a1812 0%, #121212 60%, #0f0f0f 100%); border: 1px solid rgba(212,160,23,.22);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.hd-art:hover, .hd-art:focus-visible { transform: translateY(-3px); border-color: rgba(245,215,110,.7); box-shadow: 0 12px 28px rgba(0,0,0,.5), 0 0 22px rgba(212,160,23,.2); }
.hd-art-img { display: block; overflow: hidden; aspect-ratio: 16 / 9; background: #0e0c08; border-radius: 15px 15px 0 0; }
.hd-art-img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .45s ease; }
.hd-art:hover .hd-art-img img, .hd-art:focus-visible .hd-art-img img { transform: scale(1.03); }
.hd-art-body { display: flex; flex-direction: column; gap: 7px; padding: 16px 18px 16px; flex: 1; min-width: 0; }
.hd-art-cat { font-style: normal; font-size: 12px; letter-spacing: .02em; color: var(--hd-gold); opacity: .9; }
.hd-art-body b { font-size: 16px; line-height: 1.45; color: #fff1c4; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hd-art-body small { font-size: 13px; line-height: 1.55; color: var(--hd-mute); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hd-art-more { margin-top: auto; padding-top: 11px; border-top: 1px solid rgba(212,160,23,.25); font-style: normal; font-size: 13.5px; font-weight: 600; color: var(--hd-gold); }
.hd-art-body small + .hd-art-more { margin-top: 5px; }
.hd-art-more span { display: inline-block; transition: transform .2s; }
.hd-art:hover .hd-art-more span { transform: translateX(4px); }
@media (max-width: 900px) { .hd-art-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (max-width: 560px) {
  .hd-art-head { margin-bottom: 14px; }
  .hd-art-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .hd-art { border-radius: 14px; }
  .hd-art-img { border-radius: 13px 13px 0 0; }
  .hd-art-body { padding: 11px 12px 12px; gap: 5px; }
  .hd-art-cat { font-size: 11.5px; }
  .hd-art-body b { font-size: 14px; line-height: 1.4; -webkit-line-clamp: 3; }
  .hd-art-body small { display: none; }
  .hd-art-more { padding-top: 8px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .hd-art, .hd-art-img img, .hd-art-more span, .hd-art-all { transition: none; }
  .hd-art:hover, .hd-art:focus-visible { transform: none; }
  .hd-art:hover .hd-art-img img, .hd-art:focus-visible .hd-art-img img { transform: none; }
  .hd-art:hover .hd-art-more span { transform: none; }
}
