/* ========================================
   Profile Page Styles - Clean & Modern
   ======================================== */
/* Badges Card Container */
.badges-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.badges-card-header {
    padding: 15px;
    background: rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.badges-card-body {
    max-height: 400px;
    overflow-y: auto;
    padding: 15px;
    
    /* Custom scrollbar */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.1);
}

.badges-card-body::-webkit-scrollbar {
    width: 6px;
}

.badges-card-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.badges-card-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.badges-card-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Badges Grid */
.user-badges-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
}

.badge-item {
    position: relative;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 0;
}

.badge-icon {
    width: 100%;
    height: 100%;
    max-width: 64px;
    max-height: 64px;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* Earned Badge - Parlak ve renkli */
.badge-earned {
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.4);
}

.badge-earned:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
    background: rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.6);
}

.badge-earned .badge-icon {
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
    animation: badge-glow 2s ease-in-out infinite;
}

@keyframes badge-glow {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
    }
    50% {
        filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.8));
    }
}

/* Locked Badge - Sönük ve pasif */
.badge-locked {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    opacity: 0.4;
}

.badge-locked .badge-icon {
    filter: grayscale(100%) brightness(0.5);
}

.badge-locked:hover {
    opacity: 0.6;
}

.badge-lock-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    pointer-events: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .user-badges-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 6px;
    }
    
    .badges-card-body {
        max-height: 300px;
    }
    
    .badge-icon {
        width: 48px;
        height: 48px;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .user-badges-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 8px;
    }
}

/* Profile Header Card */
.profile-header-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid rgba(255, 68, 68, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Profile Avatar */
.profile-avatar-container {
    display: inline-block;
    margin-bottom: 20px;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid #ff4444;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(255, 68, 68, 0.3);
    transition: all 0.3s ease;
}

.profile-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(255, 68, 68, 0.4);
}

/* Username */
.profile-username {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin: 15px 0 20px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Stats Badges Container */
.profile-stats-badges {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

/* Level Badge */
.profile-level-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 193, 7, 0.15);
    border: 2px solid rgba(255, 193, 7, 0.3);
    padding: 10px 30px;
    border-radius: 50px;
    min-width: 200px;
}

.level-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.level-text {
    color: #ffc107;
    font-weight: 600;
    font-size: 16px;
}

/* Balance */
.profile-balance {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 152, 0, 0.15);
    border: 2px solid rgba(255, 152, 0, 0.3);
    padding: 10px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    color: #ff9800;
    min-width: 200px;
}

.profile-balance i {
    font-size: 18px;
}

/* Social Links (Website & Donation) */
.profile-social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.social-link-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    min-width: 160px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.social-link-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.social-link-btn:hover::before {
    left: 100%;
}

.donation-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

.donation-fallback-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.social-link-btn i {
    font-size: 20px;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.social-link-btn span {
    flex: 1;
    white-space: nowrap;
}

.website-btn {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.2) 0%, rgba(33, 150, 243, 0.1) 100%);
    color: #64b5f6;
    border-color: rgba(33, 150, 243, 0.4);
}

.website-btn:hover {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.3) 0%, rgba(33, 150, 243, 0.2) 100%);
    border-color: rgba(33, 150, 243, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(33, 150, 243, 0.25);
    color: #90caf9;
}

.donation-btn {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2) 0%, rgba(255, 152, 0, 0.1) 100%);
    color: #ffd54f;
    border-color: rgba(255, 193, 7, 0.4);
}

.donation-btn:hover {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.3) 0%, rgba(255, 152, 0, 0.2) 100%);
    border-color: rgba(255, 193, 7, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.25);
    color: #ffe082;
}

/* Patreon specific styling */
.donation-btn .donation-logo[alt="Patreon"] {
    filter: brightness(1.2);
}

/* PayPal specific styling */
.donation-btn .donation-logo[alt="PayPal"] {
    filter: brightness(1.1);
}

/* Profile Stats Row */
.profile-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stat-box:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-3px);
}

