/* ============================================
   SWEET BONANZA DE - MAIN STYLESHEET
   Design: Moon Poker / SkillSet Style
   + Demo Game Styles
   ============================================ */

/* ---------- CSS VARIABLES ---------- */
:root {
    /* Colors */
    --primary-purple: #a855f7;
    --primary-pink: #ec4899;
    --dark-gray: #1f2937;
    --medium-gray: #374151;
    --light-gray: #6b7280;
    --text-gray: #9ca3af;
    --border-gray: #e5e7eb;
    
    /* Candy Colors */
    --candy-pink: #ff6b9d;
    --candy-yellow: #fbbf24;
    --candy-orange: #fb923c;
    --candy-red: #ef4444;
    --candy-green: #4ade80;
    --candy-blue: #38bdf8;
    --gold: #ffd700;
    --gold-dark: #b8860b;
    
    /* Gradients */
    --bg-gradient: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 50%, #f5d0fe 100%);
    --card-gradient: rgba(255, 255, 255, 0.7);
    --card-featured: rgba(255, 255, 255, 0.95);
    --btn-primary: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    --btn-dark: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    --badge-hot: linear-gradient(135deg, #f97316 0%, #ec4899 100%);
    --badge-new: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
    --gradient-candy: linear-gradient(135deg, #ff6b9d 0%, #a855f7 50%, #38bdf8 100%);
    --gradient-gold: linear-gradient(135deg, #ffd700 0%, #ffaa00 50%, #ff8c00 100%);
    
    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-blur: blur(20px);
    --glass-border: 1px solid rgba(255, 255, 255, 0.3);
    
    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(168, 85, 247, 0.15);
    --shadow-purple: 0 4px 15px rgba(139, 92, 246, 0.3);
    
    /* Typography */
    --font-primary: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-game: 'Fredoka', sans-serif;
    
    /* Spacing */
    --sidebar-width: 260px;
    --header-height: 70px;
    --border-radius: 24px;
    --border-radius-sm: 14px;
}

/* ---------- RESET & BASE ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 15px;
    line-height: 1.6;
    color: var(--dark-gray);
    background: var(--bg-gradient);
    background-attachment: fixed;
    min-height: 100vh;
}

a {
    color: var(--primary-purple);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

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

/* ---------- LAYOUT ---------- */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* ---------- SIDEBAR ---------- */
.sidebar {
    width: var(--sidebar-width);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-right: var(--glass-border);
    padding: 24px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-gray);
}

.logo-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--border-radius-sm);
    background: var(--btn-primary);
    box-shadow: var(--shadow-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-gray);
}

.logo-text span {
    color: var(--primary-purple);
}

/* Sidebar Navigation */
.sidebar-nav {
    margin-bottom: 24px;
}

.nav-section {
    margin-bottom: 24px;
}

.nav-section-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-gray);
    margin-bottom: 12px;
    padding-left: 12px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    color: var(--light-gray);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-bottom: 4px;
}

.nav-item:hover {
    background: rgba(168, 85, 247, 0.1);
    color: var(--primary-purple);
}

.nav-item.active {
    background: white;
    color: var(--primary-purple);
    box-shadow: var(--shadow-sm);
}

.nav-item-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.nav-item-badge {
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    background: var(--badge-new);
    color: white;
}

/* Sidebar Footer */
.sidebar-footer {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--border-gray);
}

.sidebar-cta {
    background: var(--btn-primary);
    color: white;
    padding: 14px 20px;
    border-radius: 14px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    display: block;
    box-shadow: var(--shadow-purple);
    transition: all 0.3s ease;
}

.sidebar-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
    color: white;
}

/* ---------- MAIN CONTENT ---------- */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 24px 32px;
}

/* ---------- HEADER ---------- */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-radius: 50px;
    border: var(--glass-border);
    min-width: 280px;
}

.header-search input {
    border: none;
    background: none;
    outline: none;
    font-size: 14px;
    color: var(--dark-gray);
    width: 100%;
}

