/* ============================================================
   BerjayaSama — style.css  (single shared stylesheet)
   Dark green theme | Mobile-first | Breakpoints: 480px, 880px
   ============================================================ */

:root {
  --brand:      #1a7a4a;
  --brand-dark: #145c37;
  --gold:       #f5c518;
  --bg:         #ffffff;
  --text:       #1a1a1a;
  --muted:      #666666;
  --border:     #e5e5e5;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #fff;
  background: linear-gradient(160deg, #1a7a4a 0%, #0d4a2c 60%, #082e1a 100%);
  min-height: 100vh;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { padding-left: 1.4rem; }

/* ── Header ── */
#site-header {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(90deg, #0d2e1a 0%, #1a5c36 50%, #0d2e1a 100%);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: box-shadow .2s;
}
#site-header.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,.4); }
.header-inner {
  display: flex; align-items: center; gap: 20px;
  padding: 0 20px; height: 64px; max-width: 1200px; margin: 0 auto;
}
.header-logo img { height: 38px; width: auto; }
.header-nav-left {
  display: flex; gap: 24px; margin-left: 32px;
}
.header-nav-left a {
  font-family: 'Nunito', sans-serif; font-weight: 700; font-size: .88rem;
  color: rgba(255,255,255,.75); transition: color .2s; text-decoration: none;
}
.header-nav-left a:hover,
.header-nav-left a.active { color: #fff; }
.header-ctas { display: flex; gap: 10px; align-items: center; margin-left: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Nunito', sans-serif; font-weight: 800; font-size: .88rem;
  padding: 0 18px; height: 40px; border-radius: 6px;
  cursor: pointer; white-space: nowrap; text-decoration: none;
  border: 2px solid transparent; transition: background .2s, border-color .2s;
}
.btn-primary { background: var(--gold); color: #1a1a1a; border-color: var(--gold); }
.btn-primary:hover { background: #e0b010; border-color: #e0b010; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-white { background: var(--gold); color: #1a1a1a; border-color: var(--gold); }
.btn-white:hover { background: #e0b010; border-color: #e0b010; }
.btn-ghost-white {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.45);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Nunito', sans-serif; font-weight: 800; font-size: .88rem;
  padding: 0 18px; height: 40px; border-radius: 6px;
  cursor: pointer; white-space: nowrap; text-decoration: none;
  border: 2px solid rgba(255,255,255,.45); transition: background .2s, border-color .2s;
}
.btn-ghost-white:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.7); }
.btn-lg { height: 50px; padding: 0 30px; font-size: .98rem; }

/* Mobile play btn — visible on mobile, hidden on desktop */
.mobile-play-btn { display: none !important; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px; margin-left: auto;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: #fff; border-radius: 2px; transition: transform .25s, opacity .25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
#mobile-nav {
  display: none; flex-direction: column;
  background: #0d2e1a; border-top: 1px solid rgba(255,255,255,.08);
  padding: 8px 0 16px;
}
#mobile-nav.open { display: flex; }
#mobile-nav a {
  font-family: 'Nunito', sans-serif; font-weight: 700; font-size: .95rem;
  color: rgba(255,255,255,.8); padding: 13px 20px;
  border-bottom: 1px solid rgba(255,255,255,.06); transition: background .15s;
  text-decoration: none;
}
#mobile-nav a:last-child { border-bottom: none; }
#mobile-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
#mobile-nav .mob-playnow {
  margin: 12px 20px 0; background: var(--gold); color: #1a1a1a;
  border-radius: 6px; text-align: center; padding: 13px 20px;
}

