/**
 * okfun app - Core CSS Stylesheet
 * Prefix: v4ce-
 * Color Palette: #FF69B4 | #262626 | #FF0000 | #E65100 | #DC143C
 * Dark backgrounds, light text, mobile-first responsive design.
 */

/* CSS Variables */
:root {
  --v4ce-primary: #FF69B4;
  --v4ce-bg-dark: #262626;
  --v4ce-bg-darker: #1a1a1a;
  --v4ce-accent-red: #FF0000;
  --v4ce-accent-orange: #E65100;
  --v4ce-accent-crimson: #DC143C;
  --v4ce-text-light: #f5f5f5;
  --v4ce-text-muted: #b0b0b0;
  --v4ce-text-dim: #888888;
  --v4ce-card-bg: #2a2a2a;
  --v4ce-border-color: #3a3a3a;
  --v4ce-radius: 8px;
  --v4ce-radius-lg: 12px;
  --v4ce-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  --v4ce-transition: all 0.3s ease;
}

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

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

body {
  font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--v4ce-bg-darker);
  color: var(--v4ce-text-light);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--v4ce-primary);
  text-decoration: none;
  transition: var(--v4ce-transition);
}

a:hover {
  color: #ff8ecf;
}

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

/* ===== HEADER ===== */
.v4ce-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 56px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 1000;
  border-bottom: 2px solid var(--v4ce-accent-crimson);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.v4ce-logo-area {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

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

.v4ce-logo-area span {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--v4ce-primary);
  white-space: nowrap;
}

.v4ce-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.v4ce-btn-register {
  background: linear-gradient(135deg, var(--v4ce-accent-crimson), var(--v4ce-accent-orange));
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--v4ce-transition);
  white-space: nowrap;
}

.v4ce-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(220, 20, 60, 0.5);
}

.v4ce-btn-login {
  background: transparent;
  color: var(--v4ce-primary);
  border: 1.5px solid var(--v4ce-primary);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--v4ce-transition);
  white-space: nowrap;
}

.v4ce-btn-login:hover {
  background: rgba(255, 105, 180, 0.15);
}

.v4ce-menu-toggle {
  background: none;
  border: none;
  color: var(--v4ce-text-light);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

/* ===== MOBILE MENU ===== */
.v4ce-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: linear-gradient(180deg, #1e1e1e, #262626);
  z-index: 9999;
  transition: right 0.35s ease;
  padding: 20px 16px;
  overflow-y: auto;
}

.v4ce-menu-active {
  right: 0 !important;
}

.v4ce-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
}

.v4ce-overlay-active {
  display: block !important;
}

.v4ce-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--v4ce-border-color);
}

.v4ce-menu-header span {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--v4ce-primary);
}

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

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

.v4ce-menu-links li {
  margin-bottom: 4px;
}

.v4ce-menu-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 10px;
  color: var(--v4ce-text-light);
  font-size: 1.4rem;
  border-radius: var(--v4ce-radius);
  transition: var(--v4ce-transition);
}

.v4ce-menu-links a:hover {
  background: rgba(255, 105, 180, 0.1);
  color: var(--v4ce-primary);
}

/* ===== MAIN CONTENT ===== */
.v4ce-main {
  padding-top: 56px;
  min-height: 100vh;
}

/* ===== CAROUSEL ===== */
.v4ce-carousel {
  position: relative;
  overflow: hidden;
  margin: 0;
}

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

.v4ce-carousel-slide {
  min-width: 100%;
  cursor: pointer;
}

.v4ce-carousel-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

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

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

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

/* ===== SECTION STYLES ===== */
.v4ce-section {
  padding: 20px 14px;
}

.v4ce-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--v4ce-primary);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--v4ce-accent-crimson);
  display: flex;
  align-items: center;
  gap: 8px;
}

.v4ce-section-title i {
  font-size: 2rem;
}

