/* --- Reset & Global Variables --- */
:root {
    --primary-gold: #ffb703;
    --primary-orange: #fb8500;
    --primary-dark: #0f172a;
    --secondary-dark: #1e293b;
    --card-bg: #1e293b;
    --accent-blue: #0284c7;
    --accent-green: #10b981;
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--primary-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 92%;
    max-width: 1280px;
    margin: 0 auto;
}

/* --- Header / Navbar --- */
.site-header {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-light);
    font-weight: 700;
    font-size: 1.3rem;
}

.brand-logo img {
    border-radius: 50%;
}

.main-nav {
    display: flex;
    gap: 20px;
}

.main-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: 0.2s;
}

.main-nav a:hover {
    color: var(--primary-gold);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
}

/* --- Layout Structure: Content + Right Sidebar --- */
.page-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    padding: 30px 0;
    position: relative;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 45px;
}

/* --- Standard Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    position: relative;
}

/* Header & Card Download Button (Animated Border Glow) */
.btn-primary {
    background: linear-gradient(135deg, #ffb703, #fb8500);
    color: #000;
    font-weight: 700;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(251, 133, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 183, 3, 0.7), 0 0 35px rgba(251, 133, 0, 0.5);
    background: linear-gradient(135deg, #ffd166, #ff9f1c);
}

/* Big Hero Download Button (Live Gradient Running Border Effect) */
.btn-download-gold {
    background: #0f172a;
    color: #fff;
    font-size: 1.1rem;
    padding: 16px 34px;
    border-radius: 50px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.btn-download-gold::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, #ffb703, #fb8500, #ff0055, #00f0ff, transparent 65%);
    animation: rotateBorder 3.5s linear infinite;
    z-index: -2;
}

.btn-download-gold::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-radius: 47px;
    z-index: -1;
    transition: background 0.3s ease;
}

.btn-download-gold:hover::after {
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

.btn-download-gold:hover {
    color: var(--primary-gold);
    transform: scale(1.03);
    box-shadow: 0 0 25px rgba(255, 183, 3, 0.6), 0 0 40px rgba(251, 133, 0, 0.4);
}

@keyframes rotateBorder {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-secondary {
    background: var(--secondary-dark);
    color: #fff;
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: #334155;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-gold);
    color: var(--primary-gold);
}

.btn-outline:hover {
    background: rgba(255, 183, 3, 0.1);
    box-shadow: 0 0 15px rgba(255, 183, 3, 0.3);
}

.full-width {
    width: 100%;
}

/* --- Hero Section --- */
.hero-section {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 25px;
    align-items: center;
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    padding: 35px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.badge-tag {
    background: rgba(255, 183, 3, 0.15);
    color: var(--primary-gold);
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 15px;
}

.hero-content h1 {
    font-size: 2.1rem;
    line-height: 1.25;
    margin-bottom: 15px;
}

.hero-content p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 25px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

/* --- Trust Stats Bar --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    background: rgba(15, 23, 42, 0.6);
    padding: 15px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.stat-card {
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-gold);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* --- HERO FLOATING WIDGETS & DAILY JACKPOT ANIMATION --- */
.interactive-hero-box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 360px;
    padding: 10px;
}

/* 1. Daily Jackpot Card */
.floating-jackpot-card {
    position: absolute;
    top: 0;
    right: 20px;
    background: #1e293b;
    border: 1.5px solid rgba(255, 183, 3, 0.4);
    padding: 12px 20px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 183, 3, 0.2);
    z-index: 3;
}

.jackpot-icon {
    font-size: 1.8rem;
}

.jackpot-details {
    display: flex;
    flex-direction: column;
}

.jackpot-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.5px;
}

.jackpot-amount {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ff0055;
    text-shadow: 0 0 10px rgba(255, 0, 85, 0.3);
}

/* 2. Hot Right Now Card */
.hot-now-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 18px;
    padding: 22px 24px;
    width: 88%;
    max-width: 320px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    margin-top: 40px;
}

