/* me88 Singapore - Main Stylesheet */
:root {
  --primary: #ff4e00;
  --primary-dark: #cc3e00;
  --primary-light: #ff6a2a;
  --bg-dark: #0d0d0d;
  --bg-card: #1a1a1a;
  --bg-card2: #222222;
  --border: #2e2e2e;
  --text: #ffffff;
  --text-muted: #b0b0b0;
  --text-dim: #888888;
  --gold: #f5c518;
  --green: #00c853;
}

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

html { scroll-behavior: smooth; }

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

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-light); }

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

h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.3; }

h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h2 { font-size: clamp(1.3rem, 3vw, 1.9rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; color: var(--text-muted); }

ul, ol { padding-left: 1.4rem; margin-bottom: 1rem; }
li { color: var(--text-muted); margin-bottom: .4rem; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 60px 0; }
.section-alt { background: var(--bg-card); }

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(13,13,13,.97);
  border-bottom: 2px solid var(--primary);
  backdrop-filter: blur(8px);
}

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

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

.main-nav { display: flex; align-items: center; gap: 4px; }

.main-nav a {
  color: var(--text);
  font-size: .9rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
  letter-spacing: .3px;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
  background: rgba(255,78,0,.12);
}

.nav-badge {
  background: var(--primary);
  color: #fff;
  font-size: .6rem;
  padding: 1px 5px;
  border-radius: 10px;
  vertical-align: super;
  font-weight: 700;
  letter-spacing: .5px;
}

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

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 22px; border-radius: 6px; font-weight: 700; font-size: .9rem; cursor: pointer; border: none; transition: all .2s; letter-spacing: .3px; }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-gold { background: linear-gradient(135deg, #f5c518 0%, #e0a800 100%); color: #1a1a1a; }
.btn-gold:hover { background: linear-gradient(135deg, #e0a800 0%, #c89600 100%); }
.btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: 8px; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ── HERO SLIDER ── */
.hero { position: relative; overflow: hidden; background: #000; }

.slider-wrapper { position: relative; height: 480px; }
@media(max-width:768px){ .slider-wrapper { height: 220px; } }

.slider-track { display: flex; height: 100%; transition: transform .5s ease; }

.slide { min-width: 100%; height: 100%; position: relative; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.7) 0%, transparent 60%);
  display: flex; align-items: center;
}
.slide-content { padding: 0 60px; max-width: 560px; }
.slide-content h2 { font-size: clamp(1.4rem,3.5vw,2.4rem); color: #fff; margin-bottom: .5rem; }
.slide-content p { font-size: 1rem; color: #ddd; margin-bottom: 1.2rem; }

.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,78,0,.8); color: #fff; border: none;
  width: 44px; height: 44px; border-radius: 50%; font-size: 1.2rem;
  cursor: pointer; z-index: 10; transition: background .2s;
}
.slider-btn:hover { background: var(--primary); }
.slider-btn.prev { left: 16px; }
.slider-btn.next { right: 16px; }

.slider-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.4); cursor: pointer; transition: .2s; }
.dot.active { background: var(--primary); transform: scale(1.2); }

/* ── GAME CATEGORIES ── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
@media(max-width:900px){ .categories-grid { grid-template-columns: repeat(3, 1fr); } }
@media(max-width:560px){ .categories-grid { grid-template-columns: repeat(2, 1fr); } }

.category-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform .2s, border-color .2s;
  cursor: pointer;
}
.category-card:hover { transform: translateY(-4px); border-color: var(--primary); }
.category-card img { width: 100%; height: 160px; object-fit: cover; }
.category-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
  padding: 20px 12px 12px;
  text-align: center;
  font-weight: 700; font-size: .95rem; color: #fff;
}

/* ── SECTION HEADING ── */
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { color: #fff; margin-bottom: .5rem; }
.section-head p { color: var(--text-muted); max-width: 600px; margin: 0 auto; }
.section-head .underline {
  width: 60px; height: 3px; background: var(--primary);
  margin: 12px auto 0; border-radius: 2px;
}

/* ── PROMO CARDS ── */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media(max-width:900px){ .promo-grid { grid-template-columns: repeat(2, 1fr); } }
@media(max-width:560px){ .promo-grid { grid-template-columns: 1fr; } }

.promo-card {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .2s, border-color .2s;
}
.promo-card:hover { transform: translateY(-4px); border-color: var(--primary); }
.promo-card img { width: 100%; height: 180px; object-fit: cover; }
.promo-body { padding: 16px; }
.promo-tag { display: inline-block; background: var(--primary); color: #fff; font-size: .72rem; padding: 2px 8px; border-radius: 4px; font-weight: 700; margin-bottom: 8px; letter-spacing: .5px; }
.promo-body h3 { font-size: 1rem; color: #fff; margin-bottom: 6px; }
.promo-body p { font-size: .88rem; color: var(--text-muted); margin-bottom: 12px; }

/* ── PROVIDERS ── */
.providers-strip {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: center; gap: 24px; padding: 30px 0;
}
.providers-strip img { height: 36px; width: auto; filter: brightness(.7) grayscale(.3); transition: filter .2s; }
.providers-strip img:hover { filter: brightness(1) grayscale(0); }

/* ── FEATURES ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media(max-width:900px){ .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media(max-width:500px){ .features-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  transition: border-color .2s;
}
.feature-card:hover { border-color: var(--primary); }
.feature-icon { font-size: 2.4rem; margin-bottom: 14px; }
.feature-card h3 { color: #fff; font-size: 1rem; margin-bottom: 8px; }
.feature-card p { font-size: .88rem; color: var(--text-muted); margin: 0; }

/* ── HOW TO JOIN ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
@media(max-width:768px){ .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media(max-width:480px){ .steps-grid { grid-template-columns: 1fr; } }

.step-card {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  position: relative;
}
.step-num {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: #fff;
  font-weight: 800; font-size: 1.1rem;
  margin: 0 auto 14px;
}
.step-card h3 { color: #fff; font-size: 1rem; margin-bottom: 8px; }
.step-card p { font-size: .88rem; color: var(--text-muted); margin: 0; }

/* ── FAQ ── */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: var(--bg-card2);
  border: none;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: 18px 20px;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background .2s;
}
.faq-question:hover { background: #2a2a2a; }
.faq-question .icon { color: var(--primary); font-size: 1.2rem; transition: transform .3s; flex-shrink: 0; }
.faq-item.open .faq-question { background: rgba(255,78,0,.1); }
.faq-item.open .faq-question .icon { transform: rotate(45deg); }
.faq-answer { display: none; padding: 0 20px 18px; background: var(--bg-card2); color: var(--text-muted); font-size: .95rem; }
.faq-item.open .faq-answer { display: block; }

/* ── CONTENT BLOCKS ── */
.content-block { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.content-block.reverse { direction: rtl; }
.content-block.reverse > * { direction: ltr; }
@media(max-width:768px){ .content-block, .content-block.reverse { grid-template-columns: 1fr; direction: ltr; } }

.content-block img { border-radius: 12px; }
.content-block h2 { color: #fff; margin-bottom: 1rem; }
.content-block h3 { color: #fff; margin-bottom: .8rem; margin-top: 1.5rem; }

/* ── PAYMENT METHODS ── */
.payment-strip {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: center; gap: 16px;
}
.payment-strip img { height: 28px; width: auto; filter: brightness(.8); transition: filter .2s; }
.payment-strip img:hover { filter: brightness(1); }

/* ── CERT BADGES ── */
.certs-strip {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: center; gap: 20px;
}
.certs-strip img { height: 40px; width: auto; opacity: .8; transition: opacity .2s; }
.certs-strip img:hover { opacity: 1; }

/* ── CTA BANNER ── */
.cta-banner {
  background: linear-gradient(135deg, #1a0a00 0%, #3d1200 50%, #1a0a00 100%);
  border: 1px solid var(--primary);
  border-radius: 16px;
  padding: 60px 40px;
  text-align: center;
}
.cta-banner h2 { color: #fff; margin-bottom: .8rem; }
.cta-banner p { color: var(--text-muted); margin-bottom: 1.5rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ── FOOTER ── */
.site-footer {
  background: #0a0a0a;
  border-top: 2px solid var(--border);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media(max-width:900px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width:560px){ .footer-grid { grid-template-columns: 1fr; } }

.footer-brand img { height: 40px; margin-bottom: 16px; }
.footer-brand p { font-size: .88rem; color: var(--text-dim); }

.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: var(--text-dim); font-size: .88rem; transition: color .2s; }
.footer-col ul li a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  text-align: center;
}
.footer-bottom p { font-size: .8rem; color: var(--text-dim); margin: 0; }

/* ── PAGE HERO ── */
.page-hero {
  background: linear-gradient(135deg, #0d0d0d 0%, #1a0500 100%);
  border-bottom: 1px solid var(--border);
  padding: 60px 0;
  text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: .8rem; }
.page-hero p { color: var(--text-muted); max-width: 700px; margin: 0 auto; font-size: 1.05rem; }
.breadcrumb { color: var(--text-dim); font-size: .85rem; margin-bottom: 12px; }
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--primary); }

/* ── STATS BAR ── */
.stats-bar {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  overflow: hidden;
}
@media(max-width:700px){ .stats-bar { grid-template-columns: repeat(2, 1fr); } }

.stat-item {
  padding: 24px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-num { font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-label { font-size: .82rem; color: var(--text-muted); margin-top: 4px; }

/* ── 404 PAGE ── */
.error-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}
.error-num { font-size: 8rem; font-weight: 900; color: var(--primary); line-height: 1; margin-bottom: .2rem; }
.error-page h2 { color: #fff; margin-bottom: 1rem; }
.error-page p { color: var(--text-muted); max-width: 500px; margin: 0 auto 2rem; }

/* ── TABLE ── */
table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
th { background: var(--bg-card2); color: var(--primary); font-size: .85rem; text-transform: uppercase; letter-spacing: .5px; padding: 12px 16px; text-align: left; border-bottom: 2px solid var(--primary); }
td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text-muted); font-size: .9rem; }
tr:hover td { background: rgba(255,255,255,.02); }

/* ── BADGE / PILL ── */
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: .75rem; font-weight: 700; }
.badge-orange { background: rgba(255,78,0,.15); color: var(--primary); border: 1px solid rgba(255,78,0,.3); }
.badge-gold { background: rgba(245,197,24,.15); color: var(--gold); border: 1px solid rgba(245,197,24,.3); }
.badge-green { background: rgba(0,200,83,.15); color: var(--green); border: 1px solid rgba(0,200,83,.3); }

/* ── RESPONSIVE NAV ── */
@media(max-width:1024px){
  .main-nav { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; background: #111; padding: 20px; gap: 4px; border-bottom: 2px solid var(--primary); }
  .main-nav.open { display: flex; }
  .hamburger { display: flex; }
  .header-inner { position: relative; }
}
@media(max-width:480px){
  .header-actions .btn-outline { display: none; }
  .slide-content { padding: 0 20px; }
}

/* ── UTILITY ── */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-gold { color: var(--gold); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.fw-bold { font-weight: 700; }
.color-white { color: #fff; }
