/* ============================================================
 * 9bet game - design-1eb5.css
 * Mobile-first gaming layout. Root font 62.5% (1rem = 10px).
 * All custom classes use the v575- prefix.
 * Palette: #FFEFD5 #26A69A #AFEEEE #A0522D #212F3D
 * Max mobile width is 430px (mobile-first design).
 * ============================================================ */

:root {
  --v575-bg: #212F3D;
  --v575-bg-soft: #1a2530;
  --v575-bg-card: #2a3b4d;
  --v575-bg-card-2: #324659;
  --v575-primary: #26A69A;
  --v575-primary-dark: #1d8478;
  --v575-accent: #A0522D;
  --v575-gold: #d99a4e;
  --v575-text: #FFEFD5;
  --v575-text-soft: #AFEEEE;
  --v575-muted: #9fb0c0;
  --v575-line: rgba(255, 239, 213, 0.12);
  --v575-shadow: 0 0.4rem 1.8rem rgba(0, 0, 0, 0.35);
  --v575-radius: 1.2rem;
  --v575-maxw: 430px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: radial-gradient(circle at top, #28384c 0%, var(--v575-bg) 55%, var(--v575-bg-soft) 100%);
  color: var(--v575-text);
  font-family: "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.5rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: 5.6rem;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: var(--v575-text-soft); text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.3; }

.v575-no-scroll { overflow: hidden; }

/* ---------- Layout ---------- */
.v575-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}
.v575-container { width: 100%; }
.v575-main { display: block; }

/* ---------- Header ---------- */
.v575-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(33,47,61,0.97), rgba(26,37,48,0.97));
  border-bottom: 1px solid var(--v575-line);
  backdrop-filter: blur(8px);
}
.v575-header-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 0.6rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}
.v575-brand { display: flex; align-items: center; gap: 0.7rem; min-width: 0; }
.v575-brand img { width: 3rem; height: 3rem; border-radius: 0.7rem; }
.v575-brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.v575-brand-name { font-size: 1.7rem; font-weight: 800; color: var(--v575-text); white-space: nowrap; }
.v575-brand-tag { font-size: 1rem; color: var(--v575-text-soft); }

.v575-header-actions { display: flex; align-items: center; gap: 0.45rem; }
.v575-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.7rem 1.1rem;
  border-radius: 0.9rem;
  font-size: 1.3rem; font-weight: 700;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  min-height: 3.4rem; text-align: center;
}
.v575-btn:active { transform: scale(0.96); }
.v575-btn--login { background: transparent; color: var(--v575-text); border-color: var(--v575-line); }
.v575-btn--register {
  background: linear-gradient(135deg, var(--v575-primary), var(--v575-primary-dark));
  color: #06231f;
  box-shadow: 0 0.4rem 1rem rgba(38,166,154,0.35);
}
.v575-btn--gold {
  background: linear-gradient(135deg, var(--v575-gold), var(--v575-accent));
  color: #2a160a;
}
.v575-icon-btn {
  width: 3.6rem; height: 3.6rem; border-radius: 0.9rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--v575-bg-card); color: var(--v575-text);
  border: 1px solid var(--v575-line); cursor: pointer;
}
.v575-icon-btn .material-icons { font-size: 2.2rem; }

/* ---------- Mobile slide-in menu ---------- */
.v575-menu {
  position: fixed; top: 0; right: 0;
  width: 82%; max-width: 320px; height: 100vh;
  background: var(--v575-bg-soft);
  border-left: 1px solid var(--v575-line);
  transform: translateX(105%);
  transition: transform 0.28s ease;
  z-index: 9999;
  padding: 6rem 1.4rem 2rem;
  overflow-y: auto;
}
.v575-menu--open { transform: translateX(0); }
.v575-menu-title {
  font-size: 1.3rem; color: var(--v575-muted);
  margin: 1.4rem 0 0.6rem; text-transform: uppercase; letter-spacing: 0.12rem;
}
.v575-menu a {
  display: block; padding: 1rem 0.8rem;
  border-radius: 0.8rem; font-size: 1.45rem; color: var(--v575-text);
  border-bottom: 1px solid var(--v575-line);
}
.v575-menu a:active { background: var(--v575-bg-card); }
.v575-menu-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease; z-index: 9998;
}
body.v575-no-scroll .v575-menu-overlay { opacity: 1; pointer-events: auto; }

