/* =============================================
   RAXI WIN – MAIN STYLESHEET
   Site: raxiwin.v3game.site / raxiwin
   ============================================= */

/* ============================
   COLOR TOKENS – WHITE THEME (WCAG AA/AAA COMPLIANT)
   ============================ */
:root {
  --primary:       #0052cc;
  --primary-dark:  #003d99;
  --accent:        #F2B90D;
  --accent-dark:   #92400E;

  --page-bg:       #F5F7FA;
  --card-bg:       #FFFFFF;
  --header-bg:     #FFFFFF;
  --header-border: #E2E8F0;
  --footer-bg:     #1E2A3A;
  --footer-text:   #CBD5E1;

  --text-dark:     #0F172A;
  --text-body:     #334155;
  --text-muted:    #475569;
  --border:        #CBD5E1;

  --red:           #991B1B;
  --link:          #0043b5;
  --gold:          #f59e0b;
  --emerald-dark:  #059669;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size-adjust: 0.52;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-body);
  background-color: var(--page-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--link); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
p { margin-bottom: 1.5em; color: var(--text-body); }
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.3; color: var(--text-dark); }

/* Ensure links within text blocks do not rely solely on color */
p a,
li a,
td a,
h1 a,
h2 a,
h3 a,
h4 a,
.faq-body a,
.disclaimer-box a,
.above-header a,
.breadcrumb a {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

.main-nav a,
.mobile-nav a,
.footer-nav a,
.site-logo a,
.btn-primary,
.btn-gold,
.btn-outline-app,
.btn-dl-main,
.btn-dl-apk,
.quick-link-tag {
  text-decoration: none !important;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ============================
   ABOVE-HEADER STRIP
   ============================ */
.above-header {
  background-color: #0043b5;
  padding: 8px 20px;
  text-align: center;
}
.above-header p {
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  margin: 0;
}
.above-header a { color: #ffffff; font-weight: 700; text-decoration: underline; }

/* ============================
   HEADER
   ============================ */
.main-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 74px;
}

.site-logo { display: flex; align-items: center; }
.site-logo a { display: inline-flex; align-items: center; }
.header-logo-img { max-height: 46px; width: auto; object-fit: contain; display: block; }

/* Desktop nav */
.main-nav ul { display: flex; list-style: none; gap: 4px; align-items: center; }
.main-nav ul li a {
  display: block;
  padding: 8px 14px;
  color: var(--text-dark);
  font-size: 15px;
  font-weight: 500;
  border-radius: 6px;
  transition: background .15s, color .15s;
}
.main-nav ul li a:hover,
.main-nav ul li.active > a {
  background: var(--page-bg);
  color: var(--primary);
}

/* CTA Buttons */
.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  padding: 12px 24px;
  transition: background .2s, box-shadow .2s, transform .2s;
  box-shadow: 0 2px 8px rgba(0,102,255,0.25);
  text-decoration: none !important;
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(0,102,255,0.35);
  transform: translateY(-1px);
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FFB800 0%, #FF8C00 100%);
  color: #111827 !important;
  font-size: 16px;
  font-weight: 700;
  border-radius: 8px;
  padding: 14px 26px;
  text-align: center;
  letter-spacing: 0.2px;
  transition: all .25s ease;
  box-shadow: 0 4px 14px rgba(255, 140, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none !important;
}
.btn-gold:hover {
  background: linear-gradient(135deg, #FFA500 0%, #E67600 100%);
  color: #000 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 140, 0, 0.45);
}
.btn-gold:active {
  transform: translateY(0);
}

/* Mobile toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-dark);
  font-size: 22px;
  width: 40px; height: 40px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* Mobile nav */
.mobile-nav {
  display: none;
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; padding: 10px 20px 16px; }
.mobile-nav ul li a {
  display: block;
  padding: 11px 0;
  color: var(--text-dark);
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.mobile-nav ul li:last-child a { border-bottom: none; }
.mobile-nav ul li a:hover { color: var(--primary); }

/* ============================
   HERO STRIP
   ============================ */
.hero-strip {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  padding: 38px 20px 32px;
}
.hero-strip-inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.hero-text {
  text-align: center;
  max-width: 600px;
}
.hero-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.hero-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 4px;
}
.hero-intro-text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 4px;
  text-align: left;
  width: 100%;
}
.hero-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: 100%;
}

.btn-outline-app {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #F0F4FF;
  border: 2px solid #0052cc;
  color: #0043b5 !important;
  font-size: 15px;
  font-weight: 700;
  border-radius: 8px;
  padding: 13px 20px;
  transition: all .2s ease;
  text-decoration: none !important;
}
.btn-outline-app:hover {
  background: #dce8ff;
  color: #003399 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,82,204,0.15);
}

/* ============================
   MAIN CONTENT AREA
   ============================ */
.page-body { background: var(--page-bg); display: block; }

.content-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 20px;
}