.header-search input::placeholder {
    color: var(--text-gray);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.header-btn.ghost {
    background: transparent;
    color: var(--primary-purple);
}

.header-btn.ghost:hover {
    background: rgba(255, 255, 255, 0.5);
}

.balance {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 50px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--shadow-sm);
}

.balance-icon {
    font-size: 16px;
}

.balance-amount {
    font-weight: 600;
    color: var(--dark-gray);
}

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 2px 10px rgba(251, 191, 36, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.avatar:hover {
    transform: scale(1.05);
}

/* ---------- HERO SECTION ---------- */
.hero-section {
    background: var(--card-featured);
    backdrop-filter: var(--glass-blur);
    border-radius: var(--border-radius);
    padding: 40px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-lg);
    border: 2px solid rgba(168, 85, 247, 0.2);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 500;
    color: var(--dark-gray);
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-title span {
    color: var(--primary-purple);
}

.hero-subtitle {
    font-size: 16px;
    color: var(--light-gray);
    margin-bottom: 24px;
    max-width: 600px;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(168, 85, 247, 0.1);
    border-radius: 50px;
    font-size: 13px;
    color: var(--primary-purple);
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--btn-primary);
    color: white;
    box-shadow: var(--shadow-purple);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
    color: white;
}

.btn-secondary {
    background: white;
    color: var(--dark-gray);
    border: 1px solid var(--border-gray);
}

.btn-secondary:hover {
    background: var(--dark-gray);
    color: white;
    border-color: var(--dark-gray);
}

.btn-dark {
    background: var(--btn-dark);
    color: white;
    box-shadow: 0 4px 15px rgba(31, 41, 55, 0.3);
}

.btn-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(31, 41, 55, 0.4);
    color: white;
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.stat-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-gray);
}

/* ---------- SECTION TITLES ---------- */
.section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 500;
    color: var(--dark-gray);
}

.section-subtitle {
    font-size: 14px;
    color: var(--text-gray);
    margin-top: 4px;
}

.section-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-purple);
}

.section-link:hover {
    gap: 10px;
}

/* ---------- DEMO SECTION ---------- */
.demo-section {
    background: var(--card-featured);
    backdrop-filter: var(--glass-blur);
    border-radius: var(--border-radius);
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-lg);
}

.demo-wrapper {
    background: #1a1a2e;
    border-radius: 16px;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    overflow: hidden;
    position: relative;
}

.demo-placeholder {
    text-align: center;
    color: white;
}

.demo-placeholder-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.demo-placeholder-text {
    font-size: 18px;
    opacity: 0.8;
}

.demo-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.demo-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(168, 85, 247, 0.05);
    border-radius: 12px;
}

.demo-feature-icon {
    width: 40px;
    height: 40px;
    background: var(--btn-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.demo-feature-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--dark-gray);
}

/* ---------- CONTENT BLOCKS ---------- */
.content-block {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-radius: var(--border-radius);
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.content-block h2 {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--dark-gray);
    margin-bottom: 16px;
}

.content-block h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark-gray);
    margin: 24px 0 12px;
}

.content-block p {
    color: var(--light-gray);
    margin-bottom: 16px;
}

.content-block ul,
.content-block ol {
    margin: 16px 0;
    padding-left: 24px;
    color: var(--light-gray);
}

.content-block li {
    margin-bottom: 8px;
}

/* ---------- INFO TABLE ---------- */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.info-table th,
.info-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-gray);
}

.info-table th {
    background: rgba(168, 85, 247, 0.1);
    font-weight: 600;
    color: var(--dark-gray);
}

.info-table td {
    color: var(--light-gray);
}

/* ---------- TIP BOX ---------- */
.tip-box {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.1) 0%, rgba(34, 197, 94, 0.1) 100%);
    border-left: 4px solid #22c55e;
    border-radius: 0 16px 16px 0;
    padding: 20px 24px;
    margin: 20px 0;
}

.tip-box-title {
    font-weight: 600;
    color: #16a34a;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tip-box-content {
    color: var(--dark-gray);
    font-size: 14px;
}