/* ── Hero Slider ── */
#hero-slider {
  position: relative; width: 100%;
  aspect-ratio: 16/6; max-height: 560px; min-height: 200px;
  overflow: hidden; background: #000;
}
.slider-track { display: flex; height: 100%; transition: transform .5s ease; }
.slide { flex: 0 0 100%; height: 100%; }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.15); backdrop-filter: blur(4px);
  color: #fff; border: 1px solid rgba(255,255,255,.3);
  width: 40px; height: 40px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; z-index: 10; transition: background .2s;
}
.slider-arrow:hover { background: rgba(255,255,255,.3); }
.slider-prev { left: 14px; } .slider-next { right: 14px; }
.slider-dots {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 10;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.4); border: none; cursor: pointer; transition: .25s;
}
.dot.active { background: #fff; width: 22px; border-radius: 4px; }

/* Hero CTAs strip below slider */
#hero-ctas {
  display: flex; justify-content: center; gap: 14px;
  padding: 18px 16px; background: transparent;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

/* ── CTA Strip ── */
.cta-strip {
  background: transparent; padding: 24px 16px;
  display: flex; align-items: center; justify-content: center;
  gap: 14px; flex-wrap: wrap;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.cta-strip p {
  font-family: 'Nunito', sans-serif; font-weight: 700; font-size: .95rem;
  color: rgba(255,255,255,.85); margin: 0;
}

/* ── Stats Row ── */
.stats-row {
  background: transparent; padding: 24px 20px 32px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.stats-inner {
  max-width: 860px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat-item { text-align: center; padding: 0 12px; border-right: 1px solid rgba(255,255,255,.25); }
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: 'Nunito', sans-serif; font-weight: 900;
  font-size: 1.9rem; color: #fff; line-height: 1.1;
}
.stat-label { font-size: .8rem; color: rgba(255,255,255,.7); margin-top: 3px; }

/* ── Provider Strip (game page) ── */
#provider-strip {
  padding: 16px 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: rgba(0,0,0,.18);
  text-align: center;
}
.provider-strip-label {
  font-family: 'Nunito', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin: 0 0 10px;
}
.provider-pills {
  display: flex; gap: 8px; flex-wrap: wrap;
  justify-content: center;
  margin: 0 auto; max-width: 960px;
}
.provider-pill {
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.8);
  font-family: 'Nunito', sans-serif; font-weight: 700; font-size: .78rem;
  padding: 6px 14px; border-radius: 20px;
  border: 1px solid rgba(255,255,255,.15); white-space: nowrap;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.provider-pill:hover {
  background: rgba(245,197,24,.15); color: var(--gold);
  border-color: rgba(245,197,24,.4);
}

/* ── SEO Content ── */
#seo-content {
  padding: 40px 20px 60px; background: transparent;
  border-top: 1px solid rgba(255,255,255,.12);
}
.content-wrap {
  max-width: 800px; margin: 0 auto;
  background: #fff; border-radius: 12px;
  padding: 40px 44px;
  box-shadow: 0 4px 32px rgba(0,0,0,.15);
}
#seo-content h1 {
  font-family: 'Nunito', sans-serif; font-weight: 900;
  font-size: clamp(1.4rem, 3.5vw, 2.1rem); color: #1a1a1a;
  margin-bottom: 1rem; line-height: 1.25;
}
#seo-content h2 {
  font-family: 'Nunito', sans-serif; font-weight: 800;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem); color: #1a1a1a;
  margin: 2rem 0 .6rem;
}
#seo-content h3 {
  font-family: 'Nunito', sans-serif; font-weight: 700;
  font-size: clamp(1rem, 2vw, 1.15rem); color: #1a1a1a;
  margin: 1.4rem 0 .4rem;
}
#seo-content p { color: #444; margin-bottom: 1rem; font-size: .94rem; line-height: 1.75; }
#seo-content ul, #seo-content ol { padding-left: 1.4rem; margin-bottom: 1rem; }
#seo-content li { color: #444; font-size: .94rem; margin-bottom: .35rem; }
#seo-content a:not(.btn) {
  color: var(--brand); text-decoration: underline;
  text-underline-offset: 3px; text-decoration-thickness: 1px;
}
#seo-content a:not(.btn):hover { color: var(--brand-dark); }

