/* 
  ================================================================
  GSC11 Wiki & Company Profile Official Stylesheet
  Domain: https://gsc11.wiki
  Theme: Obsidian Black & Luxury Gold Metallic
  ================================================================
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@500;600;700;800;900&display=swap');

:root {
  /* Color Palette - Obsidian & Luxury Champagne Gold (Matched with logo.webp) */
  --bg-dark: #07080c;
  --bg-card: #0f1118;
  --bg-card-hover: #161924;
  --bg-glass: rgba(15, 17, 24, 0.88);
  
  --gold-primary: #d8b244;
  --gold-light: #f7e47c;
  --gold-dark: #9e7b1d;
  --gold-gradient: linear-gradient(135deg, #f7e47c 0%, #d8b244 50%, #a38025 100%);
  --gold-gradient-glow: linear-gradient(135deg, rgba(247, 228, 124, 0.25) 0%, rgba(216, 178, 68, 0.12) 100%);
  --gold-border: rgba(216, 178, 68, 0.35);
  --gold-border-glow: rgba(247, 228, 124, 0.7);
  --gold-glow: 0 0 25px rgba(216, 178, 68, 0.35);

  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-gold: #e5c158;
  --text-dark: #0d0c07;

  --accent-green: #10b981;
  --accent-red: #ef4444;
  --accent-blue: #3b82f6;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Basic Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Background Ambient Lighting */
body::before {
  content: '';
  position: fixed;
  top: -10vw;
  left: 50%;
  transform: translateX(-50%);
  width: 90vw;
  height: 400px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, rgba(7, 8, 12, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

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

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

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

ul, ol {
  list-style: none;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

h1 { font-size: 2.25rem; font-weight: 800; }
h2 { font-size: 1.75rem; font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }

@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
  h3 { font-size: 1.6rem; }
}

.text-gold-gradient {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Header & Sticky Navbar */
#header-container {
  position: sticky !important;
  top: 0 !important;
  z-index: 10000 !important;
  width: 100%;
}

.site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 10000 !important;
  width: 100%;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gold-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

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

.brand-logo img {
  height: 42px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.3));
}

.brand-title-badge {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: #fff;
  letter-spacing: 0.5px;
}

.brand-sub {
  font-size: 0.7rem;
  color: var(--text-gold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
}

/* Navigation Links */
.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-gold);
  background: rgba(245, 158, 11, 0.08);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: var(--gold-gradient);
  border-radius: 2px;
}

/* Header Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Base Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn-gold {
  background: var(--gold-gradient);
  color: #0d0c07;
  font-weight: 800;
  box-shadow: 0 4px 18px rgba(216, 178, 68, 0.35);
  border: 1px solid rgba(247, 228, 124, 0.5);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(247, 228, 124, 0.55);
  color: #000;
  filter: brightness(1.08);
}

.btn-outline-gold {
  background: rgba(216, 178, 68, 0.06);
  color: var(--text-gold);
  border-color: var(--gold-border);
}

.btn-outline-gold:hover {
  background: rgba(216, 178, 68, 0.18);
  border-color: var(--gold-light);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(216, 178, 68, 0.25);
}

.btn-dark {
  background: var(--bg-card-hover);
  color: var(--text-main);
  border-color: var(--border-subtle);
}

.btn-dark:hover {
  background: #1e2333;
  color: #fff;
  border-color: var(--gold-border);
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.825rem;
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1.05rem;
}

/* Mobile Toggle */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--gold-border);
  color: var(--text-gold);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

/* Search Trigger Button */
.search-trigger-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  transition: var(--transition);
}

.search-trigger-btn:hover {
  border-color: var(--gold-border);
  color: var(--text-gold);
  background: rgba(245, 158, 11, 0.08);
}

/* Search Modal Overlay */
.search-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 5vh 1rem;
}

.search-modal.active {
  display: flex;
}

.search-modal-content {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 650px;
  padding: 1.5rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.8);
  position: relative;
}

.search-input-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-dark);
  border: 1px solid var(--gold-border);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
}

.search-input-group input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 1rem;
  width: 100%;
  font-family: var(--font-body);
}

.search-results-list {
  margin-top: 1rem;
  max-height: 350px;
  overflow-y: auto;
}

.search-result-item {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  display: block;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.search-result-item:hover {
  background: rgba(245, 158, 11, 0.1);
}

.search-result-title {
  color: var(--text-gold);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
}

.search-result-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

/* Mobile Drawer Navigation */
.mobile-nav-drawer {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-dark);
  z-index: 999;
  padding: 1.5rem;
  display: none;
  flex-direction: column;
  gap: 1rem;
  border-top: 1px solid var(--gold-border);
  overflow-y: auto;
}

.mobile-nav-drawer.active {
  display: flex;
}

.mobile-nav-link {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  background: rgba(245, 158, 11, 0.1);
  border-color: var(--gold-border);
  color: var(--text-gold);
}

