/* OMNI AI Dashboard Styles */
:root {
    --dashboard-bg: #0a0a0a;
    --dashboard-panel-bg: rgba(255, 255, 255, 0.05);
    --dashboard-border: rgba(255, 255, 255, 0.1);
    --dashboard-hover: rgba(255, 255, 255, 0.08);
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --info-color: #3b82f6;
    --dashboard-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --dashboard-radius: 16px;
    --dashboard-text: rgba(255, 255, 255, 0.9);
    --dashboard-text-muted: rgba(255, 255, 255, 0.6);
}

/* Dashboard Body */
.dashboard-body {
    background: var(--dashboard-bg);
    min-height: 100vh;
    font-family: 'JetBrains Mono', 'Fira Code', 'Source Code Pro', monospace;
}

/* Dashboard Navigation */
.dashboard-nav {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--dashboard-border);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.dashboard-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand .brand-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--dashboard-text);
}

.brand-icon {
    font-size: 1.5rem;
    color: #ffab00;
}

.brand-text {
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--dashboard-text);
}

.nav-actions .btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--dashboard-text);
    border: 1px solid var(--dashboard-border);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-actions .btn:hover {
    background: var(--dashboard-hover);
    border-color: rgba(255, 255, 255, 0.2);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Dashboard Header */
.dashboard-header {
    margin-top:5em;
    padding: 2rem 0;
    background: linear-gradient(135deg, rgba(0, 82, 255, 0.1) 0%, rgba(0, 212, 255, 0.05) 100%);
    border-bottom: 1px solid var(--dashboard-border);
}

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

.dashboard-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.dashboard-subtitle {
    color: var(--dashboard-text-muted);
    font-size: 1.125rem;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--dashboard-panel-bg);
    border: 1px solid var(--dashboard-border);
    border-radius: var(--dashboard-radius);
    backdrop-filter: blur(10px);
}

.status-icon {
    font-size: 1.25rem;
}

.status-text {
    font-weight: 500;
    color: var(--dashboard-text);
}

/* Dashboard Main */
.dashboard-main {
    padding: 2rem 0 4rem;
}

/* Quick Stats */
.quick-stats {
    margin-bottom: 3rem;
}

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

.stat-card {
    background: var(--dashboard-panel-bg);
    border: 1px solid var(--dashboard-border);
    border-radius: var(--dashboard-radius);
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.stat-card.primary {
    background: linear-gradient(135deg, rgba(0, 82, 255, 0.15) 0%, rgba(0, 212, 255, 0.1) 100%);
    border-color: rgba(0, 82, 255, 0.3);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.stat-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--light-color);
    margin-bottom: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
}

.stat-label {
    color: var(--dashboard-text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-target {
    color: var(--dashboard-text);
    font-size: 1.125rem;
    margin-top: 0.25rem;
}

.stat-sublabel {
    color: var(--dashboard-text-muted);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.stat-progress {
    margin-top: 1.5rem;
}

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

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 0.8s ease;
    width: 0%;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

/* Dashboard Panels */
.dashboard-panel {
    background: var(--dashboard-panel-bg);
    border: 1px solid var(--dashboard-border);
    border-radius: var(--dashboard-radius);
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: all 0.3s ease;
}

.dashboard-panel:hover {
    background: var(--dashboard-hover);
    box-shadow: var(--dashboard-shadow);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--dashboard-border);
    background: rgba(255, 255, 255, 0.02);
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--light-color);
}

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

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

.panel-content {
    padding: 2rem;
}

/* Personal Status Panel */
.status-overview {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.status-label {
    color: var(--dashboard-text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

.status-value {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dashboard-text);
    font-weight: 600;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-indicator.pending {
    background: var(--warning-color);
}

.status-indicator.qualified {
    background: var(--success-color);
}

.status-indicator.disqualified {
    background: var(--error-color);
}

.status-value.tier {
    padding: 0.25rem 0.75rem;
    background: var(--gradient-primary);
    border-radius: 12px;
    color: white;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Progress Timeline */
.progress-timeline {
    margin-top: 2rem;
}

.timeline-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dashboard-text);
    margin-bottom: 1.5rem;
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--success-color), var(--warning-color), rgba(255, 255, 255, 0.2));
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-marker {
    position: absolute;
    left: -2rem;
    top: 0.25rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--dashboard-border);
    background: var(--dashboard-bg);
}

.timeline-item.completed .timeline-marker {
    background: var(--success-color);
    border-color: var(--success-color);
}

.timeline-item.current .timeline-marker {
    background: var(--warning-color);
    border-color: var(--warning-color);
    animation: pulse 2s infinite;
}

.timeline-item.pending .timeline-marker {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.timeline-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dashboard-text);
    margin-bottom: 0.25rem;
}

.timeline-date {
    font-size: 0.75rem;
    color: var(--dashboard-text-muted);
}

/* Reward Calculator */
.calculator-form {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--dashboard-text);
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--dashboard-border);
    border-radius: 8px;
    color: var(--dashboard-text);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(0, 82, 255, 0.1);
}

