/* ==========================================================================
   Max Rummy Win - Master Stylesheet v22.0
   Footer: Quick Links & Legal Pages 100% Side-by-Side (baju baju ma) on Mobile
   Telegram Channel & 24/7 Live Support as High-Impact Side-by-Side Buttons
   100% Strict Nunito Font & Zero Mobile Text Overflow
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,400;0,600;0,700;0,800&display=swap');

:root {
  /* Dark Purple & Gold Palette */
  --bg-page-outer: #0b0316;
  --purple-box: #1a0833;
  --purple-card: #240b46;
  --purple-card-hover: #2e0e58;
  --purple-border: rgba(167, 139, 250, 0.25);
  
  --purple-lighter: #ddd6fe;
  --text-white: #ffffff;
  --text-sub: #e9d5ff;
  --text-muted: #c4b5fd;
  
  /* Accents */
  --gold-main: #f5b014;
  --gold-light: #fce28a;
  --gold-gradient: linear-gradient(135deg, #fce28a 0%, #f5b014 50%, #d4900a 100%);
  
  --emerald-main: #10b981;
  --emerald-dark: #059669;
  --emerald-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
  
  --cyan-glow: #00f2fe;
  --telegram-blue: #0088cc;
  --telegram-hover: #0077b5;
  
  --border-radius-card: 5px;
  --border-radius-btn: 5px;
  --boxed-width: 1080px;
  --transition: all 0.2s ease-in-out;
}

/* Strict Universal Reset - 100% Nunito Font Everywhere */
*, *::before, *::after {
  box-sizing: border-box !important;
  margin: 0;
  padding: 0;
  box-shadow: none !important;
  font-family: 'Nunito', sans-serif !important;
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-page-outer) !important;
  background-image: none !important;
  overflow-x: hidden !important;
  width: 100%;
}

body {
  font-family: 'Nunito', sans-serif !important;
  background-color: var(--bg-page-outer) !important;
  background-image: none !important;
  color: var(--text-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  padding: 0;
  overflow-x: hidden !important;
  width: 100%;
}

/* Strict Boxed Layout Container */
.page-boxed-wrapper {
  max-width: var(--boxed-width) !important;
  margin: 0 auto;
  background-color: var(--purple-box) !important;
  background-image: none !important;
  border-left: 1px solid var(--purple-border);
  border-right: 1px solid var(--purple-border);
  border-radius: 0 !important;
  overflow: hidden !important;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Strict Zero Text Overflow Rules */
h1, h2, h3, h4, h5, h6, p, span, div, a, td, th, li, button, input {
  overflow-wrap: break-word !important;
  word-break: break-word !important;
  font-family: 'Nunito', sans-serif !important;
}

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

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

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

.container {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 20px;
  box-sizing: border-box !important;
}

/* ==========================================================================
   Header Navigation
   ========================================================================== */
.site-header {
  background: #140628;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--purple-border);
  width: 100%;
}

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

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.logo-text-fn7 {
  font-size: clamp(1.15rem, 4vw, 1.55rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.logo-text-fn7 span {
  color: var(--gold-main);
}

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

.nav-link {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--purple-lighter);
  position: relative;
  padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-main);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gold-main);
  border-radius: 2px;
}

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

.btn-telegram {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--telegram-blue);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 8px 16px;
  border-radius: var(--border-radius-btn);
  border: none;
  white-space: nowrap;
}

.btn-telegram:hover {
  background-color: var(--telegram-hover);
}

.btn-telegram svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.btn-download-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--emerald-gradient);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 8px 18px;
  border-radius: var(--border-radius-btn);
  border: none;
  white-space: nowrap;
  cursor: pointer;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: #ffffff;
  cursor: pointer;
  padding: 4px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: clamp(26px, 4vw, 40px) 0;
  border-bottom: 1px solid var(--purple-border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(20px, 4vw, 36px);
  align-items: center;
}

