/* ===================================================
   ME88 - Trusted Online Casino Singapore 2026
   Primary: #ff4e00 | Gold: #ffb800 | Dark: #161616
   =================================================== */

:root {
  --primary: #ff4e00;
  --gold: #ffb800;
  --gradient: linear-gradient(39.71deg, #ff4e00 7.3%, #ffb800 100%);
  --dark: #161616;
  --dark-card: #1e1e1e;
  --dark-grey: #2c2c2c;
  --mid-grey: #8a8a8a;
  --light-grey: #bebebe;
  --border: #2f2f2f;
  --white: #ffffff;
  --text-light: #d6d6d6;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--dark);
  color: var(--white);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; transition: color var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* === UTILITY === */
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }
.text-center { text-align: center; }
.text-orange { color: var(--primary); }
.text-gold { color: var(--gold); }
.badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-orange { background: var(--gradient); color: #fff; }
.badge-dark { background: var(--dark-grey); color: var(--gold); }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: 8px; font-size: 15px; font-weight: 700;
  transition: all var(--transition); letter-spacing: 0.3px;
}
.btn-primary { background: var(--gradient); color: #fff; }
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255,78,0,0.35); }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: var(--gold); color: #fff; }
.btn-lg { padding: 16px 40px; font-size: 17px; border-radius: 10px; }
.btn-sm { padding: 8px 18px; font-size: 13px; }

/* === HEADER / NAV === */
.header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(22,22,22,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
}
.header-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 30px; width: auto; }
.logo-text { font-size: 22px; font-weight: 900; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav-link {
  padding: 8px 14px; border-radius: 6px; font-size: 14px; font-weight: 600;
  color: var(--light-grey); transition: all var(--transition); white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--white); background: var(--dark-grey); }
.nav-link.active { color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn { padding: 9px 22px; font-size: 14px; }

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: all var(--transition); }

.mobile-nav {
  display: none; position: fixed; top: 70px; left: 0; right: 0; bottom: 0;
  background: var(--dark); z-index: 999; overflow-y: auto; padding: 20px;
}
.mobile-nav.open { display: block; }
.mobile-nav .nav-link { display: block; padding: 14px 16px; font-size: 16px; border-bottom: 1px solid var(--border); }
.mobile-nav .header-actions { margin-top: 20px; flex-direction: column; }
.mobile-nav .header-actions .btn { width: 100%; }

/* === HERO / BANNER === */
.hero {
  position: relative; overflow: hidden;
  min-height: 500px; display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #0d0d0d 0%, #1a0a00 50%, #0d0d0d 100%);
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22,22,22,0.92) 0%, rgba(22,22,22,0.4) 60%, transparent 100%); }
.hero-content { position: relative; z-index: 2; max-width: 600px; padding: 60px 20px; }
.hero-badge { margin-bottom: 16px; }
.hero h1 { font-size: clamp(28px, 4vw, 52px); font-weight: 900; line-height: 1.15; margin-bottom: 20px; }
.hero h1 span { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { font-size: 17px; color: var(--text-light); margin-bottom: 32px; max-width: 480px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 40px; flex-wrap: wrap; }
.hero-stat-num { font-size: 28px; font-weight: 900; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-stat-label { font-size: 13px; color: var(--mid-grey); margin-top: 2px; }

/* === SECTION HEADINGS === */
.section-header { margin-bottom: 40px; }
.section-header h2 { font-size: clamp(22px, 3vw, 38px); font-weight: 900; margin-bottom: 10px; }
.section-header p { color: var(--text-light); max-width: 600px; }
.section-header.text-center p { margin: 0 auto; }
.divider { width: 60px; height: 4px; background: var(--gradient); border-radius: 2px; margin: 12px 0; }
.divider-center { margin: 12px auto; }

/* === CARDS === */
.card {
  background: var(--dark-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(255,78,0,0.15); }
.card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.card-body { padding: 20px; }
.card-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.card-text { color: var(--text-light); font-size: 14px; }

/* === GRID LAYOUTS === */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }

/* === GAME CATEGORY CARDS === */
.game-cat-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4/3; cursor: pointer;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.game-cat-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(255,78,0,0.2); border-color: var(--primary); }
.game-cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.game-cat-card:hover img { transform: scale(1.06); }
.game-cat-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}
.game-cat-label {
  position: absolute; bottom: 16px; left: 16px; right: 16px;
  font-size: 18px; font-weight: 800;
}
.game-cat-label span { display: block; font-size: 12px; color: var(--gold); font-weight: 600; margin-top: 2px; }

