/* ========== HAN TOKEN V2 - MODERN CSS FRAMEWORK ========== */

:root {
    --primary: #00d084;
    --primary-dark: #00a86b;
    --primary-light: #00ff9f;
    --secondary: #1a2e1f;
    --dark: #0a1a0f;
    --darker: #050d08;
    
    --surface: rgba(255, 255, 255, 0.95);
    --surface-dark: rgba(10, 26, 15, 0.95);
    --glass: rgba(0, 208, 132, 0.1);
    --glass-strong: rgba(0, 208, 132, 0.2);
    --border: rgba(0, 208, 132, 0.3);
    
    --text-primary: #ffffff;
    --text-secondary: #b8d4c2;
    --text-muted: #7a9b85;
    --text-dark: #1a2e1f;
    
    --success: #00d084;
    --warning: #ffc107;
    --error: #dc3545;
    --info: #17a2b8;
    
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-strong: 0 20px 60px rgba(0, 0, 0, 0.15);
    --shadow-green: 0 8px 32px rgba(0, 208, 132, 0.2);
    
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    --gradient-surface: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    --gradient-dark: linear-gradient(135deg, var(--dark) 0%, var(--secondary) 100%);
    
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-size-5xl: 3rem;
    
    --duration-fast: 0.2s;
    --duration-normal: 0.3s;
    --duration-slow: 0.6s;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    
    --z-background: -1;
    --z-content: 1;
    --z-sidebar: 10;
    --z-header: 20;
    --z-modal: 30;
    --z-tooltip: 40;
}

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

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--gradient-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    font-feature-settings: 'liga' 1, 'kern' 1;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.bg-container {
    position: fixed;
    top: 0;
    left: 0;
  width: 100%;
    height: 100%;
    z-index: var(--z-background);
    overflow: hidden;
}

.bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-dark);
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
}

.bg-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary);
    border-radius: 50%;
    animation: float linear infinite;
}

.particle:nth-child(odd) {
    background: var(--primary-light);
    animation-duration: 25s;
}

.particle:nth-child(even) {
    animation-duration: 30s;
}

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

@keyframes float {
    0% { 
        transform: translateY(100vh) translateX(0px) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { 
        transform: translateY(-100px) translateX(50px) rotate(180deg);
        opacity: 0;
    }
}

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

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

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

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

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 208, 132, 0.3); }
    50% { box-shadow: 0 0 40px rgba(0, 208, 132, 0.6); }
}

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

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.fade-in { animation: fadeIn 0.6s var(--ease) forwards; }
.slide-left { animation: slideInLeft 0.6s var(--ease) forwards; }
.slide-right { animation: slideInRight 0.6s var(--ease) forwards; }

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.header {
  position: sticky;
  top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-header);
    background: var(--surface-dark);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: var(--space-sm) 0;
    transition: all var(--duration-normal) var(--ease);
}

.header.scrolled {
    background: rgba(10, 26, 15, 0.98);
    box-shadow: var(--shadow);
}

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

.logo-section {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 0 10px var(--primary));
    animation: pulse 3s ease-in-out infinite;
}

.brand-title {
    font-size: var(--font-size-xl);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.nav {
    display: none;
    gap: var(--space-lg);
}

.nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--duration-normal) var(--ease);
  position: relative;
    padding: var(--space-xs) var(--space-sm);
    border-radius: 8px;
}

.nav a:hover, .nav a.active {
    color: var(--primary);
    background: var(--glass);
}

.wallet-section {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--duration-normal) var(--ease);
    position: relative;
    overflow: hidden;
    font-size: var(--font-size-sm);
    border: none;
    cursor: pointer;
    justify-content: center;
}

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

.btn-primary {
    background: var(--gradient-primary);
    color: var(--dark);
    box-shadow: var(--shadow-green);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 208, 132, 0.3);
}

.btn-secondary {
    background: var(--glass);
    color: var(--text-primary);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--glass-strong);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #00ff9f 100%);
    color: var(--dark);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning) 0%, #ffed4e 100%);
    color: var(--dark);
}

