/* Maxim88 Slot SG - Green & White theme */

:root {
  --green-900: #064e3b;
  --green-800: #065f46;
  --green-700: #047857;
  --green-600: #059669;
  --green-500: #10b981;
  --green-400: #34d399;
  --green-100: #d1fae5;
  --green-50:  #ecfdf5;
  --white:     #ffffff;
  --cream:     #f8fafc;
  --gray-100:  #f1f5f9;
  --gray-200:  #e2e8f0;
  --gray-400:  #94a3b8;
  --gray-600:  #475569;
  --gray-800:  #1e293b;
  --gray-900:  #0f172a;
  --gold:      #f5b301;
  --gold-dark: #d69600;
  --shadow-sm: 0 2px 8px rgba(6,78,59,0.06);
  --shadow-md: 0 8px 24px rgba(6,78,59,0.10);
  --shadow-lg: 0 16px 40px rgba(6,78,59,0.14);
  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;
  --max-width: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
               'Microsoft YaHei', 'Noto Sans SC', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

html[lang="zh"] body {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', 'Inter', sans-serif;
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--green-700); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--green-900); }

h1, h2, h3, h4 { color: var(--gray-900); font-weight: 700; line-height: 1.25; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: .5rem; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--green-900);
  color: var(--green-100);
  font-size: .85rem;
  padding: 8px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar-info { display: flex; gap: 16px; flex-wrap: wrap; }
.topbar-info span::before { content: "• "; color: var(--green-400); }
.lang-switch { display: flex; gap: 4px; }
.lang-switch button {
  background: transparent;
  color: var(--green-100);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 3px 10px;
  font-size: .8rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all .15s ease;
}
.lang-switch button.active,
.lang-switch button:hover {
  background: var(--green-500);
  border-color: var(--green-500);
  color: var(--white);
}

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--green-800);
  text-decoration: none;
}
.logo img { height: 40px; width: auto; display: block; }
.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--green-500), var(--green-800));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: -.5px;
}
.site-footer .logo img { height: 32px; filter: brightness(0) invert(1); }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
}
.main-nav a {
  color: var(--gray-800);
  font-weight: 500;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  display: inline-block;
  transition: all .15s ease;
}
.main-nav a:hover,
.main-nav a.active {
  background: var(--green-50);
  color: var(--green-800);
}

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

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  font-size: 1.5rem;
  color: var(--green-800);
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: .95rem;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 0;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-align: center;
  white-space: nowrap;
}
.btn-primary {
  background: var(--green-600);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(5,150,105,.35);
}
.btn-primary:hover {
  background: var(--green-700);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(5,150,105,.45);
}
.btn-gold {
  background: var(--gold);
  color: var(--gray-900);
  box-shadow: 0 4px 14px rgba(245,179,1,.35);
}
.btn-gold:hover {
  background: var(--gold-dark);
  color: var(--gray-900);
  transform: translateY(-1px);
}
.btn-outline {
  background: var(--white);
  color: var(--green-800);
  border: 2px solid var(--green-600);
}
.btn-outline:hover { background: var(--green-50); color: var(--green-900); }
.btn-lg { font-size: 1.05rem; padding: 16px 32px; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 80px 0 100px;
  background:
    radial-gradient(900px 500px at 15% -10%, var(--green-100) 0%, transparent 60%),
    radial-gradient(800px 600px at 100% 100%, var(--green-50) 0%, transparent 60%),
    var(--white);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green-500), var(--gold), var(--green-700));
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 60px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-100);
  color: var(--green-800);
  font-size: .85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 { margin-bottom: 20px; color: var(--gray-900); }
.hero h1 .accent { color: var(--green-700); }
.hero-sub {
  font-size: 1.15rem;
  color: var(--gray-600);
  margin-bottom: 28px;
  max-width: 560px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 500px;
}
.hero-stat {
  border-left: 3px solid var(--green-500);
  padding-left: 14px;
}
.hero-stat strong {
  display: block;
  font-size: 1.5rem;
  color: var(--green-800);
  font-weight: 800;
}
.hero-stat span { font-size: .85rem; color: var(--gray-600); }

