/* =========================================================
   me88 Singapore – Global Stylesheet
   Brand: me88 | Domain: me88fifasg.com
   Colors: #FF4E00 (orange) | #171718 (dark) | #FFFFFF
   ========================================================= */

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

:root {
  --orange:    #FF4E00;
  --amber:     #F88C00;
  --dark:      #171718;
  --dark2:     #1E1E1F;
  --dark3:     #2A2A2B;
  --dark4:     #333334;
  --text:      #E8E8E8;
  --text-muted:#A0A0A0;
  --white:     #FFFFFF;
  --gold:      #FFD700;
  --radius:    8px;
  --radius-lg: 16px;
  --shadow:    0 4px 24px rgba(0,0,0,.45);
  --transition:all .25s ease;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', 'Noto Sans', Arial, sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}
a { color: var(--orange); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--amber); }
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.8rem,4vw,2.8rem); }
h2 { font-size: clamp(1.4rem,3vw,2rem); }
h3 { font-size: clamp(1.1rem,2.5vw,1.4rem); }
p  { margin-bottom: 1rem; color: var(--text); }
ul,ol { padding-left: 1.4rem; margin-bottom: 1rem; }
li { margin-bottom: .4rem; }
section { padding: 60px 0; }

/* ---- Container ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 900px; margin: 0 auto; padding: 0 20px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 28px; border-radius: var(--radius);
  font-weight: 700; font-size: .95rem; cursor: pointer;
  border: 2px solid transparent; transition: var(--transition);
  text-transform: uppercase; letter-spacing: .5px;
}
.btn-primary {
  background: linear-gradient(135deg,var(--orange),var(--amber));
  color: var(--white);
}
.btn-primary:hover { filter: brightness(1.15); color: var(--white); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,78,0,.4); }
.btn-outline {
  background: transparent; border-color: var(--orange); color: var(--orange);
}
.btn-outline:hover { background: var(--orange); color: var(--white); }
.btn-lg { padding: 16px 40px; font-size: 1.05rem; }
.btn-sm { padding: 8px 18px; font-size: .85rem; }

/* ---- Badges ---- */
.badge {
  display: inline-block; padding: 4px 12px; border-radius: 20px;
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
}
.badge-hot { background: var(--orange); color: #fff; }
.badge-new { background: #00b894; color: #fff; }
.badge-popular { background: var(--gold); color: #000; }

/* ===== HEADER / NAV ===== */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(23,23,24,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,78,0,.2);
  box-shadow: 0 2px 20px rgba(0,0,0,.5);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 20px;
}
.header-logo img { height: 44px; width: auto; }
.site-nav ul { display: flex; list-style: none; gap: 4px; padding: 0; margin: 0; }
.site-nav a {
  display: block; padding: 8px 14px; border-radius: var(--radius);
  color: var(--text); font-weight: 600; font-size: .9rem;
  transition: var(--transition);
}
.site-nav a:hover, .site-nav a.active { color: var(--orange); background: rgba(255,78,0,.1); }
.header-cta { display: flex; gap: 10px; align-items: center; }
.hamburger { display: none; background: none; border: none; cursor: pointer; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: var(--transition); }

/* ===== HERO SLIDER ===== */
.hero-slider { position: relative; overflow: hidden; border-radius: 0; }
.slides { display: flex; transition: transform .6s ease; }
.slide { min-width: 100%; position: relative; }
.slide img { width: 100%; height: 420px; object-fit: cover; }
.slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg,rgba(23,23,24,.85) 40%,transparent);
  display: flex; align-items: center;
}
.slide-content { max-width: 520px; padding: 40px; }
.slide-content h1 { color: var(--white); margin-bottom: 16px; }
.slide-content p { color: rgba(255,255,255,.85); margin-bottom: 24px; font-size: 1.1rem; }
.slide-content .btn-group { display: flex; gap: 12px; flex-wrap: wrap; }
.slider-dots { position: absolute; bottom: 18px; 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: var(--transition); border: none; }
.dot.active { background: var(--orange); transform: scale(1.3); }
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.5); border: 1px solid rgba(255,78,0,.3);
  color: var(--white); width: 44px; height: 44px; border-radius: 50%;
  font-size: 1.2rem; cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.slider-btn:hover { background: var(--orange); }
.slider-prev { left: 16px; }
.slider-next { right: 16px; }

