@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg-primary: #0a0a14;
    --bg-secondary: #12121f;
    --bg-card: #1a1a2e;
    --bg-card-hover: #222240;
    --gold: #FFD700;
    --gold-dark: #D4A800;
    --gold-light: #FFE44D;
    --orange: #FF8C00;
    --accent: #F59E0B;
    --text-primary: #FFFFFF;
    --text-secondary: #B0B0C8;
    --text-muted: #6B6B8D;
    --gradient-gold: linear-gradient(135deg, #FFD700, #FF8C00);
    --gradient-dark: linear-gradient(180deg, #0a0a14, #12121f);
    --gradient-card: linear-gradient(145deg, #1a1a2e, #16213e);
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 8px 32px rgba(0,0,0,0.4);
    --shadow-gold: 0 4px 24px rgba(255,215,0,0.2);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: 'Kanit', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.8;
    overflow-x: hidden;
}

a { color: var(--gold); text-decoration: none; transition: all 0.3s; }
a:hover { color: var(--gold-light); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== HEADER ===== */
.main-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(10,10,20,0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,215,0,0.1);
    padding: 12px 0;
    transition: all 0.3s;
}
.main-header.scrolled { padding: 8px 0; box-shadow: 0 4px 20px rgba(0,0,0,0.5); }

.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
}

.logo { display: flex; align-items: center; gap: 10px; font-size: 1.6rem; font-weight: 800; }
.logo img { width: 40px; height: 40px; border-radius: 10px; }
.logo span { background: var(--gradient-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { color: var(--text-secondary); font-weight: 500; font-size: 0.95rem; position: relative; padding: 4px 0; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links a::after {
    content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px;
    background: var(--gradient-gold); transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }

.header-btns { display: flex; gap: 10px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 24px; border-radius: 50px; font-family: 'Kanit', sans-serif;
    font-weight: 600; font-size: 0.95rem; cursor: pointer; border: none;
    transition: all 0.3s; text-decoration: none;
}
.btn-outline {
    background: transparent; color: var(--gold);
    border: 2px solid var(--gold);
}
.btn-outline:hover { background: var(--gold); color: #000; }

.btn-gold {
    background: var(--gradient-gold); color: #000;
    box-shadow: var(--shadow-gold);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 6px 30px rgba(255,215,0,0.35); }

.btn-large { padding: 14px 36px; font-size: 1.1rem; }

.hamburger {
    display: none; flex-direction: column; gap: 5px; cursor: pointer;
    background: none; border: none; padding: 5px;
}
.hamburger span { display: block; width: 26px; height: 2px; background: var(--gold); transition: all 0.3s; border-radius: 2px; }

/* ===== HERO ===== */
.hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 120px 20px 80px;
    background: radial-gradient(ellipse at 50% 30%, rgba(255,215,0,0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 80%, rgba(255,140,0,0.05) 0%, transparent 50%),
                var(--bg-primary);
    position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(255,215,0,0.03) 0%, transparent 40%);
    animation: heroGlow 15s ease-in-out infinite alternate;
}
@keyframes heroGlow { 0% { transform: translate(0,0); } 100% { transform: translate(5%,3%); } }

.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero-badge {
    display: inline-block; padding: 6px 20px; border-radius: 50px;
    background: rgba(255,215,0,0.1); border: 1px solid rgba(255,215,0,0.3);
    color: var(--gold); font-size: 0.9rem; font-weight: 500; margin-bottom: 24px;
}
.hero h1 { font-size: 3.2rem; font-weight: 900; line-height: 1.3; margin-bottom: 20px; }
.hero h1 .highlight {
    background: var(--gradient-gold); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; position: relative;
}
.hero p { font-size: 1.15rem; color: var(--text-secondary); margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-stats {
    display: flex; justify-content: center; gap: 48px; margin-top: 48px;
    padding-top: 32px; border-top: 1px solid rgba(255,215,0,0.1);
}
.hero-stats .stat-num {
    font-size: 2rem; font-weight: 800;
    background: var(--gradient-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-stats .stat-label { font-size: 0.85rem; color: var(--text-muted); }

/* ===== SECTIONS ===== */
section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 {
    font-size: 2.2rem; font-weight: 800; margin-bottom: 12px;
}
.section-header h2 .highlight {
    background: var(--gradient-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.section-header p { color: var(--text-secondary); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

.alt-bg { background: var(--bg-secondary); }

/* ===== FEATURES ===== */
.features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px;
}
.feature-card {
    background: var(--gradient-card); border: 1px solid rgba(255,215,0,0.08);
    border-radius: var(--radius); padding: 32px; transition: all 0.3s;
    position: relative; overflow: hidden;
}
.feature-card:hover {
    transform: translateY(-4px); border-color: rgba(255,215,0,0.2);
    box-shadow: var(--shadow-gold);
}
.feature-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--gradient-gold); opacity: 0; transition: opacity 0.3s;
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
    width: 56px; height: 56px; border-radius: 14px;
    background: rgba(255,215,0,0.1); display: flex; align-items: center;
    justify-content: center; font-size: 1.6rem; margin-bottom: 16px;
}
.feature-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--text-secondary); font-size: 0.95rem; }

/* ===== GAMES ===== */
.games-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px;
}
.game-card {
    background: var(--gradient-card); border: 1px solid rgba(255,215,0,0.06);
    border-radius: var(--radius); overflow: hidden; transition: all 0.3s;
    cursor: pointer; text-align: center;
}
.game-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-gold); border-color: rgba(255,215,0,0.2); }
.game-thumb {
    width: 100%; aspect-ratio: 1; background: linear-gradient(135deg, #1e1e3a, #2a2a4a);
    display: flex; align-items: center; justify-content: center; font-size: 3rem;
    position: relative; overflow: hidden;
}
.game-thumb::after {
    content: 'เล่นเลย'; position: absolute; inset: 0;
    background: rgba(255,215,0,0.9); color: #000; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s; font-size: 1rem;
}
.game-card:hover .game-thumb::after { opacity: 1; }
.game-card h3 { padding: 12px 8px; font-size: 0.9rem; font-weight: 600; }

/* ===== PROMO ===== */
.promo-card {
    background: var(--gradient-card); border: 1px solid rgba(255,215,0,0.15);
    border-radius: var(--radius); padding: 40px; max-width: 700px;
    margin: 0 auto; position: relative; overflow: hidden;
}
.promo-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: var(--gradient-gold);
}
.promo-badge {
    display: inline-block; padding: 4px 16px; border-radius: 50px;
    font-size: 0.8rem; font-weight: 600; margin-bottom: 16px; color: #000;
}
.promo-card h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.promo-date { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 16px; }
.promo-card .desc { color: var(--text-secondary); font-size: 1rem; margin-bottom: 24px; }
.promo-amount {
    font-size: 2rem; font-weight: 900;
    background: var(--gradient-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    margin-bottom: 24px;
}

/* ===== CONTENT SECTIONS ===== */
.content-block { max-width: 900px; margin: 0 auto; }
.content-block h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 16px; }
.content-block h3 { font-size: 1.3rem; font-weight: 700; margin: 24px 0 12px; color: var(--gold); }
.content-block p { color: var(--text-secondary); margin-bottom: 16px; font-size: 1rem; }
.content-block ul {
    list-style: none; padding: 0; margin-bottom: 20px;
}
.content-block ul li {
    padding: 8px 0 8px 28px; position: relative; color: var(--text-secondary);
}
.content-block ul li::before {
    content: '✦'; position: absolute; left: 0; color: var(--gold); font-size: 0.8rem; top: 10px;
}

/* ===== STEPS ===== */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.step-card {
    text-align: center; padding: 32px 24px;
    background: var(--gradient-card); border: 1px solid rgba(255,215,0,0.06);
    border-radius: var(--radius); position: relative;
}
.step-num {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--gradient-gold); color: #000; font-weight: 800;
    font-size: 1.2rem; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
}
.step-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.step-card p { color: var(--text-secondary); font-size: 0.9rem; }

/* ===== REVIEWS ===== */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.review-card {
    background: var(--gradient-card); border: 1px solid rgba(255,215,0,0.08);
    border-radius: var(--radius); padding: 28px;
}
.review-stars { color: var(--gold); font-size: 1.2rem; margin-bottom: 12px; letter-spacing: 2px; }
.review-text { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 16px; font-style: italic; }
.review-author { font-weight: 600; font-size: 0.95rem; }
.review-date { color: var(--text-muted); font-size: 0.8rem; }

.review-summary {
    text-align: center; margin-bottom: 40px; padding: 32px;
    background: var(--gradient-card); border-radius: var(--radius);
    border: 1px solid rgba(255,215,0,0.1);
}
.review-summary .big-rating {
    font-size: 3.5rem; font-weight: 900;
    background: var(--gradient-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.review-summary .stars { color: var(--gold); font-size: 1.5rem; letter-spacing: 3px; }
.review-summary .count { color: var(--text-muted); font-size: 0.9rem; margin-top: 4px; }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: var(--gradient-card); border: 1px solid rgba(255,215,0,0.06);
    border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden;
}
.faq-question {
    width: 100%; padding: 20px 24px; background: none; border: none;
    color: var(--text-primary); font-family: 'Kanit', sans-serif;
    font-size: 1rem; font-weight: 600; text-align: left;
    cursor: pointer; display: flex; justify-content: space-between;
    align-items: center; transition: color 0.3s;
}
.faq-question:hover { color: var(--gold); }
.faq-question .arrow { transition: transform 0.3s; font-size: 0.8rem; color: var(--gold); }
.faq-item.active .faq-question .arrow { transform: rotate(180deg); }
.faq-answer {
    max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
    padding: 0 24px; color: var(--text-secondary); font-size: 0.95rem;
}
.faq-item.active .faq-answer { max-height: 300px; padding-bottom: 20px; }

/* ===== FOOTER ===== */
.main-footer {
    background: var(--bg-secondary); border-top: 1px solid rgba(255,215,0,0.08);
    padding: 48px 0 24px;
}
.footer-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px; margin-bottom: 32px;
}
.footer-col h4 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; color: var(--gold); }
.footer-col p, .footer-col a { color: var(--text-muted); font-size: 0.9rem; display: block; margin-bottom: 8px; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
    text-align: center; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted); font-size: 0.85rem;
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px); z-index: 2000;
    display: none; align-items: center; justify-content: center;
    padding: 20px; opacity: 0; transition: opacity 0.3s;
}
.modal-overlay.show { display: flex; opacity: 1; }

