/* Night Club City - Modern UI Styles */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&display=swap');

:root {
    --primary-gold: #ffd700;
    --dark-bg: #0a0a12;
    --panel-bg: linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%);
    --button-green: #10b981;
    --button-red: #ef4444;
    --button-blue: #3b82f6;
    --button-purple: #8b5cf6;
    --button-cyan: #06b6d4;
    --button-orange: #f59e0b;
    --button-pink: #ec4899;
    --text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    --glow-cyan: 0 0 20px rgba(6, 182, 212, 0.4);
    --glow-gold: 0 0 20px rgba(255, 215, 0, 0.4);
    --glass-bg: rgba(15, 15, 25, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --font-primary: 'Orbitron', sans-serif;
    --primary: #6c5ce7;
    --secondary: #00d2d3;
    --accent: #fd79a8;
    --gold: #ffd32a;
    --dark: #0a0a0f;
    --glass-bg: rgba(20, 20, 35, 0.85);
    --glass-border: rgba(255, 255, 255, 0.08);
    --neon-pink: #ec4899;
    --neon-blue: #3b82f6;
    --neon-purple: #a855f7;
    --neon-amber: #f59e0b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Orbitron', sans-serif !important;
}

body {
    overflow: hidden;
    background-color: var(--dark-bg);
    font-family: 'Orbitron', sans-serif !important;
    -webkit-user-select: none;
    user-select: none;
    touch-action: none;
    color: #fff;
}

/* ================== CANVAS ================== */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: radial-gradient(ellipse at center, #1a1a2a 0%, #0a0a15 100%);
}

#canvas-container canvas {
    pointer-events: auto;
}

/* ================== UI LAYER ================== */
#ui-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 500;
}

/* Enable pointer events on interactive UI elements */
#ui-layer button,
#ui-layer [onclick],
#ui-layer .glass-panel,
#ui-layer .gradient-cash,
#ui-layer .gradient-gems,
#ui-layer .gradient-level,
#ui-layer .gradient-party,
#ui-layer .icon-btn {
    pointer-events: auto;
}

#ui-layer > div {
    pointer-events: auto;
}

/* ================== NEON EFFECTS ================== */
.neon-text-pink { text-shadow: 0 0 10px var(--neon-pink), 0 0 20px var(--neon-pink); }
.neon-text-blue { text-shadow: 0 0 10px var(--neon-blue), 0 0 20px var(--neon-blue); }
.neon-text-amber { text-shadow: 0 0 10px var(--neon-amber), 0 0 20px var(--neon-amber); }
.neon-text-green { text-shadow: 0 0 10px #10b981, 0 0 20px #10b981; }
.neon-icon-pink { filter: drop-shadow(0 0 5px var(--neon-pink)); }
.neon-icon-blue { filter: drop-shadow(0 0 5px var(--neon-blue)); }
.neon-icon-amber { filter: drop-shadow(0 0 5px var(--neon-amber)); }

/* Glass Button with shine effect */
.glass-button {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.15);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.glass-button::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: 0.5s;
}
.glass-button:hover::before { left: 100%; }
.glass-button:hover {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}
.glass-button:active { transform: scale(0.95) translateY(0); }

/* Party Button Animation */
@keyframes pulse-glow-amber {
    0%, 100% { box-shadow: 0 0 20px rgba(245, 158, 11, 0.4), inset 0 0 10px rgba(245, 158, 11, 0.2); }
    50% { box-shadow: 0 0 40px rgba(245, 158, 11, 0.7), inset 0 0 20px rgba(245, 158, 11, 0.4); }
}
.animate-party { animation: pulse-glow-amber 2s infinite; }

/* Float Up Animation for notifications */
@keyframes floatUp {
    0% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-80px) scale(1.2); }
}
.floater { animation: floatUp 2s forwards ease-out; }

/* ================== TOP HUD BAR ================== */
.hud-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 15px;
    pointer-events: none;
}

.hud-left {
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: auto;
}

.hud-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: auto;
}

.hud-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    pointer-events: auto;
}

/* Player Level Badge - Modern */
.level-badge {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 16px;
    width: 50px;
    height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.level-badge .level-num {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.level-badge .level-label {
    font-size: 0.55rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Resource Bars - Modern Glass */
.resource-bar {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    height: 36px;
    min-width: 120px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 8px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--glass-shadow);
    transition: all 0.2s ease;
}

.resource-bar:hover {
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-1px);
}

.resource-bar .icon {
    font-size: 1.1rem;
}

.resource-bar .value {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}

.resource-bar.cash {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(16, 185, 129, 0.1) 100%);
    border-color: rgba(34, 197, 94, 0.3);
}

.resource-bar.cash .value {
    color: #4ade80;
}

.resource-bar.coins {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(99, 102, 241, 0.1) 100%);
    border-color: rgba(139, 92, 246, 0.3);
    cursor: pointer;
}

.resource-bar.coins .value {
    color: #a78bfa;
}

.resource-bar.coins .add-btn {
    background: rgba(139, 92, 246, 0.3);
    border-radius: 6px;
    padding: 2px 8px;
    font-weight: 700;
    color: #c4b5fd;
    font-size: 0.8rem;
}

/* Club Name Banner - Modern */
.club-banner {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 10px 24px;
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--glass-shadow);
    cursor: pointer;
    transition: all 0.2s ease;
}

.club-banner:hover {
    border-color: rgba(255,255,255,0.2);
    transform: scale(1.02);
}

.club-banner .club-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    display: block;
}

.club-banner .club-tier {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    margin-top: 2px;
}

/* Time Display */
.time-display {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

.time-display .game-time {
    font-weight: 600;
    color: #fff;
}

/* Party Button - Modern */
.party-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    border-radius: 14px;
    padding: 12px 20px;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
    transition: all 0.2s ease;
    text-shadow: var(--text-shadow);
    display: flex;
    align-items: center;
    gap: 6px;
    animation: pulse-glow-amber 2s infinite;
}

.party-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #e65100, 0 8px 20px rgba(0,0,0,0.5);
}

.party-btn:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 #e65100;
}

.party-btn .star {
    font-size: 1.2rem;
}

/* ================== SIDE PANELS ================== */
.side-panel {
    position: fixed;
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: auto;
}

.side-panel.left {
    left: 15px;
}

.side-panel.right {
    right: 15px;
}

.side-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    width: 50px;
    height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: var(--glass-shadow);
}

.side-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
}

.side-btn:active {
    transform: scale(0.95);
}

.side-btn .icon {
    font-size: 1.2rem;
}

.side-btn .label {
    font-size: 0.55rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    font-weight: 600;
}

.side-btn.active {
    background: linear-gradient(180deg, var(--button-green) 0%, #2e7d32 100%);
    border-color: #81c784;
}

/* ================== BOTTOM TOOLBAR - Modern ================== */
.hud-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 20px;
    pointer-events: none;
}

.toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: auto;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 10px 16px;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: var(--glass-shadow);
}

.toolbar-btn {
    background: transparent;
    border: none;
    border-radius: 14px;
    width: 60px;
    height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.toolbar-btn:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.toolbar-btn:active {
    transform: scale(0.95);
}

.toolbar-btn .icon {
    font-size: 1.5rem;
    margin-bottom: 2px;
}

.toolbar-btn .label {
    font-size: 0.6rem;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.toolbar-btn.shop {
    color: #c084fc;
}
.toolbar-btn.shop:hover { background: rgba(192, 132, 252, 0.2); }

.toolbar-btn.decor {
    color: #22d3ee;
}
.toolbar-btn.decor:hover { background: rgba(34, 211, 238, 0.2); }

.toolbar-btn.staff {
    color: #fb923c;
}
.toolbar-btn.staff:hover { background: rgba(251, 146, 60, 0.2); }

.toolbar-btn.dj {
    color: #a78bfa;
}
.toolbar-btn.dj:hover { background: rgba(167, 139, 250, 0.2); }

.toolbar-btn.friends {
    color: #4ade80;
}
.toolbar-btn.friends:hover { background: rgba(74, 222, 128, 0.2); }

.toolbar-btn.more {
    color: #94a3b8;
}
.toolbar-btn.more:hover { background: rgba(148, 163, 184, 0.2); }

/* Center Action Button - Modern */
.center-action {
    width: 70px !important;
    height: 70px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
    border: 3px solid rgba(255,255,255,0.3) !important;
    margin: 0 8px;
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.5);
}

.center-action:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 6px 30px rgba(251, 191, 36, 0.6);
}

.center-action .icon {
    font-size: 1.8rem;
}

.center-action .label {
    display: none;
}

/* ================== STAT BOXES - Modern ================== */
.stat-box-container {
    position: fixed;
    bottom: 110px;
    display: flex;
    gap: 10px;
    pointer-events: auto;
}

.stat-box-container.left {
    left: 20px;
}

.stat-box-container.right {
    right: 20px;
}

.stat-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 12px 16px;
    min-width: 70px;
    text-align: center;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: var(--glass-shadow);
    transition: all 0.2s ease;
}

.stat-box:hover {
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.stat-box .stat-icon {
    font-size: 1.1rem;
    margin-bottom: 4px;
    display: block;
}

.stat-box .stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    display: block;
}

.stat-box .stat-label {
    font-size: 0.6rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.stat-box.warning {
    border-color: rgba(239, 68, 68, 0.5);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.1) 100%);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: var(--glass-shadow); }
    50% { transform: scale(1.02); box-shadow: 0 8px 32px rgba(239, 68, 68, 0.3); }
}

/* ================== EDIT MODE CONTROLS ================== */
#edit-controls {
    position: fixed;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    gap: 15px;
    pointer-events: auto;
}

.edit-btn {
    background: linear-gradient(180deg, #2196f3 0%, #1565c0 100%);
    border: 3px solid #64b5f6;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    box-shadow: 0 4px 0 #0d47a1;
    transition: transform 0.1s;
}

.edit-btn:active {
    transform: translateY(4px);
    box-shadow: none;
}

.edit-btn.delete {
    background: linear-gradient(180deg, #f44336 0%, #c62828 100%);
    border-color: #ef9a9a;
    box-shadow: 0 4px 0 #b71c1c;
}

.edit-btn.confirm {
    background: linear-gradient(180deg, #4caf50 0%, #2e7d32 100%);
    border-color: #a5d6a7;
    box-shadow: 0 4px 0 #1b5e20;
}

/* ================== NOTIFICATIONS - Modern ================== */
#notification-area {
    position: fixed;
    top: 12%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    pointer-events: none;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notification {
    display: inline-block;
    background: var(--glass-bg);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: #fff;
    padding: 12px 24px;
    border-radius: 14px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    animation: notifyIn 0.3s ease-out, notifyOut 0.5s ease-in 2.5s forwards;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.notification.error {
    border-color: rgba(239, 68, 68, 0.4);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, var(--glass-bg) 100%);
}

.notification.success {
    border-color: rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, var(--glass-bg) 100%);
}

.notification.info {
    border-color: rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, var(--glass-bg) 100%);
}

@keyframes notifyIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes notifyOut {
    to { transform: translateY(-30px); opacity: 0; }
}

/* ================== MODALS - Modern ================== */
.modal-overlay {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
}
.modal-overlay.hidden {
    display: none !important;
}
.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(180deg, rgba(30, 30, 50, 0.95) 0%, rgba(15, 15, 30, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 28px;
    text-align: center;
    color: #fff;
    max-width: 500px;
    width: 95%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.05) inset;
    animation: modalIn 0.3s ease-out;
}

.modal-content.modal-large {
    max-width: 650px;
}

.modal-content.modal-small {
    max-width: 400px;
}

@keyframes modalIn {
    from { transform: scale(0.9) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

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

.modal-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.modal-close {
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 12px;
    width: 40px;
    height: 40px;
    color: rgba(255,255,255,0.6);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.modal-close:active {
    transform: scale(0.95);
}

/* Shop Grid */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.shop-item {
    background: linear-gradient(180deg, #2d2d4a 0%, #1a1a2e 100%);
    border: 2px solid #444;
    border-radius: 12px;
    padding: 15px 10px;
    cursor: pointer;
    transition: transform 0.1s, border-color 0.2s;
}

.shop-item:hover {
    transform: scale(1.02);
    border-color: var(--primary-gold);
}

.shop-item:active {
    transform: scale(0.98);
}

.shop-item .item-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.shop-item .item-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 4px;
}

.shop-item .item-cost {
    color: var(--primary-gold);
    font-weight: 800;
    font-size: 1rem;
}

.shop-item .item-desc {
    font-size: 0.7rem;
    color: #888;
    margin-top: 4px;
}

/* Upgrade List */
.upgrade-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.upgrade-row {
    background: linear-gradient(180deg, #2d2d4a 0%, #1a1a2e 100%);
    border: 2px solid #444;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.2s;
}

.upgrade-row:hover {
    border-color: #666;
}

.upgrade-info {
    text-align: left;
    flex: 1;
}

.upgrade-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    color: var(--primary-gold);
}

.upgrade-level {
    font-size: 0.7rem;
    color: var(--button-cyan);
    margin-top: 2px;
}

.upgrade-detail {
    font-size: 0.8rem;
    color: #aaa;
    margin-top: 4px;
}

.upgrade-btn {
    background: linear-gradient(180deg, var(--button-green) 0%, #2e7d32 100%);
    border: 2px solid #81c784;
    color: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 3px 0 #1b5e20;
    transition: transform 0.1s;
}

.upgrade-btn:hover {
    transform: translateY(-2px);
}

.upgrade-btn:active {
    transform: translateY(3px);
    box-shadow: none;
}

.upgrade-btn:disabled {
    background: #555;
    border-color: #666;
    color: #888;
    cursor: not-allowed;
    box-shadow: none;
}

/* Event Modal */
.event-content {
    padding: 20px 0;
}

.event-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 15px;
    text-shadow: var(--text-shadow);
}

.event-desc {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 20px;
}

.event-bonus {
    background: linear-gradient(90deg, transparent, rgba(0,230,118,0.2), transparent);
    padding: 15px;
    border-radius: 10px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    color: #00e676;
    margin-bottom: 20px;
}

.event-btn {
    background: linear-gradient(180deg, #ff9800 0%, #f57c00 100%);
    border: 3px solid #ffcc80;
    color: #fff;
    padding: 15px 40px;
    border-radius: 30px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 0 #e65100;
    text-shadow: var(--text-shadow);
}

.event-btn:active {
    transform: translateY(4px);
    box-shadow: none;
}

/* ================== THOUGHT BUBBLES ================== */
.thought-bubble {
    position: absolute;
    background: #fff;
    color: #333;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    pointer-events: none;
    transform: translate(-50%, -100%);
    opacity: 0;
    transition: opacity 0.3s;
    max-width: 180px;
    text-align: center;
    z-index: 50;
}

.thought-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    margin-left: -8px;
    border-width: 8px 8px 0;
    border-style: solid;
    border-color: #fff transparent transparent;
}

.thought-bubble.show {
    opacity: 1;
}

/* ================== LOADING SCREEN ================== */
#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* City background with deep atmospheric overlay */
    background: linear-gradient(135deg, rgba(10, 10, 20, 0.9) 0%, rgba(25, 10, 40, 0.85) 50%, rgba(10, 10, 20, 0.95) 100%), url('../assets/city-background.png');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease-out;
}

.loading-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: 4px;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 
        0 0 10px rgba(255, 215, 0, 0.8),
        0 0 20px rgba(255, 215, 0, 0.5),
        0 0 40px rgba(255, 215, 0, 0.3),
        0 0 80px rgba(255, 0, 255, 0.5);
    margin-bottom: 50px;
    animation: logoPulse 3s infinite ease-in-out;
    position: relative;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); opacity: 1; text-shadow: 0 0 10px rgba(255, 215, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.5); }
    50% { transform: scale(1.02); opacity: 0.9; text-shadow: 0 0 15px rgba(255, 215, 0, 1), 0 0 30px rgba(255, 0, 255, 0.6); }
}

.loading-bar {
    width: 300px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.loading-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff00ff, #00ffff, #ffd700, #ff00ff);
    background-size: 300% 100%;
    width: 0%; /* Starts at 0, animated by JS */
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
    animation: loadingGradient 2s linear infinite;
    transition: width 0.3s ease-out;
}

