* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

body {
    font-family: 'Inter', sans-serif
}

.font-jakarta {
    font-family: 'Plus Jakarta Sans', sans-serif
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px
}

::-webkit-scrollbar-track {
    background: transparent
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px
}

.dark ::-webkit-scrollbar-thumb {
    background: #475569
}

.sidebar-scroll::-webkit-scrollbar {
    width: 4px
}

.sidebar-scroll::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, .3);
    border-radius: 2px
}

.glass {
    background: rgba(255, 255, 255, .7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px)
}

.dark .glass {
    background: rgba(15, 23, 42, .7)
}

.glass-card {
    background: rgba(255, 255, 255, .8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, .8)
}

.dark .glass-card {
    background: rgba(30, 41, 59, .8);
    border: 1px solid rgba(51, 65, 85, .6)
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes pulse-soft {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: .7
    }
}

.animate-fadeInUp {
    animation: fadeInUp .5s ease-out forwards
}

.stagger-1 {
    animation-delay: .05s
}

.stagger-2 {
    animation-delay: .1s
}

.stagger-3 {
    animation-delay: .15s
}

.stagger-4 {
    animation-delay: .2s
}

.hover-lift {
    transition: all .3s cubic-bezier(.4, 0, .2, 1)
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .12)
}

.dark .hover-lift:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, .4)
}

.gradient-text {
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

.nav-active {
    background: linear-gradient(135deg, rgba(99, 102, 241, .12), rgba(139, 92, 246, .08));
    border-right: 3px solid #6366f1;
    color: #6366f1
}

.dark .nav-active {
    background: linear-gradient(135deg, rgba(99, 102, 241, .2), rgba(139, 92, 246, .12));
    color: #818cf8;
    border-color: #818cf8
}

.notification-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid #fff;
    animation: pulse-soft 2s infinite
}

.dark .notification-dot {
    border-color: #0f172a
}

.dropdown-enter {
    opacity: 0;
    transform: translateY(-8px) scale(.96);
    transition: all .2s cubic-bezier(.4, 0, .2, 1);
    pointer-events: none
}

.dropdown-enter.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 40;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto
}

.kpi-gradient-1 {
    background: linear-gradient(135deg, #6366f1, #8b5cf6)
}

.kpi-gradient-2 {
    background: linear-gradient(135deg, #06b6d4, #3b82f6)
}

.kpi-gradient-3 {
    background: linear-gradient(135deg, #10b981, #059669)
}

.kpi-gradient-4 {
    background: linear-gradient(135deg, #f59e0b, #ef4444)
}

.chart-container {
    position: relative;
    width: 100%;
    min-height: 280px
}

@media(max-width:640px) {
    .chart-container {
        min-height: 220px
    }
}

.badge-success {
    background: #ecfdf5;
    color: #059669
}

.dark .badge-success {
    background: rgba(16, 185, 129, .15);
    color: #34d399
}

.badge-warning {
    background: #fffbeb;
    color: #d97706
}

.dark .badge-warning {
    background: rgba(245, 158, 11, .15);
    color: #fbbf24
}

.badge-danger {
    background: #fef2f2;
    color: #dc2626
}

.dark .badge-danger {
    background: rgba(239, 68, 68, .15);
    color: #f87171
}

.badge-info {
    background: #eff6ff;
    color: #2563eb
}

.dark .badge-info {
    background: rgba(59, 130, 246, .15);
    color: #60a5fa
}

.badge-purple {
    background: #f5f3ff;
    color: #7c3aed
}

.dark .badge-purple {
    background: rgba(124, 58, 237, .15);
    color: #a78bfa
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(4px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
    padding: 16px
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto
}

.modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    max-width: 560px;
    width: 100%;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    transform: scale(.95) translateY(10px);
    transition: transform .3s ease
}

.modal-backdrop.active .modal-content {
    transform: scale(1) translateY(0)
}

.dark .modal-content {
    background: #1e293b
}

/* Profile-specific — SPECTACULAR HERO */
.profile-hero {
    position: relative;
    height: 280px;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, #312e81 0%, #4c1d95 25%, #6366f1 50%, #8b5cf6 75%, #ec4899 100%);
}

@media(max-width:640px) {
    .profile-hero {
        height: 200px
    }
}

.profile-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, .2) 0%, transparent 70%);
}

.profile-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 60%;
    height: 150%;
    background: radial-gradient(circle, rgba(255, 255, 255, .1) 0%, transparent 70%);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .15) 1px, transparent 0);
    background-size: 24px 24px;
    opacity: .4;
}

.hero-edit-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, .15);
    backdrop-filter: blur(12px);
    border-radius: 10px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 5;
}

.hero-edit-btn:hover {
    background: rgba(255, 255, 255, .25)
}

.profile-avatar-lg {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 6px solid #fff;
    object-fit: cover;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
    position: relative;
    z-index: 2;
}

@media(max-width:640px) {
    .profile-avatar-lg {
        width: 120px;
        height: 120px;
        border-width: 4px
    }
}

.dark .profile-avatar-lg {
    border-color: #0f172a
}

.avatar-online-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #10b981;
    border: 5px solid #fff;
    z-index: 3;
}

