 /**
 * ═══════════════════════════════════════════════════════════════
 * SPEND CELEBRITY MONEY - COMPLETE STYLESHEET
 * ═══════════════════════════════════════════════════════════════
 * Modern, Responsive, Animated CSS for Money Spending Game
 * Colors: Purple/Pink gradient theme with gold accents
 * ═══════════════════════════════════════════════════════════════
 */

/* ═══════════════════════════════════════════════════════════════
   1. CSS VARIABLES (Easy customization)
   ═══════════════════════════════════════════════════════════════ */
:root {
    /* Primary Colors */
    --primary-color: #ff5cf1;
    --primary-dark: #e040d7;
    --secondary-color: #7c3aed;
    --accent-color: #fbbf24;
    
    /* Specific Custom Color for Header Hovers */
    --custom-hover-color: #bc8cfa;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-gold: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    --gradient-continuous: linear-gradient(135deg, #ff5cf1 0%, #5cfffc 100%);
    
    /* Text Colors */
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --text-white: #ffffff;
    
    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-dark: #111827;
    --bg-card: #ffffff;
    
    /* Border & Shadow */
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.2);
    
    /* Spacing */
    --container-width: 1200px;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    
    /* Font Sizes */
    --font-xs: 0.75rem;
    --font-sm: 0.875rem;
    --font-base: 1rem;
    --font-lg: 1.125rem;
    --font-xl: 1.25rem;
    --font-2xl: 1.5rem;
    --font-3xl: 1.875rem;
    --font-4xl: 2.25rem;
    --font-5xl: 3rem;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    overflow-x: hidden;
}

/* ═══════════════════════════════════════════════════════════════
   3. TYPOGRAPHY
   ═══════════════════════════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

h1 { font-size: var(--font-5xl); }
h2 { font-size: var(--font-4xl); }
h3 { font-size: var(--font-3xl); }
h4 { font-size: var(--font-2xl); }
h5 { font-size: var(--font-xl); }
h6 { font-size: var(--font-lg); }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-base);
}

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

/* ═══════════════════════════════════════════════════════════════
   4. LAYOUT UTILITIES
   ═══════════════════════════════════════════════════════════════ */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.main-content {
    min-height: calc(100vh - 400px);
    padding: 2rem 0;
}

/* ═══════════════════════════════════════════════════════════════
   5. HEADER & NAVIGATION
   ═══════════════════════════════════════════════════════════════ */
.site-header {
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    /* COMPACT HEIGHT FIXES */
    padding-top: 10px;
    padding-bottom: 10px;
    min-height: auto;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0; /* Reduced padding */
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem; /* Reduced from 1.5rem (--font-2xl) by 25% */    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
}

.logo:hover {
    color: #bc8cfa !important;
}

.logo:hover .logo-text {
    color: #bc8cfa !important;
}

.logo-icon {
    font-size: 2rem;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(20deg); }
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 15px; 
}

/* Menu Links Styling */
.nav-menu a {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--custom-hover-color) !important;
    background: rgba(188, 140, 250, 0.1);
}

/* Search Button */
.search-box-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #e0e0e0;
    background-color: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    padding: 0 !important;
}

.search-box-btn:hover,
.search-box-btn.active {
    border-color: var(--custom-hover-color) !important;
    color: var(--custom-hover-color) !important;
    background-color: #fff !important;
    box-shadow: 0 4px 10px rgba(188, 140, 250, 0.2);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 0.35rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: var(--radius-full);
    transition: var(--transition-base);
}

/* ═══════════════════════════════════════════════════════════════
   7. HERO SECTION & STATS
   ═══════════════════════════════════════════════════════════════ */
.hero-section {
    background: var(--gradient-primary);
    color: var(--text-white);
    padding: 40px 0; /* Updated compact padding */
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><text x="50%" y="50%" font-size="60" text-anchor="middle" dominant-baseline="middle" opacity="0.1">💰</text></svg>');
    animation: float 20s linear infinite;
}

@keyframes float {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100px); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 10px;
    color: var(--text-white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: var(--font-xl);
    margin-bottom: 20px;
    opacity: 0.95;
    color: #ffffff;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Hero Stats */
.hero-stats {
    display: flex;             
    justify-content: center;   
    gap: 50px;                 
    flex-wrap: wrap;           
    margin-top: 20px;
}

.stat-box {
    text-align: center;
    min-width: 100px;
}

.stat-box h3, 
.stat-box p {
    color: #ffffff; 
}

.stat-box p {
    opacity: 0.9;
    margin-top: 5px;
    font-size: 14px;
}

.stat-box i {
    font-size: 24px;
    margin-bottom: 5px;
    color: #ffd700;
}

/* ═══════════════════════════════════════════════════════════════
   8. BUTTONS
   ═══════════════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: var(--font-base);
    cursor: pointer;
    border: none;
    transition: var(--transition-base);
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
}

.btn-primary:hover {
    background: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--text-white);
}

/* ═══════════════════════════════════════════════════════════════
   9. CARDS & SECTIONS
   ═══════════════════════════════════════════════════════════════ */
.section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: var(--font-4xl);
    margin-bottom: 1rem;
}