.modal-box {
    background: var(--bg-card); border: 1px solid rgba(255,215,0,0.15);
    border-radius: var(--radius); padding: 40px; width: 100%; max-width: 420px;
    position: relative; transform: translateY(20px); transition: transform 0.3s;
}
.modal-overlay.show .modal-box { transform: translateY(0); }

.modal-close {
    position: absolute; top: 16px; right: 16px; background: none; border: none;
    color: var(--text-muted); font-size: 1.5rem; cursor: pointer; line-height: 1;
}
.modal-close:hover { color: var(--text-primary); }

.modal-tabs { display: flex; gap: 0; margin-bottom: 28px; border-bottom: 2px solid rgba(255,255,255,0.05); }
.modal-tab {
    flex: 1; padding: 12px; background: none; border: none; border-bottom: 2px solid transparent;
    color: var(--text-muted); font-family: 'Kanit', sans-serif; font-size: 1rem;
    font-weight: 600; cursor: pointer; transition: all 0.3s; margin-bottom: -2px;
}
.modal-tab.active { color: var(--gold); border-bottom-color: var(--gold); }

.modal-form { display: none; }
.modal-form.active { display: block; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 500; margin-bottom: 6px; color: var(--text-secondary); }
.form-group input {
    width: 100%; padding: 12px 16px; border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-primary); font-family: 'Kanit', sans-serif; font-size: 1rem;
    transition: border-color 0.3s;
}
.form-group input:focus { outline: none; border-color: var(--gold); }
.form-group input::placeholder { color: var(--text-muted); }

