/* Styles for the Profile Modal - Refined for Character Sheet Look */
:root {
    --profile-primary-font: 'Roboto Mono', monospace;
    --profile-accent-font: 'Press Start 2P', cursive;
    --profile-glow-color: #00FFDC;
    --profile-text-primary: #E0F0FF;
    --profile-text-secondary: #A0C0E0;
}

.profile-modal {
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85); /* Match datamining: Darker overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0s linear 0.4s;
    backdrop-filter: blur(6px); /* Match datamining: Stronger blur */
}

.profile-modal.visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease;
}

.profile-modal-content {
    background: linear-gradient(145deg, rgba(10, 25, 40, 0.97), rgba(20, 35, 55, 0.97)); /* Match datamining: Darker, techy gradient */
    margin: auto;
    padding: 0; 
    border: 1px solid rgba(0, 255, 220, 0.6); /* Match datamining: Cyan/Turquoise border */
    border-radius: 15px; 
    width: 90%;
    max-width: 400px; 
    box-shadow: 0 10px 50px rgba(0, 255, 220, 0.7), 0 0 20px rgba(0,0,0,0.4); /* Match datamining: Stronger glow */
    color: var(--profile-text-primary); /* Updated to use CSS variable */
    display: flex;
    flex-direction: column;
    overflow: hidden; 
    font-family: var(--profile-primary-font); /* Added primary font */
}

.profile-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px; /* Match datamining */
    background-color: rgba(0,0,0,0.3); /* Match datamining */
    border-bottom: 1px solid rgba(0, 255, 220, 0.4); /* Match datamining */
}

.profile-modal-header h3 {
    font-family: var(--profile-accent-font); /* Added accent font */
    color: var(--profile-glow-color);  /* Updated to use CSS variable */
    margin: 0;
    font-size: 1.4em; /* Adjusted for new font */
    font-weight: normal; /* Press Start 2P is already bold */
    text-shadow: 0 0 6px rgba(0, 255, 220, 0.8);
}

.profile-modal-close-button {
    background: none;
    border: none;
    color: var(--profile-text-secondary); /* Updated to use CSS variable */
    font-size: 2.2em; /* Adjusted from datamining */
    font-weight: bold;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
}

.profile-modal-close-button:hover {
    color: var(--profile-glow-color); /* Updated to use CSS variable */
    transform: scale(1.1);
}

.profile-modal-tabs {
    display: flex;
    background-color: rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(0, 255, 220, 0.4);
}

.profile-tab-button {
    flex: 1;
    padding: 12px 10px;
    background-color: transparent;
    border: none;
    color: var(--profile-text-secondary);
    font-family: var(--profile-primary-font);
    font-size: 0.9em;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    border-bottom: 3px solid transparent;
}

.profile-tab-button:hover {
    background-color: rgba(0, 255, 220, 0.1);
}

.profile-tab-button.active {
    color: var(--profile-glow-color);
    border-bottom: 3px solid var(--profile-glow-color);
    font-weight: bold;
}

.profile-tab-content {
    display: none; /* Hide all tab content by default */
}

.profile-tab-content.active {
    display: flex; /* Display only the active tab content */
    flex-direction: column;
    gap: 15px;
}

#profile-pvp-mode-content {
    /* This rule was moved to the generic .profile-tab-content.active */
    /* display: flex; */
    /* flex-direction: column; */
    /* gap: 20px; */
}

.profile-modal-body {
    padding: 20px 25px 25px; 
    max-height: 70vh;
    overflow-y: auto;
    font-size: 0.9rem;
}

/* Custom scrollbar for modal body (Webkit browsers) - from datamining */
.profile-modal-body::-webkit-scrollbar {
    width: 8px;
}
.profile-modal-body::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
    border-radius: 4px;
}
.profile-modal-body::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 220, 0.5); /* Accent color */
    border-radius: 4px;
}
.profile-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 220, 0.8); /* Accent color hover */
}

