/* =====================================================
   Mario96 Casino — Shared Stylesheet
   ===================================================== */

/* ---------- CSS Variables ---------- */
:root {
  --bg:       #0a0e1a;
  --surface:  #111827;
  --surface2: #1a2235;
  --border:   #1e2d40;
  --primary:  #e63946;
  --primary-h:#c1121f;
  --accent:   #ffd700;
  --text:     #e2e8f0;
  --muted:    #94a3b8;
  --radius:   8px;
  --max-w:    860px;
  --transition: 0.2s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  padding-bottom: 80px; /* space for popup */
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.4rem; }
li { margin-bottom: 0.35rem; }

/* ---------- Container ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1rem;
}

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 2px solid var(--primary);
  box-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.logo img { width: 44px; height: 44px; object-fit: contain; }
.logo-text {
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
}
.logo-num { color: var(--accent); }

/* Nav */
nav { position: relative; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
  padding: 0;
}
.nav-list a {
  color: var(--text);
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color var(--transition), background var(--transition);
}
.nav-list a:hover { color: var(--accent); text-decoration: none; background: rgba(255,215,0,0.07); }
.nav-list a.active { color: var(--accent); }
.btn-nav-cta {
  background: var(--primary) !important;
  color: #fff !important;
  border-radius: var(--radius) !important;
  padding: 0.4rem 1rem !important;
}
.btn-nav-cta:hover { background: var(--primary-h) !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.3rem;
}

