/* M2win Online Casino Malaysia: base styles (m2win.com brand) */
:root {
  --brand: #F65F24;
  --brand-hover: #DB4A12;
  --ink: #231A15;
  --line: #EFE3DA;
  --bg: #FFFFFF;
  --tint-50: #FEF1EB;
  --tint-100: #FCDCCE;
  --shadow: 0 8px 30px rgba(246, 95, 36, 0.12);
  --shadow-soft: 0 4px 20px rgba(35, 26, 21, 0.06);
  --radius: 16px;
  --max: 1120px;
  --header-h: 70px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 0.6em; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; color: #4a3f38; }
ul { margin: 0; padding-left: 1.2em; }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.accent { color: var(--brand); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2rem, 1440px);
  margin-inline: auto;
}
.logo img { height: 32px; width: auto; }
.nav-desktop {
  display: none;
  gap: 1.25rem;
  align-items: center;
  font-weight: 600;
  font-size: 0.9rem;
}
.nav-desktop a { color: var(--ink); }
.nav-desktop a:hover { color: var(--brand); }
.header-actions { display: flex; align-items: center; gap: 0.6rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--brand);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(246, 95, 36, 0.35);
}
.btn-primary:hover { background: var(--brand-hover); color: #fff !important; }
.btn-outline {
  background: #fff;
  color: var(--ink) !important;
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--brand); color: var(--brand) !important; }
.btn-lg { padding: 0.9rem 1.75rem; font-size: 0.95rem; }
.btn-menu {
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
}
.btn-menu:hover { border-color: var(--brand); color: var(--brand); }

/* Mobile drawer */
.drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(35, 26, 21, 0.4);
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s;
  z-index: 150;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(320px, 88vw);
  background: #fff;
  z-index: 160;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  padding: 1.25rem;
  overflow-y: auto;
  box-shadow: -8px 0 30px rgba(0,0,0,0.1);
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.drawer nav a {
  display: block;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.drawer nav a:hover, .drawer nav a:focus { background: var(--tint-50); color: var(--brand); }
.drawer .help-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8a7a70;
  margin: 1rem 0.9rem 0.4rem;
  font-weight: 700;
}

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--tint-50) 0%, #fff 100%);
  padding: 2rem 0 3rem;
}
.hero-banner {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}
.hero-banner img { width: 100%; aspect-ratio: 1920 / 520; object-fit: cover; }
.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.2fr 0.8fr; }
  .nav-desktop { display: flex; }
}
.hero-copy .lead { font-size: 1.05rem; max-width: 52ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.hero-side {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}
.hero-side img { border-radius: 12px; margin-bottom: 1rem; }
.pill-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.pill {
  background: var(--tint-50);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--tint-100);
}

/* Sections */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--tint-50); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.section-head p { margin-bottom: 0; }

.provider-tags {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem;
}
.provider-tags span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
}

