:root {
    --primary: #ff3b3b;
    --primary-glow: rgba(255, 59, 59, 0.5);
    --bg-dark: #0a0a0a;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-dim: #a0a0a0;
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-family: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-family);
    min-height: 100vh;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(255, 59, 59, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(255, 59, 59, 0.05) 0%, transparent 40%);
}

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

header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
    background: linear-gradient(to right, #fff, #ff3b3b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    color: var(--text-dim);
    font-size: 1.1rem;
}

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

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    backdrop-filter: blur(12px);
    text-align: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px var(--primary-glow);
}

.stat-label {
    color: var(--text-dim);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.search-bar {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 3rem;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 1.2rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--text-main);
    font-family: var(--font-family);
    font-size: 1.1rem;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
}

.search-bar input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(255, 59, 59, 0.2);
}

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

.unfollower-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    padding: 1.5rem;
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.6s ease forwards;
}

.unfollower-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: var(--bg-card-hover);
    border-color: rgba(255, 59, 59, 0.3);
}

.profile-pic-container {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    padding: 4px;
    background: linear-gradient(45deg, var(--primary), #ff8a8a);
    position: relative;
}

.profile-pic {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-dark);
}

.username {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.full-name {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.btn-profile {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-profile:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-card);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--glass-border);
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2.5rem;
    }
    
    .container {
        padding: 1rem;
    }
}

/* --- Login Modal --- */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.login-card {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.login-card h2 {
    margin-bottom: 0.5rem;
    font-size: 2rem;
    color: var(--text-main);
}

.login-card p {
    color: var(--text-dim);
    margin-bottom: 2rem;
}

.login-input {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    outline: none;
    transition: border-color 0.3s;
}

.login-input:focus {
    border-color: var(--primary);
}

.btn-login {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}

.btn-login:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.login-error {
    color: var(--primary);
    margin-top: 1rem;
    font-size: 0.9rem;
    display: none;
}