/* ---------- WARNING BOX ---------- */
.warning-box {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(245, 158, 11, 0.1) 100%);
    border-left: 4px solid #f59e0b;
    border-radius: 0 16px 16px 0;
    padding: 20px 24px;
    margin: 20px 0;
}

.warning-box-title {
    font-weight: 600;
    color: #d97706;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.warning-box-content {
    color: var(--dark-gray);
    font-size: 14px;
}

/* ---------- CASINO TABLE ---------- */
.casino-table-wrapper {
    overflow-x: auto;
    border-radius: 16px;
    background: var(--glass-bg);
}

.casino-table {
    width: 100%;
    border-collapse: collapse;
}

.casino-table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: var(--dark-gray);
    background: rgba(168, 85, 247, 0.05);
    border-bottom: 2px solid var(--border-gray);
}

.casino-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-gray);
}

.casino-table tbody tr:hover {
    background: rgba(168, 85, 247, 0.03);
}

.casino-rank {
    font-size: 20px;
}

.casino-name {
    font-weight: 600;
    color: var(--dark-gray);
}

.casino-bonus {
    color: var(--primary-purple);
    font-weight: 600;
}

.casino-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.casino-badge.yes {
    background: rgba(74, 222, 128, 0.2);
    color: #16a34a;
}

.casino-badge.no {
    background: rgba(239, 68, 68, 0.2);
    color: #dc2626;
}

.casino-rating {
    color: #fbbf24;
}

.casino-cta {
    display: inline-block;
    padding: 10px 20px;
    background: var(--btn-primary);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.casino-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-purple);
    color: white;
}

/* ---------- VERSION CARDS ---------- */
.card-image {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.card-image.pink { background: linear-gradient(135deg, #ff6b9d, #ec4899); }
.card-image.purple { background: linear-gradient(135deg, #a855f7, #7c3aed); }
.card-image.green { background: linear-gradient(135deg, #4ade80, #22c55e); }
.card-image.yellow { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.card-image.blue { background: linear-gradient(135deg, #38bdf8, #0ea5e9); }
.card-image.red { background: linear-gradient(135deg, #f87171, #ef4444); }

.type-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
}

.type-badge.premium {
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
}

.type-badge.new {
    background: rgba(251, 191, 36, 0.2);
    color: #f59e0b;
}

/* ---------- FAQ ACCORDION ---------- */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    cursor: pointer;
    font-weight: 600;
    color: var(--dark-gray);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 15px;
}

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

.faq-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-purple);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 24px 20px;
    max-height: 500px;
}

.faq-answer p {
    color: var(--light-gray);
    font-size: 14px;
    line-height: 1.7;
}

/* ---------- RESPONSIBLE GAMBLING ---------- */
.rg-section {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(249, 115, 22, 0.1) 100%);
    border-radius: var(--border-radius);
    padding: 32px;
    margin-bottom: 40px;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.rg-title {
    font-family: var(--font-display);
    font-size: 24px;
    color: #d97706;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.rg-content {
    color: var(--dark-gray);
    line-height: 1.7;
}

.rg-content p {
    margin-bottom: 16px;
}

.rg-content ul {
    margin: 16px 0;
    padding-left: 24px;
}

.rg-content li {
    margin-bottom: 8px;
}

.rg-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.rg-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: white;
    border-radius: 12px;
    color: var(--dark-gray);
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.rg-link:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    color: var(--primary-purple);
}

.rg-link-icon {
    font-size: 1.5rem;
}

.rg-link-info {
    flex: 1;
}

.rg-link-name {
    font-weight: 600;
    margin-bottom: 2px;
}

.rg-link-desc {
    font-size: 0.8rem;
    color: var(--text-gray);
}

.rg-badges {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.rg-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #dc2626;
}

/* ---------- AUTHOR BOX ---------- */
.author-box {
    display: flex;
    gap: 20px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-radius: var(--border-radius);
    padding: 24px;
    align-items: center;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--btn-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    flex-shrink: 0;
}

.author-info h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 4px;
}

.author-info .role {
    font-size: 13px;
    color: var(--primary-purple);
    margin-bottom: 8px;
}

.author-info p {
    font-size: 14px;
    color: var(--light-gray);
}

.author-meta {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-gray);
}

/* ---------- FOOTER ---------- */
.footer {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-radius: var(--border-radius);
    padding: 40px;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 32px;
}

.footer-brand .logo-icon {
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--light-gray);
    margin-bottom: 16px;
}

.footer-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 14px;
    color: var(--light-gray);
}

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

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-gray);
}

.footer-badges {
    display: flex;
    gap: 12px;
}

.footer-badge {
    padding: 8px 16px;
    background: rgba(168, 85, 247, 0.1);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-purple);
}

