/**
 * Popular Online Casino - Main Stylesheet
 * All classes use v64c- prefix for namespace isolation
 * Color Palette: #E0FFFF | #880E4F | #808080 | #B0E0E6 | #0000FF | #1A1A2E
 */

/* CSS Variables */
:root {
  --v64c-primary: #880E4F;
  --v64c-bg: #1A1A2E;
  --v64c-text: #E0FFFF;
  --v64c-accent: #B0E0E6;
  --v64c-link: #0000FF;
  --v64c-muted: #808080;
  --v64c-dark: #1A1A2E;
  --v64c-card-bg: #16213E;
  --v64c-border: #2A2A4A;
  --v64c-gradient-start: #880E4F;
  --v64c-gradient-end: #1A1A2E;
  --v64c-success: #4CAF50;
  --v64c-gold: #FFD700;
  --v64c-white: #FFFFFF;
  --v64c-radius: 8px;
  --v64c-radius-lg: 12px;
  --v64c-shadow: 0 2px 12px rgba(0,0,0,0.3);
  --v64c-header-height: 56px;
  --v64c-bottom-nav-height: 60px;
  font-size: 62.5%;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

a {
  color: var(--v64c-accent);
  text-decoration: none;
  transition: color 0.2s;
}

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

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

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

.v64c-wrapper {
  width: 100%;
  overflow-x: hidden;
}

/* Header */
.v64c-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--v64c-gradient-start), var(--v64c-gradient-end));
  height: var(--v64c-header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.v64c-header-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

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

.v64c-header-logo span {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--v64c-text);
  white-space: nowrap;
}

.v64c-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.v64c-btn-register, .v64c-btn-login {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--v64c-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.v64c-btn-register {
  background: var(--v64c-gold);
  color: var(--v64c-dark);
}

.v64c-btn-register:hover {
  background: #FFC107;
  transform: scale(1.03);
}

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

.v64c-btn-login:hover {
  background: rgba(176, 224, 230, 0.15);
}

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

/* Mobile Menu */
.v64c-mobile-menu {
  position: fixed;
  top: var(--v64c-header-height);
  left: 0;
  right: 0;
  background: var(--v64c-card-bg);
  z-index: 9999;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  box-shadow: var(--v64c-shadow);
}

.v64c-menu-active {
  max-height: 500px;
}

.v64c-mobile-menu ul {
  list-style: none;
  padding: 0.5rem 0;
}

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

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

.v64c-mobile-menu a:hover {
  background: rgba(136, 14, 79, 0.2);
}

/* Main Content */
.v64c-main {
  padding-top: calc(var(--v64c-header-height) + 0.8rem);
  min-height: 100vh;
}

/* Carousel */
.v64c-carousel {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto 1.5rem;
  border-radius: var(--v64c-radius-lg);
  overflow: hidden;
  aspect-ratio: 16/7;
  cursor: pointer;
}

.v64c-slide {
  display: none;
  width: 100%;
  height: 100%;
}

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

.v64c-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

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

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

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

.v64c-section-title i {
  color: var(--v64c-gold);
  font-size: 1.6rem;
}

/* Game Grid */
.v64c-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

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

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

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

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

/* Category Tabs */
.v64c-cat-label {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--v64c-gold);
  margin: 1.2rem 0 0.6rem;
  padding-left: 0.3rem;
  border-left: 3px solid var(--v64c-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Buttons */
.v64c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: var(--v64c-radius);
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
}

.v64c-btn-primary {
  background: linear-gradient(135deg, var(--v64c-primary), #A01550);
  color: var(--v64c-white);
  box-shadow: 0 3px 10px rgba(136, 14, 79, 0.4);
}

.v64c-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(136, 14, 79, 0.5);
}

.v64c-btn-gold {
  background: linear-gradient(135deg, var(--v64c-gold), #FFA000);
  color: var(--v64c-dark);
  box-shadow: 0 3px 10px rgba(255, 215, 0, 0.3);
}

.v64c-btn-gold:hover {
  transform: translateY(-1px);
}

/* Cards */
.v64c-card {
  background: var(--v64c-card-bg);
  border-radius: var(--v64c-radius-lg);
  padding: 1.2rem;
  margin-bottom: 1rem;
  border: 1px solid var(--v64c-border);
  box-shadow: var(--v64c-shadow);
}

.v64c-card h3 {
  font-size: 1.5rem;
  color: var(--v64c-gold);
  margin-bottom: 0.6rem;
}

.v64c-card p {
  font-size: 1.3rem;
  color: var(--v64c-text);
  line-height: 1.6rem;
  margin-bottom: 0.5rem;
}

/* Promo Link */
.v64c-promo-link {
  color: var(--v64c-gold);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
}

.v64c-promo-link:hover {
  color: #FFC107;
}

/* Footer */
.v64c-footer {
  background: var(--v64c-card-bg);
  padding: 2rem 1rem 1rem;
  margin-top: 2rem;
  border-top: 2px solid var(--v64c-primary);
}

.v64c-footer-desc {
  font-size: 1.2rem;
  color: var(--v64c-muted);
  line-height: 1.5rem;
  margin-bottom: 1rem;
}

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

.v64c-footer-links a {
  padding: 0.4rem 0.8rem;
  background: rgba(136, 14, 79, 0.2);
  border-radius: var(--v64c-radius);
  font-size: 1.1rem;
  color: var(--v64c-accent);
  transition: background 0.2s;
}

.v64c-footer-links a:hover {
  background: rgba(136, 14, 79, 0.4);
}

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

/* Bottom Navigation */
.v64c-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--v64c-bottom-nav-height);
  background: linear-gradient(180deg, #16213E, #0D1B2A);
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1.5px solid var(--v64c-primary);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.4);
}

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

