:root {
    --primary: #38bdf8;
    --secondary: #1e293b;
    --bg: #e0f2fe;
    --card-bg: #f0f9ff;
    --accent: #0ea5e9;
    --text-dark: #1e293b;
    --text-muted: #475569;
    --border: #bae6fd;
  }
  * { box-sizing: border-box; }
  body {
    font-family: 'Noto Sans Thai', sans-serif;
    background-color: var(--bg);
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.8;
  }
  /* NAVBAR */
  .navbar {
    background-color: var(--secondary) !important;
    box-shadow: 0 2px 12px rgba(56,189,248,0.15);
    padding: 0.6rem 1rem;
  }
  .navbar-brand {
    max-width: calc(100vw - 108px);
    flex-shrink: 1;
    overflow: visible;
  }
  .navbar-brand img {
    height: 44px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
  }
  .navbar-toggler {
    border-color: var(--primary);
    flex-shrink: 0;
  }
  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(56,189,248,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  }
  .navbar-nav .nav-link {
    color: #cbd5e1 !important;
    font-weight: 500;
    padding: 0.5rem 0.85rem;
    transition: color 0.2s;
    white-space: nowrap;
  }
  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link.active {
    color: var(--primary) !important;
  }
  /* HERO */
  .hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 60%, #0c4a6e 100%);
    color: #fff;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
  }
  .hero-section::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 340px; height: 340px;
    background: radial-gradient(circle, rgba(56,189,248,0.18) 0%, transparent 70%);
    border-radius: 50%;
  }
  .hero-section::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -60px;
    width: 260px; height: 260px;
    background: radial-gradient(circle, rgba(14,165,233,0.13) 0%, transparent 70%);
    border-radius: 50%;
  }
  .hero-badge {
    display: inline-block;
    background: rgba(56,189,248,0.15);
    border: 1px solid var(--primary);
    color: var(--primary);
    font-size: 0.8rem;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
  }
  .hero-section h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 18px;
  }
  .hero-section h1 span { color: var(--primary); }
  .hero-section p.lead {
    color: #94a3b8;
    font-size: 1.05rem;
    max-width: 560px;
  }
  .btn-primary-custom {
    background: var(--primary);
    color: var(--secondary);
    font-weight: 700;
    padding: 12px 32px;
    border-radius: 8px;
    border: none;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s, transform 0.15s;
  }
  .btn-primary-custom:hover {
    background: #0ea5e9;
    color: #fff;
    transform: translateY(-2px);
  }
  .btn-outline-custom {
    background: transparent;
    color: var(--primary);
    font-weight: 600;
    padding: 11px 28px;
    border-radius: 8px;
    border: 2px solid var(--primary);
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
  }
  .btn-outline-custom:hover {
    background: var(--primary);
    color: var(--secondary);
  }
  /* SECTION TITLES */
  .section-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 10px;
  }
  .section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 36px;
  }
  .title-bar {
    display: inline-block;
    width: 52px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
    margin-bottom: 16px;
  }
  /* CARDS */
  .feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px 22px;
    text-align: center;
    transition: box-shadow 0.2s, transform 0.2s;
  }
  .feature-card:hover {
    box-shadow: 0 8px 32px rgba(56,189,248,0.18);
    transform: translateY(-4px);
  }
  .feature-icon {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.5rem;
    color: var(--accent);
  }
  .feature-card h5 {
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 8px;
  }
  .feature-card p {
    color: var(--text-muted);
    font-size: 0.93rem;
    margin: 0;
  }
  /* IMAGE BLOCKS */
  .img-block {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(30,41,59,0.12);
  }
  .img-block img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
  }
  /* STEPS */
  .step-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 28px;
  }
  .step-num {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--secondary);
    font-weight: 800;
    font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .step-content h5 {
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 5px;
  }
  .step-content p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.95rem;
  }
  /* COMPARE TABLE */
  .compare-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(30,41,59,0.1);
  }
  .compare-table thead tr {
    background: linear-gradient(90deg, var(--secondary), #0c4a6e);
    color: #fff;
  }
  .compare-table thead th {
    padding: 16px 20px;
    font-weight: 700;
    text-align: center;
  }
  .compare-table tbody tr:nth-child(odd) {
    background: #f0f9ff;
  }
  .compare-table tbody tr:nth-child(even) {
    background: #e0f2fe;
  }
  .compare-table tbody td {
    padding: 14px 20px;
    color: var(--text-dark);
    text-align: center;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border);
  }
  .compare-table tbody td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--secondary);
  }
  .check-yes { color: #16a34a; font-size: 1.1rem; }
  .check-no { color: #ef4444; font-size: 1.1rem; }
  /* TESTIMONIALS */
  .testimonial-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 26px 22px;
    position: relative;
  }
  .testimonial-card::before {
    content: '\201C';
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.3;
    position: absolute;
    top: 10px; left: 16px;
    line-height: 1;
    font-family: Georgia, serif;
  }
  .testimonial-text {
    color: var(--text-dark);
    font-size: 0.96rem;
    margin-bottom: 18px;
    padding-top: 18px;
  }
  .testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .author-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #0ea5e9);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
  }
  .author-info .name {
    font-weight: 700;
    color: var(--secondary);
    font-size: 0.95rem;
  }
  .author-info .city {
    color: var(--text-muted);
    font-size: 0.82rem;
  }
  .stars { color: #f59e0b; font-size: 0.9rem; }
  /* PRIVACY NOTICE */
  .privacy-notice {
    background: linear-gradient(90deg, #f0f9ff, #e0f2fe);
    border-left: 4px solid var(--primary);
    border-radius: 0 12px 12px 0;
    padding: 20px 24px;
  }
  .privacy-notice h5 {
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 8px;
    display: flex; align-items: center; gap: 8px;
  }
  .privacy-notice p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.93rem;
  }
  /* RESPONSIBLE GAMING */
  .rg-section {
    background: linear-gradient(135deg, #1e293b, #0c4a6e);
    color: #fff;
    border-radius: 18px;
    padding: 48px 36px;
  }
  .rg-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(56,189,248,0.25);
    border-radius: 12px;
    padding: 22px 18px;
    text-align: center;
  }
  .rg-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 12px;
    display: block;
  }
  .rg-card h6 {
    color: #f1f5f9;
    font-weight: 700;
    margin-bottom: 6px;
  }
  .rg-card p {
    color: #94a3b8;
    font-size: 0.88rem;
    margin: 0;
  }
  /* STATS BAR */
  .stats-bar {
    background: var(--secondary);
    padding: 32px 0;
  }
  .stat-item {
    text-align: center;
    padding: 10px;
  }
  .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
  }
  .stat-label {
    color: #94a3b8;
    font-size: 0.88rem;
    margin-top: 4px;
  }
  /* SECTIONS */
  .section-light { background: var(--bg); padding: 64px 0; }
  .section-white { background: #fff; padding: 64px 0; }
  .section-dark { background: var(--secondary); padding: 64px 0; }
  /* FOOTER */
  footer {
    background: #0f172a;
    color: #94a3b8;
    padding-top: 52px;
  }
  .footer-logo img {
    height: 44px;
    width: auto;
    object-fit: contain;
    max-width: 160px;
    display: block;
  }
  .footer-brand-text {
    color: #cbd5e1;
    font-size: 0.92rem;
    margin-top: 12px;
    line-height: 1.7;
  }
  .footer-heading {
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  footer ul { list-style: none; padding: 0; margin: 0; }
  footer ul li { margin-bottom: 9px; }
  footer ul li a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.2s;
  }
  footer ul li a:hover { color: var(--primary); }
  .footer-divider {
    border-top: 1px solid #1e293b;
    margin: 32px 0 0;
    padding: 20px 0;
  }
  .footer-copyright {
    color: #475569;
    font-size: 0.85rem;
  }
  .footer-email {
    color: #64748b;
    font-size: 0.9rem;
  }
  .footer-email i { color: var(--primary); margin-right: 6px; }
  /* BADGE PILLS */
  .badge-pill {
    display: inline-block;
    background: rgba(56,189,248,0.12);
    color: var(--accent);
    border: 1px solid rgba(56,189,248,0.3);
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    margin: 3px;
  }
  /* HIGHLIGHT BOX */
  .highlight-box {
    background: linear-gradient(135deg, #0ea5e9, #38bdf8);
    border-radius: 16px;
    padding: 36px 32px;
    color: #fff;
    text-align: center;
  }
  .highlight-box h3 { font-weight: 800; margin-bottom: 10px; }
  .highlight-box p { opacity: 0.9; margin-bottom: 22px; }
  @media (max-width: 576px) {
    .hero-section { padding: 52px 0 40px; }
    .rg-section { padding: 32px 18px; }
    .compare-table thead th,
    .compare-table tbody td { padding: 10px 10px; font-size: 0.85rem; }
  }

/* site-compare-table-readability-safeguard: auto dark/light v14.3 */
.compare-table tbody tr:nth-child(odd) td {
  background-color: #f0f9ff !important;
  color: #1f2937 !important;
}
.compare-table tbody tr:nth-child(even) td {
  background-color: #f8fafc !important;
  color: #1f2937 !important;
}
.compare-table tbody td:first-child {
  color: #111827 !important;
  font-weight: 600 !important;
}
.compare-table .check-yes,
.compare-table .check-yes i,
.compare-table .check,
.compare-table .check i,
.compare-table i.fa-check-circle {
  color: #16a34a !important;
}
.compare-table .check-no,
.compare-table .check-no i,
.compare-table .cross,
.compare-table .cross i,
.compare-table i.fa-times-circle {
  color: #dc2626 !important;
}


/* site-mobile-logo-safeguard: v10 mobile logo and collapse-menu protection */

/* 保持 Bootstrap 默认的可换行逻辑：Logo + toggler 在第一行，展开菜单在下一整行。 */
.navbar > .container,
.navbar > .container-fluid {
  flex-wrap: wrap !important;
  min-width: 0;
}

/* 只限制 Logo 的可用空间，不再锁死整个 Navbar 容器。 */
.navbar-brand {
  display: flex !important;
  align-items: center !important;
  min-width: 0 !important;
  width: auto !important;
  flex: 0 1 auto !important;
  max-width: calc(100% - 64px) !important;
  margin-right: 8px !important;
  white-space: nowrap;
}

.navbar-brand img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: min(260px, 100%) !important;
  max-height: 44px !important;
  object-fit: contain !important;
}

.navbar-toggler {
  flex: 0 0 auto !important;
  margin-left: auto !important;
  white-space: nowrap;
}

@media (max-width: 576px) {
  .navbar > .container,
  .navbar > .container-fluid {
    flex-wrap: wrap !important;
    min-width: 0;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .navbar-brand {
    flex: 0 1 auto !important;
    max-width: calc(100vw - 108px) !important;
    margin-right: 8px !important;
    min-width: 0 !important;
  }

  .navbar-brand img {
    width: auto !important;
    height: auto !important;
    max-width: calc(100vw - 108px) !important;
    max-height: 42px !important;
    object-fit: contain !important;
  }

  /* Bootstrap 标准折叠菜单：展开后必须占满下一行，绝不能压在 Logo 旁边。 */
  .navbar > .container > .navbar-collapse,
  .navbar > .container-fluid > .navbar-collapse {
    flex-basis: 100% !important;
    width: 100% !important;
  }
}


/* site-footer-logo-color-safeguard: keep generated footer logos in original colors */
footer .footer-brand img,
footer .footer-logo img,
footer img[src*="logo" i],
footer img[alt*="logo" i],
footer img[class*="brand-logo" i],
footer img[class*="footer-logo" i] {
  filter: none !important;
  -webkit-filter: none !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
  display: inline-block !important;
  width: auto !important;
  height: auto !important;
  max-width: min(180px, 100%) !important;
  max-height: 44px !important;
  object-fit: contain !important;
  vertical-align: middle !important;
}