/* ===== MARQUEE / TICKER ===== */
.ticker-wrap {
  background: linear-gradient(90deg,var(--orange),var(--amber));
  overflow: hidden; white-space: nowrap; padding: 10px 0;
}
.ticker-content { display: inline-block; animation: ticker 40s linear infinite; }
.ticker-content span { margin: 0 40px; font-weight: 600; color: #fff; font-size: .9rem; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== SECTION HEADINGS ===== */
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { color: var(--white); margin-bottom: 12px; }
.section-header p { color: var(--text-muted); max-width: 620px; margin: 0 auto; }
.section-header .divider {
  width: 60px; height: 3px;
  background: linear-gradient(90deg,var(--orange),var(--amber));
  margin: 16px auto 0; border-radius: 2px;
}
.section-header.left-align { text-align: left; }
.section-header.left-align .divider { margin-left: 0; }

/* ===== GAME CARDS ===== */
.games-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 24px; }
.game-card {
  background: var(--dark2); border-radius: var(--radius-lg);
  overflow: hidden; transition: var(--transition); border: 1px solid rgba(255,255,255,.06);
  cursor: pointer;
}
.game-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(255,78,0,.3); }
.game-card-img { position: relative; overflow: hidden; }
.game-card-img img { width: 100%; height: 180px; object-fit: cover; transition: transform .4s; }
.game-card:hover .game-card-img img { transform: scale(1.05); }
.game-card-badge { position: absolute; top: 12px; left: 12px; }
.game-card-body { padding: 18px; }
.game-card-body h3 { color: var(--white); margin-bottom: 8px; font-size: 1rem; }
.game-card-body p { color: var(--text-muted); font-size: .875rem; margin-bottom: 12px; }
.provider-tag { font-size: .75rem; color: var(--orange); font-weight: 600; }

/* ===== CATEGORY ICONS ===== */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(150px,1fr)); gap: 16px; }
.category-card {
  background: var(--dark2); border-radius: var(--radius-lg); padding: 28px 16px;
  text-align: center; transition: var(--transition); border: 1px solid rgba(255,255,255,.06);
  cursor: pointer;
}
.category-card:hover { transform: translateY(-4px); border-color: var(--orange); background: var(--dark3); }
.category-card img { width: 64px; height: 64px; object-fit: contain; margin: 0 auto 12px; }
.category-card span { color: var(--text); font-weight: 600; font-size: .9rem; }

/* ===== PROMOTIONS ===== */
.promo-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(320px,1fr)); gap: 24px; }
.promo-card {
  background: var(--dark2); border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid rgba(255,255,255,.06); transition: var(--transition);
}
.promo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(255,78,0,.3); }
.promo-card-img { position: relative; }
.promo-card-img img { width: 100%; height: 200px; object-fit: cover; }
.promo-card-body { padding: 20px; }
.promo-card-body h3 { color: var(--white); margin-bottom: 8px; }
.promo-card-body p { color: var(--text-muted); font-size: .9rem; margin-bottom: 16px; }
.promo-meta { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: var(--text-muted); margin-top: 8px; }

/* ===== STATS / TRUST ===== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); gap: 24px; }
.stat-card {
  background: var(--dark2); border-radius: var(--radius-lg); padding: 28px 20px;
  text-align: center; border: 1px solid rgba(255,78,0,.15);
}
.stat-number { font-size: 2.5rem; font-weight: 800; color: var(--orange); line-height: 1; }
.stat-label { color: var(--text-muted); margin-top: 8px; font-size: .9rem; }

/* ===== PROVIDERS ===== */
.providers-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(140px,1fr)); gap: 16px; align-items: center; }
.provider-logo {
  background: var(--dark2); border-radius: var(--radius); padding: 16px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.06); transition: var(--transition);
}
.provider-logo:hover { border-color: var(--orange); }
.provider-logo img { height: 36px; width: auto; object-fit: contain; filter: grayscale(.5); transition: var(--transition); }
.provider-logo:hover img { filter: grayscale(0); }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--dark2); border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
}
.faq-question {
  width: 100%; text-align: left; padding: 18px 20px; background: none;
  border: none; color: var(--white); font-weight: 600; font-size: 1rem;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  transition: var(--transition);
}
.faq-question:hover { color: var(--orange); }
.faq-question .faq-icon { transition: transform .3s; font-size: 1.2rem; color: var(--orange); }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .4s ease, padding .3s; }
.faq-answer.open { max-height: 400px; }
.faq-answer-inner { padding: 0 20px 20px; color: var(--text-muted); line-height: 1.8; }

/* ===== TABLE ===== */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; }
th { background: linear-gradient(135deg,var(--orange),var(--amber)); color: #fff; padding: 14px 18px; text-align: left; font-size: .9rem; }
td { padding: 12px 18px; border-bottom: 1px solid rgba(255,255,255,.06); font-size: .9rem; }
tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: rgba(255,255,255,.03); }
tr:hover td { background: rgba(255,78,0,.05); }

