/* ==========================================================================
   KLWINMYS — Main Stylesheet
   Brand: KLWIN Malaysia Review (BM)
   Color: Gold #f8b700 | Dark Navy #0a0e27 | Accent #ff3b3b
   ========================================================================== */

/* ---------- Font Awesome 6 Free (CDN auto-cascade to all pages) ---------- */
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css");

/* ---------- FA Icon utility classes ---------- */
.fa-icon-lg { font-size: 1.6rem; color: #0a0e27; }
.fa-icon-gold { color: #f8b700; }
.fa-icon-white { color: #fff; }
.fa-icon-success { color: #00d084; }
.fa-icon-warning { color: #ff9500; }
.fa-icon-danger { color: #ff3b3b; }
.icon-circle {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, #f8b700, #ff9500);
  border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: #0a0e27;
  box-shadow: 0 6px 18px rgba(248,183,0,.3);
  margin-bottom: 1rem;
}
.icon-circle-sm {
  width: 36px; height: 36px;
  background: rgba(248,183,0,.12);
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #f8b700; font-size: .95rem;
}
.icon-inline { color: #f8b700; margin-right: .3rem; }

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #e8eaf2;
  background: #0a0e27;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #f8b700; text-decoration: none; transition: color .2s ease; }
a:hover { color: #ffd54f; }
h1, h2, h3, h4 { font-family: 'Poppins', 'Inter', sans-serif; font-weight: 700; line-height: 1.25; margin: 0 0 .8rem; color: #fff; }
h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-top: 2.5rem; }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); margin-top: 1.5rem; }
p { margin: 0 0 1rem; }
ul, ol { padding-left: 1.4rem; }
li { margin-bottom: .4rem; }
strong { color: #fff; font-weight: 600; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.2rem; }

/* ---------- Topbar (18+ + Affiliate Notice) ---------- */
.topbar {
  background: #060912;
  border-bottom: 1px solid rgba(248,183,0,.15);
  font-size: .78rem;
  padding: .45rem 0;
  color: #9aa3bd;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.topbar .age-tag { background: #ff3b3b; color: #fff; font-weight: 700; padding: .15rem .5rem; border-radius: 3px; font-size: .7rem; }
.topbar .aff-note { opacity: .85; }

/* ---------- Header ---------- */
header.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(10,14,39,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(248,183,0,.2);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; padding: .8rem 1.2rem; max-width: 1180px; margin: 0 auto; gap: 1rem; }
.logo a { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.3rem; color: #f8b700; letter-spacing: -.5px; }
.logo a::before { content: ""; width: 32px; height: 32px; background: linear-gradient(135deg, #f8b700, #ff9500); border-radius: 7px; display: inline-block; box-shadow: 0 2px 10px rgba(248,183,0,.4); }

nav.main-nav ul { list-style: none; display: flex; gap: 1.3rem; margin: 0; padding: 0; align-items: center; }
nav.main-nav a { color: #e8eaf2; font-size: .92rem; font-weight: 500; padding: .4rem .2rem; position: relative; }
nav.main-nav a:hover, nav.main-nav a.active { color: #f8b700; }
nav.main-nav a.active::after { content: ""; position: absolute; bottom: -3px; left: 0; right: 0; height: 2px; background: #f8b700; border-radius: 2px; }

.btn { display: inline-block; padding: .7rem 1.4rem; border-radius: 8px; font-weight: 700; font-size: .92rem; text-align: center; transition: all .2s ease; cursor: pointer; border: none; }
.btn-primary { background: linear-gradient(135deg, #f8b700, #ff9500); color: #0a0e27; box-shadow: 0 4px 14px rgba(248,183,0,.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(248,183,0,.5); color: #0a0e27; }
.btn-secondary { background: transparent; color: #f8b700; border: 2px solid #f8b700; }
.btn-secondary:hover { background: #f8b700; color: #0a0e27; }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-block { display: block; width: 100%; }

.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: .5rem; }
.mobile-toggle span { display: block; width: 24px; height: 2px; background: #f8b700; margin: 5px 0; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, #0a0e27 0%, #131a4a 50%, #0a0e27 100%);
  padding: 4rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at top, rgba(248,183,0,.15) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; }
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero .subtitle { font-size: 1.15rem; color: #c5cbe1; margin-bottom: 1.8rem; max-width: 700px; margin-left: auto; margin-right: auto; }
.hero .ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.5rem; }

.trust-row { display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; font-size: .9rem; color: #c5cbe1; }
.trust-row .trust-item { display: flex; align-items: center; gap: .4rem; }
.trust-row .trust-item .icon { color: #f8b700; font-weight: 700; }

/* ---------- Sections ---------- */
section { padding: 3rem 0; }
section.alt { background: #0d1132; }
section h2 { text-align: center; margin-bottom: 2rem; }
section .lead { text-align: center; max-width: 720px; margin: 0 auto 2rem; color: #c5cbe1; font-size: 1.05rem; }

/* ---------- Cards Grid ---------- */
.grid { display: grid; gap: 1.2rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid-6 { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }

.card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(248,183,0,.15);
  border-radius: 12px;
  padding: 1.4rem;
  transition: all .2s ease;
}
.card:hover { border-color: rgba(248,183,0,.5); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.card h3 { margin-top: 0; color: #f8b700; }
.card p { color: #c5cbe1; font-size: .95rem; margin-bottom: .8rem; }

.game-card { text-align: center; padding: 1rem; background: rgba(255,255,255,.04); border-radius: 10px; border: 1px solid rgba(248,183,0,.1); transition: all .2s ease; }
.game-card:hover { border-color: #f8b700; transform: scale(1.03); }
.game-card img { border-radius: 8px; aspect-ratio: 1; object-fit: cover; margin-bottom: .6rem; background: #1a1f4a; }
.game-card .game-name { font-weight: 600; font-size: .9rem; color: #fff; }
.game-card .game-provider { font-size: .72rem; color: #9aa3bd; }
.game-card .game-rtp { font-size: .72rem; color: #f8b700; margin-top: .3rem; }

/* ---------- Tables ---------- */
.tbl-wrap { overflow-x: auto; margin: 1.5rem 0; }
table.styled {
  width: 100%; border-collapse: collapse;
  background: rgba(255,255,255,.03);
  border-radius: 10px; overflow: hidden;
  font-size: .92rem;
}
table.styled th, table.styled td { padding: .9rem 1rem; text-align: left; border-bottom: 1px solid rgba(248,183,0,.1); }
table.styled th { background: rgba(248,183,0,.1); color: #f8b700; font-weight: 700; text-transform: uppercase; font-size: .8rem; letter-spacing: .5px; }
table.styled tr:last-child td { border-bottom: none; }
table.styled tr:hover { background: rgba(248,183,0,.05); }
table.styled td.highlight { color: #f8b700; font-weight: 600; }

/* ---------- Bonus Info Box ---------- */
.info-box {
  background: linear-gradient(135deg, rgba(248,183,0,.1), rgba(255,149,0,.05));
  border-left: 4px solid #f8b700;
  padding: 1.2rem 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
}
.info-box.warning { border-left-color: #ff3b3b; background: linear-gradient(135deg, rgba(255,59,59,.1), rgba(255,59,59,.05)); }
.info-box.success { border-left-color: #00d084; background: linear-gradient(135deg, rgba(0,208,132,.1), rgba(0,208,132,.05)); }
.info-box h3, .info-box h4 { margin-top: 0; }

/* ---------- FAQ Accordion ---------- */
.faq-list { max-width: 850px; margin: 0 auto; }
.faq-item {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(248,183,0,.1);
  border-radius: 8px;
  margin-bottom: .8rem;
  overflow: hidden;
}
.faq-item summary {
  padding: 1.1rem 1.3rem;
  cursor: pointer;
  font-weight: 600;
  color: #fff;
  list-style: none;
  position: relative;
  padding-right: 3rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: #f8b700; transition: transform .2s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item[open] summary { color: #f8b700; }
.faq-content { padding: 0 1.3rem 1.2rem; color: #c5cbe1; line-height: 1.7; }
.faq-content p:last-child { margin-bottom: 0; }

/* ---------- CTA Section ---------- */
.cta-section {
  background: linear-gradient(135deg, #f8b700, #ff9500);
  color: #0a0e27;
  text-align: center;
  padding: 4rem 0;
  margin-top: 3rem;
}
.cta-section h2 { color: #0a0e27; }
.cta-section p { color: #1a1f4a; font-size: 1.1rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-section .btn-primary { background: #0a0e27; color: #f8b700; }
.cta-section .btn-primary:hover { background: #1a1f4a; color: #ffd54f; }

/* ---------- Author Card ---------- */
.author-card {
  display: flex; gap: 1.2rem; align-items: center;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(248,183,0,.15);
  border-radius: 10px;
  padding: 1.2rem;
  margin: 2rem 0;
}
.author-card img { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; border: 2px solid #f8b700; background: #1a1f4a; flex-shrink: 0; }
.author-card .author-info h4 { margin: 0 0 .3rem; }
.author-card .author-info .role { color: #f8b700; font-size: .85rem; margin-bottom: .3rem; }
.author-card .author-info p { font-size: .85rem; color: #9aa3bd; margin: 0; }

/* ---------- Page Byline (E-E-A-T) ---------- */
.page-byline {
  display: flex; align-items: center; gap: .6rem;
  font-size: .85rem; color: #9aa3bd;
  padding: .8rem 0;
  margin-bottom: .5rem;
  border-bottom: 1px solid rgba(248,183,0,.1);
}
.page-byline img { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #f8b700; object-fit: cover; flex-shrink: 0; }
.page-byline a { color: #f8b700; font-weight: 600; }
.page-byline .sep { opacity: .5; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding: 1rem 0; font-size: .85rem; color: #9aa3bd; }
.breadcrumbs a { color: #9aa3bd; }
.breadcrumbs a:hover { color: #f8b700; }
.breadcrumbs .sep { margin: 0 .5rem; opacity: .5; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: #060912;
  border-top: 1px solid rgba(248,183,0,.15);
  padding: 3rem 0 1rem;
  margin-top: 3rem;
  color: #9aa3bd;
}
footer .grid-4 { gap: 2rem; margin-bottom: 2rem; }
footer h4 { color: #f8b700; font-size: .95rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: .8px; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: .5rem; font-size: .9rem; }
footer a { color: #9aa3bd; }
footer a:hover { color: #f8b700; }

.footer-bottom {
  border-top: 1px solid rgba(248,183,0,.15);
  padding-top: 1.5rem;
  text-align: center;
  font-size: .8rem;
}
.footer-bottom .responsible {
  background: rgba(255,59,59,.1);
  border: 1px solid rgba(255,59,59,.3);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  color: #ffb3b3;
}
.footer-bottom .responsible strong { color: #ff3b3b; }
.footer-bottom .badges { display: flex; gap: .8rem; justify-content: center; align-items: center; margin: 1rem 0; flex-wrap: wrap; }
.footer-bottom .badge {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(248,183,0,.2);
  padding: .3rem .7rem;
  border-radius: 5px;
  font-size: .75rem;
  color: #c5cbe1;
}
.footer-bottom .badge.danger { background: rgba(255,59,59,.1); border-color: #ff3b3b; color: #ff3b3b; font-weight: 700; }

/* ---------- Floating CTA (Mobile) ---------- */
.floating-cta {
  position: fixed; bottom: 1rem; right: 1rem;
  display: none;
  background: linear-gradient(135deg, #f8b700, #ff9500);
  color: #0a0e27;
  padding: .9rem 1.4rem;
  border-radius: 50px;
  font-weight: 700;
  box-shadow: 0 8px 25px rgba(248,183,0,.5);
  z-index: 999;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ---------- Disclaimer Banner ---------- */
.disclaimer {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(248,183,0,.2);
  padding: 1rem;
  border-radius: 8px;
  font-size: .85rem;
  color: #c5cbe1;
  margin: 1.5rem 0;
}
.disclaimer strong { color: #f8b700; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .header-inner nav.main-nav { display: none; }
  .header-inner .btn { display: none; }
  .mobile-toggle { display: block; }
  .hero { padding: 2.5rem 0 3rem; }
  .hero .ctas { flex-direction: column; }
  .hero .ctas .btn { width: 100%; max-width: 320px; }
  section { padding: 2rem 0; }
  .floating-cta { display: inline-block; }
  .author-card { flex-direction: column; text-align: center; }
  .topbar .container { font-size: .7rem; }
  table.styled { font-size: .82rem; }
  table.styled th, table.styled td { padding: .6rem .5rem; }
}

/* ---------- Mobile Nav Drawer ---------- */
.mobile-menu {
  position: fixed; top: 0; right: -100%; width: 80%; max-width: 320px; height: 100vh;
  background: #0d1132; z-index: 1100; padding: 4rem 1.5rem 2rem;
  transition: right .3s ease;
  border-left: 1px solid rgba(248,183,0,.2);
}
.mobile-menu.open { right: 0; }
.mobile-menu ul { list-style: none; padding: 0; margin: 0; }
.mobile-menu li { margin-bottom: 1rem; border-bottom: 1px solid rgba(248,183,0,.1); padding-bottom: 1rem; }
.mobile-menu a { color: #e8eaf2; font-size: 1.05rem; font-weight: 500; }
.mobile-menu .close-btn {
  position: absolute; top: 1rem; right: 1.2rem;
  background: none; border: none; color: #f8b700; font-size: 1.8rem; cursor: pointer; padding: 0;
}
.mobile-menu .btn { margin-top: 1rem; width: 100%; }
.menu-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 1050; }
.menu-backdrop.show { display: block; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.text-gold { color: #f8b700; }
.text-muted { color: #9aa3bd; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* Preserve image aspect ratios for performance & CLS */
img[width][height] { height: auto; }

/* ---------- Batch 2 Card Visual Styles ---------- */
.payment-card-img { padding: 0; overflow: hidden; display: block; }
.payment-card-img img { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; transition: transform .3s ease; }
.payment-card-img:hover img { transform: scale(1.04); }
.payment-card-img .card-body { padding: 1.4rem; }
.payment-card-img .card-body h3 { margin-bottom: .4rem; }

.blog-thumb-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-bottom: 1px solid rgba(248,183,0,.15); display: block; transition: transform .3s ease; }
.blog-card:hover .blog-thumb-img { transform: scale(1.03); }

/* Print */
@media print {
  .topbar, .floating-cta, .mobile-toggle, header.site-header, footer.site-footer { display: none; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
}
