.profile-container {
    max-width: 600px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .profile-container {
        margin-left: auto;
        margin-right: auto;
    }
}

.profile-banner {
    height: 120px;
    background: #252830;
    border-radius: 12px 12px 0 0;
    position: relative;
    overflow: hidden;
}

.banner-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 30%, #1e2024 100%);
}

.profile-header {
    background: #1e2024;
    border-radius: 0 0 12px 12px;
    padding: 0 24px 24px;
    text-align: center;
}

.profile-avatar-wrap {
    position: relative;
    display: inline-block;
    margin-top: -50px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #1e2024;
    background: #1e2024;
}

.profile-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    background: #fbbf24;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #1e2024;
}

.profile-badge svg {
    width: 14px;
    height: 14px;
    stroke: #181a1c;
    stroke-width: 2.5;
    fill: none;
}

.profile-info {
    margin-top: 12px;
}

.profile-name-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.profile-name {
    font-size: 24px;
    font-weight: 700;
    color: #fbbf24;
}

.admin-badge {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-badge svg {
    width: 20px;
    height: 20px;
    fill: #fbbf24;
    stroke: none;
}

.role-badge-profile {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 4px;
}

.role-badge-profile svg {
    width: 18px;
    height: 18px;
}

.role-badge-profile.owner {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.role-badge-profile.admin {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
}

.role-badge-profile.yt {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.role-badge-profile.xp-event {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.profile-username {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin: 4px 0 12px;
}

.profile-bio {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 16px;
    white-space: pre-wrap;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.profile-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.profile-joined,
.profile-likes-given {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.profile-joined svg,
.profile-likes-given svg {
    width: 14px;
    height: 14px;
    stroke: rgba(255, 255, 255, 0.35);
    stroke-width: 2;
    fill: none;
}

.profile-mode {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.12);
    padding: 5px 12px;
    border-radius: 16px;
}

.profile-mode img {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    object-fit: cover;
}

.profile-actions {
    margin-top: 4px;
}

.profile-edit-btn,
.profile-follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.profile-edit-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.profile-edit-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
}

.profile-edit-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.profile-follow-btn {
    background: #fbbf24;
    border: none;
    color: #181a1c;
}

.profile-follow-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.profile-follow-btn .following-icon {
    display: none;
}

.profile-follow-btn:hover {
    background: #fcd34d;
}

.profile-follow-btn.following {
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: #fbbf24;
}

.profile-follow-btn.following .follow-icon {
    display: none;
}

.profile-follow-btn.following .following-icon {
    display: block;
}

.profile-follow-btn.following:hover {
    background: rgba(248, 113, 113, 0.15);
    border-color: rgba(248, 113, 113, 0.3);
    color: #f87171;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    background: #1e2024;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 16px 24px;
    margin-top: 12px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.stat-item.clickable {
    cursor: pointer;
    padding: 6px 12px;
    margin: -6px -12px;
    border-radius: 8px;
    transition: background 0.15s ease;
}

.stat-item.clickable:hover {
    background: rgba(255, 255, 255, 0.05);
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #fbbf24;
}

.stat-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-tabs {
    display: flex;
    gap: 4px;
    background: #1e2024;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 6px;
    margin-top: 12px;
}

.profile-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.profile-tab svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.profile-tab:hover {
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.03);
}

.profile-tab.active {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.profile-content {
    margin-top: 16px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.posts-empty {
    text-align: center;
    padding: 48px 20px;
    color: rgba(255, 255, 255, 0.4);
    background: #1e2024;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.posts-empty svg {
    width: 40px;
    height: 40px;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 1.5;
    fill: none;
    margin-bottom: 12px;
}

.posts-empty p {
    font-size: 14px;
    margin: 0;
}

@media (max-width: 600px) {
    .profile-banner {
        height: 100px;
        border-radius: 0;
    }
    
    .profile-header {
        padding: 0 16px 20px;
    }
    
    .profile-avatar-wrap {
        margin-top: -40px;
    }
    
    .profile-avatar {
        width: 80px;
        height: 80px;
    }
    
    .profile-name {
        font-size: 20px;
    }
    
    .profile-stats {
        gap: 20px;
        padding: 14px 16px;
    }
    
    .stat-value {
        font-size: 18px;
    }
    
    .profile-tab {
        padding: 10px 12px;
        font-size: 13px;
    }
}

.profile-badges {
    background: #1e2024;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 16px 20px;
    margin-top: 12px;
}

.badges-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 12px;
}

.badges-title svg {
    width: 16px;
    height: 16px;
    color: #fbbf24;
}

.badges-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    cursor: default;
    transition: all 0.2s ease;
}

.badge-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}

.badge-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-icon svg {
    width: 16px;
    height: 16px;
    filter: drop-shadow(0 0 4px currentColor);
}

.badge-name {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.profile-streak {
    margin-top: 16px;
    display: flex;
    justify-content: center;
}

.profile-streak-inline {
    display: inline-flex;
    margin-left: 12px;
    align-items: center;
    background: transparent;
    border: none;
    padding: 0;
}
