/*
 * kx8 specs - Design Stylesheet
 * Prefix: v1af-
 * Color Palette: #F5DEB3 | #CD853F | #8B7355 | #DB7093 | #0D1117
 * Dark colors for backgrounds, light colors for text
 */

:root {
  --v1af-primary: #CD853F;
  --v1af-secondary: #DB7093;
  --v1af-accent: #F5DEB3;
  --v1af-muted: #8B7355;
  --v1af-bg: #0D1117;
  --v1af-bg-light: #161b22;
  --v1af-bg-card: #1c2230;
  --v1af-text: #F5DEB3;
  --v1af-text-light: #e8d5a8;
  --v1af-text-muted: #8B7355;
  --v1af-border: #2a3040;
  --v1af-success: #4CAF50;
  --v1af-warning: #FF9800;
  --v1af-radius: 0.8rem;
  --v1af-radius-sm: 0.4rem;
  --v1af-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

/* 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(--v1af-bg);
  color: var(--v1af-text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--v1af-primary); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--v1af-secondary); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

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

/* Header */
.v1af-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, #0D1117 0%, #1c2230 100%);
  border-bottom: 1px solid var(--v1af-border);
  height: 5.6rem;
}
.v1af-header-inner {
  max-width: 430px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.2rem; height: 100%;
}
.v1af-logo { display: flex; align-items: center; gap: 0.8rem; cursor: pointer; }
.v1af-logo img { width: 3.2rem; height: 3.2rem; border-radius: 0.6rem; }
.v1af-logo-text { font-size: 1.6rem; font-weight: 700; color: var(--v1af-primary); letter-spacing: 0.5px; }
.v1af-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.v1af-btn-register {
  background: linear-gradient(135deg, var(--v1af-primary), #e8a84c);
  color: #0D1117; border: none; padding: 0.6rem 1.4rem; border-radius: 2rem;
  font-size: 1.2rem; font-weight: 700; cursor: pointer; transition: all 0.3s;
}
.v1af-btn-register:hover { transform: scale(1.05); box-shadow: 0 0 12px rgba(205,133,63,0.4); }
.v1af-btn-login {
  background: transparent; color: var(--v1af-primary);
  border: 1px solid var(--v1af-primary); padding: 0.6rem 1.4rem; border-radius: 2rem;
  font-size: 1.2rem; font-weight: 600; cursor: pointer; transition: all 0.3s;
}
.v1af-btn-login:hover { background: rgba(205,133,63,0.1); }
.v1af-menu-toggle {
  background: none; border: none; color: var(--v1af-text); font-size: 2.2rem;
  cursor: pointer; padding: 0.4rem; display: flex; align-items: center;
}

/* Mobile Menu */
.v1af-menu-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6); z-index: 9998; opacity: 0;
  pointer-events: none; transition: opacity 0.3s;
}
.v1af-overlay-active { opacity: 1; pointer-events: auto; }
.v1af-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100vh;
  background: var(--v1af-bg-light); z-index: 9999;
  transition: right 0.3s ease; padding: 2rem 1.6rem;
  border-left: 1px solid var(--v1af-border);
}
.v1af-menu-active { right: 0; }
.v1af-menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.v1af-menu-title { font-size: 1.6rem; color: var(--v1af-primary); font-weight: 700; }
.v1af-menu-close { background: none; border: none; color: var(--v1af-text); font-size: 2rem; cursor: pointer; }
.v1af-menu-nav a {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.2rem 0; color: var(--v1af-text); font-size: 1.4rem;
  border-bottom: 1px solid var(--v1af-border); transition: all 0.2s;
}
.v1af-menu-nav a:hover { color: var(--v1af-primary); padding-left: 0.6rem; }

/* Carousel */
.v1af-carousel { position: relative; overflow: hidden; margin-top: 5.6rem; border-radius: 0; }
.v1af-slides-wrapper { position: relative; width: 100%; }
.v1af-slide {
  width: 100%; opacity: 0; position: absolute; top: 0; left: 0;
  transition: opacity 0.6s ease;
}
.v1af-slide-active { opacity: 1; position: relative; }
.v1af-slide img { width: 100%; aspect-ratio: 430/200; object-fit: cover; cursor: pointer; }
.v1af-slide-dots {
  position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 0.6rem; z-index: 5;
}
.v1af-slide-dot {
  width: 0.8rem; height: 0.8rem; border-radius: 50%; background: rgba(245,222,179,0.4);
  border: none; cursor: pointer; transition: all 0.3s;
}
.v1af-dot-active { background: var(--v1af-primary); transform: scale(1.2); }

