/* ============================================================
   onbet2.cfd - Core Stylesheet
   All classes use prefix "v903-" for namespace isolation
   Palette: #FFCC02 | #FF5722 | #2E4057 | #9370DB | #D8BFD8
   Mobile-first, max 430px base width
   ============================================================ */

:root {
  --v903-primary: #FFCC02;
  --v903-accent: #FF5722;
  --v903-bg: #2E4057;
  --v903-bg-dark: #1a2939;
  --v903-bg-deep: #0f1a26;
  --v903-purple: #9370DB;
  --v903-lilac: #D8BFD8;
  --v903-text: #ffffff;
  --v903-text-dim: #c7d2dc;
  --v903-text-muted: #8a99a8;
  --v903-card: #243a52;
  --v903-card-light: #2d4663;
  --v903-border: rgba(255, 204, 2, 0.22);
  --v903-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  --v903-radius: 12px;
  --v903-radius-lg: 18px;
  --v903-header-h: 60px;
  --v903-bottomnav-h: 62px;
  --v903-max-w: 430px;
}

/* ---------- Reset & base ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  background: var(--v903-bg-deep);
  color: var(--v903-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.v903-no-scroll {
  overflow: hidden;
}

a { color: var(--v903-primary); text-decoration: none; }
a:hover { color: var(--v903-accent); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ---------- Layout helpers ---------- */
.v903-container {
  width: 100%;
  max-width: var(--v903-max-w);
  margin: 0 auto;
  padding: 0 1.2rem;
}

.v903-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
}

main.v903-main {
  padding-top: var(--v903-header-h);
  padding-bottom: calc(var(--v903-bottomnav-h) + 1rem);
  min-height: 100vh;
}

/* ---------- Header / Top nav ---------- */
.v903-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--v903-header-h);
  background: linear-gradient(180deg, #1a2939 0%, #0f1a26 100%);
  border-bottom: 1px solid var(--v903-border);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.v903-header-inner {
  max-width: var(--v903-max-w);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}

.v903-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--v903-primary);
  text-transform: lowercase;
  letter-spacing: 0.5px;
}

.v903-logo img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--v903-primary);
}

.v903-logo .v903-logo-dot {
  color: var(--v903-accent);
}

.v903-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.v903-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  min-height: 40px;
  text-decoration: none;
  line-height: 1;
}

.v903-btn-primary {
  background: linear-gradient(135deg, var(--v903-accent), #ff7a45);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 87, 34, 0.4);
}

.v903-btn-secondary {
  background: linear-gradient(135deg, var(--v903-primary), #ffe066);
  color: #1a2939;
  box-shadow: 0 4px 12px rgba(255, 204, 2, 0.35);
}

.v903-btn-ghost {
  background: transparent;
  color: var(--v903-text);
  border: 1px solid var(--v903-border);
}

.v903-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.v903-btn:active { transform: scale(0.97); }

.v903-menu-toggle {
  background: transparent;
  border: none;
  color: var(--v903-text);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 0.4rem;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

/* ---------- Mobile menu drawer ---------- */
.v903-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;
}

.v903-menu-overlay.v903-overlay-active {
  opacity: 1;
  pointer-events: auto;
}

.v903-mobile-menu {
  position: fixed;
  top: 0;
  right: -85%;
  width: 82%;
  max-width: 360px;
  height: 100vh;
  background: linear-gradient(180deg, #1a2939 0%, #0f1a26 100%);
  z-index: 9999;
  transition: right 0.28s ease;
  padding: 1.5rem 1.2rem;
  overflow-y: auto;
  border-left: 1px solid var(--v903-border);
}

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

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

.v903-menu-close {
  background: transparent;
  border: none;
  color: var(--v903-text);
  font-size: 2rem;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.v903-menu-list li {
  margin-bottom: 0.6rem;
}

.v903-menu-list a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1rem;
  border-radius: 10px;
  color: var(--v903-text);
  font-size: 1.5rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.v903-menu-list a:hover,
.v903-menu-list a:focus {
  background: rgba(255, 204, 2, 0.1);
  border-color: var(--v903-border);
  color: var(--v903-primary);
}

.v903-menu-list .v903-menu-icon {
  color: var(--v903-accent);
  font-size: 1.8rem;
  width: 24px;
  text-align: center;
}

.v903-menu-cta {
  margin-top: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

/* ---------- Hero / Carousel ---------- */
.v903-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--v903-radius-lg);
  margin: 1rem 0;
  box-shadow: var(--v903-shadow);
}

.v903-hero-track {
  display: flex;
  transition: transform 0.5s ease;
}

.v903-hero-slide {
  min-width: 100%;
  position: relative;
}

.v903-hero-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.v903-hero-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.2rem 1.2rem;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.75) 100%);
  color: #fff;
}

