/**
 * KG777 Core Stylesheet
 * All class names use va28- prefix for namespace isolation
 * Color palette: #DAA520 (gold) | #2D2D2D (dark)
 * @version 1.0.0
 */

/* ===== CSS Variables ===== */
:root {
    --va28-primary: #DAA520;
    --va28-primary-light: #F0C850;
    --va28-primary-dark: #B8860B;
    --va28-bg: #2D2D2D;
    --va28-bg-dark: #1A1A1A;
    --va28-bg-card: #3A3A3A;
    --va28-bg-lighter: #454545;
    --va28-text: #F5F5F5;
    --va28-text-muted: #B0B0B0;
    --va28-text-dim: #888888;
    --va28-border: #4A4A4A;
    --va28-shadow: rgba(0, 0, 0, 0.4);
    --va28-radius: 8px;
    --va28-radius-lg: 12px;
    --va28-radius-sm: 4px;
    --va28-transition: all 0.3s ease;
    --va28-header-h: 56px;
    --va28-bottom-nav-h: 60px;
}

/* ===== Base Reset ===== */
*, *::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, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--va28-bg);
    color: var(--va28-text);
    line-height: 1.5rem;
    font-size: 1.4rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a:hover {
    color: var(--va28-primary-light);
}

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

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

.va28-wrapper {
    width: 100%;
    max-width: 100%;
}

/* ===== Header ===== */
.va28-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--va28-header-h);
    background: linear-gradient(180deg, #1A1A1A 0%, #2D2D2D 100%);
    border-bottom: 1px solid var(--va28-border);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 1rem;
}

.va28-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
}

.va28-logo-area {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.va28-logo-area img {
    width: 28px;
    height: 28px;
}

.va28-logo-area span {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--va28-primary);
    letter-spacing: 0.5px;
}

.va28-header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.va28-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: var(--va28-radius);
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--va28-transition);
    min-height: 36px;
    min-width: 44px;
}

.va28-btn-register {
    background: linear-gradient(135deg, var(--va28-primary), var(--va28-primary-dark));
    color: #1A1A1A;
}

.va28-btn-register:hover {
    background: linear-gradient(135deg, var(--va28-primary-light), var(--va28-primary));
    transform: translateY(-1px);
}

.va28-btn-login {
    background: transparent;
    color: var(--va28-primary);
    border: 1.5px solid var(--va28-primary);
}

.va28-btn-login:hover {
    background: rgba(218, 165, 32, 0.15);
}

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

/* ===== Mobile Menu ===== */
.va28-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--va28-bg-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem 1.5rem;
    overflow-y: auto;
}

.va28-menu-active {
    right: 0;
}

.va28-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.va28-overlay-active {
    opacity: 1;
    pointer-events: auto;
}

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

.va28-menu-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--va28-primary);
    margin-bottom: 2rem;
}

.va28-menu-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.va28-menu-links li a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 0.8rem;
    color: var(--va28-text);
    font-size: 1.4rem;
    border-radius: var(--va28-radius-sm);
    transition: var(--va28-transition);
}

.va28-menu-links li a:hover {
    background: rgba(218, 165, 32, 0.12);
    color: var(--va28-primary);
}

.va28-menu-links li a i,
.va28-menu-links li a span.material-symbols-outlined {
    font-size: 1.8rem;
    color: var(--va28-primary);
}

/* ===== Carousel ===== */
.va28-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 0 0 var(--va28-radius-lg) var(--va28-radius-lg);
    aspect-ratio: 16/7;
    margin-top: var(--va28-header-h);
}

.va28-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity var(--va28-transition);
    cursor: pointer;
}

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

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

.va28-carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
    z-index: 5;
}

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

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

/* ===== Section Styles ===== */
.va28-section {
    padding: 2rem 0;
}

.va28-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--va28-primary);
    margin-bottom: 1.2rem;
    padding-left: 0.8rem;
    border-left: 3px solid var(--va28-primary);
}

.va28-section-subtitle {
    font-size: 1.4rem;
    color: var(--va28-text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

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

.va28-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: var(--va28-transition);
    border-radius: var(--va28-radius);
    padding: 0.5rem;
}

.va28-game-item:hover {
    transform: translateY(-2px);
    background: rgba(218, 165, 32, 0.08);
}

.va28-game-item img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--va28-radius);
    margin-bottom: 0.4rem;
    border: 1px solid var(--va28-border);
}

.va28-game-item span {
    font-size: 1.1rem;
    color: var(--va28-text-muted);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== Category Label ===== */
.va28-category-label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 1.8rem 0 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--va28-border);
}

.va28-category-label i {
    color: var(--va28-primary);
    font-size: 2rem;
}

.va28-category-label h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--va28-text);
}

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

.va28-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.4rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.35rem;
    color: var(--va28-text);
    transition: var(--va28-transition);
}

.va28-faq-question:hover {
    color: var(--va28-primary);
}