/* ---------- Hero / carousel ---------- */
.v575-hero { margin-top: 1rem; }
.v575-carousel { position: relative; border-radius: var(--v575-radius); overflow: hidden; box-shadow: var(--v575-shadow); }
.v575-carousel-track { position: relative; }
.v575-carousel-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease;
  pointer-events: none;
}
.v575-carousel-slide--active { position: relative; opacity: 1; pointer-events: auto; }
.v575-carousel-slide img { width: 100%; height: 18rem; object-fit: cover; }
.v575-carousel-caption {
  position: absolute; left: 1rem; bottom: 1rem; right: 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.78));
  padding: 1rem; border-radius: 0.8rem;
}
.v575-carousel-caption h2 { margin: 0 0 0.3rem; font-size: 1.8rem; color: var(--v575-text); }
.v575-carousel-caption p { margin: 0; font-size: 1.2rem; color: var(--v575-text-soft); }
.v575-carousel-dots { display: flex; justify-content: center; gap: 0.5rem; padding: 0.8rem 0; }
.v575-carousel-dot {
  width: 0.8rem; height: 0.8rem; border-radius: 50%;
  background: var(--v575-line); cursor: pointer; border: none; padding: 0;
}
.v575-carousel-dot--active { background: var(--v575-primary); }

/* ---------- Sections ---------- */
.v575-section { padding: 1.8rem 0 0.4rem; }
.v575-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.9rem; gap: 0.6rem; }
.v575-section-title {
  font-size: 1.9rem; font-weight: 800; color: var(--v575-text);
  display: flex; align-items: center; gap: 0.6rem; margin: 0;
}
.v575-section-title i, .v575-section-title .material-icons, .v575-section-title .bi {
  color: var(--v575-primary); font-size: 2rem;
}
.v575-section-link { font-size: 1.25rem; color: var(--v575-text-soft); white-space: nowrap; }
.v575-lead { color: var(--v575-muted); font-size: 1.4rem; line-height: 1.7; margin: 0.4rem 0 0; }
.v575-lead strong { color: var(--v575-text); }
.v575-text-link { color: var(--v575-primary); font-weight: 700; border-bottom: 1px dashed rgba(38,166,154,0.5); }