.trust-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 176, 20, 0.14);
  color: var(--gold-main);
  font-weight: 800;
  font-size: clamp(0.85rem, 2.5vw, 0.92rem);
  padding: 7px 14px;
  border-radius: 5px;
  margin-bottom: 14px;
  border: 1px solid rgba(245, 176, 20, 0.35);
  max-width: 100%;
}

.hero-h1 {
  font-size: clamp(1.65rem, 5vw, 2.35rem);
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 14px;
}

.hero-h1 span.highlight-gold {
  color: var(--gold-main);
}

.hero-h1 span.highlight-emerald {
  color: var(--emerald-main);
}

.hero-desc {
  font-size: clamp(0.95rem, 2.5vw, 1.08rem);
  color: var(--text-sub);
  margin-bottom: 20px;
  font-weight: 600;
  line-height: 1.7;
}

/* Quick Stats Bar (Desktop & Default) */
.quick-stats-box {
  background: var(--purple-card);
  border: 1px solid var(--purple-border);
  border-radius: var(--border-radius-card);
  padding: 14px;
  margin-bottom: 20px;
}

.quick-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  text-align: center;
}

.stat-card-item {
  background: rgba(15, 5, 29, 0.6);
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: 5px;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stat-card-highlight {
  border-color: rgba(245, 176, 20, 0.5);
  background: rgba(245, 176, 20, 0.12);
}

.stat-icon {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.stat-val {
  font-size: clamp(0.92rem, 3vw, 1.1rem);
  font-weight: 800;
  color: var(--gold-main);
  line-height: 1.2;
}

.stat-lbl {
  font-size: 0.78rem;
  color: var(--purple-lighter);
  font-weight: 800;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.btn-download-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--emerald-gradient);
  color: #ffffff;
  font-size: clamp(1.02rem, 3.5vw, 1.2rem);
  font-weight: 800;
  padding: 14px 24px;
  border-radius: var(--border-radius-btn);
  border: none;
  width: 100%;
  max-width: 420px;
  text-align: center;
  cursor: pointer;
}

.trust-features-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--purple-lighter);
  font-weight: 700;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Hero Showcase Card */
.hero-mockup-card {
  background: var(--purple-card);
  border-radius: var(--border-radius-card);
  padding: clamp(18px, 4vw, 24px);
  border: 1px solid var(--purple-border);
  text-align: center;
}

.hero-img-banner-box {
  margin-bottom: 12px;
}

.mockup-img {
  width: clamp(85px, 20vw, 110px);
  height: clamp(85px, 20vw, 110px);
  border-radius: 10px;
  margin: 0 auto;
  border: 2px solid var(--gold-main);
  object-fit: cover;
}

.mockup-title {
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  font-weight: 800;
  margin-bottom: 4px;
  color: #ffffff;
}

.mockup-rating {
  color: var(--gold-main);
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 12px;
}

/* ==========================================================================
   GAME LOBBY SECTION (Popular Game Lobby)
   ========================================================================== */
.game-lobby-section {
  padding: clamp(26px, 4vw, 44px) 0;
}

.lobby-header-title {
  font-size: clamp(1.5rem, 5vw, 2.1rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
}

.lobby-header-title span {
  color: var(--gold-main);
}

.filter-tabs-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--purple-card);
  color: var(--purple-lighter);
  font-weight: 800;
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: 5px;
  border: 1px solid var(--purple-border);
  cursor: pointer;
  white-space: nowrap;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--gold-gradient);
  color: #000000;
  border-color: var(--gold-main);
}

.search-bar-wrapper {
  margin-bottom: 20px;
  position: relative;
}

.search-input {
  width: 100%;
  background: var(--purple-card);
  border: 1px solid var(--purple-border);
  border-radius: 5px;
  padding: 11px 16px 11px 40px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  outline: none;
}

.search-input:focus {
  border-color: var(--cyan-glow);
}

.search-icon-inside {
  position: absolute;
  top: 12px;
  left: 14px;
  color: var(--purple-lighter);
}

/* Game Lobby Grid */
.lobby-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: clamp(10px, 2.5vw, 16px);
}

