/**
 * 1333 com - Main Stylesheet
 * All classes use prefix: vcd5-
 * Color palette: #5F9EA0 | #40E0D0 | #1E90FF | #1E1E1E | #FAF0E6 | #808080
 */

/* CSS Variables */
:root {
  --vcd5-primary: #40E0D0;
  --vcd5-secondary: #5F9EA0;
  --vcd5-accent: #1E90FF;
  --vcd5-bg: #1E1E1E;
  --vcd5-bg-light: #2a2a2a;
  --vcd5-bg-card: #333333;
  --vcd5-text: #FAF0E6;
  --vcd5-text-muted: #808080;
  --vcd5-border: #444444;
  --vcd5-success: #40E0D0;
  --vcd5-warning: #FFD700;
  --vcd5-radius: 8px;
  --vcd5-radius-lg: 12px;
  --vcd5-shadow: 0 2px 8px rgba(0,0,0,0.3);
  font-size: 62.5%;
}

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

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--vcd5-bg);
  color: var(--vcd5-text);
  line-height: 1.5rem;
  font-size: 1.6rem;
  overflow-x: hidden;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--vcd5-accent);
}

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

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

/* Header */
.vcd5-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 1000;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-bottom: 2px solid var(--vcd5-primary);
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vcd5-header-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
}

.vcd5-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.vcd5-site-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--vcd5-primary);
  white-space: nowrap;
}

.vcd5-header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.vcd5-btn-register {
  background: linear-gradient(135deg, #40E0D0, #1E90FF);
  color: #1E1E1E;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--vcd5-radius);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  min-width: 60px;
  min-height: 32px;
  transition: transform 0.15s, opacity 0.15s;
}

.vcd5-btn-login {
  background: transparent;
  color: var(--vcd5-primary);
  border: 1.5px solid var(--vcd5-primary);
  padding: 0.45rem 0.9rem;
  border-radius: var(--vcd5-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  min-width: 55px;
  min-height: 32px;
  transition: transform 0.15s, opacity 0.15s;
}

.vcd5-btn-register:hover, .vcd5-btn-login:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

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

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

.vcd5-mobile-menu {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateX(-100%);
  width: 100%;
  max-width: 430px;
  height: 100%;
  background: linear-gradient(180deg, #1a1a2e, #0f0f23);
  z-index: 9999;
  transition: transform 0.3s ease;
  overflow-y: auto;
  padding: 2rem 1.5rem;
}

.vcd5-mobile-menu.vcd5-menu-open {
  transform: translateX(-50%) translateX(0);
}

.vcd5-menu-close {
  background: none;
  border: none;
  color: var(--vcd5-text);
  font-size: 2.4rem;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}

.vcd5-menu-title {
  font-size: 1.8rem;
  color: var(--vcd5-primary);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--vcd5-border);
}

.vcd5-menu-list {
  list-style: none;
}

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

.vcd5-menu-list a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 0.5rem;
  color: var(--vcd5-text);
  font-size: 1.5rem;
  transition: color 0.2s, padding-left 0.2s;
}

.vcd5-menu-list a:hover {
  color: var(--vcd5-primary);
  padding-left: 1rem;
}

.vcd5-menu-list .material-icons {
  font-size: 2rem;
  color: var(--vcd5-secondary);
}

/* Main Content */
.vcd5-main {
  padding-top: 5.5rem;
}

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

/* Carousel */
.vcd5-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--vcd5-radius-lg);
  margin-bottom: 1.5rem;
}

.vcd5-carousel-track {
  position: relative;
  width: 100%;
  aspect-ratio: 16/7;
}

.vcd5-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

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

.vcd5-slide-active {
  opacity: 1;
}

.vcd5-carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

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

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

/* Section */
.vcd5-section {
  margin-bottom: 2rem;
  padding: 0 0.5rem;
}

.vcd5-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--vcd5-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--vcd5-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.vcd5-section-title .material-icons {
  font-size: 2rem;
}

/* Category Label */
.vcd5-cat-label {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--vcd5-accent);
  margin: 1.5rem 0 0.8rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--vcd5-primary);
}

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

.vcd5-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
}

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

.vcd5-game-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--vcd5-radius);
  border: 1px solid var(--vcd5-border);
}

.vcd5-game-name {
  font-size: 1.1rem;
  color: var(--vcd5-text);
  margin-top: 0.3rem;
  line-height: 1.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.vcd5-card-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--vcd5-primary);
  margin-bottom: 0.8rem;
}

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

/* Promo Button */
.vcd5-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, #40E0D0, #1E90FF);
  color: #1E1E1E;
  padding: 0.8rem 2rem;
  border-radius: 25px;
  font-weight: 700;
  font-size: 1.4rem;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
  min-height: 44px;
}

.vcd5-promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(64, 224, 208, 0.4);
}

.vcd5-promo-link {
  color: var(--vcd5-primary);
  font-weight: 600;
  border-bottom: 1px dashed var(--vcd5-primary);
  cursor: pointer;
  transition: color 0.2s;
}

.vcd5-promo-link:hover {
  color: var(--vcd5-accent);
}

/* Promo Banner */
.vcd5-promo-banner {
  background: linear-gradient(135deg, rgba(64,224,208,0.15), rgba(30,144,255,0.15));
  border: 1px solid var(--vcd5-primary);
  border-radius: var(--vcd5-radius-lg);
  padding: 1.2rem;
  text-align: center;
  margin: 1.5rem 0;
}

