/* Ultra-Modern 2025 UI Profile Styles - Moon Theme */
:root {
    --primary-gradient: linear-gradient(135deg, #8d5cff 0%, #a78bfa 100%);
    --accent-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #48cc6c 0%, #22c55e 100%);
    --warning-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --danger-gradient: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --shadow-elevated: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --border-radius-xl: 32px;
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    --border-radius-sm: 8px;
    --space-2xl: 64px;
    --space-xl: 48px;
    --space-lg: 32px;
    --space-md: 24px;
    --space-sm: 16px;
    --space-xs: 8px;
    --space-pix: 5px;
    --space-piy: 10px;
}

.profile-page {
    font-family: 'Poppins', sans-serif !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 800 !important;
    color: var(--text);
    min-height: 100vh;
    max-width: 1200px;
    padding: var(--space-md);
    margin: 0 auto; /* центрирование */
    width: 100%; /* чтобы не растягивалось больше max-width */
}


/* Social Media Links */
.profile-social-links {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 15px;
    z-index: 10;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 22px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.social-link.discord {
    background: linear-gradient(135deg, #5865f2, #7289da);
}

.social-link.steam {
    background: linear-gradient(135deg, #1b2838, #2a475e);
}

.social-link.telegram {
    background: linear-gradient(135deg, #0088cc, #35abe1);
}

/* Hero Section */
.profile-hero {
    position: relative;
    height: 280px;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-elevated);
    margin-bottom: var(--space-lg);
}

.profile-cover {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.profile-cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.05) 40%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
}

.profile-info-block {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-pix);
    z-index: 2;
    background: #130d23ad;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius-lg);
    padding: var(--space-piy);
    box-shadow: var(--shadow-elevated);
}

.user-avatar {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.9);
    box-shadow: var(--shadow-elevated);
    overflow: visible;
}

.avatar-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
}

.avatar-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.online-indicator {
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 3px solid var(--card-bg);
    z-index: 10;
}

.online-indicator.online {
    background: var(--success, #22c55e);
    box-shadow: 0 0 0 2px var(--success);
}

.online-indicator.offline {
    background: var(--danger, #ef4444);
    box-shadow: 0 0 0 2px var(--danger);
}

.banner-friend-btn {
    position: absolute;
    top: 100%;
    margin-top: -80px;
    right: 20px;
    z-index: 10;
}

.user-details {
    color: white;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.user-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 var(--space-xs) 0;
    line-height: 1.2;
}

.user-handle {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
    margin: 0 0 var(--space-md) 0;
}

.stats {
    display: flex;
    justify-content: center;

    margin-top: 10px;
}
.stats span {
    display: flex;
    gap: 0px;
    position: relative;
    padding: 0px var(--space-lg);
    flex-direction: column-reverse;
}

.stats span:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0px;
    top: 10%;
    height: 80%;
    width: 3px;
    background: linear-gradient(180deg, var(--primary) 0%, #1c1433e0 100%);
    border-radius: 1px;
    opacity: 0.8;
    box-shadow: 0 0 8px var(--primary);
}

.stats span:first-child {
    padding-left: 0;
}

.stats span:last-child {
    padding-right: 0;
}

.stats strong {
    font-size: 1.1rem;
    font-weight: 800;
}

.action-btn {
    top: var(--space-lg);
    right: var(--space-lg);
    padding: var(--space-sm) var(--space-md);
    border: none;
    border-radius: 999px;
    background: var(--primary-gradient);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    box-shadow: var(--shadow-elevated);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Navigation Tabs */
.profile-nav {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-lg);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-elevated);
}

.nav-tab {
    flex: 1;
    padding: var(--space-md) var(--space-xl);
    border: none;
    background: #18122e54;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    transition: all 0.3s ease;
    position: relative;
}

.nav-tab:hover {
    background: #18122e6b;;
    color: var(--text);
}

.nav-tab.active {
    background: var(--primary, #667eea);
    color: white;
    box-shadow: inset 0 4px 8px rgba(0,0,0,0.2), 0 4px 8px rgba(102, 126, 234, 0.3);
}

/* ContentSections */
.profile-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

.content-section {
    display: none;
    background: #18122e54;
    border-radius: var(--border-radius-lg);
    padding: var(--space-lg);
    border: 1px solid #442d76;
    box-shadow: var(--shadow-elevated);
    transition: all 0.4s ease;
}

.content-section.active {
    display: block !important;
    animation: fadeIn 0.5s ease-out;
}

.content-section:not(.active) {
    display: none !important;
}

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

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.content-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 var(--space-lg) 0;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.content-section h2 i {
    margin-left: var(--space-xs);
}

.content-section h2::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--primary) 0%, transparent 100%);
}

