:root {
    --rp-primary: #6366f1;
    --rp-primary-light: #818cf8;
    --rp-accent: #06b6d4;
    --rp-success: #10b981;
    --rp-warning: #f59e0b;
    --rp-danger: #ef4444;
    --rp-bg-dark: #0f0f23;
    --rp-bg-card: #1a1a2e;
    --rp-bg-card-hover: #1e1e35;
    --rp-border: #2a2a4a;
}
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--rp-bg-dark);
    color: #e2e8f0;
    padding-top: 70px;
}
.navbar {
    background: rgba(15, 15, 35, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--rp-border);
}
.navbar-brand {
    font-weight: 800;
    font-size: 1.4rem;
    background: linear-gradient(135deg, var(--rp-primary), var(--rp-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.btn-primary {
    background: linear-gradient(135deg, var(--rp-primary), var(--rp-primary-light));
    border: none;
    font-weight: 600;
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--rp-primary-light), var(--rp-primary));
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}
.btn-outline-primary {
    border-color: var(--rp-primary);
    color: var(--rp-primary-light);
}
.btn-outline-primary:hover {
    background: var(--rp-primary);
    border-color: var(--rp-primary);
}
.card {
    background: var(--rp-bg-card);
    border: 1px solid var(--rp-border);
    border-radius: 12px;
}
.card:hover {
    background: var(--rp-bg-card-hover);
}
.hero-section {
    padding: 50px 0 80px;
    background: radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
}
.gradient-text {
    background: linear-gradient(135deg, var(--rp-primary), var(--rp-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-card {
    text-align: center;
    padding: 2rem;
}
.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 800;
}
.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.bg-primary-subtle { background: rgba(99, 102, 241, 0.15) !important; color: var(--rp-primary-light) !important; }
.bg-success-subtle { background: rgba(16, 185, 129, 0.15) !important; color: var(--rp-success) !important; }
.bg-warning-subtle { background: rgba(245, 158, 11, 0.15) !important; color: var(--rp-warning) !important; }
.bg-danger-subtle { background: rgba(239, 68, 68, 0.15) !important; color: var(--rp-danger) !important; }
.bg-info-subtle { background: rgba(6, 182, 212, 0.15) !important; color: var(--rp-accent) !important; }
.severity-critical { color: #ef4444; }
.severity-high { color: #f97316; }
.severity-medium { color: #f59e0b; }
.severity-low { color: #06b6d4; }
.severity-info { color: #8b5cf6; }
.bg-orange { background-color: #f97316 !important; }
.text-orange { color: #f97316 !important; }
.border-orange { border-color: #f97316 !important; }
.score-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
}
.grade-a { background: rgba(16, 185, 129, 0.2); color: #10b981; border: 2px solid #10b981; }
.grade-b { background: rgba(34, 197, 94, 0.2); color: #22c55e; border: 2px solid #22c55e; }
.grade-c { background: rgba(245, 158, 11, 0.2); color: #f59e0b; border: 2px solid #f59e0b; }
.grade-d { background: rgba(249, 115, 22, 0.2); color: #f97316; border: 2px solid #f97316; }
.grade-e { background: rgba(239, 68, 68, 0.2); color: #ef4444; border: 2px solid #ef4444; }
footer {
    background: var(--rp-bg-card);
    border-top: 1px solid var(--rp-border);
}
.pricing-card {
    transition: transform 0.2s, box-shadow 0.2s;
}
.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.2);
}
.pricing-card.featured {
    border: 2px solid var(--rp-primary);
}
.sidebar {
    background: var(--rp-bg-card);
    border-right: 1px solid var(--rp-border);
    min-height: calc(100vh - 56px);
}
.sidebar .nav-link {
    color: #94a3b8;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 2px;
}
.sidebar .nav-link:hover, .sidebar .nav-link.active {
    color: white;
    background: rgba(99, 102, 241, 0.15);
}
.sidebar .nav-link i {
    width: 24px;
}
.code-block {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 1rem;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.85rem;
    overflow-x: auto;
}
.prompt-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(6, 182, 212, 0.05));
    border: 1px solid var(--rp-border);
    border-left: 4px solid var(--rp-primary);
}
/* Utility classes for data visualization */
.card-hover { transition: transform 0.15s, border-color 0.15s; cursor: pointer; }
.card-hover:hover { transform: translateY(-2px); border-color: var(--rp-primary) !important; }

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Rank badges for leaderboards */
.rank-gold { color: #ffd700; }
.rank-silver { color: #c0c0c0; }
.rank-bronze { color: #cd7f32; }

/* Grade badge F (missing) */
.grade-f { background: rgba(239, 68, 68, 0.2); color: #ef4444; border: 2px solid #ef4444; }

/* Score gauge small */
.score-gauge-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.75rem;
}

/* Animated pulse for new/unread items */
@keyframes pulse-border {
    0%, 100% { border-color: var(--rp-primary); }
    50% { border-color: transparent; }
}
.pulse-border { animation: pulse-border 2s infinite; }

/* Better scrollbars for dark theme */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--rp-bg-dark); }
::-webkit-scrollbar-thumb { background: var(--rp-border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #3a3a5a; }

@media (max-width: 768px) {
    .hero-section { padding: 30px 0 40px; }
    .hero-section h1 { font-size: 2rem; }
}