.hot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #334155;
}

.hot-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    color: #f8fafc;
}

.live-pulse-badge {
    font-size: 0.7rem;
    font-weight: 700;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
    padding: 3px 8px;
    border-radius: 20px;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.hot-game-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
}

.hot-game-row:not(:last-child) {
    border-bottom: 1px solid rgba(51, 65, 85, 0.4);
}

.mini-app-badge {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    color: #fff;
}

.red-badge {
    background: linear-gradient(135deg, #ef4444, #991b1b);
}

.gold-badge {
    background: linear-gradient(135deg, #f59e0b, #b45309);
}

.hot-game-text {
    display: flex;
    flex-direction: column;
}

.hot-game-text strong {
    font-size: 0.92rem;
    color: #f8fafc;
}

.hot-game-text small {
    font-size: 0.76rem;
    color: #94a3b8;
}

/* 3. Players Online Badge */
.online-players-badge {
    position: absolute;
    bottom: -10px;
    right: 15px;
    background: #0f172a;
    border: 1px solid #334155;
    padding: 8px 16px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    z-index: 3;
}

.avatar-group {
    display: flex;
}

.avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    border: 1.5px solid #0f172a;
    margin-left: -6px;
}

.avatar:first-child {
    margin-left: 0;
}

.online-text {
    display: flex;
    flex-direction: column;
}

.online-text strong {
    font-size: 0.82rem;
    color: #10b981;
}

.online-text small {
    font-size: 0.68rem;
    color: #94a3b8;
}

/* Smooth Floating Animations */
.float-anim {
    animation: floatingUpDown 3.5s ease-in-out infinite;
}

.float-anim-slow {
    animation: floatingUpDown 4.5s ease-in-out infinite reverse;
}

@keyframes floatingUpDown {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-9px); }
    100% { transform: translateY(0px); }
}

/* --- Top Trending Apps (DD Game & IND Club Cards) --- */
.partner-apps-section .section-title {
    text-align: center;
    margin-bottom: 25px;
}

.top-apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.top-app-box {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: 0.3s ease;
}

.top-app-box:hover {
    transform: translateY(-4px);
    border-color: var(--primary-gold);
}

.highlight-border {
    border: 1.5px solid var(--primary-gold);
    box-shadow: 0 4px 20px rgba(255, 183, 3, 0.15);
}

.top-app-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.app-icon {
    font-size: 2.2rem;
    background: #0f172a;
    padding: 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.top-app-header h3 {
    font-size: 1.15rem;
    color: var(--text-light);
}

.app-meta {
    font-size: 0.78rem;
    color: var(--primary-gold);
    font-weight: 500;
}

.app-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.5;
}

.app-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.app-tags span {
    font-size: 0.72rem;
    background: #0f172a;
    color: var(--primary-gold);
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

/* --- Quick Download Box --- */
.quick-download-box {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: var(--radius-lg);
    text-align: center;
}

.download-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.dl-card {
    background: #0f172a;
    padding: 25px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.dl-icon {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

/* --- Features Grid --- */
.features-section .section-title {
    text-align: center;
    margin-bottom: 30px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.feature-box {
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: 0.3s ease;
}

.feature-box:hover {
    border-color: var(--primary-gold);
    transform: translateY(-4px);
}

.feature-box img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 15px;
}

.feature-box h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.feature-box p {
    color: var(--text-muted);
    font-size: 0.88rem;
}

/* --- Games Directory Grid --- */
.games-directory-section .section-title {
    text-align: center;
    margin-bottom: 25px;
}

.games-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.game-item-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 22px;
    border-radius: var(--radius-md);
    position: relative;
    transition: 0.3s ease;
}

.game-item-card:hover {
    border-color: var(--primary-gold);
    transform: translateY(-3px);
}

.game-item-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 183, 3, 0.15);
    color: var(--primary-gold);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

.game-item-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--text-light);
}

