:root {
  /* TG777 Official Brand Identity Color Palette */
  --tg-red-primary: #D32F2F;
  --tg-red-dark: #8B0000;
  --tg-red-gradient: linear-gradient(135deg, #B71C1C 0%, #D32F2F 50%, #FF5252 100%);
  --tg-gold-primary: #FFD700;
  --tg-gold-bright: #FFEB3B;
  --tg-gold-gradient: linear-gradient(135deg, #FFD700 0%, #FFA000 50%, #FF8F00 100%);
  --tg-gold-glow: 0 0 15px rgba(255, 215, 0, 0.45);
  --tg-gold-glow-strong: 0 0 25px rgba(255, 215, 0, 0.7);

  /* Deep Luxury Casino Dark Palette */
  --tg-bg-main: #0B0A0E;
  --tg-bg-elevated: #15131C;
  --tg-bg-card: rgba(26, 23, 36, 0.85);
  --tg-bg-glass: rgba(30, 26, 43, 0.65);
  --tg-bg-overlay: rgba(11, 10, 14, 0.78);
  --tg-border-subtle: rgba(255, 215, 0, 0.18);
  --tg-border-active: rgba(255, 215, 0, 0.65);

  /* Text & Utility Tokens */
  --tg-text-main: #FFFFFF;
  --tg-text-muted: #B8B5C3;
  --tg-text-gold: #FFD700;
  --tg-success: #00E676;
  --tg-warning: #FF9100;
  --tg-radius-sm: 6px;
  --tg-radius-md: 12px;
  --tg-radius-lg: 18px;
  --tg-radius-pill: 9999px;
  --tg-font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --tg-transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Global */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--tg-font-family);
  background-color: var(--tg-bg-main);
  color: var(--tg-text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--tg-transition);
}

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

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

.text-gold {
  color: var(--tg-gold-primary);
}

.gradient-gold-text {
  background: linear-gradient(135deg, #FFE082 0%, #FFD700 50%, #FFA000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Header & Navigation Bar (Max 6 Category Tabs with Dropdown) */
.tg-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 13, 20, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--tg-border-subtle);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.tg-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.tg-logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tg-logo-img {
  height: 48px;
  width: auto;
  border-radius: var(--tg-radius-sm);
  filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.35));
}

.tg-nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.tg-nav-item {
  position: relative;
}

.tg-nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #E2E0EB;
  border-radius: var(--tg-radius-sm);
  transition: var(--tg-transition);
}

.tg-nav-link:hover, .tg-nav-link.active {
  color: var(--tg-gold-primary);
  background: rgba(255, 215, 0, 0.08);
}

/* Dropdown */
.tg-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--tg-bg-elevated);
  border: 1px solid var(--tg-border-subtle);
  border-radius: var(--tg-radius-md);
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--tg-transition);
  list-style: none;
}

.tg-nav-item:hover .tg-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.tg-dropdown-link {
  display: block;
  padding: 8px 12px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--tg-text-muted);
  border-radius: var(--tg-radius-sm);
}

.tg-dropdown-link:hover {
  color: #FFF;
  background: rgba(211, 47, 47, 0.35);
  padding-left: 16px;
}

.tg-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* CTA Buttons */
.btn-login {
  padding: 8px 16px;
  border: 1px solid var(--tg-gold-primary);
  color: var(--tg-gold-primary);
  border-radius: var(--tg-radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--tg-transition);
}

.btn-login:hover {
  background: rgba(255, 215, 0, 0.15);
  box-shadow: var(--tg-gold-glow);
}

.btn-register {
  padding: 9px 18px;
  background: var(--tg-red-gradient);
  color: #FFF;
  border-radius: var(--tg-radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 3px 12px rgba(211, 47, 47, 0.5);
  transition: var(--tg-transition);
}

.btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(211, 47, 47, 0.8);
}

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #FFF;
  font-size: 1.6rem;
  cursor: pointer;
}

/* First Container / Casino Atmosphere Hero */
.tg-casino-hero {
  position: relative;
  min-height: 480px;
  padding: 60px 0;
  display: flex;
  align-items: center;
  background-image: linear-gradient(180deg, rgba(11, 10, 14, 0.72) 0%, rgba(11, 10, 14, 0.95) 100%), url('/images/casino-hero-bg.webp');
  background-size: cover;
  background-position: center;
  border-bottom: 2px solid var(--tg-border-subtle);
  overflow: hidden;
}

.tg-casino-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--tg-gold-primary), transparent);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(211, 47, 47, 0.25);
  border: 1px solid rgba(255, 82, 82, 0.4);
  border-radius: var(--tg-radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  color: #FF8A80;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 18px;
  color: #FFFFFF;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--tg-text-muted);
  margin-bottom: 28px;
  max-width: 580px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-hero-primary {
  padding: 13px 28px;
  background: var(--tg-gold-gradient);
  color: #000;
  font-weight: 800;
  font-size: 1rem;
  border-radius: var(--tg-radius-pill);
  box-shadow: var(--tg-gold-glow);
  transition: var(--tg-transition);
}

.btn-hero-primary:hover {
  transform: scale(1.04);
  box-shadow: var(--tg-gold-glow-strong);
}

.btn-hero-secondary {
  padding: 13px 28px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFF;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--tg-radius-pill);
  transition: var(--tg-transition);
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--tg-gold-primary);
  color: var(--tg-gold-primary);
}