/* Hero Section */
.hero-section {
  padding: 3.5rem 0 2.5rem;
  position: relative;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid var(--gold-border);
  color: var(--text-gold);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  box-shadow: var(--gold-glow);
}

.hero-title {
  max-width: 900px;
  margin: 0 auto 1.25rem;
}

.hero-desc {
  max-width: 760px;
  margin: 0 auto 2rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

/* Quick Info Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-3px);
  box-shadow: var(--gold-glow);
}

.stat-val {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-gold);
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

/* Main Wiki Layout Grid */
.wiki-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2rem 0 4rem;
}

@media (min-width: 992px) {
  .wiki-layout {
    grid-template-columns: 280px 1fr;
  }
  .wiki-sidebar {
    position: sticky;
    top: 90px;
    align-self: start;
  }
}

/* Sidebar Wiki Toc & Links */
.wiki-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: static;
}

.sidebar-box {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.sidebar-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-menu-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-menu-item a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.sidebar-menu-item a:hover, .sidebar-menu-item.active a {
  color: var(--text-gold);
  background: rgba(245, 158, 11, 0.1);
}

/* Wiki Main Content Area */
.wiki-content {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
}

@media (min-width: 768px) {
  .wiki-content {
    padding: 2.5rem;
  }
}

/* Breadcrumb Nav */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--text-gold);
}

.breadcrumb-sep {
  color: rgba(255,255,255,0.3);
}

/* Article Styling */
.article-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.meta-badge {
  background: rgba(245, 158, 11, 0.15);
  color: var(--text-gold);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

/* Callout Box Component */
.callout {
  background: rgba(15, 17, 24, 0.9);
  border-left: 4px solid var(--gold-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.25rem;
  margin: 1.5rem 0;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  border-top: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.callout-icon {
  font-size: 1.5rem;
  color: var(--gold-primary);
  flex-shrink: 0;
}

.callout-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.25rem;
}

.callout-content {
  font-size: 0.925rem;
  color: var(--text-muted);
}

/* Keyword Highlights Box */
.keyword-tag-box {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--gold-border);
  border-radius: var(--radius-md);
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.keyword-tag {
  background: rgba(245, 158, 11, 0.1);
  color: var(--text-gold);
  border: 1px solid rgba(245, 158, 11, 0.2);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
  display: inline-block;
}

/* Section Cards / Grid */
.feature-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.feature-card {
  background: var(--bg-card-hover);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-4px);
  box-shadow: var(--gold-glow);
}

.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-gold);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Table Styling */
.table-responsive {
  width: 100%;
  margin: 1.5rem 0;
  border-radius: var(--radius-md);
}

@media (min-width: 768px) {
  .table-responsive {
    overflow-x: auto;
    border: 1px solid var(--border-subtle);
  }

  .custom-table {
    width: 100%;
    min-width: 540px;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.925rem;
  }
}

.custom-table th {
  background: #161924;
  color: var(--text-gold);
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 1rem;
  border-bottom: 1px solid var(--gold-border);
  white-space: nowrap;
}

.custom-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.custom-table tr:hover td {
  background: rgba(245, 158, 11, 0.05);
}

/* Mobile Responsive Card Transformation for Tables */
@media (max-width: 767px) {
  .table-responsive {
    overflow-x: visible;
    border: none;
  }

  .custom-table, 
  .custom-table tbody, 
  .custom-table tr, 
  .custom-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .custom-table thead {
    display: none;
  }

  .custom-table tr {
    background: var(--bg-card-hover);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-md);
    padding: 1rem 0.85rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  }

  .custom-table td {
    padding: 0.4rem 0;
    border: none;
    font-size: 0.875rem;
    color: var(--text-muted);
  }

  .custom-table td:first-child {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-gold);
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .custom-table td:last-child {
    margin-top: 0.65rem;
    padding-top: 0.5rem;
    border-top: 1px dashed var(--border-subtle);
  }

  .custom-table td .btn,
  .custom-table td a.btn {
    display: flex;
    width: 100%;
    justify-content: center;
    text-align: center;
    margin-top: 0.25rem;
  }
}

/* Live RTP Dashboard Grid */
.rtp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.rtp-card {
  background: var(--bg-card-hover);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.rtp-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-4px);
  box-shadow: var(--gold-glow);
}

.rtp-badge-hot {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--gold-gradient);
  color: #000;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.rtp-game-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  margin-top: 0.5rem;
}

.rtp-provider {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.rtp-progress-container {
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  height: 14px;
  overflow: hidden;
  margin: 0.75rem 0;
  position: relative;
}

.rtp-progress-bar {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--gold-gradient);
  transition: width 0.5s ease;
}

.rtp-percent-val {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-gold);
}

.rtp-jam-gacor {
  font-size: 0.75rem;
  color: var(--accent-green);
  font-weight: 600;
  margin-top: 0.35rem;
}

/* Steps Process Guide */
.step-guide-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.step-guide-item {
  display: flex;
  gap: 1.25rem;
  background: var(--bg-card-hover);
  border: 1px solid var(--border-subtle);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  align-items: flex-start;
}

