/**
 * jl65 Gaming Platform - Core Stylesheet
 * Prefix: ve27-
 * Theme: Purple / Violet Dark
 * Mobile-first design (max-width: 430px base)
 */

/* CSS Variables */
:root {
  --ve27-primary: #8A2BE2;
  --ve27-secondary: #9400D3;
  --ve27-accent: #9370DB;
  --ve27-bg: #0C0C0C;
  --ve27-bg-light: #1A1A2E;
  --ve27-bg-card: #16213E;
  --ve27-text: #E8E8E8;
  --ve27-text-muted: #9370DB;
  --ve27-text-highlight: #D4A5FF;
  --ve27-border: #2A1A4E;
  --ve27-gradient: linear-gradient(135deg, #8A2BE2, #9400D3);
  --ve27-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
  --ve27-radius: 8px;
  --ve27-radius-lg: 12px;
  --ve27-transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--ve27-bg);
  color: var(--ve27-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--ve27-accent);
  transition: var(--ve27-transition);
}

a:hover {
  color: var(--ve27-text-highlight);
}

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

/* Container */
.ve27-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
  width: 100%;
}

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

/* Header */
.ve27-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #0C0C0C 0%, #1A0A2E 100%);
  border-bottom: 1px solid var(--ve27-border);
  padding: 0.8rem 1.2rem;
}

.ve27-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 430px;
  margin: 0 auto;
}

.ve27-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}

.ve27-logo img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.ve27-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--ve27-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.ve27-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border-radius: var(--ve27-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--ve27-transition);
  min-height: 36px;
}

.ve27-btn-register {
  background: var(--ve27-gradient);
  color: #fff;
  box-shadow: var(--ve27-shadow);
}

.ve27-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(138, 43, 226, 0.5);
}

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

.ve27-btn-login:hover {
  background: rgba(138, 43, 226, 0.15);
  color: var(--ve27-text-highlight);
}

.ve27-menu-toggle {
  background: none;
  border: none;
  color: var(--ve27-accent);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
}

/* Mobile Menu */
.ve27-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: #0D0D1A;
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}

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

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

.ve27-menu-close {
  background: none;
  border: none;
  color: var(--ve27-accent);
  font-size: 2rem;
  cursor: pointer;
}

.ve27-menu-links {
  list-style: none;
}

.ve27-menu-links li {
  margin-bottom: 0.5rem;
}

.ve27-menu-links a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem;
  color: var(--ve27-text);
  font-size: 1.4rem;
  border-radius: var(--ve27-radius);
  transition: var(--ve27-transition);
}

.ve27-menu-links a:hover {
  background: rgba(138, 43, 226, 0.15);
  color: var(--ve27-text-highlight);
}

/* Overlay */
.ve27-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

/* Carousel */
.ve27-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--ve27-radius-lg);
  margin-top: 0.8rem;
}

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

.ve27-carousel-slide img {
  width: 100%;
  height: auto;
  border-radius: var(--ve27-radius-lg);
}

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

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

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

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

/* Section Titles */
.ve27-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ve27-text);
  margin: 2rem 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--ve27-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.ve27-section-title i,
.ve27-section-title .material-icons {
  color: var(--ve27-primary);
}

/* Game Grid */
.ve27-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  padding: 0.5rem 0;
}

.ve27-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: var(--ve27-transition);
  border-radius: var(--ve27-radius);
  padding: 0.4rem;
}

.ve27-game-item:hover {
  transform: translateY(-2px);
  background: rgba(138, 43, 226, 0.1);
}

.ve27-game-item img {
  width: 64px;
  height: 64px;
  border-radius: var(--ve27-radius);
  margin-bottom: 0.3rem;
  border: 1px solid var(--ve27-border);
}

.ve27-game-name {
  font-size: 1rem;
  color: var(--ve27-text-muted);
  text-align: center;
  line-height: 1.2rem;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Category Header */
.ve27-cat-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1.5rem 0 0.8rem;
  padding: 0.6rem 0.8rem;
  background: linear-gradient(90deg, rgba(138, 43, 226, 0.2) 0%, transparent 100%);
  border-left: 3px solid var(--ve27-primary);
  border-radius: 0 var(--ve27-radius) var(--ve27-radius) 0;
}

.ve27-cat-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ve27-text-highlight);
}

.ve27-cat-header span {
  font-size: 1.1rem;
  color: var(--ve27-text-muted);
  margin-left: auto;
}

/* Promo Card */
.ve27-promo-card {
  background: var(--ve27-bg-card);
  border-radius: var(--ve27-radius-lg);
  padding: 1.5rem;
  margin: 1rem 0;
  border: 1px solid var(--ve27-border);
}

.ve27-promo-card h3 {
  font-size: 1.5rem;
  color: var(--ve27-text-highlight);
  margin-bottom: 0.8rem;
}

.ve27-promo-card p {
  color: var(--ve27-text);
  font-size: 1.3rem;
  line-height: 2rem;
  margin-bottom: 0.8rem;
}

.ve27-promo-btn {
  display: inline-block;
  background: var(--ve27-gradient);
  color: #fff;
  padding: 0.8rem 1.8rem;
  border-radius: var(--ve27-radius);
  font-weight: 600;
  font-size: 1.3rem;
  cursor: pointer;
  border: none;
  box-shadow: var(--ve27-shadow);
  transition: var(--ve27-transition);
}

.ve27-promo-btn:hover {
  transform: scale(1.05);
}