/* Celebrity Grid */
.celebrity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.celebrity-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    cursor: pointer;
    position: relative;
}

.celebrity-image {
    height: 220px;
    overflow: hidden;
}

.celebrity-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.celebrity-info {
    padding: 1.5rem;
}

.celebrity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.celebrity-name {
    font-size: var(--font-xl);
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.celebrity-title {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.celebrity-net-worth {
    display: inline-block;
    background: var(--gradient-gold);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: var(--font-lg);
    margin-bottom: 1rem;
}

/* ═══════════════════════════════════════════════════════════════
   10. GRADIENT WRAPPER SECTIONS (How To Play / Features)
   ═══════════════════════════════════════════════════════════════ */
/* This wrapper holds both sections so the gradient flows smoothly */
.gradient-wrapper {
    background: var(--gradient-continuous);
    padding-top: 40px;
    padding-bottom: 40px;
}

/* Make inner sections transparent */
.how-to-play, 
.features-section {
    background: transparent !important;
    color: #ffffff;
    padding-top: 30px;
    padding-bottom: 30px;
}

/* Force Section Headers to be White with Shadow inside gradient wrapper */
.how-to-play h2, 
.how-to-play p,
.features-section h2,
.features-section .section-header {
    color: #ffffff;
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* White Cards inside Gradient Sections */
.step-card, 
.feature-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.step-card h3, .step-card p,
.feature-card h3, .feature-card p {
    color: #333;
}

.step-number {
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 15px;
}

.step-icon, .feature-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

/* ═══════════════════════════════════════════════════════════════
   11. FAQ & CTA SECTIONS
   ═══════════════════════════════════════════════════════════════ */
.faq-section {
    padding-top: 100px;
    padding-bottom: 50px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition-base);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: var(--font-lg);
}

/* CTA SECTION */
.cta-section {
    text-align: center;
    padding: 50px 0;
    background: #f9f9f9; 
}

.cta-content h2 {
    margin-bottom: 10px;
    color: #333;
}

.cta-content p {
    margin-bottom: 25px;
    color: #666;
}

/* ═══════════════════════════════════════════════════════════════
   12. SPENDING GAME INTERFACE
   ═══════════════════════════════════════════════════════════════ */
.spending-game {
    max-width: 1400px;
    margin: 0 auto;
}

.money-display {
    background: var(--gradient-primary);
    color: var(--text-white);
    padding: 2rem;
    border-radius: var(--radius-xl);
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 80px;
    z-index: 100;
}

.money-amount {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
}

.item-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    text-align: center;
}

.item-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.item-emoji {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.item-price {
    font-size: var(--font-xl);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.item-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 1rem;
}

.btn-buy, .btn-sell {
    flex: 0 0 20%;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
}

.btn-buy {
    background: #22c55e;       /* GREEN */
    color: #ffffff;
}

.btn-buy:hover {
    background: #bc8cfa;
}

.btn-sell {
    background: #ef4444;       /* RED */
    color: #ffffff;
}

.btn-sell:hover {
    background: #dc2626;
}

.btn-sell:disabled {
    background: #fca5a5;
}

/* Receipt */
.receipt-section {
    position: sticky;
    top: 180px;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

/* ═══════════════════════════════════════════════════════════════
   14. RESPONSIVE DESIGN
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .mobile-menu-toggle { display: flex; }
    
    .nav-menu {
        position: fixed; top: 70px; left: -100%;
        width: 80%; height: calc(100vh - 70px);
        background: var(--bg-primary);
        flex-direction: column; padding: 2rem;
        box-shadow: var(--shadow-xl);
        transition: var(--transition-base);
        align-items: flex-start; gap: 2rem;
    }
    
    .nav-menu.active { left: 0; }
    
    .hero-section { padding: 3rem 0; }
    

}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .celebrity-grid, .items-grid { grid-template-columns: 1fr; }
}

/* FINAL FIX FOR CTA BUTTON */
.cta-section .btn-cta {
    background-color: #bc8cfa !important;
    color: #ffffff !important;
    display: inline-block;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(188, 140, 250, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-section .btn-cta:hover {
    background-color: #a870fa !important;
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(188, 140, 250, 0.6);
}
/* Scroll To Top Button - Purple Theme */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: #bc8cfa; /* Purple */
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    box-shadow: 0 5px 15px rgba(188, 140, 250, 0.4); /* Purple glow */
    transition: all 0.3s ease;
}

.back-to-top svg {
    stroke: #ffffff; /* White arrow */
    width: 28px;
    height: 28px;
}

.back-to-top:hover {
    background: #a870fa; /* Darker purple */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(188, 140, 250, 0.6); /* Stronger glow */
}

/* ========== PAGE HEADER FIX ========== */
.page-header {
    padding: 50px 0;
    text-align: center;
    background: var(--bg-primary);
}

.page-header h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 10px;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 18px;
}

/* ========== FILTER SECTION FIX ========== */
.filter-section {
    padding: 25px 0;
}

.filter-bar {
    display: flex;
    align-items: center;
    justify-content: center; /* This effectively centers everything */
    gap: 25px;
    width: 100%;
}

/* Add this extra part to ensure buttons stay centered on small screens */
.filter-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.filter-btn {
    background: #f3f4f6;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--custom-hover-color);
    color: white;
}

.search-box {
    position: relative;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

.search-box input {
    padding: 10px 14px 10px 35px;
    border-radius: 8px;
    border: 1px solid #ccc;
    width: 220px;
}

/* ========== TOP BILLIONAIRE CARD FIX ========== */
.top-billionaire-card {
    padding: 30px;
    border-radius: 15px;
    background: white;
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
    display: flex;
    gap: 25px;
    align-items: center;
}

.top-badge {
    background: var(--custom-hover-color);
    padding: 8px 15px;
    display: inline-block;
    color: white;
    border-radius: 8px;
    font-weight: 600;
}

.top-billionaire-image img {
    width: 220px;
    height: 220px;
    border-radius: 15px;
    object-fit: cover;
}

.top-billionaire-info h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.top-networth {
    font-size: 20px;
    font-weight: bold;
    margin: 10px 0;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .top-billionaire-card {
        flex-direction: column;
        text-align: center;
    }
}

/* ========== MORE BILLIONAIRES SECTION FIX ========== */
.section-divider h3 {
    font-size: 28px;
    margin: 30px 0 20px;
    text-align: left;
    font-weight: 700;
}

/* ========== CELEBRITY GRID FIX ========== */
.celebrities-list-section {
    padding: 20px 0 50px;
}

.celebrities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Desktop = 3 cards */
    gap: 25px;
}

/* Tablet */
@media (max-width: 1024px) {
    .celebrities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 600px) {
    .celebrities-grid {
        grid-template-columns: 1fr;
    }
}

.celebrity-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: 0.3s ease;
}

.celebrity-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.rank-badge {
    background: var(--custom-hover-color);
    color: white;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 10px;
}

.celebrity-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
}

.celebrity-info h3 {
    margin-top: 10px;
    font-size: 22px;
}

.celebrity-networth-badge {
    background: var(--gradient-gold);
    padding: 6px 12px;
    border-radius: 50px;
    display: inline-block;
    margin: 10px 0;
    font-weight: 600;
}

.btn-play {
    background: var(--custom-hover-color);
    padding: 10px 15px;
    display: inline-block;
    color: white;
    border-radius: 10px;
    margin-top: 10px;
    font-weight: 600;
    transition: 0.3s ease;
}

.celebrity-info .btn-play {
    display: block;
    margin: 10px auto 0;
    text-align: center;
}

.btn-play:hover {
    background: #a870fa;
}

/* --- FORCE SEARCH ICON OUTSIDE MENU IN MOBILE --- */
@media (max-width: 768px) {

    /* Make nav menu dropdown push down, but not include search */
    .nav-menu {
        margin-top: 60px !important;
    }

    /* Move search box button out of nav menu visually */
.nav-menu .search-box-btn {
    position: absolute !important;
    right: 60px !important;
    top: 12px !important;
    display: flex !important;
    z-index: 1003 !important;
}

    /* Hide this search icon when menu is open */
    .nav-menu.active .search-box-btn {
        display: none !important;
    }

    /* Disable search button inside menu container */
    .nav-menu li:last-child {
        display: none !important;
    }
}

/* Hide mobile search icon on desktop by default */
.mobile-search-icon {
    display: none;
}

/* MOBILE: Show search icon outside menu with proper alignment */
@media (max-width: 768px) {
    .mobile-search-icon {
        display: flex !important;
        width: 40px;
        height: 40px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        position: absolute;
        right: 70px; /* Changed from 60px to give more space from hamburger */
        top: 50%; /* Changed to percentage */
        transform: translateY(-50%); /* Perfect vertical centering */
        background: #fff;
        z-index: 2000;
        text-decoration: none;
        color: var(--text-secondary);
        transition: all 0.2s ease;
    }
    
    .mobile-search-icon:hover {
        border-color: var(--custom-hover-color) !important;
        color: var(--custom-hover-color) !important;
        box-shadow: 0 4px 10px rgba(188, 140, 250, 0.2);
    }
    
    /* Hide search inside nav menu on mobile */
    .nav-menu li:last-child {
        display: none !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   FINAL FOOTER FIX - COMPLETE OVERRIDE
   ═══════════════════════════════════════════════════════════════ */

.site-footer {
    background: #111827 !important;
    color: #ffffff !important;
    padding: 2.5rem 0 1.5rem !important;
    margin-top: 4rem !important;
}

.site-footer .container {
    max-width: 1100px !important;
    margin: 0 auto !important;
    padding: 0 1.5rem !important;
}

/* Footer Grid - Force 4 Columns */
.footer-top {
    display: grid !important;
    grid-template-columns: 1.3fr 1fr 1fr 1fr !important;
    gap: 1.5rem !important;
    margin-bottom: 2.5rem !important;
}

/* Footer Column */
.footer-column {
    padding: 0 !important;
}

/* Footer Titles */
.footer-title {
    color: #ffffff !important;
    font-size: 1.1rem !important;
    margin-bottom: 0.8rem !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
}

/* Footer Description */
.footer-description {
    color: rgba(255, 255, 255, 0.85) !important;
    line-height: 1.7 !important;
    margin-bottom: 1.5rem !important;
    font-size: 15px !important;
}

/* Stats Box */
.footer-stats-box {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.8rem !important;
    margin-top: 1rem !important;
}

.stats-row {
    display: flex !important;
    gap: 0.8rem !important;
    width: 100% !important;
}

.stats-row:first-child {
    justify-content: space-between !important;
}

.stats-row:first-child .stat-card {
    flex: 1 1 50% !important;
    max-width: calc(50% - 0.4rem) !important;
}

.stats-row:last-child {
    justify-content: stretch !important;
}

.stat-card {
    background: rgba(188, 140, 250, 0.2) !important;
    border-radius: 8px !important;
    padding: 10px 12px !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border: 1px solid rgba(188, 140, 250, 0.3) !important;
    text-align: center !important;
    white-space: nowrap !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.stat-card.full-width {
    width: 100% !important;
}

/* Footer Links */
.footer-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-links li {
    margin-bottom: 0.75rem !important;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
}

.footer-links a:hover {
    color: #bc8cfa !important;
    padding-left: 5px !important;
}

/* Social Links */
.social-links {
    display: flex !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    margin-top: 15px !important;
}

.social-link {
    width: 38px !important;
    height: 38px !important;
    background: rgba(188, 140, 250, 0.2) !important;
    border: 2px solid rgba(188, 140, 250, 0.3) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    transition: all 0.3s ease !important;
}

.social-link:hover {
    background: #bc8cfa !important;
    border-color: #bc8cfa !important;
    transform: translateY(-3px) !important;
}

.social-link svg {
    width: 20px !important;
    height: 20px !important;
}

/* Footer Bottom - Centered */
.footer-bottom {
    text-align: center !important;
    padding-top: 2rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
    margin-top: 2rem !important;
    width: 100% !important;
    clear: both !important;
}

.copyright {
    font-size: 16px !important;
    font-weight: 600 !important;
    margin-bottom: 10px !important;
    color: #ffffff !important;
}

.disclaimer-note {
    font-size: 14px !important;
    color: rgba(255, 255, 255, 0.7) !important;
    line-height: 1.6 !important;
    max-width: 800px !important;
    margin: 0 auto !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        gap: 2rem !important;
    }
    
    .footer-title {
        font-size: 1.1rem !important;
    }
    
    .social-links {
        justify-content: center !important;
    }
    
    /* KEEP STATS IN 2+1 LAYOUT */
    .footer-column .footer-stats-box .stats-row {
        display: flex !important;
        flex-direction: row !important;
        gap: 0.5rem !important;
    }
    
    .footer-column .footer-stats-box .stats-row:first-child {
        flex-direction: row !important;
    }
    
    .footer-column .footer-stats-box .stats-row:first-child .stat-card {
        flex: 1 !important;
        width: calc(50% - 0.25rem) !important;
        font-size: 11px !important;
        padding: 8px 6px !important;
    }
    
    .footer-column .footer-stats-box .stats-row:last-child .stat-card {
        width: 100% !important;
        font-size: 11px !important;
        padding: 8px 6px !important;
    }
    
    .footer-column .footer-stats-box .stat-card {
        font-size: 11px !important;
        padding: 8px 6px !important;
    }
    
    .footer-links a:hover {
        padding-left: 0 !important;
    }
}

/* FIX NAME + NETWORTH SAME LINE */
.celebrity-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    margin-bottom: 10px !important;
}

/* FIX NETWORTH BADGE SIZE + ALIGNMENT */
.celebrity-header .celebrity-networth-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 12px !important;
    border-radius: 50px !important;
    font-size: 14px !important;
}

/* CENTER THE "START SPENDING" BUTTON */
.celebrity-info .btn-play {
    display: block !important;
    width: fit-content !important;
    margin: 12px auto 0 !important;
    text-align: center !important;
}

/* FINAL FIX → Name + Networth side-by-side */
.celebrity-header-fixed {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    margin-bottom: 10px !important;
}

/* Force badge to stay on right side */
.celebrity-header-fixed .celebrity-networth-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 12px !important;
    background: linear-gradient(135deg, #ffd700, #ffed4e) !important;
    border-radius: 50px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

/* TOP BILLIONAIRE CARD - Name + Networth Fix */
.top-billionaire-info .celebrity-header-fixed {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
    margin-bottom: 15px !important;
}

.top-billionaire-info .celebrity-header-fixed h2 {
    margin: 0 !important;
    font-size: 32px !important;
    color: var(--text-primary) !important;
}

.top-billionaire-info .celebrity-networth-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 16px !important;
    background: linear-gradient(135deg, #ffd700, #ffed4e) !important;
    border-radius: 50px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    white-space: nowrap !important;
}

/* Remove old top-networth styles */
.top-networth {
    display: none !important;
}

/* FORCE ALL CARDS TO USE FIXED LAYOUT - EMERGENCY OVERRIDE */
.celebrity-card .celebrity-info {
    display: block !important;
}

.celebrity-card .celebrity-info > h3 {
    display: inline-block !important;
    margin-right: 10px !important;
    margin-bottom: 0 !important;
}

.celebrity-card .celebrity-info > .celebrity-net-worth {
    display: inline-flex !important;
    align-items: center !important;
    vertical-align: middle !important;
}

/* ======================================
   SEO CONTENT STYLING FIX (WORKING)
   ====================================== */

.hero-banner {
    width: 100% !important;
    max-width: 600px !important;
    display: block !important;
    margin: 0 auto !important;
    height: auto !important;
}

/* REAL FIX FOR STATS SECTION SPACING */
.stats-section .stat-card {
    display: block !important;
    margin-bottom: 25px !important;
    padding: 20px !important;
    white-space: normal !important;
}
.stats-section .stats-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px !important;
}

.btn-play:hover {
    color: #000 !important;
}

/* Working fix for the Large Top Button */
.btn-play-large {
    background: var(--custom-hover-color) !important;
    color: #fff !important;
    padding: 12px 20px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    display: inline-block !important;
    text-align: center !important;
    margin-top: 15px !important;
    transition: all 0.3s ease !important;
}

.btn-play-large:hover {
    background: #a870fa !important;
    color: #000 !important;
    transform: translateY(-3px);
}

/* =============================
   SEO CONTENT CARD FIX
   ============================= */
.seo-content-section {
    padding: 30px 0;
}

.seo-content {
    max-width: 100%;
    margin: 0 auto;
}

.seo-card {
    background: #ffffff;
    padding: 20px;   /* 40 → 20 */
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    
    max-width: 900px;   /* 👈 ADD THIS */
    margin: 0 auto;
}

.seo-card h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 15px;
    color: #111827;
}

