/**
 * Pay Wallet Styles - Gaming Theme
 */

.pay-wallet-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 0 20px;
}

.pay-wallet-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: #0a0e27;
    border-radius: 20px;
    color: #00d4ff;
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.3);
    border: 2px solid #00d4ff;
}

.pay-wallet-header h1 {
    margin: 0 0 20px 0;
    font-size: 32px;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.wallet-balance {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 18px;
}

.balance-label {
    opacity: 0.9;
    color: #b026ff;
}

.balance-amount {
    font-size: 24px;
    font-weight: 700;
    background: #1a1f3a;
    padding: 8px 16px;
    border-radius: 10px;
    color: #00ff88;
    border: 2px solid #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.pay-wallet-form-wrapper {
    background: #0f1419;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
    border: 2px solid #1a2332;
}

.pay-wallet-form {
    direction: rtl;
}

.form-section {
    margin-bottom: 35px;
}

.section-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #00d4ff;
    margin-bottom: 15px;
    text-align: right;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.fixed-amounts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.amount-btn {
    padding: 18px 24px;
    border: 2px solid #1a2332;
    background: #1a1f3a;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    color: #00d4ff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.amount-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(0, 212, 255, 0.2);
    transition: left 0.5s;
}

.amount-btn:hover::before {
    left: 100%;
}

.amount-btn:hover {
    border-color: #00d4ff;
    color: #00d4ff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
    background: #1f2538;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
}

.amount-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.amount-btn.active {
    border-color: #b026ff;
    background: #2a1f3a;
    color: #b026ff;
    box-shadow: 0 8px 30px rgba(176, 38, 255, 0.5);
    transform: translateY(-2px);
    text-shadow: 0 0 20px rgba(176, 38, 255, 0.8);
}

.amount-btn.active::before {
    background: rgba(176, 38, 255, 0.3);
}

/* Contact Info Fields */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 10px;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field-full {
    grid-column: 1 / -1;
}

.form-field label {
    font-size: 14px;
    font-weight: 600;
    color: #00d4ff;
    margin-bottom: 8px;
    text-align: right;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #1a2332;
    border-radius: 12px;
    font-size: 15px;
    text-align: right;
    transition: all 0.3s ease;
    background: #1a1f3a;
    color: #ffffff;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.2);
    background: #1f2538;
}

.form-input::placeholder {
    color: #4a5568;
}

.custom-amount-wrapper {
    margin-top: 20px;
}

.custom-amount-wrapper label {
    display: block;
    font-size: 14px;
    color: #00d4ff;
    margin-bottom: 10px;
    text-align: right;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.custom-amount-input {
    width: 100%;
    padding: 15px 50px 15px 15px;
    border: 2px solid #1a2332;
    border-radius: 12px;
    font-size: 16px;
    text-align: right;
    transition: all 0.3s ease;
    background: #1a1f3a;
    color: #ffffff;
}

.custom-amount-input:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.2);
    background: #1f2538;
}

.currency-symbol {
    position: absolute;
    left: 15px;
    color: #00ff88;
    font-size: 14px;
    font-weight: 600;
}

.gateway-selection {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gateway-option {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border: 2px solid #1a2332;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #1a1f3a;
}

.gateway-option:hover {
    border-color: #b026ff;
    background: #2a1f3a;
}

.gateway-option input[type="radio"] {
    margin-left: 15px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #b026ff;
}

.gateway-option input[type="radio"]:checked + .gateway-name {
    color: #b026ff;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(176, 38, 255, 0.5);
}

.gateway-name {
    font-size: 15px;
    color: #00d4ff;
    transition: all 0.3s ease;
}

.gateway-option-selected {
    cursor: default;
    pointer-events: none;
}

.gateway-option-selected .gateway-name {
    color: #b026ff;
    font-weight: 600;
}

.selected-amount-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: #1a1f3a;
    border-radius: 12px;
    border: 2px solid #00ff88;
}

.selected-label {
    font-size: 16px;
    color: #00d4ff;
    font-weight: 600;
}

.selected-amount {
    font-size: 20px;
    font-weight: 700;
    color: #00ff88;
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
}

/* Terms and Conditions Checkbox */
.terms-checkbox-wrapper {
    margin: 25px 0;
    padding: 20px;
    background: #1a1f3a;
    border-radius: 12px;
    border: 2px solid #1a2332;
}

.terms-checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.terms-checkbox {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: #b026ff;
    flex-shrink: 0;
}

.terms-checkbox:checked {
    background: #b026ff;
    border-color: #b026ff;
}

.terms-text {
    font-size: 15px;
    color: #00d4ff;
    line-height: 1.6;
    text-align: right;
    flex: 1;
}