.btn-error {
    background: linear-gradient(135deg, var(--error) 0%, #ff6b9d 100%);
    color: white;
}

.btn-sm {
    padding: calc(var(--space-xs) * 0.75) var(--space-sm);
    font-size: var(--font-size-xs);
}

.btn-lg {
    padding: var(--space-md) var(--space-lg);
    font-size: var(--font-size-lg);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
    font-size: var(--font-size-sm);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
    padding: var(--space-sm);
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--glass);
    color: var(--text-primary);
    font-size: var(--font-size-base);
    transition: all var(--duration-normal) var(--ease);
    backdrop-filter: blur(10px);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 208, 132, 0.1);
    background: var(--glass-strong);
}

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

.form-help {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

.form-error {
    color: var(--error);
    font-size: var(--font-size-xs);
    margin-top: var(--space-xs);
}

.card {
    background: var(--gradient-surface);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    transition: all var(--duration-normal) var(--ease);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 208, 132, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease);
}

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

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

.card-header {
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border);
}

.card-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--space-xs);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.card-subtitle {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.card-body {
    position: relative;
    z-index: 2;
}

.card-footer {
    margin-top: var(--space-md);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border);
}

.main-container {
    position: relative;
    min-height: calc(100vh - 80px);
    display: flex;
}

.content-container {
    flex: 1;
    padding: var(--space-lg);
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.page-header {
    margin-bottom: var(--space-xl);
    text-align: center;
}

.page-title {
    font-size: var(--font-size-4xl);
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.02em;
}

.page-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.map-container {
    flex: 1;
    position: relative;
    z-index: var(--z-content);
}

#map {
    width: 100%;
    height: calc(100vh - 80px);
    position: relative;
    border-radius: 0;
}

.sidebar {
    width: 400px;
    background: var(--surface-dark);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--border);
    z-index: var(--z-sidebar);
    position: relative;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

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

.sidebar::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 2px;
}

.sidebar-content {
    padding: var(--space-lg);
    height: 100%;
}

.sidebar-section {
    margin-bottom: var(--space-xl);
}

.sidebar-section h2 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.sidebar-section h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}

.stat-item {
    text-align: center;
    padding: var(--space-sm);
    background: var(--glass);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all var(--duration-normal) var(--ease);
}

.stat-item:hover {
    background: var(--glass-strong);
    transform: scale(1.02);
}

.stat-number {
    font-size: var(--font-size-xl);
    font-weight: 800;
    color: var(--primary);
    display: block;
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.airdrop-tabs {
    display: flex;
    background: var(--glass);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: var(--space-md);
}

.tab-btn {
    flex: 1;
    padding: var(--space-sm);
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 500;
    border-radius: 8px;
    transition: all var(--duration-normal) var(--ease);
    cursor: pointer;
}

.tab-btn.active {
    background: var(--primary);
    color: var(--dark);
    font-weight: 600;
}

.airdrop-list {
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.airdrop-list::-webkit-scrollbar {
    width: 4px;
}

.airdrop-list::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 2px;
}

.airdrop-item {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: var(--space-md);
    margin-bottom: var(--space-sm);
    transition: all var(--duration-normal) var(--ease);
    cursor: pointer;
}

.airdrop-item:hover {
    background: var(--glass-strong);
    border-color: var(--primary);
    transform: translateX(4px);
}

.airdrop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xs);
}

.airdrop-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: var(--font-size-base);
}

.airdrop-status {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: rgba(0, 208, 132, 0.2);
    color: var(--primary-light);
}

.status-upcoming {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.status-completed {
    background: rgba(108, 117, 125, 0.2);
    color: #6c757d;
}

.airdrop-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xs);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.airdrop-detail {
    display: flex;
    justify-content: space-between;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--glass);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
}

.skeleton {
    background: linear-gradient(90deg, var(--glass) 25%, var(--glass-strong) 50%, var(--glass) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
    height: 20px;
    margin-bottom: var(--space-xs);
}

.map-controls {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    z-index: var(--z-sidebar);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.map-control-btn {
    width: 44px;
    height: 44px;
    background: var(--surface-dark);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease);
    font-size: var(--font-size-lg);
}

.map-control-btn:hover {
    background: var(--glass-strong);
    border-color: var(--primary);
    transform: scale(1.05);
}

.status-bar {
    position: absolute;
    bottom: var(--space-md);
    left: var(--space-md);
    right: 420px;
    z-index: var(--z-sidebar);
    background: var(--surface-dark);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: var(--space-sm) var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    animation: pulse 2s ease-in-out infinite;
}

.mobile-menu-btn {
    display: none;
}

.leaflet-container {
    background: var(--dark) !important;
    font-family: inherit !important;
}

.leaflet-control-container {
    font-family: inherit !important;
}

.leaflet-popup-content-wrapper {
    background: var(--surface-dark) !important;
    color: var(--text-primary) !important;
    border-radius: 12px !important;
    border: 1px solid var(--border) !important;
    backdrop-filter: blur(10px);
}

.leaflet-popup-tip {
    background: var(--surface-dark) !important;
    border: 1px solid var(--border) !important;
}

.leaflet-control-zoom a {
    background: var(--surface-dark) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border) !important;
    backdrop-filter: blur(10px);
    font-family: inherit !important;
}