.seo-card h3 {
    font-size: 26px;
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 10px;
}

.seo-card p,
.seo-card li {
    font-size: 18px;
    line-height: 1.8;
    color: #4b5563;
}

.seo-card ul {
    margin-left: 20px;
    margin-top: 10px;
}

.cta-box {
    text-align: center;
    margin-top: 40px;
    padding: 30px;
}

.cta-box .btn-primary {
    background: #bc8cfa !important; /* purple button */
    color: #fff !important;          /* white text */
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 700;
    transition: 0.3s ease;
    display: inline-block;
}

.cta-box .btn-primary:hover {
    background: #bc8cfa !important;  /* keep purple same */
    color: #000 !important;          /* text becomes black */
}

/* ===============================
   HERO SECTION FIX
=============================== */

.game-hero {
    padding: 40px 0;
    background: #ffffff;
}

.game-hero-content {
    max-width: 1200px;
    margin: auto;
}

.celebrity-details h1 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 10px;
}

.celebrity-subtitle {
    font-size: 20px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 5px;
}

.celebrity-bio {
    font-size: 16px;
    color: #4b5563;
    line-height: 1.6;
}

/* ===============================
   BALANCE CARD FIX (FINAL)
=============================== */
.balance-container {
    display: flex;
    justify-content: space-between; /* 🔥 LEFT & RIGHT */
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: nowrap;             /* 🔥 keep same line */
}

