.RadiWalletContentBox {
    display: flex;
    justify-content: center;
    min-height: 100vh;
    align-items: center;
    background: linear-gradient(135deg, #0d6efd15 0%, #00968812 100%);
}

.RadiWalletContent {
    width: 100%;
}

/*.RadiWalletContent {*/
/*    min-width: 480px;*/
/*}*/

/*.RadiWalletContent {*/
/*    background: #f9f9fb;*/
/*    padding: 2rem;*/
/*    border-radius: 0.5rem;*/
/*}*/

.RadiWalletContent-box {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.RadiWallet-card {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    margin: auto;
    position: relative;
    overflow: hidden;
}

.RadiWallet-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
}

.RadiWallet-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1f36;
    margin-bottom: 12px;
}

.RadiWallet-subtitle {
    font-size: 14px;
    color: #9aa0b0;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 8px;
}

.RadiWallet-card--success .RadiWallet-title {
    color: #00b880;
}

.RadiWallet-card--failed .RadiWallet-title {
    color: #e03535;
}

.RadiWallet-card--error .RadiWallet-title {
    color: #d4870a;
}

.RadiWallet-card--primary .RadiWallet-title {
    color: #007bff;
}

.RadiWallet-header-img-svg {
    min-width: 150px;
}

.RadiWallet-img-svg {
    width: 20px;
}

.RadiWallet-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
}

.RadiWallet-card--success::before {
    background: linear-gradient(90deg, #00c98d, #00e6a0);
}

.RadiWallet-card--failed::before {
    background: linear-gradient(90deg, #ff4d4d, #ff7070);
}

.RadiWallet-card--error::before {
    background: linear-gradient(90deg, #f5a623, #f7c06a);
}

.RadiWallet-card--primary::before {
    background: linear-gradient(90deg, #007bff, #66b2ff);
}

/* Spinner */
.RadiWallet-spinner-wrap {
    width: 100px;
    height: 100px;
    margin: 0 auto 28px;
    position: relative;
}

.RadiWallet-spinner {
    width: 100%;
    height: 100%;
    border: 4px solid #f0f2f5;
    border-top-color: #00c98d;
    border-radius: 50%;
    animation: RadiWallet-spin 1s linear infinite;
}

.RadiWallet-spinner-danger {
    border-top-color: #ff4d4d;
}

.RadiWallet-card--primary .RadiWallet-spinner {
    border-top-color: #0d6efd;
}

@keyframes RadiWallet-spin {
    to {
        transform: rotate(360deg);
    }
}

.RadiWallet-spinner-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    color: #00c98d;
}


/* ─── Details ─── */
.RadiWallet-details {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 28px;
    border: 1px solid #f0f1f5;
    border-radius: 16px;
    overflow: hidden;
}

.RadiWallet-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    transition: background 0.2s;
}

.RadiWallet-detail-row:not(:last-child) {
    border-bottom: 1px solid #f0f1f5;
}

.RadiWallet-detail-row:hover {
    background: #fafbfc;
}

.RadiWallet-detail-label {
    font-size: 13px;
    color: #9aa0b0;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 0.5rem;
}

.RadiWallet-detail-label svg {
    width: 15px;
    height: 15px;
    opacity: 0.6;
}

.RadiWallet-detail-value {
    font-size: 13px;
    font-weight: 600;
    color: #1a1f36;
}


/* ─── Amount ─── */
.RadiWallet-amount-box {
    text-align: center;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 24px;
}

.RadiWallet-card--success .RadiWallet-amount-box {
    background: #f0fdf8;
}

.RadiWallet-card--failed .RadiWallet-amount-box {
    background: #fff5f5;
}

.RadiWallet-card--error .RadiWallet-amount-box {
    background: #fffbf0;
}

.RadiWallet-card--primary .RadiWallet-amount-box {
    background: #eff6ff;
}

.RadiWallet-card--success .RadiWallet-amount-value {
    color: #4ba282;
}

.RadiWallet-card--failed .RadiWallet-amount-value {
    color: #e03535;
}

.RadiWallet-card--error .RadiWallet-amount-value {
    color: #f5a623;
}

.RadiWallet-card--primary .RadiWallet-amount-value {
    color: #3f51b5;
}

.RadiWallet-amount-label {
    font-size: 12px;
    color: #9aa0b0;
    margin-bottom: 6px;
}

.RadiWallet-amount-value {
    font-size: 24px;
    font-weight: 700;
    color: #1a1f36;
    letter-spacing: -0.5px;
}

.RadiWallet-amount-currency {
    font-size: 14px;
    font-weight: 500;
    color: #9aa0b0;
    margin-right: 4px;
}

/* ─── Error Icon ─── */
.RadiWallet-error-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 28px;
    background: #fff5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.RadiWallet-error-icon svg {
    width: 50px;
    height: 50px;
    color: #e03535;
}

/* ─── Text ─── */
.RadiWallet-payment-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1f36;
    margin-bottom: 12px;
}

.RadiWallet-payment-subtitle {
    font-size: 14px;
    color: #9aa0b0;
    line-height: 1.6;
    margin-bottom: 32px;
}

/* ─── Timer ─── */
.RadiWallet-timer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f5f6f8;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    color: #5a6070;
    margin-bottom: 24px;
}

.RadiWallet-timer svg {
    width: 40px;
}

/* ─── Info Box ─── */
.RadiWallet-info-box {
    background: #f0fdf8;
    border: 1px solid #d4f4e8;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: right;
}

.RadiWallet-info-box svg {
    width: 20px;
    height: 20px;
    color: #00b880;
    flex-shrink: 0;
    margin-top: 2px;
}

.RadiWallet-info-text {
    font-size: 13px;
    color: #5a6070;
    line-height: 1.6;
}