/* ---------- MOBILE MENU TOGGLE ---------- */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--btn-primary);
    color: white;
    border: none;
    box-shadow: var(--shadow-purple);
    z-index: 200;
    cursor: pointer;
    font-size: 24px;
}

/* ============================================
   DEMO GAME STYLES
   ============================================ */

/* Demo Game Container */
.demo-game-container {
    background: linear-gradient(180deg, #2d2640 0%, #1a1625 100%);
    border-radius: var(--border-radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-lg);
    border: 2px solid rgba(168, 85, 247, 0.3);
}

.demo-game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.demo-game-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.demo-game-logo-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-candy);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 20px rgba(255, 107, 157, 0.4);
}

.demo-game-logo-text {
    font-family: var(--font-game);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.demo-game-logo-text span {
    color: var(--candy-pink);
}

.demo-game-info {
    display: flex;
    gap: 24px;
}

.demo-game-info-item {
    text-align: center;
}

.demo-game-info-label {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
}

.demo-game-info-value {
    font-family: var(--font-game);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--candy-yellow);
}

/* Free Spins Bar */
.freespins-bar {
    display: none;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold));
    padding: 12px 20px;
    border-radius: 12px;
    margin-bottom: 16px;
    align-items: center;
    justify-content: space-between;
    color: #000;
    font-weight: 600;
}

.freespins-bar.active {
    display: flex;
    animation: glowPulse 1s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.3); }
    50% { box-shadow: 0 0 40px rgba(255, 215, 0, 0.6); }
}

.freespins-bar-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.freespins-bar-multiplier {
    font-family: var(--font-game);
    font-size: 1.5rem;
    font-weight: 700;
}

/* Slot Grid */
.slot-grid-wrapper {
    position: relative;
    background: #1e1a2e;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
    overflow: hidden;
}

.slot-grid-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, rgba(168, 85, 247, 0.1) 1px, transparent 1px),
        linear-gradient(rgba(168, 85, 247, 0.1) 1px, transparent 1px);
    background-size: calc(100% / 6) calc(100% / 5);
    pointer-events: none;
    border-radius: 16px;
}

.slot-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 8px;
    aspect-ratio: 6/5;
    position: relative;
    z-index: 1;
}

.slot-cell {
    background: rgba(45, 38, 64, 0.8);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.slot-cell.winning {
    animation: winPulse 0.5s ease-in-out infinite alternate;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

.slot-cell.tumbling {
    animation: tumbleOut 0.3s ease-in forwards;
}

.slot-cell.dropping {
    animation: dropIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes winPulse {
    from { transform: scale(1); background: rgba(255, 215, 0, 0.2); }
    to { transform: scale(1.05); background: rgba(255, 215, 0, 0.4); }
}

@keyframes tumbleOut {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0) rotate(180deg); opacity: 0; }
}

@keyframes dropIn {
    0% { transform: translateY(-100px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.multiplier-bomb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--gradient-gold);
    color: #000;
    font-family: var(--font-game);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 20px;
    z-index: 2;
}

/* Win Display */
.win-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    padding: 30px 60px;
    border-radius: 20px;
    text-align: center;
    z-index: 10;
    display: none;
    border: 3px solid var(--gold);
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.5);
}

