/**
 * Frontend Styles - Exchange Style Design
 */

.ipg-payment-form-wrapper {
    max-width: 600px;
    margin: 30px auto;
    padding: 0;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Exchange Header - Live Rate Display */
.ipg-exchange-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px 24px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.ipg-live-rate {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ipg-rate-label {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 500;
}

.ipg-rate-value {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    min-width: 120px;
    display: inline-block;
}

.ipg-rate-unit {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 500;
}

.ipg-rate-update {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    opacity: 0.85;
}

.ipg-update-icon {
    font-size: 14px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.ipg-loading-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
}

/* Form Container */
.ipg-payment-form {
    padding: 24px;
}

.ipg-form-messages {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 8px;
    display: none;
    font-size: 14px;
    line-height: 1.5;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ipg-form-messages.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    display: block;
}

.ipg-form-messages.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    display: block;
}

/* Exchange Card */
.ipg-exchange-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.ipg-card-header {
    margin-bottom: 20px;
}

.ipg-card-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #212529;
}

/* Exchange Inputs */
.ipg-exchange-inputs {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 15px;
    align-items: end;
    margin-bottom: 20px;
}

.ipg-input-group {
    display: flex;
    flex-direction: column;
}

.ipg-input-label {
    font-size: 13px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ipg-input-label .required {
    color: #dc3545;
    font-size: 12px;
}

.ipg-input-wrapper {
    position: relative;
}

.ipg-currency-select,
.ipg-amount-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    background: #fff;
    color: #212529;
    transition: all 0.2s ease;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.ipg-currency-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.ipg-currency-select:focus,
.ipg-amount-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.ipg-exchange-arrow {
    font-size: 24px;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 8px;
}

.ipg-help-text {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: #6c757d;
    line-height: 1.4;
}

/* Conversion Result */
.ipg-conversion-result {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    padding: 16px 20px;
    margin-top: 20px;
    color: #fff;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ipg-result-label {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 6px;
}

.ipg-result-value {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Additional Info Toggle */
.ipg-additional-info {
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.ipg-info-toggle {
    padding: 14px 16px;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    transition: background 0.2s ease;
    user-select: none;
}

.ipg-info-toggle:hover {
    background: #e9ecef;
}

.ipg-toggle-icon {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.ipg-info-toggle.active .ipg-toggle-icon {
    transform: rotate(180deg);
}

.ipg-info-content {
    padding: 20px;
    background: #fff;
    border-top: 1px solid #e9ecef;
}

.ipg-info-content .ipg-form-group {
    margin-bottom: 16px;
}

.ipg-info-content .ipg-form-group:last-child {
    margin-bottom: 0;
}

.ipg-info-content label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.ipg-info-content input[type="text"],
.ipg-info-content input[type="url"],
.ipg-info-content input[type="password"],
.ipg-info-content textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    color: #212529;
    transition: all 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.ipg-info-content input:focus,
.ipg-info-content textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.ipg-info-content textarea {
    resize: vertical;
    min-height: 80px;
}

/* Terms and Conditions Section */
.ipg-terms-section {
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.ipg-terms-content {
    padding: 16px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    max-height: 200px;
    overflow-y: auto;
}

.ipg-terms-text {
    font-size: 13px;
    line-height: 1.6;
    color: #495057;
}

.ipg-terms-text p {
    margin-bottom: 10px;
}

.ipg-terms-text p:last-child {
    margin-bottom: 0;
}

.ipg-terms-checkbox-wrapper {
    padding: 16px 20px;
    background: #fff;
}

.ipg-terms-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    line-height: 1.5;
}

.ipg-terms-checkbox {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #667eea;
}

.ipg-terms-checkbox-text {
    color: #495057;
    font-weight: 500;
    flex: 1;
}

.ipg-terms-checkbox-text .required {
    color: #dc3545;
    font-size: 12px;
    margin-right: 3px;
}

.ipg-terms-checkbox-label:hover .ipg-terms-checkbox-text {
    color: #212529;
}

/* Submit Button - Premium Design */
.ipg-submit-button {
    width: 100%;
    padding: 18px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.35);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
    text-transform: none;
}

.ipg-submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.ipg-submit-button:hover::before {
    left: 100%;
}

.ipg-submit-button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, #7c8ef0 0%, #8650b2 100%);
}

.ipg-submit-button:active {
    transform: translateY(-2px) scale(1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.ipg-submit-button:disabled {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 0.6;
}

.ipg-submit-button:disabled::before {
    display: none;
}

.ipg-button-loader {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ipg-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ipg-payment-form-wrapper {
        margin: 15px;
        border-radius: 12px;
    }
    
    .ipg-exchange-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
    }
    
    .ipg-rate-value {
        font-size: 20px;
    }
    
    .ipg-exchange-inputs {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .ipg-exchange-arrow {
        transform: rotate(90deg);
        padding: 0;
    }
    
    .ipg-payment-form {
        padding: 20px 16px;
    }
    
    .ipg-result-value {
        font-size: 24px;
    }
    
    .ipg-terms-content {
        padding: 14px 16px;
        max-height: 150px;
    }
    
    .ipg-terms-checkbox-wrapper {
        padding: 14px 16px;
    }
    
    .ipg-terms-checkbox-label {
        font-size: 13px;
    }
}

/* RTL Support */
body.rtl .ipg-payment-form-wrapper,
html[dir="rtl"] .ipg-payment-form-wrapper {
    direction: rtl;
    text-align: right;
}

body.rtl .ipg-currency-select,
html[dir="rtl"] .ipg-currency-select {
    background-position: left 16px center;
    padding-right: 16px;
    padding-left: 40px;
}

body.rtl .ipg-form-group .required,
html[dir="rtl"] .ipg-form-group .required {
    margin-right: 0;
    margin-left: 4px;
}

/* Login Required */
.ipg-login-required {
    text-align: center;
    padding: 60px 30px;
}

.ipg-login-required h2 {
    margin-bottom: 15px;
    color: #212529;
    font-size: 24px;
}

.ipg-login-required p {
    margin-bottom: 30px;
    color: #6c757d;
    font-size: 16px;
}

.ipg-login-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.ipg-register-button {
    display: inline-block;
    padding: 14px 28px;
    background: #6c757d;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: inherit;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ipg-register-button:hover {
    background: #5a6268;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

@media (max-width: 768px) {
    .ipg-login-buttons {
        flex-direction: column;
    }
    
    .ipg-submit-button,
    .ipg-register-button {
        width: 100%;
    }
}
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.ipg-kyc-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    color: #fff;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.ipg-kyc-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.ipg-kyc-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.ipg-kyc-subtitle {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.95);
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

/* Progress Steps - Modern Design */
.ipg-kyc-progress {
    margin-bottom: 50px;
    padding: 40px 20px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.ipg-progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    position: relative;
}

.ipg-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
}

.ipg-step-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 4px solid #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.ipg-step-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ipg-progress-step.completed .ipg-step-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    transform: scale(1);
}

.ipg-progress-step.completed .ipg-step-icon::after {
    opacity: 1;
}

.ipg-progress-step.active .ipg-step-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.5);
    transform: scale(1.15);
    animation: stepPulse 2s ease-in-out infinite;
}

@keyframes stepPulse {
    0%, 100% { box-shadow: 0 8px 30px rgba(102, 126, 234, 0.5); }
    50% { box-shadow: 0 8px 40px rgba(102, 126, 234, 0.7); }
}

.ipg-step-label {
    font-size: 15px;
    font-weight: 600;
    color: #6c757d;
    text-align: center;
    transition: all 0.3s ease;
    min-width: 80px;
}

.ipg-progress-step.completed .ipg-step-label,
.ipg-progress-step.active .ipg-step-label {
    color: #667eea;
    font-weight: 700;
    font-size: 16px;
}

.ipg-progress-line {
    flex: 1;
    height: 4px;
    background: linear-gradient(90deg, #e9ecef 0%, #dee2e6 100%);
    min-width: 60px;
    max-width: 150px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.ipg-progress-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.ipg-progress-line.completed::before {
    width: 100%;
}

/* KYC Sections - Premium Card Design */
.ipg-kyc-section {
    background: #fff;
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 2px solid rgba(102, 126, 234, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.ipg-kyc-section-active {
    border-color: rgba(102, 126, 234, 0.35);
    box-shadow: 0 14px 40px rgba(102, 126, 234, 0.25), 0 6px 18px rgba(0, 0, 0, 0.06);
    transform: translateY(-4px);
}

.ipg-kyc-section-success {
    border-color: rgba(40, 167, 69, 0.25);
    box-shadow: 0 12px 32px rgba(40, 167, 69, 0.18), 0 4px 12px rgba(0, 0, 0, 0.05);
}

.ipg-kyc-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.ipg-kyc-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.03) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.ipg-kyc-section:hover {
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.2), 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
    border-color: rgba(102, 126, 234, 0.2);
}

.ipg-kyc-section:hover::before {
    opacity: 1;
}

.ipg-kyc-section:hover::after {
    opacity: 1;
}

.ipg-kyc-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.ipg-kyc-section-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.ipg-kyc-section-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ipg-kyc-section-header h2::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.ipg-status-badge {
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.ipg-status-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.8;
}

.ipg-status-completed {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #b8dacc;
}

.ipg-status-pending {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border: 1px solid #ffeaa7;
}

.ipg-status-gold {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #856404;
    border: 1px solid #ffd700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    animation: goldShine 2s ease-in-out infinite;
}

@keyframes goldShine {
    0%, 100% { box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3); }
    50% { box-shadow: 0 4px 20px rgba(255, 215, 0, 0.5); }
}

.ipg-status-approved {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #b8dacc;
}

.ipg-status-rejected {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid #f1b0b7;
}

/* KYC Forms - Modern Input Design */
.ipg-kyc-form {
    margin-top: 25px;
}

.ipg-kyc-form .ipg-submit-button {
    margin-top: 10px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.ipg-kyc-form .ipg-submit-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ipg-kyc-form .ipg-submit-button:hover::before {
    width: 300px;
    height: 300px;
}

.ipg-kyc-form .ipg-submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.ipg-kyc-form .ipg-submit-button:active {
    transform: translateY(-1px);
}

.ipg-form-group {
    margin-bottom: 25px;
    position: relative;
}

.ipg-form-group label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ipg-form-group .required {
    color: #dc3545;
    font-size: 16px;
    font-weight: 700;
}

.ipg-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 14px;
    font-size: 15px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
    font-family: inherit;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.ipg-input:hover {
    border-color: #b0b0b0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.ipg-input:focus {
    outline: none;
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15), 0 4px 12px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.ipg-help-text {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #6c757d;
}

.ipg-kyc-info {
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 15px;
    border: 1px solid #e9ecef;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.02);
}

.ipg-kyc-info p {
    margin: 12px 0;
    font-size: 15px;
    color: #495057;
    line-height: 1.7;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ipg-kyc-info p::before {
    content: '✓';
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.ipg-kyc-info strong {
    color: #212529;
    font-weight: 700;
    min-width: 120px;
}

/* Upload Area - Modern Design */
.ipg-upload-area {
    border: 3px dashed #dee2e6;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    position: relative;
    overflow: hidden;
}

.ipg-upload-area::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ipg-upload-area:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, #fff 0%, #fafafa 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.ipg-upload-area:hover::before {
    opacity: 1;
}

.ipg-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.ipg-upload-icon {
    font-size: 56px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.ipg-upload-area:hover .ipg-upload-icon {
    transform: scale(1.1) rotate(5deg);
}

.ipg-upload-placeholder p {
    margin: 15px 0 8px;
    font-size: 16px;
    font-weight: 600;
    color: #495057;
}

.ipg-upload-placeholder small {
    font-size: 13px;
    color: #6c757d;
    display: block;
    margin-top: 5px;
}

.ipg-upload-preview {
    position: relative;
}

.ipg-upload-preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
}

.ipg-remove-image {
    margin-top: 10px;
    padding: 8px 16px;
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

/* Payment Progress - Modern Design */
.ipg-payment-progress {
    margin-top: 25px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 15px;
    border: 1px solid #e9ecef;
}

.ipg-progress-bar {
    width: 100%;
    height: 24px;
    background: #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
}

.ipg-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.ipg-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.ipg-progress-text {
    text-align: center;
    font-size: 15px;
    color: #495057;
    margin: 0;
    font-weight: 600;
}

.ipg-success-message {
    padding: 20px 25px;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #b8dacc;
    border-radius: 12px;
    color: #155724;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(21, 87, 36, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.ipg-success-message::before {
    content: '✓';
    width: 28px;
    height: 28px;
    background: #155724;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}

/* Bank Cards - Modern Card Design */
.ipg-section-description {
    font-size: 15px;
    color: #6c757d;
    margin-bottom: 25px;
    line-height: 1.7;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border-right: 4px solid #667eea;
}

.ipg-cards-list {
    margin-top: 30px;
    display: grid;
    gap: 20px;
}

.ipg-card-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    border: 2px solid #e9ecef;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.ipg-card-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ipg-card-item:hover {
    border-color: #667eea;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    transform: translateY(-3px);
}

.ipg-card-locked {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    margin-bottom: 20px;
    border: 1px dashed #ffc107;
    border-radius: 14px;
    background: linear-gradient(135deg, #fff8e1 0%, #fff3cd 100%);
    color: #856404;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.15);
}

.ipg-locked-icon {
    font-size: 28px;
}

.ipg-locked-text h3 {
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 700;
    color: #856404;
}

.ipg-locked-text p {
    margin: 0;
    font-size: 14px;
    color: #9a6b05;
    line-height: 1.6;
}

.ipg-card-item:hover::before {
    opacity: 1;
}

.ipg-card-info {
    flex: 1;
}

.ipg-card-number {
    font-size: 20px;
    font-weight: 700;
    color: #212529;
    font-family: 'Courier New', monospace;
    margin-bottom: 10px;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ipg-card-details {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #6c757d;
    flex-wrap: wrap;
}

.ipg-card-holder {
    font-weight: 600;
    color: #495057;
}

.ipg-card-bank {
    padding: 4px 12px;
    background: #e9ecef;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.ipg-card-status {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.ipg-delete-card {
    padding: 10px 18px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.ipg-delete-card:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.ipg-no-cards {
    text-align: center;
    padding: 50px 30px;
    color: #6c757d;
    font-size: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 15px;
    border: 2px dashed #dee2e6;
}

.ipg-no-cards::before {
    content: '💳';
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
    opacity: 0.5;
}

.ipg-kyc-messages {
    margin-bottom: 25px;
    padding: 18px 22px;
    border-radius: 12px;
    display: none;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ipg-kyc-messages::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: currentColor;
}

.ipg-kyc-messages.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #b8dacc;
    color: #155724;
    display: block;
}

.ipg-kyc-messages.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 1px solid #f1b0b7;
    color: #721c24;
    display: block;
}

/* Rejection Notice */
.ipg-kyc-rejection-notice {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffc107;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.2);
    animation: slideDown 0.4s ease;
}

.ipg-rejection-icon {
    font-size: 48px;
    flex-shrink: 0;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.ipg-rejection-content {
    flex: 1;
}

.ipg-rejection-content h3 {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 700;
    color: #856404;
}

.ipg-rejection-reason {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    border-right: 4px solid #ffc107;
    margin: 15px 0;
    color: #856404;
    line-height: 1.8;
    font-size: 14px;
}

.ipg-rejection-reason strong {
    color: #856404;
    font-size: 15px;
    display: block;
    margin-bottom: 8px;
}

.ipg-rejection-action {
    margin: 15px 0 0 0;
    color: #856404;
    font-size: 14px;
    font-weight: 500;
}

/* Sample guides */
.ipg-sample-guides {
    margin-top: 15px;
    padding: 12px 14px;
    border: 1px dashed #dee2e6;
    border-radius: 10px;
    background: #f8f9fa;
}

.ipg-sample-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.ipg-sample-item:last-child {
    border-bottom: none;
}

.ipg-sample-label {
    font-weight: 600;
    color: #212529;
    font-size: 14px;
}

.ipg-sample-item a {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
}

.ipg-sample-item a:hover {
    text-decoration: underline;
}

.ipg-sample-note {
    margin: 10px 0 0 0;
    font-size: 12px;
    color: #6c757d;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .ipg-kyc-rejection-notice {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .ipg-rejection-icon {
        font-size: 40px;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive - Mobile Optimized */
@media (max-width: 768px) {
    .ipg-kyc-wrapper {
        padding: 0 15px;
        margin: 20px auto;
    }
    
    .ipg-kyc-header {
        padding: 30px 15px;
        border-radius: 15px;
    }
    
    .ipg-kyc-header h1 {
        font-size: 28px;
    }
    
    .ipg-kyc-subtitle {
        font-size: 15px;
    }
    
    .ipg-kyc-section {
        padding: 25px 20px;
        border-radius: 15px;
    }
    
    .ipg-kyc-section-header h2 {
        font-size: 20px;
    }
    
    .ipg-progress-steps {
        gap: 8px;
    }
    
    .ipg-step-icon {
        width: 60px;
        height: 60px;
        font-size: 20px;
    }
    
    .ipg-progress-line {
        min-width: 20px;
        max-width: 40px;
    }
    
    .ipg-step-label {
        font-size: 13px;
        min-width: 70px;
    }
    
    .ipg-card-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 20px;
    }
    
    .ipg-card-status {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    
    .ipg-delete-card {
        width: 100%;
        text-align: center;
    }
    
    .ipg-upload-area {
        padding: 30px 20px;
    }
    
    .ipg-upload-icon {
        font-size: 48px;
    }
}