.stat-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 68, 68, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon i {
    font-size: 20px;
    color: #ff4444;
}

.stat-icon.liked {
    background: rgba(76, 175, 80, 0.15);
}

.stat-icon.liked i {
    color: #4caf50;
}

.stat-icon.disliked {
    background: rgba(244, 67, 54, 0.15);
}

.stat-icon.disliked i {
    color: #f44336;
}

.stat-icon.comments {
    background: rgba(33, 150, 243, 0.15);
}

.stat-icon.comments i {
    color: #2196f3;
}

.stat-icon.boards {
    background: rgba(156, 39, 176, 0.15);
}

.stat-icon.boards i {
    color: #9c27b0;
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

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

/* Action Buttons */
.btn-profile-action {
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    width: 100%;
}

.btn-edit {
    background: #ff4444;
    color: #fff;
}

.btn-edit:hover {
    background: #ff6666;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 68, 68, 0.4);
}

.btn-message {
    background: #2196f3;
    color: #fff;
}

.btn-message:hover {
    background: #42a5f5;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

.btn-share {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-share:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* Section Cards */
.profile-section-card {
    background: #1a1a1a;
    border-radius: 15px;
    border: 1px solid rgba(255, 68, 68, 0.1);
    overflow: hidden;
    height: 600px;
    display: flex;
    flex-direction: column;
}

.section-header {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    padding: 20px;
    border-bottom: 2px solid rgba(255, 68, 68, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-header i {
    color: #ff4444;
    font-size: 20px;
}

.section-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.section-content {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

/* Scrollable Content */
.scrollable-content {
    max-height: 520px;
}

.scrollable-content::-webkit-scrollbar {
    width: 8px;
}

.scrollable-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.scrollable-content::-webkit-scrollbar-thumb {
    background: rgba(255, 68, 68, 0.3);
    border-radius: 10px;
}

.scrollable-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 68, 68, 0.5);
}

/* Board Items */
.board-item-link {
    text-decoration: none;
    display: block;
}

.board-item {
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid #ff4444;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.board-item-link:hover .board-item,
.board-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.board-item-header {
    margin-bottom: 10px;
}

.board-time {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.board-item-content {
    color: #fff;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.board-item-footer {
    display: flex;
    gap: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

.board-item-footer i {
    margin-right: 5px;
    color: #ff4444;
}

/* Video Items */
.video-group {
    margin-bottom: 20px;
}

.video-group-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.video-item {
    display: flex;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.video-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(5px);
}

.video-thumb {
    width: 80px;
    height: 45px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.video-info {
    flex: 1;
    min-width: 0;
}

.video-title {
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.video-meta {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.video-meta i {
    margin-right: 4px;
}

/* Suggestion Items */
.suggestion-item {
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid #ffc107;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

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

.suggestion-header {
    margin-bottom: 8px;
}

.suggestion-time {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.suggestion-title {
    font-weight: 600;
    color: #ffc107;
    font-size: 14px;
    margin-bottom: 8px;
}

.suggestion-body {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 10px;
}

.suggestion-video {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ff4444;
    font-size: 12px;
    text-decoration: none;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.suggestion-video:hover {
    color: #ff6666;
}

.suggestion-video i {
    font-size: 14px;
}

.suggestion-read-more {
    display: inline-block;
    color: #ffc107;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 8px;
    transition: all 0.3s ease;
}

.suggestion-read-more:hover {
    color: #ffdb4d;
    transform: translateX(3px);
}

/* Activity Items */
.activity-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.activity-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-icon i {
    font-size: 16px;
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-content p {
    margin: 0 0 5px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.5;
}

.activity-link {
    color: #ff4444;
    text-decoration: none;
    font-weight: 600;
}

.activity-link:hover {
    color: #ff6666;
    text-decoration: underline;
}

.activity-comment {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin: 8px 0;
    font-style: italic;
}

.activity-time {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 50px;
    color: rgba(255, 68, 68, 0.2);
    margin-bottom: 15px;
    display: block;
}

.empty-state p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    margin: 0;
}

/* Edit Modal Styles */
.modal-content {
    background: #1a1a1a;
    border: 1px solid rgba(255, 68, 68, 0.2);
    border-radius: 15px;
}

.modal-header {
    border-bottom: 1px solid rgba(255, 68, 68, 0.2);
}

.modal-title {
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-title i {
    color: #ff4444;
}

.modal-body {
    padding: 25px;
}

.form-label {
    color: #fff;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-label i {
    color: #ff4444;
}

.form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 8px;
    padding: 10px 15px;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #ff4444;
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(255, 68, 68, 0.25);
}

.form-control:disabled {
    background: rgba(255, 255, 255, 0.02);
    opacity: 0.6;
}

/* Avatar Upload in Modal */
.avatar-upload-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.avatar-preview-edit {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border: 3px solid #ff4444;
}

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

.avatar-overlay-edit {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #fff;
    font-size: 14px;
}

.avatar-preview-edit:hover .avatar-overlay-edit {
    opacity: 1;
}

.avatar-overlay-edit i {
    font-size: 30px;
    margin-bottom: 5px;
}

.btn-primary {
    background: #ff4444;
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #ff6666;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.4);
}

.btn-close {
    filter: invert(1);
}

/* Alert Styles */
.alert {
    border-radius: 8px;
    border: none;
}

.alert-success {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border-left: 3px solid #4caf50;
}

.alert-danger {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border-left: 3px solid #f44336;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-header-card {
        padding: 30px 20px;
    }
    
    .profile-avatar {
        width: 120px;
        height: 120px;
    }
    
    .profile-username {
        font-size: 26px;
    }
    
    .profile-stats-badges {
        width: 100%;
    }
    
    .profile-level-badge,
    .profile-balance {
        min-width: 250px;
        width: 100%;
        max-width: 300px;
    }
    
    .profile-social-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .social-link-btn {
        min-width: 100%;
        padding: 14px 18px;
        font-size: 14px;
    }
    
    .donation-logo {
        width: 28px;
        height: 28px;
    }
    
    .social-link-btn i {
        font-size: 18px;
    }
    
    .profile-stats-row {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
        margin: 20px 0;
        padding: 15px 0;
    }
    
    .stat-box {
        flex-direction: column;
        text-align: center;
        padding: 12px;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
    }
    
    .stat-icon i {
        font-size: 18px;
    }
    
    .stat-number {
        font-size: 18px;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    .btn-profile-action {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .profile-section-card {
        height: auto;
        min-height: 400px;
        margin-bottom: 20px;
    }
    
    .scrollable-content {
        max-height: 350px;
    }
}

@media (max-width: 576px) {
    .profile-avatar {
        width: 100px;
        height: 100px;
    }
    
    .profile-username {
        font-size: 22px;
    }
    
    .profile-balance {
        font-size: 14px;
        padding: 8px 20px;
    }
    
    .profile-stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin: 15px 0;
        padding: 12px 0;
    }
    
    .stat-box {
        padding: 10px;
    }
    
    .stat-icon {
        width: 35px;
        height: 35px;
    }
    
    .stat-icon i {
        font-size: 16px;
    }
    
    .stat-number {
        font-size: 16px;
    }
    
    .stat-label {
        font-size: 10px;
    }
    
    .btn-profile-action {
        font-size: 13px;
        padding: 10px 15px;
    }
}

/* Gallery Locale Groups */
.gallery-locale-group {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-locale-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.locale-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.locale-title {
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.locale-flag {
    font-size: 24px;
    margin-right: 10px;
    display: inline-block;
}

.locale-name {
    margin-right: 8px;
}

.locale-count {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .locale-title {
        font-size: 16px;
    }
    
    .locale-flag {
        font-size: 20px;
        margin-right: 8px;
    }
    
    .locale-count {
        font-size: 11px;
        padding: 3px 6px;
    }
}

/* ========================================
   Profile Page Renewed - Reference Layout
   ======================================== */
.profile-page-renewed .profile-header-renewed {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 16px;
    padding: 24px 28px;
    border: 1px solid rgba(255, 71, 87, 0.15);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.profile-header-top {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.profile-header-left {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

/* YouTube old style: round avatar + username + subscribers */
.profile-header-youtube-style .profile-header-left {
    align-items: flex-start;
}
.profile-avatar-round-wrapper {
    flex-shrink: 0;
    width: 128px;
    height: 128px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 71, 87, 0.5);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
.profile-avatar-round {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.profile-username-subscribers-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.profile-username-subscribers-row .profile-username-renewed {
    margin: 0;
}
.profile-subscribers-inline {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.profile-subscribers-inline:hover {
    color: #ff4757;
}
.profile-subscribers-inline .subscribers-count {
    font-weight: 700;
    color: #fff;
}
.profile-subscribe-inline-form {
    display: inline-block;
    margin-bottom: 12px;
}

@media (max-width: 576px) {
    .profile-avatar-round-wrapper { width: 96px; height: 96px; }
    .profile-username-subscribers-row { flex-direction: column; align-items: flex-start; }
}

.profile-avatar-wrapper {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.profile-avatar-wrapper.profile-avatar-with-subscribe {
    background: linear-gradient(180deg, rgba(255, 71, 87, 0.08) 0%, rgba(30, 30, 30, 0.95) 45%);
    border-radius: 24px;
    padding: 16px 16px 14px;
    border: 2px solid rgba(255, 71, 87, 0.35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.profile-subscribe-below-avatar {
    margin: 0;
    width: 100%;
    margin-top: 14px;
}

.btn-subscribe-avatar {
    width: 100%;
    min-width: 120px;
    max-width: 140px;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    border: 2px solid transparent;
    background: linear-gradient(135deg, #ff4757, #ff6b7a);
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.35);
}

.btn-subscribe-avatar:hover {
    box-shadow: 0 6px 18px rgba(255, 71, 87, 0.45);
}

.btn-subscribe-avatar.btn-subscribed {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-subscribe-avatar.btn-subscribed:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.1));
}

.profile-avatar-renewed {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 71, 87, 0.5);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.profile-info-main {
    flex: 1;
    min-width: 0;
}

.profile-username-renewed {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.member-type-badge-inline {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.profile-action-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.btn-profile-primary {
    padding: 10px 20px;
    background: #ff4757;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-profile-primary:hover {
    background: #ff6b7a;
    transform: translateY(-1px);
}

.btn-profile-primary.btn-subscribed {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-profile-primary.btn-subscribed:hover {
    background: rgba(255, 255, 255, 0.25);
}

.btn-profile-secondary {
    width: 40px;
    height: 40px;
    padding: 0;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-profile-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.profile-header-divider {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 4px;
}

.donation-btn-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.profile-stats-bar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-completion-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-completion-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.profile-completion-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff4757, #ff6b7a);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.profile-completion-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.profile-stats-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.profile-stat-item {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.profile-stat-item i {
    opacity: 0.8;
}

.profile-stat-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: color 0.2s;
}
.profile-stat-link:hover {
    color: #ff4757;
}

/* Profile Upload Buttons */
.profile-upload-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.profile-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    color: #fff;
    transition: all 0.25s ease;
    border: 2px solid transparent;
}
.profile-upload-gallery {
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.25), rgba(255, 71, 87, 0.15));
    border-color: rgba(255, 71, 87, 0.4);
}
.profile-upload-gallery:hover {
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.4), rgba(255, 71, 87, 0.25));
    border-color: #ff4757;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 71, 87, 0.3);
}
.profile-upload-video {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.25), rgba(118, 75, 162, 0.15));
    border-color: rgba(102, 126, 234, 0.4);
}
.profile-upload-video:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.4), rgba(118, 75, 162, 0.25));
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(102, 126, 234, 0.3);
}

/* Subscribers Pill - Pop style */
.profile-subscribers-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 10px;
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.12) 0%, rgba(255, 71, 87, 0.06) 100%);
    border: 1px solid rgba(255, 71, 87, 0.25);
    border-radius: 24px;
    text-decoration: none;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.08);
}
.profile-subscribers-pill:hover {
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.2) 0%, rgba(255, 71, 87, 0.1) 100%);
    border-color: rgba(255, 71, 87, 0.45);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(255, 71, 87, 0.18);
}
.subscribers-pill-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 71, 87, 0.25);
    border-radius: 50%;
    font-size: 12px;
}
.subscribers-pill-icon i {
    color: #ff6b7a;
}
.subscribers-pill-count {
    font-weight: 700;
    font-size: 15px;
    color: #fff;
    letter-spacing: 0.02em;
}
.subscribers-pill-label {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
    font-size: 12px;
}

/* Subscribers Highlight Card */
.profile-subscribers-highlight {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.15) 0%, rgba(255, 71, 87, 0.08) 100%);
    border: 2px solid rgba(255, 71, 87, 0.4);
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    max-width: 280px;
}
.profile-subscribers-highlight:hover {
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.25) 0%, rgba(255, 71, 87, 0.15) 100%);
    border-color: #ff4757;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 71, 87, 0.3);
}
.subscribers-highlight-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 71, 87, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}
.subscribers-highlight-icon i {
    color: #ff4757;
}
.subscribers-highlight-content {
    flex: 1;
}
.subscribers-highlight-count {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}
.subscribers-highlight-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}
.subscribers-highlight-arrow {
    font-size: 14px;
    opacity: 0.6;
}
.profile-subscribers-highlight:hover .subscribers-highlight-arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* Subscribers Page */
.subscribers-header-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 71, 87, 0.15);
}
.subscribers-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}
.subscribers-avatar-link {
    flex-shrink: 0;
}
.subscribers-page-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 71, 87, 0.5);
}
.subscribers-page-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.member-type-inline {
    width: 28px;
    height: 28px;
    object-fit: contain;
}
.subscribers-page-subtitle {
    margin: 0;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
}
@media (max-width: 768px) {
    .profile-subscribers-highlight { max-width: 100%; }
    .subscribers-page-avatar { width: 60px; height: 60px; }
    .subscribers-page-title { font-size: 20px; }
}