.v64c-bottom-nav-btn:hover {
  color: var(--v64c-gold);
  transform: scale(1.08);
}

.v64c-bottom-nav-btn i,
.v64c-bottom-nav-btn .material-icons {
  font-size: 22px;
  margin-bottom: 2px;
}

.v64c-bottom-nav-btn span {
  font-size: 1rem;
  line-height: 1.2rem;
}

.v64c-bottom-nav-active {
  color: var(--v64c-gold) !important;
  background: rgba(255, 215, 0, 0.08);
}

/* Content Sections */
.v64c-content-block {
  padding: 1rem 0;
}

.v64c-content-block h2 {
  font-size: 1.7rem;
  color: var(--v64c-text);
  margin-bottom: 0.8rem;
}

.v64c-content-block h3 {
  font-size: 1.4rem;
  color: var(--v64c-gold);
  margin: 0.8rem 0 0.4rem;
}

.v64c-content-block p {
  font-size: 1.3rem;
  color: var(--v64c-text);
  line-height: 1.6rem;
  margin-bottom: 0.6rem;
}

.v64c-content-block ul {
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
}

.v64c-content-block li {
  font-size: 1.3rem;
  color: var(--v64c-text);
  line-height: 1.5rem;
  margin-bottom: 0.4rem;
}

/* Testimonials */
.v64c-testimonial {
  background: var(--v64c-card-bg);
  border-radius: var(--v64c-radius-lg);
  padding: 1rem 1.2rem;
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--v64c-gold);
}

.v64c-testimonial p {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--v64c-accent);
  margin-bottom: 0.4rem;
}

.v64c-testimonial cite {
  font-size: 1.1rem;
  color: var(--v64c-muted);
}

/* Payment Icons */
.v64c-payment-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0.8rem 0;
}

.v64c-payment-item {
  background: var(--v64c-card-bg);
  border: 1px solid var(--v64c-border);
  border-radius: var(--v64c-radius);
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
  color: var(--v64c-accent);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Winner List */
.v64c-winner-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--v64c-border);
}

.v64c-winner-item span:first-child {
  color: var(--v64c-accent);
  font-size: 1.2rem;
}

.v64c-winner-item span:last-child {
  color: var(--v64c-gold);
  font-weight: 600;
  font-size: 1.2rem;
}

/* CTA Block */
.v64c-cta {
  text-align: center;
  padding: 1.5rem 1rem;
  background: linear-gradient(135deg, rgba(136, 14, 79, 0.3), rgba(26, 26, 46, 0.8));
  border-radius: var(--v64c-radius-lg);
  margin: 1.5rem 0;
  border: 1px solid var(--v64c-primary);
}

.v64c-cta h3 {
  font-size: 1.6rem;
  color: var(--v64c-gold);
  margin-bottom: 0.6rem;
}

.v64c-cta p {
  font-size: 1.3rem;
  color: var(--v64c-text);
  margin-bottom: 1rem;
}

/* FAQ */
.v64c-faq-item {
  background: var(--v64c-card-bg);
  border-radius: var(--v64c-radius);
  padding: 1rem 1.2rem;
  margin-bottom: 0.8rem;
  border: 1px solid var(--v64c-border);
}

.v64c-faq-item h3 {
  font-size: 1.4rem;
  color: var(--v64c-gold);
  margin-bottom: 0.5rem;
}

.v64c-faq-item p {
  font-size: 1.3rem;
  color: var(--v64c-text);
  line-height: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .v64c-main {
    padding-bottom: calc(var(--v64c-bottom-nav-height) + 1rem);
  }
}

@media (min-width: 769px) {
  .v64c-bottom-nav {
    display: none;
  }
  .v64c-container {
    max-width: 430px;
  }
}