.profile-avatar-area {
    position: relative; 
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.profile-modal-avatar-img {
    width: 80px;
    height: 80px;
    border-radius: 50%; 
    border: 3px solid rgba(0, 255, 220, 0.7); /* Updated to new accent */
    box-shadow: 0 0 15px rgba(0, 255, 220, 0.5); /* Updated to new accent */
    object-fit: cover; 
}

.profile-nickname {
    font-family: var(--profile-accent-font);
    color: var(--profile-glow-color);
    font-size: 1.2em;
    font-weight: normal;
    text-shadow: 0 0 6px rgba(0, 255, 220, 0.8);
    text-align: center;
}

.profile-wallet-address {
    font-family: var(--profile-primary-font); /* Ensured primary font */
    background-color: rgba(0,0,0,0.3);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85em; /* Adjusted for new font */
    color: var(--profile-text-secondary); /* Updated to use CSS variable */
    word-break: break-all;
    text-align: center;
    border: 1px solid rgba(0, 255, 220, 0.2);
}

.profile-creation-date {
    font-size: 0.75em; /* Adjusted for new font */
    color: var(--profile-text-secondary); /* Updated to use CSS variable */
    margin-top: 5px; 
    text-align: center; 
}

.profile-stats-area {
    display: flex; 
    flex-direction: column;
    gap: 15px; 
}

.profile-stats-area.hidden-for-avatar-selection {
    display: none;
}

.profile-nft-area.hidden-for-avatar-selection {
    display: none;
}

.profile-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(0, 255, 220, 0.25); /* Updated to new accent, slightly more visible dash */
}
.profile-stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    font-weight: 500; /* Roboto Mono has good weight variations */
    color: var(--profile-text-secondary); /* Updated to use CSS variable */
    font-size: 0.9em; /* Adjusted for new font */
}

.stat-value {
    font-weight: 700; /* Bolder for value */
    color: var(--profile-text-primary); /* Updated to use CSS variable */
    font-size: 0.95em; /* Adjusted for new font */
}

.profile-xp-bar-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(0, 255, 220, 0.25); /* Updated to new accent */
}

.xp-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.xp-bar {
    width: 100%;
    height: 12px; 
    background-color: rgba(0,0,0,0.5); /* Darker background for XP bar, consistent with datamining progress bar bg */
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 220, 0.4); /* Updated to new accent */
}

.xp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #00FFDC, #00A2FF); /* Kept original bright fill, harmonizes with new accent */
    border-radius: 5px; 
    transition: width 0.5s ease-out;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.3);
}

/* Style for the new Next Level Cost row */
#profile-modal-next-level-cost-row {
    /* This class is already defined: .profile-stat-row */
    /* display: flex; */
    /* justify-content: space-between; */
    /* align-items: center; */
    /* padding: 10px 0; */
    /* border-bottom: 1px dashed rgba(0, 255, 220, 0.25); */ 
    /* No specific new styles needed if it uses .profile-stat-row and its children .stat-label, .stat-value */
}

@media (max-width: 480px) {
    .profile-modal-content {
        max-width: 95%;
        margin: 20px auto; /* Reverted from datamining to keep profile scale */
        /* transform: scale(0.9); Removed, profile modal was not scaling this way */
    }
    .profile-modal-header h3 {
        font-size: 1.2em; /* Adjusted for smaller screens */
    }
    .profile-modal-close-button {
        font-size: 2em;
    }
    .profile-modal-body {
        padding: 15px 20px 20px;
        font-size: 0.85rem;
    }
    .profile-modal-avatar-img {
        width: 80px; /* Keep original size */
        height: 80px;
    }
}

/* Styles for Avatar Editing in Profile Modal */
.profile-avatar-area {
    position: relative; /* Needed for absolute positioning of the edit button */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.edit-avatar-btn {
    position: absolute;
    top: 5px; 
    right: calc(50% - 65px); 
    background-color: rgba(0, 255, 220, 0.8); /* Updated to new accent */
    color: #0A1E32; 
    border: none;
    border-radius: 50%; 
    width: 30px; 
    height: 30px;
    font-size: 16px; 
    line-height: 30px; 
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 255, 220, 0.5); /* Updated to new accent */
    transition: background-color 0.3s ease, transform 0.2s ease;
    padding: 0;
    font-family: var(--profile-primary-font); /* Ensure button icon/text uses a consistent font if needed */
}

.edit-avatar-btn:hover {
    background-color: #00FFDC; /* Updated to new accent */
    transform: scale(1.1);
}

.avatar-grid {
    display: none; 
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 15px;
    padding: 15px;
    max-height: 250px;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 220, 0.2); /* Updated to new accent */
    margin-top: 10px;
}

.avatar-grid.visible {
    display: grid;
}

/* Custom scrollbar for avatar grid (Webkit browsers) - from datamining */
.avatar-grid::-webkit-scrollbar {
    width: 8px;
}

.avatar-grid::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
    border-radius: 4px;
}