.content-section p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
}

/* Reviews Container Layout */
#reviews-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
    margin-bottom: 20px;
}

.review-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    border: 1px solid rgba(122, 60, 255, 0.15);
    border-radius: 12px;
    padding: 20px;
    color: var(--text);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    min-height: 200px;
    width: 100%;
}

.review-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary, #7a3cff), var(--success, #00d26a));
    opacity: 0.8;
}

.review-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(122, 60, 255, 0.3);
}

.review-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5px;
    margin-bottom: 15px;
}

.rating {
    font-size: 1.2em;
    color: #ffd700;
}

.date {
    color: var(--text-secondary);
    font-size: 0.9em;
}

.review-content {
    margin-bottom: 12px;
}

.review-text {
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid var(--primary, #7a3cff);
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
}

.review-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 12px;
    width: 20px;
    height: 20px;
    background: linear-gradient(to right, transparent, var(--card-bg));
    pointer-events: none;
    pointer-events: none;
}

.server-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
}

.server-info i {
    color: var(--primary, #7a3cff);
    font-size: 0.9em;
}

.server-name {
    color: var(--text);
    font-weight: 600;
    font-style: normal;
    font-size: 0.9em;
}

.reviews-load-more {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.reviews-load-more button {
    padding: 12px 24px;
    background: var(--primary, #7a3cff);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.reviews-load-more button:hover {
    background: var(--primary-dark, #5a2aff);
}

/* Friends Navigation Sub-tabs */
.friends-nav {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-md);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.friends-subtab {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: #18122e00;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.friends-subtab:last-child {
    border-right: none;
}

.friends-subtab:hover {
        background: #18122ecc;;
    color: var(--text);
    transform: translateY(-1px);
}

.friends-subtab.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(141, 92, 255, 0.3);
    border-color: rgba(141, 92, 255, 0.3);
}

.friends-subtab.active:hover {
    background: linear-gradient(135deg, #7c4dff 0%, #a78bfa 100%);
}

/* Responsive */
@media (min-width: 768px) {
    .profile-info-block {
        flex: 1;
        justify-content: space-between;
    }

    .profile-content {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1024px) {
    .profile-page {
        padding: var(--space-xl);
    }

    .profile-hero {
        height: 320px;
    }
}

@media (max-width: 480px) {
    .friends-grid, .requests-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .friend-card, .request-card {
        max-width: none;
        padding: 16px;
        min-height: 180px;
    }

    .friend-avatar, .request-avatar {
        width: 50px;
        height: 50px;
    }

    .friend-avatar-wrapper, .request-avatar-wrapper {
        padding: 2px;
    }
}

/* Friends Section Styles */
.friends-section h3, .requests-section h3 {
    margin: var(--space-lg) 0 var(--space-sm) 0;
    font-size: 18px;
    color: var(--text);
    position: relative;
    display: inline-block;
}

.friends-section h3::after, .requests-section h3::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 60%;
    height: 2px;
    border-radius: 2px;
}

.friends-grid, .requests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-lg);
    justify-items: center;
    align-items: stretch;
}

.friend-card, .request-card {
    width: 100%;
    max-width: 240px;
    min-height: 280px;
    position: relative;
    border: 1px solid var(--moon-border);
    border-radius: 20px;
    padding: 32px 28px;
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    text-align: center;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 8px 32px rgba(20, 10, 40, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.friend-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
    filter: blur(0.5px);
}

.friend-card::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg,
        #8d5cff,
        #a78bfa,
        #6c30cc,
        #e2e8f0,
        #3b82f6,
        #8d5cff);
    background-size: 400% 400%;
    border-radius: 21px;
    z-index: -2;
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: highlightGlow 4s ease-in-out infinite alternate;
}

@keyframes highlightGlow {
    0% { box-shadow: 0 0 15px rgba(141, 92, 255, 0.3); }
    100% { box-shadow: 0 0 25px rgba(141, 92, 255, 0.6), 0 0 45px rgba(181, 101, 255, 0.4); }
}

.friend-card:hover::before,
.request-card:hover::before,
.friend-card:hover::after {
    opacity: 1;
}

.friend-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow:
        0 24px 48px rgba(20, 10, 40, 0.5),
        0 12px 24px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(141, 92, 255, 0.4);
    border-color: rgba(141, 92, 255, 0.6);
    animation-duration: 2s;
}

.request-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow:
        0 20px 40px rgba(20, 10, 40, 0.45),
        0 8px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(245, 87, 108, 0.6);
}

