/* ═══════════════════════════════════════════════════════════════════════════
   VIRTUAL PET WORLD - ULTRA PREMIUM UI (AWARD WINNING EDITION)
   ═══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Rajdhani:wght@500;600;700&display=swap');

:root {
    /* Core Palette - Deep Space & Neon */
    --bg-deep: #030014;
    --bg-surface: #0f0c29;
    
    --primary: #00f3ff;
    --primary-glow: rgba(0, 243, 255, 0.5);
    --secondary: #bc13fe;
    --secondary-glow: rgba(188, 19, 254, 0.5);
    --accent: #ff00aa;
    --accent-glow: rgba(255, 0, 170, 0.5);
    
    --success: #00ff9d;
    --warning: #ffcc00;
    --danger: #ff2a6d;
    
    /* Glass & Materials */
    --glass-surface: rgba(15, 12, 41, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-highlight: rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    
    /* Typography */
    --font-display: 'Rajdhani', sans-serif;
    --font-body: 'Outfit', sans-serif;
    
    /* Dimensions */
    --sidebar-width: 260px;
    --header-height: 80px;
    --mobile-nav-height: 70px;
    --border-radius: 24px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-deep);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    font-size: 16px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ADVANCED BACKGROUND ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════════ */

.bg-animation {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(135deg, #030014 0%, #0f0c29 50%, #1a0a3e 100%);
    overflow: hidden;
}

/* Subtle glow effects - not animated to avoid spinner appearance */
.bg-animation::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(188, 19, 254, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 243, 255, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.bg-animation::after {
    display: none;
}

/* Grid Overlay */
.floating-shapes {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    transform: perspective(500px) rotateX(60deg) translateY(-100px) scale(2);
    animation: gridMove 20s linear infinite;
    opacity: 0.5;
}

/* Grid animation */
@keyframes gridMove {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0) scale(2); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(50px) scale(2); }
}

/* Star Field - static stars for subtle effect */
.stars {
    position: absolute;
    inset: 0;
    background: transparent;
    pointer-events: none;
}

.stars::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(1px 1px at 100px 50px, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 200px 150px, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 300px 250px, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 400px 100px, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 500px 300px, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 600px 200px, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 700px 350px, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 800px 50px, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 150px 400px, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 350px 500px, rgba(255,255,255,0.3), transparent);
    background-size: 1000px 600px;
}

@keyframes starScroll {
    from { transform: translateY(0); }
    to { transform: translateY(-50px); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   GLASSMORPHISM 2.0 COMPONENTS
   ═══════════════════════════════════════════════════════════════════════════ */

.glass-panel {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
}

/* Shine Effect */
.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: 0.5s;
    pointer-events: none;
}

.glass-panel:hover::before {
    left: 100%;
    transition: 0.5s;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TYPOGRAPHY & HEADINGS
   ═══════════════════════════════════════════════════════════════════════════ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
}

.gradient-text {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LAYOUT & NAVIGATION
   ═══════════════════════════════════════════════════════════════════════════ */

.sidebar {
    position: fixed;
    left: 20px;
    top: 20px;
    bottom: 20px;
    width: var(--sidebar-width);
    border-radius: var(--border-radius);
    z-index: 50;
    display: flex;
    flex-direction: column;
    padding: 30px 20px;
    gap: 20px;
}

.top-nav {
    position: fixed;
    top: 20px;
    left: calc(var(--sidebar-width) + 40px);
    right: 20px;
    height: var(--header-height);
    border-radius: var(--border-radius);
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
}

.main-content {
    margin-left: calc(var(--sidebar-width) + 40px);
    margin-top: calc(var(--header-height) + 40px);
    margin-right: 20px;
    padding-bottom: 40px;
    min-height: calc(100vh - var(--header-height) - 60px);
}

/* Nav Buttons */
.nav-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.nav-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.1);
}

.nav-btn.active {
    background: linear-gradient(90deg, rgba(0, 243, 255, 0.1), transparent);
    color: var(--primary);
    border-left: 3px solid var(--primary);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.2);
}

.nav-btn i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    filter: drop-shadow(0 0 5px currentColor);
}

/* ═══════════════════════════════════════════════════════════════════════════
   PET CARDS & INTERACTIVE ELEMENTS
   ═══════════════════════════════════════════════════════════════════════════ */