.avatar-grid::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 220, 0.5); /* Accent color */
    border-radius: 4px;
}

.avatar-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 220, 0.8); /* Accent color hover */
}

.avatar-grid-item {
    width: 100%; 
    aspect-ratio: 1 / 1; 
    border-radius: 50%; 
    object-fit: cover; 
    border: 2px solid transparent; 
    cursor: pointer;
    transition: border-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.avatar-grid-item:hover {
    border-color: #00FFDC; /* Updated to new accent */
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(0, 255, 220, 0.7); /* Updated to new accent */
}

.profile-bento-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 10px; 
    padding: 10px 0; 
    /* Removed bottom border from here as individual rows might not have it, or it might be on the last one only outside the grid */
}

.profile-bento-stats-grid .profile-stat-row {
    border-bottom: none; 
    padding: 0; /* Reduced padding as stat-display-wrapper will handle it */
}

.stat-display-wrapper {
    display: flex; 
    flex-direction: column; /* Changed to column for better layout with button */
    justify-content: center; /* Center items vertically */
    align-items: center; /* Center items horizontally */
    padding: 12px 10px; /* Adjusted padding */
    border-radius: 8px; 
    width: 100%; 
    box-sizing: border-box; 
    text-align: center; /* Ensure text is centered */
    gap: 8px; /* Added gap between elements */
}

.stat-display-wrapper .stat-label {
    font-size: 0.85em; /* Slightly smaller label */
    color: var(--profile-text-secondary);
    margin-bottom: 2px; /* Small space below label */
}

.stat-display-wrapper .stat-value {
    font-size: 1.1em; /* Larger value */
    font-weight: bold;
    color: var(--profile-text-primary);
}

.stat-upgrade-section {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 8px; /* Space above the button */
}

.stat-upgrade-button {
    background-color: rgba(0, 255, 220, 0.2); /* Accent color, semi-transparent */
    border: 1px solid var(--profile-glow-color);
    color: var(--profile-glow-color);
    font-family: var(--profile-accent-font); /* Use accent font for the '+' */
    font-size: 1.3em; /* Make the '+' larger */
    font-weight: bold; /* Ensure it's bold if font supports */
    padding: 0;
    width: 32px; /* Square button */
    height: 32px;
    line-height: 30px; /* Adjust line-height for vertical centering of '+' */
    border-radius: 6px; /* Slightly rounded corners */
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    text-align: center;
    display: flex; /* For centering + if needed */
    justify-content: center;
    align-items: center;
}

.stat-upgrade-button:hover:not(:disabled) {
    background-color: rgba(0, 255, 220, 0.4);
    box-shadow: 0 0 10px rgba(0, 255, 220, 0.6);
    transform: scale(1.05);
}

.stat-upgrade-button:disabled {
    border-color: rgba(160, 192, 224, 0.3); /* --profile-text-secondary with alpha */
    background-color: rgba(160, 192, 224, 0.1);
    color: rgba(160, 192, 224, 0.4);
    cursor: not-allowed;
}

.stat-upgrade-button.hidden {
    display: none;
}

/* Styling for text messages within the NFT gallery */
.nft-gallery-container .loading-text,
.nft-gallery-container .info-text,
.nft-gallery-container .error-text,
.nft-gallery-container .nft-image-placeholder {
    width: 100%;
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
    font-size: 1.1em; /* Smaller text for messages */
    color: var(--profile-text-secondary);
    font-weight: normal;
}

/* Specific stat background colors are PRESERVED as per user request */
.stat-neural {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.35), rgba(0, 180, 255, 0.2));
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.6);
    backdrop-filter: blur(5px);
}

.stat-cyber {
    background: linear-gradient(135deg, rgba(255, 0, 128, 0.35), rgba(255, 0, 255, 0.2));
    box-shadow: 0 0 15px rgba(255, 0, 128, 0.3);
    border: 1px solid rgba(255, 0, 128, 0.6);
    backdrop-filter: blur(5px);
}

.stat-bio {
    background: linear-gradient(135deg, rgba(0, 255, 128, 0.35), rgba(0, 200, 100, 0.2));
    box-shadow: 0 0 15px rgba(0, 255, 128, 0.3);
    border: 1px solid rgba(0, 255, 128, 0.6);
    backdrop-filter: blur(5px);
}

