/* b999 Gaming Website - Core Stylesheet */
/* Class prefix: v82b- | CSS variables: --v82b-* */

:root {
  --v82b-primary: #FF7F50;
  --v82b-bg: #2C2C2C;
  --v82b-bg-light: #363636;
  --v82b-bg-card: #333333;
  --v82b-text: #FFFFFF;
  --v82b-text-muted: #CCCCCC;
  --v82b-accent: #FF7F50;
  --v82b-accent-hover: #FF9A76;
  --v82b-border: #444444;
  --v82b-shadow: rgba(0, 0, 0, 0.3);
  --v82b-radius: 8px;
  --v82b-radius-lg: 12px;
  --v82b-max-width: 430px;
  --v82b-header-h: 52px;
  --v82b-bottom-nav-h: 60px;
  font-size: 62.5%;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--v82b-bg);
  color: var(--v82b-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Layout wrapper */
.v82b-wrapper {
  max-width: var(--v82b-max-width);
  margin: 0 auto;
  position: relative;
}

.v82b-container {
  width: 100%;
  padding: 0 1.2rem;
}

/* ===================== HEADER ===================== */
.v82b-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--v82b-header-h);
  background: var(--v82b-bg);
  border-bottom: 1px solid var(--v82b-border);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}

.v82b-header-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.v82b-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: contain;
}

.v82b-brand {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--v82b-accent);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.v82b-header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.v82b-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: var(--v82b-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  min-height: 36px;
  min-width: 60px;
  text-decoration: none;
}

.v82b-btn-register {
  background: var(--v82b-accent);
  color: #fff;
}

.v82b-btn-register:hover {
  background: var(--v82b-accent-hover);
  transform: scale(1.03);
}

.v82b-btn-login {
  background: transparent;
  color: var(--v82b-accent);
  border: 1.5px solid var(--v82b-accent);
}

.v82b-btn-login:hover {
  background: rgba(255, 127, 80, 0.1);
}

.v82b-menu-btn {
  background: none;
  border: none;
  color: var(--v82b-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
}

/* ===================== MOBILE MENU ===================== */
.v82b-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.v82b-overlay-active {
  opacity: 1;
  visibility: visible;
}

.v82b-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: var(--v82b-bg-light);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 1.5rem 0;
  overflow-y: auto;
}

.v82b-menu-active {
  right: 0;
}

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

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

.v82b-menu-links {
  list-style: none;
  padding: 0.8rem 0;
}

.v82b-menu-links li {
  border-bottom: 1px solid var(--v82b-border);
}

.v82b-menu-links a {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--v82b-text);
  text-decoration: none;
  font-size: 1.4rem;
  transition: background 0.2s;
}

.v82b-menu-links a:hover {
  background: rgba(255, 127, 80, 0.08);
  color: var(--v82b-accent);
}

/* ===================== CAROUSEL ===================== */
.v82b-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--v82b-radius-lg);
  margin-top: calc(var(--v82b-header-h) + 0.8rem);
}

.v82b-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.v82b-carousel-slide {
  min-width: 100%;
  display: none;
  cursor: pointer;
}

.v82b-slide-active {
  display: block;
}

.v82b-carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.v82b-carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.v82b-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.3s;
  border: none;
}

.v82b-dot-active {
  background: var(--v82b-accent);
  width: 20px;
  border-radius: 4px;
}

/* ===================== MAIN CONTENT ===================== */
main {
  padding-top: calc(var(--v82b-header-h) + 0.5rem);
}

.v82b-section {
  padding: 1.5rem 0;
}

.v82b-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--v82b-accent);
  margin-bottom: 1rem;
  padding: 0 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.v82b-section-title i,
.v82b-section-title .material-icons {
  font-size: 2rem;
}

/* ===================== GAME GRID ===================== */
.v82b-cat-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--v82b-accent);
  margin: 1.2rem 0 0.8rem;
  padding: 0 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.v82b-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  padding: 0 1.2rem;
}

.v82b-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s;
  text-align: center;
}

.v82b-game-item:hover {
  transform: scale(1.05);
}

.v82b-game-item img {
  width: 72px;
  height: 72px;
  border-radius: var(--v82b-radius);
  object-fit: cover;
  border: 2px solid var(--v82b-border);
  transition: border-color 0.2s;
}

.v82b-game-item:hover img {
  border-color: var(--v82b-accent);
}

