/**
 * GPerya Link - Core Stylesheet
 * All classes use "vce5-" prefix for namespace isolation
 * CSS variables use "--vce5-" prefix
 * Mobile-first design, max-width 430px
 */

:root {
  --vce5-primary: #FFB6C1;
  --vce5-primary-dark: #E8919C;
  --vce5-primary-light: #FFD4DC;
  --vce5-bg: #3A3A3A;
  --vce5-bg-dark: #2A2A2A;
  --vce5-bg-light: #4A4A4A;
  --vce5-bg-card: #333333;
  --vce5-text: #FFB6C1;
  --vce5-text-light: #FFFFFF;
  --vce5-text-muted: #AAAAAA;
  --vce5-accent: #FF69B4;
  --vce5-border: #555555;
  --vce5-success: #4CAF50;
  --vce5-warning: #FF9800;
  --vce5-gold: #FFD700;
  --vce5-radius: 8px;
  --vce5-radius-lg: 12px;
  --vce5-shadow: 0 2px 8px rgba(0,0,0,0.3);
  --vce5-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: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--vce5-bg);
  color: var(--vce5-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--vce5-primary); text-decoration: none; transition: var(--vce5-transition); }
a:hover { color: var(--vce5-primary-light); }
img { max-width: 100%; height: auto; display: block; }

/* Header */
.vce5-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--vce5-bg-dark);
  border-bottom: 1px solid var(--vce5-border);
  max-width: 430px; margin: 0 auto;
  padding: 0 1.2rem; height: 52px;
  display: flex; align-items: center; justify-content: space-between;
}
.vce5-header-left { display: flex; align-items: center; gap: 0.8rem; }
.vce5-logo { width: 28px; height: 28px; border-radius: 4px; }
.vce5-site-name { color: var(--vce5-primary); font-size: 1.6rem; font-weight: 700; }
.vce5-header-right { display: flex; align-items: center; gap: 0.6rem; }
.vce5-btn-register, .vce5-btn-login {
  border: none; border-radius: var(--vce5-radius); padding: 0.6rem 1.4rem;
  font-size: 1.2rem; font-weight: 600; cursor: pointer; transition: var(--vce5-transition);
}
.vce5-btn-register {
  background: var(--vce5-primary); color: var(--vce5-bg-dark);
}
.vce5-btn-register:hover { background: var(--vce5-primary-dark); transform: scale(1.05); }
.vce5-btn-login {
  background: transparent; color: var(--vce5-primary);
  border: 1px solid var(--vce5-primary);
}
.vce5-btn-login:hover { background: var(--vce5-primary); color: var(--vce5-bg-dark); }
.vce5-menu-toggle {
  background: none; border: none; color: var(--vce5-primary);
  font-size: 2rem; cursor: pointer; padding: 0.4rem; line-height: 1;
}

/* Mobile Menu */
.vce5-menu-overlay {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6); z-index: 9998;
}
.vce5-overlay-active { display: block; }
.vce5-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100%;
  background: var(--vce5-bg-dark); z-index: 9999;
  transition: right 0.3s ease; overflow-y: auto; padding: 2rem 1.5rem;
}
.vce5-menu-active { right: 0; }
.vce5-menu-close {
  background: none; border: none; color: var(--vce5-primary);
  font-size: 2.4rem; cursor: pointer; position: absolute; top: 1rem; right: 1rem;
}
.vce5-menu-list { list-style: none; margin-top: 3rem; }
.vce5-menu-list li { margin-bottom: 0.3rem; }
.vce5-menu-list a {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem; border-radius: var(--vce5-radius);
  color: var(--vce5-text-light); font-size: 1.4rem;
  transition: var(--vce5-transition);
}
.vce5-menu-list a:hover { background: var(--vce5-bg-light); color: var(--vce5-primary); }
.vce5-menu-list .material-symbols-outlined { font-size: 2rem; }

/* Main Content */
.vce5-main { padding-top: 52px; }
@media (max-width: 768px) {
  .vce5-main { padding-bottom: 80px; }
}

/* Carousel */
.vce5-carousel {
  position: relative; overflow: hidden; width: 100%;
  aspect-ratio: 16/7; background: var(--vce5-bg-dark);
}
.vce5-carousel-slide {
  display: none; width: 100%; height: 100%;
  cursor: pointer;
}
.vce5-slide-active { display: block; }
.vce5-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.vce5-carousel-dots {
  position: absolute; bottom: 1rem; left: 50%;
  transform: translateX(-50%); display: flex; gap: 0.6rem;
}
.vce5-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer;
  transition: var(--vce5-transition); border: none;
}
.vce5-dot-active { background: var(--vce5-primary); transform: scale(1.3); }