/* ---------- Filter chips ---------- */
.v575-filters { display: flex; gap: 0.6rem; overflow-x: auto; padding: 0.4rem 0 0.8rem; -webkit-overflow-scrolling: touch; }
.v575-filter-chip {
  white-space: nowrap; padding: 0.6rem 1.2rem; border-radius: 2rem;
  background: var(--v575-bg-card); color: var(--v575-muted);
  font-size: 1.25rem; border: 1px solid var(--v575-line); cursor: pointer;
}
.v575-filter-chip--active { background: var(--v575-primary); color: #06231f; border-color: var(--v575-primary); }

/* ---------- Game grid ---------- */
.v575-game-block { margin-bottom: 0.6rem; }
.v575-game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
.v575-game-card {
  background: var(--v575-bg-card); border-radius: 1rem; overflow: hidden;
  border: 1px solid var(--v575-line); transition: transform 0.15s ease, border-color 0.15s ease;
  display: block;
}
.v575-game-card:active { transform: scale(0.96); border-color: var(--v575-primary); }
.v575-game-card img { width: 100%; height: 8.4rem; object-fit: cover; background: #0f1822; }
.v575-game-card-name {
  padding: 0.55rem 0.4rem; font-size: 1.1rem; text-align: center; color: var(--v575-text);
  min-height: 3rem; display: flex; align-items: center; justify-content: center; line-height: 1.2;
}

/* ---------- Cards / panels ---------- */
.v575-card {
  background: var(--v575-bg-card); border-radius: var(--v575-radius);
  padding: 1.4rem; border: 1px solid var(--v575-line);
  box-shadow: var(--v575-shadow); margin-bottom: 1.2rem;
}
.v575-card h3 { margin: 0 0 0.6rem; font-size: 1.6rem; color: var(--v575-text); }
.v575-card p { margin: 0 0 0.8rem; color: var(--v575-muted); font-size: 1.35rem; line-height: 1.7; }
.v575-card p:last-child { margin-bottom: 0; }
.v575-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
.v575-feature {
  background: var(--v575-bg-card-2); border-radius: 1rem; padding: 1rem;
  border: 1px solid var(--v575-line);
}
.v575-feature i, .v575-feature .material-icons { color: var(--v575-gold); font-size: 2rem; }
.v575-feature h4 { margin: 0.5rem 0 0.3rem; font-size: 1.4rem; color: var(--v575-text); }
.v575-feature p { margin: 0; font-size: 1.25rem; color: var(--v575-muted); line-height: 1.6; }

/* ---------- Step list ---------- */
.v575-steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.v575-steps li {
  position: relative; padding: 0.7rem 0 0.7rem 3.4rem;
  color: var(--v575-muted); font-size: 1.35rem; line-height: 1.6;
  border-bottom: 1px dashed var(--v575-line); counter-increment: step;
}
.v575-steps li:last-child { border-bottom: 0; }
.v575-steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0.5rem;
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--v575-primary); color: #06231f; font-weight: 800;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}

/* ---------- RTP / data bars ---------- */
.v575-rtp-row { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.7rem; }
.v575-rtp-label { flex: 0 0 8.5rem; font-size: 1.25rem; color: var(--v575-text); }
.v575-rtp-bar { flex: 1; height: 0.9rem; border-radius: 0.6rem; background: var(--v575-bg-card-2); overflow: hidden; }
.v575-rtp-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--v575-primary), var(--v575-gold)); }
.v575-rtp-value { flex: 0 0 4rem; text-align: right; font-size: 1.2rem; color: var(--v575-text-soft); font-weight: 700; }