.va28-faq-icon {
    font-size: 1.4rem;
    color: var(--va28-primary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.va28-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    padding: 0 1.4rem;
    color: var(--va28-text-muted);
    font-size: 1.3rem;
    line-height: 1.6;
}

.va28-faq-open {
    background: rgba(218, 165, 32, 0.05);
}

/* ===== Content Blocks ===== */
.va28-content-block {
    background: var(--va28-bg-card);
    border-radius: var(--va28-radius-lg);
    padding: 1.8rem;
    margin-bottom: 1.2rem;
    border: 1px solid var(--va28-border);
}

.va28-content-block h3 {
    font-size: 1.5rem;
    color: var(--va28-primary);
    margin-bottom: 1rem;
}

.va28-content-block p {
    font-size: 1.3rem;
    color: var(--va28-text-muted);
    line-height: 1.7;
    margin-bottom: 0.8rem;
}

.va28-promo-text {
    display: inline;
    color: var(--va28-primary);
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: rgba(218, 165, 32, 0.4);
    text-underline-offset: 2px;
}

.va28-promo-text:hover {
    color: var(--va28-primary-light);
}

/* ===== CTA Button ===== */
.va28-cta-btn {
    display: block;
    width: 100%;
    padding: 1.4rem;
    background: linear-gradient(135deg, var(--va28-primary), var(--va28-primary-dark));
    color: #1A1A1A;
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    border: none;
    border-radius: var(--va28-radius);
    cursor: pointer;
    transition: var(--va28-transition);
    margin: 1.5rem 0;
    letter-spacing: 0.5px;
}

.va28-cta-btn:hover {
    background: linear-gradient(135deg, var(--va28-primary-light), var(--va28-primary));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(218, 165, 32, 0.3);
}

/* ===== Footer ===== */
.va28-footer {
    background: var(--va28-bg-dark);
    padding: 2.5rem 1.2rem 2rem;
    border-top: 1px solid var(--va28-border);
    margin-bottom: var(--va28-bottom-nav-h);
}

.va28-footer-brand {
    font-size: 1.3rem;
    color: var(--va28-text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.va28-footer-brand strong {
    color: var(--va28-primary);
}

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

.va28-footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: var(--va28-bg-card);
    border: 1px solid var(--va28-border);
    border-radius: var(--va28-radius);
    font-size: 1.2rem;
    color: var(--va28-text-muted);
    transition: var(--va28-transition);
}

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

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

/* ===== Bottom Navigation ===== */
.va28-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--va28-bottom-nav-h);
    background: linear-gradient(180deg, #2A2A2A 0%, #1A1A1A 100%);
    border-top: 1.5px solid var(--va28-primary-dark);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 0.3rem;
}

.va28-bottom-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    min-width: 60px;
    min-height: 48px;
    background: none;
    border: none;
    color: var(--va28-text-dim);
    cursor: pointer;
    transition: var(--va28-transition);
    padding: 0.4rem;
    border-radius: var(--va28-radius-sm);
    -webkit-tap-highlight-color: transparent;
}

.va28-bottom-nav-btn:hover,
.va28-bottom-nav-btn:active {
    color: var(--va28-primary);
}

.va28-bottom-nav-btn i,
.va28-bottom-nav-btn span.material-symbols-outlined,
.va28-bottom-nav-btn span.iconify {
    font-size: 2.2rem;
    line-height: 1;
}

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

.va28-nav-active {
    color: var(--va28-primary) !important;
}

.va28-nav-active i,
.va28-nav-active span.material-symbols-outlined,
.va28-nav-active span.iconify {
    filter: drop-shadow(0 0 4px rgba(218, 165, 32, 0.5));
}

/* ===== Card Component ===== */
.va28-card {
    background: var(--va28-bg-card);
    border: 1px solid var(--va28-border);
    border-radius: var(--va28-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.va28-card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--va28-text);
    margin-bottom: 0.8rem;
}

/* ===== Stats Grid ===== */
.va28-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

.va28-stat-item {
    background: var(--va28-bg-lighter);
    border-radius: var(--va28-radius);
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--va28-border);
}

.va28-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--va28-primary);
    line-height: 1.2;
}

.va28-stat-label {
    font-size: 1.1rem;
    color: var(--va28-text-dim);
    margin-top: 0.3rem;
}

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

.va28-testimonial-name {
    font-weight: 600;
    color: var(--va28-primary);
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
}

.va28-testimonial-text {
    font-size: 1.25rem;
    color: var(--va28-text-muted);
    line-height: 1.5;
    font-style: italic;
}

/* ===== Winner Showcase ===== */
.va28-winner-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    background: var(--va28-bg-card);
    border-radius: var(--va28-radius);
    margin-bottom: 0.6rem;
    border: 1px solid var(--va28-border);
}

.va28-winner-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--va28-primary);
}

.va28-winner-info {
    flex: 1;
}

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

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

.va28-winner-amount {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--va28-primary);
}

/* ===== Payment Icons ===== */
.va28-payment-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 1rem 0;
}

.va28-payment-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: var(--va28-bg-lighter);
    border-radius: var(--va28-radius);
    border: 1px solid var(--va28-border);
    font-size: 1.2rem;
    color: var(--va28-text-muted);
}

/* ===== Main Content Padding ===== */
.va28-main {
    padding-top: var(--va28-header-h);
}

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

    .va28-footer {
        margin-bottom: var(--va28-bottom-nav-h);
    }
}

@media (min-width: 769px) {
    .va28-bottom-nav {
        display: none;
    }

    .va28-footer {
        margin-bottom: 0;
    }
}

/* ===== Utility Classes ===== */
.va28-text-gold { color: var(--va28-primary); }
.va28-text-muted { color: var(--va28-text-muted); }
.va28-mb-sm { margin-bottom: 0.8rem; }
.va28-mb-md { margin-bottom: 1.5rem; }
.va28-mb-lg { margin-bottom: 2.5rem; }
.va28-text-center { text-align: center; }
.va28-text-sm { font-size: 1.2rem; }
.va28-fw-bold { font-weight: 700; }
