/* 🌸 Base modal styling */
.recipient-manage-modal {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

.recipient-manage-modal-content {
    background: #fff;
    border-radius: 20px;
    width: 95%;
    max-width: 420px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    animation: modalFade 0.35s ease;
    position: relative;
}

@keyframes modalFade {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.recipient-manage-modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.recipient-manage-modal-header h3 {
    font-weight: 700;
    font-size: 1.3rem;
    color: #222;
}

/* 🌸 Action selection cards */
.account-action-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recipient-manage-option {
    display: flex;
    align-items: center;
    gap: 15px;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    padding: 15px 18px;
    cursor: pointer;
    transition: all 0.25s ease;
    background: #fff;
}

.recipient-manage-option:hover {
    background: #f9fafb;
    border-color: #007D65;
    transform: translateY(-2px);
}

.account-option-icon {
    background: #e7f7f2;
    color: #007D65;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.account-option-text h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.account-option-text p {
    margin: 3px 0 0;
    font-size: 0.85rem;
    color: #6c757d;
}

/* 🌸 Hidden form views */
.account-form-view {
    display: none;
}

.account-form-view.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 🌸 Form styles */
.account-form-group {
    margin-bottom: 15px;
}

.account-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.account-form-group input,
.account-form-group select {
    width: 100%;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.95rem;
    outline: none;
    transition: border 0.2s ease;
}

.account-form-group input:focus,
.account-form-group select:focus {
    border-color: #007D65;
}

/* Error message container */
.account-form-group .error-message {
    display: flex;
    align-items: center;
    margin-top: 5px;
    padding: 6px 10px;
    background-color: #f8d7da;
    /* light red background */
    color: #842029;
    /* dark red text */
    font-size: 0.85rem;
    border-radius: 10px;
    /* match input border radius */
    border: 1px solid #f5c2c7;
    /* subtle border */
}

/* Error icon */
.account-form-group .error-icon {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    flex-shrink: 0;
}


.recipient-manage-back {
    text-align: center;
    margin-top: 15px;
    cursor: pointer;
    color: #007D65;
    font-weight: 600;
    font-size: 0.9rem;
}

.toogle-recipient-manage-modal {
    cursor: pointer;
    border: none;
    background: transparent;
}

.account-user-number {
    font-size: 15px;
}

/* Inline form group wrapper */
.account-inline-group .account-inline-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Input styling */
.account-inline-group input {
    flex: 1;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #dee2e6;
    font-size: 0.95rem;
    outline: none;
    transition: border 0.2s ease;
}

.account-inline-group input:focus {
    border-color: #007D65;
}


/* ==========================
   Recipient Preview Card
   ========================== */
.account-recipient-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f0fefb;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #d1e9e1;
    box-shadow: 0 2px 8px rgba(0, 125, 101, 0.06);
    margin-top: 10px;
}

.account-recipient-preview .recipient-flag img {
    width: 40px;
    height: 28px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.account-recipient-preview .recipient-info h6 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #007D65;
}

.account-recipient-preview .recipient-info p {
    margin: 2px 0 0 0;
    font-size: 0.85rem;
    color: #555;
}

/* ==========================
   Exchange Rate Preview
   ========================== */
.account-exchange-rate-preview {
    background: #f0fefb;
    border: 1px solid #d1e9e1;
    border-radius: 12px;
    padding: 10px 14px;
    margin-top: 8px;
    max-width: 320px;
    box-shadow: 0 2px 8px rgba(0, 125, 101, 0.06);
}

.account-exchange-rate-preview .exchange-rate-label {
    font-weight: 600;
    color: #007D65;
    font-size: 0.95rem;
}

.account-exchange-rate-preview .exchange-rate-info {
    font-size: 0.70rem;
    color: #555;
    display: block;
    margin-top: 2px;
    text-align: end;
}