.lobby-game-card {
  background: var(--purple-card);
  border-radius: 5px;
  border: 1px solid var(--purple-border);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.lobby-game-card:hover {
  border-color: var(--cyan-glow);
}

.lobby-tag-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: var(--gold-gradient);
  color: #000000;
  font-weight: 800;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
}

.lobby-app-icon-box {
  width: clamp(56px, 15vw, 70px);
  height: clamp(56px, 15vw, 70px);
  border-radius: 10px;
  margin: 10px 0 8px;
  background: rgba(12, 4, 24, 0.9);
  border: 2px solid var(--cyan-glow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lobby-icon-emoji {
  font-size: clamp(1.8rem, 5vw, 2.3rem);
}

.lobby-game-title {
  font-size: clamp(0.92rem, 2.5vw, 1.05rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 3px;
  line-height: 1.2;
}

.lobby-bonus-text {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--gold-main);
  margin-bottom: 10px;
}

.btn-lobby-download {
  width: 100%;
  background: var(--emerald-gradient);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 7px 10px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  margin-top: auto;
  white-space: nowrap;
}

/* ==========================================================================
   App Information Table
   ========================================================================== */
.app-info-section {
  padding: clamp(26px, 4vw, 44px) 0;
}

.info-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 5px;
  border: 1px solid var(--purple-border);
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--purple-card);
  min-width: 280px;
}

.info-table tr {
  border-bottom: 1px solid var(--purple-border);
}

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

.info-table td {
  padding: 12px 14px;
  font-size: clamp(0.88rem, 2.5vw, 0.98rem);
}

.info-table td.lbl {
  color: var(--purple-lighter);
  font-weight: 800;
  width: 45%;
  background: rgba(20, 6, 40, 0.6);
}

.info-table td.val {
  color: #ffffff;
  font-weight: 800;
}

/* ==========================================================================
   What is Max Rummy Section
   ========================================================================== */
.about-app-section {
  padding: clamp(26px, 4vw, 44px) 0;
  background: rgba(36, 11, 70, 0.4);
  border-top: 1px solid var(--purple-border);
  border-bottom: 1px solid var(--purple-border);
}

/* ==========================================================================
   Why Popular Section (Zero Overflow, Side-by-Side Flex Alignment)
   ========================================================================== */
.why-popular-section {
  padding: clamp(26px, 4vw, 44px) 0;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.why-card {
  background: var(--purple-card);
  border-radius: 5px;
  padding: 18px 16px;
  border: 1px solid var(--purple-border);
  transition: var(--transition);
  overflow: hidden !important;
}

.why-card:hover {
  border-color: var(--cyan-glow);
  background: var(--purple-card-hover);
}

.why-title-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 10px !important;
  margin-bottom: 10px !important;
  width: 100% !important;
}

.why-emoji {
  font-size: 1.25rem !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(245, 176, 20, 0.15) !important;
  border: 1px solid rgba(245, 176, 20, 0.35) !important;
  border-radius: 5px !important;
  width: 36px !important;
  height: 36px !important;
  flex-shrink: 0 !important;
  margin-top: 2px !important;
}

.why-h3 {
  font-size: clamp(0.95rem, 2.2vw, 1.08rem) !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin: 0 !important;
  line-height: 1.3 !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
  word-break: break-word !important;
  flex-grow: 1 !important;
}

.why-desc {
  color: var(--text-sub) !important;
  font-size: 0.92rem !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}

/* ==========================================================================
   How to Download Section (Zero Overflow Step Cards)
   ========================================================================== */
.download-guide-section {
  padding: clamp(26px, 4vw, 44px) 0;
  background: rgba(36, 11, 70, 0.4);
  border-top: 1px solid var(--purple-border);
  border-bottom: 1px solid var(--purple-border);
}

.guide-steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.guide-step-card {
  background: var(--purple-card);
  border-radius: 5px;
  padding: 18px 16px;
  border: 1px solid var(--purple-border);
  transition: var(--transition);
  overflow: hidden !important;
}

