/* =============================================
   ME88 Singapore — Global Stylesheet
   Domain: me88mobile.com
   Theme: Dark + Orange (#ff4e00)
============================================= */

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

:root {
  --primary:   #ff4e00;
  --primary-h: #e64400;
  --dark:      #181818;
  --dark2:     #222222;
  --dark3:     #2a2a2a;
  --card:      #252525;
  --border:    #333333;
  --text:      #ffffff;
  --text-m:    #cccccc;
  --text-s:    #b5b5b5;
  --gold:      #ffd700;
  --radius:    8px;
  --shadow:    0 4px 20px rgba(0,0,0,0.5);
}

html { scroll-behavior: smooth; }

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

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

img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ── Typography ── */
h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; line-height: 1.2; margin-bottom: 1rem; }
h2 { font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 700; margin-bottom: .8rem; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); font-weight: 600; margin-bottom: .5rem; }
p  { margin-bottom: 1rem; color: var(--text-m); }

/* ── Layout ── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.section    { padding: 70px 0; }
.section-alt { background: var(--dark2); }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { color: var(--text); }
.section-title h2 span { color: var(--primary); }
.section-title p { max-width: 680px; margin: .5rem auto 0; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  text-align: center;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-h); color: #fff; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-gold { background: var(--gold); color: #111; }
.btn-gold:hover { background: #e6c200; color: #111; }
.btn-lg { padding: 15px 40px; font-size: 1.05rem; }

/* ── Navigation ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--dark3);
  border-bottom: 2px solid var(--primary);
  box-shadow: var(--shadow);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 1180px;
  margin: 0 auto;
  gap: 10px;
}
.navbar-logo img { height: 44px; width: auto; }
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.navbar-nav a {
  color: var(--text-m);
  font-size: .88rem;
  font-weight: 600;
  padding: 7px 11px;
  border-radius: 5px;
  transition: all 0.2s;
  white-space: nowrap;
}
.navbar-nav a:hover,
.navbar-nav a.active { color: var(--primary); background: rgba(255,78,0,0.1); }
.navbar-cta { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.btn-login  { background: transparent; color: var(--text); border: 1.5px solid var(--text-s); padding: 8px 18px; border-radius: 5px; font-weight: 600; font-size: .88rem; transition: all 0.2s; }
.btn-login:hover { border-color: var(--primary); color: var(--primary); }
.btn-register { background: var(--primary); color: #fff; padding: 9px 20px; border-radius: 5px; font-weight: 700; font-size: .88rem; transition: all 0.2s; }
.btn-register:hover { background: var(--primary-h); color: #fff; }
.nav-hamburger { display: none; cursor: pointer; background: none; border: none; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: all 0.3s; }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark3);
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #0d0d0d 0%, #1a0a00 50%, #2a1000 100%);
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: url('https://me88sgs.com/wp-content/uploads/2025/05/me88-banner-sg.webp') center/cover no-repeat;
  opacity: 0.18;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  padding: 80px 20px;
}
.hero-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 1rem;
}
.hero h1 { color: #fff; }
.hero h1 span { color: var(--primary); }
.hero p { font-size: 1.05rem; color: var(--text-m); max-width: 520px; }
.hero-cta { display: flex; gap: 12px; margin-top: 1.8rem; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 20px; margin-top: 2rem; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 7px; font-size: .82rem; color: var(--text-s); }
.trust-item svg, .trust-item .ti-icon { color: var(--gold); font-size: 1rem; }

/* ── Cards / Grid ── */
.cards-grid { display: grid; gap: 20px; }
.cards-grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cards-grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.cards-grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary); }
.card-img { width: 100%; height: 170px; object-fit: cover; }
.card-img-placeholder {
  width: 100%; height: 170px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
}
.card-body { padding: 18px; }
.card-body h3 { color: var(--text); margin-bottom: .4rem; }
.card-body p { font-size: .9rem; margin-bottom: .8rem; }

/* ── Feature boxes ── */
.feature-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: border-color 0.2s;
}
.feature-box:hover { border-color: var(--primary); }
.feature-icon { font-size: 2.4rem; margin-bottom: .8rem; }
.feature-box h3 { color: var(--text); }

/* ── Steps ── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; counter-reset: step; }
.step { position: relative; text-align: center; padding: 30px 20px; background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); }
.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem; font-size: 1.2rem;
}

/* ── Promo Cards ── */
.promo-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.2s;
}
.promo-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.promo-header {
  background: linear-gradient(135deg, var(--primary), #a82b00);
  padding: 20px;
  text-align: center;
}
.promo-header .promo-amount { font-size: 1.8rem; font-weight: 800; color: var(--gold); }
.promo-header h3 { color: #fff; font-size: 1rem; }
.promo-body { padding: 18px; }
.promo-body p { font-size: .88rem; }
.promo-tag {
  display: inline-block;
  background: rgba(255,78,0,0.15);
  color: var(--primary);
  border: 1px solid var(--primary);
  font-size: .75rem; font-weight: 700;
  padding: 3px 10px; border-radius: 20px;
  margin-bottom: .8rem;
}

/* ── FAQ ── */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-q {
  width: 100%; text-align: left;
  background: none; border: none;
  padding: 18px 22px;
  color: var(--text);
  font-size: 1rem; font-weight: 600;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px;
}
.faq-q:hover { color: var(--primary); }
.faq-q::after { content: '+'; font-size: 1.3rem; color: var(--primary); flex-shrink: 0; }
.faq-q.open::after { content: '−'; }
.faq-a { display: none; padding: 0 22px 18px; color: var(--text-m); font-size: .93rem; line-height: 1.7; }
.faq-a.open { display: block; }

/* ── Payment strip ── */
.payment-strip { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; align-items: center; }
.pay-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 16px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--text-m);
}

