/* me88 - Online Casino Singapore | me88fishing.com */

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: #171718;
  color: #ffffff;
  line-height: 1.65;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
a:hover { color: #ff4e00; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
h1,h2,h3,h4,h5,h6 { line-height: 1.25; font-weight: 700; }

/* === CSS VARIABLES === */
:root {
  --orange: #ff4e00;
  --orange2: #f88c00;
  --bg-dark: #171718;
  --bg-card: #1e1e1f;
  --bg-card2: #252526;
  --bg-section: #111112;
  --border: #2e2e30;
  --text: #ffffff;
  --text-muted: #aaaaaa;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(0,0,0,0.4);
  --gradient: linear-gradient(135deg, #ff4e00, #f88c00);
}

/* === HEADER / NAV === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #111112;
  border-bottom: 2px solid var(--orange);
  box-shadow: 0 2px 20px rgba(255,78,0,0.2);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo-wrap a { display: flex; align-items: center; gap: 10px; }
.logo-wrap img { height: 44px; width: auto; }
.logo-wrap span { font-size: 1.1rem; font-weight: 700; color: var(--orange); letter-spacing: 1px; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #ccc;
  border-radius: 6px;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--orange);
  background: rgba(255,78,0,0.1);
}
.main-nav .nav-hot {
  background: var(--gradient);
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
}
.main-nav .nav-hot:hover { opacity: 0.85; color: #fff; background: var(--gradient); }

.header-btns { display: flex; gap: 10px; align-items: center; }
.btn-login {
  padding: 9px 22px;
  border: 1.5px solid var(--orange);
  color: var(--orange);
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  transition: all 0.2s;
  cursor: pointer;
}
.btn-login:hover { background: var(--orange); color: #fff; }
.btn-register {
  padding: 9px 22px;
  background: var(--gradient);
  color: #fff;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-register:hover { opacity: 0.85; color: #fff; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 5px; }
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: 0.3s; }

/* === HERO SLIDER === */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: #000;
}
.slides { display: flex; transition: transform 0.5s ease; }
.slide {
  min-width: 100%;
  position: relative;
}
.slide img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}
.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  padding: 60px 40px 30px;
}
.slide-caption h2 { font-size: 2rem; margin-bottom: 8px; }
.slide-caption p { color: #ccc; font-size: 1rem; margin-bottom: 18px; }
.slider-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.dot {
  width: 10px; height: 10px;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
}
.dot.active { background: var(--orange); }
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 10;
}
.slider-btn:hover { background: var(--orange); }
.slider-prev { left: 15px; }
.slider-next { right: 15px; }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
}
.btn-primary:hover { opacity: 0.88; color: #fff; }
.btn-outline {
  border: 2px solid var(--orange);
  color: var(--orange);
  background: transparent;
}
.btn-outline:hover { background: var(--orange); color: #fff; }
.btn-sm { padding: 8px 18px; font-size: 0.84rem; }

/* === SECTIONS === */
.section { padding: 70px 20px; }
.section-dark { background: var(--bg-section); }
.section-card { background: var(--bg-card); }
.container { max-width: 1280px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 45px; }
.section-header h2 { font-size: 2rem; margin-bottom: 10px; }
.section-header p { color: var(--text-muted); max-width: 640px; margin: 0 auto; font-size: 1rem; }
.section-header .tag {
  display: inline-block;
  background: var(--gradient);
  color: #fff;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

/* === NOTICE BAR === */
.notice-bar {
  background: var(--gradient);
  padding: 10px 20px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
}
.notice-bar a { color: #fff; text-decoration: underline; }

/* === GAME CATEGORY CARDS === */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.game-card {
  background: var(--bg-card2);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
}
.game-card:hover { transform: translateY(-6px); box-shadow: 0 10px 30px rgba(255,78,0,0.2); border-color: var(--orange); }
.game-card img { width: 100%; height: 160px; object-fit: cover; }
.game-card-body { padding: 14px 16px; }
.game-card-body h3 { font-size: 1rem; margin-bottom: 5px; }
.game-card-body p { font-size: 0.82rem; color: var(--text-muted); }
.game-card-body .badge {
  display: inline-block;
  background: var(--gradient);
  color: #fff;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 8px;
}

/* === PROVIDER GRID === */
.provider-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.provider-card {
  background: var(--bg-card2);
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
}
.provider-card:hover { border-color: var(--orange); background: rgba(255,78,0,0.06); }
.provider-card img { height: 36px; width: auto; object-fit: contain; filter: brightness(0.9); }
.provider-card:hover img { filter: none; }
.provider-card span { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; text-align: center; }

/* === FISHING PROVIDER CARDS === */
.fishing-provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.fishing-provider-card {
  background: var(--bg-card2);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.25s;
}
.fishing-provider-card:hover { transform: translateY(-5px); border-color: var(--orange); box-shadow: 0 8px 28px rgba(255,78,0,0.15); }
.fishing-provider-card .card-top {
  background: linear-gradient(135deg, #0d1b2a, #1a3a4a);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.fishing-provider-card .card-top::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' opacity='0.05'%3E%3Ccircle cx='50' cy='50' r='40' stroke='%23ff4e00' stroke-width='2' fill='none'/%3E%3C/svg%3E") center/60px;
}
.fishing-provider-card .card-top h3 { font-size: 1.25rem; position: relative; }
.fishing-provider-card .card-top .game-count {
  background: var(--gradient);
  color: #fff;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  position: relative;
}
.fishing-provider-card .card-body { padding: 18px; }
.fishing-provider-card .card-body p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 14px; }
.fishing-provider-card .games-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.fishing-provider-card .games-list span {
  background: rgba(255,78,0,0.1);
  color: var(--orange);
  border: 1px solid rgba(255,78,0,0.2);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* === PROMOTIONS GRID === */
.promo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.promo-card {
  background: var(--bg-card2);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.25s;
}
.promo-card:hover { transform: translateY(-5px); border-color: var(--orange); }
.promo-card img { width: 100%; height: 180px; object-fit: cover; }
.promo-card-body { padding: 20px; }
.promo-card-body .promo-tag {
  display: inline-block;
  background: var(--gradient);
  color: #fff;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.promo-card-body h3 { font-size: 1.1rem; margin-bottom: 8px; }
.promo-card-body p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 16px; }

/* === FEATURES GRID === */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.feature-item {
  background: var(--bg-card2);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  text-align: center;
  transition: border-color 0.2s;
}
.feature-item:hover { border-color: var(--orange); }
.feature-item .icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, rgba(255,78,0,0.15), rgba(248,140,0,0.15));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.6rem;
}
.feature-item h3 { font-size: 1rem; margin-bottom: 8px; }
.feature-item p { font-size: 0.85rem; color: var(--text-muted); }

/* === PAYMENT ROW === */
.payment-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}
.payment-icon {
  background: var(--bg-card2);
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.payment-icon img { height: 28px; width: auto; object-fit: contain; filter: brightness(0.9); }

/* === TRUST BADGES === */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
  padding: 30px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 30px 0;
}
.trust-row img { height: 40px; width: auto; opacity: 0.8; transition: opacity 0.2s; }
.trust-row img:hover { opacity: 1; }

/* === FAQ === */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.faq-q {
  padding: 18px 22px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s;
  user-select: none;
}
.faq-q:hover { color: var(--orange); }
.faq-q .arrow { transition: transform 0.3s; font-size: 0.8rem; }
.faq-item.open .faq-q { color: var(--orange); }
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0 22px;
}
.faq-item.open .faq-a { max-height: 500px; padding: 0 22px 18px; }

/* === CONTENT SECTION === */
.content-block h2 { font-size: 1.6rem; margin-bottom: 14px; }
.content-block h3 { font-size: 1.2rem; margin: 20px 0 10px; color: var(--orange); }
.content-block p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 14px; line-height: 1.75; }
.content-block ul { margin: 10px 0 16px 20px; list-style: disc; }
.content-block ul li { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 8px; }