/* ===== GAME GRID ===== */
.v4ce-category-label {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--v4ce-accent-orange);
  margin: 16px 0 10px;
  padding-left: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.v4ce-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}

.v4ce-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: var(--v4ce-transition);
  border-radius: var(--v4ce-radius);
  padding: 6px 2px;
}

.v4ce-game-item:hover {
  background: rgba(255, 105, 180, 0.1);
  transform: translateY(-2px);
}

.v4ce-game-item img {
  width: 64px;
  height: 64px;
  border-radius: var(--v4ce-radius);
  margin-bottom: 4px;
  border: 1px solid var(--v4ce-border-color);
}

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

/* ===== CONTENT CARDS ===== */
.v4ce-card {
  background: var(--v4ce-card-bg);
  border-radius: var(--v4ce-radius-lg);
  padding: 16px;
  margin-bottom: 14px;
  border: 1px solid var(--v4ce-border-color);
}

.v4ce-card h3 {
  font-size: 1.5rem;
  color: var(--v4ce-primary);
  margin-bottom: 10px;
}

.v4ce-card p {
  font-size: 1.3rem;
  color: var(--v4ce-text-muted);
  line-height: 1.6;
  margin-bottom: 8px;
}

/* ===== PROMO BUTTONS ===== */
.v4ce-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--v4ce-accent-crimson), var(--v4ce-accent-orange));
  color: #fff;
  padding: 10px 24px;
  border-radius: 24px;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--v4ce-transition);
  text-align: center;
}

.v4ce-promo-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(220, 20, 60, 0.4);
}

.v4ce-promo-link {
  color: var(--v4ce-primary);
  font-weight: 700;
  cursor: pointer;
  border-bottom: 1px dashed var(--v4ce-primary);
}

.v4ce-promo-link:hover {
  color: #ff8ecf;
}

/* ===== FAQ ===== */
.v4ce-faq-item {
  border: 1px solid var(--v4ce-border-color);
  border-radius: var(--v4ce-radius);
  margin-bottom: 8px;
  overflow: hidden;
}

.v4ce-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--v4ce-card-bg);
  cursor: pointer;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--v4ce-text-light);
  transition: var(--v4ce-transition);
}

.v4ce-faq-question:hover {
  background: #333;
}

.v4ce-faq-icon {
  transition: transform 0.3s ease;
  color: var(--v4ce-primary);
  font-size: 1.4rem;
}

.v4ce-faq-answer {
  display: none;
  padding: 12px 14px;
  font-size: 1.2rem;
  color: var(--v4ce-text-muted);
  line-height: 1.6;
  background: var(--v4ce-bg-darker);
}

/* ===== TESTIMONIALS ===== */
.v4ce-testimonial {
  background: var(--v4ce-card-bg);
  border-radius: var(--v4ce-radius-lg);
  padding: 14px;
  margin-bottom: 10px;
  border-left: 3px solid var(--v4ce-primary);
}

.v4ce-testimonial p {
  font-size: 1.2rem;
  color: var(--v4ce-text-muted);
  font-style: italic;
  margin-bottom: 6px;
}

.v4ce-testimonial-author {
  font-size: 1.1rem;
  color: var(--v4ce-primary);
  font-weight: 600;
}

/* ===== WINNERS ===== */
.v4ce-winner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--v4ce-border-color);
}

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

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

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

.v4ce-winner-amount {
  font-size: 1.3rem;
  color: var(--v4ce-accent-red);
  font-weight: 700;
}

/* ===== FOOTER ===== */
.v4ce-footer {
  background: linear-gradient(180deg, #1e1e1e, #141414);
  padding: 24px 14px 16px;
  border-top: 2px solid var(--v4ce-accent-crimson);
}

.v4ce-footer-brand {
  font-size: 1.2rem;
  color: var(--v4ce-text-dim);
  line-height: 1.6;
  margin-bottom: 16px;
}

.v4ce-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.v4ce-footer-links a {
  background: var(--v4ce-card-bg);
  color: var(--v4ce-text-muted);
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 1.1rem;
  border: 1px solid var(--v4ce-border-color);
  transition: var(--v4ce-transition);
}

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

.v4ce-footer-copy {
  text-align: center;
  font-size: 1.1rem;
  color: var(--v4ce-text-dim);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--v4ce-border-color);
}