/* Floating particle effect for moon theme */
@keyframes float-particle-global-moon {
    0%, 100% { transform: translateY(0px) translateX(0px) rotate(0deg); }
    25% { transform: translateY(-2px) translateX(1px) rotate(90deg); }
    50% { transform: translateY(-4px) translateX(-1px) rotate(180deg); }
    75% { transform: translateY(-2px) translateX(1px) rotate(270deg); }
    100% { transform: translateY(0px) translateX(0px) rotate(360deg); }
}

.friend-card .moon-accent {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 12px;
    height: 12px;
    background: linear-gradient(45deg, #22c55e, #10b981);
    border-radius: 50%;
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.8);
    opacity: 0.9;
    animation: pulseMoon 1.5s ease-in-out infinite;
}

.friend-card .moon-sparkle {
    position: absolute;
    top: 24px;
    left: 20px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary);
    opacity: 0.6;
    animation: sparkle 2s ease-in-out infinite reverse;
}

.friend-card .moon-sparkle:nth-child(2) {
    top: 50px;
    left: 180px;
    animation-delay: 0.5s;
}

.friend-card .moon-sparkle:nth-child(3) {
    top: 100px;
    right: 30px;
    animation-delay: 1s;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.5); opacity: 1; }
}

/* Avatar Styles */
.friend-avatar-wrapper, .request-avatar-wrapper {
    position: relative;
    display: inline-block;
    padding: 3px;
    background: linear-gradient(135deg, var(--primary), var(--success));
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1);
}

.friend-avatar, .request-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* Online Status Indicators */
.friend-online-indicator, .request-online-indicator {
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 3px solid var(--card-bg);
    z-index: 10;
}

.friend-online-indicator.online, .request-online-indicator.online {
    background: var(--success);
    box-shadow: 0 0 0 2px var(--success);
}

.friend-online-indicator.offline, .request-online-indicator.offline {
    background: var(--danger);
    box-shadow: 0 0 0 2px var(--danger);
}

/* Username Text */
.friend-username, .request-username {
    margin: var(--space-xs) 0;
    font-size: 20px;
    color: var(--text);
    font-weight: 700;
}

/* Action Buttons */
.request-actions {
    margin-top: var(--space-sm);
    display: flex;
    gap: var(--space-xs);
}