.hero-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  border: 1px solid var(--green-100);
  position: relative;
}
.hero-card h3 {
  color: var(--green-800);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-card .bonus-amount {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--green-700);
  margin: 10px 0 4px;
}
.hero-card ul { list-style: none; margin: 16px 0 20px; }
.hero-card ul li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--gray-200);
  color: var(--gray-600);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-card ul li:last-child { border-bottom: 0; }
.hero-card ul li::before {
  content: "✓";
  color: var(--green-600);
  font-weight: 900;
  flex-shrink: 0;
}

/* ---------- Section base ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--cream); }
.section-green { background: var(--green-900); color: var(--white); }
.section-green h2 { color: var(--white); }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.section-head .eyebrow {
  color: var(--green-600);
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
  display: block;
}
.section-head p { color: var(--gray-600); font-size: 1.05rem; }

/* ---------- Provider grid ---------- */
.provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.provider-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  transition: all .2s ease;
  cursor: pointer;
}
.provider-card:hover {
  border-color: var(--green-500);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.provider-card .logo-box {
  width: 96px;
  height: 96px;
  margin: 0 auto 12px;
  border-radius: 16px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--green-700);
  border: 1px solid var(--gray-200);
  padding: 8px;
  overflow: hidden;
}
.provider-card .logo-box img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.provider-card h4 { color: var(--gray-900); font-size: 1rem; margin-bottom: 4px; }
.provider-card span { font-size: .8rem; color: var(--gray-600); }

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--white);
  padding: 32px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: all .2s ease;
}
.feature-card:hover {
  border-color: var(--green-400);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { color: var(--gray-600); font-size: .95rem; }

/* ---------- Bonus cards ---------- */
.bonus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.bonus-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  transition: all .2s ease;
}
.bonus-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.bonus-header {
  background: linear-gradient(135deg, var(--green-600), var(--green-800));
  color: var(--white);
  padding: 28px 24px;
  text-align: center;
  position: relative;
}
.bonus-header .ribbon {
  position: absolute;
  top: 12px;
  right: -4px;
  background: var(--gold);
  color: var(--gray-900);
  padding: 4px 12px;
  font-size: .75rem;
  font-weight: 700;
  border-radius: 4px 0 0 4px;
}
.bonus-header .amount {
  font-size: 2.25rem;
  font-weight: 900;
  margin: 6px 0;
  line-height: 1.1;
}
.bonus-header .name {
  font-size: .95rem;
  opacity: .9;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.bonus-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.bonus-body ul { list-style: none; margin-bottom: 20px; flex: 1; }
.bonus-body ul li {
  padding: 6px 0;
  font-size: .9rem;
  color: var(--gray-600);
  display: flex;
  gap: 8px;
}
.bonus-body ul li::before {
  content: "→";
  color: var(--green-600);
  font-weight: 700;
  flex-shrink: 0;
}

/* ---------- Trust bar ---------- */
.trust-bar {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  text-align: center;
}
.trust-item { padding: 0 12px; border-right: 1px solid var(--gray-200); }
.trust-item:last-child { border-right: 0; }
.trust-item strong {
  display: block;
  font-size: 1.6rem;
  color: var(--green-700);
  font-weight: 900;
  margin-bottom: 4px;
}
.trust-item span { color: var(--gray-600); font-size: .9rem; }

/* ---------- Game grid ---------- */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.game-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--gray-200);
  aspect-ratio: 3 / 4;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
  display: block;
  text-decoration: none;
  color: inherit;
}
.game-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.game-card img.game-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.game-card .game-cover {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--green-700);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: 1rem;
  text-align: center;
  padding: 16px;
}
.game-card .game-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,78,59,0.92) 0%, rgba(6,78,59,0) 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  color: var(--white);
}
.game-card .game-overlay h4 { color: var(--white); font-size: .95rem; margin-bottom: 2px; }
.game-card .game-overlay span { font-size: .75rem; opacity: .85; }