/* ---------- Buttons ---------- */
.btn-cta {
  display: inline-block;
  background: var(--primary);
  color: #fff !important;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 1.8rem;
  border-radius: var(--radius);
  text-decoration: none !important;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 14px rgba(230,57,70,0.35);
  cursor: pointer;
  border: none;
}
.btn-cta:hover {
  background: var(--primary-h);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(230,57,70,0.45);
}
.btn-cta-sm {
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
}
.btn-gold {
  background: var(--accent);
  color: #0a0e1a !important;
  box-shadow: 0 4px 14px rgba(255,215,0,0.35);
}
.btn-gold:hover {
  background: #e6c200;
  box-shadow: 0 6px 18px rgba(255,215,0,0.45);
}
.cta-center { text-align: center; margin: 2rem 0; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, #0d1525 0%, #1a0510 50%, #0a0e1a 100%);
  border-bottom: 1px solid var(--border);
  padding: 3rem 1rem 2.5rem;
  text-align: center;
}
.hero h1 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 900;
  color: var(--accent);
  line-height: 1.25;
  margin-bottom: 1rem;
}
.hero p { color: var(--muted); max-width: 640px; margin: 0 auto 1.5rem; font-size: 1.05rem; }
.bonus-badge {
  display: inline-block;
  background: var(--accent);
  color: #0a0e1a;
  font-weight: 900;
  font-size: 1.1rem;
  padding: 0.5rem 1.4rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.hero-ctas { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section {
  padding: 2.5rem 1rem;
  border-bottom: 1px solid var(--border);
}
.section:last-of-type { border-bottom: none; }
.section h2 {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}
.section h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 1.5rem 0 0.6rem;
}
.section h3:first-child { margin-top: 0; }
.section p { margin-bottom: 0.9rem; }
.section ul, .section ol { margin-bottom: 0.9rem; }
.section strong { color: #fff; }

/* ---------- Cards / Feature List ---------- */
.feature-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.feature-list li {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 1rem 0.6rem 2.4rem;
  position: relative;
}
.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0.7rem;
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Steps ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li {
  counter-increment: step;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1rem 1rem 3.5rem;
  margin-bottom: 0.8rem;
  position: relative;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.8rem;
  height: 1.8rem;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
  background: var(--surface);
}
thead { background: var(--surface2); }
th {
  padding: 0.7rem 1rem;
  text-align: left;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  white-space: nowrap;
}
td {
  padding: 0.65rem 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
  vertical-align: middle;
}
tr:hover td { background: rgba(255,255,255,0.02); }
td strong { color: #fff; }

/* ---------- Promo Images ---------- */
.promo-img {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin: 1.5rem 0;
}
.promo-img img {
  width: 100%;
  height: auto;
  display: block;
}
.promo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}
.promo-grid .promo-img { margin: 0; }

/* ---------- Review Cards ---------- */
.reviews { display: grid; gap: 0.8rem; }
.review-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
}
.review-card p { margin: 0 0 0.3rem; font-style: italic; color: var(--text); }
.review-card cite { font-size: 0.85rem; color: var(--muted); font-style: normal; }

/* ---------- FAQ / Accordion ---------- */
.faq { display: grid; gap: 0.6rem; }
details {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
summary {
  padding: 0.85rem 1rem;
  cursor: pointer;
  font-weight: 700;
  color: #fff;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+';
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-left: 0.5rem;
  transition: transform var(--transition);
}
details[open] summary::after { content: '−'; }
.faq-body { padding: 0 1rem 1rem; color: var(--muted); }
.faq-body p { margin-bottom: 0; }

/* ---------- Info Box ---------- */
.info-box {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin: 1.2rem 0;
}
.info-box p { margin: 0; font-size: 0.9rem; color: var(--muted); }

/* ---------- Payment Method Icons Row ---------- */
.payment-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.8rem 0;
}
.pay-tag {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- Footer ---------- */
footer {
  background: var(--surface);
  border-top: 2px solid var(--border);
  padding: 2rem 1rem;
  margin-top: 1rem;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.footer-logo span {
  font-weight: 900;
  font-size: 1.1rem;
  color: #fff;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  margin-bottom: 1.2rem;
}
.footer-nav a { color: var(--muted); font-size: 0.9rem; }
.footer-nav a:hover { color: var(--accent); }
.disclaimer {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.disclaimer a { color: var(--muted); text-decoration: underline; }
.footer-copy {
  font-size: 0.78rem;
  color: #4a5568;
  margin-bottom: 0.6rem;
}
.footer-copy a { color: #4a5568; }
.footer-badges {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.badge-18 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
  font-size: 0.85rem;
  border-radius: 50%;
  flex-shrink: 0;
}
.badge-text {
  font-size: 0.78rem;
  color: #4a5568;
}

/* ---------- Popup Banner (fixed bottom) ---------- */
.popup-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(10,14,26,0.97);
  border-top: 2px solid var(--primary);
  padding: 0.7rem 1rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
}
.popup-banner.hidden { transform: translateY(100%); }
.popup-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.popup-img { height: 36px; width: auto; flex-shrink: 0; }
.popup-text { flex: 1; min-width: 160px; }
.popup-text strong { display: block; color: #fff; font-size: 0.95rem; }
.popup-text span { font-size: 0.8rem; color: var(--muted); }
.popup-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  line-height: 1;
  margin-left: auto;
  flex-shrink: 0;
}
.popup-close:hover { color: #fff; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.breadcrumb-inner { max-width: var(--max-w); margin: 0 auto; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .nav-list {
    display: none;
    position: absolute;
    top: calc(100% + 2px);
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem;
    min-width: 180px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    z-index: 200;
  }
  .nav-list.open { display: flex; }
  .nav-list li { width: 100%; }
  .nav-list a { display: block; width: 100%; }
  .promo-grid { grid-template-columns: 1fr; }
  .hero { padding: 2rem 1rem; }
  .hero h1 { font-size: 1.35rem; }
  table { min-width: 360px; }
  .popup-inner { gap: 0.5rem; }
  .popup-img { display: none; }
}
@media (max-width: 400px) {
  .btn-cta { padding: 0.65rem 1.2rem; font-size: 0.9rem; }
  th, td { padding: 0.5rem 0.7rem; font-size: 0.82rem; }
}