/* ===== FEATURES / CONTENT BLOCKS ===== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap: 24px; }
.feature-card {
  background: var(--dark2); border-radius: var(--radius-lg); padding: 28px 22px;
  border: 1px solid rgba(255,255,255,.06); transition: var(--transition);
}
.feature-card:hover { border-color: rgba(255,78,0,.3); transform: translateY(-4px); }
.feature-icon { font-size: 2.4rem; margin-bottom: 14px; }
.feature-card h3 { color: var(--white); margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: .9rem; margin: 0; }

/* ===== CTA BANNER ===== */
.cta-section {
  background: linear-gradient(135deg,#1a0a00 0%,var(--dark2) 50%,#1a0a00 100%);
  border-top: 1px solid rgba(255,78,0,.2); border-bottom: 1px solid rgba(255,78,0,.2);
  text-align: center; padding: 80px 20px;
}
.cta-section h2 { color: var(--white); margin-bottom: 16px; }
.cta-section p { color: var(--text-muted); max-width: 600px; margin: 0 auto 32px; font-size: 1.05rem; }
.cta-section .btn-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== BREADCRUMB ===== */
.breadcrumb { padding: 14px 0; }
.breadcrumb ol { display: flex; list-style: none; padding: 0; gap: 8px; align-items: center; font-size: .875rem; }
.breadcrumb li::after { content: "›"; margin-left: 8px; color: var(--text-muted); }
.breadcrumb li:last-child::after { display: none; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb .current { color: var(--orange); }

/* ===== PAGE HERO ===== */
.page-hero {
  background: linear-gradient(135deg,rgba(23,23,24,1) 0%,rgba(42,30,18,1) 100%);
  padding: 60px 0 48px; border-bottom: 1px solid rgba(255,78,0,.15);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; top: -50%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle,rgba(255,78,0,.12) 0%,transparent 70%);
  pointer-events: none;
}
.page-hero h1 { color: var(--white); margin-bottom: 14px; }
.page-hero p { color: var(--text-muted); max-width: 640px; font-size: 1.05rem; }

/* ===== PAYMENT ICONS ===== */
.payment-icons { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.payment-icon img { height: 30px; width: auto; filter: brightness(.8); transition: var(--transition); }
.payment-icon:hover img { filter: brightness(1.1); }

/* ===== TRUST BADGES ===== */
.trust-strip {
  background: var(--dark2); border-top: 1px solid rgba(255,255,255,.05);
  padding: 24px 0;
}
.trust-inner { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: center; }
.trust-badge { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--text-muted); }
.trust-badge img { height: 36px; width: auto; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--dark2); border-top: 1px solid rgba(255,255,255,.07);
  padding: 60px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { color: var(--text-muted); font-size: .9rem; margin-top: 16px; max-width: 300px; }
.footer-col h4 { color: var(--white); margin-bottom: 16px; font-size: .95rem; text-transform: uppercase; letter-spacing: .5px; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-muted); font-size: .9rem; }
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07); padding: 20px 0;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
}
.footer-bottom p { color: var(--text-muted); font-size: .8rem; margin: 0; }
.footer-payments { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.footer-payments img { height: 22px; width: auto; opacity: .6; filter: grayscale(.4); transition: var(--transition); }
.footer-payments img:hover { opacity: 1; filter: grayscale(0); }

/* ===== NOTIFICATION ===== */
.notification-bar {
  background: linear-gradient(90deg,var(--orange),var(--amber));
  text-align: center; padding: 10px; font-size: .875rem; font-weight: 600; color: #fff;
}

/* ===== 404 PAGE ===== */
.error-page { min-height: 80vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.error-code { font-size: clamp(6rem,15vw,10rem); font-weight: 900; color: var(--orange); line-height: 1; }
.error-page h2 { color: var(--white); margin: 16px 0; }
.error-page p { color: var(--text-muted); max-width: 480px; margin: 0 auto 32px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .site-nav, .header-cta .btn-outline { display: none; }
  .hamburger { display: block; }
  .slide img { height: 260px; }
  .slide-content { padding: 20px; }
  .slide-content h1 { font-size: 1.4rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  section { padding: 40px 0; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .games-grid { grid-template-columns: repeat(2,1fr); }
  .promo-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .header-logo img { height: 34px; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .games-grid { grid-template-columns: 1fr; }
  .btn-lg { padding: 14px 24px; font-size: 1rem; }
  .slide img { height: 200px; }
}

/* ===== MOBILE NAV OVERLAY ===== */
.mobile-nav {
  display: none; position: fixed; inset: 0; background: rgba(23,23,24,.98);
  z-index: 2000; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { font-size: 1.4rem; color: var(--text); font-weight: 700; }
.mobile-nav a:hover { color: var(--orange); }
.mobile-nav-close { position: absolute; top: 20px; right: 20px; background: none; border: none; color: var(--white); font-size: 2rem; cursor: pointer; }

/* ===== UTILITIES ===== */
.text-orange { color: var(--orange); }
.text-white  { color: var(--white); }
.text-muted  { color: var(--text-muted); }
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.bg-dark3 { background: var(--dark3); }
.separator { height: 1px; background: rgba(255,255,255,.07); margin: 40px 0; }

/* ===== CONTENT PROSE ===== */
.prose h2 { color: var(--white); margin: 2rem 0 1rem; padding-bottom: .5rem; border-bottom: 1px solid rgba(255,78,0,.2); }
.prose h3 { color: var(--orange); margin: 1.5rem 0 .75rem; }
.prose p  { color: var(--text); margin-bottom: 1rem; }
.prose ul, .prose ol { margin-bottom: 1rem; }
.prose li { color: var(--text); }
.prose strong { color: var(--white); }
.prose a { color: var(--orange); }
.prose a:hover { text-decoration: underline; }
.prose blockquote {
  border-left: 3px solid var(--orange); padding-left: 16px;
  color: var(--text-muted); font-style: italic; margin: 1.5rem 0;
}