/* ─── Danger Box ─── */
.RadiWallet-danger-box {
    background: #fff5f5;
    border: 1px solid #ffd4d4;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: right;
}

.RadiWallet-danger-box svg {
    width: 20px;
    height: 20px;
    color: #ff4d4d;
    flex-shrink: 0;
    margin-top: 2px;
}

.RadiWallet-danger-text {
    font-size: 13px;
    color: #e03535;
    line-height: 1.6;
}


/* ─── Badge وضعیت ─── */
.RadiWallet-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.RadiWallet-badge--success {
    background: #e6faf4;
    color: #00b880;
}

.RadiWallet-badge--failed {
    background: #ffeaea;
    color: #e03535;
}

.RadiWallet-badge--error {
    background: #fff5e0;
    color: #d4870a;
}

/* ─── Button ─── */

.RadiWallet-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 0.5rem;
}

.RadiWallet-btn--success {
    background: linear-gradient(135deg, #00c98d, #4ba282);
    color: white;
}

.RadiWallet-btn--success:hover {
    color: #fff;
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px #00c98d;
}


.RadiWallet-btn--primary {
    background: linear-gradient(135deg, #0d6efd 0%, #4b9ba2 100%);
    color: white;
}

.RadiWallet-btn--primary:hover {
    color: #fff;
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px #0d6efd;
}


.RadiWallet-btn--secondary {
    background: linear-gradient(135deg, #e1e1e1 0%, #f5f6f8 100%);
    color: #5a6070;
}

.RadiWallet-btn--secondary:hover {
    color: #5a6070;
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px #e1e1e1;
}

.RadiWallet-btn svg {
    width: 18px;
    height: 18px;
}

.RadiWallet-btn-amount {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 14px;
}

.RadiWallet-header-text {
    font-size: 20px;
    font-weight: bold;
    color: #2d3748;
}

.RadiWallet-balance {
    background: linear-gradient(135deg, #F44336 0%, #3F51B5 100%);
    /*background: linear-gradient(135deg, #0d6efd 0%, #4b9ba2 100%);*/
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.RadiWallet-balance::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.RadiWallet-balance-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    margin-bottom: 8px;
}

.RadiWallet-balance-amount {
    color: white;
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 1px;
}

.RadiWallet-balance-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #0d6efd, #4b9ba2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.RadiWallet-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #f8f9ff;
    border-radius: 12px;
    border: 1.5px solid #e8ecff;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.RadiWallet-info-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #718096;
    font-size: 14px;
}

.RadiWallet-info-dot {
    width: 8px;
    height: 8px;
    background: #0d6efd;
    border-radius: 50%;
    display: inline-block;
}

.RadiWallet-info-value {
    font-size: 15px;
    font-weight: bold;
    color: #38a169;
}

.RadiWallet-gateway-title {
    font-size: 16px;
    font-weight: bold;
    color: #2d3748;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.RadiWallet-gateway-title::before {
    content: '🏦';
    font-size: 18px;
}

.RadiWallet-gateway-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.RadiWallet-gateway-option {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #fafafa;
}

.RadiWallet-gateway-option:hover {
    border-color: #0d6efd;
    background: #f0f2ff;
    transform: translateY(-2px);
}

.RadiWallet-gateway-option.active {
    border-color: #0d6efd;
    background: linear-gradient(135deg, #f0f2ff, #e8ecff);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.RadiWallet-gateway-icon {
    font-size: 24px;
    margin-bottom: 6px;
}

.RadiWallet-gateway-name {
    font-size: 12px;
    color: #4a5568;
    font-weight: 600;
}

.RadiWallet-gateway-option.active .RadiWallet-gateway-name {
    color: #0d6efd;
}

.RadiWallet-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
    color: #a0aec0;
    font-size: 12px;
}


.RadiWallet-transactions-card {
    margin-top: 1rem;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.RadiWallet-transactions-header {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
}

.RadiWallet-transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.RadiWallet-transaction-item:hover {
    background: #f9f9f9;
}

.RadiWallet-transaction-item:last-child {
    border-bottom: none;
}

.RadiWallet-transaction-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.RadiWallet-transaction-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.RadiWallet-transaction-icon.deposit {
    background: #e8f5e9;
    color: #4caf50;
}

.RadiWallet-transaction-icon.withdraw {
    background: #ffebee;
    color: #f44336;
}

.RadiWallet-transaction-details h3 {
    font-size: 1rem;
    color: #333;
    margin-bottom: 5px;
}

.RadiWallet-transaction-details span {
    font-size: 0.85rem;
    color: #999;
}

.RadiWallet-transaction-amount {
    font-size: 1.2rem;
    font-weight: bold;
}

.RadiWallet-transaction-amount.deposit {
    color: #4caf50;
}

.RadiWallet-transaction-amount.withdraw {
    color: #f44336;
}

.RadiWallet-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.RadiWallet-modal.active {
    display: flex;
}

.RadiWallet-modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 400px;
    width: 90%;
}

.RadiWallet-modal-header {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
}

.RadiWallet-input-group {
    margin-bottom: 20px;
    position: relative;
}

.RadiWallet-input-group label {
    display: block;
    margin-bottom: 8px;
    color: #666;
    font-size: 0.9rem;
}

.RadiWallet-input-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.2s;
    height: 45px;
}

.RadiWallet-input-group input:focus {
    outline: none;
    border-color: #667eea;
}

.currency-display {
    position: absolute;
    left: 0;
    top: 5px;
    height: 38px;
    line-height: 38px;
    align-content: center;
    padding: 0 0.5rem;
}

.RadiWallet-modal-actions {
    display: flex;
    gap: 10px;
}

@media (max-width: 768px) {
    .RadiWallet-transaction-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}