.stat-quantum {
    background: linear-gradient(135deg, rgba(128, 0, 255, 0.35), rgba(200, 0, 255, 0.2));
    box-shadow: 0 0 15px rgba(128, 0, 255, 0.3);
    border: 1px solid rgba(128, 0, 255, 0.6);
    backdrop-filter: blur(5px);
}

/* New styles for NFT Display Area */
.profile-nft-area {
    background-color: rgba(10, 30, 50, 0.6); /* Slightly darker than main content, or a contrasting shade */
    border: 1px solid var(--profile-glow-color); /* Consistent glow border */
    border-radius: 10px; /* Consistent with other rounded elements */
    padding: 15px 20px;
    text-align: center;
    margin: 10px 0; /* Reduced vertical spacing */
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35), inset 0 0 12px rgba(0, 255, 220, 0.15); /* Enhanced shadow for depth */
}

.profile-nft-area h4 {
    font-family: var(--profile-accent-font);
    color: var(--profile-glow-color);
    font-size: 1.15em; /* Adjusted size */
    margin-top: 0;
    margin-bottom: 12px; /* Space below title */
    text-shadow: 0 0 5px rgba(0, 255, 220, 0.7);
    font-weight: normal; /* Accent font is often bold by default */
}

.nft-gallery-container {
    display: flex; 
    flex-wrap: wrap;
    gap: 10px; /* Espace entre les images */
    justify-content: center; /* Centre les images si elles ne remplissent pas une ligne */
    max-height: 150px; /* Hauteur maximale, ajustez selon vos besoins */
    overflow-y: auto;   /* Ajoute une barre de défilement si beaucoup de NFTs */
    padding: 10px;      /* Un peu d'espace intérieur */
    background-color: rgba(0,0,0,0.15); /* Un fond léger pour distinguer la zone */
    border-radius: 6px; /* Coins arrondis */
    min-height: 50px; /* Hauteur minimale pour voir les messages textuels */
}

.nft-gallery-image {
    width: 60px;  /* Largeur de l'image NFT */
    height: 60px; /* Hauteur de l'image NFT */
    object-fit: cover; /* Assure que l'image couvre la zone sans la déformer */
    border-radius: 4px; /* Coins arrondis pour les images */
    border: 1px solid rgba(0, 255, 220, 0.3); /* Bordure discrète de la couleur d'accent */
}

/* Styles pour la barre de défilement (optionnel, pour Webkit) */
.nft-gallery-container::-webkit-scrollbar {
    width: 6px;
}
.nft-gallery-container::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
    border-radius: 3px;
}
.nft-gallery-container::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 220, 0.4);
    border-radius: 3px;
}
.nft-gallery-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 220, 0.6);
}

/* New Wrapper for Level / Cost info */
.profile-level-info-wrapper {
    background-color: rgba(10, 30, 50, 0.6);
    border: 1px solid var(--profile-glow-color);
    border-radius: 10px;
    padding: 5px 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3), inset 0 0 10px rgba(0, 255, 220, 0.15);
}

.profile-level-info-wrapper .profile-stat-row:first-child {
    align-items: baseline; /* Better for varied font sizes */
}

#profile-modal-level.stat-value {
    font-family: var(--profile-accent-font);
    font-size: 2em; /* Increased font size */
    color: var(--profile-glow-color);
    text-shadow: 0 0 8px rgba(0, 255, 220, 0.7); /* Glow effect */
    font-weight: normal; /* Press Start 2P is bold by default */
}

.pvp-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 10px 0;
}

.pvp-stat-card {
    background: linear-gradient(145deg, rgba(15, 35, 60, 0.8), rgba(25, 45, 70, 0.8));
    border: 1px solid rgba(0, 255, 220, 0.3);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.pvp-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 255, 220, 0.2);
}

.pvp-stat-label {
    font-size: 0.85em;
    color: var(--profile-text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.pvp-stat-value {
    font-size: 1.4em;
    font-weight: bold;
    color: var(--profile-text-primary);
    font-family: var(--profile-accent-font);
    text-shadow: 0 0 5px rgba(0, 255, 220, 0.5);
}

.pvp-header-area {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: rgba(0,0,0,0.2);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 220, 0.2);
}

.pvp-modal-avatar-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid var(--profile-glow-color);
    box-shadow: 0 0 12px rgba(0, 255, 220, 0.4);
}

.pvp-header-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.pvp-level {
    font-family: var(--profile-accent-font);
    font-size: 1.5em;
    color: var(--profile-text-primary);
}

.pvp-hp {
    font-size: 1em;
    font-weight: bold;
    color: var(--profile-text-secondary);
}

