/* =========================================================
 * kkbd login - style-9805.css
 * Mobile-first (max-width 430px) styles for the kkbd login
 * gaming website. Bangla (bn-BD) content. All custom classes
 * use the "v500-" prefix to isolate the namespace.
 * Palette: #212F3D | #36454F | #708090 | #D2B48C
 * ========================================================= */

:root {
  --v500-primary: #212F3D;
  --v500-bg: #36454F;
  --v500-muted: #708090;
  --v500-accent: #D2B48C;
  --v500-accent-dark: #b7966a;
  --v500-text: #f3eee6;
  --v500-text-dim: #c7cdd2;
  --v500-card: #2a3744;
  --v500-card-2: #324252;
  --v500-line: rgba(210, 180, 140, 0.18);
  --v500-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  --v500-radius: 1.4rem;
}

* { box-sizing: border-box; }

html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--v500-primary);
  color: var(--v500-text);
  font-family: "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", system-ui, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--v500-accent); text-decoration: none; }

/* ===== Layout containers ===== */
.v500-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

.v500-wrapper {
  padding-top: 6.2rem;
  padding-bottom: 9rem;
}

/* ===== Header ===== */
.v500-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #1c2731 0%, var(--v500-primary) 100%);
  border-bottom: 1px solid var(--v500-line);
  box-shadow: var(--v500-shadow);
}

.v500-header-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.v500-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.v500-brand img {
  width: 28px;
  height: 28px;
  border-radius: 0.6rem;
}

.v500-brand b {
  font-size: 1.5rem;
  color: var(--v500-text);
  font-weight: 700;
  white-space: nowrap;
}

.v500-brand span { color: var(--v500-accent); }

.v500-head-actions { display: flex; align-items: center; gap: 0.5rem; }

.v500-menu-btn {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--v500-card);
  color: var(--v500-text);
  border: 1px solid var(--v500-line);
  border-radius: 0.8rem;
  font-size: 1.8rem;
  cursor: pointer;
}

/* ===== Buttons ===== */
.v500-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 38px;
  padding: 0 1.1rem;
  border-radius: 0.9rem;
  font-weight: 700;
  font-size: 1.3rem;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}

.v500-btn:active { transform: scale(0.95); }

.v500-btn-primary { background: linear-gradient(135deg, var(--v500-accent) 0%, var(--v500-accent-dark) 100%); color: #2a1d10; }
.v500-btn-primary:hover { filter: brightness(1.06); }

.v500-btn-ghost { background: var(--v500-card); color: var(--v500-text); border: 1px solid var(--v500-line); }

.v500-btn-block { width: 100%; min-height: 46px; font-size: 1.5rem; }

.v500-link {
  color: var(--v500-accent);
  font-weight: 700;
  border-bottom: 1px dashed rgba(210, 180, 140, 0.5);
}

.v500-link:hover { color: var(--v500-text); }

/* ===== Mobile expandable menu ===== */
.v500-mobile-menu {
  max-height: 0;
  overflow: hidden;
  background: var(--v500-primary);
  border-top: 1px solid transparent;
  transition: max-height .3s ease;
}

.v500-mobile-menu.v500-open {
  max-height: 480px;
  border-top-color: var(--v500-line);
}

.v500-mobile-menu-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 0.6rem 1rem 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.v500-mobile-menu a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0.9rem;
  background: var(--v500-card);
  border: 1px solid var(--v500-line);
  border-radius: 0.8rem;
  color: var(--v500-text);
  font-size: 1.3rem;
  min-height: 40px;
}

.v500-mobile-menu a i { color: var(--v500-accent); }

/* ===== Hero / Carousel ===== */
.v500-hero {
  position: relative;
  margin-top: 0.8rem;
  border-radius: var(--v500-radius);
  overflow: hidden;
  background: var(--v500-card);
  box-shadow: var(--v500-shadow);
}