.win-display.active {
    display: block;
    animation: winAppear 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes winAppear {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.win-display-label {
    font-size: 1rem;
    color: #94a3b8;
    margin-bottom: 8px;
}

.win-display-amount {
    font-family: var(--font-game);
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Slot Controls */
.slot-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.control-label {
    font-size: 0.85rem;
    color: #94a3b8;
}

.bet-control {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 50px;
}

.bet-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--primary-purple);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bet-btn:hover:not(:disabled) {
    background: var(--candy-pink);
    transform: scale(1.1);
}

.bet-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.bet-amount {
    font-family: var(--font-game);
    font-size: 1.2rem;
    font-weight: 600;
    min-width: 80px;
    text-align: center;
    color: var(--candy-yellow);
}

.spin-btn {
    background: var(--gradient-candy);
    border: none;
    padding: 16px 48px;
    border-radius: 50px;
    font-family: var(--font-game);
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(255, 107, 157, 0.4);
    text-transform: uppercase;
}

.spin-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(255, 107, 157, 0.5);
}

.spin-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.spin-btn.spinning {
    animation: spinBtnPulse 0.5s ease-in-out infinite;
}

@keyframes spinBtnPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(0.95); }
}

.demo-balance-display {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 20px;
    border-radius: 50px;
    text-align: center;
}

.demo-balance-label {
    font-size: 0.75rem;
    color: #94a3b8;
}

.demo-balance-amount {
    font-family: var(--font-game);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--candy-yellow);
}

/* Feature Buttons */
.feature-buttons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.feature-btn {
    flex: 1;
    min-width: 140px;
    padding: 12px 20px;
    border-radius: 12px;
    border: 2px solid;
    background: transparent;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: white;
}

.feature-btn.ante-bet {
    border-color: var(--candy-orange);
    color: var(--candy-orange);
}

.feature-btn.ante-bet:hover,
.feature-btn.ante-bet.active {
    background: var(--candy-orange);
    color: white;
}

.feature-btn.bonus-buy {
    border-color: var(--primary-purple);
    color: var(--primary-purple);
}

.feature-btn.bonus-buy:hover {
    background: var(--primary-purple);
    color: white;
}

.feature-btn.reset-btn {
    border-color: #64748b;
    color: #94a3b8;
}

.feature-btn.reset-btn:hover {
    background: #64748b;
    color: white;
}

/* Demo Stats */
.demo-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.demo-stat-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 12px;
    text-align: center;
}

.demo-stat-value {
    font-family: var(--font-game);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--candy-pink);
}

.demo-stat-label {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 4px;
}

/* Free Spins Overlay */
.freespins-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.freespins-overlay.active {
    display: flex;
}