.form-submit { width: 100%; margin-top: 8px; padding: 14px; font-size: 1.05rem; }

.form-footer { text-align: center; margin-top: 16px; font-size: 0.85rem; color: var(--text-muted); }
.form-footer a { color: var(--gold); font-weight: 500; }

/* ===== MOBILE NAV ===== */
.mobile-nav {
    position: fixed; top: 0; right: -300px; width: 280px; height: 100vh;
    background: var(--bg-card); z-index: 1500; padding: 80px 24px 24px;
    transition: right 0.3s; box-shadow: -4px 0 20px rgba(0,0,0,0.5);
}
.mobile-nav.open { right: 0; }
.mobile-nav a {
    display: block; padding: 14px 0; color: var(--text-secondary);
    font-size: 1.05rem; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mobile-nav a:hover { color: var(--gold); }
.mobile-nav-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    z-index: 1400; display: none;
}
.mobile-nav-overlay.show { display: block; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-links, .header-btns { display: none; }
    .hamburger { display: flex; }
    .hero h1 { font-size: 2rem; }
    .hero-stats { gap: 24px; flex-wrap: wrap; }
    .hero-stats .stat-num { font-size: 1.5rem; }
    section { padding: 48px 0; }
    .section-header h2 { font-size: 1.6rem; }
    .promo-card { padding: 24px; }
    .modal-box { padding: 28px 20px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.6rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .games-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ===== ANIMATIONS ===== */
.fade-up {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,215,0,0.4); } 70% { box-shadow: 0 0 0 12px rgba(255,215,0,0); } }
.pulse { animation: pulse 2s infinite; }