.leaflet-control-zoom a:hover {
    background: var(--glass-strong) !important;
    border-color: var(--primary) !important;
}

@media (min-width: 768px) {
    .nav {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: none;
    }
}

@media (max-width: 1024px) {
    .sidebar {
        width: 350px;
    }
    
    .status-bar {
        right: 370px;
    }
    
    .content-container {
        padding: var(--space-md);
    }
}

/* Activity Section Improvements */
.activity-section {
    margin-top: var(--space-lg);
}

.activity-section .section-header {
    margin-bottom: var(--space-md);
}

.activity-list {
    max-height: 300px;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        top: 80px;
        right: -400px;
        width: 350px;
        height: calc(100vh - 80px);
        transition: right var(--duration-slow) var(--ease);
        z-index: var(--z-modal);
        box-shadow: var(--shadow-strong);
    }
    
    .sidebar.open {
        right: 0;
    }
    
    .sidebar-overlay {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: calc(var(--z-modal) - 1);
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--duration-slow) var(--ease);
    }
    
    .sidebar-overlay.active {
        opacity: 1;
        pointer-events: all;
    }
    
    .status-bar {
        right: var(--space-md);
        flex-wrap: wrap;
        gap: var(--space-sm);
    }
    
    .mobile-menu-btn {
        display: flex !important;
    }
    
    .content-container {
        padding: var(--space-sm);
    }
    
    .page-title {
        font-size: var(--font-size-3xl);
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0 var(--space-sm);
    }
    
    .sidebar {
        width: 100vw;
        right: -100vw;
    }
    
    .status-bar {
        left: var(--space-sm);
        right: var(--space-sm);
        font-size: var(--font-size-xs);
    }
    
    .brand-title {
        font-size: var(--font-size-lg);
    }
    
    .page-title {
        font-size: var(--font-size-2xl);
    }
    
    .card {
        padding: var(--space-sm);
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-contrast: high) {
    :root {
        --border: rgba(0, 208, 132, 0.6);
        --glass: rgba(0, 208, 132, 0.2);
        --text-secondary: #ffffff;
    }
}

*:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.btn:focus, .form-input:focus, .form-textarea:focus, .form-select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 208, 132, 0.3);
}

.app-loading {
    overflow: hidden;
}

.app-loading::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--dark) 0%, var(--darker) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.app-loading::after {
    content: '🚀 HAN Token Loading...';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 600;
    z-index: 10001;
    animation: pulse 2s ease-in-out infinite;
}

.app-loading .main-content,
.app-loading .header,
.app-loading .sidebar {
    opacity: 0;
    visibility: hidden;
}

.app-loaded {
    opacity: 1;
    transition: opacity 0.5s ease;
}

.app-loaded .main-content,
.app-loaded .header,
.app-loaded .sidebar {
    opacity: 1;
    visibility: visible;
    animation: fadeInUp 0.8s ease-out;
}

.app-error::after {
    content: '❌ Loading Error - Please Refresh';
    color: #ff4757;
}

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

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

/* ========== MAP PAGE SPECIFIC STYLES ========== */

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--dark) 0%, var(--darker) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 1;
    visibility: visible;
    transition: all 0.5s ease;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    max-width: 400px;
    padding: 2rem;
}

.loading-logo {
    margin-bottom: 2rem;
}