@keyframes loadingGradient {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.loading-text {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: textFade 1.5s infinite alternate;
}

@keyframes textFade {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

/* ================== ERROR LOG ================== */
#error-log {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(183, 28, 28, 0.95);
    color: #fff;
    z-index: 10000;
    padding: 15px;
    display: none;
    font-family: monospace;
    font-size: 12px;
    max-height: 150px;
    overflow-y: auto;
}

/* ================== FLOATING TEXT ================== */
.floating-text {
    position: absolute;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    text-shadow: 2px 2px 0 #000;
    pointer-events: none;
    z-index: 30;
}

/* ================== RESPONSIVE ================== */
@media (max-width: 768px) {
    .hud-top {
        padding: 8px 10px;
    }
    
    .level-badge {
        width: 45px;
        height: 45px;
    }
    
    .level-badge .level-num {
        font-size: 1.1rem;
    }
    
    .resource-bar {
        min-width: 100px;
        height: 28px;
    }
    
    .resource-bar .value {
        font-size: 0.85rem;
    }
    
    .club-banner {
        padding: 4px 12px;
    }
    
    .club-banner .club-name {
        font-size: 0.85rem;
    }
    
    .party-btn {
        padding: 8px 12px;
        font-size: 0.75rem;
    }
    
    .toolbar-btn {
        width: 55px;
        height: 55px;
    }
    
    .toolbar-btn .icon {
        font-size: 1.3rem;
    }
    
    .center-action {
        width: 70px;
        height: 70px;
    }
    
    .center-action .icon {
        font-size: 1.8rem;
    }
    
    .stat-box {
        padding: 6px 10px;
        min-width: 65px;
    }
    
    .side-panel {
        display: none;
    }
}

/* ================== XP BAR - Modern ================== */
.xp-bar-container {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-left: 8px;
}

.xp-bar {
    width: 100px;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
}

.xp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #a78bfa);
    border-radius: 3px;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.xp-text {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
}

/* ================== SHOP CATEGORIES ================== */
.shop-category-header {
    grid-column: 1 / -1;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    color: var(--primary-gold);
    padding: 10px 0 5px 0;
    border-bottom: 1px solid #333;
    margin-top: 10px;
}

.shop-category-header:first-child {
    margin-top: 0;
}

.shop-item.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.shop-item.locked:hover {
    transform: none;
    border-color: #444;
}

/* ================== STAFF MODAL ================== */
.staff-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.staff-row {
    background: linear-gradient(180deg, #2d2d4a 0%, #1a1a2e 100%);
    border: 2px solid #444;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.staff-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.staff-details {
    text-align: left;
}

.staff-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    color: #fff;
}

.staff-effect {
    font-size: 0.75rem;
    color: #888;
    margin-top: 2px;
}

.staff-count {
    font-size: 0.8rem;
    color: var(--button-cyan);
    margin-top: 4px;
}

.hire-btn {
    background: linear-gradient(180deg, var(--button-green) 0%, #2e7d32 100%);
    border: 2px solid #81c784;
    color: #fff;
    padding: 10px 15px;
    border-radius: 10px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 3px 0 #1b5e20;
}

.hire-btn:hover {
    transform: translateY(-2px);
}

.hire-btn:active {
    transform: translateY(3px);
    box-shadow: none;
}

/* ================== FRIENDS MODAL ================== */
.friends-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.friend-row {
    background: linear-gradient(180deg, #2d2d4a 0%, #1a1a2e 100%);
    border: 2px solid #444;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.friend-row.visited {
    opacity: 0.6;
}

.friend-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.friend-avatar {
    font-size: 1.8rem;
}

.friend-details {
    text-align: left;
}

.friend-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.95rem;
    color: #fff;
}

.friend-owner {
    font-size: 0.75rem;
    color: #888;
}

.visit-btn, .invite-btn, .collect-btn {
    background: linear-gradient(180deg, var(--button-cyan) 0%, #0097a7 100%);
    border: 2px solid #80deea;
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    box-shadow: 0 2px 0 #006064;
}

.visit-btn:disabled {
    background: #555;
    border-color: #666;
    color: #888;
    cursor: not-allowed;
    box-shadow: none;
}

.invite-row {
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px solid #333;
}

.badge {
    background: var(--button-red);
    color: #fff;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
    margin-left: 5px;
}

/* ================== ACHIEVEMENTS MODAL ================== */
.achievements-header {
    margin-bottom: 15px;
    text-align: center;
}

.achievements-progress {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    color: var(--primary-gold);
    margin-bottom: 8px;
}

.achievements-bar {
    width: 100%;
    height: 10px;
    background: #333;
    border-radius: 5px;
    overflow: hidden;
}

.achievements-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-gold), #ffeb3b);
    border-radius: 5px;
    transition: width 0.3s ease;
}

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

.achievement-row {
    background: linear-gradient(180deg, #2d2d4a 0%, #1a1a2e 100%);
    border: 2px solid #444;
    border-radius: 10px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.achievement-row.unlocked {
    border-color: var(--primary-gold);
    background: linear-gradient(180deg, #3d3d2a 0%, #2a2a1e 100%);
}

.achievement-row.locked {
    opacity: 0.6;
}

.achievement-icon {
    font-size: 1.8rem;
    width: 40px;
    text-align: center;
}

.achievement-info {
    flex: 1;
    text-align: left;
}

.achievement-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.95rem;
    color: #fff;
}

.achievement-desc {
    font-size: 0.75rem;
    color: #888;
    margin-top: 2px;
}

.achievement-check {
    color: var(--button-green);
    font-size: 1.2rem;
    font-weight: bold;
}

/* ================== ACHIEVEMENT POPUP ================== */
.achievement-popup {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: linear-gradient(180deg, #2d2d1a 0%, #1a1a0e 100%);
    border: 3px solid var(--primary-gold);
    border-radius: 15px;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 300;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    box-shadow: var(--glow-gold), 0 10px 40px rgba(0,0,0,0.5);
}

.achievement-popup.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.achievement-popup .achievement-icon {
    font-size: 3rem;
}

.achievement-popup .achievement-title {
    font-size: 0.8rem;
    color: var(--primary-gold);
    text-transform: uppercase;
}

.achievement-popup .achievement-name {
    font-size: 1.2rem;
}

.achievement-popup .achievement-desc {
    font-size: 0.85rem;
}

/* ================== SETTINGS MODAL ================== */
.settings-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.settings-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #333;
}

.settings-label {
    font-size: 1rem;
    color: #fff;
}

.settings-btn {
    background: linear-gradient(180deg, #424242 0%, #212121 100%);
    border: 2px solid #616161;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

.settings-btn.danger {
    background: linear-gradient(180deg, var(--button-red) 0%, #c62828 100%);
    border-color: #ef9a9a;
}

/* ================== TUTORIAL OVERLAY ================== */
.tutorial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 400;
    pointer-events: auto;
}

.tutorial-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.tutorial-spotlight {
    position: absolute;
    border: 3px solid var(--primary-gold);
    border-radius: 10px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.7), var(--glow-gold);
    z-index: 401;
}

.tutorial-tooltip {
    position: absolute;
    background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%);
    border: 3px solid var(--primary-gold);
    border-radius: 15px;
    padding: 20px;
    max-width: 320px;
    z-index: 402;
    box-shadow: var(--glow-gold);
}

.tutorial-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    color: var(--primary-gold);
    margin-bottom: 10px;
}

.tutorial-message {
    font-size: 0.95rem;
    color: #ccc;
    line-height: 1.4;
    margin-bottom: 15px;
}

.tutorial-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.tutorial-skip {
    background: transparent;
    border: 1px solid #666;
    color: #888;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
}

.tutorial-next {
    background: linear-gradient(180deg, var(--button-green) 0%, #2e7d32 100%);
    border: none;
    color: #fff;
    padding: 10px 25px;
    border-radius: 8px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 3px 0 #1b5e20;
}

.tutorial-progress {
    text-align: center;
    margin-top: 10px;
    font-size: 0.8rem;
    color: #666;
}

/* ================== MORE TOOLBAR BUTTON ================== */
.toolbar-btn .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--button-red);
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ================== VIP POPUP ================== */
.vip-popup {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: linear-gradient(135deg, #4a148c 0%, #7b1fa2 100%);
    border: 3px solid #ffd700;
    border-radius: 15px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10000;
    opacity: 0;
    transition: all 0.4s ease;
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.4);
}

.vip-popup.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.vip-icon {
    font-size: 3rem;
    animation: vipBounce 0.5s ease infinite alternate;
}

@keyframes vipBounce {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.vip-info {
    text-align: left;
}

.vip-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.vip-text {
    color: #fff;
    font-size: 0.9rem;
}

.vip-bonus {
    color: #69f0ae;
    font-weight: bold;
    margin-top: 5px;
}

/* ================== CHALLENGE POPUP ================== */
.challenge-popup {
    position: fixed;
    bottom: 150px;
    right: 20px;
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
    border: 2px solid #64b5f6;
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(100, 181, 246, 0.4);
}

.challenge-popup.show {
    opacity: 1;
    transform: translateX(0);
}

.challenge-icon {
    font-size: 2.5rem;
}

.challenge-title {
    font-size: 0.8rem;
    color: #bbdefb;
    text-transform: uppercase;
}

.challenge-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    color: #fff;
}

.challenge-reward {
    color: #69f0ae;
    font-weight: bold;
    font-size: 1rem;
}

/* ================== DAY POPUP ================== */
.day-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: linear-gradient(180deg, #ff6f00 0%, #e65100 100%);
    border: 3px solid #ffcc80;
    border-radius: 20px;
    padding: 30px 50px;
    text-align: center;
    z-index: 10000;
    opacity: 0;
    transition: all 0.4s ease;
    box-shadow: 0 10px 40px rgba(255, 111, 0, 0.5);
}

.day-popup.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.day-icon {
    font-size: 4rem;
    margin-bottom: 10px;
}

.day-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: #fff;
}

.day-text {
    color: #ffcc80;
    font-size: 1rem;
}

/* ================== TIME DISPLAY ================== */
.time-display {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--neon-purple);
    border-radius: 20px;
    padding: 5px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 100;
}

.time-display .game-time {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: #fff;
}

.time-display .time-period {
    font-size: 0.85rem;
    color: var(--neon-pink);
}

.time-display .day-count {
    font-size: 0.85rem;
    color: #aaa;
}

/* ================== STATISTICS MODAL ================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 10px;
}

.stat-card {
    background: linear-gradient(180deg, #2d2d2d 0%, #1a1a1a 100%);
    border: 2px solid #444;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    transition: all 0.2s ease;
}

.stat-card:hover {
    border-color: var(--neon-purple);
    transform: translateY(-2px);
}

.stat-card-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.stat-card-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    color: #fff;
}

.stat-card-label {
    font-size: 0.75rem;
    color: #888;
    margin-top: 5px;
}

/* ================== CHALLENGES MODAL ================== */
.challenges-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 10px;
}

.challenge-row {
    background: linear-gradient(180deg, #1a237e 0%, #0d1442 100%);
    border: 2px solid #3949ab;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.challenge-row.completed {
    border-color: #4caf50;
    background: linear-gradient(180deg, #1b5e20 0%, #0d3010 100%);
}

.challenge-row-icon {
    font-size: 2rem;
}

.challenge-row-info {
    flex: 1;
}

.challenge-row-name {
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    font-size: 1rem;
}

.challenge-row-desc {
    font-size: 0.8rem;
    color: #9fa8da;
}

.challenge-row-progress {
    background: #000;
    height: 8px;
    border-radius: 4px;
    margin-top: 8px;
    overflow: hidden;
}

.challenge-row-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #64b5f6, #2196f3);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.challenge-row.completed .challenge-row-progress-fill {
    background: linear-gradient(90deg, #69f0ae, #4caf50);
}

.challenge-row-reward {
    font-family: 'Orbitron', sans-serif;
    color: #ffd700;
    font-size: 1rem;
}

/* ================== TOOLTIPS ================== */
.tooltip {
    position: fixed;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid var(--neon-purple);
    border-radius: 8px;
    padding: 10px 15px;
    color: #fff;
    font-size: 0.85rem;
    max-width: 250px;
    z-index: 10001;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.tooltip.show {
    opacity: 1;
}

.tooltip-title {
    font-family: 'Orbitron', sans-serif;
    color: var(--neon-pink);
    margin-bottom: 5px;
}

.tooltip-desc {
    color: #ccc;
    font-size: 0.8rem;
}

/* ================== RESPONSIVE IMPROVEMENTS ================== */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .vip-popup {
        left: 10px;
        right: 10px;
        transform: translateY(-20px);
    }
    
    .vip-popup.show {
        transform: translateY(0);
    }
    
    .challenge-popup {
        left: 10px;
        right: 10px;
        bottom: 120px;
    }
    
    .time-display {
        top: auto;
        bottom: 180px;
        padding: 3px 12px;
    }
}

/* Staff Popup */
.staff-popup {
    position: fixed;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #00d4ff;
    border-radius: 16px;
    padding: 0;
    min-width: 280px;
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.3), inset 0 1px 0 rgba(255,255,255,0.1);
    z-index: 10000;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    transition: all 0.3s ease;
    overflow: hidden;
}

.staff-popup.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.staff-popup-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: rgba(0, 212, 255, 0.1);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.staff-popup-icon {
    font-size: 32px;
}

.staff-popup-name {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    flex: 1;
}

.staff-popup-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #888;
    font-size: 18px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 6px;
    transition: all 0.2s;
}

.staff-popup-close:hover {
    background: rgba(255, 100, 100, 0.3);
    color: #ff6666;
}

.staff-popup-role {
    text-align: center;
    padding: 8px;
    color: #00d4ff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: rgba(0, 0, 0, 0.2);
}

.staff-popup-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 15px 20px;
}

.staff-stat {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
}

.staff-stat-label {
    display: block;
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.staff-stat-value {
    display: block;
    font-size: 16px;
    color: #fff;
    font-weight: bold;
}

.staff-popup-actions {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.2);
}

.staff-action-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.staff-action-btn.tip-btn {
    background: linear-gradient(135deg, #00c853 0%, #00e676 100%);
    color: #000;
}

.staff-action-btn.tip-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 200, 83, 0.4);
}

.staff-action-btn.praise-btn {
    background: linear-gradient(135deg, #ff9800 0%, #ffc107 100%);
    color: #000;
}

.staff-action-btn.praise-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
}

/* Coins Display */
.resource-bar.coins {
    background: linear-gradient(135deg, #9c27b0 0%, #e040fb 100%);
    cursor: pointer;
    transition: transform 0.2s;
}
.resource-bar.coins:hover { transform: scale(1.05); }
.resource-bar.coins .add-btn {
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-left: 5px;
}

/* VIP Badge */
#vip-badge {
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: bold;
    color: #000;
    animation: vip-glow 2s ease-in-out infinite;
}
@keyframes vip-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
    50% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.8); }
}

/* Account Button */
.account-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: all 0.2s;
}
.account-btn:hover { transform: scale(1.05); }

/* User Info */
.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    padding: 5px 10px;
    border-radius: 20px;
}
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #ffd700;
}
.user-name { font-weight: 600; }
.user-menu-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
}

/* Modal Sizes */
.modal-small { max-width: 400px; }
.modal-medium { max-width: 600px; }
.modal-large { max-width: 800px; }

/* Login Modal */
.login-content { padding: 20px; }
.login-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.login-tab {
    flex: 1;
    padding: 12px;
    border: none;
    background: rgba(255,255,255,0.1);
    color: #888;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}
.login-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}
.login-form { display: flex; flex-direction: column; gap: 12px; }
.auth-input {
    padding: 14px 16px;
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    background: rgba(0,0,0,0.3);
    color: white;
    font-size: 16px;
    transition: border-color 0.2s;
}
.auth-input:focus {
    outline: none;
    border-color: #667eea;
}
.auth-btn {
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.auth-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}
.auth-btn.primary:hover { transform: translateY(-2px); }
.auth-btn.forgot {
    background: transparent;
    color: #888;
}
.auth-btn.google {
    background: white;
    color: #333;
}
.auth-btn.google img { width: 20px; height: 20px; }
.login-divider {
    text-align: center;
    color: #666;
    margin: 15px 0;
    position: relative;
}
.login-divider::before, .login-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: rgba(255,255,255,0.1);
}
.login-divider::before { left: 0; }
.login-divider::after { right: 0; }
.login-note {
    text-align: center;
    color: #888;
    font-size: 12px;
    margin-top: 15px;
}