/* ---------- Promo CTA ---------- */
.v575-cta {
  background: linear-gradient(135deg, var(--v575-accent), var(--v575-gold));
  border-radius: var(--v575-radius); padding: 1.6rem; text-align: center; margin: 1.4rem 0;
}
.v575-cta h3 { margin: 0 0 0.4rem; color: #2a160a; font-size: 1.8rem; }
.v575-cta p { color: #3a2317; font-size: 1.3rem; margin: 0 0 1rem; line-height: 1.6; }
.v575-cta .v575-btn { background: #212F3D; color: var(--v575-text); }

/* ---------- Pills, winners, testimonials ---------- */
.v575-pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.3rem 0.8rem; border-radius: 2rem;
  background: rgba(38,166,154,0.15); color: var(--v575-primary);
  font-size: 1.1rem; font-weight: 700;
}
.v575-winners { list-style: none; margin: 0; padding: 0; }
.v575-winners li {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.7rem 0; border-bottom: 1px solid var(--v575-line); font-size: 1.3rem;
}
.v575-winners li:last-child { border-bottom: 0; }
.v575-winners .v575-win-name { flex: 1; color: var(--v575-text); }
.v575-winners .v575-win-amount { color: var(--v575-gold); font-weight: 800; }

.v575-quote {
  background: var(--v575-bg-card-2); border-left: 3px solid var(--v575-primary);
  border-radius: 0.8rem; padding: 1rem 1.1rem; margin-bottom: 0.8rem;
}
.v575-quote p { margin: 0 0 0.4rem; font-size: 1.3rem; color: var(--v575-text); line-height: 1.6; }
.v575-quote span { font-size: 1.15rem; color: var(--v575-text-soft); }

.v575-pay-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.v575-pay {
  background: var(--v575-bg-card-2); border-radius: 0.8rem; padding: 0.7rem 0.3rem;
  text-align: center; font-size: 1.05rem; color: var(--v575-text-soft);
  border: 1px solid var(--v575-line);
}
.v575-pay i { font-size: 1.8rem; color: var(--v575-text); display: block; margin-bottom: 0.2rem; }

/* ---------- FAQ ---------- */
.v575-faq-item { border-bottom: 1px solid var(--v575-line); padding: 0.8rem 0; }
.v575-faq-item h3 { margin: 0 0 0.4rem; font-size: 1.45rem; color: var(--v575-text); }
.v575-faq-item p { margin: 0; font-size: 1.3rem; color: var(--v575-muted); line-height: 1.6; }

/* ---------- SEO in-content links ---------- */
.v575-seo-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem 1rem; padding-top: 0.3rem; }
.v575-seo-links a {
  color: var(--v575-text-soft); font-size: 1.2rem; padding: 0.35rem 0;
  border-bottom: 1px dashed var(--v575-line);
}

/* ---------- Footer ---------- */
.v575-footer {
  background: var(--v575-bg-soft); border-top: 1px solid var(--v575-line);
  padding: 2rem 0 9rem; margin-top: 2rem;
}
.v575-footer h4 { font-size: 1.5rem; color: var(--v575-text); margin: 1.2rem 0 0.6rem; }
.v575-footer p { color: var(--v575-muted); font-size: 1.3rem; line-height: 1.7; }
.v575-footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem 1rem; }
.v575-footer-links a { color: var(--v575-text-soft); font-size: 1.2rem; }
.v575-footer-promos { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 0.8rem 0; }
.v575-footer-promos .v575-btn { font-size: 1.2rem; padding: 0.6rem 1rem; }
.v575-copy {
  text-align: center; color: var(--v575-muted); font-size: 1.15rem;
  padding-top: 1.2rem; border-top: 1px solid var(--v575-line); margin-top: 1.4rem;
}

/* ---------- Bottom nav ---------- */
.v575-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  height: 6rem;
  background: linear-gradient(180deg, rgba(26,37,48,0.98), rgba(18,26,36,0.99));
  border-top: 1px solid var(--v575-line);
  display: flex; justify-content: space-around; align-items: stretch;
  padding-bottom: env(safe-area-inset-bottom);
}
.v575-bottom-nav a {
  flex: 1; min-width: 60px; min-height: 60px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.2rem; color: var(--v575-muted); font-size: 1rem; position: relative;
  transition: color 0.15s ease, transform 0.15s ease;
}
.v575-bottom-nav a:active { transform: scale(0.92); color: var(--v575-text); }
.v575-bottom-nav a i,
.v575-bottom-nav a .material-icons,
.v575-bottom-nav a ion-icon { font-size: 2.2rem; }
.v575-bottom-nav a.v575-active { color: var(--v575-primary); }
.v575-bottom-nav a.v575-active::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 2.6rem; height: 0.32rem; background: var(--v575-primary); border-radius: 0 0 0.3rem 0.3rem;
}

/* ---------- Responsive ---------- */
@media (min-width: 769px) {
  .v575-bottom-nav { display: none; }
  .v575-footer { padding-bottom: 2rem; }
  .v575-wrapper, .v575-header-inner { max-width: 430px; }
}
@media (max-width: 768px) {
  .v575-main { padding-bottom: 8rem; }
}
@media (max-width: 360px) {
  .v575-game-grid { grid-template-columns: repeat(2, 1fr); }
  .v575-pay-grid { grid-template-columns: repeat(3, 1fr); }
  .v575-brand-tag { display: none; }
}
