/* ===== WALLET CONNECTION BUTTON STYLES ===== */
/* Wallet connect/disconnect buttons */
.wallet-button {
    min-width: 140px;
    padding: 10px 18px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    min-height: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wallet-button:hover {
    background: rgba(26, 26, 46, 1);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.wallet-button.disconnect,
.wallet-button.connected {
    background: rgba(224, 37, 67, 0.15);
    border-color: rgba(224, 37, 67, 0.3);
    color: #ff6b7a;
}

.wallet-button.disconnect:hover,
.wallet-button.connected:hover {
    background: rgba(224, 37, 67, 0.25);
    border-color: rgba(224, 37, 67, 0.5);
    transform: translateY(-1px);
}

.wallet-button:disabled {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.25);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Disconnect icon button (top-bar exit icon) - Always red */
.disconnect-icon {
    background: rgba(224, 37, 67, 0.25) !important;
    border: 1.5px solid rgba(224, 37, 67, 0.6) !important;
    backdrop-filter: blur(10px);
    color: #ff4757 !important;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(224, 37, 67, 0.2) !important;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 8px;
    max-width: 40px;
    transition: all 0.2s ease;
}

.disconnect-icon:hover {
    background: rgba(224, 37, 67, 0.35) !important;
    transform: translateY(-1px);
    border-color: rgba(224, 37, 67, 0.7) !important;
    box-shadow: 0 6px 18px rgba(224, 37, 67, 0.25) !important;
}

.disconnect-icon svg {
    display: block;
    width: 16px;
    height: 16px;
    margin: 0 auto;
}

/* Wallet display used in top-left header (matches username height) */
.wallet-display {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    border-radius: 8px;
    background: rgba(26, 26, 46, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.04em;
    word-break: break-word;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    min-height: 40px;
    height: 40px;
    line-height: 40px;
}

/* Override username-display__value styling when inside wallet-display */
.wallet-display .username-display__value {
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 500 !important;
    font-size: 11px !important;
}

/* ===== SHARED MODAL STRUCTURE ===== */
/* Base modal structure used by deposit and other modals */
.wallet-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.wallet-modal.is-hidden {
    display: none;
}

.wallet-modal__content {
    background: linear-gradient(135deg, rgba(15, 15, 30, 0.99) 0%, rgba(20, 20, 40, 0.98) 100%);
    border: 1px solid rgba(74, 222, 128, 0.15);
    border-radius: 20px;
    padding: 32px;
    max-width: 440px;
    width: 90%;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5), 0 0 1px rgba(74, 222, 128, 0.2) inset;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wallet-modal__title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.wallet-modal__description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* ===== SHARED FORM INPUTS ===== */
/* Form inputs for modals */
.wallet-modal__input-group {
    margin-bottom: 18px;
}

.wallet-modal__label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.wallet-modal__label {
    display: block;
    color: rgba(255, 255, 255, 0.95);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.wallet-modal__hint {
    font-size: 11px;
    color: rgba(74, 222, 128, 0.8);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.wallet-modal__input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.4);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: 'Courier New', monospace;
    font-weight: 500;
}

.wallet-modal__input:hover:not(:focus) {
    border-color: rgba(74, 222, 128, 0.2);
    background: rgba(0, 0, 0, 0.45);
}

.wallet-modal__input:focus {
    outline: none;
    border-color: rgba(74, 222, 128, 0.7);
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.15), inset 0 0 0 1px rgba(74, 222, 128, 0.1);
    background: rgba(0, 0, 0, 0.5);
}

.wallet-modal__input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.wallet-modal__error {
    color: #ff6b7a;
    font-size: 13px;
    margin-top: 8px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(255, 107, 122, 0.12);
    border-radius: 8px;
    border-left: 3px solid #ff6b7a;
    border: 1px solid rgba(255, 107, 122, 0.3);
    border-left: 3px solid #ff6b7a;
}

.wallet-modal__error.is-hidden {
    display: none;
}

.wallet-modal__section {
    animation: fadeIn 0.2s ease;
}