/* Account Modal */
.account-content { padding: 20px; }
.account-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    margin-bottom: 20px;
}
.account-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #ffd700;
}
.account-info { display: flex; flex-direction: column; gap: 4px; }
.account-name { font-size: 18px; font-weight: bold; }
.account-email { color: #888; font-size: 14px; }
.account-vip.vip-active { color: #ffd700; font-weight: bold; }
.account-vip.vip-inactive { color: #666; }
.account-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}
.account-stat {
    flex: 1;
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}
.account-stat .stat-value { font-size: 24px; font-weight: bold; display: block; }
.account-stat .stat-label { color: #888; font-size: 12px; }
.account-actions { display: flex; flex-direction: column; gap: 10px; }
.account-actions .account-btn {
    justify-content: center;
    padding: 12px;
    border-radius: 10px;
}
.account-actions .account-btn.danger {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
}

/* Shop Modal */
.shop-content { padding: 20px; }
.shop-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.shop-tab {
    flex: 1;
    padding: 12px;
    border: none;
    background: rgba(255,255,255,0.1);
    color: #888;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}
.shop-tab.active {
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    color: #000;
}
.shop-section { min-height: 300px; }
.vip-promo {
    background: linear-gradient(135deg, rgba(255,215,0,0.1) 0%, rgba(255,140,0,0.1) 100%);
    border: 2px solid rgba(255,215,0,0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}
.vip-promo h3 { color: #ffd700; margin-bottom: 15px; }
.vip-perks { list-style: none; padding: 0; }
.vip-perks li { padding: 8px 0; color: #ccc; }
.shop-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}
.shop-item {
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}
.shop-item:hover {
    border-color: #667eea;
    transform: translateY(-3px);
}
.shop-item.best-value { border-color: #ffd700; }
.shop-item .best-badge, .shop-item .popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffd700;
    color: #000;
    padding: 4px 12px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
}
.shop-item .popular-badge { background: #e040fb; color: white; }
.shop-item .item-name { display: block; font-size: 18px; font-weight: bold; margin-bottom: 5px; }
.shop-item .item-bonus { display: block; color: #ffd700; font-size: 14px; }
.shop-item .item-price {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #00e676;
    margin-top: 10px;
}
.shop-item .item-save { display: block; color: #00e676; font-size: 12px; }
.coins-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.coin-item .coin-amount { display: block; font-size: 24px; font-weight: bold; }
.coin-item .coin-bonus { display: block; color: #e040fb; font-size: 12px; margin-top: 5px; }
.shop-category { margin-bottom: 25px; }
.shop-category h4 { margin-bottom: 15px; color: #888; }
.item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}
.coin-purchase-item {
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}
.coin-purchase-item:hover { border-color: #e040fb; }
.coin-purchase-item .item-icon { font-size: 28px; display: block; margin-bottom: 8px; }
.coin-purchase-item .item-name { display: block; font-size: 13px; margin-bottom: 5px; }
.coin-purchase-item .item-cost { display: block; color: #e040fb; font-weight: bold; }
.coin-purchase-item.vip-only { opacity: 0.7; }
.coin-purchase-item .vip-required {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 10px;
    background: #ffd700;
    color: #000;
    padding: 2px 6px;
    border-radius: 4px;
}
.shop-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}
.your-coins { font-size: 18px; font-weight: bold; }

/* Payment Modal */
.payment-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20000;
}
.payment-modal {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
}
.payment-modal h2 { margin-bottom: 20px; }
.payment-product {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}
.payment-product .product-name { display: block; font-size: 18px; margin-bottom: 5px; }
.payment-product .product-price { display: block; font-size: 28px; font-weight: bold; color: #00e676; }
.payment-note { color: #ff9800; font-size: 12px; margin-bottom: 20px; }
.payment-actions { display: flex; gap: 15px; }
.payment-actions button {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}
.payment-actions .btn-cancel { background: rgba(255,255,255,0.1); color: white; }
.payment-actions .btn-confirm { background: linear-gradient(135deg, #00c853 0%, #00e676 100%); color: #000; }

/* ═══════════════════════════════════════════════════════════════════════════════
   LOGIN GATE - GLASSMORPHISM DESIGN
   ═══════════════════════════════════════════════════════════════════════════════ */
#login-gate {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #0a0a1a 0%, #0d0d25 50%, #0a0a1a 100%);
    display: flex;
    flex-direction: column;
    z-index: 100000;
    overflow: hidden;
    font-family: 'Orbitron', sans-serif;
}
#login-gate.hidden { display: none; }

/* Animated Background */
.gate-bg { position: absolute; inset: 0; overflow: hidden; }
.gate-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: orbFloat 20s ease-in-out infinite;
}
.gate-orb-1 { width: 600px; height: 600px; background: radial-gradient(circle, #ff006620 0%, transparent 70%); top: -200px; left: -200px; }
.gate-orb-2 { width: 500px; height: 500px; background: radial-gradient(circle, #8b5cf620 0%, transparent 70%); bottom: -150px; right: -150px; animation-delay: -7s; }
.gate-orb-3 { width: 400px; height: 400px; background: radial-gradient(circle, #00d4ff20 0%, transparent 70%); top: 50%; left: 50%; transform: translate(-50%, -50%); animation-delay: -14s; }
@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(-30px, -20px) scale(1.02); }
}
.gate-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* Main Container */
.gate-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    padding: 40px;
    position: relative;
    z-index: 1;
}

/* Auth Section */
.gate-auth-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 420px;
    width: 100%;
}
.gate-logo-section { text-align: center; margin-bottom: 30px; }
.gate-logo {
    font-size: 72px;
    margin-bottom: 10px;
    animation: gatePulse 3s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(255,0,102,0.5));
}
@keyframes gatePulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 30px rgba(255,0,102,0.5)); }
    50% { transform: scale(1.05); filter: drop-shadow(0 0 50px rgba(255,0,102,0.8)); }
}
.gate-title {
    font-size: 42px;
    font-weight: 900;
    color: white;
    letter-spacing: 3px;
    text-shadow: 0 0 30px rgba(255,0,102,0.5);
}
.gate-title span {
    background: linear-gradient(135deg, #ff0066 0%, #ff6b6b 50%, #ffd93d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.gate-tagline {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    letter-spacing: 4px;
    margin-top: 8px;
}

/* Glass Card */
.gate-card {
    width: 100%;
    background: rgba(20, 20, 40, 0.6);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
}

/* Tabs */
.gate-tabs { display: flex; gap: 8px; margin-bottom: 24px; }
.gate-tab {
    flex: 1;
    padding: 14px 20px;
    border: none;
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.5);
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Orbitron', sans-serif;
}
.gate-tab:hover { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.8); }
.gate-tab.active {
    background: linear-gradient(135deg, #ff0066 0%, #ff3388 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(255,0,102,0.4);
}
.gate-tab i { font-size: 16px; }

/* Form */
.gate-form { display: flex; flex-direction: column; gap: 14px; }
.gate-input-group {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    transition: all 0.3s;
}
.gate-input-group:focus-within {
    border-color: #ff0066;
    background: rgba(0,0,0,0.4);
    box-shadow: 0 0 20px rgba(255,0,102,0.15);
}
.gate-input-group i { color: rgba(255,255,255,0.4); font-size: 18px; }
.gate-input-group input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: white;
    font-size: 14px;
    font-family: 'Orbitron', sans-serif;
}
.gate-input-group input::placeholder { color: rgba(255,255,255,0.3); }

/* Buttons */
.gate-btn-primary {
    padding: 16px 24px;
    background: linear-gradient(135deg, #ff0066 0%, #ff3388 100%);
    border: none;
    border-radius: 14px;
    color: white;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(255,0,102,0.4);
    font-family: 'Orbitron', sans-serif;
    margin-top: 8px;
}
.gate-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255,0,102,0.6);
}
.gate-btn-primary i { font-size: 18px; }

.gate-btn-link {
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    font-size: 12px;
    cursor: pointer;
    padding: 8px;
    font-family: 'Orbitron', sans-serif;
}
.gate-btn-link:hover { color: #ff0066; }

.gate-separator {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
    color: rgba(255,255,255,0.3);
    font-size: 12px;
}
.gate-separator::before, .gate-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.1);
}

.gate-btn-google {
    width: 100%;
    padding: 14px 24px;
    background: rgba(255,255,255,0.95);
    border: none;
    border-radius: 14px;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s;
    font-family: 'Orbitron', sans-serif;
}
.gate-btn-google:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,255,255,0.2);
}
.gate-btn-google img { width: 20px; height: 20px; }

/* Features */
.gate-features {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 24px;
    flex-wrap: wrap;
}
.gate-feature {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.4);
    font-size: 11px;
    font-weight: 500;
}
.gate-feature i { color: #ff0066; font-size: 14px; }

/* Stats Section */
.gate-stats-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 380px;
    width: 100%;
}
.gate-stats-card {
    background: rgba(20, 20, 40, 0.5);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}
.gate-stats-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.gate-stats-header i { color: #ff0066; font-size: 20px; }
.gate-stats-header h3 { flex: 1; font-size: 14px; font-weight: 700; color: white; margin: 0; }
.gate-live-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(34,197,94,0.15);
    color: #22c55e;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
}
.gate-live-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    animation: livePulse 1.5s ease-in-out infinite;
}
@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Leaderboard */
.gate-leaderboard { display: flex; flex-direction: column; gap: 8px; }
.gate-leader-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    transition: all 0.2s;
}
.gate-leader-item:hover { background: rgba(255,255,255,0.06); }
.gate-leader-rank {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
}
.gate-leader-rank.gold { background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%); color: #000; }
.gate-leader-rank.silver { background: linear-gradient(135deg, #c0c0c0 0%, #a0a0a0 100%); color: #000; }
.gate-leader-rank.bronze { background: linear-gradient(135deg, #cd7f32 0%, #b5651d 100%); color: #fff; }
.gate-leader-rank.normal { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.6); }
.gate-leader-avatar { font-size: 24px; }
.gate-leader-info { flex: 1; }
.gate-leader-name { font-size: 13px; font-weight: 600; color: white; }
.gate-leader-club { font-size: 10px; color: rgba(255,255,255,0.4); }
.gate-leader-level {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

/* Top Clubs */
.gate-clubs { display: flex; flex-direction: column; gap: 8px; }
.gate-club-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
}
.gate-club-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #ff0066 0%, #ff6b6b 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.gate-club-info { flex: 1; }
.gate-club-name { font-size: 13px; font-weight: 600; color: white; }
.gate-club-owner { font-size: 10px; color: rgba(255,255,255,0.4); }
.gate-club-likes {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #ff0066;
    font-size: 12px;
    font-weight: 600;
}

/* Mini Stats */
.gate-stats-mini {
    display: flex;
    gap: 12px;
    padding: 16px;
}
.gate-mini-stat {
    flex: 1;
    text-align: center;
}
.gate-mini-stat i { color: #ff0066; font-size: 22px; margin-bottom: 6px; }
.gate-mini-value { font-size: 20px; font-weight: 800; color: white; }
.gate-mini-label { font-size: 10px; color: rgba(255,255,255,0.4); margin-top: 2px; }

/* Loader */
.gate-loader { display: flex; justify-content: center; padding: 30px; }
.gate-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: #ff0066;
    border-radius: 50%;
    animation: gateSpin 0.8s linear infinite;
}
@keyframes gateSpin { to { transform: rotate(360deg); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Footer */
.gate-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 20px;
    color: rgba(255,255,255,0.3);
    font-size: 11px;
    position: relative;
    z-index: 1;
}
.gate-version {
    background: rgba(255,255,255,0.1);
    padding: 4px 10px;
    border-radius: 20px;
}

/* Responsive */
@media (max-width: 900px) {
    .gate-container { flex-direction: column; gap: 30px; padding: 20px; }
    .gate-stats-section { max-width: 420px; }
    .gate-title { font-size: 32px; }
    .gate-logo { font-size: 56px; }
}

/* Profile Button */
.profile-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: all 0.2s;
}
.profile-btn:hover { transform: scale(1.05); }
.profile-icon { font-size: 18px; }

/* Club Banner Update */
.club-banner {
    cursor: pointer;
    transition: transform 0.2s;
}
.club-banner:hover { transform: scale(1.02); }
.club-tier {
    display: block;
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}

/* Profile Modal */
.profile-content { padding: 20px; }
.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    border-radius: 15px;
    margin-bottom: 20px;
}
.profile-avatar-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}
.profile-info { flex: 1; }
.profile-owner-name { margin: 0 0 5px 0; font-size: 24px; }
.profile-email { color: #888; font-size: 14px; }
.profile-vip-status { color: #ffd700; font-weight: bold; margin-top: 5px; }

.profile-club-section {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}
.profile-club-section h4 { margin: 0 0 15px 0; }
.club-info-card {
    background: rgba(0,0,0,0.3);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
}
.club-info-name {
    font-size: 20px;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 10px;
}
.club-info-tier, .club-info-level {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    color: #aaa;
}
.tier-value { color: #00e676; font-weight: bold; }
.club-info-card {
    position: relative;
}
.club-info-card .rename-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.1);
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}
.club-info-card .rename-btn:hover { background: rgba(255,255,255,0.2); }

.club-buttons {
    display: flex;
    gap: 10px;
}
.upgrade-club-btn, .rename-club-btn {
    flex: 1;
    padding: 12px;
    background: linear-gradient(135deg, #00c853 0%, #00e676 100%);
    border: none;
    border-radius: 10px;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}
.rename-club-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}
.upgrade-club-btn:hover, .rename-club-btn:hover { transform: translateY(-2px); }

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}
.profile-stat {
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}
.profile-stat .stat-icon { font-size: 24px; display: block; margin-bottom: 5px; }
.profile-stat .stat-value { font-size: 20px; font-weight: bold; display: block; }
.profile-stat .stat-label { font-size: 11px; color: #888; }

.profile-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.profile-action-btn {
    flex: 1;
    min-width: 120px;
    padding: 12px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}
.profile-action-btn:hover { background: rgba(255,255,255,0.2); }
.profile-action-btn.logout { background: rgba(255,68,68,0.3); }
.profile-action-btn.logout:hover { background: rgba(255,68,68,0.5); }

/* Club Upgrade Modal */
.club-upgrade-content { padding: 20px; text-align: center; }
.current-tier, .next-tier {
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 12px;
    margin: 10px 0;
}
.current-tier h4, .next-tier h4 { margin: 0 0 10px 0; color: #888; }
.tier-name { font-size: 24px; font-weight: bold; color: #ffd700; }
.tier-stats { color: #aaa; margin-top: 5px; }
.tier-unlock { color: #ff9800; margin-top: 10px; }
.tier-cost { color: #00e676; font-size: 20px; font-weight: bold; margin-top: 10px; }
.upgrade-arrow { font-size: 30px; margin: 10px 0; }
.max-tier-message {
    padding: 30px;
    background: linear-gradient(135deg, rgba(255,215,0,0.1) 0%, rgba(255,140,0,0.1) 100%);
    border-radius: 12px;
    color: #ffd700;
    font-size: 18px;
}
.upgrade-btn {
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    background: linear-gradient(135deg, #00c853 0%, #00e676 100%);
    border: none;
    border-radius: 12px;
    color: #000;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}
.upgrade-btn:hover { transform: translateY(-2px); }
.upgrade-btn:disabled {
    background: #444;
    color: #888;
    cursor: not-allowed;
    transform: none;
}

/* ================== DJ BOOTH MODAL ================== */
.dj-content {
    display: grid;
    gap: 20px;
}

.dj-content.dj-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.dj-left-col, .dj-right-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dj-controls-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-group label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    font-weight: 600;
}

.queue-limit-badge {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    margin-right: 8px;
}

.queue-limit-badge.vip {
    background: linear-gradient(135deg, rgba(255,215,0,0.2) 0%, rgba(255,165,0,0.2) 100%);
    color: #ffd700;
}

@media (max-width: 768px) {
    .dj-content.dj-grid {
        grid-template-columns: 1fr;
    }
    .dj-controls-row {
        grid-template-columns: 1fr;
    }
}

.dj-section {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 16px;
}

.dj-section h3 {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 12px;
    font-weight: 600;
}

/* Now Playing */
.now-playing-container {
    text-align: center;
    padding: 16px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
    border-radius: 12px;
}

.now-playing-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

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

.track-info {
    text-align: left;
}

.track-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.genre-name {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

.track-progress-bar {
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
    margin: 12px 0;
}

.track-progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.track-time {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
}

.crowd-reaction {
    margin-top: 12px;
    font-size: 0.9rem;
    font-weight: 600;
}

.crowd-mood-bar {
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 8px;
}

.mood-fill {
    height: 100%;
    background: linear-gradient(90deg, #ef4444, #f59e0b, #22c55e);
    transition: width 0.3s ease;
}

.dj-controls {
    margin-top: 12px;
}

.dj-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.skip-btn {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
}

.skip-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

/* Genre Grid */
.genre-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.genre-btn {
    padding: 12px 8px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.genre-btn:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.genre-btn.active {
    border-color: currentColor;
    background: rgba(255,255,255,0.1);
}

.genre-btn .genre-icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 4px;
}

.genre-btn .genre-label {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.7);
    font-weight: 600;
}

/* Playlist */
.playlist-container {
    max-height: 200px;
    overflow-y: auto;
}

.empty-playlist {
    text-align: center;
    color: rgba(255,255,255,0.3);
    padding: 20px;
    font-style: italic;
}

.playlist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    margin-bottom: 8px;
}

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

.playlist-track-info {
    flex: 1;
}

.playlist-track-name {
    font-size: 0.9rem;
    font-weight: 600;
}

.playlist-genre {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.4);
}

.playlist-remove {
    background: rgba(239, 68, 68, 0.2);
    border: none;
    color: #ef4444;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.playlist-remove:hover {
    background: rgba(239, 68, 68, 0.4);
}

/* Track Library */
.library-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.library-tab {
    padding: 8px 14px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    background: transparent;
    color: rgba(255,255,255,0.6);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.library-tab.active {
    background: rgba(139, 92, 246, 0.2);
    border-color: #8b5cf6;
    color: #a78bfa;
}

.track-list {
    max-height: 200px;
    overflow-y: auto;
}

.track-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.track-item:hover {
    background: rgba(255,255,255,0.08);
}

.track-item-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.track-item-name {
    font-size: 0.85rem;
    font-weight: 600;
}

.track-item-duration {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.4);
}

.track-popularity {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: #fbbf24;
}

.add-track-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-track-btn:hover {
    transform: scale(1.05);
}

@media (max-width: 600px) {
    .genre-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========== TURNTABLE DJ BOOTH ========== */
.dj-booth-modal {
    background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%) !important;
    max-width: 900px !important;
}

.dj-header {
    background: linear-gradient(90deg, #ff0044, #ff6600, #ff0044);
    background-size: 200% 100%;
    animation: headerGlow 3s ease infinite;
}

@keyframes headerGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.turntable-container {
    padding: 20px;
}

.turntable-deck {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    background: linear-gradient(180deg, #2a2a3e 0%, #1a1a2e 100%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.5), 0 10px 40px rgba(0,0,0,0.3);
}

/* Turntable */
.turntable {
    position: relative;
    width: 180px;
    height: 180px;
}

.platter {
    width: 160px;
    height: 160px;
    background: #333;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.5), inset 0 0 30px rgba(0,0,0,0.3);
    border: 3px solid #444;
}

.vinyl {
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: spin 2s linear infinite;
    box-shadow: 0 0 15px rgba(0,0,0,0.8);
}

@keyframes spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.vinyl-label {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff0044 0%, #ff6600 100%);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.vinyl-center {
    width: 10px;
    height: 10px;
    background: #1a1a1a;
    border-radius: 50%;
}

.vinyl-grooves {
    position: absolute;
    inset: 30px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 
        inset 0 0 0 5px rgba(255,255,255,0.02),
        inset 0 0 0 10px rgba(255,255,255,0.02),
        inset 0 0 0 15px rgba(255,255,255,0.02),
        inset 0 0 0 20px rgba(255,255,255,0.02);
}

.tonearm {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #666, #999);
    border-radius: 2px;
    transform-origin: right center;
    transform: rotate(-30deg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.tonearm::before {
    content: '';
    position: absolute;
    right: -5px;
    top: -3px;
    width: 10px;
    height: 10px;
    background: #888;
    border-radius: 50%;
}

/* Mixer Panel */
.mixer-panel {
    background: linear-gradient(180deg, #2d2d3d 0%, #1d1d2d 100%);
    border-radius: 15px;
    padding: 20px;
    min-width: 200px;
    border: 2px solid #3a3a4a;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.3);
}

.mixer-display {
    background: #0a0a12;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    margin-bottom: 15px;
    border: 1px solid #333;
}

.now-playing-text {
    font-size: 0.7rem;
    color: #ff0044;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.track-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mixer-controls {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 15px;
}

.fader-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.fader-group label {
    font-size: 0.65rem;
    color: #888;
    letter-spacing: 1px;
}

.vertical-fader {
    -webkit-appearance: none;
    appearance: none;
    width: 80px;
    height: 8px;
    background: linear-gradient(90deg, #333, #555);
    border-radius: 4px;
}

.vertical-fader::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 24px;
    background: linear-gradient(180deg, #ff6600 0%, #ff0044 100%);
    border-radius: 3px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255,0,68,0.5);
}

.mixer-buttons {
    display: flex;
    gap: 8px;
}

.deck-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.play-btn {
    background: linear-gradient(135deg, #00cc66 0%, #009944 100%);
    color: white;
}

.pause-btn {
    background: linear-gradient(135deg, #ffaa00 0%, #ff8800 100%);
    color: white;
}

.skip-btn {
    background: linear-gradient(135deg, #ff0044 0%, #cc0033 100%);
    color: white;
}

.deck-btn:hover {
    transform: scale(1.1);
}

.deck-btn:active {
    transform: scale(0.95);
}

.mood-meter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.mood-meter label {
    font-size: 0.65rem;
    color: #888;
    letter-spacing: 1px;
}

.led-meter {
    display: flex;
    gap: 4px;
}

.led {
    width: 10px;
    height: 20px;
    background: #333;
    border-radius: 2px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}

.led:nth-child(1) { background: #00cc66; box-shadow: 0 0 10px #00cc66; }
.led:nth-child(2) { background: #00cc66; box-shadow: 0 0 10px #00cc66; }
.led:nth-child(3) { background: #ffcc00; box-shadow: 0 0 10px #ffcc00; }
.led:nth-child(4) { background: #ff6600; }
.led:nth-child(5) { background: #333; }

/* Add Track Panel */
.add-track-panel {
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
}

.queue-limits {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.limit-tag {
    background: rgba(255,255,255,0.1);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: #888;
}

.limit-tag.vip {
    background: linear-gradient(135deg, rgba(255,215,0,0.2) 0%, rgba(255,165,0,0.2) 100%);
    color: #ffd700;
}

/* Queue Panel */
.queue-panel {
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    padding: 15px;
}

.queue-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: #888;
}

/* YouTube styles kept for compatibility */
.yt-now-playing-container {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 0, 0, 0.2);
}

.yt-now-playing {
    display: flex;
    gap: 20px;
    align-items: center;
}

.yt-now-playing img {
    width: 160px;
    height: 90px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.yt-track-info {
    flex: 1;
}

.yt-title {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: #fff;
}

.yt-controls {
    display: flex;
    gap: 8px;
}

.yt-btn {
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.yt-btn:hover {
    background: linear-gradient(135deg, rgba(255,0,0,0.3) 0%, rgba(139,92,246,0.3) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255,0,0,0.2);
}

.youtube-add-form {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.yt-url-input {
    flex: 1;
    background: rgba(0,0,0,0.4);
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 14px 18px;
    color: white;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.yt-url-input:focus {
    outline: none;
    border-color: #ff0000;
    box-shadow: 0 0 20px rgba(255,0,0,0.2);
}

.yt-url-input::placeholder {
    color: rgba(255,255,255,0.4);
}

.yt-add-btn {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    border: none;
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(255,0,0,0.3);
}

.yt-add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255,0,0,0.4);
}

.yt-queue-info {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
}

.yt-queue-container {
    max-height: 200px;
    overflow-y: auto;
}

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

.vip-badge {
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    color: #000;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.vip-hint {
    color: #ffd700;
    font-size: 0.7rem;
}

.empty-queue {
    text-align: center;
    color: rgba(255,255,255,0.5);
    padding: 20px;
}

.queue-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(255,255,255,0.02) 100%);
    border-radius: 12px;
    margin-bottom: 10px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.2s ease;
}

.queue-item:hover {
    background: linear-gradient(135deg, rgba(255,0,0,0.1) 0%, rgba(139,92,246,0.1) 100%);
    border-color: rgba(255,255,255,0.1);
}

.queue-thumb {
    width: 80px;
    height: 45px;
    border-radius: 8px;
    object-fit: cover;
}

.queue-title {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.queue-remove {
    background: rgba(255,0,0,0.3);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.8rem;
}

.queue-remove:hover {
    background: rgba(255,0,0,0.5);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 15px;
}

.volume-control input[type="range"] {
    flex: 1;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(90deg, rgba(255,0,0,0.3), rgba(139,92,246,0.3));
    border-radius: 4px;
}

.volume-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #ff0000 0%, #ff4444 100%);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(255,0,0,0.4);
}

.crowd-mood-display {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mood-bar {
    flex: 1;
    height: 10px;
    background: rgba(0,0,0,0.3);
    border-radius: 5px;
    overflow: hidden;
}

.mood-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff4444, #ffaa00, #00ff00);
    transition: width 0.3s ease;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

.yt-loading {
    text-align: center;
    padding: 20px;
    color: rgba(255,255,255,0.6);
}

/* ================== CELEBRITY MODAL ================== */
.celebrity-content {
    padding: 10px 0;
}

.diamond-display {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    padding: 10px;
    background: linear-gradient(135deg, rgba(0,200,255,0.2), rgba(150,0,255,0.2));
    border-radius: 10px;
    margin-bottom: 20px;
}

.celeb-section-title {
    font-size: 16px;
    margin: 15px 0 10px;
    color: #fff;
}

.celeb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 15px;
}

.celeb-card {
    background: rgba(255,255,255,0.08);
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.celeb-card:hover {
    background: rgba(255,255,255,0.15);
    border-color: #ffd700;
    transform: translateY(-3px);
}

.celeb-card.premium {
    background: linear-gradient(135deg, rgba(100,0,200,0.3), rgba(200,0,100,0.3));
    border-color: rgba(200,100,255,0.4);
}

.celeb-card.premium:hover {
    border-color: #ff00ff;
    box-shadow: 0 0 20px rgba(255,0,255,0.3);
}

.celeb-card.superstar {
    background: linear-gradient(135deg, rgba(255,215,0,0.3), rgba(255,100,0,0.3));
    border-color: rgba(255,215,0,0.5);
    grid-column: span 3;
}

.celeb-card.superstar:hover {
    border-color: #ffd700;
    box-shadow: 0 0 30px rgba(255,215,0,0.4);
}

.celeb-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #000;
    padding: 3px 12px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
}

.celeb-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.celeb-name {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px;
}

.celeb-bonus {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 8px;
}

.celeb-cost {
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 8px;
    display: inline-block;
}

.celeb-cost.cash {
    background: rgba(0,200,0,0.3);
    color: #00ff00;
}

.celeb-cost.diamond {
    background: rgba(0,150,255,0.3);
    color: #00ddff;
}

@media (max-width: 600px) {
    .celeb-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .celeb-card.superstar {
        grid-column: span 2;
    }
}

/* ================== FURNITURE SHOP ENHANCED ================== */
.shop-currency-display {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 10px;
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    margin-bottom: 15px;
}

.currency-cash, .currency-diamonds {
    font-size: 18px;
    font-weight: bold;
}

.currency-cash {
    color: #00ff00;
}

.currency-diamonds {
    color: #00ddff;
}

#shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
    padding: 5px;
}

.shop-item {
    background: rgba(255,255,255,0.08);
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.shop-item:hover {
    background: rgba(255,255,255,0.15);
    border-color: #00ff00;
    transform: translateY(-3px);
}

.shop-item.premium {
    background: linear-gradient(135deg, rgba(100,0,200,0.3), rgba(200,0,100,0.3));
    border-color: rgba(150,100,255,0.4);
}

.shop-item.premium:hover {
    border-color: #ff00ff;
    box-shadow: 0 0 15px rgba(255,0,255,0.3);
}

.shop-item.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.shop-item.unaffordable {
    opacity: 0.6;
}

.shop-item .item-icon {
    font-size: 32px;
    margin-bottom: 6px;
}

.shop-item .item-name {
    font-weight: bold;
    font-size: 13px;
    margin-bottom: 4px;
}

.shop-item .item-cost {
    font-size: 12px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 4px;
}

.shop-item .item-cost.cash {
    background: rgba(0,200,0,0.3);
    color: #00ff00;
}

.shop-item .item-cost.diamond {
    background: rgba(0,150,255,0.3);
    color: #00ddff;
}

.shop-item .item-desc {
    font-size: 10px;
    color: rgba(255,255,255,0.6);
    line-height: 1.2;
}

.shop-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: rgba(255,255,255,0.5);
    font-size: 16px;
}

/* Sale Event Styles */
.shop-item.on-sale {
    border-color: #10b981 !important;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
    animation: salePulse 2s ease-in-out infinite;
}

@keyframes salePulse {
    0%, 100% { box-shadow: 0 0 10px rgba(16, 185, 129, 0.3); }
    50% { box-shadow: 0 0 20px rgba(16, 185, 129, 0.5); }
}

.sale-badge {
    display: inline-block;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-size: 8px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
    animation: saleFlash 1s ease-in-out infinite;
    vertical-align: middle;
}

@keyframes saleFlash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.original-price {
    text-decoration: line-through;
    color: rgba(255,255,255,0.4);
    font-size: 10px;
    margin-right: 4px;
}

.sale-price {
    color: #10b981;
    font-weight: bold;
    font-size: 13px;
}

.shop-tab.premium {
    background: linear-gradient(135deg, rgba(200,100,255,0.3), rgba(255,100,200,0.3));
}

.shop-tab.premium.active {
    background: linear-gradient(135deg, #9933ff, #ff33cc);
}

@media (max-width: 600px) {
    #shop-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .shop-currency-display {
        gap: 15px;
        font-size: 14px;
    }
}

/* ================== CELEBRITY BOOKING ================== */
.celeb-section-title {
    font-size: 14px;
    font-weight: 800;
    color: rgba(255,255,255,0.9);
    margin: 24px 0 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.celeb-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 640px) {
    .celeb-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.celeb-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 20px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.celeb-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    opacity: 0;
    transition: opacity 0.3s;
}

.celeb-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255,255,255,0.1);
    border-color: rgba(59,130,246,0.5);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 30px rgba(59,130,246,0.2);
}

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

.celeb-card.premium::before {
    background: linear-gradient(90deg, #a855f7, #ec4899);
}

.celeb-card.premium:hover {
    border-color: rgba(168,85,247,0.5);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 30px rgba(168,85,247,0.2);
}

.celeb-card.unavailable {
    opacity: 0.4;
    cursor: not-allowed;
    filter: grayscale(60%);
}

.celeb-card.unavailable:hover {
    transform: none;
    box-shadow: none;
}

.celeb-card.cant-afford {
    opacity: 0.5;
}

.celeb-photo-large {
    font-size: 40px;
    margin-bottom: 12px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.celeb-card .celeb-name {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.celeb-feature {
    font-size: 10px;
    color: #4ade80;
    margin-bottom: 10px;
    line-height: 1.4;
    min-height: 28px;
}

.celeb-availability {
    font-size: 9px;
    font-weight: 600;
    color: #fbbf24;
    margin-bottom: 10px;
    padding: 4px 10px;
    background: rgba(251,191,36,0.15);
    border-radius: 20px;
    display: inline-block;
}

.celeb-availability.available {
    color: #34d399;
    background: rgba(52,211,153,0.15);
    animation: pulse-available 2s infinite;
}

@keyframes pulse-available {
    0%, 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0.4); }
    50% { box-shadow: 0 0 0 6px rgba(52,211,153,0); }
}

.celeb-stats {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 10px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 12px;
}

.celeb-stats span {
    background: rgba(255,255,255,0.1);
    padding: 3px 8px;
    border-radius: 6px;
}

.celeb-cost {
    font-size: 13px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 12px;
    display: inline-block;
}

.celeb-cost.cash {
    color: #4ade80;
    background: linear-gradient(135deg, rgba(74,222,128,0.2), rgba(34,197,94,0.1));
    border: 1px solid rgba(74,222,128,0.3);
}

.celeb-cost.diamond, .celeb-cost.diamonds {
    color: #c084fc;
    background: linear-gradient(135deg, rgba(192,132,252,0.2), rgba(168,85,247,0.1));
    border: 1px solid rgba(192,132,252,0.3);
}

.current-booking {
    background: linear-gradient(135deg, rgba(34,197,94,0.15), rgba(16,185,129,0.1));
    border: 2px solid rgba(34,197,94,0.4);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.current-booking::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s infinite;
}

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

.booking-header {
    font-size: 12px;
    font-weight: 700;
    color: #34d399;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.booking-celeb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
}

.booking-celeb .celeb-photo {
    font-size: 36px;
}

.booking-celeb .celeb-name {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
}

.booking-feature {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    background: rgba(0,0,0,0.2);
    padding: 8px 16px;
    border-radius: 10px;
    display: inline-block;
}

.celeb-benefits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    margin-bottom: 10px;
    min-height: 24px;
}

.celeb-benefit {
    font-size: 9px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.9);
    white-space: nowrap;
}

.celeb-duration {
    font-size: 10px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 8px;
}

.diamond-only {
    font-size: 10px;
    color: #c084fc;
    font-weight: 600;
    margin-left: 8px;
}

/* ================== GLOBAL CHAT ================== */
.chat-dock-badge.hidden {
    display: none !important;
}

.chat-panel {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(20px) scale(0.95);
    width: 360px;
    height: 500px;
    background: rgba(15, 15, 30, 0.95);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    z-index: 95;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 50px rgba(0,0,0,0.5);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    pointer-events: none;
}

.chat-panel.hidden {
    display: flex;
    transform: translateX(-50%) translateY(20px) scale(0.95);
}

.chat-panel.open {
    transform: translateX(-50%) translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

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

.chat-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: white;
}

.chat-title i {
    font-size: 20px;
    color: #6366f1;
}

.online-count {
    font-size: 11px;
    font-weight: 500;
    color: #4ade80;
    background: rgba(74,222,128,0.15);
    padding: 3px 10px;
    border-radius: 10px;
}

.chat-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.chat-close:hover {
    background: rgba(239,68,68,0.5);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-welcome {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255,255,255,0.5);
}

.chat-welcome i {
    font-size: 48px;
    color: #fbbf24;
    margin-bottom: 12px;
    display: block;
}

.chat-welcome p {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    margin-bottom: 4px;
}

.chat-welcome span {
    font-size: 13px;
}

.chat-message {
    max-width: 85%;
    animation: msgSlide 0.3s ease;
}

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

.chat-message.mine {
    align-self: flex-end;
}

.msg-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.msg-name {
    font-size: 12px;
    font-weight: 700;
}

.msg-time {
    font-size: 10px;
    color: rgba(255,255,255,0.4);
}

.msg-text {
    background: rgba(255,255,255,0.1);
    padding: 10px 14px;
    border-radius: 16px;
    border-top-left-radius: 4px;
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    word-wrap: break-word;
    line-height: 1.4;
}

.chat-message.mine .msg-text {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-top-left-radius: 16px;
    border-top-right-radius: 4px;
}

.chat-message.mine .msg-header {
    justify-content: flex-end;
}

.chat-input-area {
    display: flex;
    gap: 10px;
    padding: 16px;
    background: rgba(255,255,255,0.05);
    border-top: 1px solid rgba(255,255,255,0.1);
}

#chat-input {
    flex: 1;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 12px 16px;
    color: white;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

#chat-input:focus {
    border-color: #6366f1;
}

#chat-input::placeholder {
    color: rgba(255,255,255,0.4);
}

#chat-send-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

#chat-send-btn:hover {
    transform: scale(1.05);
}

#chat-send-btn:active {
    transform: scale(0.95);
}

@media (max-width: 480px) {
    .chat-panel {
        width: calc(100% - 32px);
        height: 55vh;
        bottom: 80px;
    }
}

/* Online Count Button */
.online-count-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(74,222,128,0.15);
    border: none;
    padding: 4px 12px;
    border-radius: 12px;
    color: #4ade80;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.online-count-btn:hover {
    background: rgba(74,222,128,0.25);
}

.online-count-btn i {
    font-size: 10px;
    transition: transform 0.2s;
}

/* Online Users Panel */
.online-users-panel {
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    max-height: 200px;
    overflow-y: auto;
}

.online-users-panel.hidden {
    display: none;
}

.online-users-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.online-users-header i {
    color: #4ade80;
}

.online-users-list {
    padding: 8px;
}

.online-user-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.online-user-item:hover {
    background: rgba(255,255,255,0.1);
}

.online-user-item.is-me {
    background: rgba(99,102,241,0.15);
}

.online-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: white;
}

.online-user-name {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: white;
}

.you-badge {
    font-size: 9px;
    font-weight: 700;
    background: #6366f1;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
}

.online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 6px #4ade80;
}

.no-users {
    text-align: center;
    padding: 20px;
    color: rgba(255,255,255,0.4);
    font-size: 13px;
}

/* Clickable Name */
.msg-name.clickable {
    cursor: pointer;
    transition: opacity 0.2s;
}

.msg-name.clickable:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* User Action Menu */
.user-action-menu {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(20, 20, 40, 0.98);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    padding: 0;
    min-width: 200px;
    z-index: 100;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    animation: menuPop 0.2s ease;
}

@keyframes menuPop {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.user-action-menu.hidden {
    display: none;
}

.user-action-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.user-action-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.user-action-name {
    font-size: 15px;
    font-weight: 700;
    color: white;
}

.user-action-menu button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.9);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    text-align: left;
}

.user-action-menu button:hover {
    background: rgba(255,255,255,0.1);
}

.user-action-menu button i {
    font-size: 18px;
    width: 24px;
    color: #6366f1;
}

.user-action-menu button:last-child {
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
}

.user-action-menu button:last-child i {
    color: rgba(255,255,255,0.4);
}

/* Avatar Picker */
.avatar-picker-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.avatar-picker {
    background: rgba(20, 20, 40, 0.98);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    padding: 24px;
    max-width: 320px;
    animation: menuPop 0.2s ease;
}

.avatar-picker-title {
    font-size: 18px;
    font-weight: 700;
    color: white;
    text-align: center;
    margin-bottom: 20px;
}

.avatar-picker-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.avatar-option {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255,255,255,0.1);
    border: 2px solid transparent;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-option:hover {
    background: rgba(255,255,255,0.2);
    border-color: #6366f1;
    transform: scale(1.1);
}

/* Profile Modal */
.profile-modal-overlay,
.club-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
    padding: 20px;
}

.profile-modal,
.club-modal {
    background: rgba(20, 20, 40, 0.98);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 24px;
    padding: 0;
    width: 100%;
    max-width: 360px;
    animation: menuPop 0.25s ease;
    position: relative;
    overflow: hidden;
}

.profile-modal-close,
.club-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
}

.profile-modal-close:hover,
.club-modal-close:hover {
    background: rgba(239,68,68,0.5);
}

.profile-header {
    padding: 40px 24px 24px;
    text-align: center;
    background: linear-gradient(180deg, rgba(99,102,241,0.2) 0%, transparent 100%);
}

.profile-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    border: 3px solid rgba(255,255,255,0.2);
}

.profile-name {
    font-size: 22px;
    font-weight: 800;
    color: white;
    margin: 0 0 4px;
}

.profile-club {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin: 0;
}

.profile-you-badge {
    display: inline-block;
    margin-top: 12px;
    background: #6366f1;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 12px;
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(255,255,255,0.1);
    margin: 0;
}

.profile-stat {
    background: rgba(20, 20, 40, 0.98);
    padding: 16px 8px;
    text-align: center;
}

.profile-stat .stat-value {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: white;
}

.profile-stat .stat-label {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
}

.profile-social {
    display: flex;
    justify-content: center;
    gap: 32px;
    padding: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.social-stat {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}

.social-stat strong {
    color: white;
}

.profile-info {
    padding: 12px 24px;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.profile-actions,
.club-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px;
    background: rgba(0,0,0,0.2);
}

.profile-action-btn,
.club-action-btn {
    flex: 1;
    min-width: 100px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.profile-action-btn:hover,
.club-action-btn:hover {
    background: rgba(255,255,255,0.2);
}

.profile-action-btn.primary,
.club-action-btn.primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.profile-action-btn.primary:hover,
.club-action-btn.primary:hover {
    transform: scale(1.02);
}

/* Club Modal Specific */
.club-header {
    padding: 32px 24px;
    text-align: center;
    background: linear-gradient(180deg, rgba(236,72,153,0.2) 0%, transparent 100%);
}

.club-icon {
    font-size: 48px;
    color: #ec4899;
    margin-bottom: 12px;
}

.club-name {
    font-size: 20px;
    font-weight: 800;
    color: white;
    margin: 0 0 8px;
}

.club-level {
    background: rgba(255,255,255,0.1);
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
}

.club-preview {
    height: 120px;
    background: rgba(0,0,0,0.3);
    margin: 0 16px;
    border-radius: 12px;
    overflow: hidden;
}

.club-preview-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.3);
}

.club-preview-placeholder i {
    font-size: 36px;
    margin-bottom: 8px;
}

.club-preview-placeholder p {
    margin: 0;
    font-size: 12px;
}

.club-stats {
    display: flex;
    justify-content: space-around;
    padding: 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.club-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}

.club-stat i {
    font-size: 16px;
    color: #ec4899;
}

/* Friend Request Notifications */
.friend-notifications {
    position: fixed;
    top: 80px;
    right: 16px;
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 320px;
}

.friend-request-notif {
    background: rgba(20, 20, 40, 0.98);
    border: 1px solid rgba(99,102,241,0.3);
    border-radius: 16px;
    padding: 16px;
    animation: slideInRight 0.3s ease;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

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

.notif-content {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.notif-content > i {
    font-size: 32px;
    color: #6366f1;
}

.notif-text {
    display: flex;
    flex-direction: column;
}

.notif-text strong {
    color: white;
    font-size: 14px;
}

.notif-text span {
    color: rgba(255,255,255,0.6);
    font-size: 12px;
}

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

.notif-actions .accept-btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: 10px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: none;
    color: white;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: transform 0.2s;
}

.notif-actions .accept-btn:hover {
    transform: scale(1.02);
}

.notif-actions .decline-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.notif-actions .decline-btn:hover {
    background: rgba(239,68,68,0.3);
    color: #ef4444;
}

/* Club Preview Content */
.club-preview-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 16px;
    height: 100%;
}

.preview-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 12px;
}

.preview-item i {
    font-size: 24px;
    color: #ec4899;
    margin-bottom: 6px;
}

.preview-item span {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
}

/* Friend Celebration */
.friend-celebration {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.celebration-content {
    text-align: center;
    animation: celebratePop 0.5s ease;
}

@keyframes celebratePop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.celebration-emoji {
    font-size: 80px;
    animation: celebrateBounce 0.5s ease infinite alternate;
}

@keyframes celebrateBounce {
    from { transform: translateY(0); }
    to { transform: translateY(-20px); }
}

.celebration-content h3 {
    font-size: 28px;
    font-weight: 800;
    color: white;
    margin: 16px 0 8px;
}

.celebration-content p {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
}

/* Chat Header Actions */
.chat-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.my-profile-btn {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.my-profile-btn:hover {
    background: rgba(99,102,241,0.3);
    transform: scale(1.1);
}

.follower-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    background: linear-gradient(135deg, #ec4899, #f43f5e);
    color: white;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    animation: badgePulse 2s ease infinite;
}

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

.follower-badge.hidden {
    display: none;
}

/* New Follower Notification */
.new-follower-notif {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ec4899, #f43f5e);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 10px 40px rgba(236,72,153,0.4);
    z-index: 500;
    animation: followerNotifSlide 0.4s ease, followerNotifFade 4s ease forwards;
}

@keyframes followerNotifSlide {
    from { 
        opacity: 0;
        transform: translateX(-50%) translateY(-30px);
    }
    to { 
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes followerNotifFade {
    0%, 80% { opacity: 1; }
    100% { opacity: 0; }
}

.new-follower-notif i {
    font-size: 20px;
    animation: heartBeat 0.8s ease infinite;
}

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

/* ============================================
   ADMIN PANEL STYLES
   ============================================ */

.admin-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 900px;
    height: 85vh;
    max-height: 700px;
    background: rgba(15, 15, 30, 0.98);
    border: 1px solid rgba(239,68,68,0.3);
    border-radius: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    animation: adminSlideIn 0.3s ease;
    box-shadow: 0 25px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(239,68,68,0.2);
}

@keyframes adminSlideIn {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: linear-gradient(135deg, rgba(239,68,68,0.15), transparent);
}

.admin-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 800;
    color: white;
}

.admin-title i {
    font-size: 28px;
    color: #ef4444;
}

.admin-close {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.admin-close:hover {
    background: rgba(239,68,68,0.3);
}

.admin-tabs {
    display: flex;
    padding: 0 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    overflow-x: auto;
}

.admin-tab {
    padding: 16px 20px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}

.admin-tab:hover {
    color: white;
}

.admin-tab.active {
    color: #ef4444;
    border-bottom-color: #ef4444;
}

.admin-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

/* Admin Stats Grid */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

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

.admin-stat-card i {
    font-size: 36px;
    color: #ef4444;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-info .stat-value {
    font-size: 28px;
    font-weight: 800;
    color: white;
}

.stat-info .stat-label {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

/* Admin Sections */
.admin-section {
    margin-bottom: 24px;
}

.admin-section h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.admin-section h3 i {
    color: #ef4444;
}

/* Activity List */
.activity-list {
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    overflow: hidden;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

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

.activity-info strong {
    color: white;
    font-size: 13px;
    margin-right: 8px;
}

.activity-info span {
    color: rgba(255,255,255,0.6);
    font-size: 12px;
}

.activity-time {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
}

.activity-loading, .no-data {
    padding: 40px;
    text-align: center;
    color: rgba(255,255,255,0.4);
}

/* Users List */
.admin-search {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.admin-search i {
    color: rgba(255,255,255,0.4);
}

.admin-search input {
    flex: 1;
    background: none;
    border: none;
    color: white;
    font-size: 14px;
    outline: none;
}

.users-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
}

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

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

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

.user-info strong {
    display: block;
    color: white;
    font-size: 14px;
}

.user-info span {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

.user-uid {
    font-size: 10px;
    color: rgba(255,255,255,0.3);
    font-family: monospace;
}

.user-status {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
}

.user-status.online {
    background: rgba(34,197,94,0.2);
    color: #22c55e;
}

.user-status.offline {
    color: rgba(255,255,255,0.4);
}

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

/* Admin Buttons */
.admin-btn {
    padding: 10px 16px;
    border-radius: 10px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.admin-btn:hover {
    background: rgba(255,255,255,0.2);
}

.admin-btn.primary {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.admin-btn.primary:hover {
    transform: scale(1.02);
}

.admin-btn.danger {
    background: rgba(239,68,68,0.2);
    color: #ef4444;
}

.admin-btn.danger:hover {
    background: rgba(239,68,68,0.3);
}

.admin-btn.small {
    padding: 8px 12px;
    font-size: 12px;
}

/* Chat Moderation */
.chat-mod-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.chat-mod-header h3 {
    margin: 0;
}

.chat-messages-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
}

.chat-mod-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    padding: 12px 16px;
}

.chat-mod-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.chat-mod-content {
    flex: 1;
    min-width: 0;
}

.chat-mod-content strong {
    color: white;
    font-size: 13px;
}

.chat-mod-time {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    margin-left: 8px;
}

.chat-mod-content p {
    margin: 4px 0 0;
    color: rgba(255,255,255,0.7);
    font-size: 13px;
}

.chat-mod-uid {
    font-size: 10px;
    color: rgba(255,255,255,0.3);
    font-family: monospace;
}

/* Broadcast */
.broadcast-section {
    margin-bottom: 24px;
}

.broadcast-section h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.broadcast-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.broadcast-form select,
.broadcast-form input,
.broadcast-form textarea {
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.broadcast-form select:focus,
.broadcast-form input:focus,
.broadcast-form textarea:focus {
    border-color: #ef4444;
}

.broadcast-form textarea {
    resize: vertical;
    min-height: 80px;
}

.broadcast-history {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.broadcast-icon {
    font-size: 24px;
}

.broadcast-content {
    flex: 1;
}

.broadcast-content strong {
    color: white;
    font-size: 13px;
}

.broadcast-content p {
    margin: 4px 0 0;
    color: rgba(255,255,255,0.7);
    font-size: 13px;
}

.broadcast-content small {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
}

/* Settings */
.settings-section {
    background: rgba(255,255,255,0.03);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
}

.settings-section h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin: 0 0 16px;
}

.settings-section h3 i {
    color: #ef4444;
}

.setting-item {
    margin-bottom: 16px;
}

.setting-item label {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-size: 14px;
    cursor: pointer;
}

.setting-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #ef4444;
}

.setting-desc {
    margin: 4px 0 0 32px;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}

.admin-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.admin-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: 12px 16px;
}

.admin-item-info strong {
    display: block;
    color: white;
    font-size: 14px;
}

.admin-item-info small {
    font-size: 10px;
    color: rgba(255,255,255,0.3);
    font-family: monospace;
}

.admin-role {
    font-size: 11px;
    background: rgba(239,68,68,0.2);
    color: #ef4444;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
}

.you-badge {
    font-size: 11px;
    background: rgba(99,102,241,0.2);
    color: #6366f1;
    padding: 4px 12px;
    border-radius: 10px;
}

.add-admin-form {
    display: flex;
    gap: 8px;
}

.add-admin-form input {
    flex: 1;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    font-size: 13px;
    outline: none;
}

.danger-zone {
    border: 1px solid rgba(239,68,68,0.3);
    background: rgba(239,68,68,0.05);
}

.danger-zone h3 {
    color: #ef4444;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .admin-panel {
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }
    
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .admin-tabs {
        padding: 0 8px;
    }
    
    .admin-tab {
        padding: 12px 14px;
        font-size: 12px;
    }
    
    .admin-tab span {
        display: none;
    }
}

/* ===================== FRIENDS PANEL ===================== */
.friends-panel {
    position: fixed;
    right: 20px;
    bottom: 90px;
    width: 380px;
    max-height: 70vh;
    background: linear-gradient(135deg, rgba(30,30,40,0.98), rgba(20,20,30,0.98));
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    overflow: hidden;
}

.friends-panel.hidden {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    display: none !important;
}

.friends-panel.open {
    display: flex !important;
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.friends-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(139,92,246,0.3), rgba(168,85,247,0.2));
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.friends-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: white;
}

.friends-title i {
    font-size: 20px;
    color: #a78bfa;
}

.friends-count {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
}

.friends-close {
    background: rgba(255,255,255,0.1);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: all 0.2s;
}

.friends-close:hover {
    background: rgba(255,255,255,0.2);
    color: white;
}

.friends-tabs {
    display: flex;
    padding: 10px 12px;
    gap: 6px;
    background: rgba(0,0,0,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.friends-tab {
    flex: 1;
    padding: 10px 8px;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: rgba(255,255,255,0.6);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
}

.friends-tab:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.friends-tab.active {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    color: white;
}

.tab-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-badge.hidden {
    display: none;
}

.friends-search {
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0,0,0,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.friends-search i {
    color: rgba(255,255,255,0.4);
}

.friends-search input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-size: 13px;
    outline: none;
}

.friends-search input::placeholder {
    color: rgba(255,255,255,0.3);
}

.friends-content {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.friends-empty {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.5);
}

.friends-empty i {
    font-size: 48px;
    opacity: 0.3;
    display: block;
    margin-bottom: 16px;
}

.friends-empty p {
    margin-bottom: 8px;
    font-weight: 600;
}

.friends-empty span {
    font-size: 12px;
    opacity: 0.7;
}

.friends-tab-content {
    display: none;
}

.friends-tab-content.active {
    display: block;
}

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

/* Friend Item */
.friend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    transition: all 0.2s;
}

.friend-item:hover {
    background: rgba(255,255,255,0.1);
}

.friend-item.online {
    border-left: 3px solid #4ade80;
}

.friend-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

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

.friend-name {
    font-size: 14px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.online-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.friend-details {
    display: flex;
    gap: 8px;
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
}

.friend-level {
    color: #a78bfa;
    font-weight: 600;
    flex-shrink: 0;
}

.friend-club {
    overflow: hidden;
    text-overflow: ellipsis;
}

.friend-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.friend-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.friend-action-btn:hover {
    background: rgba(255,255,255,0.2);
    color: white;
}

.friend-action-btn.visit:hover { background: rgba(74,222,128,0.3); color: #4ade80; }
.friend-action-btn.gift:hover { background: rgba(251,191,36,0.3); color: #fbbf24; }
.friend-action-btn.message:hover { background: rgba(96,165,250,0.3); color: #60a5fa; }
.friend-action-btn.remove:hover { background: rgba(239,68,68,0.3); color: #ef4444; }
.friend-action-btn.visited { background: rgba(74,222,128,0.3); color: #4ade80; }

/* Request Item */
.request-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
}

.request-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.request-name {
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.request-time {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
}

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

.accept-btn, .decline-btn {
    padding: 8px 12px;
    border-radius: 8px;
    border: none;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.accept-btn {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: white;
}

.accept-btn:hover {
    transform: scale(1.05);
}

.decline-btn {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
}

.decline-btn:hover {
    background: rgba(239,68,68,0.3);
    color: #ef4444;
}

/* Gift Item */
.gift-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
}

.gift-item .gift-icon {
    font-size: 24px;
}

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

.gift-from {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}

.gift-reward {
    font-size: 11px;
    color: #4ade80;
    font-weight: 600;
}

.collect-btn {
    padding: 6px 12px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border: none;
    border-radius: 6px;
    color: #1a1a1a;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.collect-btn:hover {
    transform: scale(1.05);
}

/* Leaderboard Item */
.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
}

.leaderboard-item.is-me {
    background: rgba(139,92,246,0.2);
    border: 1px solid rgba(139,92,246,0.3);
}

.leaderboard-item .rank {
    font-size: 16px;
    min-width: 32px;
    text-align: center;
}

.leaderboard-item .avatar {
    font-size: 20px;
}

.leaderboard-item .player-info {
    flex: 1;
}

.leaderboard-item .name {
    font-size: 13px;
    font-weight: 600;
    color: white;
}

.leaderboard-item .stats {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255,255,255,0.4);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 14px;
    margin-bottom: 4px;
}

.empty-state span {
    font-size: 12px;
}

.empty-state.small {
    padding: 20px;
}

.empty-state.small p {
    font-size: 12px;
}

/* Gift Modal */
.gift-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
}

.gift-modal-content {
    background: linear-gradient(135deg, rgba(30,30,40,0.98), rgba(20,20,30,0.98));
    border-radius: 20px;
    padding: 24px;
    width: 320px;
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
}

.gift-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
}

.gift-modal-content h3 {
    text-align: center;
    margin-bottom: 20px;
    color: white;
    font-size: 16px;
}

.gift-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.gift-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px 12px;
    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;
}

.gift-option:hover {
    background: rgba(255,255,255,0.1);
    border-color: #a78bfa;
    transform: scale(1.03);
}

.gift-emoji {
    font-size: 28px;
}

.gift-label {
    font-size: 12px;
    color: white;
    font-weight: 600;
}

.gift-price {
    font-size: 11px;
    color: #4ade80;
    font-weight: 600;
}

/* Club Visit Modal */
.club-visit-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s;
}

.club-visit-modal.show {
    opacity: 1;
}

.club-visit-content {
    background: linear-gradient(135deg, rgba(30,30,40,0.98), rgba(20,20,30,0.98));
    border-radius: 24px;
    padding: 28px;
    width: 340px;
    border: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.club-visit-header {
    margin-bottom: 20px;
}

.club-visit-header i {
    font-size: 48px;
    color: #a78bfa;
    margin-bottom: 8px;
}

.club-visit-header h3 {
    color: white;
    font-size: 18px;
    margin-bottom: 4px;
}

.club-visit-header span {
    color: rgba(255,255,255,0.5);
    font-size: 12px;
}

.club-visit-stats {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.club-visit-stats .stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}

.club-visit-stats .stat i {
    color: #a78bfa;
}

.club-visit-rewards {
    background: rgba(74,222,128,0.1);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.club-visit-rewards h4 {
    color: white;
    font-size: 14px;
    margin-bottom: 10px;
}

.club-visit-rewards .rewards {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.club-visit-rewards .reward {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
}

.reward.cash { background: rgba(74,222,128,0.2); color: #4ade80; }
.reward.xp { background: rgba(96,165,250,0.2); color: #60a5fa; }
.reward.hype { background: rgba(251,146,60,0.2); color: #fb923c; }

.close-visit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.close-visit-btn:hover {
    transform: scale(1.02);
}

/* Gifts Section */
.gifts-section h4 {
    color: white;
    font-size: 13px;
    margin-bottom: 10px;
    padding-left: 4px;
}

.gift-types {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    margin-top: 10px;
}

.gift-type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 4px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.gift-type-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: #a78bfa;
}

.gift-type-btn .gift-icon {
    font-size: 20px;
}

.gift-type-btn .gift-name {
    font-size: 9px;
    color: rgba(255,255,255,0.7);
}

.gift-type-btn .gift-cost {
    font-size: 9px;
    color: #4ade80;
    font-weight: 600;
}

/* Mobile Responsive Friends */
@media (max-width: 480px) {
    .friends-panel {
        right: 10px;
        left: 10px;
        width: auto;
        bottom: 80px;
        max-height: 60vh;
    }
    
    .friend-actions {
        flex-wrap: wrap;
    }
    
    .gift-types {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* =========================================
   BADGE SHOP STYLES
   ========================================= */

/* Badge Defaults */
.club-badge {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* 1. Classic (Default) */
.badge-default {
    background: linear-gradient(135deg, rgba(30,30,50,0.9), rgba(20,20,35,0.95));
    border: 2px solid rgba(100,150,255,0.5);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

/* 2. Neon Pink */
.badge-neon-pink {
    background: rgba(20, 0, 10, 0.9);
    border: 2px solid #ff0066;
    box-shadow: 0 0 15px #ff0066, inset 0 0 10px rgba(255,0,102,0.3);
    animation: badge-flicker 2s infinite;
}
@keyframes badge-flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { box-shadow: 0 0 15px #ff0066, inset 0 0 10px rgba(255,0,102,0.3); }
    20%, 24%, 55% { box-shadow: none; }
}

/* 3. Gold VIP */
.badge-gold-vip {
    background: linear-gradient(135deg, #000, #1a1a00);
    border: 2px solid #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}
.badge-gold-vip .badge-name {
    background: linear-gradient(to right, #ffd700, #fff, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: badge-shimmer 3s linear infinite;
}
@keyframes badge-shimmer {
    to { background-position: 200% center; }
}

/* 4. Cyber Blue */
.badge-cyber-blue {
    background: #000510;
    border: 2px solid #00f3ff;
    box-shadow: 0 0 10px #00f3ff;
    position: relative;
}
.badge-cyber-blue::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(transparent 50%, rgba(0, 243, 255, 0.1) 50%);
    background-size: 100% 4px;
    pointer-events: none;
}
.badge-cyber-blue:hover {
    animation: badge-glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
}
@keyframes badge-glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

/* 5. Fire */
.badge-fire {
    background: linear-gradient(to bottom, #200000, #400000);
    border: 2px solid #ff4500;
    box-shadow: 0 -5px 20px rgba(255, 69, 0, 0.5);
}
.badge-fire::before {
    content: '🔥';
    position: absolute;
    right: -5px;
    top: -10px;
    font-size: 20px;
    animation: badge-float 2s ease-in-out infinite;
}

/* 6. Galaxy */
.badge-galaxy {
    background: linear-gradient(45deg, #2d1b4e, #1a0b2e);
    border: 2px solid #a855f7;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
    position: relative;
    overflow: hidden;
}
.badge-galaxy::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    box-shadow: 10px 10px 0 white, 40px 20px 0 white, 20px 50px 0 white;
    animation: badge-twinkle 3s infinite;
}
@keyframes badge-twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* 7. Rainbow */
.badge-rainbow {
    background: #111;
    border: 2px solid transparent;
    background-image: linear-gradient(#111, #111), linear-gradient(to right, red, orange, yellow, green, blue, indigo, violet); 
    background-origin: border-box; 
    background-clip: content-box, border-box;
    animation: badge-rotate-border 4s linear infinite;
}
@keyframes badge-rotate-border {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

/* 8. Ice Crystal */
.badge-ice-crystal {
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
    border: 2px solid #fff;
    box-shadow: 0 0 15px #bae6fd;
}
.badge-ice-crystal .badge-label { color: #0ea5e9 !important; }
.badge-ice-crystal .badge-name { color: #0369a1 !important; text-shadow: 0 0 5px rgba(255,255,255,0.8); }

/* 9. Matrix */
.badge-matrix {
    background: #000;
    border: 2px solid #0f0;
    box-shadow: 0 0 10px #0f0;
    font-family: monospace;
}
.badge-matrix .badge-label, .badge-matrix .badge-name {
    color: #0f0 !important;
    text-shadow: 0 0 5px #0f0;
}

/* 10. Diamond */
.badge-diamond {
    background: linear-gradient(135deg, #eef2ff, #c7d2fe);
    border: 2px solid #fff;
    box-shadow: 0 0 20px rgba(255,255,255,0.8), inset 0 0 20px rgba(255,255,255,0.5);
    position: relative;
}
.badge-diamond::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.8) 50%, transparent 60%);
    transform: rotate(45deg);
    animation: badge-shine 3s infinite;
}
@keyframes badge-shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    20%, 100% { transform: translateX(100%) rotate(45deg); }
}
.badge-diamond .badge-name {
    background: linear-gradient(to bottom, #1e1b4b, #4338ca);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* 11. Retro Arcade */
.badge-retro-arcade {
    background: #000;
    border: 2px solid #33ff00;
    box-shadow: 0 0 10px #33ff00, inset 0 0 20px rgba(51, 255, 0, 0.2);
    font-family: 'Courier New', monospace;
}
.badge-retro-arcade::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}
.badge-retro-arcade .badge-name { color: #33ff00 !important; text-shadow: 2px 2px 0px #003300; }

/* 12. Vaporwave */
.badge-vaporwave {
    background: linear-gradient(to bottom, #ff71ce, #01cdfe);
    border: 2px solid #fff;
    box-shadow: 0 0 15px rgba(255, 113, 206, 0.6);
}
.badge-vaporwave::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0; height: 50%;
    background: repeating-linear-gradient(to bottom, transparent 0%, transparent 2px, rgba(0,0,0,0.2) 3px);
    pointer-events: none;
}
.badge-vaporwave .badge-name { 
    color: #fff !important; 
    text-shadow: 2px 2px 0px #05ffa1; 
    font-style: italic;
}

/* 13. Toxic Slime */
.badge-toxic {
    background: #1a1a1a;
    border: 2px solid #76ff03;
    box-shadow: 0 0 15px #76ff03;
    overflow: visible;
}
.badge-toxic::before {
    content: '☣️';
    position: absolute;
    top: -15px; left: -10px;
    font-size: 20px;
    transform: rotate(-15deg);
}
.badge-toxic .badge-name { color: #76ff03 !important; text-shadow: 0 0 5px #76ff03; }

/* 14. Circuit Board */
.badge-circuit {
    background: #0a192f;
    border: 2px solid #64ffda;
    box-shadow: 0 0 10px rgba(100, 255, 218, 0.4);
    background-image: radial-gradient(#64ffda 1px, transparent 1px), radial-gradient(#64ffda 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
}
.badge-circuit .badge-name { color: #64ffda !important; font-family: monospace; letter-spacing: 1px; }

/* 15. Liquid Gold */
.badge-liquid-gold {
    background: linear-gradient(45deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    background-size: 400% 400%;
    border: 2px solid #fff;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    animation: badge-liquid 5s ease infinite;
}
@keyframes badge-liquid {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.badge-liquid-gold .badge-name { color: #5e4305 !important; text-shadow: 0 1px 0 rgba(255,255,255,0.5); }

/* 16. Cosmic Horror */
.badge-cosmic {
    background: #0f0518;
    border: 2px solid #4b0082;
    box-shadow: 0 0 20px #4b0082;
}
.badge-cosmic::after {
    content: '👁️';
    position: absolute;
    right: 5px; bottom: 5px;
    font-size: 14px;
    opacity: 0.5;
    animation: badge-pulse-eye 3s infinite;
}
@keyframes badge-pulse-eye { 0%,100%{opacity:0.3;} 50%{opacity:0.8;transform:scale(1.2);} }
.badge-cosmic .badge-name { color: #d8bfd8 !important; font-family: serif; }

/* 17. Kawaii Cloud */
.badge-kawaii {
    background: linear-gradient(to right, #ffc3a0, #ffafbd);
    border: 2px solid #fff;
    box-shadow: 0 4px 15px rgba(255, 175, 189, 0.6);
    border-radius: 20px;
}
.badge-kawaii::before {
    content: '☁️';
    position: absolute;
    left: 5px; top: -5px;
    font-size: 16px;
    animation: badge-float 3s ease-in-out infinite;
}
.badge-kawaii .badge-name { color: #fff !important; text-shadow: 1px 1px 0 rgba(0,0,0,0.1); font-weight: 900; }

/* 18. Heavy Metal */
.badge-metal {
    background: linear-gradient(to bottom, #2c3e50, #000000);
    border: 2px solid #95a5a6;
    box-shadow: 0 0 10px #000;
}
.badge-metal::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="4" height="4" viewBox="0 0 4 4"><path d="M1 3h1v1H1V3zm2-2h1v1H3V1z" fill="%23ffffff" fill-opacity="0.1"/></svg>');
}
.badge-metal .badge-name { color: #e74c3c !important; font-family: 'Impact', sans-serif; letter-spacing: 1px; text-transform: uppercase; }

/* 19. Holographic */
.badge-holo {
    background: linear-gradient(125deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #8f00ff);
    background-size: 400% 400%;
    border: 2px solid rgba(255,255,255,0.5);
    box-shadow: 0 0 15px rgba(255,255,255,0.4);
    animation: badge-holographic 6s linear infinite;
    opacity: 0.9;
}
@keyframes badge-holographic {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.badge-holo .badge-name { color: #fff !important; text-shadow: 0 0 2px rgba(0,0,0,0.5); mix-blend-mode: overlay; }

/* 20. Glitch Art */
.badge-glitch-art {
    background: #000;
    border: 2px solid #fff;
    position: relative;
}
.badge-glitch-art .badge-name {
    color: white;
    position: relative;
    animation: badge-glitch-text 2s infinite;
}
.badge-glitch-art .badge-name::before, .badge-glitch-art .badge-name::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}
.badge-glitch-art .badge-name::before {
    color: #ff00ff;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    transform: translate(-2px, -2px);
    animation: badge-glitch-shift-1 2s infinite linear alternate-reverse;
}
.badge-glitch-art .badge-name::after {
    color: #00ffff;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
    transform: translate(2px, 2px);
    animation: badge-glitch-shift-2 2s infinite linear alternate-reverse;
}
@keyframes badge-glitch-text {
    0% { transform: skew(0deg); }
    20% { transform: skew(-2deg); }
    40% { transform: skew(2deg); }
    60% { transform: skew(0deg); }
    80% { transform: skew(5deg); }
    100% { transform: skew(0deg); }
}
@keyframes badge-glitch-shift-1 { 0% { transform: translate(0); } 100% { transform: translate(-2px, -2px); } }
@keyframes badge-glitch-shift-2 { 0% { transform: translate(0); } 100% { transform: translate(2px, 2px); } }

/* Badge Shop Modal Items */
.badge-item {
    cursor: pointer;
    transition: all 0.2s;
}
.badge-item:hover {
    transform: translateY(-5px);
}
.badge-item.owned .badge-price {
    display: none;
}
.badge-item.owned::after {
    content: 'OWNED';
    display: block;
    text-align: center;
    font-size: 10px;
    font-weight: bold;
    color: #4ade80;
    margin-top: 5px;
}
.badge-item.active {
    border-color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
}

/* =========================================
   LOGO STYLES
   ========================================= */

.logo-nav {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 0 5px rgba(255, 0, 102, 0.5));
    transition: all 0.3s ease;
    display: block;
}
.logo-nav:hover {
    filter: drop-shadow(0 0 10px rgba(255, 0, 102, 0.8));
    transform: scale(1.05);
}

.logo-hero {
    height: 250px;
    width: auto;
    display: block;
    margin: 0 auto 20px auto;
    filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.6));
    animation: logo-float 4s ease-in-out infinite;
}

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

/* Mobile adjustments */
@media (max-width: 768px) {
    .logo-hero {
        height: 100px;
    }
    .logo-nav {
        height: 40px;
    }
}

/* =========================================
   HERO SPOTLIGHTS
   ========================================= */

.hero-spotlight {
    position: absolute;
    top: -20%;
    width: 300px;
    height: 150vh;
    background: linear-gradient(to bottom, rgba(255, 0, 102, 0.2) 0%, rgba(168, 85, 247, 0.1) 40%, transparent 100%);
    filter: blur(30px);
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
    transform-origin: top center;
    clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);
    mix-blend-mode: screen;
}

.hero-spotlight.left {
    left: 10%;
    transform: rotate(15deg);
    animation: spotlight-sway-left 10s ease-in-out infinite;
    background: linear-gradient(to bottom, rgba(0, 212, 255, 0.25) 0%, rgba(0, 212, 255, 0.05) 50%, transparent 100%);
}

.hero-spotlight.right {
    right: 10%;
    transform: rotate(-15deg);
    animation: spotlight-sway-right 12s ease-in-out infinite;
    background: linear-gradient(to bottom, rgba(255, 0, 102, 0.25) 0%, rgba(255, 0, 102, 0.05) 50%, transparent 100%);
}

@keyframes spotlight-sway-left {
    0%, 100% { transform: rotate(15deg) translateX(0); opacity: 0.3; }
    50% { transform: rotate(25deg) translateX(-50px); opacity: 0.5; }
}

@keyframes spotlight-sway-right {
    0%, 100% { transform: rotate(-15deg) translateX(0); opacity: 0.3; }
    50% { transform: rotate(-25deg) translateX(50px); opacity: 0.5; }
}

/* Fix Hero Section Spacing */
.hero-section {
    display: block;
    padding-top: 140px;
    padding-bottom: 80px;
    position: relative;
    overflow: visible;
    text-align: center;
}

.hero-content {
    z-index: 2;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-stats {
    margin-top: 30px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(0,0,0,0.3);
    padding: 15px 30px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
}

.scroll-indicator {
    position: relative;
    margin-top: 40px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}
.scroll-indicator:hover { opacity: 1; }

/* Ensure logo doesn't push content off screen on small heights */
@media (max-height: 800px) {
    .logo-hero {
        height: 180px; /* Reduce logo size on shorter screens */
        margin-bottom: 10px;
    }
    .hero-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }
}

/* =========================================
   NEW PROFILE MODAL
   ========================================= */

.profile-modal {
    padding: 0 !important;
    background: rgba(15, 15, 20, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    overflow: hidden;
    max-width: 400px !important;
    width: 90%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
}

.modal-close-floating {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.modal-close-floating:hover {
    background: rgba(255, 0, 0, 0.6);
    transform: rotate(90deg);
}

.profile-header {
    position: relative;
    height: 130px;
    margin-bottom: 45px;
}

.profile-cover {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff0066, #5c24ff);
    background-size: cover;
    background-position: center;
    position: relative;
}
.profile-cover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to top, rgba(15,15,20,1), transparent);
}

.edit-cover-btn {
    position: absolute;
    top: 15px;
    left: 15px; /* Moved to top left */
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 6px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: white;
    opacity: 0.8;
    transition: all 0.2s;
    z-index: 5;
}
.edit-cover-btn:hover { opacity: 1; background: rgba(0,0,0,0.6); }
.edit-cover-btn::after { content: 'Edit Cover'; }

/* Old profile avatar container removed - see new styles below */

.account-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid #0f0f14;
    object-fit: cover;
    background: #222;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.edit-avatar-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #3b82f6;
    border: 3px solid #0f0f14;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: transform 0.2s;
}
.edit-avatar-btn:hover { transform: scale(1.1); }

.profile-body {
    padding: 0 24px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.profile-identity {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.name-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.account-name {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin: 0;
    letter-spacing: 0.5px;
}

.edit-name-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 14px;
    opacity: 0.5;
    transition: opacity 0.2s;
}
.edit-name-btn:hover { opacity: 1; color: white; }

.account-email {
    display: block;
    font-size: 13px;
    color: #888;
}

/* Stats Grid */
.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.2s;
}
.stat-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 24px;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.2));
}

.stat-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.stat-value {
    font-size: 16px;
    font-weight: 800;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-label {
    font-size: 10px;
    color: #888;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Actions */
.profile-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-btn {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    transition: all 0.2s;
    letter-spacing: 0.5px;
}

.action-btn.shop {
    background: linear-gradient(135deg, #ff0066, #a855f7);
    color: white;
    box-shadow: 0 4px 20px rgba(255, 0, 102, 0.3);
}
.action-btn.shop:hover {
    box-shadow: 0 6px 25px rgba(255, 0, 102, 0.5);
    transform: translateY(-1px);
}

.action-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.action-btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
}

.action-btn.danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}
.action-btn.danger:hover {
    background: rgba(239, 68, 68, 0.2);
}

.profile-footer {
    margin-top: 5px;
    text-align: center;
}

.text-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 11px;
    cursor: pointer;
    text-decoration: underline;
}
.text-btn:hover { color: #888; }

/* VIP Status Styles */
.vip-active {
    display: inline-block;
    margin-top: 8px;
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    background: linear-gradient(135deg, #ff0066, #a855f7);
    color: white;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(255, 0, 102, 0.5);
}

.vip-inactive {
    display: inline-block;
    margin-top: 8px;
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-weight: bold;
}

/* =========================================
   FACEBOOK-STYLE PROFILE MODAL
   ========================================= */

.fb-profile-modal {
    padding: 0 !important;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%) !important;
    border-radius: 16px;
    overflow: hidden;
    max-width: 680px !important;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 25px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05);
}

.fb-profile-modal::-webkit-scrollbar {
    width: 6px;
}
.fb-profile-modal::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.2);
}
.fb-profile-modal::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 3px;
}

/* Cover Section */
.fb-cover-section {
    position: relative;
    margin-bottom: 20px;
}

.fb-cover {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 0 0 8px 8px;
}

.fb-cover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(26,26,46,1) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.fb-edit-cover {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0,0,0,0.6);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
    pointer-events: auto;
}
.fb-edit-cover:hover {
    background: rgba(0,0,0,0.8);
    transform: scale(1.02);
}

/* Profile Row */
.fb-profile-row {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    padding: 0 24px;
    margin-top: -60px;
    position: relative;
    z-index: 5;
    flex-wrap: wrap;
}

.fb-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.fb-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 5px solid #1a1a2e;
    object-fit: cover;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.fb-edit-avatar {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #3b82f6;
    border: 3px solid #1a1a2e;
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(59,130,246,0.4);
}
.fb-edit-avatar:hover {
    transform: scale(1.1);
    background: #2563eb;
}

.fb-profile-info {
    flex: 1;
    min-width: 200px;
    padding-bottom: 10px;
}

.fb-name-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.fb-name {
    font-size: 28px;
    font-weight: 800;
    color: white;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.fb-vip-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.fb-vip-badge.active {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1a1a2e;
    box-shadow: 0 4px 15px rgba(251,191,36,0.4);
    animation: vipGlow 2s ease-in-out infinite;
}
.fb-vip-badge.inactive {
    background: rgba(255,255,255,0.1);
    color: #888;
}

@keyframes vipGlow {
    0%, 100% { box-shadow: 0 4px 15px rgba(251,191,36,0.4); }
    50% { box-shadow: 0 4px 25px rgba(251,191,36,0.6); }
}

.fb-edit-name {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 16px;
    opacity: 0.6;
    transition: all 0.2s;
}
.fb-edit-name:hover {
    opacity: 1;
    color: white;
}

.fb-bio {
    color: #b0b0b0;
    font-size: 14px;
    margin: 8px 0;
}

.fb-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #666;
}

.fb-action-buttons {
    display: flex;
    gap: 10px;
    margin-left: auto;
    flex-wrap: wrap;
}

.fb-btn {
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.fb-btn.primary {
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    color: white;
    box-shadow: 0 4px 20px rgba(236,72,153,0.3);
}
.fb-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(236,72,153,0.4);
}
.fb-btn.secondary {
    background: rgba(255,255,255,0.08);
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
}
.fb-btn.secondary:hover {
    background: rgba(255,255,255,0.12);
}

/* Stats Bar */
.fb-stats-bar {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    margin: 20px 24px;
    background: rgba(255,255,255,0.03);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.06);
}

.fb-stat-item {
    text-align: center;
    padding: 10px 20px;
    position: relative;
}
.fb-stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 40px;
    width: 1px;
    background: rgba(255,255,255,0.08);
}

.fb-stat-value {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: white;
    line-height: 1.2;
}
.fb-stat-label {
    display: block;
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* Tabs */
.fb-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin: 0 24px;
}

.fb-tab {
    flex: 1;
    padding: 14px 20px;
    background: none;
    border: none;
    color: #888;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}
.fb-tab:hover {
    color: #ccc;
    background: rgba(255,255,255,0.02);
}
.fb-tab.active {
    color: #3b82f6;
}
.fb-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 3px 3px 0 0;
}

/* Tab Content */
.fb-tab-content {
    padding: 20px 24px;
}

/* Posts Section */
.fb-posts-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fb-create-post {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.06);
}

.fb-post-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    flex-shrink: 0;
}

.fb-post-input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 12px 20px;
    color: white;
    font-size: 14px;
    transition: all 0.2s;
}
.fb-post-input::placeholder {
    color: #666;
}
.fb-post-input:focus {
    outline: none;
    border-color: rgba(59,130,246,0.5);
    background: rgba(255,255,255,0.08);
}

.fb-post-btn {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}
.fb-post-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(59,130,246,0.3);
}

/* Posts Feed */
.fb-posts-feed {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fb-post {
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
    transition: all 0.2s;
}
.fb-post:hover {
    border-color: rgba(255,255,255,0.1);
}

.fb-post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 16px 12px;
}

.fb-post-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
}

.fb-post-author-info {
    flex: 1;
}

.fb-post-author-name {
    font-weight: 700;
    color: white;
    font-size: 14px;
}

.fb-post-time {
    font-size: 11px;
    color: #666;
}

.fb-post-body {
    padding: 0 16px 16px;
    color: #e0e0e0;
    font-size: 14px;
    line-height: 1.5;
}

.fb-post-actions {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.fb-reaction-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    background: none;
    border: none;
    color: #888;
    font-size: 13px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.fb-reaction-btn:hover {
    background: rgba(255,255,255,0.05);
    color: white;
}
.fb-reaction-btn.liked {
    color: #ef4444;
}
.fb-reaction-btn .count {
    font-weight: 600;
}

/* About Section */
.fb-about-section {
    padding: 10px 0;
}

.fb-about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.fb-about-card {
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.06);
    padding: 20px;
}

.fb-about-card h4 {
    margin: 0 0 16px 0;
    font-size: 15px;
    font-weight: 700;
    color: white;
}

.fb-about-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.fb-about-row:last-child {
    border-bottom: none;
}

.fb-about-row .label {
    color: #888;
    font-size: 13px;
}
.fb-about-row .value {
    color: white;
    font-weight: 600;
    font-size: 14px;
}

/* Achievements Section */
.fb-achievements-section {
    padding: 10px 0;
}

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

.fb-achievement {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    transition: all 0.2s;
}
.fb-achievement:hover {
    transform: translateY(-3px);
    border-color: rgba(255,255,255,0.1);
}
.fb-achievement.locked {
    opacity: 0.4;
    filter: grayscale(1);
}
.fb-achievement.unlocked {
    background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(139,92,246,0.1));
    border-color: rgba(59,130,246,0.3);
}

.fb-achievement-icon {
    font-size: 36px;
    margin-bottom: 10px;
    display: block;
}

.fb-achievement-name {
    font-size: 12px;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
}

.fb-achievement-desc {
    font-size: 10px;
    color: #888;
}

/* Empty State */
.fb-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}
.fb-empty-state .icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}
.fb-empty-state p {
    margin: 0;
    font-size: 14px;
}

/* Profile Footer */
.fb-profile-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.2);
}

.fb-footer-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}
.fb-footer-btn.danger {
    background: rgba(239,68,68,0.1);
    color: #ef4444;
    border: 1px solid rgba(239,68,68,0.2);
}
.fb-footer-btn.danger:hover {
    background: rgba(239,68,68,0.2);
}
.fb-footer-btn.muted {
    background: none;
    color: #666;
}
.fb-footer-btn.muted:hover {
    color: #999;
}

/* Responsive */
@media (max-width: 640px) {
    .fb-profile-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: -50px;
    }
    .fb-avatar {
        width: 110px;
        height: 110px;
    }
    .fb-profile-info {
        text-align: center;
    }
    .fb-name-row {
        justify-content: center;
    }
    .fb-action-buttons {
        margin-left: 0;
        justify-content: center;
        width: 100%;
    }
    .fb-stats-bar {
        flex-wrap: wrap;
        gap: 10px;
    }
    .fb-stat-item {
        padding: 8px 12px;
    }
    .fb-stat-item:not(:last-child)::after {
        display: none;
    }
    .fb-about-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   MODERN PROFILE MODAL - Redesigned
   ========================================= */

.profile-modal-container {
    width: 100%;
    max-width: 900px;
    max-height: 92vh;
    background: #0f0f14;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    z-index: 9001;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
}

.profile-modal-container::-webkit-scrollbar {
    width: 6px;
}

.profile-modal-container::-webkit-scrollbar-track {
    background: transparent;
}

.profile-modal-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

/* Close Button */
.profile-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.profile-close-btn:hover {
    background: #ff3b30;
    border-color: #ff3b30;
    transform: rotate(90deg);
}

/* Header Section */
.profile-header-section {
    position: relative;
    flex-shrink: 0;
    background: #0f0f14;
}

.profile-cover {
    height: 200px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    background-size: cover;
    background-position: center;
    position: relative;
}

.profile-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(15, 15, 20, 1) 100%);
}

.profile-cover-edit {
    position: absolute;
    bottom: 70px;
    right: 20px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 10;
}

.profile-cover-edit:hover {
    background: rgba(255, 0, 102, 0.8);
    border-color: transparent;
}

/* Identity Row */
.profile-identity {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 0 24px 20px;
    margin-top: -75px;
    position: relative;
    z-index: 10;
    text-align: center;
}

.profile-avatar-container {
    position: relative !important;
    flex-shrink: 0;
    width: 150px !important;
    height: 150px;
    margin: 0 auto 10px auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a1a2e, #2d2d44);
    border: 6px solid #0f0f14;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    position: relative;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.profile-avatar img[src]:not([src=""]) {
    display: block;
}

.profile-avatar img[src]:not([src=""]) + .profile-avatar-fallback {
    display: none;
}

.profile-avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.profile-avatar-edit {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #3a3b3c;
    color: white;
    border: 2px solid #0f0f14;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s;
}

.profile-avatar-edit:hover {
    background: #ff0066;
    transform: scale(1.1);
}

.profile-level-badge {
    position: absolute;
    top: 0;
    right: -8px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #ff0066, #ff3388);
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(255, 0, 102, 0.4);
}

.profile-name-section {
    width: 100%;
    padding-bottom: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-display-name {
    font-size: 32px;
    font-weight: 800;
    color: white;
    margin: 0 0 4px;
    font-family: 'Inter', sans-serif;
    line-height: 1.2;
}

.profile-username {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.45);
    margin: 0 0 8px;
}

.profile-role {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(255, 0, 102, 0.15);
    border: 1px solid rgba(255, 0, 102, 0.25);
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    color: #ff6699;
}

.profile-quick-actions {
    position: absolute;
    right: 24px;
    bottom: 20px;
    display: flex;
    gap: 8px;
}

.pqa-btn {
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.pqa-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.pqa-btn.pqa-primary {
    background: linear-gradient(135deg, #ff0066, #ff3388);
}

.pqa-btn.pqa-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 102, 0.4);
}

/* Content Area - Two Column Layout */
.profile-content-area {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
    background: #0f0f14;
}

/* Sidebar */
.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    order: 1;
}

/* Main Content */
.profile-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
    order: 2;
}

/* Cards */
.profile-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 20px;
}

.profile-card-title {
    font-size: 14px;
    font-weight: 700;
    color: white;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-card-title i {
    color: #ff0066;
}

.profile-bio {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0 0 16px;
}

.profile-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-detail-item i {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.4);
    width: 20px;
}

.profile-detail-item > div {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 14px;
    color: white;
    font-weight: 500;
}

/* Stats Grid */
.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.profile-stat {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 14px;
    text-align: center;
}

.profile-stat .stat-value {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: white;
    font-family: 'Orbitron', sans-serif;
}

.profile-stat .stat-label {
    display: block;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    margin-top: 4px;
    letter-spacing: 0.5px;
}

/* Highlights */
.profile-highlights {
    display: flex;
    gap: 12px;
}

.highlight-item {
    flex: 1;
    background: linear-gradient(135deg, rgba(255, 0, 102, 0.1), rgba(102, 126, 234, 0.1));
    border: 1px solid rgba(255, 0, 102, 0.15);
    border-radius: 12px;
    padding: 14px;
    text-align: center;
}

.highlight-icon {
    font-size: 20px;
    display: block;
    margin-bottom: 4px;
}

.highlight-value {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: white;
    font-family: 'Orbitron', sans-serif;
}

.highlight-label {
    display: block;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    margin-top: 2px;
}

/* Quick Links */
.profile-links {
    padding: 12px;
}

.profile-link-btn {
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 10px;
    transition: all 0.2s;
    text-align: left;
}

.profile-link-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: white;
}

.profile-link-btn i {
    font-size: 18px;
    width: 24px;
}

.profile-link-btn.logout {
    color: #ff4444;
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 20px;
    border-radius: 0 0 10px 10px;
}

.profile-link-btn.logout:hover {
    background: rgba(255, 68, 68, 0.1);
}

/* Create Post Card */
.create-post-card {
    padding: 16px;
}

.create-post-top {
    display: flex;
    gap: 12px;
}

.create-post-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2a2a3e, #3a3a4e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    overflow: hidden;
}

.create-post-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.create-post-top textarea {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 12px 18px;
    color: white;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    resize: none;
    outline: none;
    transition: all 0.2s;
}

.create-post-top textarea:focus {
    border-color: rgba(255, 0, 102, 0.4);
    background: rgba(255, 255, 255, 0.07);
}

.create-post-top textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.post-image-preview {
    margin-top: 12px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    display: none;
}

.post-image-preview.has-image {
    display: block;
}

.post-image-preview img {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
}

.remove-preview {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.create-post-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.post-add-options {
    display: flex;
    gap: 4px;
}

.post-add-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.post-add-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.post-add-btn:nth-child(1):hover { color: #45bd62; }
.post-add-btn:nth-child(2):hover { color: #f7b928; }

.post-submit-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #ff0066, #ff3388);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.post-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 102, 0.4);
}

.post-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Posts Feed */
.posts-feed-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
}

.feed-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.feed-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: white;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feed-header h3 i {
    color: #ff0066;
}

.posts-container {
    max-height: 400px;
    overflow-y: auto;
}

.no-posts-message {
    text-align: center;
    padding: 50px 20px;
    color: rgba(255, 255, 255, 0.35);
}

.no-posts-message i {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
    opacity: 0.5;
}

.no-posts-message p {
    font-size: 15px;
    margin: 0 0 4px;
    color: rgba(255, 255, 255, 0.5);
}

.no-posts-message span {
    font-size: 13px;
}

/* Single Post Item */
.post-item {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.post-item:last-child {
    border-bottom: none;
}

.post-author-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.post-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2a2a3e, #3a3a4e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    overflow: hidden;
}

.post-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-author-info {
    flex: 1;
}

.post-author-name {
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.post-time {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.post-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    margin-bottom: 12px;
    white-space: pre-wrap;
}

.post-image {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 12px;
    cursor: pointer;
}

.post-reactions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
    gap: 8px;
}

.reactions-summary {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
}

.reaction-icons-display {
    display: flex;
}

.reaction-icons-display span {
    margin-right: -3px;
}

.reaction-btns {
    display: flex;
    gap: 2px;
    flex-wrap: wrap;
}

.react-btn {
    padding: 5px 7px;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.15s;
}

.react-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.15);
}

.react-btn.active {
    background: rgba(255, 0, 102, 0.15);
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-modal-container {
        max-width: 100%;
        max-height: 95vh;
        border-radius: 16px 16px 0 0;
        margin-top: auto;
    }
    
    .profile-content-area {
        grid-template-columns: 1fr;
        padding: 16px;
    }
    
    .profile-sidebar {
        order: 2;
    }
    
    .profile-main {
        order: 1;
    }
    
    .profile-identity {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 16px 20px;
    }
    
    .profile-avatar-container {
        width: 90px;
        margin: -60px auto 10px auto;
    }
    
    .profile-avatar {
        width: 90px;
        height: 90px;
    }
    
    .profile-name-section {
        text-align: center;
        align-items: center;
        padding-bottom: 0;
    }
    
    .profile-display-name {
        font-size: 22px;
    }
    
    .profile-quick-actions {
        position: static;
        width: 100%;
        justify-content: center;
        margin-top: 12px;
    }
    
    .profile-cover {
        height: 140px;
    }
    
    .profile-stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .profile-stat {
        padding: 10px 8px;
    }
    
    .profile-stat .stat-value {
        font-size: 16px;
    }
}

/* ================== VISIT MODE BANNER ================== */
#visit-mode-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(90deg, #8b5cf6, #a855f7);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 9999;
    color: white;
    font-family: 'Outfit', sans-serif;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

#visit-mode-banner .visit-banner-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

#visit-mode-banner .visit-icon {
    font-size: 24px;
}

#visit-mode-banner .visit-text {
    font-size: 15px;
}

#visit-mode-banner .visit-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

#visit-mode-banner .visit-banner-right {
    display: flex;
    gap: 10px;
}

