/*
Theme Name: AffiliateEngine
Theme URI: https://affiliateengine.dev
Author: Developer
Author URI: https://affiliateengine.dev
Description: WordPress Theme Framework tối ưu tốc độ build web Affiliate. Trang chủ clone-ready, Blog & Single có sẵn khung sườn tiêu chuẩn.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: flavor
*/

/* ═══════════════════════════════════════════════
   ROOT VARIABLES — VegaStars Dark Casino Theme
   ═══════════════════════════════════════════════ */
:root {
    --dark-bg: #1a1d29;
    --dark-card: #252833;
    --dark-border: #2e3245;
    --accent: #f5a623;
    --accent-hover: #e6951a;
}

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

/* Reset cơ bản */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ═══════════════════════════════════════════════
   CUSTOM SCROLLBAR — ẩn cho scroll ngang
   ═══════════════════════════════════════════════ */
.scroll-hidden::-webkit-scrollbar {
    display: none;
}

.scroll-hidden {
    -ms-overflow-style: none;
    scrollbar-width: none;
}


/* ═══════════════════════════════════════════════════════
   LANDING PAGE — Hero Section
   ═══════════════════════════════════════════════════════ */
.landing-hero {
    background: linear-gradient(165deg, #0f1118 0%, #1a1d29 35%, #1e1530 65%, #1a1d29 100%);
}

.hero-gradient-text {
    background: linear-gradient(135deg, #f5a623, #ff6b35);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}

.hero-glow--1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.12) 0%, transparent 70%);
    top: -150px;
    right: -100px;
    animation: heroFloat 8s ease-in-out infinite;
}

.hero-glow--2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    bottom: -100px;
    left: -50px;
    animation: heroFloat 10s ease-in-out infinite reverse;
}

.hero-glow--3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.06) 0%, transparent 70%);
    top: 40%;
    left: 50%;
    transform: translateX(-50%);
    animation: heroFloat 12s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(15px, -20px); }
    66% { transform: translate(-10px, 15px); }
}

/* Floating particles */
.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: 3px;
    height: 3px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat var(--d) ease-in-out infinite;
}

@keyframes particleFloat {
    0% { opacity: 0; transform: translateY(0) scale(0.5); }
    25% { opacity: 0.6; }
    50% { opacity: 0.3; transform: translateY(-40px) scale(1); }
    75% { opacity: 0.6; }
    100% { opacity: 0; transform: translateY(-80px) scale(0.5); }
}


/* ═══════════════════════════════════════════════════════
   LANDING PAGE — Animations
   ═══════════════════════════════════════════════════════ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.7s ease-out forwards;
}

/* Scroll-triggered animation */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animate-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for grid children */
.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.4s; }
.animate-on-scroll:nth-child(6) { transition-delay: 0.5s; }


/* ═══════════════════════════════════════════════════════
   LANDING PAGE — CTA Buttons
   ═══════════════════════════════════════════════════════ */
.landing-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #f5a623, #e6951a);
    color: #1a1d29;
    font-weight: 800;
    font-size: 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(245, 166, 35, 0.25);
    text-decoration: none;
}

.landing-btn-primary:hover {
    box-shadow: 0 6px 30px rgba(245, 166, 35, 0.4);
    transform: translateY(-2px);
}

.landing-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: transparent;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.landing-btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(245, 166, 35, 0.05);
}


/* ═══════════════════════════════════════════════════════
   LANDING PAGE — Trust Badge Cards
   ═══════════════════════════════════════════════════════ */
.trust-badge-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 14px;
    transition: all 0.3s ease;
}