@media(max-width:640px) {
    .avatar-online-badge {
        width: 24px;
        height: 24px;
        border-width: 3px;
        bottom: 5px;
        right: 5px;
    }
}

.dark .avatar-online-badge {
    border-color: #0f172a
}

.avatar-online-badge::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #10b981;
    animation: pulse-soft 2s infinite;
}

.tab-btn {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    border-bottom: 2px solid transparent;
    transition: all .2s ease;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dark .tab-btn {
    color: #94a3b8
}

.tab-btn:hover {
    color: #4f46e5
}

.dark .tab-btn:hover {
    color: #a5b4fc
}

.tab-btn.active {
    color: #6366f1;
    border-color: #6366f1
}

.dark .tab-btn.active {
    color: #818cf8;
    border-color: #818cf8
}

.tab-btn .tab-count {
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 10px;
    font-weight: 700;
    background: #f1f5f9;
    color: #64748b;
}

.dark .tab-btn .tab-count {
    background: #1e293b;
    color: #94a3b8
}

.tab-btn.active .tab-count {
    background: rgba(99, 102, 241, .15);
    color: #6366f1
}

.dark .tab-btn.active .tab-count {
    background: rgba(129, 140, 248, .2);
    color: #a5b4fc
}

.tab-content {
    display: none;
    animation: fadeInUp .3s ease-out
}

.tab-content.active {
    display: block
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all .2s ease;
    cursor: pointer;
}

.social-icon:hover {
    transform: translateY(-2px) scale(1.05)
}

.si-twitter {
    background: linear-gradient(135deg, #000000, #333333)
}

/* Updated to X colors */
.si-github {
    background: linear-gradient(135deg, #24292f, #0f172a)
}

.si-linkedin {
    background: linear-gradient(135deg, #0a66c2, #0369a1)
}

.si-dribbble {
    background: linear-gradient(135deg, #ea4c89, #e11d48)
}

.si-web {
    background: linear-gradient(135deg, #6366f1, #8b5cf6)
}

.si-email {
    background: linear-gradient(135deg, #10b981, #059669)
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(99, 102, 241, .1), rgba(139, 92, 246, .05));
    color: #6366f1;
    border: 1px solid rgba(99, 102, 241, .2);
    transition: all .2s ease;
}

.dark .skill-tag {
    color: #a5b4fc;
    background: linear-gradient(135deg, rgba(99, 102, 241, .2), rgba(139, 92, 246, .1))
}

.skill-tag:hover {
    transform: translateY(-1px)
}

.achievement-card {
    padding: 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(99, 102, 241, .05), rgba(139, 92, 246, .02));
    border: 1px solid rgba(99, 102, 241, .15);
    transition: all .3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.dark .achievement-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, .1), rgba(139, 92, 246, .05));
    border-color: rgba(99, 102, 241, .2)
}

.achievement-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, .15)
}

.achievement-card.locked {
    opacity: .4;
    filter: grayscale(60%)
}

.achievement-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .15);
}

.ac-gold {
    background: linear-gradient(135deg, #fbbf24, #f59e0b)
}

.ac-silver {
    background: linear-gradient(135deg, #cbd5e1, #94a3b8)
}

.ac-bronze {
    background: linear-gradient(135deg, #f97316, #ea580c)
}

.ac-purple {
    background: linear-gradient(135deg, #a855f7, #7c3aed)
}

.ac-blue {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8)
}

.ac-green {
    background: linear-gradient(135deg, #10b981, #047857)
}

.ac-red {
    background: linear-gradient(135deg, #ef4444, #b91c1c)
}

.ac-pink {
    background: linear-gradient(135deg, #ec4899, #be185d)
}

.timeline-item {
    position: relative;
    padding-left: 44px;
    padding-bottom: 24px;
}

.timeline-item:last-child {
    padding-bottom: 0
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 32px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #e2e8f0, transparent);
}

.dark .timeline-item::before {
    background: linear-gradient(to bottom, #334155, transparent)
}

.timeline-item:last-child::before {
    display: none
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 4px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
    z-index: 2;
}

.stat-mini {
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(99, 102, 241, .06);
    transition: all .2s ease;
}

.dark .stat-mini {
    background: rgba(99, 102, 241, .12)
}

.stat-mini:hover {
    transform: translateY(-2px)
}

.contribution-cell {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 3px;
    transition: all .15s ease;
    cursor: pointer;
}

.contribution-cell:hover {
    transform: scale(1.4);
    z-index: 10;
    position: relative
}

.cc-0 {
    background: #f1f5f9
}

.dark .cc-0 {
    background: #1e293b
}

.cc-1 {
    background: #c7d2fe
}

.dark .cc-1 {
    background: rgba(99, 102, 241, .3)
}

.cc-2 {
    background: #818cf8
}

.dark .cc-2 {
    background: rgba(99, 102, 241, .5)
}

.cc-3 {
    background: #6366f1
}

.dark .cc-3 {
    background: rgba(99, 102, 241, .75)
}

.cc-4 {
    background: #4338ca
}

.dark .cc-4 {
    background: #6366f1
}

.review-star {
    color: #fbbf24
}

.review-star-empty {
    color: #e2e8f0
}

.dark .review-star-empty {
    color: #334155
}

.progress-ring-svg {
    transform: rotate(-90deg);
    transform-origin: 50% 50%
}