.freespins-content {
    text-align: center;
    animation: bounceIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

.freespins-title {
    font-family: var(--font-game);
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.freespins-count {
    font-family: var(--font-game);
    font-size: 5rem;
    font-weight: 700;
    color: var(--candy-yellow);
    text-shadow: 0 0 40px rgba(255, 215, 0, 0.5);
}

.freespins-label {
    font-size: 1.3rem;
    color: #94a3b8;
    margin-bottom: 30px;
}

.freespins-start-btn {
    background: var(--gradient-gold);
    border: none;
    padding: 16px 48px;
    border-radius: 50px;
    font-family: var(--font-game);
    font-size: 1.2rem;
    font-weight: 700;
    color: #000;
    cursor: pointer;
    transition: all 0.3s;
}

.freespins-start-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--dark-gray);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.toast.active {
    transform: translateX(-50%) translateY(0);
}

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

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1200px) {
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .demo-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 16px;
    }
    
    .hero-section {
        padding: 24px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .casino-table-wrapper {
        overflow-x: auto;
    }
    
    .casino-table {
        min-width: 700px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .author-meta {
        justify-content: center;
    }

    .slot-controls {
        flex-direction: column;
    }

    .spin-btn {
        width: 100%;
    }

    .feature-buttons {
        flex-direction: column;
    }

    .rg-links {
        grid-template-columns: 1fr;
    }

    .demo-game-header {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .header-search {
        min-width: 100%;
    }
    
    .header-right {
        justify-content: flex-end;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .content-block {
        padding: 20px;
    }

    .demo-game-container {
        padding: 16px;
    }
}

/* ============================================
   UTILITY CLASSES (replacing inline styles)
   ============================================ */

/* --- Text Utilities --- */
.text-muted {
    color: var(--light-gray);
}

.section-intro {
    margin-bottom: 20px;
    color: var(--light-gray);
}

.section-intro-lg {
    margin-bottom: 24px;
    color: var(--light-gray);
}

.section-outro {
    margin-top: 20px;
    color: var(--light-gray);
}

/* --- Spacing Utilities --- */
.mt-0 { margin-top: 0; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }

.mb-0 { margin-bottom: 0; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }

/* --- Layout Utilities --- */
.btn-group {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.table-scroll {
    overflow-x: auto;
}

/* --- Version Card Layout --- */
.version-card-layout {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.version-card-content {
    flex: 1;
    min-width: 280px;
}

.version-card-icon {
    font-size: 48px;
    width: 100px;
    height: 100px;
}

/* --- Content Block Modifiers --- */
.content-block--featured {
    border: 2px solid rgba(168, 85, 247, 0.3);
}

/* --- Author Box Modifier --- */
.author-box--minimal {
    background: transparent;
    padding: 0;
    box-shadow: none;
}

/* --- Header Help Badge --- */
.help-badge {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e9d5ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #7c3aed;
}

/* --- Symbol Emoji in Tables --- */
.symbol-emoji {
    font-size: 24px;
}

/* ============================================
   ACCESSIBILITY: Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .slot-cell,
    .slot-cell.dropping,
    .slot-cell.winning,
    .spin-btn,
    .spin-btn.spinning,
    .freespins-content,
    .toast,
    .btn,
    .nav-item,
    .casino-cta,
    .sidebar-cta,
    .avatar {
        animation: none !important;
        transition: none !important;
    }
}

/* ============================================
   FOCUS VISIBLE (Keyboard Navigation)
   ============================================ */
.btn:focus-visible,
.nav-item:focus-visible,
.casino-cta:focus-visible,
.sidebar-cta:focus-visible,
.spin-btn:focus-visible,
.bet-btn:focus-visible,
.feature-btn:focus-visible,
.faq-question:focus-visible {
    outline: 2px solid var(--primary-purple);
    outline-offset: 2px;
}

a:focus-visible {
    outline: 2px solid var(--primary-purple);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Remove default outline for mouse users */
:focus:not(:focus-visible) {
    outline: none;
}

/* Extended Footer Grid */
.footer-grid-extended {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 32px;
}

@media (max-width: 992px) {
    .footer-grid-extended {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-grid-extended > div:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 576px) {
    .footer-grid-extended {
        grid-template-columns: 1fr 1fr;
    }
}

.footer-rg {
    text-align: center;
    padding: 20px;
    background: rgba(255, 107, 157, 0.1);
    border-radius: 12px;
    margin-top: 24px;
}

.footer-rg p {
    margin: 4px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

/* Legal Pages Styles */
.legal-content {
    max-width: 800px;
}

.legal-content h1 {
    font-size: 2rem;
    margin-bottom: 24px;
    color: #fff;
}

.legal-content h2 {
    font-size: 1.4rem;
    margin-top: 32px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-content h3 {
    font-size: 1.1rem;
    margin-top: 24px;
    margin-bottom: 12px;
}

.legal-content p {
    margin-bottom: 16px;
    line-height: 1.7;
}

.legal-content ul {
    margin-bottom: 16px;
    padding-left: 24px;
}

.legal-content ul li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.legal-date {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Footer Logo */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 16px;
}

.footer-logo .logo-icon {
    font-size: 2rem;
}

.footer-logo .logo-text {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.footer-logo .logo-text span {
    color: var(--accent-primary);
}

/* Sidebar Logo Link */
.sidebar-logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
