/* ============================================================
   me88 Casino SG - Global Stylesheet
   Domain: me88-casinosg.online
   Theme: Dark + Orange (#ff4e00) — mirrors me88 competitor palette
   ============================================================ */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:    #ff4e00;
  --primary-dk: #cc3e00;
  --bg:         #0d0d0d;
  --bg2:        #141414;
  --bg3:        #1e1e1e;
  --card:       #252525;
  --border:     #333333;
  --text:       #ffffff;
  --muted:      #b5b5b5;
  --gold:       #f0c040;
  --radius:     8px;
  --transition: .25s ease;
}

html { scroll-behavior: smooth; }

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

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dk); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ─── HEADER / NAV ─────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 999;
  background: #0a0a0a;
  border-bottom: 2px solid var(--primary);
  box-shadow: 0 2px 20px rgba(255,78,0,.25);
}

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

.site-logo img { height: 44px; width: auto; }
.site-logo a { display: flex; align-items: center; }

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

.main-nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: .9rem;
  padding: 8px 14px;
  border-radius: var(--radius);
  letter-spacing: .3px;
  transition: color var(--transition), background var(--transition);
}
.main-nav a:hover,
.main-nav a.active { color: var(--text); background: rgba(255,78,0,.15); }

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

.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .88rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}
.btn-outline {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-outline:hover { background: var(--primary); color: #fff; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-dk); border-color: var(--primary-dk); color: #fff; }

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

/* ─── HERO ──────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #0d0d0d 0%, #1a0500 50%, #0d0d0d 100%);
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(255,78,0,.15) 0%, transparent 70%);
}
.hero-inner { max-width: 800px; margin: 0 auto; position: relative; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.2; margin-bottom: 20px; }
.hero h1 span { color: var(--primary); }
.hero p { font-size: 1.1rem; color: var(--muted); margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-badge {
  display: flex; align-items: center; justify-content: center; gap: 20px;
  flex-wrap: wrap; margin-top: 40px;
}
.badge-item { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.badge-item strong { font-size: 1.5rem; color: var(--primary); }
.badge-item span { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }

/* ─── SECTIONS ──────────────────────────────────────────────── */
section { padding: 64px 24px; }
.section-inner { max-width: 1280px; margin: 0 auto; }

.section-title { text-align: center; margin-bottom: 48px; }
.section-title h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 12px; }
.section-title h2 span { color: var(--primary); }
.section-title p { color: var(--muted); max-width: 600px; margin: 0 auto; }

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

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: 0 8px 32px rgba(255,78,0,.15); }

.card-icon { font-size: 2.5rem; margin-bottom: 16px; }
.card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .95rem; }