.accept-btn, .decline-btn, .cancel-btn, .remove-friend-btn, .add-friend-btn {
    padding: var(--space-xs) var(--space-sm);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.accept-btn {
    background: var(--success-gradient);
    color: white;
    box-shadow: 0 2px 8px rgba(72, 204, 108, 0.3);
}

.accept-btn:hover {
    background: linear-gradient(135deg, var(--success-dark), var(--success));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(72, 204, 108, 0.4);
}

.decline-btn, .cancel-btn, .remove-friend-btn {
    background: var(--danger-gradient);
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.decline-btn:hover, .cancel-btn:hover, .remove-friend-btn:hover {
    background: linear-gradient(135deg, var(--danger-dark), var(--danger));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.add-friend-btn {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 2px 8px rgba(141, 92, 255, 0.3);
}

.add-friend-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(141, 92, 255, 0.4);
}

/* Empty States */
.friends-empty {
    text-align: center;
    padding: var(--space-xl);
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Role Badge */
.role-badge {
    border-radius: var(--border-radius-lg);
    font-size: 16px;
    font-weight: 800;
    display: inline-block;
    padding: 4px 12px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.role-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

/* Server Cards (Favorites Section) */
.servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.server-card-new {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--panel), rgba(var(--panel-rgb, 30, 30, 30), 0.8));
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    min-height: 280px;
}

.server-card-new:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.75);
}

.bg-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.6) blur(1px);
    z-index: 1;
}

.bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.2), rgba(0,0,0,0.8));
    z-index: 2;
}

.server-content {
    position: relative;
    z-index: 3;
    padding: 20px;
    color: white;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.title-scroll-container {
    flex: 1;
    min-width: 0;
}

.server-title {
    font-size: 18px;
    font-weight: 700;
    color: white !important;
    text-decoration: none;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    transition: color 0.3s ease;
}

.server-title:hover {
    color: var(--primary) !important;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.online {
    background: var(--success);
    color: white;
}

.status-badge.offline {
    background: var(--danger);
    color: white;
}

.info-line {
    display: flex;
    align-items: center;
    font-size: 14px;
    margin-bottom: 6px;
    color: rgba(255,255,255,0.9);
}

.info-line-map {
    margin-bottom: 8px;
}

.info-line-players {
    margin-bottom: 8px;
}

.remove-favorite-btn {
    width: 100%;
    background: linear-gradient(90deg, #ff4757, #ff6348);
    border: none;
    color: white;
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.remove-favorite-btn:hover:not(:disabled) {
    background: linear-gradient(90deg, #ff3742, #ff5238);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 71, 71, 0.4);
}

.remove-favorite-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.server-actions {
    margin-top: auto;
    padding-top: 15px;
}

/* Additional Responsive Rules */
@media (max-width: 768px) {
    .servers-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .server-card-new {
        min-height: 250px;
    }

    .server-title {
        font-size: 16px;
    }
}

/* Referrals Section Styles */
.referrals-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.stat-card {
    background: linear-gradient(135deg, rgba(141, 92, 255, 0.1), rgba(167, 139, 250, 0.05));
    border: 1px solid rgba(141, 92, 255, 0.2);
    border-radius: var(--border-radius-lg);
    padding: var(--space-lg);
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(141, 92, 255, 0.2);
    border-color: rgba(141, 92, 255, 0.4);
}

.stat-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0 0 var(--space-xs) 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0;
    text-shadow: 0 2px 4px rgba(141, 92, 255, 0.3);
}

.referral-link-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.referral-link-section h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 var(--space-md) 0;
}

.referral-link-container {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
}

.referral-link-container input {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    background: rgba(0, 0, 0, 0.2);
    color: var(--text);
    font-family: monospace;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.referral-link-container button {
    padding: var(--space-sm) var(--space-md);
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.referral-link-container button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(141, 92, 255, 0.4);
}

.referrals-list {
    margin-top: var(--space-lg);
}

.referrals-list h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 var(--space-md) 0;
}

.referral-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-sm);
    transition: all 0.3s ease;
}

.referral-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    border-color: rgba(141, 92, 255, 0.2);
}

.referral-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(141, 92, 255, 0.3);
}

.referral-info {
    flex: 1;
}

.referral-username {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 var(--space-xs) 0;
}

.referral-date {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Responsive for referrals */
@media (max-width: 768px) {
    .referrals-stats {
        grid-template-columns: 1fr;
    }

    .referral-link-container {
        flex-direction: column;
        align-items: stretch;
    }

    .referral-link-container button {
        align-self: flex-end;
        width: auto;
    }

    .referral-card {
        flex-direction: column;
        text-align: center;
        gap: var(--space-sm);
    }
}