/* Section Titles */
.v1af-section-title {
  font-size: 1.8rem; font-weight: 700; color: var(--v1af-text);
  margin: 2rem 0 1.2rem; padding-left: 1.2rem;
  border-left: 3px solid var(--v1af-primary);
}
.v1af-section-subtitle {
  font-size: 1.3rem; color: var(--v1af-text-muted); margin-bottom: 1.6rem;
  padding: 0 1.2rem;
}

/* Category Tabs */
.v1af-category-label {
  font-size: 1.5rem; font-weight: 700; color: var(--v1af-primary);
  margin: 2rem 0 1rem; padding: 0.8rem 1.2rem;
  background: linear-gradient(90deg, rgba(205,133,63,0.15), transparent);
  border-left: 3px solid var(--v1af-primary); border-radius: 0 0.4rem 0.4rem 0;
}

/* Game Grid */
.v1af-game-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem; padding: 0 0.8rem;
}
.v1af-game-card {
  background: var(--v1af-bg-card); border-radius: var(--v1af-radius-sm);
  overflow: hidden; cursor: pointer; transition: all 0.3s;
  border: 1px solid var(--v1af-border);
}
.v1af-game-card:hover {
  transform: translateY(-2px); box-shadow: var(--v1af-shadow);
  border-color: var(--v1af-primary);
}
.v1af-game-card img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
  border-bottom: 1px solid var(--v1af-border);
}
.v1af-game-card p {
  font-size: 1.1rem; color: var(--v1af-text-light); text-align: center;
  padding: 0.6rem 0.4rem; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Content Modules */
.v1af-content-block {
  background: var(--v1af-bg-card); border-radius: var(--v1af-radius);
  padding: 1.6rem; margin: 1.2rem 0; border: 1px solid var(--v1af-border);
}
.v1af-content-block h2 {
  font-size: 1.6rem; color: var(--v1af-primary); margin-bottom: 1rem;
  font-weight: 700;
}
.v1af-content-block h3 {
  font-size: 1.4rem; color: var(--v1af-secondary); margin: 1.2rem 0 0.6rem;
}
.v1af-content-block p {
  font-size: 1.3rem; color: var(--v1af-text-light); line-height: 1.8;
  margin-bottom: 0.8rem;
}
.v1af-content-block ul { padding-left: 1.6rem; margin: 0.8rem 0; }
.v1af-content-block li {
  font-size: 1.3rem; color: var(--v1af-text-light); line-height: 1.8;
  list-style: disc; margin-bottom: 0.4rem;
}

/* Promo CTA */
.v1af-cta {
  background: linear-gradient(135deg, rgba(205,133,63,0.2), rgba(219,112,147,0.2));
  border: 1px solid var(--v1af-primary); border-radius: var(--v1af-radius);
  padding: 1.6rem; margin: 1.2rem 0; text-align: center;
}
.v1af-cta h3 { font-size: 1.5rem; color: var(--v1af-primary); margin-bottom: 0.8rem; }
.v1af-cta p { font-size: 1.3rem; color: var(--v1af-text-light); margin-bottom: 1rem; }
.v1af-cta-btn {
  display: inline-block; background: linear-gradient(135deg, var(--v1af-primary), #e8a84c);
  color: #0D1117; padding: 1rem 2.4rem; border-radius: 2.4rem;
  font-size: 1.4rem; font-weight: 700; cursor: pointer; transition: all 0.3s;
  border: none;
}
.v1af-cta-btn:hover { transform: scale(1.05); box-shadow: 0 0 16px rgba(205,133,63,0.5); }

/* Info Cards */
.v1af-info-card {
  background: var(--v1af-bg-card); border-radius: var(--v1af-radius);
  padding: 1.6rem; margin: 1rem 0; border: 1px solid var(--v1af-border);
  transition: all 0.3s;
}
.v1af-info-card:hover { border-color: var(--v1af-primary); }
.v1af-info-card h4 { font-size: 1.4rem; color: var(--v1af-primary); margin-bottom: 0.6rem; }
.v1af-info-card p { font-size: 1.2rem; color: var(--v1af-text-muted); line-height: 1.6; }

/* Stats Grid */
.v1af-stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; margin: 1rem 0; }
.v1af-stat-item {
  background: var(--v1af-bg-card); border-radius: var(--v1af-radius-sm);
  padding: 1.2rem; text-align: center; border: 1px solid var(--v1af-border);
}
.v1af-stat-value { font-size: 2rem; font-weight: 700; color: var(--v1af-primary); }
.v1af-stat-label { font-size: 1.1rem; color: var(--v1af-text-muted); margin-top: 0.4rem; }

/* Testimonial */
.v1af-testimonial {
  background: var(--v1af-bg-card); border-radius: var(--v1af-radius);
  padding: 1.4rem; margin: 0.8rem 0; border-left: 3px solid var(--v1af-secondary);
}
.v1af-testimonial p { font-size: 1.2rem; color: var(--v1af-text-light); line-height: 1.7; font-style: italic; }
.v1af-testimonial-author { font-size: 1.1rem; color: var(--v1af-primary); margin-top: 0.6rem; font-weight: 600; }

/* Payment Icons */
.v1af-payment-row { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin: 1rem 0; }
.v1af-payment-item {
  background: var(--v1af-bg-card); padding: 0.8rem 1.2rem; border-radius: 0.4rem;
  font-size: 1.2rem; color: var(--v1af-text-light); border: 1px solid var(--v1af-border);
}

/* Bottom Navigation */
.v1af-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, #1c2230, #0D1117);
  border-top: 1px solid var(--v1af-border);
  height: 6rem; display: flex; justify-content: space-around; align-items: center;
  padding: 0 0.4rem;
}
.v1af-bottom-nav-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 6rem; min-height: 5rem; background: none; border: none;
  color: var(--v1af-text-muted); cursor: pointer; transition: all 0.3s;
  border-radius: 0.6rem; padding: 0.4rem;
}
.v1af-bottom-nav-btn:hover { color: var(--v1af-primary); }
.v1af-bottom-nav-btn:active { transform: scale(0.92); }
.v1af-bottom-nav-btn .v1af-nav-icon { font-size: 2.2rem; margin-bottom: 0.2rem; }
.v1af-bottom-nav-btn .v1af-nav-label { font-size: 1rem; }
.v1af-bottom-nav-active { color: var(--v1af-primary) !important; }
.v1af-bottom-nav-active .v1af-nav-icon { text-shadow: 0 0 8px rgba(205,133,63,0.5); }

