

/* ============================================
   EXIT POPUP STYLES
============================================ */
:root {
    --primary-400: #60a5fa;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --accent-pink: #f472b6;
    --accent-pink-dark: #9d174d;
    --accent-purple: #a78bfa;
    --accent-purple-dark: #5b21b6;
    --accent-green: #34d399;
    --accent-green-dark: #065f46;
    --accent-orange: #fb923c;
    --accent-orange-dark: #9a3412;
    --dark-950: #030712;
    --dark-900: #0f172a;
    --dark-800: #1e293b;
    --dark-700: #334155;
    --dark-600: #475569;
    --dark-500: #64748b;
    --dark-400: #94a3b8;
    --dark-300: #cbd5e1;
    --dark-200: #e2e8f0;
    --white: #ffffff;
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
    --gradient-header: linear-gradient(135deg, #1e3a5f 0%, #3b1d5e 50%, #1e293b 100%);
    --gradient-button: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --gradient-shine: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.3);
    --shadow-pink: 0 0 30px rgba(244, 114, 182, 0.3);
}


.toast:not(.showing):not(.show) {
  opacity: 0;
  display: none;
}

.popup-overlay {
    position: fixed;
    inset: 0;
background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    padding: 15px;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.floating-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
    animation: float-around 20s ease-in-out infinite;
}

.shape-1 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.shape-2 {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--accent-pink-dark), var(--accent-purple-dark));
    top: 60%;
    right: 10%;
    animation-delay: -5s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-green-dark), var(--primary-600));
    bottom: 20%;
    left: 15%;
    animation-delay: -10s;
}

.shape-4 {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-orange-dark), var(--accent-pink-dark));
    top: 30%;
    right: 20%;
    animation-delay: -15s;
}

@keyframes float-around {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    25% { transform: translate(30px, -40px) rotate(90deg) scale(1.1); }
    50% { transform: translate(-20px, 30px) rotate(180deg) scale(0.95); }
    75% { transform: translate(40px, 20px) rotate(270deg) scale(1.05); }
}

.sparkle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--primary-400);
    border-radius: 50%;
    animation: sparkle-float 8s ease-in-out infinite;
}

@keyframes sparkle-float {
    0%, 100% { opacity: 0; transform: translateY(100vh) scale(0); }
    10% { opacity: 1; transform: translateY(80vh) scale(1); }
    90% { opacity: 1; transform: translateY(-10vh) scale(1); }
    100% { opacity: 0; transform: translateY(-20vh) scale(0); }
}

.popup-container {
    background: var(--dark-900);
    width: 100%;
    max-width: 380px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    border: 1px solid var(--dark-700);
    transform: scale(0.85) translateY(40px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    margin: 15px;
}

.popup-overlay.active .popup-container {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: var(--dark-800);
    border: 1px solid var(--dark-600);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 20;
    color: var(--dark-400);
}

.close-btn:hover {
    background: var(--dark-700);
    border-color: var(--dark-500);
    color: var(--white);
    transform: rotate(90deg) scale(1.1);
}

.close-btn svg {
    width: 16px;
    height: 16px;
    stroke-width: 2;
}

.popup-header {
    background: var(--gradient-header);
    padding: 24px 20px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header-decoration {
    position: absolute;
    border-radius: 50%;
    opacity: 0.2;
}

.decoration-1 {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-pink), transparent);
    top: -30px;
    left: -30px;
    animation: pulse-slow 4s ease-in-out infinite;
}

.decoration-2 {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-500), transparent);
    bottom: 10px;
    right: -20px;
    animation: pulse-slow 4s ease-in-out infinite 1s;
}

@keyframes pulse-slow {
    0%, 100% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(1.2); opacity: 0.4; }
}