.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
  .card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--tint-50);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.9rem;
  font-weight: 800;
}
.card p { font-size: 0.92rem; margin-bottom: 0; }
.card .meta { margin-top: 0.75rem; font-size: 0.78rem; color: #8a7a70; font-weight: 600; }

.steps { counter-reset: step; display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.guide-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
}
.guide-box ol { padding-left: 1.2em; margin: 0 0 1em; }
.guide-box li { margin-bottom: 0.5em; color: #4a3f38; }
.note {
  background: var(--tint-50);
  border-left: 3px solid var(--brand);
  padding: 0.9rem 1rem;
  border-radius: 0 10px 10px 0;
  font-size: 0.9rem;
  margin-top: 1rem;
}

.download-grid {
  display: grid; gap: 2rem; align-items: center;
}
@media (min-width: 800px) { .download-grid { grid-template-columns: 1fr 1fr; } }
.feature-list { list-style: none; padding: 0; }
.feature-list li {
  display: flex; gap: 0.75rem; align-items: flex-start;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  color: #4a3f38;
}
.feature-list li:last-child { border-bottom: 0; }
.feature-list strong { color: var(--ink); display: block; font-size: 0.95rem; }
.check {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  margin-top: 2px;
}

.payments-strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem;
  align-items: center;
}
.pay-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  min-width: 100px;
  box-shadow: var(--shadow-soft);
}
.pay-item img { width: 48px; height: 48px; object-fit: contain; }
.pay-item span { font-size: 0.7rem; font-weight: 700; color: #6b5c54; text-align: center; }

.rg-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
}
.rg-box ul { color: #4a3f38; }
.badge-18 {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}

.seo-blurb {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 3rem 0;
  font-size: 0.92rem;
}
.seo-blurb h2 { font-size: 1.2rem; }
.seo-blurb h3 { font-size: 1rem; margin-top: 1.5rem; color: var(--ink); }
.seo-blurb p { font-size: 0.9rem; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: #e8ddd4;
  padding: 3rem 0 1.5rem;
  font-size: 0.9rem;
}
.site-footer a { color: #f0e6de; }
.site-footer a:hover { color: var(--brand); }
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-bottom: 2.5rem;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.footer-brand img { height: 28px; width: auto; margin-bottom: 0.9rem; filter: brightness(1.05); }
.footer-brand p { color: #c4b5a8; font-size: 0.85rem; }
.footer-col h4 {
  color: #fff;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.9rem;
  font-weight: 700;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.45rem; }
.footer-payments {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem;
}
.footer-payments img {
  width: 36px; height: 36px;
  background: #fff;
  border-radius: 8px;
  padding: 4px;
  object-fit: contain;
}
.socials { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.socials a {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: rgba(255,255,255,0.08);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
  color: #a8988c;
  font-size: 0.8rem;
}
.footer-bottom .age { font-weight: 800; color: #fff; margin-right: 0.35rem; }

.cta-band {
  background: linear-gradient(135deg, var(--brand) 0%, #e04a1a 100%);
  color: #fff;
  padding: 2.5rem 0;
  text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: 0.5rem; }
.cta-band p { color: rgba(255,255,255,0.9); margin-bottom: 1.25rem; }
.cta-band .btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.7);
  color: #fff !important;
}
.cta-band .btn-outline:hover { background: #fff; color: var(--brand) !important; border-color: #fff; }
.cta-band .btn-primary {
  background: #fff;
  color: var(--brand) !important;
  box-shadow: none;
}
.cta-band .btn-primary:hover { background: var(--tint-50); }

@media (max-width: 480px) {
  .btn { padding: 0.6rem 1.1rem; font-size: 0.8rem; }
}


/* Inner pages (About / Contact / Privacy) */
.page-main { padding-bottom: 2rem; }
.page-hero {
  background: linear-gradient(180deg, var(--tint-50) 0%, #fff 100%);
  border-bottom: 1px solid var(--line);
  padding: 2rem 0 1.75rem;
}
.page-hero .breadcrumb {
  font-size: 0.85rem;
  font-weight: 600;
  color: #8a7a70;
  margin: 0 0 0.75rem;
}
.page-hero .breadcrumb a { color: var(--ink); }
.page-hero .lead { font-size: 1.05rem; max-width: 46rem; }
.page-hero .meta-line {
  font-size: 0.85rem;
  color: #8a7a70;
  margin: 0.5rem 0 0;
}
.prose { max-width: 720px; }
.prose h2 { margin-top: 1.75rem; }
.prose h3 { margin-top: 1.25rem; }
.prose ul, .prose ol { margin: 0 0 1.25rem; color: #4a3f38; }
.prose li { margin-bottom: 0.4rem; }
.page-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.contact-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.25rem 0 1.75rem;
}
@media (min-width: 768px) {
  .contact-cards { grid-template-columns: repeat(3, 1fr); }
}
.contact-card { display: flex; flex-direction: column; gap: 0.5rem; }
.contact-card .btn { margin-top: auto; align-self: flex-start; }