#visit-mode-banner .visit-gift-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

#visit-mode-banner .visit-gift-btn:hover {
    transform: scale(1.05);
}

#visit-mode-banner .visit-back-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

#visit-mode-banner .visit-back-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

body.visit-mode-active {
    padding-top: 50px;
}

body.visit-mode-active #game-container {
    top: 50px !important;
}

/* ================== VISIT CLUB MODAL ================== */
.visit-club-container {
    background: linear-gradient(180deg, #12121a 0%, #0a0a10 100%);
    border-radius: 24px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
}

.visit-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: all 0.2s;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.visit-close-btn:hover {
    background: #ff3b30;
    border-color: #ff3b30;
}

/* Club Header */
.visit-club-header {
    position: relative;
}

.visit-club-banner {
    height: 140px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    background-size: cover;
    background-position: center;
    position: relative;
}

.visit-club-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(18, 18, 26, 1) 100%);
}

.visit-live-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 59, 48, 0.9);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: livePulse 1.5s infinite;
}

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

.visit-club-info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 20px 16px;
    margin-top: -35px;
    position: relative;
    z-index: 10;
}

.visit-club-avatar {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: 4px solid #12121a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.visit-club-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.visit-club-details {
    flex: 1;
}

.visit-club-name {
    font-size: 24px;
    font-weight: 800;
    color: white;
    margin: 0 0 4px;
}

