/* ==========================================================================
   HIX168 (hix168.cyou) — Proportional Luxury iGaming UI 2026
   Namespace: .hxc-*
   ========================================================================== */
:root {
  --hxc-bg: #071022;
  --hxc-panel: #0D1B36;
  --hxc-card: #132548;
  --hxc-pri: #38BDF8;
  --hxc-pri-dark: #0284C7;
  --hxc-acc: #FACC15;
  --hxc-acc-soft: #BAE6FD;
  --hxc-ink: #F8FAFC;
  --hxc-ink-soft: #E0F2FE;
  --hxc-muted: #94A3B8;
  --hxc-line: rgba(56,189,248,0.24);
  --hxc-radius: 16px;
  --hxc-max: 1320px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--hxc-bg); color: var(--hxc-ink); font-family: 'Noto Sans Thai', 'Leelawadee UI', system-ui, sans-serif; line-height: 1.72; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body { background: radial-gradient(circle at 80% 0%, rgba(56,189,248,0.18), transparent 42%), linear-gradient(180deg, #071022 0%, #0C1933 100%); color: var(--hxc-ink); min-height: 100vh; overflow-x: hidden; padding-bottom: 78px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--hxc-pri); text-decoration: none; transition: all 0.2s ease; }
a:hover { color: var(--hxc-acc); }
.hxc-wrap { width: min(var(--hxc-max), calc(100% - 36px)); margin-inline: auto; }

/* Sleek Single-Row Edge-to-Edge Sticky Header (No Awkward 2-Row Capsule!) */
.hxc-header { position: sticky; top: 0; z-index: 60; background: rgba(9, 13, 22, 0.90); backdrop-filter: blur(16px); border-bottom: 1px solid var(--hxc-line); box-shadow: 0 8px 28px rgba(0,0,0,0.35); }
.hxc-bar { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 14px; padding: 8px 0; }
.hxc-logo { display: inline-flex; align-items: center; flex-shrink: 0; background: #000000; padding: 5px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.10); }
.hxc-logo img { height: 38px; width: auto; max-width: 165px; object-fit: contain; }
.hxc-nav { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.hxc-nav::-webkit-scrollbar { display: none; }
.hxc-nav a { color: var(--hxc-ink-soft); font-size: 0.85rem; font-weight: 600; padding: 6px 11px; border-radius: 8px; white-space: nowrap; transition: all 0.18s ease; }
.hxc-nav a:hover, .hxc-nav a.is-active { color: #061022; background: var(--hxc-pri); font-weight: 700; }
.hxc-cta-row { display: flex; align-items: center; gap: 8px; flex-shrink: 0; flex-wrap: wrap; }
.hxc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0.48rem 1.15rem; border-radius: 10px; font-weight: 700; font-size: 0.88rem; border: 1px solid transparent; cursor: pointer; text-align: center; white-space: nowrap; }
.hxc-btn-pri { background: linear-gradient(135deg, var(--hxc-pri) 0%, var(--hxc-pri-dark) 100%); color: #061022; box-shadow: 0 6px 18px rgba(0,0,0,0.28); }
.hxc-btn-pri:hover { transform: translateY(-1px); filter: brightness(1.08); color: #061022; }
.hxc-btn-sec { background: linear-gradient(135deg, var(--hxc-acc) 0%, var(--hxc-pri-dark) 100%); color: #090D16; font-weight: 800; box-shadow: 0 6px 18px rgba(0,0,0,0.22); }
.hxc-btn-ghost { background: rgba(255,255,255,0.06); color: var(--hxc-ink); border-color: var(--hxc-line); }
.hxc-btn-ghost:hover { background: rgba(255,255,255,0.12); color: var(--hxc-acc); }

/* Breadcrumb */
.hxc-crumbs { padding: 12px 0 6px; font-size: 0.82rem; }
.hxc-crumbs ul.items { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--hxc-muted); }
.hxc-crumbs li.item + li.item::before { content: "/"; margin-right: 8px; color: var(--hxc-muted); }
.hxc-crumbs strong { color: var(--hxc-pri); }

/* Proportional Wide Cinema Hero Showcase + Clean Bento Deck */
.hxc-hero { padding: 6px 0 28px; }
.hxc-hero-grid { width: 100%; display: flex; flex-direction: column; gap: 18px; }
.hxc-banner-frame { width: 100%; border-radius: 20px; overflow: hidden; border: 1px solid var(--hxc-line); box-shadow: 0 20px 48px rgba(0,0,0,0.45); background: var(--hxc-panel); }
.hxc-banner-frame img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; display: block; }
.hxc-hero-bento { background: var(--hxc-card); border: 1px solid var(--hxc-line); border-radius: 20px; padding: 26px 30px; box-shadow: 0 14px 36px rgba(0,0,0,0.28); display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 24px; align-items: center; }
.hxc-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; border-radius: 8px; background: rgba(255,255,255,0.05); border: 1px solid var(--hxc-line); color: var(--hxc-pri); font-size: 0.8rem; font-weight: 700; margin-bottom: 10px; }
.hxc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hxc-pri); display: inline-block; box-shadow: 0 0 8px var(--hxc-pri); }
.hxc-h1 { font-size: clamp(1.45rem, 2.2vw, 2.05rem); line-height: 1.32; font-weight: 800; color: var(--hxc-ink); margin-bottom: 10px; }
.hxc-lead { color: var(--hxc-ink-soft); font-size: 0.96rem; margin-bottom: 16px; }

/* Bento Stat Widgets */
.hxc-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.hxc-tile { background: var(--hxc-panel); border: 1px solid var(--hxc-line); border-left: 3px solid var(--hxc-pri); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; }
.hxc-tile strong { color: var(--hxc-pri); font-size: 0.95rem; }
.hxc-tile span { color: var(--hxc-muted); font-size: 0.8rem; }

/* Modern Bento Sections & Media Cards */
.hxc-section { padding: 32px 0; border-top: 1px solid var(--hxc-line); }
.hxc-sec-head { margin-bottom: 20px; display: flex; flex-direction: column; align-items: flex-start; }
.hxc-sec-head h2 { font-size: clamp(1.32rem, 2vw, 1.75rem); color: var(--hxc-ink); margin-bottom: 6px; }
.hxc-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hxc-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hxc-card { background: var(--hxc-card); border: 1px solid var(--hxc-line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 8px 24px rgba(0,0,0,0.18); }
.hxc-media-card { background: var(--hxc-card); border: 1px solid var(--hxc-line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 10px 26px rgba(0,0,0,0.22); transition: transform 0.2s ease, border-color 0.2s ease; }
.hxc-media-card:hover { transform: translateY(-4px); border-color: var(--hxc-pri); }
.hxc-media-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: var(--hxc-panel); display: block; }
.hxc-media-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.hxc-media-tag { display: inline-block; width: fit-content; padding: 3px 9px; border-radius: 6px; background: rgba(255,255,255,0.06); font-size: 0.73rem; font-weight: 700; color: var(--hxc-pri); }
.hxc-media-body strong { color: var(--hxc-ink); font-size: 1.02rem; line-height: 1.4; }
.hxc-media-body p { color: var(--hxc-ink-soft); font-size: 0.87rem; }

/* Reading Grid & Article — Clean Editorial Layout with Horizontal TOC Bar */
.hxc-reading-grid { display: flex; flex-direction: column; gap: 18px; width: 100%; }
.hxc-toc { position: static; background: var(--hxc-card); border: 1px solid var(--hxc-line); border-radius: 16px; padding: 18px 22px; }
.hxc-toc h2 { font-size: 0.96rem; color: var(--hxc-pri); margin-bottom: 10px; }
.hxc-toc ol { list-style: none; padding-left: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hxc-toc ol li a { display: inline-flex; align-items: center; padding: 6px 13px; border-radius: 8px; background: var(--hxc-panel); border: 1px solid var(--hxc-line); color: var(--hxc-ink-soft); font-size: 0.84rem; font-weight: 600; }
.hxc-toc ol li a:hover { background: var(--hxc-pri); color: #061022; border-color: var(--hxc-pri); }
.hxc-article { background: var(--hxc-card); border: 1px solid var(--hxc-line); border-radius: 18px; padding: 30px 34px; box-shadow: 0 12px 34px rgba(0,0,0,0.22); }
.hxc-meta-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; margin-bottom: 18px; background: var(--hxc-panel); border: 1px solid var(--hxc-line); border-radius: 12px; font-size: 0.83rem; color: var(--hxc-ink-soft); }
.hxc-meta-badge { background: var(--hxc-pri); color: #061022; font-weight: 800; font-size: 0.73rem; padding: 3px 10px; border-radius: 6px; margin-right: 6px; }
.hxc-quick-box { background: var(--hxc-panel); border: 1px solid var(--hxc-line); border-left: 4px solid var(--hxc-pri); border-radius: 14px; padding: 18px 22px; margin-bottom: 22px; }
.hxc-quick-box h3 { font-size: 1.08rem; color: var(--hxc-pri); margin: 0 0 8px; }
.hxc-quick-box ul { padding-left: 20px; margin: 0; display: grid; gap: 7px; color: var(--hxc-ink-soft); font-size: 0.92rem; }
.hxc-article h2 { font-size: 1.34rem; color: var(--hxc-ink); margin: 26px 0 10px; padding-left: 12px; border-left: 4px solid var(--hxc-pri); }
.hxc-article h3 { font-size: 1.12rem; color: var(--hxc-pri); margin: 16px 0 8px; }
.hxc-article p { color: var(--hxc-ink-soft); margin-bottom: 14px; font-size: 0.96rem; }
.hxc-article ul, .hxc-article ol { padding-left: 22px; margin-bottom: 16px; color: var(--hxc-ink-soft); display: grid; gap: 7px; font-size: 0.95rem; }
.hxc-subfig { margin: 18px 0 22px; border-radius: 14px; overflow: hidden; border: 1px solid var(--hxc-line); background: var(--hxc-panel); }
.hxc-subfig img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; display: block; }
.hxc-subfig figcaption { padding: 10px 16px; font-size: 0.83rem; color: var(--hxc-muted); border-top: 1px solid var(--hxc-line); }
.hxc-callout { background: rgba(128,128,128,0.06); border-left: 4px solid var(--hxc-acc); border-radius: 0 12px 12px 0; padding: 14px 16px; margin: 16px 0; color: var(--hxc-ink); font-size: 0.92rem; }
.hxc-outbound { background: var(--hxc-panel); border: 1px solid var(--hxc-line); border-radius: 12px; padding: 14px 16px; margin-top: 18px; font-size: 0.86rem; color: var(--hxc-ink-soft); }

/* Specification Table */
.hxc-table-wrap { overflow-x: auto; margin: 14px 0 20px; border-radius: 12px; border: 1px solid var(--hxc-line); }
.hxc-table { width: 100%; border-collapse: collapse; font-size: 0.89rem; min-width: 520px; }
.hxc-table th, .hxc-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--hxc-line); }
.hxc-table th { background: var(--hxc-panel); color: var(--hxc-pri); font-weight: 800; }

/* FAQ */
.hxc-faq-list { display: grid; gap: 12px; }
.hxc-faq-list details { background: var(--hxc-card); border: 1px solid var(--hxc-line); border-radius: 12px; padding: 14px 18px; }
.hxc-faq-list summary { font-weight: 800; color: var(--hxc-ink); cursor: pointer; font-size: 0.96rem; }
.hxc-faq-list details p { margin-top: 10px; color: var(--hxc-ink-soft); font-size: 0.9rem; }

/* Proportional 4-Column Mega-Footer & Payment Strip */
.hxc-footer { background: #0D1B36; color: #F8FAFC; border-top: 2px solid var(--hxc-line); padding: 46px 0 30px; margin-top: 42px; }
.hxc-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 26px; padding-bottom: 30px; margin-bottom: 26px; border-bottom: 1px solid var(--hxc-line); }
.hxc-footer-brand { display: flex; flex-direction: column; gap: 12px; }
.hxc-footer-brand img { height: 40px; width: auto; max-width: 175px; object-fit: contain; }
.hxc-footer-brand p { font-size: 0.87rem; color: var(--hxc-ink-soft); line-height: 1.65; }
.hxc-footer-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.hxc-footer-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 6px; background: rgba(255,255,255,0.06); border: 1px solid var(--hxc-line); font-size: 0.75rem; font-weight: 700; color: var(--hxc-pri); }
.hxc-footer-col h4 { font-size: 0.96rem; font-weight: 800; color: var(--hxc-pri); margin-bottom: 12px; }
.hxc-footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.hxc-footer-links li a { color: var(--hxc-ink-soft); font-size: 0.86rem; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.hxc-footer-links li a:hover { color: var(--hxc-acc); transform: translateX(3px); }
.hxc-footer-info { display: grid; gap: 9px; font-size: 0.85rem; color: var(--hxc-ink-soft); }
.hxc-footer-info strong { color: var(--hxc-ink); }
.hxc-pay-box { background: rgba(0,0,0,0.22); border: 1px solid var(--hxc-line); border-radius: var(--hxc-radius); padding: 18px; margin-bottom: 22px; }
.hxc-pay-icons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.hxc-pay-chip { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); border-radius: 10px; padding: 8px 12px; font-size: 0.82rem; font-weight: 700; color: #F8FAFC; }
.hxc-pay-chip img { width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; }
.hxc-bottom-copy { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 16px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.81rem; color: #CBD5E1; }

/* Sticky Mobile Bottom Bar */
.hxc-bottom-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 70; background: rgba(9, 13, 22, 0.90); backdrop-filter: blur(14px); border-top: 1px solid var(--hxc-line); padding: 6px 10px; display: none; }
.hxc-bottom-in { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; max-width: 540px; margin: 0 auto; align-items: center; }
.hxc-bottom-item { display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 0.71rem; font-weight: 700; color: var(--hxc-ink-soft); padding: 4px 2px; border-radius: 8px; text-align: center; }
.hxc-bottom-item.is-center { background: linear-gradient(135deg, var(--hxc-pri) 0%, var(--hxc-pri-dark) 100%); color: #061022; font-weight: 800; padding: 7px 4px; border-radius: 12px; }

/* Full Mobile & Tablet Responsive Breakpoints (Zero Horizontal Overflow) */
@media (max-width: 980px) {
  .hxc-hero-bento, .hxc-reading-grid { grid-template-columns: 1fr; }
  .hxc-footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hxc-bar { border-radius: 22px; justify-content: center; }
  .hxc-toc { position: static; }
  .hxc-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hxc-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hxc-tiles, .hxc-pay-icons { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hxc-wrap { width: calc(100% - 24px); }
  .hxc-bar { justify-content: center; text-align: center; }
  .hxc-nav { justify-content: center; font-size: 0.82rem; }
  .hxc-footer-grid, .hxc-grid-3, .hxc-grid-4 { grid-template-columns: 1fr; }
  .hxc-article { padding: 18px 14px; }
  .hxc-bottom-bar { display: block; }
}