.v82b-game-name {
  font-size: 1.1rem;
  color: var(--v82b-text-muted);
  margin-top: 0.3rem;
  line-height: 1.3rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===================== CONTENT MODULES ===================== */
.v82b-card {
  background: var(--v82b-bg-card);
  border-radius: var(--v82b-radius-lg);
  padding: 1.2rem;
  margin: 0 1.2rem 1rem;
  border: 1px solid var(--v82b-border);
}

.v82b-card h2 {
  font-size: 1.6rem;
  color: var(--v82b-accent);
  margin-bottom: 0.8rem;
}

.v82b-card h3 {
  font-size: 1.4rem;
  color: var(--v82b-text);
  margin-bottom: 0.6rem;
}

.v82b-card p {
  color: var(--v82b-text-muted);
  line-height: 1.8rem;
  margin-bottom: 0.6rem;
  font-size: 1.3rem;
}

.v82b-card ul {
  padding-left: 1.5rem;
  color: var(--v82b-text-muted);
}

.v82b-card li {
  margin-bottom: 0.4rem;
  line-height: 1.6rem;
  font-size: 1.3rem;
}

.v82b-promo-link {
  color: var(--v82b-accent);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
}

.v82b-promo-link:hover {
  color: var(--v82b-accent-hover);
}

.v82b-cta-btn {
  display: block;
  width: calc(100% - 2.4rem);
  margin: 1rem 1.2rem;
  padding: 1rem;
  background: var(--v82b-accent);
  color: #fff;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  border: none;
  border-radius: var(--v82b-radius);
  cursor: pointer;
  transition: all 0.2s;
}

.v82b-cta-btn:hover {
  background: var(--v82b-accent-hover);
  transform: scale(1.02);
}

/* ===================== WINNERS TABLE ===================== */
.v82b-winners {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.2rem;
}

.v82b-winners th {
  background: var(--v82b-accent);
  color: #fff;
  padding: 0.5rem;
  text-align: left;
  font-weight: 600;
}

.v82b-winners td {
  padding: 0.5rem;
  border-bottom: 1px solid var(--v82b-border);
  color: var(--v82b-text-muted);
}

.v82b-winners tr:hover td {
  background: rgba(255, 127, 80, 0.05);
}

.v82b-amount {
  color: var(--v82b-accent);
  font-weight: 600;
}

/* ===================== PAYMENT METHODS ===================== */
.v82b-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  padding: 0.5rem 0;
}

.v82b-payment-item {
  background: var(--v82b-bg-light);
  border: 1px solid var(--v82b-border);
  border-radius: var(--v82b-radius);
  padding: 0.6rem 1rem;
  font-size: 1.2rem;
  color: var(--v82b-text);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ===================== FEATURES LIST ===================== */
.v82b-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  padding: 0;
}

.v82b-feature-item {
  background: var(--v82b-bg-light);
  border-radius: var(--v82b-radius);
  padding: 0.8rem;
  text-align: center;
  border: 1px solid var(--v82b-border);
}

.v82b-feature-item i,
.v82b-feature-item .material-icons {
  font-size: 2.4rem;
  color: var(--v82b-accent);
  margin-bottom: 0.4rem;
}

.v82b-feature-label {
  font-size: 1.2rem;
  color: var(--v82b-text);
  font-weight: 500;
}

/* ===================== FOOTER ===================== */
.v82b-footer {
  background: var(--v82b-bg-light);
  padding: 1.5rem 1.2rem 2rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--v82b-border);
}

.v82b-footer-brand {
  font-size: 1.3rem;
  color: var(--v82b-text-muted);
  margin-bottom: 1rem;
  line-height: 1.6rem;
}

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

.v82b-footer-links a {
  color: var(--v82b-accent);
  font-size: 1.2rem;
  text-decoration: none;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--v82b-border);
  border-radius: 4px;
  transition: all 0.2s;
}

.v82b-footer-links a:hover {
  background: rgba(255, 127, 80, 0.1);
  border-color: var(--v82b-accent);
}

.v82b-footer-copy {
  font-size: 1.1rem;
  color: #888;
  text-align: center;
  margin-top: 0.8rem;
}

/* ===================== BOTTOM NAV ===================== */
.v82b-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--v82b-bottom-nav-h);
  background: var(--v82b-bg-light);
  border-top: 1px solid var(--v82b-border);
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 0.3rem;
}

.v82b-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 54px;
  background: none;
  border: none;
  color: var(--v82b-text-muted);
  cursor: pointer;
  transition: all 0.2s;
  border-radius: var(--v82b-radius);
  padding: 0.3rem 0.2rem;
}

.v82b-nav-btn:hover,
.v82b-nav-btn:focus {
  color: var(--v82b-accent);
  background: rgba(255, 127, 80, 0.08);
}

