/* PeleCard Payment Modal Styles */
.pelecard-modal {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    display: block !important;
}

.pelecard-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    width: 90%;
    max-width: 800px;
    height: 80%;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: auto;
}

.pelecard-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1;
    color: #333;
}

.pelecard-modal-close:hover {
    color: #f44336;
}

.pelecard-modal iframe {
    width: 100%;
    height: calc(100% - 40px);
    border: none;
}

/* Loading spinner for iframe */
.pelecard-modal-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.pelecard-modal-loading:after {
    content: "טוען...";
    display: block;
    margin-top: 10px;
    color: #666;
}

/**
 * Payment Method Selection Modal Styles
 * Add these styles to the existing response-handler.css file
 * 
 * @package ArboxResponseHandler
 * @since 2.2.0
 */

/* Payment Method Modal Overlay */
.payment-method-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    animation: fadeIn 0.3s ease;
}

/* Payment Method Modal Container */
.payment-method-modal {
    background: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 700px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    position: relative;
}

/* Modal Title */
.payment-method-title {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 40px;
    color: #2c3e50;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Payment Methods Container */
.payment-methods-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 30px;
}

/* Payment Method Option */
.payment-method-option {
    flex: 1;
    padding: 30px 20px;
    border: 3px solid #e1e8ed;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    background: white;
    position: relative;
    overflow: hidden;
}

.payment-method-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.payment-method-option:hover {
    border-color: #4CAF50;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.2);
}

.payment-method-option:hover::before {
    transform: scaleX(1);
}

/* Payment Method Image */
.payment-method-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.payment-method-option:hover .payment-method-image {
    transform: scale(1.1);
}

/* Payment Method Icon (fallback when no image) */
.payment-method-icon {
    font-size: 60px;
    margin-bottom: 20px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Payment Method Label */
.payment-method-label {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
}

/* Payment Method Description */
.payment-method-description {
    font-size: 14px;
    color: #7f8c8d;
    line-height: 1.4;
}

/* Payment Method Footer */
.payment-method-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e1e8ed;
}

/* Cancel Button */
.payment-method-cancel {
    padding: 12px 40px;
    background: #95a5a6;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.payment-method-cancel:hover {
    background: #7f8c8d;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* PINPAD Waiting Screen */
.pinpad-waiting-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    animation: fadeIn 0.3s ease;
}

/* Waiting Content Container */
.pinpad-waiting-content {
    text-align: center;
    padding: 40px;
    max-width: 500px;
}

