/* ============================================
   MBG777 - MIDNIGHT GOLD PREMIUM THEME
   Ultra-Immersive Gaming Landing Page
   ============================================ */

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

:root {
    /* Midnight Gold Palette */
    --bg-primary: #06060e;
    --bg-secondary: #0c0c1a;
    --bg-card: #111128;
    --bg-card-hover: #1a1a3a;
    --bg-surface: #0f0f24;
    --gold-primary: #FFD700;
    --gold-light: #FFE55C;
    --gold-dark: #CC9900;
    --gold-gradient: linear-gradient(135deg, #FFD700, #FFA500, #FFD700);
    --orange-primary: #FF8C00;
    --orange-light: #FFA533;
    --purple-primary: #8B5CF6;
    --purple-light: #A78BFA;
    --blue-primary: #3B82F6;
    --blue-gradient: linear-gradient(135deg, #667eea, #764ba2);
    --cyan-primary: #06B6D4;
    --green-primary: #10B981;
    --red-primary: #EF4444;
    --pink-primary: #EC4899;
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0C0;
    --text-gold: #FFD700;
    --border-gold: rgba(255, 215, 0, 0.2);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --shadow-gold: 0 0 30px rgba(255, 215, 0, 0.15);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    --glass-bg: rgba(17, 17, 40, 0.75);
    --glass-border: rgba(255, 215, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 50px;
    --font-primary: 'Outfit', sans-serif;
    --font-display: 'Orbitron', sans-serif;
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 480px;
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* === PARTICLES CANVAS === */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* === SPARKLE CONTAINER === */
.sparkle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--gold-primary);
    border-radius: 50%;
    animation: sparkle-float 4s ease-in-out infinite;
    box-shadow: 0 0 6px var(--gold-primary), 0 0 12px rgba(255, 215, 0, 0.3);
}

@keyframes sparkle-float {
    0%, 100% { opacity: 0; transform: translateY(0) scale(0); }
    50% { opacity: 1; transform: translateY(-30px) scale(1); }
}

/* === HEADER === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(6, 6, 14, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-gold);
    transition: var(--transition-smooth);
}

.header.scrolled {
    background: rgba(6, 6, 14, 0.95);
    box-shadow: 0 4px 30px rgba(255, 215, 0, 0.08);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 42px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
    transition: var(--transition-smooth);
}

.logo-img:hover {
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
    transform: scale(1.05);
}

.header-actions {
    display: flex;
    gap: 8px;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: var(--font-primary);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    white-space: nowrap;
}

.btn-login {
    padding: 8px 20px;
    font-size: 13px;
    color: var(--gold-primary);
    background: transparent;
    border: 1.5px solid var(--gold-primary);
    border-radius: var(--radius-full);
    letter-spacing: 0.5px;
}

.btn-login:hover {
    background: rgba(255, 215, 0, 0.1);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
    transform: translateY(-1px);
}

.btn-register {
    padding: 8px 20px;
    font-size: 13px;
    color: #000;
    background: var(--gold-gradient);
    border-radius: var(--radius-full);
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.3);
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 165, 0, 0.45);
}

.btn-detail {
    padding: 6px 14px;
    font-size: 11px;
    color: #000;
    background: var(--gold-gradient);
    border-radius: var(--radius-full);
    font-weight: 700;
    flex-shrink: 0;
}

.btn-hero-cta {
    padding: 14px 32px;
    font-size: 16px;
    color: #000;
    background: var(--gold-gradient);
    border-radius: var(--radius-full);
    font-weight: 800;
    letter-spacing: 1px;
    box-shadow: 0 6px 30px rgba(255, 165, 0, 0.4);
    animation: pulse-glow 2s ease-in-out infinite;
    text-transform: uppercase;
}

.btn-hero-cta:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 40px rgba(255, 165, 0, 0.6);
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 6px 30px rgba(255, 165, 0, 0.4); }
    50% { box-shadow: 0 6px 40px rgba(255, 165, 0, 0.7), 0 0 60px rgba(255, 215, 0, 0.2); }
}

.btn-cta-main {
    padding: 16px 40px;
    font-size: 17px;
    color: #000;
    background: var(--gold-gradient);
    border-radius: var(--radius-full);
    font-weight: 800;
    letter-spacing: 1px;
    box-shadow: 0 8px 35px rgba(255, 165, 0, 0.5);
    animation: pulse-glow 2s ease-in-out infinite;
    text-transform: uppercase;
}

.btn-cta-main:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 50px rgba(255, 165, 0, 0.7);
}

/* === MAIN CONTENT === */
.main-content {
    position: relative;
    z-index: 2;
    max-width: var(--max-width);
    margin: 0 auto;
    padding-top: 58px;
    padding-bottom: 80px;
}

.section-container {
    padding: 0 12px;
}

/* === HERO SECTION === */
.hero-section {
    position: relative;
}

.hero-banner-wrapper {
    padding: 8px 12px;
}

.hero-banner {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-gold);
    border: 1px solid var(--border-gold);
}

.hero-img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(6, 6, 14, 0.95));
    padding: 40px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-text {
    text-align: center;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 3px;
    margin-bottom: 6px;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

.gold-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 14px;
    letter-spacing: 1px;
}