/* === PROMO CARDS === */
.promo-card {
  background: var(--dark-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all var(--transition);
}
.promo-card:hover { border-color: var(--primary); box-shadow: 0 8px 32px rgba(255,78,0,0.2); }
.promo-card-img { width: 100%; aspect-ratio: 16/7; object-fit: cover; }
.promo-card-body { padding: 20px; }
.promo-card-title { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.promo-amount { font-size: 26px; font-weight: 900; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 8px; }
.promo-card-text { color: var(--text-light); font-size: 13px; margin-bottom: 14px; }
.promo-tag { display: inline-block; padding: 3px 10px; border-radius: 4px; font-size: 11px; font-weight: 700; background: rgba(255,78,0,0.15); color: var(--primary); border: 1px solid rgba(255,78,0,0.3); margin-bottom: 10px; }

/* === PROVIDER LOGOS === */
.providers-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.provider-logo {
  background: var(--dark-grey); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--light-grey);
  transition: all var(--transition); white-space: nowrap;
}
.provider-logo:hover { border-color: var(--primary); color: var(--white); }

/* === FEATURES === */
.feature-card {
  background: var(--dark-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px; text-align: center;
  transition: all var(--transition);
}
.feature-card:hover { border-color: var(--primary); transform: translateY(-3px); }
.feature-icon { font-size: 40px; margin-bottom: 16px; }
.feature-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.feature-card p { color: var(--text-light); font-size: 14px; }

/* === VIP TIERS === */
.vip-tiers { display: flex; gap: 12px; flex-wrap: wrap; }
.vip-tier {
  flex: 1; min-width: 120px; padding: 20px 16px; text-align: center;
  border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--dark-card); transition: all var(--transition);
}
.vip-tier:hover { border-color: var(--gold); }
.vip-tier-icon { font-size: 32px; margin-bottom: 8px; }
.vip-tier-name { font-weight: 800; font-size: 14px; }
.vip-tier-min { font-size: 12px; color: var(--mid-grey); margin-top: 4px; }

/* === PAYMENT ICONS === */
.payment-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.payment-icon {
  background: var(--dark-grey); border: 1px solid var(--border);
  border-radius: 6px; padding: 8px 16px;
  font-size: 13px; font-weight: 600; color: var(--light-grey);
}

/* === TRUST BADGES === */
.trust-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.trust-badge {
  display: flex; align-items: center; gap: 8px;
  background: var(--dark-card); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 16px;
  font-size: 13px; font-weight: 600;
}
.trust-badge .icon { font-size: 20px; }

/* === FAQ === */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; cursor: pointer; font-weight: 700; font-size: 16px;
  gap: 16px;
}
.faq-question:hover { color: var(--primary); }
.faq-icon { font-size: 20px; color: var(--primary); flex-shrink: 0; transition: transform var(--transition); }
.faq-answer { padding: 0 0 20px; color: var(--text-light); display: none; font-size: 15px; line-height: 1.7; }
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* === TABLE === */
.table-wrapper { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; }
thead { background: var(--dark-grey); }
th { padding: 14px 16px; text-align: left; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--gold); }
td { padding: 14px 16px; font-size: 14px; color: var(--text-light); border-top: 1px solid var(--border); }
tr:hover td { background: rgba(255,78,0,0.04); }

/* === STEPS === */
.steps { display: flex; gap: 24px; flex-wrap: wrap; }
.step {
  flex: 1; min-width: 200px; background: var(--dark-card);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; position: relative;
}
.step-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gradient); display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 900; margin-bottom: 16px;
}
.step h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.step p { color: var(--text-light); font-size: 14px; }

/* === NOTICE BAR === */
.notice-bar {
  background: linear-gradient(90deg, rgba(255,78,0,0.12), rgba(255,184,0,0.1), rgba(255,78,0,0.12));
  border: 1px solid rgba(255,78,0,0.2); border-radius: 8px;
  padding: 14px 20px; display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--gold);
}

/* === TICKER === */
.ticker-wrap { background: var(--dark-grey); border-bottom: 1px solid var(--border); padding: 8px 0; overflow: hidden; }
.ticker { display: flex; gap: 40px; animation: ticker 30s linear infinite; white-space: nowrap; width: max-content; }
.ticker:hover { animation-play-state: paused; }
.ticker span { font-size: 13px; color: var(--light-grey); }
.ticker span strong { color: var(--gold); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* === BREADCRUMB === */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--mid-grey); padding: 16px 0; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { color: var(--border); }

/* === CONTENT ARTICLE === */
.article-content h2 { font-size: 26px; font-weight: 800; margin: 36px 0 14px; color: var(--white); }
.article-content h3 { font-size: 20px; font-weight: 700; margin: 28px 0 12px; color: var(--gold); }
.article-content p { color: var(--text-light); font-size: 15px; margin-bottom: 16px; line-height: 1.75; }
.article-content ul, .article-content ol { margin: 16px 0 20px 20px; color: var(--text-light); font-size: 15px; line-height: 1.75; }
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li { margin-bottom: 8px; }
.article-content strong { color: var(--white); font-weight: 700; }
.article-content a { color: var(--primary); }
.article-content a:hover { color: var(--gold); }
.article-content table { margin: 20px 0; }
.highlight-box {
  background: linear-gradient(135deg, rgba(255,78,0,0.08), rgba(255,184,0,0.05));
  border-left: 4px solid var(--primary); border-radius: 0 8px 8px 0;
  padding: 20px 24px; margin: 24px 0;
}

