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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0f0f0f;
    color: #e0e0e0;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 3rem;
}

h1 {
    font-size: 3rem;
    background: linear-gradient(135deg, #00ff88, #00aaff, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(180deg); }
}

.subtitle {
    color: #888;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.status-bar {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.status-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-value {
    font-weight: bold;
    color: #00ff88;
}

.main-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 968px) {
    .main-section {
        grid-template-columns: 1fr;
    }
}

.panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.panel h2 {
    color: #00aaff;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.submission-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input[type="text"], textarea {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #e0e0e0;
    padding: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

textarea {
    min-height: 200px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    resize: vertical;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

button {
    background: linear-gradient(135deg, #00ff88, #00aaff);
    border: none;
    color: #000;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.4);
}

button:active {
    transform: translateY(0);
}

button.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

button.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.submissions-list {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.submission-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.submission-item:hover {
    border-color: #00ff88;
    background: rgba(0, 255, 136, 0.05);
}

.submission-item.selected {
    border-color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
}

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

.submission-source {
    font-weight: bold;
    color: #00aaff;
}

.submission-date {
    color: #666;
    font-size: 0.8rem;
}

.submission-preview {
    color: #888;
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.submission-confidence {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.comparison-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.comparison-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.comparison-controls .enhanced-btn {
    min-width: 150px;
}

.instance-selector {
    flex: 1;
    min-width: 200px;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .comparison-grid {
        grid-template-columns: 1fr;
    }
}

.instance-viewer {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    height: 300px;
    overflow-y: auto;
}

.instance-viewer h3 {
    color: #00ff88;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.instance-content {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-wrap;
}

.results-panel {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

.match-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.metric-label {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 2rem;
    font-weight: bold;
    color: #00ff88;
}

.consensus-viewer {
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.consensus-viewer h3 {
    color: #00ff88;
    margin-bottom: 1rem;
}

.consensus-text {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
    white-space: pre-wrap;
}

.highlight-match {
    background: rgba(0, 255, 136, 0.3);
    color: #00ff88;
    padding: 2px 4px;
    border-radius: 3px;
}

.highlight-diff {
    background: rgba(255, 255, 0, 0.2);
    color: #ffff00;
    padding: 2px 4px;
    border-radius: 3px;
}

.alert {
    position: fixed;
    top: 2rem;
    right: 2rem;
    padding: 1rem 2rem;
    background: rgba(0, 255, 136, 0.2);
    border: 1px solid #00ff88;
    border-radius: 8px;
    color: #00ff88;
    font-weight: bold;
    display: none;
    animation: slideIn 0.3s ease;
    z-index: 1000;
}

@keyframes slideIn {
    from { transform: translateX(400px); }
    to { transform: translateX(0); }
}

.floating-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 136, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    from { transform: translate(0, 0); }
    to { transform: translate(50px, 50px); }
}

.library-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 170, 255, 0.1));
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #00ff88;
}

.stat-label {
    color: #888;
    margin-top: 0.5rem;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 136, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 136, 0.5);
}

.leaderboard-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: none;
    z-index: 2000;
    overflow-y: auto;
}

.leaderboard-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
}

.leaderboard-header {
    text-align: center;
    margin-bottom: 3rem;
}

.leaderboard-title {
    font-size: 3rem;
    background: linear-gradient(135deg, #ffd700, #ff6b6b, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

.close-button {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.close-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.leaderboard-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.leaderboard-tab {
    padding: 0.8rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.leaderboard-tab.active {
    background: linear-gradient(135deg, #ff00ff, #00ff88);
    border-color: transparent;
}

.rankings {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.rank-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin-bottom: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.rank-item:hover {
    transform: translateX(10px);
    border-color: #00ff88;
}

.rank-number {
    font-size: 2rem;
    font-weight: bold;
    width: 60px;
    text-align: center;
}

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

.rank-user {
    flex: 1;
    margin-left: 1rem;
}

.rank-username {
    font-size: 1.2rem;
    font-weight: bold;
    color: #00aaff;
}

.rank-stats {
    display: flex;
    gap: 2rem;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #888;
}

.rank-score {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00ff88;
    margin-left: auto;
}

.achievements {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

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

.achievement-card:hover {
    transform: translateY(-5px);
    border-color: #ffd700;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
}

.achievement-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.achievement-title {
    color: #ffd700;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.achievement-user {
    color: #00aaff;
    font-size: 1.1rem;
}

.timeline-section {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2rem;
}

.timeline-item {
    position: relative;
    padding-left: 3rem;
    padding-bottom: 2rem;
    border-left: 2px solid rgba(0, 255, 136, 0.3);
}

.timeline-item:last-child {
    border-left: none;
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -8px;
    top: 0;
    width: 16px;
    height: 16px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.timeline-content {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
}

.timeline-date {
    color: #666;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.timeline-event {
    color: #00aaff;
    font-weight: bold;
}

/* Requests & Challenges Styles */
.requests-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: none;
    z-index: 2000;
    overflow-y: auto;
}

.requests-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
}

.requests-header {
    text-align: center;
    margin-bottom: 3rem;
}

.requests-title {
    font-size: 3rem;
    background: linear-gradient(135deg, #ff6b6b, #ffd700, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

.daily-challenge {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 107, 107, 0.1));
    border: 2px solid #ffd700;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.daily-challenge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

.challenge-title {
    font-size: 2rem;
    color: #ffd700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.challenge-description {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.challenge-reward {
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid #ffd700;
    border-radius: 20px;
    padding: 0.5rem 1.5rem;
    display: inline-block;
    font-weight: bold;
    color: #ffd700;
    position: relative;
    z-index: 1;
}

.challenge-timer {
    margin-top: 1rem;
    font-size: 1.5rem;
    color: #ff6b6b;
    font-weight: bold;
    position: relative;
    z-index: 1;
}

.requests-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 968px) {
    .requests-grid {
        grid-template-columns: 1fr;
    }
}

.request-form {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
}

.request-list {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
}

.request-item {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.request-item:hover {
    transform: translateY(-2px);
    border-color: #ffd700;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.2);
}

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

.request-model {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffd700;
}

.request-votes {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.vote-count {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: bold;
}

.vote-button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e0e0e0;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.vote-button:hover {
    background: rgba(0, 255, 136, 0.2);
    border-color: #00ff88;
    color: #00ff88;
}

.vote-button.voted {
    background: rgba(0, 255, 136, 0.3);
    border-color: #00ff88;
    color: #00ff88;
}

.request-description {
    color: #888;
    margin-bottom: 0.5rem;
}

.request-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
    font-size: 0.9rem;
}

.bounty-badge {
    background: linear-gradient(135deg, #ffd700, #ff6b6b);
    color: #000;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.8rem;
}

.trending-indicator {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #ff6b6b;
    font-weight: bold;
}

.filter-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

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

.filter-tab.active {
    background: linear-gradient(135deg, #ff6b6b, #ffd700);
    border-color: transparent;
    color: #000;
    font-weight: bold;
}

/* Chat System Styles */
.chat-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 500px;
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid #00ffff;
    border-radius: 15px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: linear-gradient(135deg, #00ffff, #ff00ff);
    border-radius: 13px 13px 0 0;
    color: #000;
}

.chat-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.close-btn {
    background: none;
    border: none;
    color: #000;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.chat-message {
    padding: 10px;
    border-radius: 10px;
    max-width: 80%;
    word-wrap: break-word;
}

.user-message {
    background: linear-gradient(135deg, #00ffff, #0080ff);
    color: #000;
    align-self: flex-end;
}

.bot-message {
    background: linear-gradient(135deg, #ff00ff, #8000ff);
    color: #fff;
    align-self: flex-start;
}

.system-message {
    background: rgba(255, 255, 255, 0.1);
    color: #00ffff;
    align-self: center;
    text-align: center;
    font-style: italic;
}

.message-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 5px;
    opacity: 0.8;
}

.message-content {
    font-size: 0.9rem;
    line-height: 1.4;
}

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

.chat-input-container input {
    flex: 1;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
}

.send-btn {
    padding: 10px 15px;
    background: linear-gradient(135deg, #00ffff, #ff00ff);
    border: none;
    border-radius: 8px;
    color: #000;
    cursor: pointer;
    font-weight: bold;
}

.chat-users {
    padding: 10px 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
}

.online-indicator {
    color: #00ff00;
    margin-bottom: 5px;
}

.users-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.online-user {
    background: rgba(0, 255, 0, 0.2);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
}

/* Achievement Notification Styles */
.achievement-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 350px;
    background: linear-gradient(135deg, #ffd700, #ff6b6b);
    border: 2px solid #fff;
    border-radius: 15px;
    padding: 20px;
    z-index: 1001;
    transform: translateX(400px);
    transition: transform 0.5s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.achievement-notification.show {
    transform: translateX(0);
}

.achievement-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.achievement-icon {
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.achievement-info h4 {
    margin: 0 0 5px 0;
    color: #000;
    font-size: 0.9rem;
    opacity: 0.8;
}

.achievement-info h3 {
    margin: 0 0 5px 0;
    color: #000;
    font-size: 1.2rem;
    font-weight: bold;
}

.achievement-info p {
    margin: 0 0 8px 0;
    color: #000;
    font-size: 0.9rem;
}

.points-earned {
    background: rgba(0, 0, 0, 0.2);
    color: #000;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Advanced Comparison Styles */
.comparison-header {
    text-align: center;
    margin-bottom: 20px;
}

.confidence-meter {
    position: relative;
    height: 30px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    margin: 15px 0;
    overflow: hidden;
}

.confidence-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff0000, #ffff00, #00ff00);
    transition: width 1s ease;
}

.confidence-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.analysis-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
}

.analysis-item h4 {
    margin: 0 0 10px 0;
    color: #00ffff;
    font-size: 1rem;
}

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

.metric-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff0000, #ffff00, #00ff00);
    transition: width 1s ease;
}

.metric-bar span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 0.8rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.analysis-item p {
    margin: 5px 0 0 0;
    color: #888;
    font-size: 0.8rem;
}

.verification-recommendation {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
    text-align: center;
}

.verification-recommendation h4 {
    margin: 0 0 10px 0;
    color: #00ffff;
}

.verification-recommendation p {
    margin: 0;
    color: #fff;
    font-size: 1rem;
}

/* Enhanced Button Styles */
.enhanced-btn {
    background: linear-gradient(135deg, #00ffff, #ff00ff);
    border: none;
    border-radius: 8px;
    color: #000;
    padding: 12px 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.enhanced-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.4);
}

.enhanced-btn:active {
    transform: translateY(0);
}

/* Responsive Design for New Features */
@media (max-width: 768px) {
    .chat-panel {
        width: 90vw;
        height: 70vh;
    }
    
    .achievement-notification {
        width: 90vw;
        right: 5vw;
    }
    
    .analysis-grid {
        grid-template-columns: 1fr;
    }
    
    .enhanced-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Production Navigation */
.production-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(0, 255, 255, 0.3);
    z-index: 1000;
    padding: 0.5rem 0;
}

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

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

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(135deg, #00ffff, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.version {
    background: rgba(0, 255, 255, 0.2);
    color: #00ffff;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    background: linear-gradient(135deg, #00ffff, #ff00ff);
    color: #000;
}

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

.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-profile-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.user-avatar {
    font-size: 1.2rem;
}

.settings-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.settings-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 4rem 2rem 2rem;
    margin-top: 60px;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #00ffff, #ff00ff, #ffff00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.2);
}

.stat-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.stat-content {
    text-align: left;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #00ffff;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #888;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quick-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.action-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.action-btn.primary {
    background: linear-gradient(135deg, #ff00ff, #00ff88);
    color: #000;
}

.action-btn.secondary {
    background: linear-gradient(135deg, #ff6b6b, #ffd700);
    color: #000;
}

.action-btn.tertiary {
    background: linear-gradient(135deg, #00ffff, #ff00ff);
    color: #000;
}

.action-btn.quaternary {
    background: linear-gradient(135deg, #ffd700, #ff6b6b);
    color: #000;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Overlay System */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.overlay-content {
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid #00ffff;
    border-radius: 20px;
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 255, 255, 0.3);
}

.overlay-content.wide {
    max-width: 1000px;
}

.close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-button:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

/* User Profile Styles */
.profile-header {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-avatar {
    font-size: 4rem;
    margin: 1rem 0;
    filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.5));
}

.profile-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00ffff;
    margin-bottom: 0.5rem;
}

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

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

/* Settings Styles */
.settings-section {
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.settings-section h3 {
    color: #00ffff;
    margin-bottom: 1rem;
}

.settings-section label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.settings-section input[type="text"] {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    padding: 0.5rem;
    color: #fff;
    width: 100%;
    margin-top: 0.5rem;
}

.settings-btn {
    background: linear-gradient(135deg, #00ffff, #ff00ff);
    border: none;
    border-radius: 8px;
    padding: 0.8rem 1.5rem;
    color: #000;
    cursor: pointer;
    margin: 0.5rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.settings-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.4);
}

.settings-btn.danger {
    background: linear-gradient(135deg, #ff6b6b, #ff0000);
    color: #fff;
}

/* Analytics Styles */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.analytics-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
}

.analytics-card h3 {
    color: #00ffff;
    margin-bottom: 1rem;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .quick-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .action-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .overlay-content {
        margin: 1rem;
        padding: 1rem;
    }
    
    .analytics-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-item {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-brand .version {
        display: none;
    }
}

/* Analytics Components */
.analytics-stat {
    text-align: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    margin: 0.5rem;
}

.analytics-stat .stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #00ffff;
    margin-bottom: 0.5rem;
}

.analytics-stat .stat-label {
    color: #888;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.bar-label {
    min-width: 80px;
    color: #fff;
    font-size: 0.9rem;
}

.bar-container {
    flex: 1;
    height: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ffff, #ff00ff);
    transition: width 1s ease;
}

.bar-value {
    min-width: 40px;
    text-align: right;
    color: #00ffff;
    font-weight: bold;
}

.trend-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    margin-bottom: 0.5rem;
}

.trend-date {
    color: #888;
    font-size: 0.9rem;
}

.trend-value {
    color: #00ffff;
    font-weight: bold;
}

.contributor-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.contributor-rank {
    background: linear-gradient(135deg, #ffd700, #ff6b6b);
    color: #000;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.8rem;
}

.contributor-name {
    flex: 1;
    color: #fff;
    font-weight: 500;
}

.contributor-score {
    color: #00ffff;
    font-weight: bold;
}

/* Notification System */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 350px;
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid #00ffff;
    border-radius: 15px;
    padding: 1rem;
    z-index: 3000;
    transform: translateX(400px);
    transition: transform 0.5s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.notification.show {
    transform: translateX(0);
}

.notification.info {
    border-color: #00ffff;
}

.notification.success {
    border-color: #00ff00;
}

.notification.warning {
    border-color: #ffff00;
}

.notification.error {
    border-color: #ff0000;
}

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

.notification-header h4 {
    margin: 0;
    color: #00ffff;
    font-size: 1rem;
}

.notification-header button {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification p {
    margin: 0;
    color: #fff;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Achievement Badge */
.achievement-badge {
    text-align: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.achievement-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.2);
}

.achievement-badge .achievement-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.achievement-badge .achievement-name {
    color: #00ffff;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Stat Card */
.stat-card {
    text-align: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.2);
}

.stat-card .stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00ffff;
    margin-bottom: 0.5rem;
}

.stat-card .stat-label {
    color: #888;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Enhanced Form Styles */
.enhanced-form {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

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

.form-group label {
    display: block;
    color: #00ffff;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

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

/* Loading States */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #00ffff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Tooltip System */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: rgba(0, 0, 0, 0.9);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 0.5rem;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.8rem;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Progress Indicators */
.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    overflow: hidden;
    margin: 0.5rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ffff, #ff00ff);
    transition: width 0.5s ease;
}

/* Status Indicators */
.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.status-indicator.online {
    background: #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.status-indicator.offline {
    background: #ff0000;
}

.status-indicator.busy {
    background: #ffff00;
    box-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
}

/* Responsive Design for New Components */
@media (max-width: 768px) {
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .chart-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .bar-container {
        width: 100%;
    }
    
    .notification {
        width: 90vw;
        right: 5vw;
    }
    
    .achievement-badge {
        padding: 0.8rem;
    }
    
    .achievement-badge .achievement-icon {
        font-size: 1.5rem;
    }
    
    .stat-card {
        padding: 0.8rem;
    }
    
    .stat-card .stat-number {
        font-size: 1.2rem;
    }
}

/* Tab System */
.tab-content {
    width: 100%;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-panel.active {
    display: block;
}

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

.nav-link {
    transition: all 0.3s ease;
    position: relative;
}

.nav-link.active {
    color: #00ff88 !important;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 8px;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #00ff88, #00aaff);
    border-radius: 1px;
}

/* Community Grid */
.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.community-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.community-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.2);
    border-color: rgba(0, 255, 136, 0.3);
}

.community-card h3 {
    color: #00ff88;
    margin-bottom: 0.5rem;
}

.community-card p {
    color: #888;
    margin-bottom: 1rem;
}

/* Analytics Overview */
.analytics-overview {
    text-align: center;
    padding: 2rem;
}

.analytics-overview p {
    color: #888;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}
