:root {
  --bg-main: #000000;
  --bg-body: #141414;
  --bg-surface: #1A1A1A;
  --bg-card: #1E1E1E;
  --bg-header: #222222;
  --gold-light: #FCF6BA;
  --gold-main: #DFB76C;
  --gold-dark: #BF953F;
  --silver-light: #FFFFFF;
  --silver-dark: #A1A1A1;
  --line-green: #06C755;
  --text-main: #FFFFFF;
  --text-body: #EAEAEA;
  --text-muted: #B8B8B8;
  --border-gold: rgba(252, 246, 186, 0.32);
  --border-gold-strong: #FCF6BA;
  --grad-gold-vertical: linear-gradient(180deg, #FCF6BA 30%, #BF953F 100%);
  --grad-gold-horizontal: linear-gradient(90deg, #FCF6BA 0%, #BF953F 100%);
  --grad-silver: linear-gradient(180deg, #FFFFFF 55%, #A1A1A1 100%);
  --grad-header: linear-gradient(180deg, #222222 0%, #000000 100%);
  --grad-card: linear-gradient(180deg, #1E1E1E 0%, #050505 100%);
  --grad-divider: linear-gradient(100deg, transparent, #FCF6BA 30%, #BF953F 70%, transparent);
  --shadow-card: 0 10px 24px rgba(0, 0, 0, 0.65);
  --shadow-gold: 0 6px 22px rgba(191, 149, 63, 0.35);
  --radius-sm: 10px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-pill: 50px;
  --container-max: 1180px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Sarabun', 'Kanit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-body);
  background-image:
    radial-gradient(circle at 12% 15%, rgba(191, 149, 63, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 88% 15%, rgba(252, 246, 186, 0.09) 0%, transparent 40%),
    linear-gradient(180deg, #000000 0%, #181818 50%, #050505 100%);
  color: var(--text-main);
  line-height: 1.75;
  overflow-x: hidden;
}

a {
  color: var(--gold-light);
  text-decoration: none;
  transition: all 0.22s ease;
}

a:hover {
  color: var(--gold-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Hairline Gold Divider matching ufabet236.global (.linecuttop01) */
.gold-divider {
  width: 100%;
  height: 2px;
  background: var(--grad-divider);
}

/* 2-Tier Sticky Header matching ufabet236.global */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--grad-header);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.85);
}

.header-top {
  padding: 0.75rem 0;
}

.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo-img {
  width: 222px;
  height: 51px;
  object-fit: contain;
}

.header-auth {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* Secondary Icon + Text Navigation Bar */
.header-nav-bar {
  background: linear-gradient(180deg, #222222 50%, #000000 100%);
  border-top: 1px solid rgba(252, 246, 186, 0.25);
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(100deg, transparent, #FCF6BA 30%, #BF953F 70%, transparent) 1;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  padding: 0.45rem 0;
}

.main-nav a {
  color: var(--text-main);
  font-size: 0.94rem;
  font-weight: 600;
  padding: 0.42rem 0.85rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.main-nav a:hover,
.main-nav a.active {
  color: #000000;
  background: var(--grad-gold-vertical);
  box-shadow: 0 2px 10px rgba(252, 246, 186, 0.3);
}

/* Official UFABET236 Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.58rem 1.3rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  text-decoration: none;
  line-height: 1.2;
}

.btn-register,
.btn-primary {
  background: linear-gradient(180deg, #FCF6BA 15%, #BF953F 100%);
  color: #000000 !important;
  border: 1px solid #FCF6BA;
  box-shadow: var(--shadow-gold);
}

.btn-register:hover,
.btn-primary:hover {
  background: linear-gradient(180deg, #BF953F 15%, #FCF6BA 100%);
  color: #000000 !important;
  transform: translateY(-2px);
}

.btn-login,
.btn-outline {
  background: var(--grad-silver);
  color: #000000 !important;
  border: 1px solid #FFFFFF;
}

.btn-login:hover,
.btn-outline:hover {
  background: linear-gradient(180deg, #A1A1A1 15%, #FFFFFF 100%);
  color: #000000 !important;
  transform: translateY(-2px);
}

.btn-hero-pill {
  background: var(--grad-gold-horizontal);
  color: #000000 !important;
  border: 2px solid #FCF6BA;
  border-radius: var(--radius-pill);
  padding: 0.95rem 2.6rem;
  font-size: 1.15rem;
  font-weight: 800;
  box-shadow: 0 8px 28px rgba(252, 246, 186, 0.35);
}

.btn-hero-pill:hover {
  background: linear-gradient(90deg, #BF953F 0%, #FCF6BA 100%);
  transform: translateY(-2px) scale(1.02);
}

.btn-line {
  background: linear-gradient(180deg, #2CE574 0%, #06C755 100%);
  color: #000000 !important;
  border: 1px solid #72F6A6;
  border-radius: var(--radius-pill);
  padding: 0.85rem 1.8rem;
  font-weight: 800;
}

/* Breadcrumb Bar */
.breadcrumb-bar {
  background: #0A0A0A;
  border-bottom: 1px solid rgba(252, 246, 186, 0.16);
  padding: 0.65rem 0;
  font-size: 0.88rem;
}

.breadcrumb-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-muted);
}

.breadcrumb-list li + li::before {
  content: "›";
  margin-right: 0.45rem;
  color: var(--gold-light);
}

.breadcrumb-list a {
  color: var(--gold-light);
}

/* Hero Section matching ufabet236.global */
.hero-section {
  position: relative;
  padding: 3rem 0 2.5rem;
  background-color: #000000;
  background-image:
    linear-gradient(125deg, rgba(191, 149, 63, 0.22) 0%, transparent 28%),
    linear-gradient(235deg, rgba(252, 246, 186, 0.2) 0%, transparent 28%),
    radial-gradient(rgba(252, 246, 186, 0.12) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 22px 22px;
  border-bottom: 3px solid var(--gold-light);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 2.25rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-pill);
  background: rgba(252, 246, 186, 0.12);
  border: 1px solid var(--gold-light);
  color: var(--gold-light);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 0.9rem;
}

/* Gold Vertical Gradient Headings matching ufabet236.global (.goldtxt) */
h1, h2, .gold-heading {
  background: var(--grad-gold-vertical);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
  line-height: 1.3;
}

h1 {
  font-size: clamp(1.85rem, 3.3vw, 2.65rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.42rem, 2.4vw, 1.95rem);
  margin-bottom: 0.85rem;
}

h3 {
  font-size: 1.24rem;
  color: var(--gold-light);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--text-body);
  margin-bottom: 1.5rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.4rem;
}

.hero-subnote {
  font-size: 0.92rem;
  color: var(--gold-light);
  font-weight: 600;
}

.trust-badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.trust-item {
  background: var(--grad-card);
  border: 1px solid rgba(252, 246, 186, 0.35);
  border-bottom: 3px solid var(--gold-light);
  border-radius: 14px;
  padding: 0.7rem 0.6rem;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.trust-item strong {
  display: block;
  font-size: 1.12rem;
  background: var(--grad-gold-vertical);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.trust-item span {
  font-size: 0.78rem;
  color: var(--text-body);
}

/* Quick-Access Strip (6 Icon Pills like ufabet236.global) */
.quick-strip {
  background: linear-gradient(180deg, #000000 0%, #222222 100%);
  padding: 1.6rem 0;
  border-bottom: 2px solid rgba(252, 246, 186, 0.25);
}

.quick-strip-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.quick-pill-card {
  background: linear-gradient(180deg, #1E1E1E 0%, #000000 100%);
  border: 1px solid rgba(252, 246, 186, 0.2);
  border-bottom: 3px solid var(--gold-light);
  border-radius: 20px;
  padding: 0.95rem 0.65rem;
  text-align: center;
  box-shadow: 8px 8px 14px rgba(0, 0, 0, 0.55);
  transition: transform 0.22s ease, border-color 0.22s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.quick-pill-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-light);
}

.quick-pill-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-pill);
  background: var(--grad-gold-horizontal);
  color: #000000;
}

.quick-pill-title {
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.96rem;
}

/* Zero CLS Media Frame (Strict Visual Protocol) */
figure.media-frame {
  margin: 1.4rem 0;
  background: #080808;
  border: 2px solid rgba(252, 246, 186, 0.42);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

figure.media-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

figure.media-frame figcaption {
  padding: 0.7rem 1rem;
  font-size: 0.86rem;
  color: var(--gold-light);
  background: linear-gradient(180deg, #181818 0%, #070707 100%);
  border-top: 1px solid rgba(252, 246, 186, 0.22);
  text-align: center;
}

/* Main Content Boxed Sections matching ufabet236.global (#000000D4 + top/bottom gold borders) */
.section {
  padding: 2.8rem 0;
}

.section-alt {
  background: rgba(0, 0, 0, 0.84);
  border-top: 3px solid var(--gold-light);
  border-bottom: 3px solid var(--gold-light);
}

.content-panel {
  background: rgba(0, 0, 0, 0.84);
  border: 1px solid rgba(252, 246, 186, 0.25);
  border-top: 4px solid var(--gold-light);
  border-bottom: 4px solid var(--gold-light);
  border-radius: 28px;
  padding: 2.2rem;
  box-shadow: var(--shadow-card);
}

/* Direct Answer Box for Google AI Overviews (GEO 40-60 words) */
.direct-answer {
  background: linear-gradient(90deg, rgba(191, 149, 63, 0.16) 0%, rgba(18, 18, 18, 0.92) 100%);
  border-left: 4px solid var(--gold-light);
  border-top: 1px solid rgba(252, 246, 186, 0.22);
  border-right: 1px solid rgba(252, 246, 186, 0.22);
  border-bottom: 1px solid rgba(252, 246, 186, 0.22);
  border-radius: 0 14px 14px 0;
  padding: 1.05rem 1.3rem;
  margin-bottom: 1.5rem;
  color: #FFFFFF;
  font-size: 1rem;
}

/* 3x2 Symmetrical Grid Cards with 1:1 Fitted Artwork */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.card {
  background: linear-gradient(180deg, #1E1E1E 0%, #000000 100%);
  border: 1px solid rgba(252, 246, 186, 0.25);
  border-bottom: 4px solid var(--gold-light);
  border-radius: 20px;
  padding: 1.35rem;
  box-shadow: 10px 10px 16px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-light);
}

.card-media-1x1 {
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0 0 1rem 0;
  border-radius: 16px;
  overflow: hidden;
  background: #050505;
  border: 2px solid rgba(252, 246, 186, 0.45);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.7);
}

.card-img-1x1 {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.card-badge {
  display: inline-block;
  align-self: flex-start;
  background: var(--grad-gold-horizontal);
  color: #000000;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.24rem 0.7rem;
  border-radius: 6px;
  margin-bottom: 0.65rem;
}

.card p {
  color: var(--text-body);
  font-size: 0.94rem;
  margin-bottom: 1rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-top: auto;
}

/* Comparison Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 1.4rem 0;
  border-radius: 16px;
  border: 1px solid rgba(252, 246, 186, 0.32);
  box-shadow: var(--shadow-card);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #0D0D0D;
  min-width: 620px;
}

th {
  background: linear-gradient(180deg, #2A2415 0%, #141109 100%);
  color: var(--gold-light);
  font-weight: 800;
  text-align: left;
  padding: 0.95rem 1rem;
  border-bottom: 2px solid var(--gold-light);
}

td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-body);
}

tr:hover td {
  background: rgba(252, 246, 186, 0.05);
}

/* Content Lists & Steps */
.feature-list {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  margin: 1.1rem 0;
}

.feature-list li {
  background: #141414;
  border: 1px solid rgba(252, 246, 186, 0.2);
  border-left: 4px solid var(--gold-light);
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
}

/* FAQ Section matching ufabet236.global */
.faq-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.faq-item {
  background: linear-gradient(180deg, #1B1B1B 0%, #080808 100%);
  border: 1px solid rgba(252, 246, 186, 0.3);
  border-radius: 14px;
  padding: 1.15rem 1.35rem;
}

.faq-question {
  color: var(--gold-light);
  font-weight: 700;
  font-size: 1.06rem;
  margin-bottom: 0.45rem;
}

.faq-answer {
  color: var(--text-body);
  font-size: 0.95rem;
}

/* Author Box (E-E-A-T) & Review Verdict Box */
.review-verdict-box {
  margin: 1.5rem 0;
  background: linear-gradient(180deg, #1F1B10 0%, #0A0905 100%);
  border: 1px solid rgba(252, 246, 186, 0.45);
  border-left: 5px solid var(--gold-light);
  border-radius: 18px;
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow-card);
}

.review-verdict-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(252, 246, 186, 0.2);
}

.review-verdict-title {
  color: var(--gold-light);
  font-weight: 800;
  font-size: 1.1rem;
}

.review-score-badge {
  background: var(--grad-gold-horizontal);
  color: #000000;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 0.28rem 0.85rem;
  border-radius: var(--radius-pill);
}

.author-box {
  margin-top: 2rem;
  background: linear-gradient(180deg, #1E1E1E 0%, #090909 100%);
  border: 1px solid var(--gold-light);
  border-radius: 18px;
  padding: 1.3rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.author-box strong {
  color: var(--gold-light);
  font-size: 1.05rem;
}

/* Footer matching ufabet236.global */
.site-footer {
  background: linear-gradient(180deg, #000000 0%, #222222 100%);
  border-top: 3px solid var(--gold-light);
  padding: 3rem 0 0;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.2rem;
}

.footer-title {
  color: var(--gold-light);
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 0.85rem;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.footer-links a {
  color: #FFFFFF;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  background: #000000;
  padding: 1.1rem 0;
  text-align: center;
  font-size: 0.86rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(252, 246, 186, 0.2);
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .quick-strip-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .trust-badges {
    grid-template-columns: repeat(2, 1fr);
  }
  .quick-strip-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-cards {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .header-top-inner {
    justify-content: center;
  }
}