/* ===== BOTTOM NAV ===== */
.v4ce-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: linear-gradient(180deg, #2a2a2a, #1a1a1a);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1000;
  border-top: 2px solid var(--v4ce-primary);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.5);
}

.v4ce-bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 56px;
  background: none;
  border: none;
  color: var(--v4ce-text-dim);
  cursor: pointer;
  transition: var(--v4ce-transition);
  padding: 4px 0;
  position: relative;
}

.v4ce-bottom-btn i,
.v4ce-bottom-btn .material-icons {
  font-size: 24px;
  margin-bottom: 2px;
}

.v4ce-bottom-btn span {
  font-size: 10px;
  white-space: nowrap;
}

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

.v4ce-bottom-btn-active {
  color: var(--v4ce-primary) !important;
}

.v4ce-bottom-btn-active::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: var(--v4ce-primary);
  border-radius: 1px;
}

/* ===== HELPER CLASSES ===== */
.v4ce-text-center {
  text-align: center;
}

.v4ce-mt-10 {
  margin-top: 10px;
}

.v4ce-mb-10 {
  margin-bottom: 10px;
}

.v4ce-hidden {
  display: none !important;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 769px) {
  .v4ce-bottom-nav {
    display: none;
  }
}

@media (max-width: 768px) {
  .v4ce-main {
    padding-bottom: 80px;
  }
}

/* ===== PAYMENT ICONS ===== */
.v4ce-payment-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 0;
}

.v4ce-payment-icon {
  font-size: 2.4rem;
  color: var(--v4ce-text-muted);
  transition: var(--v4ce-transition);
}

.v4ce-payment-icon:hover {
  color: var(--v4ce-primary);
}

/* ===== ACHIEVEMENTS ===== */
.v4ce-achievement {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--v4ce-card-bg);
  border-radius: var(--v4ce-radius);
  margin-bottom: 8px;
  border: 1px solid var(--v4ce-border-color);
}

.v4ce-achievement i {
  font-size: 2rem;
  color: var(--v4ce-accent-orange);
}

.v4ce-achievement-text {
  font-size: 1.2rem;
  color: var(--v4ce-text-muted);
}

.v4ce-achievement-text strong {
  color: var(--v4ce-primary);
}

/* ===== TRICKS SECTION ===== */
.v4ce-trick-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.v4ce-trick-num {
  background: var(--v4ce-accent-crimson);
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.v4ce-trick-text {
  font-size: 1.2rem;
  color: var(--v4ce-text-muted);
  line-height: 1.5;
}

/* ===== DOWNLOAD CTA ===== */
.v4ce-download-box {
  background: linear-gradient(135deg, var(--v4ce-bg-dark), #333);
  border-radius: var(--v4ce-radius-lg);
  padding: 20px;
  text-align: center;
  border: 1px solid var(--v4ce-accent-crimson);
  margin: 14px 0;
}

.v4ce-download-box h3 {
  color: var(--v4ce-primary);
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.v4ce-download-box p {
  color: var(--v4ce-text-muted);
  font-size: 1.2rem;
  margin-bottom: 14px;
}

.v4ce-app-icons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.v4ce-app-btn {
  background: var(--v4ce-card-bg);
  border: 1px solid var(--v4ce-border-color);
  color: var(--v4ce-text-light);
  padding: 10px 20px;
  border-radius: var(--v4ce-radius);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--v4ce-transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.v4ce-app-btn:hover {
  border-color: var(--v4ce-primary);
  background: rgba(255, 105, 180, 0.1);
}