.section-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
  margin-bottom: 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.section-title {
  font-size: 1.55em;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

.section-title-lg {
  font-size: 1.75em;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
}

/* Steps list */
.steps-list {
  list-style: none;
  padding: 0;
  counter-reset: steps;
}
.steps-list li {
  counter-increment: steps;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.6;
}
.steps-list li:last-child { border-bottom: none; }
.steps-list li::before {
  content: counter(steps);
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  min-width: 26px; height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================
   INVITE CODE TABLE
   ============================ */
.invite-table-wrap { overflow-x: auto; margin-bottom: 8px; }
.invite-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.invite-table th,
.invite-table td {
  border: 1px solid var(--border);
  padding: 13px 18px;
  text-align: left;
  color: var(--text-body);
}
.invite-table thead tr { background: var(--page-bg); }
.invite-table th { font-weight: 700; color: var(--text-dark); }
.invite-table tbody tr:nth-child(even) td { background: #F9FAFB; }
.invite-code-val {
  background: #FEF3C7;
  color: #78350F;
  font-weight: 700;
  font-size: 16px;
  border-radius: 4px;
  padding: 2px 8px;
  display: inline-block;
}

/* ============================
   HERO STAT GRID & WIDGETS
   ============================ */
.hero-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 12px;
  margin: 22px 0 10px;
  width: 100%;
}

.hero-stat-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 82, 204, 0.15);
  border-radius: 12px;
  padding: 12px 10px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 82, 204, 0.12);
}

.hero-stat-val {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.hero-stat-lbl {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* Game showcase cards (Pure CSS + SVG icons) */
.game-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.game-showcase-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.game-showcase-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 10px 24px rgba(0, 82, 204, 0.12);
}

.game-card-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 14px;
}