.header-content {
    position: relative;
    z-index: 1;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 50px;
    margin-bottom: 14px;
    animation: badge-entrance 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

@keyframes badge-entrance {
    0% { transform: scale(0) rotate(-10deg); opacity: 0; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: dot-pulse 2s ease-in-out infinite;
    box-shadow: 0 0 8px var(--accent-green);
}

@keyframes dot-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.status-badge span {
    font-size: 10px;
    font-weight: 600;
    color: var(--dark-300);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.icon-container {
    width: 60px;
    height: 60px;
    background: var(--dark-800);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: icon-entrance 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
}

@keyframes icon-entrance {
    0% { transform: scale(0) rotate(-180deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.icon-container::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--primary-500), var(--accent-pink), var(--accent-purple));
    border-radius: 20px;
    z-index: -1;
    animation: icon-glow 3s ease-in-out infinite;
}

@keyframes icon-glow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.icon-container svg {
    width: 32px;
    height: 32px;
    color: var(--primary-400);
    animation: icon-bounce 2s ease-in-out infinite;
}

@keyframes icon-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.header-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--white);
    line-height: 1.3;
    margin-bottom: 4px;
    animation: text-entrance 0.5s ease 0.4s both;
}

@keyframes text-entrance {
    0% { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.header-subtitle {
    font-size: 12px;
    color: var(--dark-400);
    animation: text-entrance 0.5s ease 0.5s both;
}

.popup-body {
    padding: 0 20px 20px;
    margin-top: -24px;
    position: relative;
    z-index: 5;
}

.offer-card {
    background: var(--dark-800);
    border-radius: 16px;
    padding: 18px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--dark-700);
    margin-bottom: 12px;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: card-entrance 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
}

@keyframes card-entrance {
    0% { transform: translateY(40px) scale(0.95); opacity: 0; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

.offer-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: var(--gradient-shine);
    animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    50%, 100% { left: 150%; }
}

.discount-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(244, 114, 182, 0.2), rgba(167, 139, 250, 0.2));
    border: 1px solid rgba(244, 114, 182, 0.3);
    padding: 6px 12px;
    border-radius: 50px;
    margin-bottom: 14px;
    animation: tag-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s both;
}

@keyframes tag-pop {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

.discount-tag svg {
    width: 14px;
    height: 14px;
    color: var(--accent-pink);
    animation: star-spin 3s linear infinite;
}

@keyframes star-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.discount-tag span {
    font-size: 11px;
    font-weight: 700;
    color: var(--dark-200);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 12px;
}

.price-old {
    position: relative;
    font-size: 20px;
    font-weight: 600;
    color: var(--dark-500);
    animation: price-entrance 0.5s ease 0.6s both;
}

@keyframes price-entrance {
    0% { transform: translateX(-20px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

.price-old::after {
    content: '';
    position: absolute;
    left: -5%;
    top: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-pink);
    transform: rotate(-8deg);
    border-radius: 2px;
    animation: strike 0.4s ease 0.9s forwards;
}

@keyframes strike {
    0% { width: 0; }
    100% { width: 110%; }
}

.price-arrow {
    color: var(--dark-600);
    animation: arrow-pulse 1s ease-in-out infinite;
}

@keyframes arrow-pulse {
    0%, 100% { transform: translateX(0); opacity: 0.5; }
    50% { transform: translateX(3px); opacity: 1; }
}

.price-arrow svg {
    width: 18px;
    height: 18px;
}

.price-new {
    display: flex;
    align-items: flex-start;
    animation: price-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.7s both;
}

@keyframes price-pop {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.price-currency {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-400);
    margin-top: 6px;
}

.price-amount {
    font-size: 42px;
    font-weight: 900;
    color: var(--primary-400);
    line-height: 1;
    letter-spacing: -2px;
}

.savings-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(52, 211, 153, 0.15);
    border: 1px solid rgba(52, 211, 153, 0.3);
    padding: 8px 14px;
    border-radius: 10px;
    animation: badge-slide 0.5s ease 0.8s both;
}

@keyframes badge-slide {
    0% { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.savings-badge svg {
    width: 16px;
    height: 16px;
    color: var(--accent-green);
}

.savings-badge span {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-green);
}

.coupon-box {
    background: var(--dark-800);
    border: 2px dashed var(--dark-600);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    position: relative;
    animation: card-entrance 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s both;
    transition: all 0.3s ease;
}

.coupon-box:hover {
    border-color: var(--primary-500);
}

.coupon-box::before,
.coupon-box::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--dark-900);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    border: 2px dashed var(--dark-600);
}

.coupon-box::before { left: -10px; }
.coupon-box::after { right: -10px; }

.coupon-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.coupon-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.2), rgba(244, 114, 182, 0.2));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: ticket-wiggle 3s ease-in-out infinite;
}

