/* ============================================
   SPUSH - Playful & Cartoonish Theme
   ============================================ */

/* Font loaded via link tag in HTML for non-blocking */

:root {
    --primary: #7C3AED;
    --primary-light: #A78BFA;
    --primary-dark: #5B21B6;
    --secondary: #F59E0B;
    --secondary-light: #FCD34D;
    --accent: #EC4899;
    --accent-light: #F9A8D4;
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;

    --bg: #FFF7ED;
    --bg-card: #FFFFFF;
    --bg-dark: #1E1B4B;
    --text: #1E1B4B;
    --text-light: #6B7280;
    --text-white: #FFFFFF;

    --radius: 20px;
    --radius-sm: 12px;
    --radius-full: 9999px;
    --shadow: 0 4px 20px rgba(124, 58, 237, 0.15);
    --shadow-lg: 0 8px 40px rgba(124, 58, 237, 0.2);
    --shadow-card: 0 2px 12px rgba(0,0,0,0.08);

    --tier-gold: #F59E0B;
    --tier-purple: #7C3AED;
    --tier-blue: #3B82F6;
    --tier-green: #10B981;
    --tier-teal: #14B8A6;
    --tier-orange: #F97316;
    --tier-gray: #9CA3AF;
    --tier-newcomer: #D1D5DB;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============================================
   Background Decorations
   ============================================ */
body::before {
    content: '';
    position: fixed;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    bottom: -100px;
    left: -100px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

/* ============================================
   Typography
   ============================================ */
h1 { font-size: 2.5rem; font-weight: 900; }
h2 { font-size: 1.8rem; font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   Layout
   ============================================ */
.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

.page-header {
    text-align: center;
    padding: 20px 0;
}

/* ============================================
   Cards
   ============================================ */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-card);
    margin-bottom: 16px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

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

.card-accent {
    border-color: var(--primary-light);
}

.card-megaphone {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--text-white);
    border: none;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    border-radius: var(--radius-full);
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 6px 25px rgba(124, 58, 237, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--bg);
    color: var(--primary);
    border: 2px solid var(--primary-light);
}

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

.btn-success {
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, var(--secondary), #D97706);
    color: white;
}

.btn-block {
    width: 100%;
}

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

.btn-lg {
    padding: 18px 36px;
    font-size: 1.2rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

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

.form-label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #E5E7EB;
    border-radius: var(--radius-sm);
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.form-input.error {
    border-color: var(--danger);
}

.form-input.valid {
    border-color: var(--success);
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 6px;
}

.form-error {
    font-size: 0.8rem;
    color: var(--danger);
    margin-top: 6px;
    font-weight: 600;
}

/* ============================================
   Avatar Picker
   ============================================ */
.avatar-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin: 12px 0;
}

.avatar-option {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    border: 3px solid #E5E7EB;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 4px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.avatar-option:hover {
    border-color: var(--primary-light);
    transform: scale(1.05);
}

.avatar-option.selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
    background: rgba(124, 58, 237, 0.05);
}

.avatar-option img,
.avatar-option svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.avatar-display {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 58, 237, 0.1);
    border: 3px solid var(--primary-light);
    flex-shrink: 0;
}

.avatar-display img,
.avatar-display svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.avatar-display.large {
    width: 96px;
    height: 96px;
}

/* ============================================
   Country Selector
   ============================================ */
.country-select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #E5E7EB;
    border-radius: var(--radius-sm);
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    background: white;
    cursor: pointer;
}

.country-flag {
    font-size: 1.5rem;
    line-height: 1;
}

/* ============================================
   Social Power Display
   ============================================ */
.power-display {
    text-align: center;
    padding: 20px;
}

.power-number {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.power-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 4px;
}

.power-gained {
    display: inline-block;
    background: var(--success);
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    animation: popIn 0.4s ease;
}

/* ============================================
   Ranking Tiers
   ============================================ */
.tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.tier-gold { background: linear-gradient(135deg, #F59E0B, #D97706); color: white; }
.tier-purple { background: linear-gradient(135deg, #7C3AED, #5B21B6); color: white; }
.tier-blue { background: linear-gradient(135deg, #3B82F6, #2563EB); color: white; }
.tier-green { background: linear-gradient(135deg, #10B981, #059669); color: white; }
.tier-teal { background: linear-gradient(135deg, #14B8A6, #0D9488); color: white; }
.tier-orange { background: linear-gradient(135deg, #F97316, #EA580C); color: white; }
.tier-gray { background: linear-gradient(135deg, #9CA3AF, #6B7280); color: white; }
.tier-newcomer { background: #E5E7EB; color: #6B7280; }

.tier-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    background: white;
    border-left: 5px solid;
    box-shadow: var(--shadow-card);
}

.tier-card.mine {
    border: 2px solid var(--primary);
    box-shadow: var(--shadow);
}

/* ============================================
   Task Items
   ============================================ */
.task-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: var(--radius-sm);
    background: white;
    margin-bottom: 10px;
    border: 2px solid #F3F4F6;
    transition: all 0.3s ease;
    cursor: pointer;
}

.task-item:hover:not(.completed) {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-card);
}

.task-item.completed {
    opacity: 0.6;
    background: #F9FAFB;
}

.task-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(124, 58, 237, 0.1);
    flex-shrink: 0;
}

.task-item.completed .task-icon {
    background: rgba(16, 185, 129, 0.1);
}

.task-info {
    flex: 1;
}

.task-name {
    font-weight: 700;
    font-size: 1rem;
}

.task-desc {
    font-size: 0.8rem;
    color: var(--text-light);
}

.task-points {
    font-weight: 800;
    color: var(--primary);
    font-size: 0.9rem;
    white-space: nowrap;
}

.task-item.completed .task-points {
    color: var(--success);
}

.task-check {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 3px solid #D1D5DB;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.task-item.completed .task-check {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

/* ============================================
   Megaphone
   ============================================ */
.megaphone-icon {
    font-size: 4rem;
    display: block;
    text-align: center;
    margin-bottom: 12px;
    animation: megaphonePulse 2s ease-in-out infinite;
}

.megaphone-live {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.megaphone-live::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: pulse 3s ease-in-out infinite;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--danger);
    color: white;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: blink 1s ease-in-out infinite;
}

.countdown-timer {
    font-size: 3rem;
    font-weight: 900;
    margin: 16px 0;
}

.megaphone-message {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-card);
}

.megaphone-message .message-text {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.6;
    margin-top: 12px;
}

.megaphone-message .message-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.megaphone-textarea {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: var(--radius-sm);
    font-family: 'Nunito', sans-serif;
    font-size: 1.1rem;
    resize: vertical;
    background: rgba(255,255,255,0.15);
    color: white;
}

.megaphone-textarea::placeholder {
    color: rgba(255,255,255,0.6);
}

.megaphone-textarea:focus {
    outline: none;
    border-color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.2);
}

.char-count {
    text-align: right;
    font-size: 0.8rem;
    opacity: 0.8;
    margin-top: 4px;
}

/* ============================================
   Navigation
   ============================================ */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 2px solid #F3F4F6;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
    z-index: 100;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 16px;
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

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

.nav-item .nav-icon {
    font-size: 1.4rem;
}

.nav-item.active .nav-icon {
    transform: scale(1.1);
}

/* Megaphone center button */
.nav-item.megaphone-btn {
    position: relative;
    top: -20px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

.nav-item.megaphone-btn .nav-icon {
    font-size: 1.8rem;
}

.nav-item.megaphone-btn span:last-child {
    display: none;
}

/* ============================================
   Streak
   ============================================ */
.streak-display {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--secondary);
}

.streak-flame {
    font-size: 1.3rem;
    animation: flicker 1s ease-in-out infinite alternate;
}

/* ============================================
   History Items
   ============================================ */
.history-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: white;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    box-shadow: var(--shadow-card);
}

.history-item .message-content {
    flex: 1;
}

.history-item .timestamp {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 8px;
}

/* ============================================
   User Row
   ============================================ */
.user-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-row .username {
    font-weight: 700;
}

/* ============================================
   Tabs
   ============================================ */
.tab-bar {
    display: flex;
    gap: 4px;
    background: #F3F4F6;
    border-radius: var(--radius-full);
    padding: 4px;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: var(--radius-full);
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    background: transparent;
    color: var(--text-light);
    transition: all 0.3s ease;
}

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

/* ============================================
   Splash / Landing
   ============================================ */
.splash-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.splash-logo {
    font-size: 5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    letter-spacing: -2px;
}

.splash-tagline {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 40px;
}

.splash-megaphone {
    font-size: 6rem;
    margin-bottom: 20px;
    animation: megaphoneBounce 2s ease-in-out infinite;
}

.auth-container {
    width: 100%;
    max-width: 400px;
}

.auth-toggle {
    display: flex;
    gap: 4px;
    background: #F3F4F6;
    border-radius: var(--radius-full);
    padding: 4px;
    margin-bottom: 24px;
}

.auth-toggle button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: var(--radius-full);
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    background: transparent;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.auth-toggle button.active {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-card);
}

/* ============================================
   Loading & Empty States
   ============================================ */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #E5E7EB;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 12px;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.empty-state .empty-icon {
    font-size: 4rem;
    margin-bottom: 12px;
}

/* ============================================
   Toast Notification
   ============================================ */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: var(--bg-dark);
    color: white;
    padding: 14px 24px;
    border-radius: var(--radius-full);
    font-weight: 700;
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    box-shadow: var(--shadow-lg);
    max-width: 90%;
    text-align: center;
}

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

.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.warning { background: var(--warning); }

/* ============================================
   Animations
   ============================================ */
@keyframes spin {
    to { transform: rotate(360deg); }
}

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

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

@keyframes megaphoneBounce {
    0%, 100% { transform: translateY(0) rotate(-10deg); }
    50% { transform: translateY(-15px) rotate(10deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes flicker {
    0% { transform: scale(1) rotate(-5deg); }
    100% { transform: scale(1.1) rotate(5deg); }
}

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

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

.animate-in {
    animation: slideUp 0.5s ease forwards;
}

/* ============================================
   Utility
   ============================================ */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.hidden { display: none !important; }
.w-full { width: 100%; }

/* Bottom nav spacing */
.page-content {
    padding-bottom: 90px;
}

/* ============================================
   Globe Dashboard
   ============================================ */

/* Stats Bar */
.stats-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #F3F4F6;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.stats-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.stats-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.bar-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--primary-light);
    flex-shrink: 0;
}

.bar-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bar-username {
    font-weight: 800;
    font-size: 0.9rem;
}

.bar-power {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.bar-power-num {
    font-weight: 900;
    font-size: 1.2rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bar-power-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
}

.bar-streak {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    color: var(--secondary);
    font-size: 0.9rem;
}

.bar-checkin {
    font-size: 0.75rem !important;
    padding: 6px 14px !important;
}

/* Globe Layout */
.globe-layout {
    display: flex;
    padding-top: 60px;
    min-height: calc(100vh - 60px);
    background: #0a0a2e;
    position: relative;
}

.globe-wrapper {
    flex: 1;
    position: relative;
    min-height: 500px;
}

#globeContainer {
    width: 100%;
    height: calc(100vh - 60px);
}

#globeContainer canvas {
    outline: none;
}

/* Globe Loading */
.globe-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #0a0a2e;
    color: white;
    z-index: 200;
}

.globe-loading .spinner {
    border-top-color: var(--primary-light);
}

/* Globe Markers */
.globe-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    pointer-events: auto;
}

.globe-marker:hover {
    transform: scale(1.3);
    z-index: 10;
}

.globe-marker-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    background: rgba(124, 58, 237, 0.3);
}

.globe-marker-me .globe-marker-avatar {
    border-color: var(--secondary);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.6);
}

.globe-marker-label {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-top: 2px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

.globe-marker-flag {
    font-size: 0.7rem;
}

.globe-marker-name {
    font-size: 0.65rem;
    font-weight: 700;
    color: white;
}

.globe-marker-highlighted {
    transform: scale(1.5);
    z-index: 20;
}

.globe-marker-highlighted .globe-marker-avatar {
    border-color: var(--secondary);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.8), 0 0 40px rgba(124, 58, 237, 0.4);
    animation: markerPulse 1s ease-in-out infinite;
}

@keyframes markerPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(245, 158, 11, 0.8), 0 0 40px rgba(124, 58, 237, 0.4); }
    50% { box-shadow: 0 0 30px rgba(245, 158, 11, 1), 0 0 60px rgba(124, 58, 237, 0.6); }
}