/* === ANNOUNCEMENT BAR === */
.announcement-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin: 0 12px 8px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
}

.announcement-icon {
    font-size: 18px;
    flex-shrink: 0;
    animation: sound-pulse 1.5s ease-in-out infinite;
}

@keyframes sound-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.announcement-text-wrapper {
    flex: 1;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
}

.announcement-text {
    white-space: nowrap;
    font-size: 12px;
    color: var(--text-secondary);
    animation: marquee 25s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* === CATEGORIES GRID === */
.categories-section {
    padding: 8px 0 4px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 0 12px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 8px;
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: inherit;
}

.category-card:hover::before {
    opacity: 1;
}

.category-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-gold);
    box-shadow: var(--shadow-gold);
}

.category-popular { background: linear-gradient(145deg, #2d1f00, #1a1200); }
.category-lottery { background: linear-gradient(145deg, #1f0a2d, #120620); }
.category-casino { background: linear-gradient(145deg, #0a1f2d, #061220); }
.category-slots { background: linear-gradient(145deg, #1f2d0a, #122006); }
.category-sports { background: linear-gradient(145deg, #2d1f0a, #201206); }
.category-rummy { background: linear-gradient(145deg, #2d0a1f, #200612); }
.category-fishing { background: linear-gradient(145deg, #0a2d2d, #062020); }
.category-original { background: linear-gradient(145deg, #2d0a0a, #200606); }

.category-icon {
    font-size: 28px;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.3));
}

.category-card span {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

/* === SECTION HEADERS === */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-top: 18px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.title-accent {
    width: 4px;
    height: 20px;
    background: var(--gold-gradient);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.title-accent.accent-orange {
    background: linear-gradient(135deg, #FF8C00, #FF6600);
    box-shadow: 0 0 10px rgba(255, 140, 0, 0.4);
}

.title-accent.accent-purple {
    background: linear-gradient(135deg, #8B5CF6, #6D28D9);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
}

.title-accent.accent-cyan {
    background: linear-gradient(135deg, #06B6D4, #0891B2);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

.title-accent.accent-green {
    background: linear-gradient(135deg, #10B981, #059669);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.section-title h2 {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.see-all-btn {
    font-size: 12px;
    color: var(--gold-primary);
    padding: 4px 12px;
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
    font-weight: 500;
}

.see-all-btn:hover {
    background: rgba(255, 215, 0, 0.1);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.15);
}

/* === GAME CARDS - LOTTERY STYLE === */
.games-grid {
    display: grid;
    gap: 10px;
}

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

.games-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.game-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(145deg, #1a1050, #251565, #1a1050);
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: var(--transition-smooth);
    position: relative;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.25);
    border-color: rgba(139, 92, 246, 0.4);
}

.game-card-inner {
    padding: 14px;
    text-align: center;
    flex: 1;
}

.game-card-inner h3 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.game-thumb {
    width: 80%;
    margin: 0 auto;
    border-radius: var(--radius-md);
    aspect-ratio: 1;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.game-badge {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 14px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.game-go-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    margin: 10px 14px 14px;
    transition: var(--transition-smooth);
    letter-spacing: 1px;
}

.game-card:hover .game-go-btn {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

/* === SMALL GAME CARDS === */
.game-card-small {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    transition: var(--transition-smooth);
}

.game-card-small:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: var(--border-gold);
    box-shadow: var(--shadow-gold);
}

.game-thumb-small {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.game-name {
    display: block;
    padding: 8px 6px;
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* === RECOMMENDED CARDS === */
.recommended-card {
    position: relative;
}

.odds-badge {
    padding: 6px 8px;
    font-size: 10px;
    color: var(--text-secondary);
    background: linear-gradient(90deg, var(--bg-card), rgba(255, 140, 0, 0.15));
    border-top: 1px solid var(--border-subtle);
}

.odds-badge span {
    color: var(--orange-primary);
    font-weight: 700;
}

/* === WINNING SECTION === */
.winning-section {
    padding-bottom: 16px;
}

.winning-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 350px;
    overflow: hidden;
    position: relative;
}

.winning-list::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, var(--bg-primary));
    pointer-events: none;
}

.winner-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    animation: slide-in 0.5s ease-out;
    transition: var(--transition-smooth);
}

.winner-row:hover {
    border-color: var(--border-gold);
    background: var(--bg-card-hover);
}

@keyframes slide-in {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.winner-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple-primary), var(--pink-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.winner-info {
    flex: 1;
}

.winner-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.winner-game {
    font-size: 10px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.winner-amount {
    text-align: right;
}

.winner-amount .amount {
    font-size: 14px;
    font-weight: 700;
    color: var(--green-primary);
}

.winner-amount .label {
    font-size: 9px;
    color: var(--text-secondary);
    display: block;
    margin-top: 2px;
}

/* === CTA SECTION === */
.cta-section {
    padding: 24px 12px 16px;
    position: relative;
}

.cta-content {
    position: relative;
    text-align: center;
    padding: 40px 24px;
    border-radius: var(--radius-xl);
    background: linear-gradient(145deg, #1a0f30, #0f0a20, #1a0f30);
    border: 1px solid var(--border-gold);
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.12), transparent 70%);
    pointer-events: none;
}

.cta-title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 8px;
    letter-spacing: 2px;
    position: relative;
}

.cta-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    position: relative;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
    position: relative;
    flex-wrap: wrap;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-primary);
    font-weight: 500;
    padding: 6px 12px;
    background: rgba(255, 215, 0, 0.06);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-full);
}

.cta-feature-icon {
    font-size: 16px;
}

/* === BOTTOM NAVIGATION === */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 6px 0 8px;
    background: rgba(10, 10, 25, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-gold);
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.5);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 10px;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    padding: 4px 8px;
    position: relative;
}

.nav-item.active {
    color: var(--gold-primary);
}

.nav-item:hover {
    color: var(--gold-primary);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--gold-primary);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.nav-icon {
    font-size: 20px;
}

.nav-center {
    position: relative;
    margin-top: -24px;
}

.nav-center-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--gold-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(255, 165, 0, 0.4);
    border: 3px solid var(--bg-primary);
    overflow: hidden;
    animation: center-glow 3s ease-in-out infinite;
}

@keyframes center-glow {
    0%, 100% { box-shadow: 0 4px 20px rgba(255, 165, 0, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(255, 165, 0, 0.7), 0 0 40px rgba(255, 215, 0, 0.2); }
}

.nav-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 50%;
}

.nav-item span {
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* === RESPONSIVE === */
@media (min-width: 481px) {
    body {
        background: linear-gradient(135deg, #030308, #0a0a1a, #060614, #0a0a1a);
    }

    .main-content {
        border-left: 1px solid var(--border-gold);
        border-right: 1px solid var(--border-gold);
        background: var(--bg-primary);
        min-height: 100vh;
        box-shadow: 0 0 80px rgba(255, 215, 0, 0.05);
    }

    .header {
        max-width: var(--max-width);
        left: 50%;
        transform: translateX(-50%);
        border-left: 1px solid var(--border-gold);
        border-right: 1px solid var(--border-gold);
    }
}

/* === GAME SECTIONS SEPARATOR === */
.games-section {
    position: relative;
}

.games-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 12px;
    right: 12px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-gold), transparent);
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-primary);
}

/* === LOADING ANIMATION === */
.loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border-gold);
    border-top-color: var(--gold-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* === LOTTERY CARD GLOW ANIMATION === */
.lottery-card {
    position: relative;
}

.lottery-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), transparent, rgba(255, 215, 0, 0.3));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

.lottery-card:hover::before {
    opacity: 1;
}

/* === ADDITIONAL ANIMATIONS === */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.category-icon {
    animation: float 3s ease-in-out infinite;
}

.category-card:nth-child(2) .category-icon { animation-delay: 0.2s; }
.category-card:nth-child(3) .category-icon { animation-delay: 0.4s; }
.category-card:nth-child(4) .category-icon { animation-delay: 0.6s; }
.category-card:nth-child(5) .category-icon { animation-delay: 0.8s; }
.category-card:nth-child(6) .category-icon { animation-delay: 1.0s; }
.category-card:nth-child(7) .category-icon { animation-delay: 1.2s; }
.category-card:nth-child(8) .category-icon { animation-delay: 1.4s; }

/* Subtle ambient gradient animation on body */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(139, 92, 246, 0.04), transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(255, 215, 0, 0.03), transparent 50%);
    z-index: 0;
    pointer-events: none;
    animation: ambient-shift 10s ease-in-out infinite alternate;
}

@keyframes ambient-shift {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}