/* Table */
.table-wrap { overflow-x: auto; margin: 1.25rem 0; border-radius: 8px; border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 480px; }
th {
  background: var(--brand); color: #fff;
  font-family: 'Nunito', sans-serif; font-weight: 700;
  padding: 10px 14px; text-align: left;
}
td { padding: 9px 14px; border-bottom: 1px solid var(--border); color: #444; }
tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: #f7faf8; }

/* Steps list */
.steps-list { list-style: none; padding: 0; counter-reset: steps; }
.steps-list li {
  counter-increment: steps; padding-left: 2.4rem;
  position: relative; margin-bottom: .75rem;
  color: #444; font-size: .94rem; line-height: 1.75;
}
.steps-list li::before {
  content: counter(steps); position: absolute; left: 0; top: 2px;
  background: var(--brand); color: #fff;
  font-family: 'Nunito', sans-serif; font-weight: 800; font-size: .8rem;
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* FAQ */
.faq-list { margin-top: 1rem; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-question {
  width: 100%; background: none; border: none;
  padding: 15px 44px 15px 18px; text-align: left;
  font-family: 'Nunito', sans-serif; font-weight: 700; font-size: .93rem;
  color: #1a1a1a; cursor: pointer; position: relative; transition: background .15s;
}
.faq-question:hover { background: #e8f5ee; }
.faq-question::after {
  content: '+'; position: absolute; right: 18px; top: 50%;
  transform: translateY(-50%); font-size: 1.3rem;
  color: var(--brand); transition: transform .25s;
}
.faq-item.open .faq-question::after { transform: translateY(-50%) rotate(45deg); }
.faq-answer { display: none; padding: 0 18px 14px; }
.faq-item.open .faq-answer { display: block; }
.faq-answer p { color: #666; font-size: .9rem; margin: 0; }

/* Fade-up animation */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity .5s ease, transform .5s ease; }
.fade-up.visible { opacity: 1; transform: none; }

/* ── Footer ── */
#site-footer { background: #0a0a0a; }
.footer-top { background: #0d2e1a; padding: 44px 20px 36px; }
.footer-top-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px;
}
.footer-brand img { margin-bottom: 12px; }
.footer-brand p { font-size: .86rem; color: rgba(255,255,255,.5); line-height: 1.65; }
.footer-links h4, .footer-account h4 {
  font-family: 'Nunito', sans-serif; font-weight: 700;
  color: #fff; margin-bottom: 14px; font-size: .88rem;
  text-transform: uppercase; letter-spacing: .06em;
}
.footer-links ul, .footer-account ul { list-style: none; padding: 0; }
.footer-links li, .footer-account li { margin-bottom: 9px; }
.footer-links a, .footer-account a { color: rgba(255,255,255,.5); font-size: .85rem; transition: color .2s; }
.footer-links a:hover, .footer-account a:hover { color: #fff; }
.footer-payments {
  background: #111; padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.footer-payments-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.footer-payments .label {
  font-family: 'Nunito', sans-serif; font-size: .72rem; font-weight: 700;
  color: rgba(255,255,255,.3); text-transform: uppercase;
  letter-spacing: .08em; margin-right: 4px;
}
.pay-badge {
  font-family: 'Nunito', sans-serif; font-weight: 600; font-size: .78rem;
  padding: 5px 12px; border-radius: 4px;
  background: rgba(255,255,255,.07); color: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.1);
}
.footer-bottom { background: #0a0a0a; padding: 14px 20px; text-align: center; font-size: .78rem; color: #444; line-height: 1.9; }
.footer-bottom-inner { max-width: 1100px; margin: 0 auto; }

/* ── Responsive ── */
@media (max-width: 880px) {
  .header-nav-left { display: none; }
  .header-ctas .btn-ghost-white,
  .header-ctas .btn-white { display: none; }
  .header-ctas .mobile-play-btn { display: inline-flex !important; }
  .hamburger { display: flex; }
  .cta-strip { flex-direction: column; gap: 10px; padding: 18px 16px; text-align: center; }
  .btn-lg { width: 100%; max-width: 320px; justify-content: center; }
  .stats-inner { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-top: 1px solid rgba(255,255,255,.15); padding: 14px 0; }
  .stat-item:first-child { border-top: none; padding-top: 0; }
  .content-wrap { padding: 24px 20px; border-radius: 8px; }
  .footer-top-inner { grid-template-columns: 1fr; gap: 28px; }
  .provider-pills { gap: 6px; }
}

@media (max-width: 480px) {
  #hero-slider { aspect-ratio: 16/9; }
  .content-wrap { padding: 20px 16px; }
  #seo-content { padding: 28px 12px 40px; }
}

/* ============================================================
   DOWNLOAD SECTION (download page only)
   ============================================================ */

#download-section {
  background: rgba(0,0,0,.25);
  padding: 32px 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.download-section-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.download-text h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 4px;
}

.download-text p {
  color: rgba(255,255,255,.75);
  font-size: 0.95rem;
  margin: 0;
}

.download-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .download-section-inner {
    flex-direction: column;
    text-align: center;
  }
  .download-btns {
    width: 100%;
    flex-direction: column;
    align-items: center;
  }
  .download-btns .btn-lg {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */

#login-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 64px - 280px);
  padding: 48px 16px;
}

.login-card {
  background: #fff;
  border-radius: 14px;
  padding: 44px 40px 36px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 8px 40px rgba(0,0,0,.25);
  color: #1a1a1a;
}

.login-logo {
  text-align: center;
  margin-bottom: 20px;
}

.login-title {
  font-family: 'Nunito', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  text-align: center;
  color: var(--brand-dark);
  margin: 0 0 6px;
}

.login-subtitle {
  text-align: center;
  color: #666;
  font-size: 0.95rem;
  margin: 0 0 28px;
}

.login-form { display: flex; flex-direction: column; gap: 18px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #333;
}

.form-group input[type="text"],
.form-group input[type="password"] {
  height: 48px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 1rem;
  font-family: 'Lato', sans-serif;
  color: #1a1a1a;
  background: #fafafa;
  transition: border-color .2s;
  width: 100%;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
}

.input-pw-wrap { position: relative; }

.input-pw-wrap input { padding-right: 48px; }

.pw-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: #999;
  padding: 0;
  line-height: 1;
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: #555;
}

.remember-me input[type="checkbox"] { accent-color: var(--brand); cursor: pointer; }

.forgot-pw {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.forgot-pw:hover { color: var(--brand-dark); }

.btn-login {
  height: 50px;
  font-size: 1.05rem;
  font-weight: 800;
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: #bbb;
  font-size: 0.85rem;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e8e8e8;
}

.login-register {
  text-align: center;
}

.login-register p {
  color: #666;
  font-size: 0.9rem;
  margin: 0 0 10px;
}

.btn-register {
  width: 100%;
  justify-content: center;
  height: 48px;
  font-weight: 700;
}

.login-support {
  text-align: center;
  margin-top: 18px;
  font-size: 0.85rem;
  color: #888;
}

.login-support a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 480px) {
  .login-card { padding: 32px 20px 28px; }
  .login-title { font-size: 1.5rem; }
}