.guide-step-card:hover {
  border-color: var(--gold-main);
  background: var(--purple-card-hover);
}

.guide-step-header {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 10px !important;
  margin-bottom: 10px !important;
  width: 100% !important;
}

.guide-step-num {
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  color: #000000 !important;
  background: var(--gold-gradient) !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 5px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  line-height: 1 !important;
  margin-top: 2px !important;
}

.guide-step-title {
  font-size: clamp(0.95rem, 2.2vw, 1.08rem) !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin: 0 !important;
  line-height: 1.3 !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
  word-break: break-word !important;
  flex-grow: 1 !important;
}

.guide-step-desc {
  font-size: 0.92rem !important;
  color: var(--text-sub) !important;
  margin: 0 !important;
  line-height: 1.6 !important;
}

.important-tips-box {
  background: var(--purple-card);
  border-radius: 5px;
  padding: 18px;
  border: 1px solid var(--gold-main);
  margin-bottom: 22px;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px;
  list-style: none;
}

.tips-grid li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--text-sub);
  font-weight: 700;
}

/* Impact Stats Banner */
.impact-stats-banner {
  background: var(--gold-gradient);
  padding: 24px 0;
  color: #000000;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  text-align: center;
}

.impact-num {
  font-size: clamp(1.5rem, 5vw, 2.1rem);
  font-weight: 800;
  color: #000000;
}

.impact-lbl {
  font-size: clamp(0.75rem, 2vw, 0.88rem);
  font-weight: 800;
  color: rgba(0, 0, 0, 0.85);
}

