/* --- 1. Network Selector Form --- */
.mnm-container {
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
    background-color: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 420px;
    text-align: center;
    margin: 40px auto;
}
.mnm-container h1 {
    color: #333;
    margin-bottom: 30px;
    font-size: 22px;
}
.mnm-container .phone-input input {
    padding: 15px;
    width: 100%;
    border: 2px solid #ddd;
    border-radius: 12px;
    font-size: 18px;
    text-align: center;
    box-sizing: border-box;
    letter-spacing: 2px;
}
.mnm-container .networks {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 25px 0;
}
.mnm-container .network {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    opacity: 0.4;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    cursor: pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#f0f0f0;
}
.mnm-container .network.active {
    opacity: 1;
    border-color: #0073aa;
    transform: scale(1.1);
}
.mnm-container .network img {
    width: 75%;
    height: 75%;
    object-fit: contain;
}
.mnm-container .btn {
    display: inline-block;
    padding: 14px 40px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    width: 100%;
    max-width: 300px;
}

/* --- 2. Custom "Pay" Button in Shop --- */
.woocommerce ul.products li.product .manus-pay-button {
    margin-top: 1em;
    background-color: #0073aa;
    color: white;
}
.manus-pay-button {
    text-align: center;
}

/* --- 3. PIN Modal --- */
.mnm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.mnm-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.mnm-modal {
    background: white;
    padding: 25px;
    border-radius: 15px;
    width: 90%;
    max-width: 380px;
    text-align: center;
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}
.mnm-modal h3 {
    margin-top: 0;
    font-size: 20px;
    color: #333;
}
.mnm-modal .product-info {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.5;
}
.mnm-modal .product-info strong {
    display: block;
    font-size: 18px;
    color: #000;
}
.mnm-modal .pin-input-wrapper {
    position: relative;
}
.mnm-modal .pin-input {
    width: 100%;
    box-sizing: border-box;
    padding: 15px;
    text-align: center;
    font-size: 24px;
    letter-spacing: 15px;
    border: 2px solid #ccc;
    border-radius: 10px;
    margin-bottom: 20px;
}
.mnm-modal .modal-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.mnm-modal .modal-buttons button {
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
}
.mnm-modal #confirm-payment-btn {
    background: #0073aa;
    color: white;
}
.mnm-modal #cancel-payment-btn {
    background: #e74c3c;
    color: white;
}
.mnm-modal #confirm-payment-btn:disabled {
    background: #999;
    cursor: wait;
}
.mnm-modal .modal-message {
    margin-top: 15px;
    font-weight: bold;
    padding: 10px;
    border-radius: 5px;
    display: none;
}
.mnm-modal .modal-message.success {
    color: #1e7e34;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    display: block;
}
.mnm-modal .modal-message.error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    display: block;
}

/* --- 4. PIN Manager Page --- */
#manus-pin-manager {
    max-width: 400px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    direction: rtl;
    font-family: 'Vazirmatn', sans-serif;
}
#manus-pin-manager .form-group {
    margin-bottom: 15px;
}
#manus-pin-manager label {
    display: block;
    margin-bottom: 5px;
}
#manus-pin-manager input {
    width: 100%;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}
#manus-pin-manager button {
    width: 100%;
    padding: 10px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
#manus-pin-manager .pin-message {
    margin-top: 10px;
    font-weight: bold;
}