.profile-stat-badge {
    color: #ffc107;
}

.profile-stat-balance {
    color: #ff9800;
}

/* Tab Navigation */
.profile-tabs-renewed {
    background: #1a1a1a;
    border-radius: 12px;
    border: 1px solid rgba(255, 71, 87, 0.1);
    overflow: hidden;
}

.profile-tab-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 2px solid rgba(255, 71, 87, 0.2);
    list-style: none;
    margin: 0;
}

.profile-tab-btn {
    padding: 10px 16px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.profile-tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.profile-tab-btn.active {
    color: #ff4757;
    background: rgba(255, 71, 87, 0.15);
}

.tab-count {
    font-size: 12px;
    opacity: 0.8;
}

.profile-tab-content {
    padding: 24px;
}

.profile-tab-pane {
    display: none;
}

.profile-tab-pane.active {
    display: block;
}

.profile-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-section-title i {
    color: #ff4757;
}

.profile-badges-grid-renewed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
    gap: 10px;
}

.profile-badge-item {
    position: relative;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.profile-badge-item.earned {
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.4);
}

.profile-badge-item.locked {
    opacity: 0.4;
}

.profile-badge-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.profile-badge-item .badge-lock {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.6);
}

/* Sidebar */
.profile-sidebar-renewed {
    position: sticky;
    top: 20px;
}