.reward-results {
    display: grid;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.reward-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reward-label {
    color: var(--dashboard-text-muted);
    font-size: 0.875rem;
}

.reward-value {
    color: var(--dashboard-text);
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

.reward-value.tier {
    padding: 0.25rem 0.75rem;
    background: var(--gradient-primary);
    border-radius: 12px;
    color: white;
    font-size: 0.75rem;
    text-transform: uppercase;
}

/* Community Stats */
.stats-overview {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.community-stat {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.community-stat .stat-label {
    color: var(--dashboard-text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.community-stat .stat-value {
    color: var(--dashboard-text);
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

.community-stat .value {
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Leaderboard */
.leaderboard {
    margin-top: 2rem;
}

.leaderboard-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dashboard-text);
    margin-bottom: 1rem;
}

.leaderboard-list {
    display: grid;
    gap: 0.5rem;
}

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

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

.leaderboard-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--gradient-primary);
    border-radius: 50%;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}

.leaderboard-address {
    flex: 1;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    color: var(--dashboard-text);
}

.leaderboard-amount {
    font-weight: 600;
    color: var(--dashboard-text);
    font-family: 'JetBrains Mono', monospace;
}

/* Milestone Tracker */
.milestone-progress {
    margin-bottom: 2rem;
}

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

.milestone-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dashboard-text);
}

.milestone-percentage {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-color);
    font-family: 'JetBrains Mono', monospace;
}

.milestone-bar {
    position: relative;
    width: 100%;
    height: 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.milestone-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 8px;
    transition: width 1s ease;
    width: 0%;
}

.milestone-markers {
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    margin-top: 0.5rem;
}

.marker {
    font-size: 0.75rem;
    color: var(--dashboard-text-muted);
    font-weight: 500;
}

/* Achievements */
.milestone-achievements {
    margin-top: 2rem;
}

.milestone-achievements h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dashboard-text);
    margin-bottom: 1rem;
}

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

.achievement {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.achievement:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

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

.achievement-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.achievement.unlocked .achievement-icon {
    filter: grayscale(0%);
    opacity: 1;
}

.achievement-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--dashboard-text-muted);
}

.achievement.unlocked .achievement-title {
    color: var(--success-color);
}

/* Real-Time Updates */
.update-types {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.update-type {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.update-info {
    flex: 1;
}

.update-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dashboard-text);
    margin-bottom: 0.25rem;
}

.update-desc {
    font-size: 0.75rem;
    color: var(--dashboard-text-muted);
    margin-bottom: 0.25rem;
}

.update-time {
    font-size: 0.75rem;
    color: var(--accent-color);
    font-family: 'JetBrains Mono', monospace;
}

.update-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.indicator-dot {
    width: 8px;
    height: 8px;
    background: var(--success-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.indicator-text {
    font-size: 0.75rem;
    color: var(--success-color);
    font-weight: 500;
}

/* Activity Feed */
.recent-updates h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dashboard-text);
    margin-bottom: 1rem;
}

.activity-feed {
    max-height: 300px;
    overflow-y: auto;
    display: grid;
    gap: 0.75rem;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    border-left: 3px solid var(--accent-color);
}

.activity-icon {
    font-size: 1rem;
    margin-top: 0.125rem;
}

.activity-content {
    flex: 1;
}

.activity-text {
    font-size: 0.875rem;
    color: var(--dashboard-text);
    margin-bottom: 0.25rem;
}

.activity-time {
    font-size: 0.75rem;
    color: var(--dashboard-text-muted);
    font-family: 'JetBrains Mono', monospace;
}

/* Celebration Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    background: var(--dashboard-panel-bg);
    border: 1px solid var(--dashboard-border);
    border-radius: var(--dashboard-radius);
    max-width: 500px;
    width: 100%;
    backdrop-filter: blur(20px);
    box-shadow: var(--dashboard-shadow);
}

.celebration-content {
    text-align: center;
    overflow: hidden;
}

.celebration-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem;
}

.celebration-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--success-color);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--dashboard-text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

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

.celebration-body {
    padding: 0 2rem 2rem;
    position: relative;
}

.celebration-animation {
    position: relative;
    height: 100px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="%2300D4FF"/><circle cx="80" cy="30" r="2" fill="%230052FF"/><circle cx="40" cy="60" r="2" fill="%2310B981"/><circle cx="70" cy="80" r="2" fill="%23F59E0B"/></svg>') repeat;
    animation: confetti-fall 3s ease-in-out infinite;
}

@keyframes confetti-fall {
    0% { transform: translateY(-100%) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100%) rotate(360deg); opacity: 0; }
}

.celebration-message {
    font-size: 1rem;
    color: var(--dashboard-text);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.celebration-stats {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

.celebration-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.celebration-footer {
    padding: 1rem 2rem 2rem;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

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

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

.btn-outline {
    background: transparent;
    border: 1px solid var(--dashboard-border);
    color: var(--dashboard-text);
}

.btn-outline:hover {
    background: var(--dashboard-hover);
    border-color: var(--accent-color);
}

.btn-ghost {
    background: transparent;
    color: var(--dashboard-text-muted);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--dashboard-text);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

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

.refresh-icon {
    transition: transform 0.3s ease;
}

.refresh-icon.spinning {
    animation: spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-title {
        font-size: 2rem;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card,
    .panel-content {
        padding: 1.5rem;
    }
    
    .panel-header {
        padding: 1rem 1.5rem;
    }
    
    .timeline {
        padding-left: 1.5rem;
    }
    
    .timeline-marker {
        left: -1.5rem;
    }
}

@media (max-width: 480px) {
    .dashboard-main {
        padding: 1rem 0 2rem;
    }
    
    .stat-card,
    .panel-content {
        padding: 1rem;
    }
    
    .panel-header {
        padding: 1rem;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .achievements-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .modal-content {
        margin: 1rem;
    }
}

/* Test Mode Notification */
.test-mode-notification {
    background: linear-gradient(135deg, #ffa726 0%, #ff7043 100%);
    color: white;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(255, 167, 38, 0.3);
    animation: slideDown 0.5s ease-out;
}

.test-mode-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.test-mode-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.test-mode-text {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.test-mode-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

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

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