.terms-checkbox-label:hover .terms-text {
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.terms-checkbox-label:hover {
    transform: translateX(-3px);
    transition: transform 0.2s ease;
}

/* Terms and Conditions Modal */
.pay-wallet-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pay-wallet-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.pay-wallet-modal-content {
    position: relative;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    background: #0f1419;
    border-radius: 16px;
    border: 2px solid #00d4ff;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.3), 0 0 60px rgba(176, 38, 255, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 10001;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.pay-wallet-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    background: #1a1f3a;
    border-bottom: 2px solid #00d4ff;
}

.pay-wallet-modal-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #00d4ff;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

.pay-wallet-modal-close {
    background: transparent;
    border: none;
    color: #00d4ff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pay-wallet-modal-close:hover {
    background: rgba(0, 212, 255, 0.2);
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    transform: rotate(90deg);
}

.pay-wallet-modal-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
}

.pay-wallet-terms-content {
    color: #e0e0e0;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 25px;
    text-align: right;
    max-height: 400px;
    overflow-y: auto;
    padding: 15px;
    background: #0a0e27;
    border-radius: 12px;
    border: 1px solid #1a2332;
}

.pay-wallet-terms-content::-webkit-scrollbar {
    width: 8px;
}

.pay-wallet-terms-content::-webkit-scrollbar-track {
    background: #0a0e27;
    border-radius: 4px;
}

.pay-wallet-terms-content::-webkit-scrollbar-thumb {
    background: #00d4ff;
    border-radius: 4px;
}

.pay-wallet-terms-content::-webkit-scrollbar-thumb:hover {
    background: #b026ff;
}

.pay-wallet-terms-content p {
    margin: 0 0 15px 0;
}

.pay-wallet-terms-content p:last-child {
    margin-bottom: 0;
}

.pay-wallet-terms-checkbox-wrapper {
    margin-top: 20px;
    padding: 18px;
    background: #1a1f3a;
    border-radius: 12px;
    border: 2px solid #1a2332;
}

.pay-wallet-terms-checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.pay-wallet-terms-checkbox {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: #b026ff;
    flex-shrink: 0;
}

.pay-wallet-terms-checkbox:checked {
    background: #b026ff;
    border-color: #b026ff;
}

.pay-wallet-terms-checkbox-text {
    font-size: 15px;
    color: #00d4ff;
    line-height: 1.6;
    text-align: right;
    flex: 1;
    font-weight: 600;
}

.pay-wallet-terms-checkbox-label:hover .pay-wallet-terms-checkbox-text {
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.pay-wallet-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 20px 25px;
    background: #1a1f3a;
    border-top: 2px solid #1a2332;
}

.pay-wallet-modal-btn {
    flex: 1;
    padding: 14px 25px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.pay-wallet-modal-btn-cancel {
    background: #1a2332;
    color: #00d4ff;
    border: 2px solid #1a2332;
}

.pay-wallet-modal-btn-cancel:hover {
    background: #0a0e27;
    border-color: #00d4ff;
    color: #00d4ff;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.pay-wallet-modal-btn-confirm {
    background: #b026ff;
    color: #ffffff;
    border: 2px solid #b026ff;
    box-shadow: 0 0 20px rgba(176, 38, 255, 0.4);
}

.pay-wallet-modal-btn-confirm:hover:not(:disabled) {
    background: #8a1fcc;
    border-color: #8a1fcc;
    box-shadow: 0 0 25px rgba(176, 38, 255, 0.6);
    transform: translateY(-2px);
}

.pay-wallet-modal-btn-confirm:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .pay-wallet-modal-content {
        width: 95%;
        max-height: 95vh;
        border-radius: 12px;
    }
    
    .pay-wallet-modal-header {
        padding: 15px 20px;
    }
    
    .pay-wallet-modal-title {
        font-size: 18px;
    }
    
    .pay-wallet-modal-body {
        padding: 20px;
    }
    
    .pay-wallet-terms-content {
        font-size: 14px;
        max-height: 300px;
        padding: 12px;
    }
    
    .pay-wallet-modal-footer {
        flex-direction: column;
        padding: 15px 20px;
    }
    
    .pay-wallet-modal-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .pay-wallet-modal-content {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .pay-wallet-modal-header {
        padding: 12px 15px;
    }
    
    .pay-wallet-modal-title {
        font-size: 16px;
    }
    
    .pay-wallet-modal-body {
        padding: 15px;
    }
    
    .pay-wallet-terms-content {
        font-size: 13px;
        max-height: 250px;
    }
    
    .pay-wallet-terms-checkbox-wrapper {
        padding: 15px;
    }
    
    .pay-wallet-terms-checkbox-text {
        font-size: 14px;
    }
}

.pay-wallet-submit-btn {
    width: 100%;
    padding: 20px 30px;
    background: #b026ff;
    color: white;
    border: 2px solid #b026ff;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 25px rgba(176, 38, 255, 0.4);
    margin-top: 15px;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.pay-wallet-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.6s;
}

.pay-wallet-submit-btn:hover:not(:disabled)::before {
    left: 100%;
}

.pay-wallet-submit-btn:hover:not(:disabled) {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 35px rgba(176, 38, 255, 0.6);
    background: #c039ff;
    border-color: #c039ff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.pay-wallet-submit-btn:active:not(:disabled) {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 4px 20px rgba(176, 38, 255, 0.4);
}

.pay-wallet-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #2a2a2a;
    border-color: #2a2a2a;
    box-shadow: none;
    transform: none;
}