.v903-hero-caption h2 {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.v903-hero-caption p {
  font-size: 1.25rem;
  color: var(--v903-lilac);
  margin-bottom: 0.6rem;
}

.v903-hero-dots {
  position: absolute;
  bottom: 0.6rem;
  right: 1rem;
  display: flex;
  gap: 0.4rem;
  z-index: 2;
}

.v903-hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  padding: 0;
}

.v903-hero-dot.v903-hero-dot-active {
  background: var(--v903-primary);
  width: 22px;
  border-radius: 4px;
}

/* ---------- Section ---------- */
.v903-section {
  padding: 1.2rem 0;
}

.v903-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.v903-section-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--v903-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.v903-section-title i {
  color: var(--v903-accent);
}

.v903-section-more {
  font-size: 1.2rem;
  color: var(--v903-lilac);
  font-weight: 600;
}

/* ---------- Category tabs (non-functional labels) ---------- */
.v903-cat-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
  overflow-x: auto;
  padding-bottom: 0.3rem;
}

.v903-cat-row::-webkit-scrollbar { display: none; }

.v903-cat-pill {
  flex: 0 0 auto;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--v903-card);
  color: var(--v903-text-dim);
  font-size: 1.2rem;
  font-weight: 700;
  border: 1px solid transparent;
  white-space: nowrap;
}