/* User Highlight Card */
.user-highlight {
    position: absolute;
    bottom: 100px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-lg);
    z-index: 30;
    max-width: 320px;
    border: 2px solid var(--primary-light);
}

.highlight-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
}

.highlight-inner {
    display: flex;
    align-items: center;
    gap: 16px;
}

.highlight-info {
    flex: 1;
}

.highlight-name {
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.power-number-sm {
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.power-label-sm {
    font-size: 0.7rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
}

.highlight-animate {
    animation: slideUp 0.4s ease;
}

/* Leaderboard Panel */
.leaderboard-panel {
    width: 300px;
    background: rgba(10, 10, 46, 0.9);
    backdrop-filter: blur(10px);
    border-left: 1px solid rgba(167, 139, 250, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.leaderboard-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(167, 139, 250, 0.2);
}

.leaderboard-header h3 {
    color: white;
    font-size: 1rem;
}

.leaderboard-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.lb-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.lb-row:hover {
    background: rgba(124, 58, 237, 0.15);
    border-left-color: var(--primary-light);
}

.lb-row-active {
    background: rgba(124, 58, 237, 0.25) !important;
    border-left-color: var(--secondary) !important;
}

.lb-row-me {
    background: rgba(245, 158, 11, 0.1);
}

.lb-rank {
    width: 28px;
    text-align: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.lb-rank-num {
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--text-light);
}

.lb-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 2px solid rgba(255,255,255,0.2);
    flex-shrink: 0;
}

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

.lb-name {
    font-weight: 700;
    font-size: 0.85rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lb-power {
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--primary-light);
    flex-shrink: 0;
}

/* Tasks Collapse (below globe) */
.tasks-collapse {
    background: #0d0d35;
    border-top: 1px solid rgba(167, 139, 250, 0.2);
    padding-bottom: 80px;
}

.tasks-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: none;
    border: none;
    color: white;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.tasks-toggle:hover {
    background: rgba(124, 58, 237, 0.1);
}

.tasks-arrow {
    font-size: 0.8rem;
    color: var(--primary-light);
    transition: transform 0.3s ease;
}

.tasks-panel {
    padding: 0 24px 16px;
    max-width: 600px;
    margin: 0 auto;
}

.tasks-panel .task-item {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
    color: white;
}

.tasks-panel .task-item:hover:not(.completed) {
    border-color: var(--primary-light);
    background: rgba(255,255,255,0.08);
}

.tasks-panel .task-desc {
    color: rgba(255,255,255,0.5);
}

.tasks-panel .task-points {
    color: var(--primary-light);
}

.tasks-panel .task-item.completed .task-points {
    color: var(--success);
}

/* Megaphone Float Banner */
.megaphone-float {
    position: fixed;
    bottom: 75px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 40;
    animation: slideUp 0.5s ease;
}

.megaphone-float-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.5);
    white-space: nowrap;
    transition: transform 0.2s ease;
}

.megaphone-float-inner:hover {
    transform: scale(1.05);
}

.megaphone-float-arrow {
    font-size: 1.1rem;
}

/* ============================================
   Responsive
   ============================================ */
@media (min-width: 768px) {
    .container {
        max-width: 520px;
    }
}

/* Globe layout responsive */
@media (max-width: 768px) {
    .globe-layout {
        flex-direction: column;
    }

    .globe-wrapper {
        min-height: 400px;
    }

    #globeContainer {
        height: 400px;
    }

    .leaderboard-panel {
        width: 100%;
        max-height: 350px;
        border-left: none;
        border-top: 1px solid rgba(167, 139, 250, 0.2);
    }

    .user-highlight {
        bottom: 20px;
        left: 10px;
        right: 10px;
        max-width: none;
    }

    .megaphone-float {
        bottom: 70px;
    }
}

/* ============================================
   Scrollbar
   ============================================ */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 3px;
}