.game-item-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* --- VIP & Referral Table Styling --- */
.vip-referral-section .section-title {
    text-align: center;
    margin-bottom: 25px;
}

.vip-table-wrapper {
    overflow-x: auto;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.92rem;
}

.custom-table th {
    background: #0f172a;
    padding: 14px 18px;
    color: var(--primary-gold);
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}

.custom-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light);
}

.custom-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* --- Steps Section --- */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.step-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    position: relative;
}

.step-badge {
    width: 38px;
    height: 38px;
    background: var(--primary-gold);
    color: #000;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 15px;
}

/* --- Reviews Section --- */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.review-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.review-stars {
    color: #ffd166;
    margin-bottom: 8px;
}

.review-text {
    font-size: 0.92rem;
    color: var(--text-light);
    margin-bottom: 12px;
}

.reviewer-name {
    font-size: 0.82rem;
    color: var(--primary-gold);
    font-weight: 600;
}

/* --- FAQ Accordion --- */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px;
}

.faq-item summary {
    font-weight: 600;
    cursor: pointer;
    color: var(--text-light);
    outline: none;
}

.faq-item p {
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* --- Right Side Popular Yono Games Sticky Panel --- */
.popular-games-panel {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 90px;
    box-shadow: var(--shadow);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.panel-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-title-wrap h3 {
    font-size: 1.05rem;
    font-weight: 700;
}

.panel-badge {
    background: #ef4444;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.close-panel-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
}

.panel-subtext {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.game-btn-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 72vh;
    overflow-y: auto;
    padding-right: 4px;
}

.game-btn-list::-webkit-scrollbar {
    width: 4px;
}
.game-btn-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.game-link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #0f172a;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    border: 1px solid var(--border-color);
    transition: 0.2s ease;
}

.game-link-card:hover {
    border-color: var(--primary-gold);
    background: #172554;
    transform: translateX(3px);
}

.highlight-card {
    border: 1px solid var(--primary-gold);
    background: rgba(255, 183, 3, 0.06);
}

.game-info {
    display: flex;
    flex-direction: column;
}

.game-domain {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
}

.game-tagline {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.arrow-icon {
    color: var(--primary-gold);
    font-size: 0.9rem;
}

/* --- Mobile Floating Trigger & Responsive Drawer --- */
.mobile-drawer-trigger {
    display: none;
    position: fixed;
    bottom: 25px;
    right: 20px;
    z-index: 999;
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-orange));
    color: #000;
    font-weight: 700;
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.drawer-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1001;
}

.drawer-backdrop.active {
    display: block;
}

/* --- Footer --- */
.site-footer {
    background: #0b1120;
    border-top: 1px solid var(--border-color);
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p, .footer-legal p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-top: 10px;
}

.footer-links ul {
    list-style: none;
    margin-top: 10px;
}

.footer-links li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    line-height: 2;
}

.footer-links li a:hover {
    color: var(--primary-gold);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Responsiveness for Mobile & Tablets --- */
@media (max-width: 992px) {
    .page-layout {
        grid-template-columns: 1fr;
    }

    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .popular-games-panel {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        height: 100vh;
        z-index: 1002;
        border-radius: 0;
        transition: right 0.35s ease;
    }

    .popular-games-panel.active {
        right: 0;
    }

    .close-panel-btn {
        display: block;
    }

    .mobile-drawer-trigger {
        display: flex;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .floating-jackpot-card {
        position: static;
        margin-bottom: 15px;
        width: 100%;
        justify-content: center;
    }

    .online-players-badge {
        position: static;
        margin-top: 15px;
    }

    .hot-now-card {
        margin-top: 0;
        width: 100%;
    }
}

@media (max-width: 650px) {
    .main-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--secondary-dark);
        padding: 20px;
        border-bottom: 1px solid var(--border-color);
    }

    .main-nav.nav-active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .hero-content h1 {
        font-size: 1.6rem;
    }
}