/*!
 * jil.homes base stylesheet
 * Mobile-first design - Bangla (bn-BD)
 * All custom classes use the v620- prefix for namespace isolation.
 * Palette: #90EE90 | #9400D3 | #1E1E1E | #00FF7F | #8A2BE2
 * Dark backgrounds, light text, high contrast for mobile readability.
 * Comments are in English per project convention.
 */

:root {
  --v620-primary: #9400D3;
  --v620-primary-alt: #8A2BE2;
  --v620-accent: #00FF7F;
  --v620-accent-soft: #90EE90;
  --v620-bg: #1E1E1E;
  --v620-bg-alt: #141414;
  --v620-bg-card: #252525;
  --v620-text: #F5F5F5;
  --v620-text-muted: #C8C8C8;
  --v620-border: #3a3a3a;
  --v620-shadow: rgba(0, 0, 0, 0.55);
  --v620-radius: 10px;
  --v620-radius-sm: 6px;
  --v620-max-width: 430px;
}

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

html {
  font-size: 62.5%;
}

body {
  font-family: "Noto Sans Bengali", "Hind Siliguri", "Segoe UI", Tahoma, sans-serif;
  background: var(--v620-bg);
  color: var(--v620-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  max-width: var(--v620-max-width);
  margin: 0 auto;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--v620-accent-soft);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

button {
  font-family: inherit;
  border: none;
  cursor: pointer;
  background: none;
  color: inherit;
}

/* ============ Header ============ */
.v620-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--v620-max-width);
  background: linear-gradient(135deg, #141414 0%, #1E1E1E 100%);
  border-bottom: 1px solid var(--v620-border);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  height: 5.6rem;
  box-shadow: 0 2px 8px var(--v620-shadow);
}

.v620-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  min-width: 0;
}

.v620-logo img {
  width: 3rem;
  height: 3rem;
  border-radius: var(--v620-radius-sm);
  border: 1px solid var(--v620-primary);
}

.v620-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--v620-accent-soft);
  background: linear-gradient(90deg, #90EE90, #00FF7F);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.v620-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.v620-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3.6rem;
  padding: 0 1.2rem;
  border-radius: var(--v620-radius-sm);
  font-size: 1.4rem;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  min-width: 7rem;
}

.v620-btn:active { transform: scale(0.96); }

.v620-btn-register {
  background: linear-gradient(135deg, #9400D3 0%, #8A2BE2 100%);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(148, 0, 211, 0.45);
  border: 1px solid #B14BFF;
}

.v620-btn-login {
  background: transparent;
  color: var(--v620-accent-soft);
  border: 1px solid var(--v620-accent-soft);
}

.v620-menu-toggle {
  width: 3.6rem;
  height: 3.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--v620-radius-sm);
  background: var(--v620-bg-card);
  color: var(--v620-accent-soft);
  border: 1px solid var(--v620-border);
  font-size: 2rem;
}

/* ============ Mobile menu ============ */
.v620-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}

.v620-overlay-show { opacity: 1; visibility: visible; }

.v620-mobile-menu {
  position: fixed;
  top: 0;
  right: -85%;
  width: 80%;
  max-width: 32rem;
  height: 100%;
  background: var(--v620-bg-alt);
  z-index: 9999;
  padding: 2.4rem 1.6rem;
  transition: right 0.3s ease;
  border-left: 1px solid var(--v620-border);
  overflow-y: auto;
}

.v620-mobile-menu.v620-menu-open { right: 0; }

.v620-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--v620-border);
}

.v620-menu-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--v620-accent-soft);
}

.v620-menu-close {
  width: 3.2rem;
  height: 3.2rem;
  font-size: 2rem;
  color: #fff;
  background: var(--v620-bg-card);
  border-radius: 50%;
  border: 1px solid var(--v620-border);
}

.v620-menu-list { list-style: none; }
.v620-menu-item {
  margin-bottom: 1rem;
}
.v620-menu-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1rem;
  border-radius: var(--v620-radius-sm);
  background: var(--v620-bg-card);
  color: var(--v620-text);
  font-size: 1.5rem;
  font-weight: 600;
  border: 1px solid var(--v620-border);
  transition: background 0.2s ease, transform 0.15s ease;
}
.v620-menu-link:active { transform: scale(0.97); }
.v620-menu-link i,
.v620-menu-link .material-icons-outlined,
.v620-menu-link .material-icons {
  font-size: 2rem;
  color: var(--v620-accent-soft);
}

.v620-menu-cta {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

/* ============ Layout ============ */
main {
  padding-top: 6rem;
  padding-bottom: 1.5rem;
}

.v620-section {
  padding: 2rem 1.2rem;
}

.v620-section-title {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--v620-accent-soft);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.v620-section-title i,
.v620-section-title .material-icons-outlined {
  color: var(--v620-primary-alt);
  font-size: 2.2rem;
}

/* ============ Hero carousel ============ */
.v620-carousel {
  position: relative;
  padding: 1.5rem 1.2rem 0;
}

.v620-carousel-track {
  position: relative;
  border-radius: var(--v620-radius);
  overflow: hidden;
  box-shadow: 0 6px 18px var(--v620-shadow);
  aspect-ratio: 16 / 9;
}

.v620-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}