.trust-badge-card:hover {
    border-color: rgba(245, 166, 35, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.trust-badge-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(245, 166, 35, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent);
    transition: background 0.3s ease;
}

.trust-badge-card:hover .trust-badge-icon {
    background: rgba(245, 166, 35, 0.2);
}


/* ═══════════════════════════════════════════════════════
   LANDING PAGE — Bonus Tier Cards
   ═══════════════════════════════════════════════════════ */
.bonus-tier-card {
    position: relative;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.4s ease;
}

.bonus-tier-card:hover {
    border-color: rgba(245, 166, 35, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.bonus-tier-card--featured {
    border-color: rgba(245, 166, 35, 0.3);
    background: linear-gradient(165deg, var(--dark-card) 0%, rgba(245, 166, 35, 0.05) 100%);
    box-shadow: 0 0 40px rgba(245, 166, 35, 0.08);
}

.bonus-tier-card--featured:hover {
    box-shadow: 0 0 60px rgba(245, 166, 35, 0.15);
}

.bonus-tier-popular {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #f5a623, #ff6b35);
    color: #1a1d29;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.bonus-tier-badge {
    display: inline-block;
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    border: 1px solid rgba(245, 166, 35, 0.3);
    border-radius: 20px;
    margin-bottom: 20px;
}

.bonus-tier-match {
    font-size: 56px;
    font-weight: 900;
    line-height: 1;
    color: #fff;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #ffffff, #c8c8c8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bonus-tier-card--featured .bonus-tier-match {
    background: linear-gradient(135deg, #f5a623, #ff6b35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 64px;
}

.bonus-tier-amount {
    font-size: 16px;
    font-weight: 600;
    color: #9ca3af;
    margin-bottom: 16px;
}

.bonus-tier-spins {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(245, 166, 35, 0.1);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
}


/* ═══════════════════════════════════════════════════════
   LANDING PAGE — Game Category Cards
   ═══════════════════════════════════════════════════════ */
.game-category-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--dark-border);
    transition: all 0.4s ease;
    text-decoration: none;
}

.game-category-card:hover {
    border-color: rgba(245, 166, 35, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}


/* ═══════════════════════════════════════════════════════
   LANDING PAGE — Promo Highlight Cards
   ═══════════════════════════════════════════════════════ */
.promo-highlight-card {
    display: flex;
    flex-direction: column;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 20px;
    padding: 28px 24px;
    transition: all 0.4s ease;
    text-decoration: none;
}

.promo-highlight-card:hover {
    border-color: rgba(245, 166, 35, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.promo-highlight-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}


/* ═══════════════════════════════════════════════════════
   LANDING PAGE — Feature Cards
   ═══════════════════════════════════════════════════════ */
.feature-card {
    background: rgba(37, 40, 51, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--dark-border);
    border-radius: 20px;
    padding: 28px 24px;
    transition: all 0.4s ease;
}

.feature-card:hover {
    border-color: rgba(245, 166, 35, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    background: rgba(37, 40, 51, 0.8);
}

.feature-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(245, 166, 35, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: background 0.3s ease;
}

.feature-card:hover .feature-card-icon {
    background: rgba(245, 166, 35, 0.2);
}


/* ═══════════════════════════════════════════════════════
   LANDING PAGE — Payment Method Cards
   ═══════════════════════════════════════════════════════ */
.payment-method-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--dark-bg);
    border: 1px solid var(--dark-border);
    border-radius: 16px;
    padding: 20px 12px;
    min-height: 90px;
    transition: all 0.3s ease;
}

.payment-method-card:hover {
    border-color: rgba(245, 166, 35, 0.3);
    transform: translateY(-2px);
}


/* ═══════════════════════════════════════════════════════
   LANDING PAGE — FAQ Accordion
   ═══════════════════════════════════════════════════════ */
.faq-item {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-item:hover,
.faq-item.active {
    border-color: rgba(245, 166, 35, 0.3);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    background: none;
    border: none;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: color 0.2s;
}

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

.faq-chevron {
    color: #6b7280;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-chevron {
    color: var(--accent);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer p {
    padding: 0 22px 18px;
    color: #9ca3af;
    font-size: 14px;
    line-height: 1.7;
}

.faq-answer strong {
    color: #d1d5db;
}


/* ═══════════════════════════════════════════════════════
   PRESERVED — Slider Dots (for other pages)
   ═══════════════════════════════════════════════════════ */
.slider-dot {
    width: 28px;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: var(--accent);
    width: 36px;
}

/* ═══════════════════════════════════════════════════════
   PRESERVED — Deposit Form Quick Amount Buttons
   ═══════════════════════════════════════════════════════ */
.amount-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.amount-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ═══════════════════════════════════════════════════════
   PRESERVED — Game Category Nav
   ═══════════════════════════════════════════════════════ */
.category-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
}

.category-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.category-tab.active {
    color: #fff;
    background: var(--accent);
}

/* ═══════════════════════════════════════════════════════
   PRESERVED — Live Wins Tabs
   ═══════════════════════════════════════════════════════ */
.wins-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
    text-decoration: none;
}

.wins-tab:hover {
    color: #fff;
}

.wins-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* ═══════════════════════════════════════════════════════
   PRESERVED — Winner Card
   ═══════════════════════════════════════════════════════ */
.winner-card {
    min-width: 110px;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.winner-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}


/* ═══════════════════════════════════════════════════════
   PREMIUM HEADER — Glassmorphism Navbar
   ═══════════════════════════════════════════════════════ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
}

/* Nav Links — Desktop */
.header-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #9ca3af;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.header-nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.header-nav-link.active {
    color: var(--accent);
    background: rgba(245, 166, 35, 0.08);
}

.header-nav-link svg {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.header-nav-link:hover svg {
    opacity: 1;
    color: var(--accent);
}

/* CTA Button — Glowing Register */
.header-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    font-size: 13px;
    font-weight: 700;
    color: var(--dark-bg);
    background: linear-gradient(135deg, var(--accent), #ff8c00);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(245, 166, 35, 0.2);
}

.header-cta-btn:hover {
    box-shadow: 0 4px 24px rgba(245, 166, 35, 0.35);
    transform: translateY(-1px);
}

/* Mobile Menu Panel */
.mobile-menu-panel {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 4px;
}

/* Mobile Nav Links */
.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: #d1d5db;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}


/* ═══════════════════════════════════════════════════════
   PREMIUM FOOTER — Dark Luxe Design
   ═══════════════════════════════════════════════════════ */

/* Column Title */
.footer-col-title {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Link Lists */
.footer-link-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-link-list a {
    color: #6b7280;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.footer-link-list a:hover {
    color: #e5e7eb;
    transform: translateX(3px);
}

.footer-link-list a:hover::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
    margin-right: 4px;
    animation: fadeIn 0.2s ease-out;
}

/* Social Icons */
.footer-social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #6b7280;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social-icon:hover {
    color: #fff;
    border-color: rgba(245, 166, 35, 0.3);
    background: rgba(245, 166, 35, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Payment Badges */
.footer-payment-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #6b7280;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* Footer CTA Card */
.footer-cta-card {
    position: relative;
    padding: 28px 32px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    max-width: 340px;
    width: 100%;
}

@media (max-width: 1023px) {
    .footer-cta-card {
        max-width: 100%;
    }
}