@keyframes ticket-wiggle {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}

.coupon-icon svg {
    width: 18px;
    height: 18px;
    color: var(--accent-orange);
}

.coupon-info {
    text-align: left;
}

.coupon-label {
    font-size: 9px;
    font-weight: 600;
    color: var(--dark-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.coupon-code {
    font-family: 'SF Mono', 'Courier New', monospace;
    font-size: 14px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 1.5px;
}

.copy-btn {
    background: var(--dark-700);
    color: var(--dark-300);
    border: 1px solid var(--dark-600);
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}

.copy-btn:hover {
    background: var(--primary-500);
    color: var(--white);
    border-color: var(--primary-500);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.copy-btn.copied {
    background: var(--accent-green);
    border-color: var(--accent-green);
    color: var(--white);
}

.copy-btn svg {
    width: 14px;
    height: 14px;
}

.cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    background: var(--gradient-button);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    animation: card-entrance 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s both;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.cta-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-button);
    border-radius: 12px;
    z-index: -1;
    animation: button-glow 2s ease-in-out infinite;
}

@keyframes button-glow {
    0%, 100% { box-shadow: 0 6px 25px rgba(59, 130, 246, 0.4); }
    50% { box-shadow: 0 6px 25px rgba(59, 130, 246, 0.4), 0 0 0 4px rgba(59, 130, 246, 0.1); }
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.6s;
}

.cta-button:hover::after { left: 100%; }

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.5);
}

.cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: cart-bounce 1.5s ease-in-out infinite;
}

@keyframes cart-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.cta-icon svg {
    width: 20px;
    height: 20px;
}

.cta-arrow {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.cta-arrow svg {
    width: 16px;
    height: 16px;
}

.cta-button:hover .cta-arrow {
    transform: translateX(3px);
}

.popup-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    margin-top: 14px;
    border-top: 1px solid var(--dark-700);
    animation: card-entrance 0.5s ease 0.6s both;
}

.trust-items {
    display: flex;
    gap: 12px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: var(--dark-400);
    font-weight: 500;
    transition: all 0.3s ease;
}

.trust-item:hover {
    color: var(--dark-200);
}

.trust-item svg {
    width: 14px;
    height: 14px;
    color: var(--accent-green);
}

.social-proof {
    display: flex;
    align-items: center;
    gap: 8px;
}

.avatar-stack {
    display: flex;
}

.avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--dark-900);
    margin-left: -6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 700;
    color: var(--white);
    transition: all 0.3s ease;
}

.avatar:first-child { margin-left: 0; }

.avatar:hover {
    transform: translateY(-3px) scale(1.15);
    z-index: 10;
}

.avatar-1 { background: linear-gradient(135deg, var(--primary-400), var(--primary-500)); }
.avatar-2 { background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple)); }
.avatar-3 { background: linear-gradient(135deg, var(--accent-green), #10b981); }

.social-text {
    font-size: 10px;
    color: var(--dark-400);
}

.social-text strong {
    color: var(--dark-200);
    font-weight: 700;
}

.counter-value {
    display: inline-block;
    transition: all 0.3s ease;
}

.counter-value.updating {
    transform: scale(1.15);
    color: var(--primary-400);
}

.decline-link {
    text-align: center;
    margin-top: 12px;
    animation: card-entrance 0.5s ease 0.7s both;
}

.decline-link a {
    color: var(--dark-500);
    font-size: 11px;
    text-decoration: none;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: inline-block;
}

.decline-link a:hover {
    color: var(--dark-300);
    background: var(--dark-800);
}

.exit-popup-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--dark-800);
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 999999;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid var(--dark-600);
    font-family: 'Inter', sans-serif;
}