.icon-wingo { background: #fee2e2; color: #dc2626; }
.icon-aviator { background: #e0e7ff; color: #4338ca; }
.icon-k3 { background: #fef3c7; color: #d97706; }
.icon-trx { background: #d1fae5; color: #059669; }
.icon-5d { background: #f3e8ff; color: #7c3aed; }
.icon-vip { background: #ffedd5; color: #c2410c; }

.game-showcase-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.game-showcase-card p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-body);
  margin-bottom: 16px;
  flex-grow: 1;
}

.game-badge-chip {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 6px;
  margin-bottom: 12px;
  width: fit-content;
}

.chip-red { background: #fee2e2; color: #991b1b; }
.chip-blue { background: #dbeafe; color: #1e40af; }
.chip-green { background: #dcfce7; color: #166534; }
.chip-amber { background: #fef3c7; color: #92400e; }

/* Process steps */
.process-timeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

.process-step-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 18px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.process-step-item:hover {
  border-color: #93c5fd;
  box-shadow: 0 4px 14px rgba(0, 82, 204, 0.06);
}

.step-number-badge {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0, 82, 204, 0.25);
}

.process-step-content {
  flex-grow: 1;
}

.process-step-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.process-step-content p {
  font-size: 0.92rem;
  color: var(--text-body);
  margin-bottom: 0;
  line-height: 1.55;
}

/* Feature Callout */
.feature-callout {
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border-left: 4px solid var(--primary);
  border-radius: 0 12px 12px 0;
  padding: 18px 22px;
  margin: 20px 0;
}

.feature-callout h4 {
  font-size: 1.05rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
  font-weight: 700;
}

.feature-callout p {
  margin-bottom: 0;
  font-size: 0.93rem;
  color: var(--text-body);
}

/* VIP Grid */
.raxi-tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.tier-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.tier-box.highlight {
  border: 2px solid #f59e0b;
  background: #fffdf5;
}

.tier-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.tier-reward {
  font-size: 1.25rem;
  font-weight: 800;
  color: #059669;
  margin-bottom: 8px;
}

.tier-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 0;
}

/* Copy Code Widget */
.code-pill-widget {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 2px dashed #0052cc;
  border-radius: 30px;
  padding: 8px 18px;
  margin: 12px 0;
}

.code-pill-widget .code-text {
  font-family: monospace;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0052cc;
  letter-spacing: 1px;
}

.code-pill-widget .badge-copy {
  background: #0052cc;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}

/* ============================
   FAQ
   ============================ */
.faq-list { display: flex; flex-direction: column; gap: 10px; }

details.faq-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-bg);
  overflow: hidden;
}
details.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  user-select: none;
  gap: 10px;
  transition: background .15s;
}
details.faq-item summary:hover { background: var(--page-bg); }
details.faq-item summary::-webkit-details-marker { display: none; }

.faq-arrow {
  font-size: 14px;
  color: var(--text-muted);
  transition: transform .3s;
  flex-shrink: 0;
}
details.faq-item[open] .faq-arrow { transform: rotate(180deg); }
details.faq-item[open] summary { background: var(--page-bg); color: var(--primary); }

.faq-body {
  padding: 16px 20px;
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.75;
  border-top: 1px solid var(--border);
}

/* ============================
   DISCLAIMER
   ============================ */
.disclaimer-box {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 14px;
  color: #991B1B;
  line-height: 1.7;
}
.disclaimer-box strong { color: #7F1D1D; }

/* ============================
   FOOTER
   ============================ */
.site-footer {
  background: var(--footer-bg);
  border-top: 3px solid var(--primary);
  padding: 28px 20px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.footer-copyright { color: var(--footer-text); font-size: 15px; }
.footer-disclaimer-text { color: var(--footer-text); font-size: 13px; line-height: 1.6; }
.footer-nav ul { display: flex; list-style: none; flex-wrap: wrap; justify-content: center; gap: 4px; }
.footer-nav ul li a {
  display: inline-block;
  padding: 5px 16px;
  color: var(--footer-text);
  font-size: 14px;
  border-radius: 4px;
  transition: background .15s, color .15s;
}
.footer-nav ul li a:hover { background: rgba(255,255,255,0.08); color: #fff; }

/* ============================
   SCROLL TOP
   ============================ */
#scroll-top {
  display: none;
  position: fixed;
  bottom: 28px; right: 28px;
  width: 40px; height: 40px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  box-shadow: 0 4px 14px rgba(0,102,255,0.35);
  z-index: 999;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
#scroll-top.visible { display: flex; }
#scroll-top:hover { background: var(--primary-dark); }

/* ============================
   FRESH UPDATES SIGNALS
   ============================ */
.update-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 13.5px;
  font-weight: 500;
  margin: 6px 0 12px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.card-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

.card-header-flex .section-title {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.badge-fresh {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .mobile-toggle { display: flex; }
  .above-header { display: none; }
  .header-inner { min-height: 64px; }
  .header-inner .btn-primary { padding: 8px 16px; font-size: 13.5px; border-radius: 6px; }
  .section-card { padding: 22px 18px; }
}

@media (max-width: 560px) {
  .header-inner { min-height: 58px; padding: 0 14px; }
  .header-inner .btn-primary { padding: 6px 12px; font-size: 12px; font-weight: 600; border-radius: 6px; }
  .mobile-toggle { width: 34px; height: 34px; font-size: 18px; }
  .hero-strip { padding: 28px 16px 22px; }
  .hero-strip-inner { gap: 14px; }
  .hero-title { font-size: 1.4rem; }
  .hero-subtitle { font-size: 13.5px; }
  .hero-btn-row { grid-template-columns: 1fr; gap: 10px; }
  .btn-gold { padding: 12px 20px; font-size: 15px; }
  .btn-outline-app { padding: 11px 16px; font-size: 14px; width: 100%; }
  .section-title-lg { font-size: 1.35em; }
  .invite-table th, .invite-table td { padding: 10px 12px; font-size: 14px; }
}
