/* User Profile Panel - MorrHollow Style (RemiliaMincho + WoW Gradients) */

/* Referral Preview Section */
.profile-referral-preview {
    margin: 20px 16px;
    background: linear-gradient(135deg,
        rgba(30, 41, 59, 0.4) 0%,
        rgba(51, 65, 85, 0.5) 100%);
    border: 1px solid rgba(186, 166, 116, 0.2);
    border-radius: 12px;
    padding: 16px;
}

.referral-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.view-referral-btn {
    background: linear-gradient(180deg,
        rgba(51, 65, 85, 0.9) 0%,
        rgba(71, 85, 105, 0.95) 100%);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 6px;
    padding: 6px 12px;
    color: rgba(186, 166, 116, 0.9);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'RemiliaMincho', serif;
    font-size: 12px;
}

.view-referral-btn:hover {
    background: linear-gradient(180deg,
        rgba(71, 85, 105, 0.95) 0%,
        rgba(100, 116, 139, 1) 100%);
    border-color: rgba(212, 175, 55, 0.6);
    color: rgba(212, 175, 55, 0.95);
}

.referral-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
}

.referral-preview-card {
    background: linear-gradient(135deg,
        rgba(15, 23, 42, 0.5) 0%,
        rgba(30, 41, 59, 0.6) 100%);
    border: 1px solid rgba(186, 166, 116, 0.15);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}

.preview-icon {
    font-size: 24px;
    margin-bottom: 6px;
}

.preview-value {
    font-size: 18px;
    font-weight: 600;
    color: rgba(212, 175, 55, 0.95);
    margin-bottom: 4px;
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.8);
}