.exit-popup-toast.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.exit-popup-toast svg {
    width: 18px;
    height: 18px;
    color: var(--accent-green);
}

.exit-popup-toast span {
    font-size: 12px;
    font-weight: 600;
    color: var(--dark-200);
}

.confetti-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 999999;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    opacity: 0;
}

.confetti-piece.active {
    animation: confetti-drop 3.5s ease-out forwards;
}

@keyframes confetti-drop {
    0% { transform: translateY(-20px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* ============================================
   MOBILE RESPONSIVE STYLES - OPTIMIZED
============================================ */

/* Extra Small Devices (up to 380px) */
@media (max-width: 380px) {
    .popup-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .popup-container {
        max-width: 100%;
        width: 100%;
        margin: 0;
        border-radius: 28px 28px 0 0;
      max-height: 100vh;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    position: relative;
    top: -33vh;
    }

    .popup-overlay.active .popup-container {
        transform: translateY(0) scale(1);
    }

    .close-btn {
        top: 14px;
        right: 14px;
        width: 40px;
        height: 40px;
        min-height: 44px;
        min-width: 44px;
    }

    .close-btn svg {
        width: 20px;
        height: 20px;
    }

    .popup-header {
        padding: 18px 14px 28px;
    }

    .status-badge {
        padding: 5px 10px;
        margin-bottom: 10px;
        font-size: 8px;
    }

    .icon-container {
        width: 52px;
        height: 52px;
        margin: 0 auto 12px;
    }

    .icon-container svg {
        width: 26px;
        height: 26px;
    }

    .header-title {
        font-size: 15px;
        line-height: 1.2;
    }

    .header-subtitle {
        font-size: 10px;
        margin-top: 6px;
    }

    .popup-body {
        padding: 0 14px 14px;
    }

    .offer-card {
        padding: 12px;
        margin-bottom: 10px;
        border-radius: 14px;
    }

    .discount-tag {
        padding: 4px 8px;
        margin-bottom: 10px;
        font-size: 8px;
        gap: 4px;
    }

    .discount-tag svg {
        width: 10px;
        height: 10px;
    }

    .price-display {
        gap: 8px;
        margin-bottom: 8px;
    }

    .price-old {
        font-size: 14px;
    }

    .price-arrow svg {
        width: 12px;
        height: 12px;
    }

    .price-currency {
        font-size: 12px;
    }

    .price-amount {
        font-size: 28px;
        letter-spacing: -1px;
    }

    .savings-badge {
        padding: 6px 10px;
        font-size: 10px;
        gap: 4px;
    }

    .savings-badge svg {
        width: 12px;
        height: 12px;
    }

    .coupon-box {
        padding: 10px;
        margin-bottom: 10px;
        gap: 8px;
        border-radius: 10px;
    }

    .coupon-left {
        min-width: 0;
    }

    .coupon-icon {
        width: 30px;
        height: 30px;
        min-width: 30px;
        flex-shrink: 0;
    }

    .coupon-icon svg {
        width: 14px;
        height: 14px;
    }

    .coupon-label {
        font-size: 7px;
        margin-bottom: 1px;
    }

    .coupon-code {
        font-size: 11px;
        letter-spacing: 0.8px;
        word-break: break-all;
    }

    .copy-btn {
        padding: 10px 12px;
        font-size: 10px;
        gap: 4px;
        min-height: 44px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .copy-btn svg {
        width: 12px;
        height: 12px;
    }

    .cta-button {
        padding: 12px 16px;
        font-size: 12px;
        gap: 6px;
        min-height: 44px;
        margin-top: 6px;
        border-radius: 10px;
    }

    .cta-icon {
        display: none;
    }

    .cta-arrow svg {
        width: 13px;
        height: 13px;
    }

    .cta-button:active {
        transform: translateY(-1px);
    }

    .popup-footer {
        flex-direction: column;
        gap: 10px;
        padding-top: 10px;
        margin-top: 8px;
    }

    .trust-items {
        gap: 12px;
        justify-content: center;
        width: 100%;
        order: 2;
    }

    .trust-item {
        font-size: 8px;
    }

    .trust-item svg {
        width: 12px;
        height: 12px;
    }

    .social-proof {
        justify-content: center;
        width: 100%;
        order: 1;
    }

    .social-text {
        font-size: 8px;
    }

    .avatar {
        width: 18px;
        height: 18px;
        font-size: 6px;
        margin-left: -4px;
    }

    .avatar:first-child {
        margin-left: 0;
    }

    .decline-link {
        margin-top: 8px;
    }

    .decline-link a {
        font-size: 9px;
        padding: 6px 12px;
        min-height: 40px;
        display: inline-flex;
        align-items: center;
    }

    .floating-shapes {
        display: none;
    }

    .header-decoration {
        display: none;
    }
}

/* Small Devices (381px - 480px) */
@media (min-width: 381px) and (max-width: 480px) {
    .popup-overlay {
        padding: 10px;
        align-items: flex-end;
    }

    .popup-container {
        max-width: 100%;
        width: 100%;
        margin: 0;
        border-radius: 26px 26px 0 0;
        max-height: 90vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .popup-overlay.active .popup-container {
        transform: translateY(0) scale(1);
    }

    .close-btn {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        min-height: 44px;
        min-width: 44px;
    }

    .close-btn svg {
        width: 18px;
        height: 18px;
    }

    .popup-header {
        padding: 20px 16px 32px;
    }

    .header-title {
        font-size: 16px;
    }

    .header-subtitle {
        font-size: 11px;
    }

    .popup-body {
        padding: 0 16px 16px;
    }

    .offer-card {
        padding: 14px;
        margin-bottom: 10px;
    }

    .discount-tag {
        padding: 5px 10px;
        margin-bottom: 10px;
        font-size: 9px;
    }

    .discount-tag svg {
        width: 12px;
        height: 12px;
    }

    .price-display {
        gap: 10px;
        margin-bottom: 10px;
    }

    .price-old {
        font-size: 16px;
    }

    .price-arrow svg {
        width: 14px;
        height: 14px;
    }

    .price-currency {
        font-size: 14px;
    }

    .price-amount {
        font-size: 32px;
    }

    .savings-badge {
        padding: 6px 12px;
        font-size: 11px;
    }

    .savings-badge svg {
        width: 14px;
        height: 14px;
    }

    .coupon-box {
        padding: 10px 12px;
        margin-bottom: 10px;
    }

    .coupon-left {
        flex: 1;
        gap: 8px;
    }

    .coupon-icon {
        width: 32px;
        height: 32px;
    }

    .coupon-icon svg {
        width: 16px;
        height: 16px;
    }

    .coupon-code {
        font-size: 12px;
        letter-spacing: 1px;
    }

    .coupon-label {
        font-size: 8px;
    }

    .copy-btn {
        padding: 10px 14px;
        font-size: 11px;
        gap: 5px;
        min-height: 44px;
    }

    .copy-btn svg {
        width: 12px;
        height: 12px;
    }

    .cta-button {
        padding: 14px 20px;
        font-size: 13px;
        gap: 8px;
        margin-top: 6px;
        min-height: 44px;
    }

    .cta-icon {
        display: none;
    }

    .cta-arrow svg {
        width: 14px;
        height: 14px;
    }

    .popup-footer {
        flex-direction: column;
        gap: 12px;
        padding-top: 10px;
        margin-top: 10px;
    }

    .trust-items {
        gap: 10px;
        justify-content: center;
    }

    .trust-item {
        font-size: 9px;
    }

    .social-proof {
        justify-content: center;
        width: 100%;
    }

    .social-text {
        font-size: 9px;
    }

    .avatar {
        width: 20px;
        height: 20px;
        font-size: 7px;
    }

    .decline-link {
        margin-top: 10px;
    }

    .decline-link a {
        font-size: 10px;
        padding: 8px 12px;
        min-height: 44px;
    }

    .floating-shapes {
        display: none;
    }

    .shape-1, .shape-2, .shape-3, .shape-4 {
        display: none;
    }

    .header-decoration {
        display: none;
    }
}

/* Tablet (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .popup-overlay {
        padding: 12px;
    }

    .popup-container {
        max-width: 380px;
    }

    .close-btn {
        width: 38px;
        height: 38px;
        min-height: 44px;
    }

    .close-btn svg {
        width: 17px;
        height: 17px;
    }

    .popup-header {
        padding: 22px 18px 36px;
    }

    .header-title {
        font-size: 18px;
    }

    .popup-body {
        padding: 0 18px 18px;
    }

    .icon-container {
        width: 56px;
        height: 56px;
    }

    .icon-container svg {
        width: 28px;
        height: 28px;
    }

    .status-badge {
        padding: 6px 12px;
        margin-bottom: 12px;
    }

    .cta-button {
        padding: 15px 22px;
        font-size: 13px;
        min-height: 44px;
    }

    .copy-btn {
        min-height: 44px;
    }
}

/* Large Devices (769px and above) */
@media (min-width: 769px) {
    .popup-container {
        max-width: 380px;
        box-shadow: 
            0 25px 50px -12px rgba(0, 0, 0, 0.25),
            0 0 60px rgba(59, 130, 246, 0.3);
        animation: popup-slide-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    @keyframes popup-slide-in {
        from {
            transform: scale(0.85) translateY(40px);
            opacity: 0;
        }
        to {
            transform: scale(1) translateY(0);
            opacity: 1;
        }
    }

    .floating-shapes {
        opacity: 0.5;
    }

    .popup-header {
        padding: 28px 24px 44px;
        background: linear-gradient(135deg, #1e3a5f 0%, #3b1d5e 50%, #1e293b 100%);
    }

    .header-title {
        font-size: 20px;
    }

    .header-decoration {
        display: block;
    }

    .cta-button:hover {
        transform: translateY(-4px);
        box-shadow: 0 15px 40px rgba(59, 130, 246, 0.6);
    }

    .close-btn:hover {
        transform: rotate(90deg) scale(1.1);
    }

    .copy-btn:hover {
        transform: translateY(-2px);
    }
}

/* Landscape Orientation */
@media (max-height: 600px) and (orientation: landscape) {
    .popup-container {
        max-height: 95vh;
        overflow-y: auto;
    }

    .popup-header {
        padding: 12px 16px 16px;
    }

    .header-title {
        font-size: 14px;
        margin-bottom: 2px;
    }

    .header-subtitle {
        font-size: 10px;
    }

    .icon-container {
        width: 40px;
        height: 40px;
        margin: 0 auto 8px;
    }

    .icon-container svg {
        width: 20px;
        height: 20px;
    }

    .popup-body {
        padding: 0 14px 12px;
    }

    .offer-card {
        padding: 10px;
        margin-bottom: 8px;
    }

    .price-amount {
        font-size: 24px;
    }

    .cta-button {
        padding: 10px 16px;
        font-size: 12px;
    }

    .popup-footer {
        padding-top: 8px;
        margin-top: 6px;
    }
}

/* Animation optimization for mobile */
@media (prefers-reduced-motion: reduce) {
    .popup-container,
    .popup-overlay,
    .floating-shape,
    .sparkle,
    .offer-card,
    .coupon-box,
    .cta-button,
    * {
        animation: none !important;
        transition: opacity 0.3s ease !important;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .cta-button:active {
        background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    }

    .copy-btn:active {
        background: var(--primary-500);
    }

    .close-btn:active {
        background: var(--dark-600);
    }
}

/* Dark mode improvements */
@media (prefers-color-scheme: dark) {
    .popup-overlay {
        background: rgba(0, 0, 0, 0.5);
    }

    .popup-container {
        background: #0f172a;
    }
}