.pay-wallet-submit-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Success/Error Messages */
.pay-wallet-success-message,
.pay-wallet-error-message {
    text-align: center;
    padding: 50px 30px;
    background: #0f1419;
    border-radius: 20px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
    border: 2px solid #1a2332;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: #00ff88;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a0e27;
    font-size: 40px;
    font-weight: bold;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
    border: 3px solid #00ff88;
}

.error-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: #ff0040;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 40px;
    font-weight: bold;
    box-shadow: 0 0 30px rgba(255, 0, 64, 0.5);
    border: 3px solid #ff0040;
}

.pay-wallet-success-message h2,
.pay-wallet-error-message h2 {
    margin: 20px 0;
    color: #00d4ff;
    font-size: 24px;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

.pay-wallet-success-message p,
.pay-wallet-error-message p {
    color: #ffffff;
    font-size: 16px;
    margin: 10px 0;
}

.transaction-id {
    font-family: monospace;
    background: #1a1f3a;
    padding: 8px 12px;
    border-radius: 6px;
    display: inline-block;
    margin-top: 10px;
    color: #00ff88;
    border: 1px solid #00ff88;
}

/* Success Notice Box */
.pay-wallet-success-notice {
    background: #1a1f3a;
    border: 2px solid #00d4ff;
    border-radius: 16px;
    padding: 20px 25px;
    margin: 25px 0;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.pay-wallet-success-notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #00d4ff;
}

.notice-icon {
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.notice-content {
    flex: 1;
    color: #00d4ff;
    font-size: 15px;
    line-height: 1.8;
    text-align: right;
}

.notice-content p {
    margin: 0 0 10px 0;
    color: #00d4ff;
}

.notice-content p:last-child {
    margin-bottom: 0;
}

.notice-content strong {
    color: #00d4ff;
    font-weight: 700;
}

.notice-content a {
    color: #b026ff;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.notice-content a:hover {
    color: #c039ff;
}

.pay-wallet-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: #b026ff;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #b026ff;
    box-shadow: 0 4px 15px rgba(176, 38, 255, 0.4);
}

.pay-wallet-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(176, 38, 255, 0.6);
    background: #c039ff;
    border-color: #c039ff;
}

.pay-wallet-login-required {
    text-align: center;
    padding: 40px;
    background: #0f1419;
    border-radius: 20px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
    color: #00d4ff;
    font-size: 16px;
    border: 2px solid #1a2332;
}

/* Loading State */
.btn-loader {
    display: inline-block;
}

.pay-wallet-submit-btn.loading .btn-text {
    display: none;
}

.pay-wallet-submit-btn.loading .btn-loader {
    display: inline-block;
}

/* Verification Required */
.pay-wallet-verification-required {
    text-align: center;
    padding: 50px 30px;
    background: #0f1419;
    border-radius: 20px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
    border: 2px solid #1a2332;
}

.verification-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.pay-wallet-verification-required h2 {
    margin: 20px 0;
    color: #00d4ff;
    font-size: 24px;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

.pay-wallet-verification-required p {
    color: #ffffff;
    font-size: 16px;
    margin: 10px 0 30px 0;
}

.verification-form-wrapper {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    background: #1a1f3a;
    border-radius: 12px;
    border: 2px solid #00d4ff;
}

/* Responsive */
@media (max-width: 768px) {
    .pay-wallet-container {
        margin: 20px auto;
        padding: 0 15px;
    }
    
    .pay-wallet-header {
        padding: 20px;
    }
    
    .pay-wallet-header h1 {
        font-size: 24px;
    }
    
    .pay-wallet-form-wrapper {
        padding: 25px;
    }
    
    .fixed-amounts {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .verification-form-wrapper {
        padding: 15px;
    }
}