.v500-hero-track { position: relative; aspect-ratio: 16/9; }

.v500-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .5s ease;
  cursor: pointer;
}

.v500-hero-slide.v500-active { opacity: 1; }

.v500-hero-slide img { width: 100%; height: 100%; object-fit: cover; }

.v500-hero-cap {
  position: absolute;
  left: 1rem; bottom: 1rem;
  background: rgba(33, 47, 61, 0.72);
  padding: 0.5rem 0.9rem;
  border-radius: 0.8rem;
  font-size: 1.25rem;
  color: var(--v500-text);
}

.v500-hero-dots {
  position: absolute;
  right: 1rem; bottom: 1rem;
  display: flex; gap: 0.4rem;
}

.v500-hero-dot {
  width: 7px; height: 7px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
}

.v500-hero-dot.v500-active { background: var(--v500-accent); }

/* ===== Section blocks ===== */
.v500-section { margin: 2rem 0; }

.v500-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 0.5rem;
}

.v500-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--v500-text);
  margin: 0;
}

.v500-title em { color: var(--v500-accent); font-style: normal; }

.v500-h1 {
  font-size: 2rem;
  line-height: 2.4rem;
  font-weight: 800;
  margin: 1.4rem 0 0.8rem;
  color: var(--v500-text);
}

.v500-h2 {
  font-size: 1.7rem;
  font-weight: 700;
  margin: 1.6rem 0 0.6rem;
  color: var(--v500-text);
}

.v500-h3 {
  font-size: 1.45rem;
  font-weight: 700;
  margin: 1.2rem 0 0.5rem;
  color: var(--v500-accent);
}

.v500-lead { color: var(--v500-text-dim); font-size: 1.4rem; line-height: 2.3rem; }
.v500-text p { margin: 0 0 1rem; color: var(--v500-text-dim); line-height: 2.3rem; }

.v500-divider {
  height: 1px;
  background: var(--v500-line);
  margin: 1.6rem 0;
  border: none;
}

/* ===== Game grid ===== */
.v500-cat-head {
  display: flex; align-items: center; gap: 0.5rem;
  margin: 1.4rem 0 0.8rem;
}

.v500-cat-badge {
  font-size: 1.2rem;
  padding: 0.25rem 0.7rem;
  border-radius: 0.6rem;
  background: rgba(210, 180, 140, 0.16);
  color: var(--v500-accent);
}

.v500-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}

.v500-game-card {
  background: var(--v500-card);
  border: 1px solid var(--v500-line);
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease;
  display: block;
  text-align: center;
}

.v500-game-card:hover { transform: translateY(-2px); border-color: var(--v500-accent); }
.v500-game-card:active { transform: scale(0.97); }

.v500-game-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  background: #1c2731;
}

.v500-game-card b {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--v500-text);
  padding: 0.4rem 0.3rem 0.55rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Cards / panels ===== */
.v500-card {
  background: var(--v500-card);
  border: 1px solid var(--v500-line);
  border-radius: var(--v500-radius);
  padding: 1.2rem;
  box-shadow: var(--v500-shadow);
  margin-bottom: 1rem;
}

.v500-card-2 { background: var(--v500-card-2); }

.v500-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.v500-mini {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--v500-line);
  border-radius: 1rem;
  padding: 0.9rem;
}

.v500-mini i { color: var(--v500-accent); font-size: 2rem; }
.v500-mini b { display: block; margin-top: 0.4rem; font-size: 1.2rem; }
.v500-mini span { color: var(--v500-text-dim); font-size: 1.15rem; }

/* RTP / stats compact table */
.v500-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  text-align: center;
}

.v500-stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--v500-line);
  border-radius: 0.8rem;
  padding: 0.7rem 0.4rem;
}

.v500-stat b { display: block; font-size: 1.6rem; color: var(--v500-accent); }
.v500-stat span { font-size: 1.05rem; color: var(--v500-text-dim); }