/* Footer */
.v1af-footer {
  background: var(--v1af-bg-light); border-top: 1px solid var(--v1af-border);
  padding: 2rem 1.2rem 8rem;
}
.v1af-footer-brand { text-align: center; margin-bottom: 1.6rem; }
.v1af-footer-brand h3 { font-size: 1.6rem; color: var(--v1af-primary); margin-bottom: 0.6rem; }
.v1af-footer-brand p { font-size: 1.2rem; color: var(--v1af-text-muted); line-height: 1.6; }
.v1af-footer-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem;
  margin: 1.2rem 0;
}
.v1af-footer-link {
  background: rgba(205,133,63,0.1); color: var(--v1af-primary);
  padding: 0.6rem 1.2rem; border-radius: 2rem; font-size: 1.1rem;
  border: 1px solid rgba(205,133,63,0.3); transition: all 0.3s;
}
.v1af-footer-link:hover { background: rgba(205,133,63,0.2); }
.v1af-footer-copy {
  text-align: center; font-size: 1.1rem; color: var(--v1af-text-muted);
  margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--v1af-border);
}

/* Promo Text Link */
.v1af-promo-link {
  color: var(--v1af-secondary); font-weight: 700; cursor: pointer;
  border-bottom: 1px dashed var(--v1af-secondary); transition: all 0.2s;
}
.v1af-promo-link:hover { color: var(--v1af-primary); border-color: var(--v1af-primary); }

/* FAQ */
.v1af-faq-item { margin: 1rem 0; }
.v1af-faq-q {
  font-size: 1.4rem; font-weight: 700; color: var(--v1af-primary);
  margin-bottom: 0.4rem;
}
.v1af-faq-a { font-size: 1.3rem; color: var(--v1af-text-light); line-height: 1.7; }

/* Main Content Area */
main { padding-top: 5.6rem; }
.v1af-main-content { padding: 0.8rem 0; }

/* Responsive */
@media (min-width: 769px) {
  .v1af-bottom-nav { display: none; }
  .v1af-container { max-width: 430px; }
  .v1af-footer { padding-bottom: 2rem; }
}
@media (max-width: 768px) {
  main { padding-bottom: 7rem; }
}

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