:root {
    --bg-color: #040807;
    --card-bg: rgba(255, 255, 255, 0.02);
    --accent-green: #52b788;
    --accent-mint: #74c69d;
    --accent-teal: #2d6a4f;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.08);
    --diamond-glow: 0 0 20px rgba(82, 183, 136, 0.2);
    --spotlight-glow: 0 0 20px rgba(234, 179, 8, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
}

/* Background Gradients */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 0% 0%, rgba(82, 183, 136, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(45, 106, 79, 0.08) 0%, transparent 50%);
    z-index: -1;
}

.max-w-7xl {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Glassmorphism Card */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 1.25rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.avatar-container {
    position: relative;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(82, 183, 136, 0.1), rgba(45, 106, 79, 0.1));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.avatar-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.avatar-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 22px;
    border-radius: 18px;
    z-index: 1;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.5px;
}

.avatar-container.is-fallback .avatar-fallback {
    z-index: 3;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-mint));
    color: #040807;
    text-shadow: none;
}

.avatar-container:hover .avatar-image {
    transform: scale(1.05);
}

.status-indicator {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    background: #22c55e;
    border: 3px solid #0a0e0c;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
    z-index: 10;
}

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

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

.btn-primary {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-mint));
    color: #040807;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(82, 183, 136, 0.2);
}

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Rank Badges */
.badge {
    padding: 0.15rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.badge-diamond {
    background: rgba(82, 183, 136, 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(82, 183, 136, 0.2);
    box-shadow: 0 0 15px rgba(82, 183, 136, 0.1);
}

.badge-spotlight {
    background: rgba(234, 179, 8, 0.2);
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.3);
    box-shadow: var(--spotlight-glow);
}

.text-glow {
    text-shadow: 0 0 8px rgba(234, 179, 8, 0.4);
}

.font-black {
    font-weight: 900;
}

/* Vacation Overlay */
.vacation-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    border-radius: 1.25rem;
}

.vacation-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: white;
    text-transform: uppercase;
    transform: rotate(-5deg);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Form Styles */
.search-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 0.5rem;
    display: flex;
    width: 100%;
    max-width: 400px;
}

.search-input {
    background: transparent;
    border: none;
    color: white;
    padding: 0.75rem 1rem;
    width: 100%;
    outline: none;
}

.search-input::placeholder {
    color: var(--text-secondary);
}

/* Grid Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

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

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

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* Responsive Grid */
.bot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 640px) {
    .bot-grid {
        grid-template-columns: 1fr;
    }
}
/* Utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}

.text-glow {
    text-shadow: 0 0 10px rgba(250, 204, 21, 0.4);
}

.animate-fade-in {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeIn 0.4s ease forwards;
}

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