.balance-box {
    display: inline-flex;        /* 🔥 key point */
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: auto;                 /* 🔥 auto width */
    min-width: 140px;            /* small safety */
    max-width: 100%;

    padding: 8px 14px;
    border-radius: 14px;
    color: white;
    font-weight: 700;
    white-space: nowrap;         /* money single line */
}

.balance-box h3 {
    font-size: 14px;
    margin-bottom: 4px;
}

.balance-box div {
    font-size: 22px;
    font-weight: 800;
}

/* Left (Total Money) Box */
.balance-left {
    background: radial-gradient(circle, #00ff66, #008f3d);
    box-shadow: 0 0 10px #00ff66;
}

/* Right (Spent) Box */
.balance-right {
    background: radial-gradient(circle, #ff3b3b, #b30000);
    box-shadow: 0 0 10px #ff3b3b;
}

@media (max-width: 600px) {
  .balance-box {
    padding: 6px 10px;
  }

  .balance-box div {
    font-size: 18px;
  }
}

/* ===============================
   CATEGORY BUTTONS FIX
=============================== */

.category-btn {
    padding: 10px 18px;
    background: #f3f4f6;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.category-btn.active,
.category-btn:hover {
    background: var(--custom-hover-color);
    color: #fff;
}

/* WRAPPER CARD */
.game-wrapper {
    padding: 20px 0;
}

.game-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);

    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    position: relative;
}

/* Sticky header inside the card */
.sticky-balance {
    position: relative;  
    background: #ffffff;
    z-index: 10;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.game-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.game-wrapper .container {
    display: flex;
    justify-content: center;
}

/* =========================================
   FINAL FIX: HERO CONTENT CENTER (DESKTOP)
   ========================================= */

.celebrity-profile {
    display: block !important;   /* ❌ remove flex */
    text-align: center !important;
}

/* STEP 2: Center text */
.celebrity-details {
    max-width: 900px;
    margin: 0 auto !important;
    text-align: center !important;
}

/* STEP 3: Center image */
.celebrity-avatar {
    width: 600px;        /* 🔥 increased */
    height: auto;        /* keep natural ratio */
    max-width: 90%;      /* responsive safety */
    border-radius: 20px;
    object-fit: cover;
    display: block;
    margin: 0 auto 30px;
}

/* =====================================
   STICKY TOP: BALANCE + CATEGORY BUTTONS
   ===================================== */

#gameCompleteSummary h2 {
    margin-bottom: 15px;
}

.summary-actions button {
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    background: #bc8cfa;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.item-name {
    font-size: 18px;        /* earlier big, now compact */
    font-weight: 700;
    margin-bottom: 6px;
}

.qty-input {
    width: 55px;
    text-align: center;
    padding: 6px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-weight: 600;
}

/* === COMPACT ITEM CARD LAYOUT === */

.item-card {
    padding: 10px;              /* height reduce */
}

/* LINE 1: Emoji + Name */
.item-top {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.item-emoji {
    font-size: 22px;
}

/* LINE 2: Category + Price */
/* Center price only */
.item-middle {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
}

.item-category {
    font-size: 13px;
    color: #6b7280;
    font-weight: 600;
}

.item-price {
    font-size: 16px;
    font-weight: 700;
    color: #bc8cfa;
    text-align: center;
}


/* LINE 3: Actions */
.item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-top: 6px;
}

.qty-input {
    width: 45px;
    padding: 4px;
}

/* ===== MORE BILLIONAIRE GAMES LINKS ===== */

.summary-more-games {
    margin-top: 35px;
    padding-top: 20px;
}

.summary-more-games h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #111827;
}