.v903-cat-pill.v903-cat-active {
  background: linear-gradient(135deg, var(--v903-accent), #ff7a45);
  color: #fff;
  border-color: var(--v903-accent);
}

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

.v903-game-card {
  position: relative;
  border-radius: var(--v903-radius);
  overflow: hidden;
  background: var(--v903-card);
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.v903-game-card:hover,
.v903-game-card:focus {
  transform: translateY(-3px);
  border-color: var(--v903-primary);
  box-shadow: 0 8px 18px rgba(255, 204, 2, 0.18);
}

.v903-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.v903-game-name {
  padding: 0.5rem 0.4rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--v903-text);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

.v903-game-badge {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  background: var(--v903-accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  z-index: 2;
}

/* ---------- Info / feature blocks ---------- */
.v903-card {
  background: var(--v903-card);
  border: 1px solid var(--v903-border);
  border-radius: var(--v903-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
  box-shadow: var(--v903-shadow);
}

.v903-card h3 {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--v903-primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.v903-card h3 i { color: var(--v903-accent); }

.v903-card p {
  font-size: 1.35rem;
  color: var(--v903-text-dim);
  margin-bottom: 0.6rem;
}

.v903-card .v903-link {
  color: var(--v903-primary);
  font-weight: 700;
}

.v903-card .v903-link:hover { color: var(--v903-accent); }

/* ---------- Steps list ---------- */
.v903-steps {
  counter-reset: step;
}

.v903-steps li {
  position: relative;
  padding: 0.6rem 0 0.6rem 3rem;
  font-size: 1.35rem;
  color: var(--v903-text-dim);
  border-left: 2px dashed var(--v903-border);
  margin-left: 1rem;
}

.v903-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: -1rem;
  top: 0.5rem;
  width: 2rem;
  height: 2rem;
  background: linear-gradient(135deg, var(--v903-accent), #ff7a45);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}

/* ---------- Promo banner ---------- */
.v903-promo-banner {
  background: linear-gradient(135deg, var(--v903-purple), var(--v903-accent));
  border-radius: var(--v903-radius-lg);
  padding: 1.2rem;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0;
  box-shadow: var(--v903-shadow);
}

.v903-promo-banner h3 {
  font-size: 1.6rem;
  font-weight: 800;
}

.v903-promo-banner p {
  font-size: 1.25rem;
  opacity: 0.92;
}

/* ---------- Testimonials ---------- */
.v903-testimonials {
  display: grid;
  gap: 0.7rem;
}

.v903-testimonial {
  background: var(--v903-card-light);
  border-radius: var(--v903-radius);
  padding: 1rem;
  border-left: 4px solid var(--v903-primary);
}

.v903-testimonial p {
  font-size: 1.3rem;
  color: var(--v903-text-dim);
  font-style: italic;
  margin-bottom: 0.5rem;
}

.v903-testimonial .v903-author {
  font-size: 1.2rem;
  color: var(--v903-primary);
  font-weight: 700;
}

/* ---------- Payment methods ---------- */
.v903-pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.v903-pay-item {
  flex: 1 1 30%;
  min-width: 90px;
  background: var(--v903-card-light);
  border: 1px solid var(--v903-border);
  border-radius: 10px;
  padding: 0.7rem;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--v903-text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

/* ---------- Winners showcase ---------- */
.v903-winners {
  display: grid;
  gap: 0.5rem;
}

.v903-winner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--v903-card-light);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  font-size: 1.25rem;
}

.v903-winner .v903-winner-name { font-weight: 700; color: var(--v903-text); }
.v903-winner .v903-winner-game { color: var(--v903-lilac); font-size: 1.15rem; }
.v903-winner .v903-winner-amount { color: var(--v903-primary); font-weight: 800; }

/* ---------- Achievements / tricks compact ---------- */
.v903-compact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}

.v903-compact-item {
  background: var(--v903-card-light);
  border-radius: var(--v903-radius);
  padding: 0.9rem;
  text-align: center;
}

.v903-compact-item i {
  font-size: 2.2rem;
  color: var(--v903-primary);
  margin-bottom: 0.4rem;
}

.v903-compact-item h4 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--v903-text);
  margin-bottom: 0.2rem;
}

.v903-compact-item p {
  font-size: 1.15rem;
  color: var(--v903-text-muted);
}

/* ---------- App download CTA ---------- */
.v903-app-cta {
  background: linear-gradient(135deg, var(--v903-bg), var(--v903-purple));
  border-radius: var(--v903-radius-lg);
  padding: 1.3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
  border: 1px solid var(--v903-border);
}

.v903-app-cta .v903-app-text h3 {
  font-size: 1.6rem;
  color: var(--v903-primary);
  margin-bottom: 0.3rem;
}

.v903-app-cta .v903-app-text p {
  font-size: 1.25rem;
  color: var(--v903-text-dim);
  margin-bottom: 0.6rem;
}

/* ---------- Footer ---------- */
.v903-footer {
  background: linear-gradient(180deg, #1a2939 0%, #0f1a26 100%);
  border-top: 1px solid var(--v903-border);
  padding: 1.4rem 1.2rem calc(var(--v903-bottomnav-h) + 1.4rem);
  margin-top: 1.5rem;
}

.v903-footer-inner {
  max-width: var(--v903-max-w);
  margin: 0 auto;
}

.v903-footer-brand {
  font-size: 1.4rem;
  color: var(--v903-text-dim);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.v903-footer-brand strong { color: var(--v903-primary); }

.v903-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.v903-footer-links a {
  background: var(--v903-card);
  border: 1px solid var(--v903-border);
  border-radius: 8px;
  padding: 0.4rem 0.8rem;
  font-size: 1.15rem;
  color: var(--v903-text-dim);
  font-weight: 600;
}

.v903-footer-links a:hover {
  color: var(--v903-primary);
  border-color: var(--v903-primary);
}

.v903-footer-copy {
  font-size: 1.15rem;
  color: var(--v903-text-muted);
  text-align: center;
  border-top: 1px dashed var(--v903-border);
  padding-top: 0.8rem;
}

/* ---------- Mobile bottom nav ---------- */
.v903-bottomnav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--v903-bottomnav-h);
  background: linear-gradient(180deg, #1a2939 0%, #0f1a26 100%);
  border-top: 1px solid var(--v903-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.4);
}

.v903-bottomnav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  background: transparent;
  border: none;
  color: var(--v903-text-dim);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  min-width: 60px;
  min-height: 60px;
  padding: 0.3rem;
  position: relative;
  transition: color 0.15s ease, transform 0.15s ease;
}

.v903-bottomnav-btn i {
  font-size: 2.2rem;
  transition: transform 0.18s ease, color 0.18s ease;
}

.v903-bottomnav-btn:hover {
  color: var(--v903-primary);
}

.v903-bottomnav-btn:hover i {
  transform: scale(1.12);
}

.v903-bottomnav-btn:active {
  transform: scale(0.94);
}

.v903-bottomnav-btn.v903-bottomnav-active {
  color: var(--v903-primary);
}

.v903-bottomnav-btn.v903-bottomnav-active i {
  color: var(--v903-accent);
  transform: translateY(-2px) scale(1.1);
}

.v903-bottomnav-btn.v903-bottomnav-active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  background: var(--v903-primary);
  border-radius: 0 0 4px 4px;
}

.v903-bottomnav-btn .v903-nav-badge {
  position: absolute;
  top: 0.4rem;
  right: 1rem;
  background: var(--v903-accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ---------- Desktop: hide bottom nav, show desktop nav ---------- */
@media (min-width: 769px) {
  .v903-bottomnav { display: none; }
  body { background: var(--v903-bg-deep); }
  .v903-wrapper, main.v903-main {
    max-width: 760px;
    margin: 0 auto;
  }
  main.v903-main { padding-bottom: 2rem; }
  .v903-footer { padding-bottom: 1.4rem; }
}

/* ---------- Mobile bottom padding clearance ---------- */
@media (max-width: 768px) {
  main.v903-main { padding-bottom: calc(var(--v903-bottomnav-h) + 1rem); }
}

/* ---------- Small screens fine-tune ---------- */
@media (max-width: 360px) {
  .v903-grid { grid-template-columns: repeat(2, 1fr); }
  .v903-logo { font-size: 1.5rem; }
  .v903-btn { padding: 0.6rem 0.9rem; font-size: 1.2rem; }
}

/* ---------- Utility ---------- */
.v903-text-center { text-align: center; }
.v903-mt-1 { margin-top: 0.6rem; }
.v903-mt-2 { margin-top: 1rem; }
.v903-hidden { display: none !important; }
.v903-promo-text { color: var(--v903-primary); font-weight: 700; }