/* Game Category Cards */
.game-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all var(--transition);
  display: flex; flex-direction: column;
}
.game-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: 0 8px 32px rgba(255,78,0,.2); }
.game-card-img {
  height: 160px;
  background: linear-gradient(135deg, #1e1e1e, #2a2a2a);
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
}
.game-card-body { padding: 20px; flex: 1; }
.game-card-body h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.game-card-body p { color: var(--muted); font-size: .9rem; margin-bottom: 14px; }
.game-card-body .btn { width: 100%; text-align: center; padding: 10px; }

/* ─── PROMO BANNER ───────────────────────────────────────────── */
.promo-banner {
  background: linear-gradient(90deg, var(--primary) 0%, #ff6a00 50%, #ff4e00 100%);
  border-radius: 12px;
  padding: 40px 32px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}
.promo-banner h3 { font-size: 1.8rem; font-weight: 800; }
.promo-banner p { opacity: .9; margin-top: 6px; }
.btn-white { background: #fff; color: var(--primary); border-color: #fff; font-weight: 700; }
.btn-white:hover { background: #f0f0f0; color: var(--primary-dk); }

/* ─── PROMO CARDS ────────────────────────────────────────────── */
.promo-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all var(--transition);
}
.promo-card:hover { border-color: var(--primary); box-shadow: 0 8px 32px rgba(255,78,0,.15); }
.promo-card-header {
  background: linear-gradient(135deg, var(--primary), #ff6a00);
  padding: 24px;
  text-align: center;
}
.promo-card-header .bonus-amount { font-size: 2rem; font-weight: 900; }
.promo-card-header p { opacity: .9; font-size: .9rem; }
.promo-card-body { padding: 20px; }
.promo-card-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.promo-card-body ul { color: var(--muted); font-size: .9rem; padding-left: 16px; list-style: disc; }
.promo-card-body ul li { margin-bottom: 4px; }
.promo-card-footer { padding: 0 20px 20px; }
.promo-card-footer .btn { width: 100%; text-align: center; }

/* ─── FAQ ─────────────────────────────────────────────────────  */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.faq-question {
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text);
}
.faq-question::after { content: '+'; font-size: 1.4rem; color: var(--primary); flex-shrink: 0; }
.faq-question.open::after { content: '−'; }
.faq-answer { color: var(--muted); margin-top: 12px; font-size: .95rem; display: none; }
.faq-answer.open { display: block; }

/* ─── TABLE ──────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: .9rem; }
th { background: var(--bg3); font-weight: 700; color: var(--primary); }
tr:hover td { background: rgba(255,78,0,.04); }

/* ─── STEPS ──────────────────────────────────────────────────── */
.steps { display: flex; flex-wrap: wrap; gap: 24px; counter-reset: steps; }
.step { flex: 1; min-width: 200px; background: var(--card); border-radius: 12px; padding: 28px; border: 1px solid var(--border); counter-increment: steps; position: relative; }
.step::before { content: counter(steps); position: absolute; top: -14px; left: 24px; background: var(--primary); color: #fff; font-weight: 900; font-size: .85rem; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.step h4 { font-weight: 700; margin-bottom: 8px; font-size: 1rem; }
.step p { color: var(--muted); font-size: .9rem; }

/* ─── PROVIDERS ──────────────────────────────────────────────── */
.provider-grid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.provider-tag {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 20px;
  font-size: .88rem;
  font-weight: 600;
  transition: all var(--transition);
}
.provider-tag:hover { border-color: var(--primary); color: var(--primary); }

/* ─── CONTENT PROSE ──────────────────────────────────────────── */
.prose h2 { font-size: 1.5rem; font-weight: 800; margin: 32px 0 14px; color: var(--text); }
.prose h3 { font-size: 1.15rem; font-weight: 700; margin: 24px 0 10px; color: var(--gold); }
.prose p { color: var(--muted); margin-bottom: 16px; font-size: .97rem; }
.prose ul, .prose ol { color: var(--muted); padding-left: 24px; margin-bottom: 16px; font-size: .97rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--text); }
.prose a { color: var(--primary); }
.prose a:hover { text-decoration: underline; }

/* ─── HIGHLIGHT BOXES ─────────────────────────────────────────── */
.highlight-box {
  background: rgba(255,78,0,.08);
  border-left: 4px solid var(--primary);
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  margin: 24px 0;
}
.highlight-box p { color: var(--text); margin: 0; }

/* ─── FOOTER ─────────────────────────────────────────────────── */
.site-footer {
  background: #080808;
  border-top: 1px solid var(--border);
  padding: 60px 24px 30px;
}
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand p { color: var(--muted); font-size: .9rem; margin-top: 16px; line-height: 1.6; }
.footer-col h4 { font-size: .9rem; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; color: var(--primary); }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--muted); font-size: .9rem; }
.footer-col ul li a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { color: var(--muted); font-size: .8rem; }
.footer-disclaimer { color: #666; font-size: .78rem; margin-top: 20px; line-height: 1.6; }

/* ─── TAGS / BADGES ──────────────────────────────────────────── */
.tag {
  display: inline-block;
  background: rgba(255,78,0,.12);
  color: var(--primary);
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ─── HERO PAGE VARIANTS ──────────────────────────────────────── */
.page-hero {
  padding: 60px 24px;
  background: linear-gradient(135deg, #0d0d0d, #1a0500);
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(1.8rem,4vw,2.8rem); font-weight: 800; margin-bottom: 14px; }
.page-hero h1 span { color: var(--primary); }
.page-hero p { color: var(--muted); max-width: 700px; margin: 0 auto 24px; font-size: 1.05rem; }

/* ─── BREADCRUMB ─────────────────────────────────────────────── */
.breadcrumb { max-width: 1280px; margin: 0 auto; padding: 14px 24px; font-size: .85rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb span { color: var(--primary); }

/* ─── 404 ─────────────────────────────────────────────────────── */
.error-page { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 40px 24px; }
.error-page h1 { font-size: 8rem; font-weight: 900; color: var(--primary); line-height: 1; }
.error-page h2 { font-size: 2rem; margin-bottom: 16px; }
.error-page p { color: var(--muted); margin-bottom: 32px; }

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .main-nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #0a0a0a; padding: 16px; gap: 4px; border-bottom: 1px solid var(--border); }
  .main-nav.open { display: flex; }
  .header-cta { display: none; }
  .header-inner { position: relative; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .promo-banner { flex-direction: column; text-align: center; }
  .hero { padding: 50px 16px; }
  section { padding: 40px 16px; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .hero-badge { gap: 12px; }
}

/* ─── UTILITY ────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--muted); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.mb-32 { margin-bottom: 32px; }
.py-4 { padding: 4px 0; }
.bg-alt { background: var(--bg2); }
.container { max-width: 1280px; margin: 0 auto; }