/* Spinner Animation */
.pinpad-waiting-spinner {
    width: 100px;
    height: 100px;
    border: 10px solid #f3f3f3;
    border-top: 10px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 40px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Waiting Message */
.pinpad-waiting-message {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 500;
}

/* Terminal Location */
.pinpad-terminal-location {
    font-size: 18px;
    color: #7f8c8d;
    margin-bottom: 40px;
}

/* Cancel Payment Button */
.pinpad-cancel-button {
    padding: 12px 40px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pinpad-cancel-button:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

/* Success Overlay */
.payment-success-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: 99999;
    animation: fadeIn 0.3s ease;
}

/* Success Modal */
.payment-success-modal {
    background: white;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    max-width: 400px;
    animation: bounceIn 0.5s ease;
}

/* Success Icon */
.payment-success-icon {
    width: 80px;
    height: 80px;
    background: #4CAF50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    margin: 0 auto 20px;
    animation: checkmark 0.5s ease 0.3s both;
}

/* Success Title */
.payment-success-title {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
}

/* Success Message */
.payment-success-message {
    font-size: 16px;
    color: #7f8c8d;
    margin-bottom: 30px;
}

/* Success Close Button */
.payment-success-close {
    padding: 12px 40px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.payment-success-close:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes checkmark {
    0% {
        transform: scale(0) rotate(45deg);
    }
    100% {
        transform: scale(1) rotate(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .payment-method-modal {
        padding: 30px 20px;
        width: 95%;
    }
    
    .payment-methods-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .payment-method-option {
        padding: 25px 20px;
    }
    
    .payment-method-image {
        width: 80px;
        height: 80px;
    }
    
    .payment-method-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .pinpad-waiting-spinner {
        width: 80px;
        height: 80px;
    }
    
    .pinpad-waiting-message {
        font-size: 20px;
    }
}

/* RTL Support for Hebrew */
html[dir="rtl"] .payment-method-modal,
html[lang="he"] .payment-method-modal {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .payment-method-title,
html[lang="he"] .payment-method-title {
    text-align: center;
}

html[dir="rtl"] .payment-methods-container,
html[lang="he"] .payment-methods-container {
    flex-direction: row-reverse;
}

#rivhit h3 {
    margin-top: 30px;
    padding-bottom: 5px;
    border-bottom: 1px solid #ddd;
}

.rivhit-settings {
    transition: all 0.3s ease;
}

#rivhit-test-result {
    font-weight: bold;
}

/* ===== PeleCard Modal Z-index Fixes ===== */

/* Remove conflicting styles and ensure proper layering */

#arbox-popup-container {
    position: relative !important;
    z-index: 2147483648 !important;
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    margin: auto;
}

/* Critical z-index fixes for PeleCard modal */
.pelecard-modal {
    z-index: 2147483647 !important; /* Maximum z-index */
}

.pelecard-modal.active {
    display: block !important;
}

.pelecard-modal .pelecard-modal-overlay {
    z-index: 1 !important; /* Relative to parent */
}

.pelecard-modal .pelecard-modal-content {
    z-index: 2 !important; /* Above overlay */
}

body.pelecard-modal-active {
    overflow: hidden !important;
}

/* Base modal container - highest z-index */
.pelecard-modal {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 2147483647 !important; /* Maximum z-index value */
}

.pelecard-modal.active {
    display: block !important;
}

/* Modal overlay - below modal content but above everything else */
.pelecard-modal .pelecard-modal-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.7) !important;
    z-index: 1 !important; /* Relative to parent */
}

/* Modal content - above overlay */
.pelecard-modal .pelecard-modal-content {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 90% !important;
    max-width: 800px !important;
    height: 80% !important;
    max-height: 600px !important;
    background: white !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
    z-index: 2 !important; /* Relative to parent, above overlay */
    display: flex !important;
    flex-direction: column !important;
}

/* Modal header */
.pelecard-modal .pelecard-modal-header {
    padding: 20px !important;
    border-bottom: 1px solid #e0e0e0 !important;
    background: white !important;
    border-radius: 10px 10px 0 0 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    position: relative !important;
    z-index: 3 !important;
}

.pelecard-modal .pelecard-modal-header h2 {
    margin: 0 !important;
    color: #333 !important;
    font-size: 24px !important;
}

/* Close button */
.pelecard-modal .pelecard-close-btn {
    background: none !important;
    border: none !important;
    font-size: 30px !important;
    color: #999 !important;
    cursor: pointer !important;
    padding: 0 !important;
    width: 30px !important;
    height: 30px !important;
    line-height: 1 !important;
    position: relative !important;
    z-index: 4 !important;
}

.pelecard-modal .pelecard-close-btn:hover {
    color: #333 !important;
}

/* Modal body with iframe */
.pelecard-modal .pelecard-modal-body {
    flex: 1 !important;
    padding: 0 !important;
    position: relative !important;
    overflow: hidden !important;
}

.pelecard-modal .pelecard-modal-body iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
}

/* Loading state */
.pelecard-modal.loading .pelecard-modal-body::before {
    content: "טוען את דף התשלום..." !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    font-size: 18px !important;
    color: #666 !important;
    z-index: 1 !important;
}

/* Spinner for loading */
.pelecard-loading-spinner {
    width: 50px !important;
    height: 50px !important;
    margin: 20px auto !important;
    border: 4px solid #f3f3f3 !important;
    border-top: 4px solid #3498db !important;
    border-radius: 50% !important;
    animation: pelecard-spin 1s linear infinite !important;
}

@keyframes pelecard-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error states */
.pelecard-status-icon {
    width: 80px !important;
    height: 80px !important;
    margin: 0 auto 20px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 50px !important;
    color: white !important;
}

.pelecard-status-icon.success {
    background: #4CAF50 !important;
}

.pelecard-status-icon.error {
    background: #f44336 !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .pelecard-modal .pelecard-modal-content {
        width: 95% !important;
        height: 90vh !important;
        max-height: none !important;
    }
    
    .pelecard-modal .pelecard-modal-header h2 {
        font-size: 20px !important;
    }
}

