/* ==================== STANDALONE USERNAME MODAL ==================== */
.username-modal-content {
    width: min(480px, 100%);
    text-align: center;
    padding: 48px 40px 40px;
    background: linear-gradient(145deg, rgba(18, 22, 33, 0.98), rgba(12, 15, 23, 0.99));
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 24px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.9), 0 0 60px rgba(212, 175, 55, 0.12);
    backdrop-filter: blur(30px);
    animation: usernameModalIn 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes usernameModalIn {
    from { opacity: 0; transform: scale(0.88) translateY(24px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.username-modal-header {
    margin-bottom: 32px;
}

.username-modal-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.05));
    border: 2px solid rgba(212, 175, 55, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--gold);
    margin: 0 auto 20px;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.2); }
    50%       { box-shadow: 0 0 40px rgba(212, 175, 55, 0.4); }
}

.username-modal-header h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 10px;
    letter-spacing: -0.02em;
}

.username-modal-header p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

.username-modal-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.username-input-wrapper {
    direction: ltr !important;
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(212, 175, 55, 0.3);
    border-radius: 14px;
    overflow: hidden;
    height: 52px;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.username-input-wrapper:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 3.5px rgba(212, 175, 55, 0.18), inset 0 1px 0 rgba(255,255,255,0.05);
}

.username-at-prefix {
    direction: ltr !important;
    padding-left: 18px;
    padding-right: 4px;
    font-size: 18px;
    font-weight: 700;
    color: var(--gold);
    user-select: none;
    line-height: 1;
    display: flex;
    align-items: center;
}

.username-modal-input {
    direction: ltr !important;
    text-align: left !important;
    flex: 1;
    border: none !important;
    background: transparent !important;
    padding: 12px 16px 12px 6px !important;
    font-size: 15px !important;
    font-weight: 600;
    color: var(--text-primary) !important;
    outline: none !important;
    box-shadow: none !important;
    height: 100% !important;
}

.username-modal-input::placeholder {
    color: rgba(255, 255, 255, 0.35) !important;
    font-size: 14px !important;
    font-weight: 400;
}

.username-hint {
    font-size: 12px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    margin: 2px 0 6px;
    line-height: 1.5;
}

.username-hint i {
    color: var(--gold);
    font-size: 12px;
    flex-shrink: 0;
}

.username-modal-submit {
    width: 100%;
    height: 48px;
    padding: 0 24px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 14px;
    margin-top: 4px;
    background: linear-gradient(135deg, var(--gold), #b8892a);
    color: #0B0E14;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
    box-shadow: 0 6px 24px rgba(212, 175, 55, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.username-modal-submit:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 10px 32px rgba(212, 175, 55, 0.5);
}

.username-modal-submit:active {
    transform: translateY(0);
}