.v82b-nav-btn i,
.v82b-nav-btn .material-icons,
.v82b-nav-btn ion-icon,
.v82b-nav-btn bi {
  font-size: 2.2rem;
  margin-bottom: 0.1rem;
}

.v82b-nav-btn span {
  font-size: 1rem;
  white-space: nowrap;
}

.v82b-nav-active {
  color: var(--v82b-accent) !important;
}

/* ===================== SCROLL TO TOP ===================== */
.v82b-scroll-top {
  position: fixed;
  bottom: 70px;
  right: 12px;
  width: 40px;
  height: 40px;
  background: var(--v82b-accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px var(--v82b-shadow);
  transition: transform 0.2s;
}

.v82b-scroll-visible {
  display: flex !important;
}

.v82b-scroll-top:hover {
  transform: scale(1.1);
}

/* ===================== INTERNAL LINKS ===================== */
.v82b-internal-link {
  color: var(--v82b-accent);
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s;
}

.v82b-internal-link:hover {
  color: var(--v82b-accent-hover);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
  main {
    padding-bottom: 80px;
  }
}

@media (min-width: 769px) {
  .v82b-bottom-nav {
    display: none;
  }
}

/* H1 styling */
.v82b-h1-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--v82b-text);
  padding: 1rem 1.2rem 0.5rem;
  line-height: 2.4rem;
}

.v82b-h1-title span {
  color: var(--v82b-accent);
}

/* FAQ module */
.v82b-faq-item {
  margin-bottom: 0.8rem;
}

.v82b-faq-q {
  font-weight: 600;
  color: var(--v82b-accent);
  margin-bottom: 0.3rem;
  font-size: 1.3rem;
}

.v82b-faq-a {
  color: var(--v82b-text-muted);
  font-size: 1.2rem;
  line-height: 1.6rem;
  padding-left: 0.8rem;
}

/* RTP table */
.v82b-rtp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.2rem;
}

.v82b-rtp-table th {
  background: var(--v82b-accent);
  color: #fff;
  padding: 0.4rem 0.6rem;
  text-align: left;
}

.v82b-rtp-table td {
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid var(--v82b-border);
  color: var(--v82b-text-muted);
}

.v82b-rtp-high {
  color: #4CAF50;
  font-weight: 600;
}

/* Testimonial */
.v82b-testimonial {
  background: var(--v82b-bg-light);
  border-radius: var(--v82b-radius);
  padding: 0.8rem;
  margin-bottom: 0.6rem;
  border-left: 3px solid var(--v82b-accent);
}

.v82b-testimonial-author {
  font-weight: 600;
  color: var(--v82b-accent);
  font-size: 1.2rem;
}

.v82b-testimonial-text {
  color: var(--v82b-text-muted);
  font-size: 1.2rem;
  line-height: 1.5rem;
  margin-top: 0.3rem;
}

/* App download section */
.v82b-app-dl {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  margin-top: 0.8rem;
}

.v82b-app-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--v82b-bg-light);
  border: 1.5px solid var(--v82b-accent);
  border-radius: var(--v82b-radius);
  padding: 0.6rem 1rem;
  color: var(--v82b-accent);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.v82b-app-btn:hover {
  background: rgba(255, 127, 80, 0.1);
}

/* Help page styles */
.v82b-help-section {
  padding: 1rem 1.2rem;
}

.v82b-help-section h1 {
  font-size: 1.8rem;
  color: var(--v82b-text);
  margin-bottom: 0.8rem;
}

.v82b-help-section h1 span {
  color: var(--v82b-accent);
}

.v82b-help-section h2 {
  font-size: 1.5rem;
  color: var(--v82b-accent);
  margin: 1rem 0 0.5rem;
}

.v82b-help-section p {
  color: var(--v82b-text-muted);
  line-height: 1.7rem;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.v82b-help-section ol,
.v82b-help-section ul {
  padding-left: 1.5rem;
  color: var(--v82b-text-muted);
  margin-bottom: 0.5rem;
}

.v82b-help-section li {
  margin-bottom: 0.4rem;
  line-height: 1.6rem;
  font-size: 1.3rem;
}

.v82b-help-section strong {
  color: var(--v82b-accent);
}

.v82b-help-cta {
  display: block;
  text-align: center;
  background: var(--v82b-accent);
  color: #fff;
  padding: 0.8rem;
  border-radius: var(--v82b-radius);
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  margin: 0.8rem 0;
  text-decoration: none;
}