/* ---------- Payments / certificates row ---------- */
.logo-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.logo-pill {
  background: var(--white);
  border: 1px solid var(--gray-200);
  color: var(--gray-600);
  padding: 10px 20px;
  font-weight: 600;
  font-size: .9rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 90px;
  transition: all .15s ease;
}
.logo-pill:hover { border-color: var(--green-400); transform: translateY(-2px); }
.logo-pill img { max-height: 28px; max-width: 100px; object-fit: contain; display: block; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color .15s ease;
}
.faq-item[open] { border-color: var(--green-500); }
.faq-item summary {
  cursor: pointer;
  padding: 18px 24px;
  font-weight: 600;
  color: var(--gray-900);
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--green-600);
  font-size: 1.4rem;
  font-weight: 400;
  transition: transform .2s ease;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .answer {
  padding: 0 24px 20px;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  top: -50px; right: -50px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(245,179,1,0.25) 0%, transparent 70%);
  border-radius: 50%;
}
.cta-banner h2 { color: var(--white); }
.cta-banner p { margin: 12px 0 28px; opacity: .9; font-size: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p { margin: 16px 0; font-size: .9rem; line-height: 1.7; }
.footer-col h4 {
  color: var(--white);
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col a { color: var(--gray-400); font-size: .9rem; }
.footer-col a:hover { color: var(--green-400); }
.footer-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.footer-badge {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 6px 12px;
  font-size: .75rem;
  border-radius: var(--radius-sm);
  color: var(--gray-400);
}
.footer-trust {
  display: grid;
  grid-template-columns: 2fr 1fr 1.3fr;
  gap: 40px;
  padding: 32px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 20px;
}
.footer-trust h4 {
  color: var(--gray-400);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 14px;
  font-weight: 600;
}
.cert-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.cert-row img {
  height: 36px;
  width: auto;
  max-width: 110px;
  background: var(--white);
  padding: 6px 10px;
  border-radius: 6px;
  object-fit: contain;
  transition: transform .15s ease;
}
.cert-row img:hover { transform: scale(1.05); }
.ambassador-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.04);
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.08);
}
.ambassador-card img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.ambassador-card .ambassador-text strong {
  display: block;
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 2px;
}
.ambassador-card .ambassador-text span {
  color: var(--gray-400);
  font-size: .8rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  font-size: .85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 960px) {
  .footer-trust { grid-template-columns: 1fr; gap: 24px; }
}
.footer-bottom .rg-note {
  color: var(--green-400);
  font-weight: 600;
}
.footer-bottom .affiliate-disclosure {
  display: block;
  width: 100%;
  color: var(--gray-600);
  font-size: .75rem;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-style: italic;
}

/* ---------- Breadcrumb / page header ---------- */
.page-head {
  background: linear-gradient(135deg, var(--green-800), var(--green-900));
  color: var(--white);
  padding: 60px 0 50px;
  text-align: center;
}
.page-head h1 { color: var(--white); }
.page-head .breadcrumb {
  font-size: .85rem;
  opacity: .75;
  margin-bottom: 12px;
}
.page-head .breadcrumb a { color: var(--green-100); }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: 32px; }
.lang-hidden { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 50px 0 60px; }
  .hero-ctas { justify-content: center; }
  .hero-ctas .btn { flex: 1 1 auto; min-width: 220px; }
  .hero-stats { justify-content: center; margin-left: auto; margin-right: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 60px 0; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 12px; gap: 0; }
  .main-nav a { padding: 12px 16px; display: block; }
  .header-cta .btn-outline { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; }
  .trust-item { border-right: 0; border-bottom: 1px solid var(--gray-200); padding-bottom: 16px; }
  .trust-item:last-child { border-bottom: 0; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .cta-banner { padding: 40px 24px; }
}