/* ── Provider logos ── */
.provider-grid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.prov-badge {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 18px;
  font-size: .83rem;
  font-weight: 600;
  color: var(--text-s);
  transition: all 0.2s;
}
.prov-badge:hover { border-color: var(--primary); color: var(--primary); }

/* ── Trust badges ── */
.trust-badges { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.trust-badge {
  display: flex; align-items: center; gap: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 16px;
  font-size: .82rem;
  color: var(--text-s);
}
.trust-badge .tb-icon { font-size: 1.4rem; }

/* ── Table ── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th { background: var(--dark3); color: var(--primary); text-align: left; padding: 12px 16px; font-weight: 700; }
td { padding: 11px 16px; border-bottom: 1px solid var(--border); color: var(--text-m); }
tr:hover td { background: var(--card); }

/* ── Page Hero variants ── */
.hero-sports    .hero-bg::after { background: url('https://me88sgs.com/wp-content/uploads/2025/05/sports-banner.webp') center/cover; }
.hero-esports   .hero-bg::after { background: url('https://me88sgs.com/wp-content/uploads/2025/05/esports-banner.webp') center/cover; }
.hero-casino    .hero-bg::after { background: url('https://me88sgs.com/wp-content/uploads/2025/05/casino-banner.webp') center/cover; }
.hero-slots     .hero-bg::after { background: url('https://me88sgs.com/wp-content/uploads/2025/05/slots-banner.webp') center/cover; }
.hero-fishing   .hero-bg::after { background: url('https://me88sgs.com/wp-content/uploads/2025/05/fishing-banner.webp') center/cover; }
.hero-promos    .hero-bg::after { background: url('https://me88sgs.com/wp-content/uploads/2025/05/promo-banner.webp') center/cover; }

/* ── Breadcrumb ── */
.breadcrumb { padding: 12px 0; font-size: .85rem; color: var(--text-s); }
.breadcrumb a { color: var(--text-s); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--primary); }

/* ── Game category banner ── */
.cat-banner {
  border-radius: var(--radius);
  padding: 40px 30px;
  text-align: center;
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}
.cat-banner .cat-icon { font-size: 3.5rem; margin-bottom: .6rem; }

/* ── Footer ── */
footer {
  background: #111111;
  border-top: 2px solid var(--border);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand img { height: 40px; margin-bottom: 1rem; }
.footer-brand p { font-size: .87rem; max-width: 280px; }
.footer-col h4 { color: var(--primary); font-size: .9rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-bottom: .9rem; }
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul li a { color: var(--text-s); font-size: .87rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: .82rem; color: var(--text-s); margin: 0; }
.footer-license { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.lic-badge {
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 4px 10px;
  font-size: .75rem;
  color: var(--text-s);
}
.age-badge {
  background: var(--primary);
  color: #fff;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .82rem;
  flex-shrink: 0;
}
.footer-disclaimer { font-size: .78rem; color: #666; text-align: center; padding-top: 12px; }

/* ── Announcement bar ── */
.announce-bar {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 8px 20px;
  font-size: .82rem;
  font-weight: 600;
}
.announce-bar a { color: #fff; text-decoration: underline; }

/* ── Marquee ── */
.marquee-wrap { background: var(--dark3); border-bottom: 1px solid var(--border); padding: 8px 0; overflow: hidden; }
.marquee { display: flex; gap: 40px; animation: marquee 30s linear infinite; white-space: nowrap; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee span { font-size: .82rem; color: var(--text-s); }
.marquee strong { color: var(--gold); }

/* ── Highlight boxes ── */
.highlight-box {
  background: linear-gradient(135deg, rgba(255,78,0,0.1), rgba(255,78,0,0.05));
  border: 1px solid rgba(255,78,0,0.3);
  border-radius: var(--radius);
  padding: 24px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .navbar-nav { display: none; }
  .navbar-nav.open { display: flex; flex-direction: column; align-items: flex-start; width: 100%; padding-bottom: 10px; }
  .navbar-inner { flex-wrap: wrap; }
  .nav-hamburger { display: block; }
}
@media (max-width: 600px) {
  .hero { min-height: 420px; }
  .hero-content { padding: 60px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  h1 { font-size: 1.5rem; }
}

/* ── 404 ── */
.page-404 {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}
.err-code { font-size: 8rem; font-weight: 900; color: var(--primary); line-height: 1; }
.err-msg { font-size: 1.5rem; color: var(--text-m); margin: .5rem 0 1.5rem; }

/* ── Utility ── */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-s); }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.mb-3 { margin-bottom: 2rem; }
.d-flex { display: flex; }
.gap-2 { gap: 1rem; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.fw-bold { font-weight: 700; }
.tag {
  display: inline-block;
  background: rgba(255,78,0,0.15);
  color: var(--primary);
  border-radius: 4px;
  padding: 2px 9px;
  font-size: .78rem;
  font-weight: 600;
  margin-right: 6px;
  margin-bottom: 6px;
}