.step-number {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--gold-gradient);
  color: #000;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-info-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
}

.step-info-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* FAQ Accordion */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}

.faq-item {
  background: var(--bg-card-hover);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  padding: 1.25rem;
  width: 100%;
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question:hover {
  color: var(--text-gold);
}

.faq-answer {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.925rem;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--text-gold);
}

/* Floating Mobile CTA Bar (Mobile View) */
.mobile-floating-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 11, 15, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--gold-border);
  padding: 0.65rem 1rem;
  display: none;
  z-index: 1000;
  box-shadow: 0 -5px 25px rgba(0,0,0,0.8);
}

.mobile-cta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

/* Footer Section */
.site-footer {
  background: #050608;
  border-top: 1px solid var(--gold-border);
  padding: 3.5rem 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 1rem;
}

.footer-column-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.25rem;
  position: relative;
  display: inline-block;
}

.footer-column-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--gold-gradient);
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links-list a {
  color: var(--text-muted);
  font-size: 0.875rem;
}

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

.footer-disclaimer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-copyright {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.775rem;
}

/* Natural Typography Wrapping for Mobile Best Fit */
p, h1, h2, h3, h4, h5, h6, li, td, th, div, span, blockquote, .callout-content, .callout-title, .search-result-title {
  overflow-wrap: anywhere;
  word-break: normal;
}

code, pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-all;
}

/* Responsive Media Queries (Mobile First Polish & Best Fit Layout) */
@media (max-width: 991px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .header-actions .btn,
  .header-actions .btn-login-desk,
  .header-actions .btn-gold,
  .header-actions .btn-outline-gold {
    display: none !important;
  }
  .search-trigger-btn .btn-desk-text {
    display: none !important;
  }
  .search-trigger-btn {
    padding: 0.5rem 0.65rem;
    border-radius: var(--radius-md);
  }
  .brand-logo img {
    max-width: 125px;
    height: auto;
  }
  .wiki-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  .wiki-content {
    order: 1; /* Artikel utama tampil pertama di Mobile */
  }
  .wiki-sidebar {
    order: 2; /* Sidebar TOC & App berada di bawah artikel di Mobile */
    position: static !important;
  }
}

@media (max-width: 767px) {
  .mobile-floating-cta {
    display: block;
  }
  body {
    padding-bottom: 72px;
  }
  .container {
    padding: 0 0.85rem;
  }

  h1 {
    font-size: 1.75rem;
    line-height: 1.3;
  }

  h2 {
    font-size: 1.35rem;
    line-height: 1.35;
  }

  h3 {
    font-size: 1.15rem;
    line-height: 1.35;
  }

  .hero-section {
    padding: 1.75rem 0 1.25rem;
  }

  .hero-badge {
    max-width: 100%;
    white-space: normal;
    text-align: center;
    font-size: 0.775rem;
    padding: 0.35rem 0.75rem;
  }

  .hero-desc {
    font-size: 0.925rem;
    line-height: 1.6;
    padding: 0;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 0.65rem;
  }

  .hero-cta-group .btn {
    width: 100%;
    white-space: normal;
    padding: 0.8rem 1rem;
    font-size: 0.925rem;
    border-radius: 12px;
  }

  .btn {
    white-space: normal;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }

  .stat-card {
    padding: 0.75rem 0.5rem;
    border-radius: 10px;
  }

  .stat-val {
    font-size: 1.35rem;
  }

  .stat-label {
    font-size: 0.725rem;
  }

  .feature-cards-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .feature-card {
    padding: 1.15rem 1rem;
    border-radius: 12px;
  }

  .rtp-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }

  .rtp-card {
    padding: 0.75rem 0.5rem;
    border-radius: 12px;
  }

  .rtp-game-title {
    font-size: 0.85rem;
  }

  .rtp-percent-val {
    font-size: 1.05rem;
  }

  .wiki-content {
    padding: 1.15rem 0.85rem !important;
    border-radius: 14px;
  }

  .callout {
    padding: 0.95rem 0.85rem;
    border-radius: 0 10px 10px 0;
    gap: 0.75rem;
    margin: 1.25rem 0;
  }

  .step-guide-item {
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.85rem;
    border-radius: 10px;
  }

  .custom-table th, .custom-table td {
    padding: 0.6rem 0.65rem;
    font-size: 0.8rem;
  }

  .custom-table .btn {
    padding: 0.35rem 0.6rem;
    font-size: 0.75rem;
  }

  .brand-sub {
    display: none;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.55rem;
  }

  .header-wrapper {
    height: 60px;
  }

  .mobile-nav-drawer {
    top: 60px;
  }

  .brand-logo img {
    height: 32px;
  }

  .mobile-floating-cta {
    padding: 0.4rem 0.5rem;
  }

  .mobile-cta-grid .btn {
    padding: 0.5rem 0.2rem;
    font-size: 0.75rem;
    border-radius: 8px;
  }
}