.content-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.active-pet-card {
    display: grid;
    grid-template-columns: 350px 1fr;
    grid-template-rows: auto auto 1fr;
    grid-template-areas: 
        "display xp"
        "display stats"
        "display actions";
    gap: 30px;
    padding: 40px;
    background: linear-gradient(160deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    align-items: start;
}

.pet-display { grid-area: display; display: flex; flex-direction: column; align-items: center; }
.pet-xp-bar { grid-area: xp; }
.pet-stats { grid-area: stats; }
.pet-actions { grid-area: actions; align-self: end; }

.pet-sprite-container {
    width: 100%;
    height: 300px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
}

.pet-emoji-large {
    font-size: 10rem;
    filter: drop-shadow(0 0 30px rgba(0, 243, 255, 0.3));
    animation: float 6s ease-in-out infinite;
}

.pet-sprite {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(0, 243, 255, 0.3));
    animation: float 6s ease-in-out infinite;
}

.pet-sprite-container::after {
    content: '';
    position: absolute;
    bottom: -20px;
    width: 60%;
    height: 20px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.5) 0%, transparent 70%);
    filter: blur(5px);
    animation: shadowPulse 6s ease-in-out infinite;
}

@keyframes shadowPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(0.8); opacity: 0.3; }
}

/* Stats Bars */
.stat-row {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: grid;
    grid-template-columns: 120px 1fr 60px;
    align-items: center;
    gap: 20px;
    transition: transform 0.2s;
}

.stat-row:hover {
    transform: scale(1.02);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.stat-bar-container {
    height: 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
}

.stat-bar {
    height: 100%;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.stat-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.4) 50%, 
        rgba(255,255,255,0) 100%);
    transform: skewX(-20deg) translateX(-150%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% { transform: skewX(-20deg) translateX(150%); }
}