.visit-club-owner {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 8px;
}

.visit-club-level {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    color: #1a1a2e;
}

/* Stats Grid */
.visit-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 0 20px 16px;
}

.visit-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
}

.visit-stat .stat-icon {
    font-size: 20px;
}

.visit-stat .stat-icon.guests { color: #00d9ff; }
.visit-stat .stat-icon.hype { color: #ff6b35; }
.visit-stat .stat-icon.furniture { color: #a855f7; }
.visit-stat .stat-icon.earnings { color: #22c55e; }

.visit-stat .stat-content {
    display: flex;
    flex-direction: column;
}

.visit-stat .stat-value {
    font-size: 16px;
    font-weight: 700;
    color: white;
}

.visit-stat .stat-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
}

/* Preview Area */
.visit-preview-area {
    height: 180px;
    margin: 0 20px 16px;
    background: linear-gradient(135deg, #1a1025 0%, #120a18 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}

.visit-preview-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
}

.visit-preview-placeholder i {
    font-size: 48px;
    margin-bottom: 8px;
}

.visit-preview-placeholder p {
    font-size: 13px;
}

/* Preview content */
.visit-preview-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    padding: 12px;
    gap: 8px;
}

.preview-furniture-item {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.preview-furniture-item span {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

.preview-guests {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.preview-guest {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    animation: guestBounce 2s infinite ease-in-out;
}

.preview-guest:nth-child(2n) {
    animation-delay: 0.3s;
    background: linear-gradient(135deg, #4ecdc4, #44a8a0);
}

.preview-guest:nth-child(3n) {
    animation-delay: 0.6s;
    background: linear-gradient(135deg, #a855f7, #9333ea);
}

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

/* Activity Feed */
.visit-activity {
    padding: 0 20px 16px;
}

.visit-activity h3 {
    font-size: 14px;
    font-weight: 700;
    color: white;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.visit-activity h3 i {
    color: #ffd700;
}

.visit-activity-feed {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 100px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.activity-item i {
    font-size: 16px;
    color: #00d9ff;
}

.activity-item.cash i { color: #22c55e; }
.activity-item.hype i { color: #ff6b35; }
.activity-item.guest i { color: #a855f7; }

.activity-time {
    margin-left: auto;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
}

/* Action Buttons */
.visit-actions {
    display: flex;
    gap: 12px;
    padding: 16px 20px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

    .visit-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.visit-action-btn.fullscreen {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    flex: 1;
}

.visit-action-btn.fullscreen:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
}

.visit-action-btn.gift {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    flex: 1;
}

.visit-action-btn.gift:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
}

.visit-action-btn.back {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    flex: 1;
}

.visit-action-btn.back:hover {
    background: rgba(255, 255, 255, 0.15);
}

.reward-amount {
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-size: 12px;
}

.visit-action-btn.like {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.visit-action-btn.like:hover {
    background: rgba(255, 59, 48, 0.15);
    border-color: rgba(255, 59, 48, 0.3);
    color: #ff6b6b;
}

.visit-action-btn.like.liked {
    background: rgba(255, 59, 48, 0.2);
    border-color: #ff3b30;
    color: #ff6b6b;
}

/* Responsive */
@media (max-width: 600px) {
    .visit-club-container {
        max-height: 95vh;
        border-radius: 20px 20px 0 0;
    }
    
    .visit-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .visit-preview-area {
        height: 140px;
    }
    
    .visit-actions {
        flex-direction: column;
    }
    
    .visit-action-btn.reward {
        flex: 1;
    }
}

/* ============================================
   COMPETITIVE DAILY REWARDS SYSTEM STYLES
   ============================================ */

/* Daily Section Container */
.daily-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.section-title {
    font-size: 16px;
    font-weight: 700;
    color: white;
}

.streak-display {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: white;
}

/* Login Reward Button */
.claim-login-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: all 0.3s;
    animation: pulse-glow 2s infinite;
}

.claim-login-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(34, 197, 94, 0.4);
}

.claim-login-btn span:first-child {
    font-size: 18px;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
}

.claim-login-btn .reward-preview {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(34, 197, 94, 0.3); }
    50% { box-shadow: 0 0 40px rgba(34, 197, 94, 0.6); }
}

.login-claimed {
    text-align: center;
    padding: 12px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 10px;
    color: #22c55e;
    font-weight: 600;
}

/* Week Progress */
.week-progress {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    gap: 6px;
}

.day-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.day-box.completed {
    background: rgba(34, 197, 94, 0.2);
    border-color: #22c55e;
}

.day-box.today {
    background: rgba(139, 92, 246, 0.2);
    border-color: #8b5cf6;
    animation: today-pulse 2s infinite;
}

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

.day-num {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
}

.day-icon {
    font-size: 20px;
    margin-top: 4px;
}

/* Bonus Wheel Section */
.wheel-section {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.1));
    border-color: rgba(139, 92, 246, 0.3);
}

.spins-display {
    background: rgba(139, 92, 246, 0.3);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: #c4b5fd;
}

.spin-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 800;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.spin-btn:hover:not(.disabled) {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
}

.spin-btn.disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
}

.multiplier-active {
    margin-top: 10px;
    padding: 8px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
    color: white;
    animation: multiplier-glow 1s infinite alternate;
}

@keyframes multiplier-glow {
    from { box-shadow: 0 0 10px rgba(245, 158, 11, 0.5); }
    to { box-shadow: 0 0 25px rgba(239, 68, 68, 0.7); }
}

/* Reset Timer */
.reset-timer {
    text-align: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    margin-bottom: 12px;
}

/* Missions Header */
.missions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 14px;
    font-weight: 700;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 12px;
}

.progress-count {
    background: rgba(34, 197, 94, 0.2);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    color: #22c55e;
}

/* Mission Tiers */
.mission-tier {
    margin-bottom: 12px;
}

.tier-label {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    margin-bottom: 8px;
}

/* Mission Items */
.mission-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

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

.mission-item.completed {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
}

.mission-icon {
    font-size: 28px;
    width: 40px;
    text-align: center;
}

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

.mission-name {
    font-weight: 700;
    color: white;
    font-size: 14px;
}

.mission-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
}

.mission-progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-top: 8px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.mission-progress-text {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}

.mission-rewards {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.reward-cash {
    font-weight: 700;
    color: #22c55e;
    font-size: 14px;
}

.reward-diamonds {
    font-size: 12px;
    color: #8b5cf6;
}

.mission-check {
    font-size: 24px;
}

/* All Complete Bonus */
.all-complete-bonus {
    text-align: center;
    padding: 16px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(139, 92, 246, 0.2));
    border: 2px solid #22c55e;
    border-radius: 12px;
    font-weight: 700;
    color: white;
    font-size: 16px;
    animation: complete-glow 2s infinite;
}

@keyframes complete-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(34, 197, 94, 0.3); }
    50% { box-shadow: 0 0 40px rgba(139, 92, 246, 0.5); }
}

/* Reward Popup */
.challenge-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    background: rgba(0, 0, 0, 0.7);
    transition: opacity 0.3s ease;
    pointer-events: auto;
}

.challenge-popup.show {
    opacity: 1;
}

.challenge-popup .reward-popup {
    background: linear-gradient(135deg, #1a1a2e, #2d1b4e);
    border: 2px solid rgba(139, 92, 246, 0.5);
    border-radius: 20px;
    padding: 30px 40px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    min-width: 300px;
    max-width: 380px;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    position: relative;
}

.challenge-popup.show .reward-popup {
    transform: scale(1);
}

.reward-header {
    margin-bottom: 20px;
}

.reward-icon {
    font-size: 60px;
    display: block;
    margin-bottom: 10px;
    animation: bounce 0.6s infinite alternate;
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-10px); }
}

.reward-title {
    font-size: 24px;
    font-weight: 900;
    color: #fbbf24;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.streak-badge {
    font-size: 14px;
    color: #f59e0b;
    margin-top: 5px;
}

.mission-name {
    color: rgba(255, 255, 255, 0.7);
}

.reward-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reward-item {
    font-size: 20px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 10px;
}

.reward-item.cash {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.reward-item.xp {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.reward-item.diamonds {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
}

.reward-item.bonus {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(239, 68, 68, 0.2));
    color: #fbbf24;
    font-size: 14px;
}

/* Wheel Popup */
.wheel-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    background: rgba(0, 0, 0, 0.7);
    transition: opacity 0.3s ease;
}

.wheel-popup.show {
    opacity: 1;
}

.wheel-result {
    background: linear-gradient(135deg, #1a1a2e, #2d1b4e);
    border: 3px solid #8b5cf6;
    border-radius: 20px;
    padding: 40px 60px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.wheel-popup.show .wheel-result {
    transform: scale(1);
}

.wheel-spin-text {
    font-size: 28px;
    font-weight: 900;
    color: white;
    animation: spin-text 0.5s infinite;
}

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

.wheel-prize-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 900;
    color: white;
    margin: 0 auto 15px;
    animation: prize-pop 0.5s ease;
}

@keyframes prize-pop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.wheel-prize-text {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
}

.wheel-prize-value {
    font-size: 32px;
    font-weight: 900;
    color: #fbbf24;
}

/* Reward Popup Buttons */
.reward-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.reward-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.reward-collect-btn {
    margin-top: 20px;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 800;
    color: white;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s;
}

.reward-collect-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
}


.popup-mission-name {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* Challenge Toast Notification */
.challenge-toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: linear-gradient(135deg, #1a1a2e, #2d1b4e);
    border: 2px solid rgba(34, 197, 94, 0.5);
    border-radius: 12px;
    padding: 12px 24px;
    color: white;
    font-size: 14px;
    text-align: center;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    max-width: 90%;
}

.challenge-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.challenge-toast strong {
    color: #22c55e;
    display: block;
    margin-bottom: 4px;
}

/* ===================== EDIT MODE EFFECTS ===================== */
#edit-mode-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 900;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#edit-mode-overlay.active {
    opacity: 1;
}

#edit-mode-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 4px solid;
    border-image: linear-gradient(90deg, #8b5cf6, #ec4899, #f59e0b, #22c55e, #8b5cf6) 1;
    animation: editBorderPulse 2s linear infinite;
}

@keyframes editBorderPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.edit-mode-banner {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.95), rgba(168, 85, 247, 0.95));
    padding: 12px 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.5);
    animation: bannerBounce 0.5s ease-out;
}

@keyframes bannerBounce {
    0% { transform: translateX(-50%) translateY(-20px); opacity: 0; }
    50% { transform: translateX(-50%) translateY(5px); }
    100% { transform: translateX(-50%) translateY(0); opacity: 1; }
}

.edit-mode-banner .edit-icon {
    font-size: 24px;
    animation: iconSwing 1s ease-in-out infinite;
}

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

.edit-mode-banner span:nth-child(2) {
    font-size: 16px;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.edit-mode-banner .edit-hint {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

/* Pulsing cursor when in edit mode */
body.edit-mode-active {
    cursor: crosshair;
}

body.edit-mode-active canvas {
    cursor: crosshair !important;
}