.sidebar-widget {
    background: #1a1a1a;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.sidebar-widget-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-widget-title i {
    color: #ff4757;
}

.widget-count {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-left: 4px;
}

.widget-count-link {
    font-size: 13px;
    color: #ff4757;
    margin-left: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}
.widget-count-link:hover {
    color: #ff6b7a;
    opacity: 0.9;
}

.sidebar-subscribers-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    margin-left: 6px;
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.2) 0%, rgba(255, 71, 87, 0.08) 100%);
    border: 1px solid rgba(255, 71, 87, 0.3);
    border-radius: 16px;
    text-decoration: none;
    color: #ff6b7a;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
}
.sidebar-subscribers-pill:hover {
    background: rgba(255, 71, 87, 0.25);
    border-color: rgba(255, 71, 87, 0.5);
    transform: translateY(-1px);
}

.sidebar-videos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.sidebar-video-item {
    text-decoration: none;
    color: inherit;
    display: block;
}

.sidebar-video-thumb {
    position: relative;
    padding-top: 56%;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

.sidebar-video-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-video-duration {
    position: absolute;
    bottom: 6px;
    left: 6px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
}

.sidebar-video-views {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.8);
    color: rgba(255, 255, 255, 0.9);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
}

.sidebar-video-title {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-view-all {
    display: block;
    text-align: center;
    padding: 10px;
    color: #ff4757;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    margin-top: 12px;
    border-radius: 8px;
    background: rgba(255, 71, 87, 0.1);
    transition: all 0.3s ease;
}

.sidebar-view-all:hover {
    background: rgba(255, 71, 87, 0.2);
    color: #ff4757;
}

.sidebar-members-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sidebar-member-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    width: 70px;
    text-align: center;
}