/* Ensure modal is above all other elements */
body.pelecard-modal-active {
    overflow: hidden !important;
}

/* Fix for elements that might have high z-index */
.pelecard-modal-active .elementor-element,
.pelecard-modal-active .elementor-widget,
.pelecard-modal-active header,
.pelecard-modal-active nav,
.pelecard-modal-active .sticky,
.pelecard-modal-active .fixed {
    z-index: auto !important;
}

/* Optional: Blur background content */
body.pelecard-modal-open {
    overflow: hidden;
}

body.pelecard-modal-open > *:not(.pelecard-modal-overlay) {
    filter: blur(2px);
    transition: filter 0.3s ease;
}

/* Kiosk Helper Styles - Positioned on Overlay */
.pelecard-kiosk-helper-overlay {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
    max-width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.kiosk-helper-text {
    margin: 0 0 15px 0;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.4;
    direction: rtl; /* For Hebrew text */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.6);
    padding: 15px 25px;
    border-radius: 10px;
    display: inline-block;
}

.kiosk-helper-image {
    display: block;
    margin: 0 auto;
}

/* Adjust modal when kiosk helper is present */
.pelecard-modal-overlay.has-kiosk-helper .pelecard-modal-content {
    margin-bottom: 280px; /* Make room for the helper below */
}

/* Mobile adjustments for kiosk helper */
@media (max-width: 768px) {
    .pelecard-kiosk-helper-overlay {
        bottom: 20px;
        max-width: 95%;
    }
    
    .kiosk-helper-text {
        font-size: 18px;
        padding: 10px 20px;
    }
    
    .kiosk-helper-image {
        max-width: 300px;
        max-height: 200px;
        padding: 10px;
    }
    
    .pelecard-modal-overlay.has-kiosk-helper .pelecard-modal-content {
        margin-bottom: 240px;
    }
}

/* Countdown Timer Styles */
.arbox-countdown-wrapper {
    margin: 20px 0 10px 0;
    text-align: center;
}

.arbox-countdown-text {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.arbox-countdown-number {
    font-size: 24px;
    font-weight: bold;
    color: #4CAF50;
    display: inline-block;
    min-width: 30px;
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Manual Redirect Button */
.arbox-redirect-button {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.arbox-redirect-button:hover {
    background: linear-gradient(135deg, #45a049, #4CAF50);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

/* Update progress bar animation timing based on redirect delay */
.arbox-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    width: 0;
    border-radius: 2px;
    transition: width linear;
}

/* Ensure popup is hidden by default */
#arbox-status-popup {
    display: none !important;
}

/* Only show when has the active class (controlled by JS) */
#arbox-status-popup.active {
    display: flex !important;
}

#arbox-popup-overlay {
    display:flex;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.8) !important;
    z-index: 999998 !important;
    display: none; /* Hidden by default */
}

/* Reset any inherited transforms or positioning */
#arbox-popup-overlay * {
    transform: none;
    position: relative;
}

#arbox-popup-modern {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    max-width: 450px;
    width: 90%;
    max-width: min(450px, 90vw); /* Responsive width */
    text-align: center;
    position: relative !important;
    animation: slideInScale 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto;
    margin: 20px;
    max-height: 90vh;
    overflow-y: auto;
}

/* Ensure popup stays centered even with scroll */
@supports (position: fixed) {
    #arbox-popup-overlay {
        position: fixed !important;
    }
}

/* For older browsers */
.arbox-popup-overlay {
    position: -webkit-fixed !important;
    position: -moz-fixed !important;
    position: -ms-fixed !important;
    position: -o-fixed !important;
}

.arbox-popup-modern {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    position: relative; /* Ensure proper stacking */
    animation: slideInScale 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto; /* Ensure popup content is clickable */
}