/* Section */
.vce5-section { padding: 2rem 1.2rem; }
.vce5-section-title {
  font-size: 1.8rem; font-weight: 700; color: var(--vce5-primary);
  margin-bottom: 1.2rem; padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--vce5-primary-dark);
}
.vce5-section-subtitle {
  font-size: 1.5rem; font-weight: 600; color: var(--vce5-primary);
  margin: 1.5rem 0 0.8rem;
}

/* Game Grid */
.vce5-game-category { margin-bottom: 2rem; }
.vce5-category-label {
  font-size: 1.3rem; font-weight: 600; color: var(--vce5-primary);
  margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.5px;
  display: flex; align-items: center; gap: 0.5rem;
}
.vce5-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.vce5-game-item { text-align: center; cursor: pointer; transition: var(--vce5-transition); }
.vce5-game-item:hover { transform: translateY(-2px); }
.vce5-game-item img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--vce5-radius); border: 1px solid var(--vce5-border);
}
.vce5-game-item span {
  display: block; font-size: 1.1rem; color: var(--vce5-text-light);
  margin-top: 0.4rem; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap;
}

/* Cards */
.vce5-card {
  background: var(--vce5-bg-card); border-radius: var(--vce5-radius-lg);
  padding: 1.5rem; margin-bottom: 1.2rem; border: 1px solid var(--vce5-border);
}
.vce5-card-title {
  font-size: 1.5rem; font-weight: 600; color: var(--vce5-primary);
  margin-bottom: 0.8rem;
}

/* Buttons */
.vce5-btn {
  display: inline-block; padding: 1rem 2rem; border-radius: var(--vce5-radius);
  font-size: 1.4rem; font-weight: 600; cursor: pointer;
  transition: var(--vce5-transition); border: none; text-align: center;
}
.vce5-btn-primary {
  background: var(--vce5-primary); color: var(--vce5-bg-dark);
}
.vce5-btn-primary:hover { background: var(--vce5-primary-dark); transform: scale(1.05); }
.vce5-btn-outline {
  background: transparent; color: var(--vce5-primary);
  border: 2px solid var(--vce5-primary);
}
.vce5-btn-outline:hover { background: var(--vce5-primary); color: var(--vce5-bg-dark); }
.vce5-btn-block { display: block; width: 100%; }
.vce5-btn-lg { padding: 1.2rem 2.5rem; font-size: 1.6rem; }

/* Footer */
.vce5-footer {
  background: var(--vce5-bg-dark); padding: 2rem 1.2rem;
  border-top: 1px solid var(--vce5-border);
}
.vce5-footer-brand {
  font-size: 1.3rem; color: var(--vce5-text-muted); line-height: 1.8rem;
  margin-bottom: 1.5rem;
}
.vce5-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.5rem;
}
.vce5-footer-links a {
  font-size: 1.2rem; color: var(--vce5-text-light);
  padding: 0.4rem 0.8rem; background: var(--vce5-bg-light);
  border-radius: var(--vce5-radius); transition: var(--vce5-transition);
}
.vce5-footer-links a:hover { background: var(--vce5-primary); color: var(--vce5-bg-dark); }
.vce5-footer-partners {
  display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center;
  margin-bottom: 1.5rem;
}
.vce5-footer-partners img {
  width: 40px; height: 40px; border-radius: 4px;
  opacity: 0.7; transition: var(--vce5-transition);
}
.vce5-footer-partners img:hover { opacity: 1; }
.vce5-footer-copy {
  font-size: 1.1rem; color: var(--vce5-text-muted); text-align: center;
  padding-top: 1rem; border-top: 1px solid var(--vce5-border);
}