.v620-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v620-slide-active { opacity: 1; }

.v620-carousel-caption {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 1.2rem 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0));
  font-size: 1.4rem;
  color: #fff;
  font-weight: 600;
}

.v620-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.v620-carousel-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: #555;
  cursor: pointer;
}

.v620-dot-active {
  background: linear-gradient(135deg, #00FF7F 0%, #90EE90 100%);
  width: 2.4rem;
  border-radius: 0.4rem;
}

/* ============ Filter pills ============ */
.v620-filter {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 1rem 1.2rem 0.4rem;
  scrollbar-width: none;
}
.v620-filter::-webkit-scrollbar { display: none; }

.v620-filter-pill {
  white-space: nowrap;
  padding: 0.7rem 1.2rem;
  border-radius: 2rem;
  background: var(--v620-bg-card);
  color: var(--v620-text-muted);
  font-size: 1.3rem;
  font-weight: 600;
  border: 1px solid var(--v620-border);
  transition: all 0.18s ease;
}

.v620-pill-active {
  background: linear-gradient(135deg, #9400D3 0%, #8A2BE2 100%);
  color: #fff;
  border-color: #B14BFF;
}

/* ============ Game grid ============ */
.v620-game-section { padding: 1.5rem 1.2rem; }

.v620-game-section-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1.8rem 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--v620-border);
}

.v620-game-section-head h2 {
  font-size: 1.8rem;
  color: var(--v620-accent-soft);
  font-weight: 700;
}

.v620-game-section-head .material-icons-outlined,
.v620-game-section-head i {
  color: var(--v620-primary-alt);
  font-size: 2rem;
}

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

.v620-game-card {
  background: var(--v620-bg-card);
  border-radius: var(--v620-radius-sm);
  border: 1px solid var(--v620-border);
  padding: 0.6rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.v620-game-card:active {
  transform: scale(0.95);
  border-color: var(--v620-accent);
  box-shadow: 0 0 10px rgba(0, 255, 127, 0.35);
}

.v620-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--v620-radius-sm);
  margin-bottom: 0.4rem;
}

.v620-game-name {
  font-size: 1.15rem;
  color: var(--v620-text);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

/* ============ Info / feature blocks ============ */
.v620-card {
  background: var(--v620-bg-card);
  border: 1px solid var(--v620-border);
  border-radius: var(--v620-radius);
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 4px 12px var(--v620-shadow);
}

.v620-card h2,
.v620-card h3 {
  color: var(--v620-accent-soft);
  margin-bottom: 0.8rem;
}

.v620-card h2 { font-size: 1.8rem; }
.v620-card h3 { font-size: 1.6rem; }

.v620-card p {
  margin-bottom: 0.8rem;
  color: var(--v620-text-muted);
  font-size: 1.4rem;
  line-height: 1.6;
}

.v620-card p strong { color: var(--v620-accent-soft); }

.v620-card ul {
  list-style: none;
  padding-left: 0;
}

.v620-card ul li {
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--v620-border);
  color: var(--v620-text-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.v620-card ul li:last-child { border-bottom: none; }
.v620-card ul li i,
.v620-card ul li .material-icons-outlined {
  color: var(--v620-primary-alt);
  font-size: 1.8rem;
  margin-top: 0.2rem;
}

/* Inline promo text link */
.v620-promo-link {
  color: var(--v620-accent-soft);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

/* ============ Promo strip / play now banner ============ */
.v620-cta {
  background: linear-gradient(135deg, #9400D3 0%, #8A2BE2 100%);
  border-radius: var(--v620-radius);
  padding: 1.8rem 1.4rem;
  text-align: center;
  margin: 1.5rem 1.2rem;
  box-shadow: 0 6px 18px rgba(148, 0, 211, 0.4);
}

.v620-cta h2 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 0.6rem;
}

.v620-cta p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
}

.v620-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1.2rem 2.4rem;
  background: #00FF7F;
  color: #141414;
  font-size: 1.6rem;
  font-weight: 800;
  border-radius: 2rem;
  min-width: 12rem;
  justify-content: center;
}

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

/* ============ Stats / rtp grid ============ */
.v620-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.v620-stat-box {
  background: var(--v620-bg-alt);
  border: 1px solid var(--v620-border);
  border-radius: var(--v620-radius-sm);
  padding: 1rem;
  text-align: center;
}

.v620-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--v620-accent);
}

.v620-stat-label {
  font-size: 1.2rem;
  color: var(--v620-text-muted);
  margin-top: 0.2rem;
}

/* ============ Testimonials ============ */
.v620-testimonial {
  background: var(--v620-bg-alt);
  border-left: 3px solid var(--v620-primary);
  border-radius: var(--v620-radius-sm);
  padding: 1rem 1.2rem;
  margin-bottom: 0.8rem;
}

.v620-testimonial p {
  font-size: 1.35rem;
  color: var(--v620-text-muted);
  font-style: italic;
}