.hero-visual-card {
  position: relative;
  background: var(--tg-bg-glass);
  border: 1px solid var(--tg-border-active);
  border-radius: var(--tg-radius-lg);
  padding: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
}

.hero-visual-card img {
  border-radius: var(--tg-radius-md);
  object-fit: cover;
  width: 100%;
  height: 280px;
}

/* Flashy Casino Container Sections */
.tg-section {
  padding: 60px 0;
  position: relative;
}

.tg-section-dark-elevated {
  background-color: var(--tg-bg-elevated);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.tg-section-gold-tint {
  background: linear-gradient(180deg, rgba(255, 215, 0, 0.03) 0%, rgba(11, 10, 14, 0.98) 100%);
}

.section-head {
  text-align: center;
  margin-bottom: 40px;
}

.section-subtitle {
  color: var(--tg-gold-primary);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: #FFF;
}

/* 3x2 Grid Box / Postcards (Responsive, Mobile-First) */
.tg-grid-3x2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.tg-card {
  background: var(--tg-bg-card);
  border: 1px solid var(--tg-border-subtle);
  border-radius: var(--tg-radius-md);
  overflow: hidden;
  transition: var(--tg-transition);
  display: flex;
  flex-direction: column;
}

.tg-card:hover {
  transform: translateY(-5px);
  border-color: var(--tg-gold-primary);
  box-shadow: 0 10px 25px rgba(255, 215, 0, 0.15);
}

.tg-card-img-wrap {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: #111;
}

.tg-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.tg-card:hover .tg-card-img-wrap img {
  transform: scale(1.06);
}

.tg-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  background: rgba(211, 47, 47, 0.85);
  color: #FFF;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--tg-radius-sm);
  text-transform: uppercase;
}

.tg-card-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tg-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFF;
  margin-bottom: 8px;
  line-height: 1.35;
}

.tg-card-desc {
  font-size: 0.9rem;
  color: var(--tg-text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.tg-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #8C889E;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Pagination / Tabs Component */
.tg-pagination-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 36px;
}

.tg-page-btn {
  padding: 8px 14px;
  background: var(--tg-bg-elevated);
  border: 1px solid var(--tg-border-subtle);
  color: var(--tg-text-muted);
  border-radius: var(--tg-radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--tg-transition);
}

.tg-page-btn:hover, .tg-page-btn.active {
  background: var(--tg-gold-primary);
  border-color: var(--tg-gold-primary);
  color: #000;
}

/* Content & Author E-E-A-T Block */
.tg-author-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--tg-bg-elevated);
  border: 1px solid var(--tg-border-subtle);
  border-radius: var(--tg-radius-md);
  padding: 20px;
  margin: 30px 0;
}

.tg-author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--tg-red-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: #FFF;
  border: 2px solid var(--tg-gold-primary);
  flex-shrink: 0;
}

.tg-author-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFF;
  margin-bottom: 4px;
}

.tg-author-info p {
  font-size: 0.85rem;
  color: var(--tg-text-muted);
}

/* FAQ Accordion Component */
.tg-faq-wrap {
  max-width: 860px;
  margin: 0 auto;
}

.tg-faq-item {
  background: var(--tg-bg-elevated);
  border: 1px solid var(--tg-border-subtle);
  border-radius: var(--tg-radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}

.tg-faq-q {
  padding: 18px 22px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFF;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--tg-transition);
}

.tg-faq-q:hover {
  color: var(--tg-gold-primary);
}

.tg-faq-a {
  padding: 0 22px 18px;
  font-size: 0.95rem;
  color: var(--tg-text-muted);
  line-height: 1.6;
}

/* Footer Section */
.tg-footer {
  background: #070609;
  border-top: 1px solid var(--tg-border-subtle);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--tg-text-muted);
  margin-top: 14px;
  line-height: 1.6;
}

.footer-col h5 {
  color: var(--tg-gold-primary);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #A29EAF;
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: var(--tg-gold-primary);
  padding-left: 4px;
}

.footer-compliance-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--tg-radius-md);
  padding: 16px;
  font-size: 0.82rem;
  color: #8C889E;
  line-height: 1.5;
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  color: #6C687D;
}

/* Responsive Media Queries (Mobile-First Optimization) */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-ctas {
    justify-content: center;
  }
  .tg-grid-3x2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: block;
  }
  .tg-nav-menu {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--tg-bg-elevated);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--tg-border-subtle);
    display: none;
  }
  .tg-nav-menu.open {
    display: flex;
  }
  .tg-grid-3x2 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2.1rem;
  }
}