/* === RATING === */
.rating { display: flex; align-items: center; gap: 6px; }
.stars { color: var(--gold); font-size: 16px; letter-spacing: 2px; }
.rating-num { font-size: 14px; font-weight: 700; }
.rating-count { font-size: 13px; color: var(--mid-grey); }

/* === FOOTER === */
.footer { background: #0d0d0d; border-top: 1px solid var(--border); padding-top: 60px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--border); }
.footer-brand .logo-text { font-size: 26px; }
.footer-brand p { color: var(--mid-grey); font-size: 14px; margin: 16px 0 20px; line-height: 1.7; }
.footer-col h4 { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px; color: var(--gold); margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 14px; color: var(--mid-grey); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--white); }
.footer-middle { padding: 32px 0; border-bottom: 1px solid var(--border); }
.footer-middle h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--mid-grey); margin-bottom: 14px; }
.footer-bottom { padding: 24px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: gap; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { font-size: 13px; color: var(--mid-grey); }
.age-badge { background: var(--dark-grey); border: 2px solid var(--mid-grey); border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 900; color: var(--light-grey); }
.footer-badges { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* === SCROLL TO TOP === */
#scrollTop {
  position: fixed; bottom: 24px; right: 24px; z-index: 900;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gradient); color: #fff;
  display: none; align-items: center; justify-content: center;
  font-size: 18px; box-shadow: 0 4px 16px rgba(255,78,0,0.4);
  transition: all var(--transition);
}
#scrollTop.visible { display: flex; }
#scrollTop:hover { transform: translateY(-3px); }

/* === LIVE CHAT BUTTON === */
.live-chat-btn {
  position: fixed; bottom: 24px; left: 24px; z-index: 900;
  background: var(--gradient); color: #fff;
  border-radius: 50px; padding: 12px 22px;
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700;
  box-shadow: 0 4px 20px rgba(255,78,0,0.4);
  transition: all var(--transition);
}
.live-chat-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(255,78,0,0.5); }
.chat-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

/* === PAGE HERO (inner pages) === */
.page-hero {
  background: linear-gradient(135deg, #0d0a00 0%, #1a0800 50%, #0d0d0d 100%);
  padding: 60px 0; border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(255,78,0,0.12) 0%, transparent 70%);
}
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(26px, 3.5vw, 46px); font-weight: 900; margin-bottom: 12px; }
.page-hero p { color: var(--text-light); font-size: 17px; max-width: 640px; }

/* === GAME CARDS GRID === */
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.game-thumb {
  border-radius: var(--radius); overflow: hidden; position: relative;
  aspect-ratio: 3/4; background: var(--dark-card); border: 1px solid var(--border);
  transition: all var(--transition);
}
.game-thumb:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(255,78,0,0.2); }
.game-thumb img { width: 100%; height: 100%; object-fit: cover; }
.game-thumb-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.7);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--transition);
}
.game-thumb:hover .game-thumb-overlay { opacity: 1; }
.game-thumb-name { position: absolute; bottom: 0; left: 0; right: 0; padding: 8px 10px; font-size: 12px; font-weight: 700; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); }

/* === FILTER TABS === */
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.filter-tab {
  padding: 8px 20px; border-radius: 6px; font-size: 14px; font-weight: 600;
  background: var(--dark-grey); color: var(--light-grey); border: 1px solid var(--border);
  transition: all var(--transition); cursor: pointer;
}
.filter-tab.active, .filter-tab:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .hamburger { display: flex; }
  .hero { min-height: 400px; }
  .hero-content { padding: 40px 20px; }
  .hero-stats { gap: 20px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .steps { flex-direction: column; }
  .vip-tiers { gap: 8px; }
  .section { padding: 44px 0; }
  .games-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

@media (max-width: 480px) {
  .grid-4, .grid-6 { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 26px; }
  .btn-lg { padding: 13px 28px; font-size: 15px; }
  .live-chat-btn span { display: none; }
  .live-chat-btn { padding: 12px; border-radius: 50%; }
}

/* === PAGE-SPECIFIC === */
.sports-table td:first-child { font-weight: 700; color: var(--white); }
.odds-badge { background: rgba(255,184,0,0.1); color: var(--gold); border: 1px solid rgba(255,184,0,0.3); padding: 3px 8px; border-radius: 4px; font-size: 12px; font-weight: 700; }
.live-badge { background: rgba(34,197,94,0.15); color: #22c55e; border: 1px solid rgba(34,197,94,0.3); padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; animation: pulse 2s infinite; }
.hot-badge { background: rgba(255,78,0,0.15); color: var(--primary); border: 1px solid rgba(255,78,0,0.3); padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.new-badge { background: rgba(99,102,241,0.15); color: #818cf8; border: 1px solid rgba(99,102,241,0.3); padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; }

/* === 404 PAGE === */
.not-found { min-height: calc(100vh - 200px); display: flex; align-items: center; justify-content: center; text-align: center; }
.not-found-num { font-size: clamp(80px, 20vw, 180px); font-weight: 900; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; margin-bottom: 20px; }
.not-found h2 { font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.not-found p { color: var(--text-light); margin-bottom: 32px; max-width: 440px; margin-left: auto; margin-right: auto; }