/* === BREADCRUMB === */
.breadcrumb {
  padding: 14px 20px;
  background: var(--bg-section);
  font-size: 0.82rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.breadcrumb .container { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb span { color: var(--text-muted); }

/* === PAGE HERO === */
.page-hero {
  background: linear-gradient(135deg, #0d1b2a 0%, #171718 60%);
  padding: 60px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(255,78,0,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero h1 { font-size: 2.5rem; margin-bottom: 12px; position: relative; }
.page-hero h1 span { color: var(--orange); }
.page-hero p { font-size: 1.05rem; color: var(--text-muted); max-width: 680px; margin: 0 auto 24px; position: relative; }

/* === STATS ROW === */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin: 40px 0;
}
.stat-item {
  text-align: center;
  padding: 24px 16px;
  background: var(--bg-card2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.stat-item .value { font-size: 2rem; font-weight: 900; color: var(--orange); }
.stat-item .label { font-size: 0.82rem; color: var(--text-muted); margin-top: 5px; }

/* === TWO COL LAYOUT === */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }
@media (max-width: 768px) { .two-col { grid-template-columns: 1fr; gap: 30px; } .two-col.reverse { direction: ltr; } }

/* === FOOTER === */
.site-footer {
  background: #0a0a0b;
  border-top: 1px solid var(--border);
  padding: 60px 20px 30px;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1280px;
  margin: 0 auto 40px;
}
.footer-brand img { height: 40px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; margin-bottom: 16px; max-width: 300px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-size: 0.9rem;
}
.footer-social a:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.footer-col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; font-weight: 700; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--text-muted); font-size: 0.85rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--orange); }
.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 25px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-bottom p { font-size: 0.8rem; }
.footer-certs { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.footer-certs img { height: 30px; width: auto; opacity: 0.7; }

/* === 404 PAGE === */
.error-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}
.error-page .err-num {
  font-size: 9rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 20px;
}
.error-page h1 { font-size: 2rem; margin-bottom: 14px; }
.error-page p { color: var(--text-muted); max-width: 480px; margin: 0 auto 30px; }

/* === BACK TO TOP === */
#back-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px; height: 44px;
  background: var(--gradient);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: var(--shadow);
  transition: opacity 0.2s;
}
#back-top:hover { opacity: 0.85; }
#back-top.show { display: flex; }

/* === MISC UTILITY === */
.text-orange { color: var(--orange); }
.text-center { text-align: center; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
@media (max-width: 768px) {
  .main-nav { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: #111112; border-top: 1px solid var(--border); padding: 16px; gap: 4px; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 16px; width: 100%; }
  .hamburger { display: flex; }
  .hero-slider .slide img { height: 260px; }
  .slide-caption h2 { font-size: 1.3rem; }
  .page-hero h1 { font-size: 1.8rem; }
  .section-header h2 { font-size: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .fishing-provider-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .header-btns .btn-login { display: none; }
  .game-grid { grid-template-columns: 1fr 1fr; }
  .promo-grid { grid-template-columns: 1fr; }
}