.arbox-popup-state {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.arbox-icon-wrapper {
    margin-bottom: 30px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arbox-popup-headline {
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.arbox-popup-subtext {
    color: #7f8c8d;
    font-size: 16px;
    margin: 0;
}

/* Loading Spinner */
.arbox-loading-spinner {
    width: 80px;
    height: 80px;
    position: relative;
}

.spinner-circle {
    width: 100%;
    height: 100%;
    border: 4px solid #e8f4f8;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success Checkmark */
.arbox-success-checkmark {
    width: 80px;
    height: 80px;
    position: relative;
}

.check-icon {
    width: 80px;
    height: 80px;
    position: relative;
    border-radius: 50%;
    box-sizing: content-box;
    border: 4px solid #4CAF50;
}

.check-icon::before {
    top: 3px;
    left: -2px;
    width: 30px;
    transform-origin: 100% 50%;
    border-radius: 100px 0 0 100px;
}

.check-icon::after {
    top: 0;
    left: 30px;
    width: 60px;
    transform-origin: 0 50%;
    border-radius: 0 100px 100px 0;
    animation: rotate-circle 4.25s ease-in;
}

.icon-line {
    height: 5px;
    background-color: #4CAF50;
    display: block;
    border-radius: 2px;
    position: absolute;
    z-index: 10;
}

.icon-line.line-tip {
    top: 46px;
    left: 14px;
    width: 25px;
    transform: rotate(45deg);
    animation: check-tip 0.75s ease 0.5s forwards;
    opacity: 0;
}

.icon-line.line-long {
    top: 38px;
    right: 8px;
    width: 47px;
    transform: rotate(-45deg);
    animation: check-long 0.75s ease 0.5s forwards;
    opacity: 0;
}

.icon-circle {
    top: -4px;
    left: -4px;
    z-index: 10;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    position: absolute;
    box-sizing: content-box;
    border: 4px solid rgba(76, 175, 80, 0.2);
}

.icon-fix {
    top: 8px;
    width: 5px;
    left: 26px;
    z-index: 1;
    height: 85px;
    position: absolute;
    transform: rotate(-45deg);
    background-color: #FFFFFF;
}

@keyframes check-tip {
    0% {
        width: 0;
        opacity: 1;
    }
    100% {
        width: 25px;
        opacity: 1;
    }
}

@keyframes check-long {
    0% {
        width: 0;
        opacity: 1;
    }
    100% {
        width: 47px;
        opacity: 1;
    }
}

/* Error Cross */
.arbox-error-cross {
    width: 80px;
    height: 80px;
    position: relative;
}

.cross-icon {
    width: 80px;
    height: 80px;
    position: relative;
    border-radius: 50%;
    box-sizing: content-box;
    border: 4px solid #F44336;
    animation: pulse-red 1s ease infinite;
}

.cross-icon .icon-line {
    background-color: #F44336;
    width: 48px;
    height: 5px;
    position: absolute;
    top: 37px;
    left: 16px;
}

.cross-icon .icon-line.line-left {
    transform: rotate(45deg);
    animation: cross-left 0.5s ease 0.2s forwards;
    opacity: 0;
}

.cross-icon .icon-line.line-right {
    transform: rotate(-45deg);
    animation: cross-right 0.5s ease 0.4s forwards;
    opacity: 0;
}

.cross-icon .icon-circle {
    top: -4px;
    left: -4px;
    z-index: 10;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    position: absolute;
    box-sizing: content-box;
    border: 4px solid rgba(244, 67, 54, 0.2);
}

@keyframes cross-left {
    0% {
        width: 0;
        opacity: 1;
    }
    100% {
        width: 48px;
        opacity: 1;
    }
}

@keyframes cross-right {
    0% {
        width: 0;
        opacity: 1;
    }
    100% {
        width: 48px;
        opacity: 1;
    }
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(244, 67, 54, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(244, 67, 54, 0);
    }
}

/* Progress Bar for Redirect */
.arbox-progress-bar {
    width: 100%;
    height: 4px;
    background: #ecf0f1;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 20px;
}

.arbox-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    width: 0;
    animation: progress 2s ease-out forwards;
    border-radius: 2px;
}

@keyframes progress {
    0% { width: 0; }
    100% { width: 100%; }
}

/* Button */
.arbox-popup-button {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.arbox-popup-button:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInScale {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .arbox-popup-modern {
        width: 95%;
        padding: 30px 20px;
        margin: 20px;
    }
    
    .arbox-popup-headline {
        font-size: 20px;
    }
    
    .arbox-popup-subtext {
        font-size: 14px;
    }
}