.stat-bar.health { background: linear-gradient(90deg, #ff2a6d, #ff6b6b); box-shadow: 0 0 10px rgba(255, 42, 109, 0.5); }
.stat-bar.hunger { background: linear-gradient(90deg, #ffcc00, #ff9500); box-shadow: 0 0 10px rgba(255, 204, 0, 0.5); }
.stat-bar.happiness { background: linear-gradient(90deg, #bc13fe, #d56aff); box-shadow: 0 0 10px rgba(188, 19, 254, 0.5); }
.stat-bar.energy { background: linear-gradient(90deg, #00f3ff, #0088ff); box-shadow: 0 0 10px rgba(0, 243, 255, 0.5); }

/* Action Buttons */
.pet-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.action-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #fff;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, var(--primary-glow), transparent 70%);
    opacity: 0;
    transition: 0.3s;
}

.action-btn:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.2);
}

.action-btn:hover::before { opacity: 0.2; }

.action-btn i {
    font-size: 2rem;
    background: linear-gradient(135deg, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* ═══════════════════════════════════════════════════════════════════════════
   COLLECTION & GRID ITEMS
   ═══════════════════════════════════════════════════════════════════════════ */

.pets-grid, .shop-grid, .inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

.pet-card, .shop-item, .inventory-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
}

.pet-card:hover, .shop-item:hover, .inventory-item:hover {
    transform: translateY(-10px) rotateX(5deg);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 243, 255, 0.2);
    z-index: 10;
}

.pet-card.active {
    border: 2px solid var(--primary);
    box-shadow: 0 0 30px var(--primary-glow);
    background: rgba(0, 243, 255, 0.05);
}

/* ═══════════════════════════════════════════════════════════════════════════
   BATTLE ARENA
   ═══════════════════════════════════════════════════════════════════════════ */

.battle-arena {
    background: radial-gradient(circle at center, rgba(20, 0, 50, 0.8), rgba(0, 0, 0, 0.9));
    border: 1px solid var(--secondary);
    box-shadow: 0 0 50px rgba(188, 19, 254, 0.2);
}

.vs-badge {
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 900;
    background: linear-gradient(to bottom, #ff2a6d, #ff0000);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(255, 42, 109, 0.8));
    animation: pulse 1s infinite;
}

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

.move-btn {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s;
}

.move-btn:hover {
    transform: scale(1.1);
    z-index: 10;
}

.move-btn.attack:hover { border-color: var(--danger); box-shadow: 0 0 20px var(--danger); }
.move-btn.defend:hover { border-color: var(--primary); box-shadow: 0 0 20px var(--primary); }
.move-btn.special:hover { border-color: var(--warning); box-shadow: 0 0 20px var(--warning); }

/* ═══════════════════════════════════════════════════════════════════════════
   UTILITIES & MOBILE
   ═══════════════════════════════════════════════════════════════════════════ */

.hidden { display: none !important; }

.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge.rarity.common { background: #94a3b8; color: #000; }
.badge.rarity.uncommon { background: #00ff9d; color: #000; box-shadow: 0 0 10px rgba(0, 255, 157, 0.4); }
.badge.rarity.rare { background: #00f3ff; color: #000; box-shadow: 0 0 10px rgba(0, 243, 255, 0.4); }
.badge.rarity.epic { background: #bc13fe; color: #fff; box-shadow: 0 0 15px rgba(188, 19, 254, 0.6); }
.badge.rarity.legendary { background: linear-gradient(135deg, #ffcc00, #ff6b00); color: #000; box-shadow: 0 0 20px rgba(255, 204, 0, 0.6); animation: glowPulse 2s infinite; }

/* Mobile Responsive */
@media (max-width: 768px) {
    :root {
        --sidebar-width: 0px;
        --header-height: 60px;
    }

    .sidebar { display: none !important; }
    
    .top-nav {
        left: 0;
        right: 0;
        top: 0;
        border-radius: 0;
        background: rgba(3, 0, 20, 0.95);
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .main-content {
        margin: calc(var(--header-height) + 20px) 16px 100px 16px;
        padding: 0;
    }

    .mobile-nav {
        display: flex !important;
        position: fixed;
        bottom: 20px;
        left: 20px;
        right: 20px;
        height: 70px;
        background: rgba(15, 12, 41, 0.9);
        backdrop-filter: blur(20px);
        border-radius: 20px;
        border: 1px solid rgba(255,255,255,0.1);
        justify-content: space-around;
        align-items: center;
        z-index: 100;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }
    
    .mobile-nav .hamburger-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 8px 12px;
        background: transparent;
        border: none;
        color: rgba(255, 255, 255, 0.6);
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    .mobile-nav .hamburger-btn i {
        font-size: 1.2rem;
    }
    
    .mobile-nav .hamburger-btn span {
        font-size: 0.65rem;
        text-transform: uppercase;
        font-weight: 500;
    }
    
    .mobile-nav .hamburger-btn:hover,
    .mobile-nav .hamburger-btn:active {
        color: var(--primary);
    }
    
    .mobile-nav .nav-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 8px 12px;
        background: transparent;
        border: none;
        color: rgba(255, 255, 255, 0.6);
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    .mobile-nav .nav-btn i {
        font-size: 1.2rem;
    }
    
    .mobile-nav .nav-btn span {
        font-size: 0.65rem;
        text-transform: uppercase;
        font-weight: 500;
    }
    
    .mobile-nav .nav-btn:hover,
    .mobile-nav .nav-btn.active {
        color: var(--primary);
    }

    /* Mobile Sidebar Overlay */
    .mobile-sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        z-index: 150;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .mobile-sidebar-overlay.active {
        display: block;
        opacity: 1;
    }
    
    /* Mobile Sidebar */
    .mobile-sidebar {
        display: block;
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100%;
        background: rgba(15, 12, 41, 0.98);
        backdrop-filter: blur(20px);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 200;
        transition: right 0.3s ease;
        overflow-y: auto;
    }
    
    .mobile-sidebar.active {
        right: 0;
    }
    
    .mobile-sidebar-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .mobile-sidebar-header .sidebar-brand {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .mobile-sidebar-header .logo {
        font-size: 1.5rem;
    }
    
    .mobile-sidebar-header .brand-text {
        font-weight: 700;
        font-size: 1.1rem;
        color: #fff;
    }
    
    .close-sidebar-btn {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.1);
        border: none;
        border-radius: 50%;
        color: #fff;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    .close-sidebar-btn:hover {
        background: rgba(255, 255, 255, 0.2);
    }
    
    .mobile-sidebar-nav {
        padding: 15px;
    }
    
    .mobile-sidebar-nav .nav-btn {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
        padding: 14px 18px;
        margin-bottom: 6px;
        background: transparent;
        border: none;
        border-radius: 12px;
        color: rgba(255, 255, 255, 0.7);
        font-size: 0.95rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
        text-align: left;
    }
    
    .mobile-sidebar-nav .nav-btn i {
        width: 24px;
        text-align: center;
        font-size: 1rem;
    }
    
    .mobile-sidebar-nav .nav-btn:hover {
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
    }
    
    .mobile-sidebar-nav .nav-btn.active {
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        color: #000;
    }
    
    .sidebar-divider {
        height: 1px;
        background: rgba(255, 255, 255, 0.1);
        margin: 15px 0;
    }

    .active-pet-card {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .pet-sprite-container {
        width: 180px;
        height: 180px;
        margin: 0 auto;
    }

    .pet-actions {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-stats .stat-item { display: none; }
    .nav-stats .stat-item:first-child { display: flex; }
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0118 0%, #1a0a2e 50%, #0d0221 100%);
    z-index: 9999;
}

.loading-screen.hidden {
    display: none !important;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loading-pet {
    font-size: 4rem;
    animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.loading-spinner {
    width: 80px;
    height: 80px;
    border: 4px solid transparent;
    border-top-color: var(--primary);
    border-right-color: var(--secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    filter: drop-shadow(0 0 10px var(--primary));
}

.loading-screen p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

/* Login Screen */
.login-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    z-index: 9998;
}

.login-container {
    text-align: center;
    padding: 40px 60px;
    max-width: 400px;
}

.login-header {
    margin-bottom: 30px;
}

.login-logo {
    font-size: 4rem;
    margin-bottom: 20px;
}

.login-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-header p {
    color: rgba(255, 255, 255, 0.6);
}

/* ═══════════════════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════════════════ */

button {
    cursor: pointer;
    font-family: inherit;
    background: none;
    border: none;
    outline: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #000;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 243, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 243, 255, 0.4);
}

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   NAV BRAND & STATS
   ═══════════════════════════════════════════════════════════════════════════ */

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    font-size: 1.8rem;
}

.brand-text {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-icon {
    font-size: 1.2rem;
}

.stat-value {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.streak-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.2), rgba(255, 204, 0, 0.2));
    border: 1px solid rgba(255, 204, 0, 0.3);
    border-radius: 20px;
    animation: glowPulse 2s infinite;
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 204, 0, 0.3); }
    50% { box-shadow: 0 0 20px rgba(255, 204, 0, 0.5); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════════════════════════════════ */

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.sidebar-footer {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.partner-toggle-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.toggle-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 26px;
    transition: 0.3s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(24px);
}

.admin-btn {
    background: linear-gradient(135deg, rgba(255, 42, 109, 0.1), rgba(188, 19, 254, 0.1));
    border: 1px solid rgba(255, 42, 109, 0.3) !important;
}

.admin-btn.active {
    border-color: var(--danger) !important;
    box-shadow: 0 0 20px rgba(255, 42, 109, 0.3);
}

/* ═══════════════════════════════════════════════════════════════════════════
   TAB CONTENT
   ═══════════════════════════════════════════════════════════════════════════ */

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION HEADERS
   ═══════════════════════════════════════════════════════════════════════════ */

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
}

.count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #000;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PET INFO & XP BAR
   ═══════════════════════════════════════════════════════════════════════════ */

.pet-info {
    text-align: center;
    margin-top: 20px;
}

.pet-info h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.pet-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.species-badge {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.rarity-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.rarity-badge.common { background: #94a3b8; color: #000; }
.rarity-badge.uncommon { background: #00ff9d; color: #000; }
.rarity-badge.rare { background: #00f3ff; color: #000; }
.rarity-badge.epic { background: #bc13fe; color: #fff; }
.rarity-badge.legendary { 
    background: linear-gradient(135deg, #ffcc00, #ff6b00); 
    color: #000;
    animation: glowPulse 2s infinite;
}

.level-badge {
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #000;
}

.pet-xp-bar {
    position: relative;
    height: 30px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.xp-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 15px;
    transition: width 0.5s ease;
    box-shadow: 0 0 20px var(--primary-glow);
}

.xp-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.mood-bubble {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
}

.pet-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.stat-label i {
    width: 20px;
    text-align: center;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PET COLLECTION GRID
   ═══════════════════════════════════════════════════════════════════════════ */

.pet-collection {
    padding: 30px;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.5);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-state p {
    font-size: 1.1rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE NAV (HIDDEN BY DEFAULT ON DESKTOP)
   ═══════════════════════════════════════════════════════════════════════════ */

.mobile-nav {
    display: none;
}

/* Mobile sidebar hidden on desktop, shown in mobile media query */
@media (min-width: 769px) {
    .mobile-sidebar,
    .mobile-sidebar-overlay {
        display: none !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════════ */

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

.floating {
    animation: float 6s ease-in-out infinite;
}

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

/* ═══════════════════════════════════════════════════════════════════════════
   SHOP & INVENTORY
   ═══════════════════════════════════════════════════════════════════════════ */

.shop-cats, .inv-cats {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.shop-cat, .inv-cat {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    transition: all 0.3s;
}

.shop-cat:hover, .inv-cat:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.shop-cat.active, .inv-cat.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #000;
    border-color: transparent;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HOME TAB
   ═══════════════════════════════════════════════════════════════════════════ */

.home-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.home-stats {
    display: flex;
    gap: 20px;
}

.home-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
}

.room-tabs {
    display: flex;
    gap: 10px;
}

.room-tab {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    transition: all 0.3s;
}

.room-tab:hover {
    background: rgba(255, 255, 255, 0.1);
}

.room-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #000;
    border-color: transparent;
}

/* room-display, room-canvas styles consolidated below in Home Tab section */

.room-display {
    padding: 30px;
    margin-bottom: 20px;
}

.room-canvas {
    position: relative;
    width: 100%;
    height: 350px;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.4) 100%);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
}

.room-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.6;
}

.furniture-container {
    position: absolute;
    inset: 0;
}

.room-pet {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 4rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
    z-index: 10;
    animation: float-pet 3s ease-in-out infinite;
}

@keyframes float-pet {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

.room-info {
    text-align: center;
}

.room-info h3 {
    margin-bottom: 5px;
}

.room-info p {
    color: rgba(255, 255, 255, 0.6);
}

.furniture-panel {
    padding: 30px;
}

.furniture-panel h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.furniture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BATTLE TAB
   ═══════════════════════════════════════════════════════════════════════════ */

.battle-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.battle-stat {
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.battle-arena {
    padding: 40px;
    border-radius: var(--border-radius);
    position: relative;
}

.arena-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.battle-field {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 40px;
    margin-bottom: 30px;
}

.battle-pet {
    text-align: center;
}

.battle-pet img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 15px;
}

.hp-bar {
    height: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 10px;
}

.hp-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff2a6d, #ff6b6b);
    border-radius: 10px;
    transition: width 0.3s;
}

.battle-log {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 20px;
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 20px;
    font-family: monospace;
    font-size: 0.9rem;
    line-height: 1.8;
}

.battle-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.battle-type-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.battle-type-btn {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
    transition: all 0.3s;
}

.battle-type-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.battle-type-btn.active {
    background: linear-gradient(135deg, var(--danger), var(--secondary));
    border-color: transparent;
}

.battle-moves {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   DAYCARE TAB
   ═══════════════════════════════════════════════════════════════════════════ */

.daycare-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.daycare-pets {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   EVENTS TAB
   ═══════════════════════════════════════════════════════════════════════════ */

.events-container {
    display: grid;
    gap: 20px;
}

.event-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s;
}

.event-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
}

.event-icon {
    font-size: 3rem;
}

.event-info h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.event-info p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   INVENTORY TAB
   ═══════════════════════════════════════════════════════════════════════════ */

.partner-features {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.inventory-view-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ADMIN TAB
   ═══════════════════════════════════════════════════════════════════════════ */

.admin-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
}

.admin-section h4 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.admin-form input, .admin-form select, .admin-form textarea {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    color: #fff;
    font-size: 1rem;
}

.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

/* ═══════════════════════════════════════════════════════════════════════════
   MODALS
   ═══════════════════════════════════════════════════════════════════════════ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: var(--glass-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.modal-close:hover {
    background: var(--danger);
}

/* ═══════════════════════════════════════════════════════════════════════════
   TOASTS
   ═══════════════════════════════════════════════════════════════════════════ */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: var(--glass-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    animation: slideInRight 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
    backdrop-filter: blur(20px);
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    to { opacity: 0; transform: translateX(50px); }
}

.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.warning { border-left: 3px solid var(--warning); }
.toast.info { border-left: 3px solid var(--primary); }

.toast-icon {
    font-size: 1.2rem;
}

.toast-message {
    font-size: 0.95rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BATTLE TAB - COMPREHENSIVE STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

.battle-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.battle-header h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    margin: 0;
}

.battle-stats {
    display: flex;
    gap: 20px;
}

.win-stat, .loss-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.win-stat { color: var(--success); }
.loss-stat { color: var(--danger); }

.battle-arena {
    padding: 30px;
    position: relative;
    min-height: 500px;
}

.battle-field {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
}

.battle-pet {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
}

.battle-pet.player-side {
    border: 2px solid rgba(0, 243, 255, 0.3);
}

.battle-pet.enemy-side {
    border: 2px solid rgba(255, 42, 109, 0.3);
}

.battle-sprite {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    filter: drop-shadow(0 0 20px rgba(255,255,255,0.2));
}

.battle-pet .pet-name {
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
}

.hp-bar-container {
    width: 100%;
    height: 12px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 6px;
    overflow: hidden;
}

.hp-bar {
    height: 100%;
    border-radius: 6px;
    transition: width 0.5s ease;
}

.hp-bar.player {
    background: linear-gradient(90deg, var(--primary), #0088ff);
    box-shadow: 0 0 10px var(--primary-glow);
}

.hp-bar.enemy {
    background: linear-gradient(90deg, var(--danger), #ff6b6b);
    box-shadow: 0 0 10px rgba(255, 42, 109, 0.5);
}

.hp-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.vs-badge {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(to bottom, var(--danger), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 0 15px rgba(255, 42, 109, 0.5));
}

.battle-log {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    padding: 20px;
    max-height: 150px;
    overflow-y: auto;
    margin-bottom: 25px;
    font-family: 'Outfit', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

.battle-log:empty::before {
    content: 'Battle log will appear here...';
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

.battle-controls {
    text-align: center;
}

.battle-controls h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.battle-type-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.battle-type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 25px 35px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.battle-type-btn i {
    font-size: 2rem;
}

.battle-type-btn:hover {
    transform: translateY(-5px);
    background: rgba(188, 19, 254, 0.1);
    border-color: var(--secondary);
    box-shadow: 0 10px 30px rgba(188, 19, 254, 0.2);
}

.battle-moves {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.move-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.move-btn i {
    font-size: 1.5rem;
}

.move-btn.attack:hover {
    border-color: var(--danger);
    box-shadow: 0 0 20px rgba(255, 42, 109, 0.3);
    background: rgba(255, 42, 109, 0.1);
}

.move-btn.special:hover {
    border-color: var(--warning);
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.3);
    background: rgba(255, 204, 0, 0.1);
}

.move-btn.defend:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
    background: rgba(0, 243, 255, 0.1);
}

.move-btn.item:hover {
    border-color: var(--success);
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.3);
    background: rgba(0, 255, 157, 0.1);
}

/* ═══════════════════════════════════════════════════════════════════════════
   HOME TAB - COMPREHENSIVE STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

.home-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.home-stats {
    display: flex;
    gap: 25px;
}

.home-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.home-stat i {
    color: var(--primary);
}

.home-stat strong {
    color: #fff;
    font-size: 1.2rem;
}

.room-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.room-tab {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.room-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #000;
    border-color: transparent;
}

.room-tab.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.room-tab.locked::after {
    content: ' 🔒';
}

/* room-display, room-canvas, room-bg, furniture-container styles are consolidated earlier */

.furniture-item {
    position: absolute;
    font-size: 2.5rem;
    transform: translate(-50%, -50%);
    cursor: move;
    transition: transform 0.2s;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.furniture-item:hover {
    transform: translate(-50%, -50%) scale(1.2);
}

/* room-pet, room-info styles are consolidated earlier */

.furniture-panel {
    padding: 25px;
}

.furniture-panel h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.furniture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
}

.furniture-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 2rem;
    cursor: grab;
    transition: all 0.3s;
    position: relative;
}

.furniture-slot:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    transform: scale(1.05);
}

.item-qty {
    position: absolute;
    bottom: 5px;
    right: 5px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 6px;
    border-radius: 4px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SHOP TAB STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

.shop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.shop-header h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    margin: 0;
}

.shop-cats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.shop-cat {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.shop-cat:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.shop-cat.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #000;
    border-color: transparent;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    padding: 25px;
}

.shop-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.shop-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.shop-item-emoji {
    font-size: 3rem;
    margin-bottom: 12px;
}

.shop-item-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.shop-item-price {
    color: var(--warning);
    font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════════════════
   DAYCARE TAB STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

.daycare-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.daycare-header h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    margin: 0;
}

.daycare-count {
    color: rgba(255, 255, 255, 0.7);
}

.daycare-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 25px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   EVENTS TAB STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

.events-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
    margin-bottom: 20px;
}

.events-header h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    margin: 0;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0 25px 25px;
}

.events-list:empty::before {
    content: 'No active events right now. Check back later!';
    display: block;
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.1rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SPACING & LAYOUT FIXES
   ═══════════════════════════════════════════════════════════════════════════ */

.content-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.active-pet-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    padding: 30px;
}

.pet-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.pet-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pet-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 25px;
}

.pet-collection {
    padding: 25px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Ensure empty states look nice */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    color: rgba(255, 255, 255, 0.5);
}

.empty-state.small {
    padding: 30px 15px;
}

.empty-state span, .empty-state i, .empty-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
    opacity: 0.5;
}

.empty-state p {
    font-size: 1rem;
    max-width: 300px;
    margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LOADING OVERLAY
   ═══════════════════════════════════════════════════════════════════════════ */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.loading-overlay.hidden {
    display: none !important;
}

.loading-overlay .loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BATTLE ITEMS MODAL
   ═══════════════════════════════════════════════════════════════════════════ */

.battle-items-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.battle-item-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.battle-item-option:hover {
    background: rgba(0, 243, 255, 0.1);
    border-color: var(--primary);
    transform: translateX(5px);
}

.battle-item-option .item-emoji {
    font-size: 2rem;
}

.battle-item-option .item-info {
    flex: 1;
}

.battle-item-option .item-name {
    font-weight: 600;
    margin-bottom: 3px;
}

.battle-item-option .item-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.battle-item-option .item-qty {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BOSS BATTLE EFFECTS
   ═══════════════════════════════════════════════════════════════════════════ */

.battle-arena.boss-mode {
    background: linear-gradient(180deg, rgba(139, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.4) 100%);
    border-color: rgba(255, 0, 0, 0.3);
    animation: boss-pulse 2s ease-in-out infinite;
}

@keyframes boss-pulse {
    0%, 100% { box-shadow: 0 0 30px rgba(255, 0, 0, 0.2); }
    50% { box-shadow: 0 0 50px rgba(255, 0, 0, 0.4); }
}

.boss-intro-effect {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255, 0, 0, 0.3), transparent);
    animation: boss-intro 1s ease-out forwards;
    pointer-events: none;
}

@keyframes boss-intro {
    0% { opacity: 1; transform: scale(0); }
    50% { opacity: 1; transform: scale(1.5); }
    100% { opacity: 0; transform: scale(2); }
}

.boss-phase-effect {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255, 100, 0, 0.5), transparent);
    animation: phase-change 0.8s ease-out forwards;
    pointer-events: none;
}

@keyframes phase-change {
    0% { opacity: 0; }
    30% { opacity: 1; }
    100% { opacity: 0; }
}

.boss-special-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    animation: boss-special 0.6s ease-out forwards;
    pointer-events: none;
}

@keyframes boss-special {
    0% { opacity: 1; transform: translate(-50%, -50%) scale(0.5); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.5); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(2); }
}

.boss-victory-effect {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.5), transparent);
    animation: boss-victory 1.5s ease-out forwards;
    pointer-events: none;
}

@keyframes boss-victory {
    0% { opacity: 0; }
    20% { opacity: 1; }
    100% { opacity: 0; }
}

/* Damage numbers with crit styling */
.damage-number.crit {
    font-size: 2rem;
    color: #ff4444;
    text-shadow: 0 0 10px #ff0000;
}

/* Buff effect */
.buff-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    transform: translate(-50%, -50%);
    border: 3px solid var(--primary);
    border-radius: 50%;
    animation: buff-pulse 0.5s ease-out forwards;
    pointer-events: none;
}

@keyframes buff-pulse {
    0% { opacity: 1; transform: translate(-50%, -50%) scale(0.5); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(2); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   CO-OP FEATURES
   ═══════════════════════════════════════════════════════════════════════════ */

.coop-panel {
    padding: 25px;
}

.coop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.coop-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.coop-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.coop-action-btn:hover {
    background: rgba(0, 243, 255, 0.1);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.coop-action-btn i {
    font-size: 2rem;
    color: var(--primary);
}

.coop-action-btn span {
    font-weight: 600;
}

.friend-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.friend-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.friend-item .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.friend-item .friend-info {
    flex: 1;
}

.friend-item .friend-name {
    font-weight: 600;
    margin-bottom: 3px;
}

.friend-item .friend-status {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.friend-item .friend-status.online {
    color: #4ade80;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ACHIEVEMENTS & QUESTS
   ═══════════════════════════════════════════════════════════════════════════ */

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.achievement-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.achievement-card.unlocked {
    border-color: rgba(255, 215, 0, 0.5);
    background: rgba(255, 215, 0, 0.05);
}

.achievement-card.unlocked .achievement-icon {
    color: #ffd700;
}

.achievement-icon {
    font-size: 2.5rem;
    opacity: 0.5;
}

.achievement-card.unlocked .achievement-icon {
    opacity: 1;
}

.achievement-info h4 {
    margin-bottom: 5px;
}

.achievement-info p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.achievement-progress {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.achievement-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.quests-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quest-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.quest-item.completed {
    opacity: 0.6;
    border-color: rgba(74, 222, 128, 0.5);
}

.quest-icon {
    font-size: 2rem;
}

.quest-info {
    flex: 1;
}

.quest-info h4 {
    margin-bottom: 5px;
}

.quest-info p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.quest-reward {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 20px;
    color: #ffd700;
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LEADERBOARD
   ═══════════════════════════════════════════════════════════════════════════ */

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.leaderboard-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.leaderboard-item.rank-1 {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.15), transparent);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.leaderboard-item.rank-2 {
    background: linear-gradient(90deg, rgba(192, 192, 192, 0.15), transparent);
    border: 1px solid rgba(192, 192, 192, 0.3);
}

.leaderboard-item.rank-3 {
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.15), transparent);
    border: 1px solid rgba(205, 127, 50, 0.3);
}

.leaderboard-rank {
    font-size: 1.3rem;
    font-weight: 700;
    width: 40px;
    text-align: center;
}

.leaderboard-item.rank-1 .leaderboard-rank { color: #ffd700; }
.leaderboard-item.rank-2 .leaderboard-rank { color: #c0c0c0; }
.leaderboard-item.rank-3 .leaderboard-rank { color: #cd7f32; }

.leaderboard-user {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.leaderboard-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
}

.leaderboard-name {
    font-weight: 600;
}

.leaderboard-score {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

/* Panel Headers */
.coop-header, .quests-header, .achievements-panel, .quests-panel {
    padding: 25px;
    margin-bottom: 20px;
}

.coop-header h2, .quests-header h2 {
    margin-bottom: 10px;
}

.coop-header p, .quests-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.quests-panel h3, .achievements-panel h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Selected state for items */
.battle-item-option.selected {
    background: rgba(0, 243, 255, 0.2);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}

/* Shop categories scrollable on mobile */
.shop-categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.shop-cat {
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.shop-cat:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.shop-cat.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #000;
    border-color: transparent;
    font-weight: 600;
}

/* Mobile responsive tweaks */
@media (max-width: 900px) {
    .active-pet-card {
        grid-template-columns: 1fr;
    }
    
    .pet-actions {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .battle-field {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .vs-badge {
        font-size: 2rem;
    }
    
    .battle-moves {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .coop-actions {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .shop-categories {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   INPUT & TEXTBOX STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

input[type="text"],
input[type="number"],
input[type="password"],
input[type="email"],
input[type="search"],
textarea,
select {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

input[type="text"]:hover,
input[type="number"]:hover,
input[type="password"]:hover,
input[type="email"]:hover,
input[type="search"]:hover,
textarea:hover,
select:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
    border-color: var(--primary);
    background: rgba(0, 243, 255, 0.05);
    box-shadow: 0 0 0 4px rgba(0, 243, 255, 0.15);
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

textarea {
    min-height: 100px;
    resize: vertical;
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23ffffff' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}

select option {
    background: #1a1a2e;
    color: #fff;
    padding: 10px;
}

/* Input with icon wrapper */
.input-wrapper {
    position: relative;
}

.input-wrapper input {
    padding-left: 48px;
}

.input-wrapper .input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

.input-wrapper input:focus + .input-icon,
.input-wrapper input:focus ~ .input-icon {
    color: var(--primary);
}

/* Input group with button */
.input-group {
    display: flex;
    gap: 10px;
}

.input-group input {
    flex: 1;
    border-radius: 12px 0 0 12px;
}

.input-group .btn {
    border-radius: 0 12px 12px 0;
    white-space: nowrap;
}

/* Form label */
.form-label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: 500;
}

/* Form group */
.form-group {
    margin-bottom: 20px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CO-OP LEADERBOARD STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.leaderboard-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.leaderboard-item.top-1 {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.05));
    border-color: rgba(255, 215, 0, 0.3);
}

.leaderboard-item.top-2 {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.15), rgba(192, 192, 192, 0.05));
    border-color: rgba(192, 192, 192, 0.25);
}

.leaderboard-item.top-3 {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.15), rgba(205, 127, 50, 0.05));
    border-color: rgba(205, 127, 50, 0.25);
}

.leaderboard-rank {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.leaderboard-item.top-1 .leaderboard-rank {
    background: linear-gradient(135deg, #ffd700, #ffb700);
    color: #000;
}

.leaderboard-item.top-2 .leaderboard-rank {
    background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
    color: #000;
}

.leaderboard-item.top-3 .leaderboard-rank {
    background: linear-gradient(135deg, #cd7f32, #b8722d);
    color: #000;
}

.leaderboard-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.leaderboard-item.top-1 .leaderboard-avatar {
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.leaderboard-info {
    flex: 1;
    min-width: 0;
}

.leaderboard-name {
    font-weight: 600;
    color: #fff;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.leaderboard-pet {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 5px;
}

.leaderboard-stats {
    text-align: right;
}

.leaderboard-value {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
}

.leaderboard-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
}

.leaderboard-empty {
    text-align: center;
    padding: 30px;
    color: rgba(255, 255, 255, 0.4);
}

.leaderboard-empty i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
    opacity: 0.5;
}

/* Leaderboard tabs */
.leaderboard-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.leaderboard-tab {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.leaderboard-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #000;
    border-color: transparent;
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FRIENDS LIST STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

.friend-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.friend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
}

.friend-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.friend-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.friend-info {
    flex: 1;
    min-width: 0;
}

.friend-name {
    font-weight: 600;
    color: #fff;
    font-size: 0.95rem;
}

.friend-status {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 5px;
}

.friend-status.online::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.friend-actions {
    display: flex;
    gap: 6px;
}

.friend-action-btn {
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.2s ease;
}

.friend-action-btn:hover {
    background: var(--primary);
    color: #000;
}

.pending-request {
    border-color: rgba(255, 204, 0, 0.3);
    background: rgba(255, 204, 0, 0.05);
}