/* Bottom Navigation */
.vce5-bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 1000; background: var(--vce5-bg-dark);
  border-top: 1px solid var(--vce5-border);
  height: 60px; max-width: 430px; margin: 0 auto;
}
.vce5-bottom-nav-inner {
  display: flex; justify-content: space-around; align-items: center;
  height: 100%; padding: 0 0.5rem;
}
.vce5-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(--vce5-text-muted); cursor: pointer; transition: var(--vce5-transition);
  position: relative; text-decoration: none; gap: 0.2rem;
}
.vce5-bottom-btn:hover, .vce5-bottom-btn:focus { color: var(--vce5-primary); }
.vce5-bottom-btn .vce5-nav-icon { font-size: 2.2rem; line-height: 1; }
.vce5-bottom-btn .vce5-nav-icon i { font-size: 2.2rem; }
.vce5-bottom-btn .vce5-nav-icon .material-symbols-outlined { font-size: 2.4rem; }
.vce5-bottom-btn .vce5-nav-icon .bi { font-size: 2rem; }
.vce5-bottom-btn .vce5-nav-label {
  font-size: 1rem; line-height: 1.2;
}
.vce5-bottom-btn.vce5-active { color: var(--vce5-primary); }
.vce5-bottom-btn.vce5-active .vce5-nav-icon { transform: scale(1.1); }
.vce5-bottom-badge {
  position: absolute; top: 2px; right: 8px;
  background: var(--vce5-accent); color: #fff;
  font-size: 0.9rem; font-weight: 700;
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
@media (max-width: 768px) {
  .vce5-bottom-nav { display: block; }
}

/* Content Blocks */
.vce5-content p { margin-bottom: 1rem; line-height: 1.8rem; }
.vce5-content h2 {
  font-size: 1.7rem; color: var(--vce5-primary);
  margin: 2rem 0 1rem; font-weight: 700;
}
.vce5-content h3 {
  font-size: 1.4rem; color: var(--vce5-primary);
  margin: 1.5rem 0 0.8rem; font-weight: 600;
}
.vce5-content ul { padding-left: 2rem; margin-bottom: 1rem; }
.vce5-content li { margin-bottom: 0.5rem; line-height: 1.7rem; }
.vce5-content strong { color: var(--vce5-primary-light); }

/* Promo Link Styles */
.vce5-promo-text {
  color: var(--vce5-primary); font-weight: 700; cursor: pointer;
  transition: var(--vce5-transition);
}
.vce5-promo-text:hover { color: var(--vce5-primary-light); text-decoration: underline; }

/* Testimonial */
.vce5-testimonial {
  background: var(--vce5-bg-card); border-radius: var(--vce5-radius-lg);
  padding: 1.2rem; margin-bottom: 1rem; border-left: 3px solid var(--vce5-primary);
}
.vce5-testimonial-text { font-size: 1.3rem; color: var(--vce5-text-light); margin-bottom: 0.5rem; }
.vce5-testimonial-author { font-size: 1.1rem; color: var(--vce5-text-muted); }

/* Winner Showcase */
.vce5-winner-row {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.8rem; background: var(--vce5-bg-card);
  border-radius: var(--vce5-radius); margin-bottom: 0.6rem;
}
.vce5-winner-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--vce5-bg-light); }
.vce5-winner-info { flex: 1; }
.vce5-winner-name { font-size: 1.2rem; color: var(--vce5-text-light); }
.vce5-winner-game { font-size: 1rem; color: var(--vce5-text-muted); }
.vce5-winner-amount { font-size: 1.3rem; color: var(--vce5-success); font-weight: 700; }

/* Payment Methods */
.vce5-payment-grid {
  display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center;
}
.vce5-payment-item {
  background: var(--vce5-bg-card); border-radius: var(--vce5-radius);
  padding: 0.8rem 1.2rem; font-size: 1.2rem; color: var(--vce5-text-light);
  border: 1px solid var(--vce5-border); transition: var(--vce5-transition);
}
.vce5-payment-item:hover { border-color: var(--vce5-primary); }

/* FAQ Accordion */
.vce5-faq-item { margin-bottom: 0.8rem; }
.vce5-faq-q {
  font-size: 1.3rem; font-weight: 600; color: var(--vce5-primary);
  margin-bottom: 0.4rem;
}
.vce5-faq-a { font-size: 1.2rem; color: var(--vce5-text-light); line-height: 1.7rem; }

/* Utility */
.vce5-text-center { text-align: center; }
.vce5-mt-1 { margin-top: 1rem; }
.vce5-mt-2 { margin-top: 2rem; }
.vce5-mb-1 { margin-bottom: 1rem; }
.vce5-mb-2 { margin-bottom: 2rem; }
.vce5-hidden { display: none; }

/* Help Page Styles */
.vce5-help-section { margin-bottom: 2rem; }
.vce5-step-list { counter-reset: step; list-style: none; padding: 0; }
.vce5-step-list li {
  counter-increment: step; position: relative;
  padding: 0.8rem 0 0.8rem 3rem;
  border-bottom: 1px solid var(--vce5-border);
}
.vce5-step-list li::before {
  content: counter(step); position: absolute; left: 0; top: 0.8rem;
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--vce5-primary); color: var(--vce5-bg-dark);
  font-size: 1.2rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* Desktop adjustments */
@media (min-width: 769px) {
  .vce5-bottom-nav { display: none !important; }
  .vce5-main { padding-bottom: 0; }
}