/* Login & Register Guides */
.auth-guides-section {
  padding: clamp(26px, 4vw, 44px) 0;
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.auth-box {
  background: var(--purple-card);
  border-radius: 5px;
  padding: 20px;
  border: 1px solid var(--purple-border);
}

.auth-box h2 {
  font-size: clamp(1.2rem, 4vw, 1.55rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.auth-steps-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.auth-step-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-sub);
  font-weight: 600;
}

.auth-step-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: #000000;
  font-weight: 800;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* User Reviews Section */
.reviews-section {
  padding: clamp(26px, 4vw, 44px) 0;
  background: rgba(36, 11, 70, 0.4);
  border-top: 1px solid var(--purple-border);
  border-bottom: 1px solid var(--purple-border);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.review-card {
  background: var(--purple-card);
  border-radius: 5px;
  padding: 18px;
  border: 1px solid var(--purple-border);
}

.review-stars {
  color: var(--gold-main);
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.review-text {
  font-size: 0.92rem;
  color: var(--text-sub);
  margin-bottom: 10px;
  font-style: italic;
}

.review-author {
  font-weight: 800;
  color: #ffffff;
  font-size: 0.88rem;
}

/* FAQ Section */
.faq-section {
  padding: clamp(26px, 4vw, 44px) 0;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--purple-border);
  border-radius: 5px;
  background: var(--purple-card);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 15px 18px;
  background: none;
  border: none;
  text-align: left;
  font-size: clamp(0.95rem, 3vw, 1.08rem);
  font-weight: 800;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-icon {
  font-size: 1rem;
  transition: transform 0.3s ease;
  color: var(--gold-main);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  padding: 0 18px;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 18px 14px;
  color: var(--text-sub);
  font-size: 0.95rem;
  font-weight: 600;
}

/* ==========================================================================
   Page Header & Content Box (Clean 1080px Full Width View)
   ========================================================================== */
.page-hero-banner {
  padding: 34px 20px;
  background: rgba(36, 11, 70, 0.4);
  border-bottom: 1px solid var(--purple-border);
  text-align: center;
}

.page-hero-title {
  font-size: clamp(1.6rem, 5vw, 2.3rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.page-hero-subtitle {
  font-size: 1rem;
  color: var(--text-sub);
}

.page-content-wrapper {
  padding: 34px 20px 48px;
  max-width: 1080px;
  margin: 0 auto;
  flex-grow: 1;
  width: 100%;
}

.page-card-box {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin-bottom: 26px;
}

.page-card-box h2 {
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  font-weight: 800;
  color: #ffffff;
  margin: 24px 0 12px;
}

.page-card-box h2:first-child {
  margin-top: 0;
}

.page-card-box h3 {
  font-size: clamp(1.15rem, 3.5vw, 1.35rem);
  font-weight: 800;
  color: var(--gold-main);
  margin: 20px 0 10px;
}

.page-card-box p {
  font-size: 1.02rem;
  color: var(--text-sub);
  margin-bottom: 16px;
  line-height: 1.7;
}

.page-card-box ul, .page-card-box ol {
  margin-left: 22px;
  margin-bottom: 20px;
  color: var(--text-sub);
}

.page-card-box li {
  margin-bottom: 8px;
  font-size: 1rem;
}

/* Call to Action Box inside Pages & Posts */
.cta-referral-banner {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid var(--emerald-main);
  border-radius: 5px;
  padding: 24px;
  text-align: center;
  margin: 28px 0;
}

.cta-referral-banner h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.cta-referral-banner p {
  font-size: 0.98rem;
  color: var(--text-sub);
  margin-bottom: 18px;
}

.btn-referral-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--emerald-gradient);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.1rem;
  padding: 14px 28px;
  border-radius: var(--border-radius-btn);
  border: none;
  cursor: pointer;
}

/* Blog Posts Grid */
.blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 22px;
  padding: 10px 0 30px;
}

.post-item-card {
  background: var(--purple-card);
  border-radius: 5px;
  border: 1px solid var(--purple-border);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.post-item-tag {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--gold-main);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.post-item-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
  line-height: 1.35;
}

.post-item-excerpt {
  font-size: 0.95rem;
  color: var(--text-sub);
  margin-bottom: 18px;
  flex-grow: 1;
}

.btn-read-post {
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--emerald-main);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Footer (4 Columns Desktop, 2 Equal Columns Side-by-Side Mobile) */
.site-footer {
  background-color: #0c0318;
  color: var(--purple-lighter);
  padding: clamp(32px, 4vw, 44px) 0 20px;
  margin-top: auto;
  border-top: 1px solid var(--purple-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.footer-brand p {
  margin-top: 10px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-title {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: var(--purple-lighter);
  font-weight: 600;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: #ffffff;
}

/* Side-by-Side Footer Community Action Buttons */
.footer-community-buttons {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  margin-top: 10px !important;
}

.btn-footer-telegram {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background: var(--telegram-blue) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 0.9rem !important;
  padding: 10px 14px !important;
  border-radius: 5px !important;
  text-decoration: none !important;
  flex: 1 !important;
  text-align: center !important;
  white-space: nowrap !important;
  border: none !important;
  transition: var(--transition);
}

.btn-footer-telegram:hover {
  background: var(--telegram-hover) !important;
  color: #ffffff !important;
}

.btn-footer-support {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background: var(--emerald-gradient) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 0.9rem !important;
  padding: 10px 14px !important;
  border-radius: 5px !important;
  text-decoration: none !important;
  flex: 1 !important;
  text-align: center !important;
  white-space: nowrap !important;
  border: none !important;
  transition: var(--transition);
}

.btn-footer-support:hover {
  filter: brightness(1.1) !important;
  color: #ffffff !important;
}

.disclaimer-box-18 {
  background: var(--purple-card);
  border-left: 4px solid var(--gold-main);
  padding: 14px 18px;
  border-radius: 5px;
  margin-bottom: 20px;
  font-size: 0.88rem;
  color: var(--text-sub);
  border: 1px solid var(--purple-border);
  border-left-width: 4px;
}

.disclaimer-box-18 strong {
  color: var(--gold-main);
}

.footer-bottom {
  text-align: center;
  padding-top: 14px;
  border-top: 1px solid var(--purple-border);
  font-size: 0.82rem;
}

/* ==========================================================================
   Strict Mobile Optimization
   ========================================================================== */
@media (max-width: 992px) {
  body {
    padding: 0;
  }
  .page-boxed-wrapper {
    border-radius: 0 !important;
    border: none !important;
  }
  .hero-grid, .auth-grid, .guide-steps-grid {
    grid-template-columns: 1fr;
  }
  .impact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .site-header {
    height: 62px;
  }

  .header-container {
    height: 62px;
    padding: 0 12px !important;
  }

  /* STRICT MOBILE HEADER: Telegram Button ONLY, Download Button Hidden */
  .site-header .btn-download-sm {
    display: none !important;
  }

  .site-header .btn-telegram {
    display: inline-flex !important;
    padding: 7px 12px;
    font-size: 0.85rem;
    border-radius: 5px;
  }

  .btn-telegram span {
    display: inline !important;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 62px;
    left: 0;
    width: 100%;
    background-color: #140628;
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--purple-border);
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .tips-grid {
    grid-template-columns: 1fr;
  }

  /* STRICT MOBILE FOOTER: 2 Equal Columns Side-by-Side (Quick Links & Legal Pages) */
  .footer-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 16px !important;
    row-gap: 20px !important;
    width: 100% !important;
  }

  .footer-brand {
    grid-column: 1 / 3 !important; /* Full width top row */
  }

  .footer-col-quick {
    grid-column: 1 / 2 !important; /* Left column */
  }

  .footer-col-legal {
    grid-column: 2 / 3 !important; /* Right column (Side-by-Side!) */
  }

  .footer-col-community {
    grid-column: 1 / 3 !important; /* Community bottom row */
    border-top: 1px solid var(--purple-border) !important;
    padding-top: 16px !important;
    margin-top: 6px !important;
  }

  .footer-community-buttons {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .btn-footer-telegram, .btn-footer-support {
    font-size: 0.84rem !important;
    padding: 10px 8px !important;
  }

  .trust-badge-pill {
    white-space: normal !important;
    text-align: center;
  }

  /* ULTRA STYLISH MOBILE QUICK STATS BAR */
  .quick-stats-box {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin-bottom: 22px !important;
  }

  .quick-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .stat-card-item {
    background: #240b46 !important;
    border: 1px solid var(--purple-border) !important;
    border-radius: 8px !important;
    padding: 14px 10px !important;
  }

  .stat-card-highlight {
    background: rgba(245, 176, 20, 0.14) !important;
    border: 1.5px solid var(--gold-main) !important;
  }

  .stat-icon {
    font-size: 1.4rem !important;
    margin-bottom: 4px !important;
  }

  .stat-val {
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    color: var(--gold-main) !important;
  }

  .stat-card-highlight .stat-val {
    color: #ffffff !important;
  }

  .stat-lbl {
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    color: var(--purple-lighter) !important;
    margin-top: 4px !important;
  }

  /* MOBILE WHY CARDS & GUIDE STEP CARDS */
  .why-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .why-card {
    padding: 16px 14px !important;
  }

  .why-title-row {
    gap: 10px !important;
    margin-bottom: 8px !important;
  }

  .why-emoji {
    width: 34px !important;
    height: 34px !important;
    font-size: 1.2rem !important;
  }

  .why-h3 {
    font-size: 1.02rem !important;
    white-space: normal !important;
  }

  .guide-steps-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .guide-step-card {
    padding: 16px 14px !important;
  }

  .guide-step-header {
    gap: 10px !important;
    margin-bottom: 8px !important;
  }

  .guide-step-num {
    width: 34px !important;
    height: 34px !important;
    font-size: 1.05rem !important;
  }

  .guide-step-title {
    font-size: 1.02rem !important;
    white-space: normal !important;
  }
}

@media (max-width: 480px) {
  .logo-text-fn7 {
    font-size: 1.15rem !important;
  }

  .lobby-games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  
  .impact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .trust-features-row {
    justify-content: center;
  }

  .info-table td {
    padding: 10px 10px !important;
    font-size: 0.88rem !important;
  }
}