.summary-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 🔥 FORCE 2 columns */
    gap: 12px;
}

.summary-links a {
    display: block;
    padding: 10px 14px;
    border-radius: 10px;
    background: #f5f3ff;
    color: #6d28d9;
    font-weight: 600;
    text-align: center;
    transition: 0.3s ease;
}

.summary-links a:hover {
    background: #bc8cfa;
    color: #ffffff;
    transform: translateY(-2px);
}

.summary-divider {
    margin: 30px 0 20px;
    border: none;
    border-top: 1px solid #e5e7eb;
}

/* Force summary to behave like normal content */
#gameCompleteSummary {
    width: 100%;
    margin-top: 30px;
    padding: 25px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    text-align: center;
}

/* ===============================
   SUMMARY ACTION BUTTONS (FINAL)
=============================== */

.summary-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 25px;
}

/* Common button */
.summary-btn {
    padding: 12px 18px;
    border-radius: 10px;
    border: none;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Download */
.download-btn {
    background: #f5f3ff;
    color: #6d28d9;
}

.download-btn:hover {
    background: #ede9fe;
    transform: translateY(-2px);
}

/* Share */
.share-btn {
    background: #ecfeff;
    color: #0369a1;
}

.share-btn:hover {
    background: #cffafe;
    transform: translateY(-2px);
}

/* Play Again (PRIMARY) */
.play-btn {
    background: #bc8cfa;
    color: #ffffff;
}

.play-btn:hover {
    background: #a870fa;
    transform: translateY(-2px);
}

.btn-max {
    background: #fbbf24;
    color: #000;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}

.btn-max:hover {
    background: #f59e0b;
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  50% { transform: translateX(6px); }
  75% { transform: translateX(-6px); }
  100% { transform: translateX(0); }
}

.shake {
  animation: shake 0.4s;
}

/* ======================================
   ITEMS SCROLL WRAPPER (ARROWS CONTROL)
====================================== */
.items-scroll-wrapper {
    position: relative;
}

/* ======================================
   SCROLL AREA
====================================== */
.items-scroll {
    max-height: 650px;
    overflow-y: auto;
    padding-right: 26px; /* scrollbar space */
}

/* ======================================
   PURPLE SCROLLBAR (CLEAR & VISIBLE)
====================================== */

/* Chrome / Edge */
.items-scroll::-webkit-scrollbar {
    width: 12px; /* 🔥 bigger */
}

.items-scroll::-webkit-scrollbar-track {
    background: transparent; /* ❌ no gray line */
}

.items-scroll::-webkit-scrollbar-thumb {
    background: #bc8cfa; /* 💜 old purple */
    border-radius: 20px;
    border: 3px solid #fff; /* makes it pop */
}

.items-scroll::-webkit-scrollbar-thumb:hover {
    background: #a870fa;
}

/* Firefox */
.items-scroll {
    scrollbar-width: auto;
    scrollbar-color: #bc8cfa transparent;
}

/* ======================================
   SCROLL ARROW BUTTONS
====================================== */
.scroll-btn {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;              /* 🔥 size increased */
    height: 44px;
    border-radius: 50%;
    background: #bc8cfa;
    color: #fff;
    border: none;
    cursor: pointer;
    z-index: 50;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 6px 16px rgba(188,140,250,0.5);
}

/* TOP arrow – outside scroll box */
.scroll-up {
    top: -28px;   /* 🔥 more gap – no overlap */
}

/* BOTTOM arrow – outside scroll box */
.scroll-down {
    bottom: -28px;
}

.scroll-btn:hover {
    background: #a870fa;
    transform: translateX(-50%) scale(1.05);
}

/* Force EXACT 3 columns on desktop */
.items-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px;
}

/* Tablet */
@media (max-width: 1024px) {
    .items-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .items-grid {
        grid-template-columns: 1fr !important;
    }
}

.summary-links a {
    display: block;
    padding: 10px 14px;
    border-radius: 10px;
    background: #f5f3ff;
    color: #6d28d9;
    font-weight: 600;
    text-align: center;
    transition: 0.3s ease;
}

.summary-links a:hover {
    background: #bc8cfa;
    color: #ffffff;
    transform: translateY(-2px);
}

/* =====================================
   FINAL STICKY TOP (GAME ONLY)
===================================== */
.sticky-top-area {
    position: sticky;
    top: var(--header-offset, 100px);
    z-index: 999;
    background: #fff;
}

/* ============================
   ABOUT PAGE STYLES
============================ */

.about-content {
  padding: 60px 0;
}

.content-block {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}

.content-block.reverse {
  flex-direction: row-reverse;
}

.content-text {
  flex: 1;
}

.content-text h2 {
  font-size: 32px;
  margin-bottom: 15px;
}

.content-text p {
  font-size: 18px;
  line-height: 1.7;
  color: #4b5563;
}

.content-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.icon-display {
  font-size: 120px;
}

/* Highlight box */
.highlight-box {
  background: #f5f3ff;
  padding: 20px;
  border-left: 6px solid #bc8cfa;
  border-radius: 12px;
  margin-top: 20px;
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Features */
.features-showcase {
  text-align: center;
  margin-top: 60px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.feature-box {
  background: #ffffff;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.feature-box i {
  font-size: 30px;
  color: #bc8cfa;
  margin-bottom: 10px;
}

/* Stats */
.about-stats {
  text-align: center;
  margin-top: 60px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 25px;
}

.stat-card {
  background: #ffffff;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.stat-number {
  font-size: 32px;
  font-weight: 800;
  color: #7c3aed;
}

.stat-label {
  color: #6b7280;
}

/* Disclaimer */
.disclaimer-section {
  background: #fff7ed;
  border-left: 6px solid #f59e0b;
  padding: 20px;
  border-radius: 14px;
  margin-top: 50px;
  display: flex;
  gap: 12px;
}

/* Responsive */
@media (max-width: 768px) {
  .content-block {
    flex-direction: column;
    text-align: center;
  }
}

/* =========================
   3D EMOJI ANIMATION (ABOUT PAGE) – BLACK SHADOW
========================= */

.icon-display {
  font-size: 120px;
  display: inline-block;
  animation: floatEmoji 3s ease-in-out infinite;
  transform-style: preserve-3d;

  /* 3D look – BLACK instead of purple */
  text-shadow:
    2px 2px 0 #000000,
    4px 4px 0 #111111,
    6px 6px 12px rgba(0,0,0,0.35);
}

/* Different delay for each emoji (nice effect) */
.content-block:nth-child(1) .icon-display {
  animation-delay: 0s;
}
.content-block:nth-child(2) .icon-display {
  animation-delay: 1s;
}
.content-block:nth-child(3) .icon-display {
  animation-delay: 2s;
}

/* Floating + slight rotate */
@keyframes floatEmoji {
  0% {
    transform: translateY(0) rotateX(0deg) rotateY(0deg);
  }
  50% {
    transform: translateY(-12px) rotateX(8deg) rotateY(-8deg);
  }
  100% {
    transform: translateY(0) rotateX(0deg) rotateY(0deg);
  }
}

/* =========================
   ABOUT PAGE MOBILE GROUPING FIX (FINAL)
========================= */
@media (max-width: 768px) {

  /* Each section looks like one block */
  .content-block {
    flex-direction: column !important;
    text-align: center;
    gap: 12px !important;
    margin-bottom: 35px !important;
  }

  /* FORCE SAME ORDER: TEXT FIRST, EMOJI BELOW */
  .content-text {
    order: 1 !important;
  }

  .content-image {
    order: 2 !important;
    margin-top: 10px;
    margin-bottom: 10px;
  }

  /* Smaller emoji */
  .icon-display {
    font-size: 64px !important;
  }

  /* Reduce paragraph width for better reading */
  .content-text {
    padding: 0 10px;
  }

  .content-text p,
  .content-text li {
    font-size: 15px;
    line-height: 1.6;
  }

  .content-text h2 {
    font-size: 22px;
    margin-bottom: 8px;
  }

  /* Highlight box compact */
  .highlight-box {
    margin-top: 12px;
    padding: 12px;
    text-align: left;
  }

  /* Features + stats look grouped */
  .features-showcase,
  .about-stats {
    margin-top: 40px;
  }

  /* Remove big empty vertical spaces */
  .features-grid,
  .stats-grid {
    margin-top: 15px;
  }
}

/* ===============================
   CATEGORY BUTTONS RESPONSIVE FIX
=============================== */

/* Desktop: force single line */
.category-filter {
  display: flex;
  flex-wrap: nowrap;   /* 🔥 single row */
  overflow-x: auto;    /* scroll if needed */
  justify-content: center;
}

/* Mobile: force 2 rows only */
@media (max-width: 768px) {
  .category-filter {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important; /* 🔥 4 + 4 = 2 rows */
    gap: 8px !important;
  }

  .category-btn {
    font-size: 12px !important;
    padding: 8px 8px !important;
    white-space: nowrap !important;
  }
}

/* ✅ MOBILE FIX: Name + Networth side by side */
@media (max-width: 600px) {

  .celebrity-header-fixed {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .celebrity-name {
    font-size: 18px !important;
    margin: 0 !important;
    white-space: normal !important;
  }

  .celebrity-networth-badge {
    font-size: 13px !important;
    padding: 5px 10px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  /* stop sideways movement */
  body,
  .celebrity-card,
  .celebrities-grid {
    overflow-x: hidden !important;
  }
}

/* 🔥 FIX MOBILE RIGHT SIDE EXTRA SPACE */
@media (max-width: 600px) {

  html, body {
    width: 100%;
    overflow-x: hidden !important;
  }

  .container {
    max-width: 100% !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .celebrities-grid {
    width: 100% !important;
  }

  .celebrity-card {
    width: 100% !important;
    margin: 0 auto !important;
  }

  .celebrity-image img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
  }
}

/* ===== MOBILE FILTER BAR FIX ===== */
@media (max-width: 600px) {

  .filter-bar {
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
  }

  .filter-info {
    text-align: center !important;
    width: 100% !important;
  }

  .filter-controls {
    flex-wrap: wrap !important;
    justify-content: center !important;
    width: 100% !important;
  }

  .search-box {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
  }

  .search-box input {
    width: 90% !important;
    max-width: 300px !important;
  }

  /* Center the section title */
  .section-divider h3 {
    text-align: center !important;
  }
}

/* 🔥 HARD FIX: Disable celebrity card hover & animation on mobile */
@media (max-width: 768px) {

  .celebrity-card {
    transform: none !important;
    transition: none !important;
  }

  .celebrity-card:hover {
    transform: none !important;
    box-shadow: var(--shadow-md) !important;
  }

}
/* =========================
   FINAL BREADCRUMB STYLE
========================= */

.breadcrumb-wrapper {
    background: #fff;
    padding: 14px 0;
    border-bottom: 1px solid #e5e7eb;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 17px;   /* 🔥 50% bigger */
    color: #6b7280;
}

.breadcrumb-item a {
    color: #bc8cfa;
    font-weight: 600;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    margin: 0 10px;
    color: #888;
    font-size: 17px;
}

/* current page */
.breadcrumb-item:last-child span {
    color: #000;
    font-weight: 700;
}

.hidden {
  display: none;
}

/* ═══ SEARCH MODAL — GREEN THEME ═══ */

:root {
    --search-green: #bc8cfa;
    --search-green-hover: #a870fa;
    --search-green-light: #f5f3ff;
    --search-green-text: #bc8cfa;
    --search-border: #bc8cfa;
    --search-border-focus: #a870fa;
}

.hidden { display: none !important; }

.searchToggle {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    color: inherit;
}
.searchToggle:hover { 
    background: rgba(188,140,250,0.12);
}

.search-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.search-modal.hidden { display: none !important; }

.search-modal-box {
    background: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 560px;
    padding: 28px 24px 24px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.18);
    animation: searchModalIn 0.2s ease;
}
@keyframes searchModalIn {
    from { opacity:0; transform: translateY(-12px) scale(0.97); }
    to   { opacity:1; transform: translateY(0) scale(1); }
}

.search-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.search-modal-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}
.search-modal-header button {
    background: none;
    border: none;
    font-size: 22px;
    color: #9ca3af;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.search-modal-header button:hover {
    color: #374151;
    background: #f3f4f6;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}
#searchInput {
    width: 100%;
    padding: 14px 70px 14px 20px;
    border: 2.5px solid var(--search-border);
    border-radius: 999px;
    font-size: 16px;
    color: #111827;
    background: #fff;
    outline: none;
    box-sizing: border-box;
}
#searchInput:focus { border-color: var(--search-border-focus); }
#searchInput::placeholder { color: #9ca3af; }

#searchClear {
    position: absolute;
    right: 52px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 16px;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
#searchClear:hover { color: #374151; background: #f3f4f6; }
#searchClear.hidden { display: none !important; }

.search-green-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--search-green);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.search-green-btn:hover {
    background: var(--search-green-hover);
    transform: translateY(-50%) scale(1.05);
}
.search-green-btn svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#searchResults {
    max-height: 340px;
    overflow-y: auto;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #fff;
}
#searchResults p {
    color: #9ca3af;
    text-align: center;
    padding: 28px 16px;
    font-size: 15px;
    margin: 0;
}
.search-result-item { border-bottom: 1px solid #f3f4f6; }
.search-result-item:last-child { border-bottom: none; }
.search-result-item a {
    display: block;
    padding: 14px 18px;
    color: var(--search-green-text);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.15s, color 0.15s, padding-left 0.15s;
}
.search-result-item a:hover {
    background: #f5f3ff;   /* light purple bg */
    color: #bc8cfa;        /* normal purple text */
    padding-left: 22px;
}

#searchResults::-webkit-scrollbar { width: 8px; }
#searchResults::-webkit-scrollbar-track { background: #f9fafb; border-radius: 4px; }
#searchResults::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }
#searchResults::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

.search-green-btn {
  pointer-events: auto !important;
  z-index: 10000 !important;
  position: absolute; /* ← 'relative' ni 'absolute' ki change cheyyi */
}