.sidebar-member-avatar-wrap {
    position: relative;
    display: inline-block;
}

.sidebar-member-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 71, 87, 0.3);
    display: block;
}

.sidebar-member-avatar-wrap .member-type-tiny {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #1a1a1a;
    object-fit: contain;
    background: #1a1a1a;
}

.sidebar-member-item span {
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

/* Profile Board Items */
.profile-board-item {
    display: block;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid #ff4757;
    border-radius: 8px;
    margin-bottom: 12px;
    text-decoration: none;
    color: inherit;
}

.profile-board-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.board-time {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.profile-board-item p {
    margin: 8px 0;
    color: #fff;
    font-size: 14px;
}

.board-meta {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

/* Profile Activity Items */
.profile-activity-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 10px;
}

.profile-activity-item i {
    font-size: 18px;
    flex-shrink: 0;
}

.profile-activity-item a {
    color: #ff4757;
    text-decoration: none;
}

.profile-activity-item a:hover {
    text-decoration: underline;
}

.activity-comment-preview {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin: 6px 0;
}

.activity-time {
    color: rgba(255, 255, 255, 0.5);
}

/* Empty State */
.profile-empty-state {
    text-align: center;
    padding: 60px 20px;
}

.profile-empty-state i {
    font-size: 48px;
    color: rgba(255, 71, 87, 0.3);
    display: block;
    margin-bottom: 16px;
}

.profile-empty-state p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
}

/* Edit Modal */
.profile-edit-modal .modal-content {
    background: #1a1a1a;
    border: 1px solid rgba(255, 71, 87, 0.2);
}

.profile-edit-modal .modal-header {
    border-bottom: 1px solid rgba(255, 71, 87, 0.2);
}

.profile-edit-modal .nav-tabs .nav-link {
    color: rgba(255, 255, 255, 0.7);
}

.profile-edit-modal .nav-tabs .nav-link.active {
    color: #ff4757;
    border-color: #ff4757;
}

.member-type-box {
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.3);
}

.badge-earned-box {
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.locale-group-title {
    color: #fff;
    font-size: 16px;
    margin-bottom: 12px;
}

@media (max-width: 768px) {
    .profile-header-top { flex-direction: column; }
    .profile-avatar-renewed { width: 100px; height: 100px; }
    .profile-username-renewed { font-size: 20px; }
    .profile-tab-nav { flex-direction: column; }
    .sidebar-videos-grid { grid-template-columns: 1fr; }
}