/* ==========================================================================
   Editorial Typography, Scannable Spacing & Reading Architecture
   ========================================================================== */
.article-lead {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #ECEBF2;
  margin-bottom: 28px;
  padding: 16px 20px;
  background: rgba(255, 215, 0, 0.04);
  border-left: 3px solid var(--tg-gold-primary);
  border-radius: 0 var(--tg-radius-sm) var(--tg-radius-sm) 0;
}

.article-lead a, .article-body a {
  color: var(--tg-gold-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: var(--tg-transition);
}

.article-lead a:hover, .article-body a:hover {
  color: #FFF;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

.article-body h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-top: 48px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 215, 0, 0.15);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.article-body p {
  font-size: 1.02rem;
  line-height: 1.78;
  color: #BDB9CC;
  margin-bottom: 22px;
}

.article-body p strong {
  color: #FFFFFF;
  font-weight: 600;
}

/* Scannable Key Facts Summary Box */
.summary-box {
  background: linear-gradient(135deg, rgba(26, 23, 36, 0.95) 0%, rgba(21, 19, 28, 0.95) 100%);
  border: 1px solid var(--tg-border-active);
  border-radius: var(--tg-radius-md);
  padding: 24px;
  margin: 32px 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.summary-box-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--tg-gold-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.summary-box-title::before {
  content: '⚡';
  font-size: 1.1rem;
}

.summary-box-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.summary-box-item {
  background: rgba(0, 0, 0, 0.35);
  padding: 14px;
  border-radius: var(--tg-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-box-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tg-text-muted);
  margin-bottom: 4px;
}

.summary-box-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
}

/* Callout Box */
.content-callout {
  margin: 28px 0;
  padding: 18px 22px;
  background: rgba(211, 47, 47, 0.1);
  border-left: 4px solid var(--tg-red-primary);
  border-radius: 0 var(--tg-radius-md) var(--tg-radius-md) 0;
}

.content-callout p {
  margin-bottom: 0 !important;
  font-size: 0.96rem;
  line-height: 1.65;
  color: #E2E0EB;
}

/* Contextual Media Container */
.media-container {
  margin: 36px 0;
  border-radius: var(--tg-radius-md);
  overflow: hidden;
  border: 1px solid var(--tg-border-subtle);
  background: var(--tg-bg-elevated);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.media-container img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.media-caption {
  padding: 12px 18px;
  font-size: 0.88rem;
  color: var(--tg-text-muted);
  text-align: center;
  background: rgba(0, 0, 0, 0.5);
}

/* Responsive Data Table */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 32px 0;
  border-radius: var(--tg-radius-md);
  border: 1px solid var(--tg-border-subtle);
  background: var(--tg-bg-card);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.94rem;
}

.spec-table th {
  background: rgba(211, 47, 47, 0.25);
  color: var(--tg-gold-primary);
  padding: 14px 18px;
  font-weight: 700;
  border-bottom: 1px solid var(--tg-border-subtle);
  white-space: nowrap;
}

.spec-table td {
  padding: 14px 18px;
  color: #ECEBF2;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  line-height: 1.5;
}

.spec-table tr:last-child td {
  border-bottom: none;
}

.spec-table tr:hover td {
  background: rgba(255, 215, 0, 0.03);
}

/* 4-Step Technical Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 30px 0;
}

.step-card {
  background: var(--tg-bg-elevated);
  border: 1px solid var(--tg-border-subtle);
  padding: 22px;
  border-radius: var(--tg-radius-md);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: var(--tg-transition);
}

.step-card:hover {
  border-color: var(--tg-gold-primary);
  transform: translateY(-3px);
}

.step-card h4 {
  color: var(--tg-gold-primary);
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.92rem;
  color: var(--tg-text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Bulleted List */
.article-list {
  margin: 0 0 28px 24px;
  color: #BDB9CC;
  line-height: 1.8;
  font-size: 1rem;
}

.article-list li {
  margin-bottom: 12px;
}

.article-list strong {
  color: #FFFFFF;
}

/* In-Content Promotional Gateway Card */
.promo-box {
  margin: 44px 0 20px;
  padding: 32px 24px;
  background: linear-gradient(135deg, rgba(211, 47, 47, 0.14) 0%, rgba(255, 215, 0, 0.1) 100%);
  border: 1px solid var(--tg-gold-primary);
  border-radius: var(--tg-radius-lg);
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.promo-box h3 {
  color: #FFFFFF;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.promo-box p {
  margin-bottom: 22px !important;
  font-size: 1rem;
  color: var(--tg-text-muted);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* Mobile Scannability Media Overrides */
@media (max-width: 768px) {
  .summary-box-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .media-container img {
    height: 220px;
  }
  .article-body h2 {
    font-size: 1.35rem;
    margin-top: 36px;
  }
  .article-lead {
    font-size: 1.02rem;
  }
  .article-body p {
    font-size: 0.96rem;
  }
}