.pvp-stats-grid-detailed {
    display: grid;
    grid-template-columns: 1fr; /* Single column for more detail */
    gap: 12px;
}

.pvp-stat-card-detailed {
    background: linear-gradient(145deg, rgba(15, 35, 60, 0.8), rgba(25, 45, 70, 0.8));
    border: 1px solid rgba(0, 255, 220, 0.15);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pvp-stat-main {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px dashed rgba(0, 255, 220, 0.2);
    padding-bottom: 10px;
}

.pvp-stat-label-detailed {
    font-size: 1em;
    color: var(--profile-text-primary);
    font-weight: bold;
}

.pvp-stat-value-detailed {
    font-family: var(--profile-accent-font);
    font-size: 1.3em;
    color: var(--profile-glow-color);
    text-shadow: 0 0 4px var(--profile-glow-color);
}

.pvp-stat-breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.8em;
    color: var(--profile-text-secondary);
}

.pvp-stat-breakdown span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.stat-icon {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.bio-icon { background-color: #00ff80; box-shadow: 0 0 5px #00ff80; }
.neural-icon { background-color: #00ffff; box-shadow: 0 0 5px #00ffff; }
.cyber-icon { background-color: #ff0080; box-shadow: 0 0 5px #ff0080; }
.quantum-icon { background-color: #8000ff; box-shadow: 0 0 5px #8000ff; }

.nickname-edit-container {
    display: none; /* Hidden by default */
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 5px 0;
}

.nickname-edit-container.visible {
    display: flex;
}

.nickname-edit-input {
    background-color: rgba(0,0,0,0.4);
    border: 1px solid var(--profile-glow-color);
    border-radius: 8px;
    color: var(--profile-text-primary);
    font-family: var(--profile-accent-font);
    font-size: 1.2em; /* Match .profile-nickname */
    padding: 8px 12px;
    text-align: center;
    width: 80%;
    max-width: 280px;
    box-shadow: inset 0 0 8px rgba(0, 255, 220, 0.2);
}

.nickname-edit-input::placeholder {
    color: var(--profile-text-secondary);
    opacity: 0.6;
    font-family: var(--profile-primary-font);
    font-size: 0.8em;
}

.nickname-edit-input:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(0, 255, 220, 0.6), inset 0 0 8px rgba(0, 255, 220, 0.2);
}

.nickname-save-button {
    background-color: transparent;
    border: 1px solid var(--profile-glow-color);
    color: var(--profile-glow-color);
    font-family: var(--profile-primary-font);
    font-size: 0.9em;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s, transform 0.2s;
}

.nickname-save-button:hover:not(:disabled) {
    background-color: rgba(0, 255, 220, 0.2);
    box-shadow: 0 0 10px rgba(0, 255, 220, 0.4);
    transform: translateY(-2px);
}

.nickname-save-button:disabled {
    border-color: rgba(160, 192, 224, 0.3);
    background-color: rgba(160, 192, 224, 0.1);
    color: rgba(160, 192, 224, 0.4);
    cursor: not-allowed;
}

.nickname-cooldown-message {
    font-size: 0.8em;
    color: var(--profile-text-secondary);
    margin-top: 8px;
    text-align: center;
    display: none; /* Hidden by default */
}

/* Modal Navigation Buttons */
.modal-navigation-buttons {
    display: flex;
    gap: 10px;
    margin: 12px 0;
    padding: 0;
}

.modal-nav-button {
    flex: 1;
    background-color: rgba(10, 25, 40, 0.8);
    border: 1px solid var(--profile-glow-color);
    color: var(--profile-glow-color);
    font-family: var(--profile-accent-font);
    font-size: 0.7em;
    font-weight: normal;
    padding: 15px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 0 8px rgba(0, 255, 220, 0.3);
}

.modal-nav-button:hover {
    background-color: rgba(0, 255, 220, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 220, 0.5);
    transform: translateY(-1px);
}

.modal-nav-button:active {
    transform: translateY(0);
    box-shadow: 0 0 10px rgba(0, 255, 220, 0.4);
}

.button-icon {
    display: none; /* Hide icons for cleaner look */
}

.button-text {
    /* Text styles handled by parent button */
}

@media (max-width: 480px) {
    .modal-navigation-buttons {
        gap: 8px;
        margin: 10px 0;
    }
    
    .modal-nav-button {
        padding: 12px 8px;
        font-size: 0.6em;
    }
}