.vcd5-promo-banner h3 {
  color: var(--vcd5-primary);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.vcd5-promo-banner p {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

/* Footer */
.vcd5-footer {
  background: linear-gradient(180deg, #1a1a2e, #0f0f23);
  padding: 2rem 1.2rem 6rem;
  border-top: 2px solid var(--vcd5-secondary);
  margin-top: 2rem;
}

.vcd5-footer-brand {
  font-size: 1.4rem;
  color: var(--vcd5-text-muted);
  margin-bottom: 1rem;
  line-height: 1.6rem;
}

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

.vcd5-footer-links a {
  background: var(--vcd5-bg-card);
  color: var(--vcd5-text);
  padding: 0.4rem 0.8rem;
  border-radius: var(--vcd5-radius);
  font-size: 1.2rem;
  border: 1px solid var(--vcd5-border);
  transition: background 0.2s;
}

.vcd5-footer-links a:hover {
  background: var(--vcd5-primary);
  color: #1E1E1E;
}

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

/* Bottom Navigation */
.vcd5-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 1000;
  background: linear-gradient(180deg, #1a1a2e, #0f0f23);
  border-top: 2px solid var(--vcd5-secondary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  padding: 0 0.3rem;
}

.vcd5-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 54px;
  cursor: pointer;
  transition: transform 0.15s;
  background: none;
  border: none;
  color: var(--vcd5-text-muted);
  padding: 0.3rem;
  position: relative;
}

.vcd5-nav-item:hover, .vcd5-nav-item.vcd5-nav-active {
  color: var(--vcd5-primary);
  transform: scale(1.1);
}

.vcd5-nav-item i,
.vcd5-nav-item .material-icons,
.vcd5-nav-item ion-icon {
  font-size: 22px;
  margin-bottom: 2px;
}

.vcd5-nav-label {
  font-size: 1rem;
  line-height: 1.2rem;
}

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

/* Helpers */
.vcd5-text-center { text-align: center; }
.vcd5-text-primary { color: var(--vcd5-primary); }
.vcd5-text-accent { color: var(--vcd5-accent); }
.vcd5-text-warning { color: var(--vcd5-warning); }
.vcd5-mt-1 { margin-top: 1rem; }
.vcd5-mb-1 { margin-bottom: 1rem; }
.vcd5-py-1 { padding: 1rem 0; }
.vcd5-hidden { display: none; }

/* RTP Table */
.vcd5-rtp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.2rem;
}

.vcd5-rtp-table th {
  background: var(--vcd5-secondary);
  color: #1E1E1E;
  padding: 0.6rem;
  text-align: left;
  font-weight: 600;
}

.vcd5-rtp-table td {
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--vcd5-border);
}

.vcd5-rtp-table tr:nth-child(even) {
  background: rgba(64,224,208,0.05);
}

/* Winner List */
.vcd5-winner-list {
  list-style: none;
}

.vcd5-winner-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--vcd5-border);
  font-size: 1.3rem;
}

.vcd5-winner-amount {
  color: var(--vcd5-warning);
  font-weight: 700;
}

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

.vcd5-testimonial-name {
  font-weight: 700;
  color: var(--vcd5-primary);
  font-size: 1.3rem;
}

.vcd5-testimonial-text {
  font-size: 1.2rem;
  color: var(--vcd5-text);
  margin-top: 0.3rem;
  font-style: italic;
}

/* Payment icons row */
.vcd5-payment-row {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.vcd5-payment-item {
  text-align: center;
  font-size: 1.2rem;
  color: var(--vcd5-text-muted);
}

.vcd5-payment-item i {
  font-size: 2.4rem;
  display: block;
  margin-bottom: 0.3rem;
  color: var(--vcd5-secondary);
}

/* FAQ Accordion */
.vcd5-faq-item {
  background: var(--vcd5-bg-card);
  border-radius: var(--vcd5-radius);
  margin-bottom: 0.6rem;
  overflow: hidden;
  border: 1px solid var(--vcd5-border);
}

.vcd5-faq-q {
  padding: 1rem;
  font-weight: 600;
  color: var(--vcd5-primary);
  font-size: 1.3rem;
  cursor: pointer;
}

.vcd5-faq-a {
  padding: 0 1rem 1rem;
  font-size: 1.2rem;
  color: var(--vcd5-text);
  line-height: 1.5rem;
}

/* Feature Grid */
.vcd5-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.vcd5-feature-item {
  background: var(--vcd5-bg-card);
  border-radius: var(--vcd5-radius);
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--vcd5-border);
}

.vcd5-feature-item i,
.vcd5-feature-item .material-icons {
  font-size: 2.4rem;
  color: var(--vcd5-primary);
  margin-bottom: 0.5rem;
}

.vcd5-feature-item h4 {
  font-size: 1.3rem;
  color: var(--vcd5-text);
  margin-bottom: 0.3rem;
}

.vcd5-feature-item p {
  font-size: 1.1rem;
  color: var(--vcd5-text-muted);
}

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

/* Animation */
@keyframes vcd5-fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.vcd5-animate-in {
  animation: vcd5-fadeIn 0.4s ease forwards;
}