.loading-logo .logo-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.loading-text h2 {
    color: var(--primary);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.loading-text p {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.loading-spinner {
    margin: 2rem 0;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 208, 132, 0.1);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

.loading-progress {
    margin-top: 2rem;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    color: var(--text-light);
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Header Enhancements */
.header.scrolled {
    background: rgba(10, 26, 15, 0.95);
    backdrop-filter: blur(20px);
}

.header.hidden {
    transform: translateY(-100%);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.logo-text .subtitle {
    font-size: 0.875rem;
    color: var(--text-light);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    color: var(--text-light);
  text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(0, 208, 132, 0.1);
}

.nav-link.active {
    color: var(--primary);
    background: rgba(0, 208, 132, 0.15);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.network-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 208, 132, 0.1);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--primary);
}

.network-indicator {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.wallet-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wallet-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 208, 132, 0.3);
}

.wallet-btn.connected {
    background: rgba(0, 208, 132, 0.2);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    width: 24px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 0 8px rgba(0, 208, 132, 0.3);
}

/* Map Section */
.map-section {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.map-container {
    position: relative;
    width: 100%;
    height: 100vh;
    padding-top: 80px;
}

.map {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

/* Map Controls */
.map-controls {
    position: absolute;
    top: 100px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: rgba(10, 26, 15, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 0.5rem;
    border: 1px solid rgba(0, 208, 132, 0.2);
}

.control-btn {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 208, 132, 0.3);
    border-radius: 8px;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: rgba(0, 208, 132, 0.2);
    color: var(--primary);
    transform: scale(1.05);
}

.control-btn.toggle-btn[data-active="false"] {
    opacity: 0.5;
    background: rgba(255, 255, 255, 0.05);
}

/* Map Legend */
.map-legend {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    background: rgba(10, 26, 15, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(0, 208, 132, 0.2);
    min-width: 200px;
}

.map-legend h4 {
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.legend-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.legend-color.holder-color {
    background: var(--primary);
}

.legend-color.staker-color {
    background: #ff6b6b;
}

.legend-color.airdrop-color {
    background: #4ecdc4;
}

.legend-color.upcoming-color {
    background: #ffe66d;
}

/* Map Stats */
.map-stats {
    position: absolute;
    top: 100px;
    left: 20px;
    z-index: 1000;
    display: flex;
    gap: 1rem;
}

.stat-item {
    background: rgba(10, 26, 15, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(0, 208, 132, 0.2);
    text-align: center;
    min-width: 80px;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Sidebar Enhancements */
.sidebar {
    width: 400px;
    background: rgba(10, 26, 15, 0.95);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(0, 208, 132, 0.2);
    height: 100vh;
    overflow-y: auto;
    padding-top: 80px;
    transition: all 0.3s ease;
}

.sidebar-header {
    padding: 2rem;
    border-bottom: 1px solid rgba(0, 208, 132, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-header h3 {
    color: var(--text);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.activity-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.sidebar-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Search Section */
.search-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-input-container {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1rem;
    padding-right: 3rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 208, 132, 0.3);
    border-radius: 12px;
    color: var(--text);
    font-size: 1rem;
}

.search-input::placeholder {
    color: var(--text-light);
}

.search-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 1.2rem;
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
}

.filter-tab {
    flex: 1;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 208, 132, 0.3);
    border-radius: 8px;
    color: var(--text-light);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-tab:hover,
.filter-tab.active {
    background: rgba(0, 208, 132, 0.2);
    color: var(--primary);
    border-color: var(--primary);
}

/* Airdrop Sections */
.airdrop-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-header h4 {
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.section-count {
    background: var(--primary);
    color: var(--dark);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.refresh-btn {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    color: var(--primary);
    transform: rotate(180deg);
}

.airdrop-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
}

.empty-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Airdrop Cards */
.airdrop-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 208, 132, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.airdrop-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.airdrop-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.airdrop-icon {
    font-size: 1.5rem;
}

.airdrop-info {
    flex: 1;
}

.airdrop-title {
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.airdrop-meta {
    color: var(--text-light);
    font-size: 0.875rem;
    margin: 0;
}

.airdrop-status {
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.airdrop-status.active {
    background: rgba(76, 205, 196, 0.2);
    color: #4ecdc4;
}

.airdrop-status.upcoming {
    background: rgba(255, 230, 109, 0.2);
    color: #ffe66d;
}

.airdrop-status.completed {
    background: rgba(0, 208, 132, 0.2);
    color: var(--primary);
}

.airdrop-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.airdrop-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.airdrop-actions {
    display: flex;
    gap: 0.5rem;
}

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

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

.modal {
    background: var(--dark);
    border: 1px solid rgba(0, 208, 132, 0.3);
    border-radius: 16px;
    max-width: 600px;
    width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
}

.modal.active {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
    border-bottom: 1px solid rgba(0, 208, 132, 0.2);
}

.modal-header h3 {
    color: var(--text);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

.modal-content {
    padding: 2rem;
}

/* Holder Details */
.holder-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.holder-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.holder-avatar {
    width: 60px;
    height: 60px;
    background: rgba(0, 208, 132, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.holder-info h3 {
    color: var(--text);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.holder-address {
    color: var(--text-light);
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    cursor: pointer;
    margin-bottom: 0.5rem;
}

.holder-address:hover {
    color: var(--primary);
}

.holder-location {
    color: var(--text-light);
    font-size: 0.875rem;
}

.holder-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 208, 132, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.stat-info {
    flex: 1;
}

.stat-value {
    display: block;
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-label {
    display: block;
    color: var(--text-light);
    font-size: 0.875rem;
}

.holder-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Notifications */
.notification-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notification {
    background: rgba(10, 26, 15, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    border-left: 4px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 400px;
    transform: translateX(100%);
    animation: slideIn 0.3s ease forwards;
}

.notification.fade-out {
    animation: slideOut 0.3s ease forwards;
}

.notification-success {
    border-left-color: #4ecdc4;
}

.notification-error {
    border-left-color: #ff6b6b;
}

.notification-warning {
    border-left-color: #ffe66d;
}

.notification-info {
    border-left-color: var(--primary);
}

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

.notification-message {
    flex: 1;
    color: var(--text);
    font-size: 0.875rem;
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Custom Map Markers */
.holder-marker {
    background: rgba(0, 208, 132, 0.9);
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.holder-marker:hover {
    transform: scale(1.1);
    z-index: 1000;
}

.holder-marker.staker {
    background: rgba(255, 107, 107, 0.9);
}

.marker-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.marker-emoji {
    font-size: 0.8rem;
    line-height: 1;
}

.marker-amount {
    font-size: 0.6rem;
    font-weight: 600;
    line-height: 1;
    margin-top: 2px;
}

/* Custom Popup Styles */
.leaflet-popup-content-wrapper {
    background: var(--dark) !important;
    border: 1px solid rgba(0, 208, 132, 0.3) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

.leaflet-popup-content {
    margin: 0 !important;
    color: var(--text) !important;
}

.leaflet-popup-tip {
    background: var(--dark) !important;
    border: 1px solid rgba(0, 208, 132, 0.3) !important;
}

.popup-content {
    padding: 1.5rem;
}

.popup-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.popup-emoji {
    font-size: 1.5rem;
}

.popup-title h4 {
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.popup-address {
    color: var(--text-light);
    font-size: 0.875rem;
    cursor: pointer;
    font-family: 'Courier New', monospace;
}

.popup-address:hover {
    color: var(--primary);
}

.popup-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.popup-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-actions {
    display: flex;
    gap: 0.5rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .header-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .sidebar {
        position: fixed;
        top: 0;
        right: -400px;
        z-index: 9999;
        transition: right 0.3s ease;
    }
    
    .sidebar.open {
        right: 0;
    }
    
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(5px);
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .map-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .stat-item {
        min-width: 60px;
        padding: 0.75rem;
    }
    
    .stat-value {
        font-size: 1.2rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 1rem;
    }
    
    .logo-section {
        gap: 0.75rem;
    }
    
    .logo {
        width: 32px;
        height: 32px;
    }
    
    .logo-text h1 {
        font-size: 1.25rem;
    }
    
    .wallet-btn {
        padding: 0.5rem 1rem;
    }
    
    .wallet-text {
        display: none;
    }
    
    .map-container {
        padding-top: 70px;
    }
    
    .map-controls {
        top: 80px;
        right: 10px;
    }
    
    .map-legend {
        bottom: 10px;
        left: 10px;
        padding: 0.75rem;
        min-width: 150px;
    }
    
    .map-stats {
        top: 80px;
        left: 10px;
    }
    
    .sidebar {
        width: 100vw;
        right: -100vw;
    }
    
    .modal {
        width: 95vw;
        margin: 1rem;
    }
    
    .modal-header,
    .modal-content {
        padding: 1.5rem;
    }
    
    .holder-stats {
        grid-template-columns: 1fr;
    }
    
    .holder-actions {
        flex-direction: column;
    }
    
    .notification-container {
        top: 80px;
        right: 10px;
        left: 10px;
    }
    
    .notification {
        max-width: none;
    }
}

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

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

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