.preview-label {
    font-size: 10px;
    color: rgba(186, 166, 116, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-panel {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    box-shadow:
        rgba(186, 166, 116, 0.2) 0 0 30px,
        rgba(186, 166, 116, 0.1) 0 0 15px,
        rgba(186, 166, 116, 0.05) 1px 1px 3px inset,
        rgba(0, 0, 0, 0.4) 0 8px 32px;
    font-family: 'RemiliaMincho', serif;
    font-size: 13px;
    color: #E5E7EB;
    user-select: none;
    margin: 0;
    padding: 0;
    position: relative;
    background: transparent;
}

.profile-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(30, 41, 59, 0.05) 0%,
        rgba(51, 65, 85, 0.08) 50%,
        rgba(30, 41, 59, 0.05) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: -1;
    pointer-events: none;
}

/* MorrHollow Header Style */
.profile-panel .panel-header {
    background: linear-gradient(0deg, rgba(30, 41, 59, 0.95), rgba(51, 65, 85, 0.98));
    height: 2.25rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    margin: 0;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    position: relative;
    z-index: 20;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.profile-panel .panel-header h2 {
    font-family: 'RemiliaMincho', serif;
    font-size: 0.9rem;
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.8);
    color: rgba(186, 166, 116, 0.7);
    font-weight: 400;
    opacity: 0.8;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.profile-actions button {
    width: 20px;
    height: 20px;
    background: linear-gradient(180deg,
        rgba(30, 41, 59, 0.9) 0%,
        rgba(51, 65, 85, 0.95) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 4px;
    color: rgba(186, 166, 116, 0.8);
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.8);
}

.profile-actions button:hover {
    background: linear-gradient(180deg,
        rgba(51, 65, 85, 0.9) 0%,
        rgba(30, 41, 59, 0.95) 100%);
    border-color: rgba(212, 175, 55, 0.5);
    color: rgba(212, 175, 55, 0.9);
    box-shadow: 0 0 6px rgba(212, 175, 55, 0.2);
}

/* Profile Header Section */
.profile-header {
    padding: 20px;
    background: linear-gradient(180deg,
        rgba(30, 41, 59, 0.15) 0%,
        rgba(51, 65, 85, 0.2) 100%);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    display: flex;
    gap: 16px;
    align-items: flex-start;
    position: relative;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.profile-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg,
        rgba(30, 41, 59, 0.6) 0%,
        rgba(51, 65, 85, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.avatar-gradient {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg,
        rgba(212, 175, 55, 0.3) 0%,
        rgba(186, 166, 116, 0.4) 50%,
        rgba(212, 175, 55, 0.3) 100%);
    animation: avatarPulse 3s ease-in-out infinite;
}

@keyframes avatarPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.9; }
}

.level-badge {
    position: absolute;
    bottom: -6px;
    right: -6px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border: 2px solid rgba(30, 41, 59, 0.95);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.profile-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.profile-name {
    font-family: 'RemiliaMincho', serif;
    font-size: 18px;
    font-weight: 700;
    color: rgba(212, 175, 55, 1);
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.3px;
}

.profile-badge {
    background: linear-gradient(180deg,
        rgba(30, 41, 59, 0.6) 0%,
        rgba(51, 65, 85, 0.8) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    color: rgba(186, 166, 116, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.8);
}

.profile-badge.verified {
    border-color: rgba(34, 197, 94, 0.5);
    color: rgba(34, 197, 94, 0.9);
}

.profile-meta {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: rgba(186, 166, 116, 0.6);
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.meta-label {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-value {
    color: rgba(212, 175, 55, 0.8);
    font-weight: 600;
}

/* XP Progress Bar */
.xp-section {
    margin-top: 8px;
}

.xp-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    font-size: 10px;
    color: rgba(186, 166, 116, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.xp-progress-bar {
    width: 100%;
    height: 12px;
    background: linear-gradient(180deg,
        rgba(30, 41, 59, 0.6) 0%,
        rgba(51, 65, 85, 0.8) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.xp-fill {
    height: 100%;
    background: linear-gradient(90deg,
        #3b82f6 0%,
        #8b5cf6 50%,
        #3b82f6 100%);
    border-radius: 6px;
    transition: width 0.5s ease;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
    position: relative;
    overflow: hidden;
}

.xp-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: xpShimmer 2s linear infinite;
}

@keyframes xpShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Stats Section */
.profile-stats {
    padding: 16px;
    background: linear-gradient(180deg,
        rgba(30, 41, 59, 0.1) 0%,
        rgba(51, 65, 85, 0.15) 100%);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.stats-title {
    font-family: 'RemiliaMincho', serif;
    font-size: 12px;
    font-weight: 600;
    color: rgba(212, 175, 55, 0.9);
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.5);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.stat-card {
    background: linear-gradient(180deg,
        rgba(30, 41, 59, 0.3) 0%,
        rgba(51, 65, 85, 0.5) 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 6px;
    padding: 10px;
    text-align: center;
    transition: all 0.15s ease;
    cursor: default;
}

.stat-card:hover {
    background: linear-gradient(180deg,
        rgba(51, 65, 85, 0.5) 0%,
        rgba(30, 41, 59, 0.7) 100%);
    border-color: rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.stat-value {
    font-family: 'RemiliaMincho', serif;
    font-size: 18px;
    font-weight: 700;
    color: rgba(212, 175, 55, 1);
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.5);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 9px;
    color: rgba(186, 166, 116, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Achievements Section */
.profile-achievements {
    padding: 16px;
    flex: 1;
    overflow-y: auto;
}

.achievements-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.achievements-title {
    font-family: 'RemiliaMincho', serif;
    font-size: 12px;
    font-weight: 600;
    color: rgba(212, 175, 55, 0.9);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.5);
}

.view-all-achievements {
    background: linear-gradient(180deg,
        rgba(30, 41, 59, 0.6) 0%,
        rgba(51, 65, 85, 0.8) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: rgba(186, 166, 116, 0.8);
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'RemiliaMincho', serif;
    font-size: 10px;
    font-weight: 600;
    transition: all 0.15s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.8);
}

.view-all-achievements:hover {
    background: linear-gradient(180deg,
        rgba(51, 65, 85, 0.8) 0%,
        rgba(30, 41, 59, 0.9) 100%);
    border-color: rgba(212, 175, 55, 0.5);
    color: rgba(212, 175, 55, 0.9);
    box-shadow: 0 0 6px rgba(212, 175, 55, 0.2);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.achievement-badge {
    aspect-ratio: 1;
    background: linear-gradient(180deg,
        rgba(30, 41, 59, 0.4) 0%,
        rgba(51, 65, 85, 0.6) 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
    overflow: hidden;
}

.achievement-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
    transition: left 0.5s ease;
}

.achievement-badge:hover::before {
    left: 100%;
}

.achievement-badge:hover {
    background: linear-gradient(180deg,
        rgba(51, 65, 85, 0.6) 0%,
        rgba(30, 41, 59, 0.8) 100%);
    border-color: rgba(212, 175, 55, 0.4);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.achievement-badge.locked {
    opacity: 0.3;
    filter: grayscale(1);
}

.achievement-badge.locked:hover {
    opacity: 0.5;
}

/* Profile Actions Footer */
.profile-footer {
    padding: 12px;
    background: linear-gradient(180deg,
        rgba(30, 41, 59, 0.15) 0%,
        rgba(51, 65, 85, 0.2) 100%);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    position: relative;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.footer-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.action-btn {
    background: linear-gradient(180deg,
        rgba(30, 41, 59, 0.6) 0%,
        rgba(51, 65, 85, 0.8) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: rgba(186, 166, 116, 0.8);
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'RemiliaMincho', serif;
    font-size: 10px;
    font-weight: 600;
    transition: all 0.15s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.3s ease;
}

.action-btn:hover {
    background: linear-gradient(180deg,
        rgba(51, 65, 85, 0.8) 0%,
        rgba(30, 41, 59, 0.9) 100%);
    border-color: rgba(212, 175, 55, 0.5);
    color: rgba(212, 175, 55, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

.action-icon {
    font-size: 16px;
}

/* Scrollbar Styling */
.profile-achievements::-webkit-scrollbar {
    width: 8px;
}

.profile-achievements::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.profile-achievements::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg,
        rgba(212, 175, 55, 0.4) 0%,
        rgba(186, 166, 116, 0.6) 100%);
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.profile-achievements::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg,
        rgba(212, 175, 55, 0.6) 0%,
        rgba(186, 166, 116, 0.8) 100%);
}

/* Tooltip for achievements */
.achievement-tooltip {
    position: absolute;
    background: linear-gradient(135deg,
        rgba(30, 41, 59, 0.95) 0%,
        rgba(51, 65, 85, 0.98) 100%);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 11px;
    color: #E5E7EB;
    pointer-events: none;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.achievement-tooltip.show {
    opacity: 1;
}

/* Avatar Image Styling */
.profile-avatar .avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Edit Profile Modal */
.edit-profile-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.edit-profile-backdrop.show {
    opacity: 1;
}

.edit-profile-modal {
    background: linear-gradient(135deg,
        rgba(30, 41, 59, 0.95) 0%,
        rgba(51, 65, 85, 0.98) 100%);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow:
        rgba(186, 166, 116, 0.2) 0 0 30px,
        rgba(0, 0, 0, 0.5) 0 20px 60px;
    font-family: 'RemiliaMincho', serif;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.edit-profile-backdrop.show .edit-profile-modal {
    transform: scale(1);
}

.edit-profile-modal .modal-header {
    background: linear-gradient(0deg,
        rgba(30, 41, 59, 0.95),
        rgba(51, 65, 85, 0.98));
    padding: 16px 20px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.4);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.edit-profile-modal .modal-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: rgba(212, 175, 55, 1);
    margin: 0;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-close {
    width: 32px;
    height: 32px;
    background: linear-gradient(180deg,
        rgba(30, 41, 59, 0.6) 0%,
        rgba(51, 65, 85, 0.8) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 6px;
    color: rgba(186, 166, 116, 0.8);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.modal-close:hover {
    background: linear-gradient(180deg,
        rgba(51, 65, 85, 0.8) 0%,
        rgba(30, 41, 59, 0.9) 100%);
    border-color: rgba(212, 175, 55, 0.5);
    color: rgba(212, 175, 55, 0.9);
}

.modal-body {
    padding: 20px;
    max-height: calc(90vh - 70px);
    overflow-y: auto;
}

.edit-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.edit-section:last-child {
    border-bottom: none;
}

.edit-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: rgba(212, 175, 55, 0.9);
    margin: 0 0 16px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Current Avatar Display */
.current-avatar {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.current-avatar .profile-avatar {
    width: 100px;
    height: 100px;
}

.current-avatar .profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* PFP Picker */
.pfp-picker {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.pfp-option {
    aspect-ratio: 1;
    border-radius: 12px;
    border: 2px solid rgba(212, 175, 55, 0.2);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.pfp-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pfp-option:hover {
    border-color: rgba(212, 175, 55, 0.5);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.pfp-option.selected {
    border-color: rgba(212, 175, 55, 1);
    box-shadow:
        0 0 0 2px rgba(30, 41, 59, 0.95),
        0 0 20px rgba(212, 175, 55, 0.5);
}

.pfp-option.selected::after {
    content: '✓';
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(212, 175, 55, 1);
    color: rgba(30, 41, 59, 1);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

/* Username Section */
.username-info {
    margin-bottom: 12px;
    padding: 12px;
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 6px;
}

.username-info p {
    margin: 6px 0;
    font-size: 13px;
    color: rgba(186, 166, 116, 0.8);
}

.username-info strong {
    color: rgba(212, 175, 55, 1);
}

.username-changes-info {
    font-size: 12px !important;
    color: rgba(186, 166, 116, 0.6) !important;
}

.username-input-group {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.username-input-group input {
    flex: 1;
    background: linear-gradient(180deg,
        rgba(30, 41, 59, 0.6) 0%,
        rgba(51, 65, 85, 0.8) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 6px;
    padding: 10px 12px;
    color: rgba(212, 175, 55, 1);
    font-family: 'RemiliaMincho', serif;
    font-size: 14px;
    transition: all 0.2s ease;
}

.username-input-group input:focus {
    outline: none;
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}

.username-input-group input::placeholder {
    color: rgba(186, 166, 116, 0.4);
}

.save-username-btn {
    background: linear-gradient(180deg,
        rgba(212, 175, 55, 0.8) 0%,
        rgba(186, 166, 116, 0.9) 100%);
    border: 1px solid rgba(212, 175, 55, 0.5);
    color: rgba(30, 41, 59, 1);
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'RemiliaMincho', serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.save-username-btn:hover {
    background: linear-gradient(180deg,
        rgba(212, 175, 55, 1) 0%,
        rgba(186, 166, 116, 1) 100%);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
    transform: translateY(-1px);
}

.input-hint {
    font-size: 11px;
    color: rgba(186, 166, 116, 0.5);
    margin: 4px 0 0 0;
    font-style: italic;
}

/* Logout Button */
.logout-btn {
    width: 100%;
    background: linear-gradient(180deg,
        rgba(239, 68, 68, 0.8) 0%,
        rgba(220, 38, 38, 0.9) 100%);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: white;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'RemiliaMincho', serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.logout-btn:hover {
    background: linear-gradient(180deg,
        rgba(239, 68, 68, 1) 0%,
        rgba(220, 38, 38, 1) 100%);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    transform: translateY(-1px);
}

.logout-icon {
    font-size: 18px;
}

/* Modal Scrollbar */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg,
        rgba(212, 175, 55, 0.4) 0%,
        rgba(186, 166, 116, 0.6) 100%);
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg,
        rgba(212, 175, 55, 0.6) 0%,
        rgba(186, 166, 116, 0.8) 100%);
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .achievements-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-actions {
        grid-template-columns: repeat(2, 1fr);
    }

    .pfp-picker {
        grid-template-columns: repeat(3, 1fr);
    }

    .username-input-group {
        flex-direction: column;
    }

    .save-username-btn {
        width: 100%;
    }
}