.v620-testimonial .v620-author {
  display: block;
  margin-top: 0.5rem;
  color: var(--v620-accent-soft);
  font-weight: 700;
  font-size: 1.25rem;
  font-style: normal;
}

/* ============ Payment methods ============ */
.v620-pay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.v620-pay-item {
  background: var(--v620-bg-alt);
  border: 1px solid var(--v620-border);
  border-radius: var(--v620-radius-sm);
  padding: 1rem 0.6rem;
  text-align: center;
  font-size: 1.2rem;
  color: var(--v620-text-muted);
  font-weight: 600;
}

.v620-pay-item i { font-size: 2.2rem; color: var(--v620-accent-soft); }
.v620-pay-item .material-icons-outlined { font-size: 2.2rem; color: var(--v620-accent-soft); }

/* ============ Winners ============ */
.v620-winner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
  background: var(--v620-bg-alt);
  border: 1px solid var(--v620-border);
  border-radius: var(--v620-radius-sm);
  margin-bottom: 0.6rem;
}

.v620-winner span:first-child {
  color: var(--v620-accent-soft);
  font-weight: 700;
  font-size: 1.3rem;
}

.v620-winner span:last-child {
  color: #00FF7F;
  font-weight: 800;
  font-size: 1.4rem;
}

/* ============ Footer ============ */
.v620-footer {
  background: var(--v620-bg-alt);
  border-top: 1px solid var(--v620-border);
  padding: 2rem 1.2rem 9rem;
  margin-top: 2rem;
}

.v620-footer p {
  color: var(--v620-text-muted);
  font-size: 1.35rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.v620-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.v620-footer-links a {
  flex: 1 1 calc(50% - 0.6rem);
  background: var(--v620-bg-card);
  border: 1px solid var(--v620-border);
  color: var(--v620-accent-soft);
  padding: 0.8rem 1rem;
  border-radius: var(--v620-radius-sm);
  font-size: 1.3rem;
  font-weight: 600;
  text-align: center;
  transition: transform 0.15s ease;
}

.v620-footer-links a:active { transform: scale(0.96); }

.v620-footer-links a:hover { text-decoration: none; }

.v620-copy {
  text-align: center;
  color: #888;
  font-size: 1.2rem;
  border-top: 1px solid var(--v620-border);
  padding-top: 1rem;
  margin-top: 1rem;
}

/* ============ Mobile bottom navigation ============ */
.v620-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--v620-max-width);
  height: 6rem;
  background: linear-gradient(180deg, #1E1E1E 0%, #0E0E0E 100%);
  border-top: 1px solid var(--v620-border);
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -4px 12px var(--v620-shadow);
}

.v620-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 6rem;
  min-height: 5.6rem;
  flex: 1;
  color: var(--v620-text-muted);
  gap: 0.2rem;
  transition: color 0.2s ease, transform 0.15s ease;
  padding: 0.3rem 0.2rem;
}

.v620-bottom-nav-btn i,
.v620-bottom-nav-btn .material-icons-outlined,
.v620-bottom-nav-btn ion-icon {
  font-size: 2.4rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.v620-bottom-nav-btn ion-icon { --ionicon-stroke-width: 32px; }

.v620-bottom-nav-btn span {
  font-size: 1.1rem;
  font-weight: 600;
}

.v620-bottom-nav-btn:active {
  transform: scale(0.92);
}

.v620-bottom-nav-btn:hover { color: var(--v620-accent-soft); }

.v620-bottom-nav-btn.v620-nav-current {
  color: var(--v620-accent);
}

.v620-bottom-nav-btn.v620-nav-current i,
.v620-bottom-nav-btn.v620-nav-current .material-icons-outlined,
.v620-bottom-nav-btn.v620-nav-current ion-icon {
  color: var(--v620-accent);
  transform: translateY(-2px) scale(1.12);
}

.v620-nav-badge {
  position: absolute;
  top: 0.4rem;
  right: 1.7rem;
  background: #FF4D4D;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 1rem;
  padding: 0 0.4rem;
  min-width: 1.4rem;
  height: 1.4rem;
  line-height: 1.4rem;
  text-align: center;
}

/* ============ Back-to-top ============ */
.v620-back-top {
  position: fixed;
  right: 1rem;
  bottom: 7rem;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #9400D3 0%, #8A2BE2 100%);
  color: #fff;
  font-size: 1.8rem;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(148, 0, 211, 0.5);
}

/* ============ Desktop adjustments ============ */
@media (min-width: 769px) {
  .v620-bottom-nav { display: none; }
  .v620-menu-toggle { display: none; }
  main { padding-bottom: 2rem; }
  .v620-footer { padding-bottom: 2rem; }
}

/* Mobile padding clearance for bottom nav */
@media (max-width: 768px) {
  main { padding-bottom: 7.5rem; }
  .v620-footer { padding-bottom: 9rem; }
}

/* Small phones */
@media (max-width: 360px) {
  body { font-size: 1.4rem; }
  .v620-grid { grid-template-columns: repeat(2, 1fr); }
  .v620-pay-grid { grid-template-columns: repeat(2, 1fr); }
}