.ve27-text-link {
  color: var(--ve27-text-highlight);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

/* Footer */
.ve27-footer {
  background: #0A0A15;
  padding: 2rem 1.2rem 3rem;
  margin-top: 2rem;
  border-top: 1px solid var(--ve27-border);
}

.ve27-footer-brand {
  text-align: center;
  margin-bottom: 1.5rem;
}

.ve27-footer-brand p {
  color: var(--ve27-text-muted);
  font-size: 1.2rem;
  line-height: 1.8rem;
  max-width: 360px;
  margin: 0 auto;
}

.ve27-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin: 1.2rem 0;
}

.ve27-footer-links a {
  color: var(--ve27-accent);
  font-size: 1.1rem;
  padding: 0.3rem 0.6rem;
}

.ve27-footer-promos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin: 1rem 0;
}

.ve27-footer-promos .ve27-promo-btn {
  padding: 0.5rem 1rem;
  font-size: 1.1rem;
}

.ve27-footer-copy {
  text-align: center;
  color: #555;
  font-size: 1rem;
  margin-top: 1rem;
}

/* Bottom Navigation - Fixed Mobile */
.ve27-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #0D0D1A;
  border-top: 1px solid var(--ve27-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  padding: 0 0.5rem;
}

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

.ve27-bottom-btn:hover,
.ve27-bottom-btn:active {
  color: var(--ve27-primary);
  transform: scale(1.1);
}

.ve27-bottom-btn .ve27-nav-icon {
  font-size: 22px;
  margin-bottom: 2px;
}

.ve27-bottom-btn .ve27-nav-label {
  font-size: 10px;
  font-weight: 500;
}

.ve27-bottom-active {
  color: var(--ve27-primary);
}

.ve27-bottom-active .ve27-nav-label {
  color: var(--ve27-primary);
}

/* Main Content Padding for Header & Bottom Nav */
.ve27-main {
  padding-top: 5.5rem;
}

/* Content Modules */
.ve27-content-block {
  background: var(--ve27-bg-card);
  border-radius: var(--ve27-radius-lg);
  padding: 1.5rem;
  margin: 1.2rem 0;
  border: 1px solid var(--ve27-border);
}

.ve27-content-block h2 {
  font-size: 1.6rem;
  color: var(--ve27-text-highlight);
  margin-bottom: 1rem;
}

.ve27-content-block h3 {
  font-size: 1.4rem;
  color: var(--ve27-accent);
  margin: 1rem 0 0.5rem;
}

.ve27-content-block p {
  font-size: 1.3rem;
  line-height: 2rem;
  color: var(--ve27-text);
  margin-bottom: 0.8rem;
}

.ve27-content-block ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
}

.ve27-content-block li {
  padding: 0.4rem 0;
  font-size: 1.3rem;
  color: var(--ve27-text);
  line-height: 1.8rem;
}

.ve27-content-block li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--ve27-primary);
  margin-right: 0.6rem;
  font-size: 1rem;
}

/* RTP Bar Chart */
.ve27-rtp-bar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0.5rem 0;
}

.ve27-rtp-label {
  font-size: 1.1rem;
  color: var(--ve27-text-muted);
  min-width: 90px;
  text-align: right;
}

.ve27-rtp-track {
  flex: 1;
  height: 16px;
  background: #1A1A2E;
  border-radius: 8px;
  overflow: hidden;
}

.ve27-rtp-fill {
  height: 100%;
  background: var(--ve27-gradient);
  border-radius: 8px;
  transition: width 0.6s ease;
}

.ve27-rtp-value {
  font-size: 1.1rem;
  color: var(--ve27-text-highlight);
  font-weight: 600;
  min-width: 40px;
}

/* Testimonial Card */
.ve27-testimonial {
  background: var(--ve27-bg-light);
  border-radius: var(--ve27-radius);
  padding: 1rem;
  margin: 0.6rem 0;
  border-left: 3px solid var(--ve27-primary);
}

.ve27-testimonial p {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--ve27-text);
  line-height: 1.7rem;
}

.ve27-testimonial .ve27-author {
  font-style: normal;
  font-weight: 600;
  color: var(--ve27-accent);
  margin-top: 0.4rem;
  font-size: 1.1rem;
}

/* Winner Badge */
.ve27-winner {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--ve27-border);
}

.ve27-winner:last-child {
  border-bottom: none;
}

.ve27-winner-name {
  font-size: 1.2rem;
  color: var(--ve27-text-highlight);
  font-weight: 600;
}

.ve27-winner-game {
  font-size: 1.1rem;
  color: var(--ve27-text-muted);
}

.ve27-winner-amount {
  margin-left: auto;
  font-size: 1.2rem;
  color: #FFD700;
  font-weight: 700;
}

/* Payment Methods */
.ve27-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

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

/* Desktop: hide bottom nav */
@media (min-width: 769px) {
  .ve27-bottom-nav {
    display: none;
  }
}

/* Mobile: add bottom padding for fixed nav */
@media (max-width: 768px) {
  .ve27-main {
    padding-bottom: 80px;
  }
}

/* Desktop larger view */
@media (min-width: 431px) {
  .ve27-container {
    padding: 0 2rem;
  }
}

/* Utility */
.ve27-text-center { text-align: center; }
.ve27-mt-1 { margin-top: 1rem; }
.ve27-mt-2 { margin-top: 2rem; }
.ve27-mb-1 { margin-bottom: 1rem; }
.ve27-mb-2 { margin-bottom: 2rem; }
.ve27-highlight { color: var(--ve27-text-highlight); font-weight: 600; }
.ve27-gold { color: #FFD700; }
.ve27-purple { color: var(--ve27-primary); }
