/* =============================================
   me88 Singapore – Main Stylesheet
   Domain: me88sg.online
   ============================================= */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --orange: #ff4e00;
  --gold: #ffb800;
  --gradient: linear-gradient(39.71deg, #ff4e00 7.3%, #ffb800 100%);
  --bg: #161616;
  --nav-bg: #2a2a2a;
  --card-bg: #222222;
  --footer-bg: #373941;
  --border: #333333;
  --text: #ffffff;
  --text-muted: #b5b5b5;
  --text-dark: #484848;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

a { color: var(--orange); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }

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

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

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.25s;
  text-align: center;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
}
.btn-primary:hover { opacity: 0.88; color: #fff; transform: translateY(-1px); box-shadow: 0 4px 20px rgba(255,78,0,0.4); }

.btn-outline {
  background: transparent;
  border: 2px solid var(--orange);
  color: var(--orange);
}
.btn-outline:hover { background: var(--orange); color: #fff; }

.btn-lg { padding: 16px 40px; font-size: 17px; }
.btn-sm { padding: 8px 18px; font-size: 14px; }

/* ===================== HEADER / NAV ===================== */
.site-header {
  background: var(--nav-bg);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid var(--orange);
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 10px;
}

.site-logo img {
  height: 46px;
  width: auto;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.main-nav ul li a {
  color: #ccc;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.main-nav ul li a:hover,
.main-nav ul li a.active {
  background: var(--gradient);
  color: #fff;
}

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

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--orange);
  color: var(--orange);
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 20px;
}

/* ===================== HERO ===================== */
.hero {
  background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 50%, #1e1200 100%);
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--orange);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60"><circle cx="30" cy="30" r="1" fill="%23ff4e00" opacity="0.08"/></svg>') repeat;
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  background: var(--gradient);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero h1 {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero h1 span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 30px;
}

.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.hero-stat { text-align: center; }
.hero-stat strong {
  display: block;
  font-size: 26px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-stat span { font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

/* ===================== SECTIONS ===================== */
.section { padding: 70px 0; }
.section-alt { background: #1a1a1a; }
.section-dark { background: #111111; }

.section-title {
  text-align: center;
  margin-bottom: 50px;
}
.section-title h2 {
  font-size: clamp(22px, 3.5vw, 36px);
  font-weight: 800;
  margin-bottom: 12px;
}
.section-title h2 span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-title p { color: var(--text-muted); font-size: 16px; max-width: 600px; margin: 0 auto; }

.section-divider {
  width: 60px;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
  margin: 16px auto 0;
}

/* ===================== CARDS ===================== */
.card-grid {
  display: grid;
  gap: 24px;
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 28px;
  border: 1px solid var(--border);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--orange);
  box-shadow: 0 8px 30px rgba(255,78,0,0.15);
}

.card-icon {
  font-size: 40px;
  margin-bottom: 16px;
  display: block;
}

.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--gold); }
.card p { color: var(--text-muted); font-size: 15px; line-height: 1.6; }

/* Game category cards */
.game-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  text-align: center;
  transition: all 0.25s;
  text-decoration: none;
  display: block;
  color: inherit;
}
.game-card:hover {
  transform: translateY(-5px);
  border-color: var(--orange);
  box-shadow: 0 10px 35px rgba(255,78,0,0.2);
  color: inherit;
}
.game-card-body { padding: 24px 20px; }
.game-card .game-icon {
  font-size: 52px;
  display: block;
  margin-bottom: 16px;
}
.game-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.game-card p { font-size: 14px; color: var(--text-muted); }
.game-card .card-cta {
  display: block;
  padding: 10px;
  background: var(--gradient);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===================== PROMOTION CARDS ===================== */
.promo-card {
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.25s;
}
.promo-card:hover { transform: translateY(-4px); border-color: var(--orange); }
.promo-card-header {
  background: var(--gradient);
  padding: 20px 24px;
  text-align: center;
}
.promo-card-header h3 { font-size: 20px; font-weight: 800; color: #fff; }
.promo-card-header .promo-amount { font-size: 32px; font-weight: 900; color: #fff; display: block; }
.promo-card-body { padding: 24px; }
.promo-card-body p { color: var(--text-muted); font-size: 15px; margin-bottom: 16px; }
.promo-terms { font-size: 12px; color: #666; margin-top: 12px; }

/* ===================== FAQ ===================== */
.faq-list { max-width: 820px; margin: 0 auto; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: var(--card-bg);
  color: var(--text);
  padding: 18px 24px;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}
.faq-question:hover { background: #2a2a2a; }
.faq-question::after { content: '+'; font-size: 22px; color: var(--orange); font-weight: 700; flex-shrink: 0; margin-left: 10px; }
.faq-question.open::after { content: '−'; }

.faq-answer {
  display: none;
  background: #1e1e1e;
  padding: 18px 24px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  border-top: 1px solid var(--border);
}
.faq-answer.open { display: block; }

/* ===================== CONTENT BLOCKS ===================== */
.content-block { padding: 50px 0; }
.content-block h2 { font-size: 26px; font-weight: 800; margin-bottom: 16px; color: var(--text); }
.content-block h2 span { color: var(--orange); }
.content-block h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; color: var(--gold); }
.content-block p { color: var(--text-muted); margin-bottom: 16px; font-size: 15px; line-height: 1.8; }
.content-block ul, .content-block ol { padding-left: 24px; color: var(--text-muted); margin-bottom: 16px; }
.content-block ul li, .content-block ol li { margin-bottom: 8px; font-size: 15px; line-height: 1.7; }

/* Two-col layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 768px) { .two-col { grid-template-columns: 1fr; } }

/* Info table */
.info-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.info-table th { background: var(--gradient); color: #fff; padding: 12px 16px; text-align: left; font-size: 14px; }
.info-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--text-muted); }
.info-table tr:hover td { background: #1e1e1e; color: var(--text); }

/* ===================== STEPS ===================== */
.steps { counter-reset: step; }
.step-item {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  align-items: flex-start;
}
.step-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  color: #fff;
}
.step-content h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--gold); }
.step-content p { color: var(--text-muted); font-size: 15px; }

/* ===================== PROVIDERS ===================== */
.providers-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}
.provider-badge {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.2s;
}
.provider-badge:hover { border-color: var(--orange); color: var(--text); }

/* ===================== PAYMENT ICONS ===================== */
.payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.payment-badge {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

/* ===================== TRUST BADGES ===================== */
.trust-bar {
  background: #111;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-items {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
}
.trust-item span:first-child { font-size: 22px; }

/* ===================== BREADCRUMB ===================== */
.breadcrumb {
  background: #1a1a1a;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.breadcrumb nav { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--text-muted); }
.breadcrumb nav a { color: var(--text-muted); }
.breadcrumb nav a:hover { color: var(--orange); }
.breadcrumb nav span { color: var(--orange); }

/* ===================== PAGE HERO (inner pages) ===================== */
.page-hero {
  background: linear-gradient(135deg, #0d0d0d 0%, #1a1200 100%);
  padding: 60px 20px;
  text-align: center;
  border-bottom: 3px solid var(--orange);
}
.page-hero h1 { font-size: clamp(26px, 4vw, 44px); font-weight: 800; margin-bottom: 16px; }
.page-hero h1 span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-hero p { color: var(--text-muted); max-width: 600px; margin: 0 auto 24px; font-size: 17px; }

/* ===================== HIGHLIGHT BOX ===================== */
.highlight-box {
  background: linear-gradient(135deg, rgba(255,78,0,0.1), rgba(255,184,0,0.05));
  border: 1px solid rgba(255,78,0,0.3);
  border-radius: 10px;
  padding: 24px 28px;
  margin: 24px 0;
}
.highlight-box h3 { color: var(--gold); margin-bottom: 10px; }
.highlight-box p { color: var(--text-muted); margin: 0; }

/* ===================== VIP TIERS ===================== */
.vip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}
.vip-tier {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.vip-tier:hover { border-color: var(--orange); }
.vip-tier .tier-icon { font-size: 32px; margin-bottom: 10px; display: block; }
.vip-tier h4 { font-size: 14px; font-weight: 700; color: var(--gold); }

/* ===================== FOOTER ===================== */
.site-footer {
  background: var(--footer-bg);
  padding: 60px 0 30px;
  border-top: 3px solid var(--orange);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand p { color: var(--text-muted); font-size: 14px; margin-top: 16px; line-height: 1.7; }
.footer-logo { margin-bottom: 8px; }
.footer-logo img { height: 40px; }

.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--orange);
  padding-bottom: 8px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: var(--text-muted); font-size: 14px; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--orange); }

.footer-bottom {
  border-top: 1px solid #4a4a4a;
  padding-top: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.7;
}
.footer-bottom p { margin-bottom: 8px; }

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--gradient);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  margin-right: 8px;
  vertical-align: middle;
}

/* ===================== 404 PAGE ===================== */
.page-404 {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}
.page-404 h1 {
  font-size: clamp(80px, 15vw, 150px);
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 20px;
}
.page-404 h2 { font-size: 26px; font-weight: 700; margin-bottom: 16px; }
.page-404 p { color: var(--text-muted); max-width: 480px; margin: 0 auto 30px; font-size: 16px; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .main-nav { display: none; width: 100%; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul li a { display: block; padding: 12px 16px; border-radius: 0; border-bottom: 1px solid var(--border); }
  .menu-toggle { display: block; }
  .header-inner { flex-wrap: wrap; }
}

@media (max-width: 600px) {
  .hero { padding: 50px 16px; }
  .section { padding: 50px 0; }
  .hero-stats { gap: 24px; }
  .trust-items { gap: 20px; }
}

/* ===================== MISC UTILITIES ===================== */
.text-center { text-align: center; }
.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.mb-0 { margin-bottom: 0 !important; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