/* ===== Testimonials ===== */
.v500-quote {
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--v500-accent);
  padding: 0.8rem 1rem;
  border-radius: 0.6rem;
  margin-bottom: 0.7rem;
}

.v500-quote p { margin: 0 0 0.4rem; font-size: 1.25rem; color: var(--v500-text); line-height: 2rem; }
.v500-quote small { color: var(--v500-text-dim); }

/* ===== Payment chips ===== */
.v500-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.v500-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--v500-line);
  border-radius: 0.8rem;
  padding: 0.5rem 0.8rem;
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--v500-text);
}
.v500-chip i { color: var(--v500-accent); }

/* ===== Winners list ===== */
.v500-winner {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--v500-line);
  font-size: 1.2rem;
}
.v500-winner:last-child { border-bottom: none; }
.v500-winner i { color: var(--v500-accent); }
.v500-winner b { color: var(--v500-text); margin-left: auto; }

/* ===== Reveal animation ===== */
.v500-reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.v500-reveal.v500-visible { opacity: 1; transform: none; }

/* ===== Footer ===== */
.v500-footer {
  background: #1c2731;
  border-top: 1px solid var(--v500-line);
  padding: 2rem 0 2.5rem;
  margin-top: 2rem;
  color: var(--v500-text-dim);
}

.v500-footer-brand {
  font-size: 1.3rem;
  line-height: 2.1rem;
  margin-bottom: 1rem;
}

.v500-footer h4 {
  font-size: 1.3rem;
  color: var(--v500-text);
  margin: 1rem 0 0.5rem;
}

.v500-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 0.8rem;
  margin-bottom: 1rem;
}

.v500-footer-links a {
  font-size: 1.15rem;
  color: var(--v500-text-dim);
}

.v500-footer-links a:hover { color: var(--v500-accent); }

.v500-footer-promo {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin: 0.6rem 0 1rem;
}

.v500-copy {
  font-size: 1.1rem;
  color: var(--v500-muted);
  border-top: 1px solid var(--v500-line);
  padding-top: 1rem;
  text-align: center;
}

/* ===== Bottom nav (mobile only) ===== */
.v500-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  height: 62px;
  background: linear-gradient(180deg, #1c2731 0%, #18222b 100%);
  border-top: 1px solid var(--v500-line);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.4);
}

.v500-bottom-nav button,
.v500-bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: transparent;
  border: none;
  color: var(--v500-text-dim);
  font-size: 1.05rem;
  text-decoration: none;
  min-width: 60px;
  min-height: 60px;
  cursor: pointer;
  transition: color .15s ease, transform .15s ease;
}

.v500-bottom-nav button:active,
.v500-bottom-nav a:active { transform: scale(0.92); }

.v500-bottom-nav .material-icons,
.v500-bottom-nav i,
.v500-bottom-nav ion-icon { font-size: 22px; }

.v500-bottom-nav .v500-active { color: var(--v500-accent); }

.v500-bottom-nav .v500-bn-promo {
  color: var(--v500-accent);
  font-weight: 700;
}

/* ===== Desktop ===== */
@media (min-width: 769px) {
  body { background: #18222b; }
  .v500-container { max-width: 760px; padding: 0 1.5rem; }
  .v500-header-inner { max-width: 760px; }
  .v500-mobile-menu-inner { max-width: 760px; }
  .v500-bottom-nav { display: none; }
  .v500-wrapper { padding-bottom: 3rem; }
  .v500-grid { grid-template-columns: repeat(5, 1fr); }
  .v500-grid-2 { grid-template-columns: repeat(3, 1fr); }
}

/* ===== Utility ===== */
.v500-hide-desktop { display: block; }
@media (min-width: 769px) { .v500-hide-desktop { display: none; } }

.v500-center { text-align: center; }
.v500-mt-1 { margin-top: 0.8rem; }
.v500-mt-2 { margin-top: 1.6rem; }
