/* =================================================================
   DaviddTech FOMO Popup - Premium Modal Styles
   ================================================================= */

/* Import modern fonts for premium look */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Reset and base styles */
.remodal-overlay {
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

.remodal[data-remodal-id="davidd-fomo-popup"] {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    max-width: 580px !important;
    width: 95% !important;
    max-height: 90vh !important;
    overflow: visible !important;
}

/* Main container with dark glassmorphism */
.davidd-fomo-container {
    background: linear-gradient(135deg, 
        rgba(20, 20, 20, 0.95) 0%, 
        rgba(10, 10, 10, 0.90) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(1, 255, 167, 0.2);
    border-radius: 24px;
    padding: 40px 32px 32px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(1, 255, 167, 0.1),
        inset 0 1px 0 rgba(1, 255, 167, 0.1);
    animation: davidd-modal-enter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: white;
}

/* Animated background elements */
.davidd-fomo-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(1, 255, 167, 0.15), transparent);
    animation: davidd-rotate 20s linear infinite;
    z-index: -1;
}

.davidd-fomo-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(1, 255, 167, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(1, 255, 167, 0.05) 0%, transparent 50%);
    border-radius: 24px;
    z-index: -1;
}

/* Close button */
.davidd-close-btn {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    width: 40px !important;
    height: 40px !important;
    background: rgba(1, 255, 167, 0.1) !important;
    border: 1px solid rgba(1, 255, 167, 0.3) !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: rgba(255, 255, 255, 0.8) !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 100 !important;
    backdrop-filter: blur(10px) !important;
}

.davidd-close-btn:hover {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #ef4444 !important;
    transform: scale(1.05) !important;
    border-color: rgba(239, 68, 68, 0.2) !important;
}

/* Header section */
.davidd-fomo-header {
    text-align: center;
    margin-bottom: 32px;
    position: relative;
}

/* Pulsing ring animation */
.davidd-pulse-ring {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    border: 3px solid rgba(1, 255, 167, 0.4);
    border-radius: 50%;
    animation: davidd-pulse 2s ease-in-out infinite;
}

.davidd-pulse-ring::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid rgba(1, 255, 167, 0.2);
    border-radius: 50%;
    animation: davidd-pulse 2s ease-in-out infinite 0.5s;
}

/* Rocket icon */
.davidd-rocket {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
    animation: davidd-float 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

/* Main title */
.davidd-fomo-title {
    margin: 0 0 8px;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.davidd-gradient-text {
    background: linear-gradient(135deg, #01ffa7, #00d4aa, #ffffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: davidd-gradient-shift 3s ease-in-out infinite;
}

.davidd-subtitle {
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 8px;
}

/* Stats section */
.davidd-fomo-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
    padding: 24px;
    background: rgba(1, 255, 167, 0.05);
    border: 1px solid rgba(1, 255, 167, 0.2);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.davidd-stat-item {
    text-align: center;
    position: relative;
}

.davidd-stat-number {
    font-size: 28px;
    font-weight: 800;
    color: white;
    margin-bottom: 4px;
    animation: davidd-count-up 1s ease-out;
}

/* Countdown container and seconds animation */
.davidd-countdown-container {
    position: relative;
    display: inline-block;
}

.davidd-seconds-animated {
    position: relative;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.davidd-seconds-tick {
    animation: davidd-seconds-pulse 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.davidd-countdown-urgent #davidd-seconds {
    color: #01ffa7 !important;
    text-shadow: 0 0 8px rgba(1, 255, 167, 0.6);
    animation: davidd-urgent-glow 1s ease-in-out infinite;
}

.davidd-countdown-critical {
    animation: davidd-critical-shake 0.5s ease-in-out;
}

/* Time unit separators */
.davidd-countdown-container .davidd-separator {
    opacity: 0.7;
    margin: 0 2px;
}

.davidd-countdown-urgent .davidd-separator {
    animation: davidd-separator-blink 1s ease-in-out infinite;
}

.davidd-stat-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Features list */
.davidd-features {
    margin-bottom: 24px;
}

.davidd-feature {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    animation: davidd-slide-in 0.6s ease-out;
    animation-fill-mode: both;
}

.davidd-feature:nth-child(1) { animation-delay: 0.1s; }
.davidd-feature:nth-child(2) { animation-delay: 0.2s; }
.davidd-feature:nth-child(3) { animation-delay: 0.3s; }
.davidd-feature:nth-child(4) { animation-delay: 0.4s; }

.davidd-check {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #01ffa7, #00d4aa);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    animation: davidd-check-bounce 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation-fill-mode: both;
}

/* Urgency text */
.davidd-urgency-text {
    text-align: center;
    padding: 16px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.1));
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    color: #dc2626;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 32px;
    animation: davidd-urgency-pulse 2s ease-in-out infinite;
}

/* CTA Button - The Star of the Show */
.davidd-cta-button {
    display: block !important;
    width: 100% !important;
    padding: 20px 32px !important;
    background: linear-gradient(135deg, #01ffa7, #00d4aa) !important;
    border: none !important;
    border-radius: 16px !important;
    color: #000 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    text-align: center !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 
        0 10px 25px rgba(1, 255, 167, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    margin-bottom: 20px !important;
    animation: davidd-cta-glow 2s ease-in-out infinite !important;
}

.davidd-cta-button:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 
        0 15px 35px rgba(1, 255, 167, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    background: linear-gradient(135deg, #00f59b, #00c99a) !important;
}

.davidd-cta-button:active {
    transform: translateY(0) scale(1) !important;
}

.davidd-cta-text {
    position: relative;
    z-index: 2;
}

.davidd-cta-arrow {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    font-weight: 700;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.davidd-cta-button:hover .davidd-cta-arrow {
    transform: translateY(-50%) translateX(4px);
}

/* Button shine effect */
.davidd-button-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Trust badges */
.davidd-trust-badges {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.davidd-badge {
    padding: 6px 12px;
    background: rgba(1, 255, 167, 0.1);
    border: 1px solid rgba(1, 255, 167, 0.3);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

/* Social proof testimonial */
.davidd-social-proof {
    text-align: center;
    padding: 20px;
    background: rgba(1, 255, 167, 0.05);
    border: 1px solid rgba(1, 255, 167, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.davidd-stars {
    font-size: 16px;
    margin-bottom: 8px;
}

.davidd-testimonial p {
    font-size: 14px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 8px;
}

.davidd-author {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

/* Animations */
@keyframes davidd-modal-enter {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes davidd-pulse {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translateX(-50%) scale(1.1);
        opacity: 0.4;
    }
}

@keyframes davidd-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes davidd-gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

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

@keyframes davidd-count-up {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes davidd-slide-in {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes davidd-check-bounce {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes davidd-urgency-pulse {
    0%, 100% {
        background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.1));
    }
    50% {
        background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.15));
    }
}

@keyframes davidd-cta-glow {
    0%, 100% {
        box-shadow: 
            0 10px 25px rgba(1, 255, 167, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 
            0 15px 35px rgba(1, 255, 167, 0.6),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

/* Countdown seconds animations */
@keyframes davidd-seconds-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
        color: #01ffa7;
        text-shadow: 0 0 10px rgba(1, 255, 167, 0.8);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes davidd-urgent-glow {
    0%, 100% {
        text-shadow: 0 0 8px rgba(1, 255, 167, 0.6);
        transform: scale(1);
    }
    50% {
        text-shadow: 0 0 15px rgba(1, 255, 167, 1);
        transform: scale(1.05);
    }
}

@keyframes davidd-critical-shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-2px);
    }
    75% {
        transform: translateX(2px);
    }
}

@keyframes davidd-separator-blink {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 0.3;
    }
}

/* Mobile-First Responsive Design */

/* Tablet breakpoint (768px and below) */
@media (max-width: 768px) {
    .remodal[data-remodal-id="davidd-fomo-popup"] {
        width: 96% !important;
        max-width: 500px !important;
        max-height: 90vh !important;
        margin: 5vh auto !important;
    }
    
    .davidd-fomo-container {
        padding: 28px 24px 24px;
        border-radius: 20px;
        max-height: 85vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Larger touch targets for close button */
    .davidd-close-btn {
        width: 44px !important;
        height: 44px !important;
        top: 12px !important;
        right: 12px !important;
        border-radius: 14px !important;
    }
    
    .davidd-fomo-title {
        font-size: 26px;
        line-height: 1.3;
    }
    
    .davidd-gradient-text {
        font-size: 26px;
    }
    
    .davidd-subtitle {
        font-size: 15px;
        line-height: 1.4;
    }
    
    .davidd-rocket {
        font-size: 44px;
        margin-bottom: 12px;
    }
    
    /* Stack stats vertically on tablet */
    .davidd-fomo-stats {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 24px 20px;
        margin-bottom: 28px;
    }
    
    .davidd-stat-number {
        font-size: 26px;
    }
    
    .davidd-stat-label {
        font-size: 13px;
        margin-top: 4px;
    }
    
    /* Larger CTA button for better touch */
    .davidd-cta-button {
        padding: 20px 32px !important;
        font-size: 17px !important;
        min-height: 60px !important;
        border-radius: 14px !important;
    }
    
    .davidd-feature {
        font-size: 15px;
        margin-bottom: 14px;
    }
    
    .davidd-check {
        width: 22px;
        height: 22px;
        margin-right: 14px;
    }
}

/* Mobile breakpoint (640px and below) */
@media (max-width: 640px) {
    .remodal[data-remodal-id="davidd-fomo-popup"] {
        width: 95% !important;
        max-width: 380px !important;
        max-height: 95vh !important;
        margin: 2.5vh auto !important;
    }
    
    .davidd-fomo-container {
        padding: 24px 18px 20px;
        border-radius: 18px;
        max-height: 90vh;
    }
    
    .davidd-fomo-header {
        margin-bottom: 24px;
    }
    
    .davidd-fomo-title {
        font-size: 22px;
        margin: 0 0 6px;
    }
    
    .davidd-gradient-text {
        font-size: 22px;
        line-height: 1.2;
    }
    
    .davidd-subtitle {
        font-size: 14px;
        line-height: 1.3;
        margin-top: 6px;
    }
    
    .davidd-rocket {
        font-size: 38px;
        margin-bottom: 10px;
    }
    
    /* Horizontal stats layout for mobile */
    .davidd-fomo-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        padding: 18px 12px;
        margin-bottom: 24px;
    }
    
    .davidd-stat-number {
        font-size: 20px;
        margin-bottom: 2px;
    }
    
    .davidd-stat-label {
        font-size: 11px;
        line-height: 1.2;
    }
    
    /* Countdown adjustments for mobile */
    .davidd-countdown-container {
        font-size: 18px !important;
    }
    
    .davidd-seconds-animated {
        font-size: 0.95em;
    }
    
    /* Mobile-optimized features list */
    .davidd-features {
        margin-bottom: 20px;
    }
    
    .davidd-feature {
        font-size: 14px;
        margin-bottom: 10px;
        line-height: 1.4;
    }
    
    .davidd-check {
        width: 20px;
        height: 20px;
        margin-right: 12px;
        flex-shrink: 0;
    }
    
    /* Mobile CTA button */
    .davidd-cta-button {
        padding: 18px 24px !important;
        font-size: 16px !important;
        min-height: 56px !important;
        border-radius: 12px !important;
        margin-bottom: 16px !important;
    }
    
    .davidd-cta-arrow {
        right: 20px;
        font-size: 18px;
    }
    
    /* Mobile trust badges */
    .davidd-trust-badges {
        gap: 6px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .davidd-badge {
        font-size: 11px;
        padding: 4px 8px;
        border-radius: 16px;
        white-space: nowrap;
    }
    
    /* Mobile testimonial */
    .davidd-social-proof {
        padding: 16px;
        margin-top: 20px;
    }
    
    .davidd-testimonial p {
        font-size: 13px;
        line-height: 1.4;
    }
    
    .davidd-author {
        font-size: 11px;
    }
    
    /* Mobile urgency text */
    .davidd-urgency-text {
        padding: 12px;
        font-size: 13px;
        margin-bottom: 24px;
        line-height: 1.3;
    }
}

/* Small mobile breakpoint (480px and below) */
@media (max-width: 480px) {
    .remodal[data-remodal-id="davidd-fomo-popup"] {
        width: 96% !important;
        max-width: 340px !important;
        margin: 2vh auto !important;
    }
    
    .davidd-fomo-container {
        padding: 20px 16px 18px;
        border-radius: 16px;
    }
    
    .davidd-fomo-title {
        font-size: 20px;
    }
    
    .davidd-gradient-text {
        font-size: 20px;
    }
    
    .davidd-subtitle {
        font-size: 13px;
    }
    
    .davidd-rocket {
        font-size: 34px;
        margin-bottom: 8px;
    }
    
    /* Very compact stats for small screens */
    .davidd-fomo-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 14px 8px;
        margin-bottom: 20px;
    }
    
    .davidd-stat-number {
        font-size: 18px;
        margin-bottom: 1px;
    }
    
    .davidd-countdown-container {
        font-size: 16px !important;
    }
    
    .davidd-stat-label {
        font-size: 10px;
    }
    
    .davidd-seconds-animated {
        font-size: 0.9em;
    }
    
    /* Compact features for small screens */
    .davidd-feature {
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    .davidd-check {
        width: 18px;
        height: 18px;
        margin-right: 10px;
        font-size: 11px;
    }
    
    /* Small screen CTA */
    .davidd-cta-button {
        padding: 16px 20px !important;
        font-size: 15px !important;
        min-height: 52px !important;
    }
    
    .davidd-cta-arrow {
        right: 16px;
        font-size: 16px;
    }
    
    .davidd-trust-badges {
        gap: 4px;
        margin-bottom: 16px;
    }
    
    .davidd-badge {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    /* Compact close button for very small screens */
    .davidd-close-btn {
        width: 40px !important;
        height: 40px !important;
        top: 10px !important;
        right: 10px !important;
    }
}

/* Extra small screens (360px and below) */
@media (max-width: 360px) {
    .davidd-fomo-container {
        padding: 18px 14px 16px;
    }
    
    .davidd-fomo-title {
        font-size: 18px;
    }
    
    .davidd-gradient-text {
        font-size: 18px;
    }
    
    .davidd-rocket {
        font-size: 30px;
    }
    
    .davidd-stat-number {
        font-size: 16px;
    }
    
    .davidd-countdown-container {
        font-size: 14px !important;
    }
    
    .davidd-cta-button {
        padding: 14px 18px !important;
        font-size: 14px !important;
        min-height: 48px !important;
    }
}

/* Landscape phone orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .remodal[data-remodal-id="davidd-fomo-popup"] {
        max-height: 95vh !important;
        margin: 2.5vh auto !important;
    }
    
    .davidd-fomo-container {
        max-height: 90vh;
        overflow-y: auto;
        padding: 16px 20px 14px;
    }
    
    .davidd-fomo-header {
        margin-bottom: 16px;
    }
    
    .davidd-rocket {
        font-size: 28px;
        margin-bottom: 6px;
    }
    
    .davidd-fomo-stats {
        margin-bottom: 16px;
        padding: 12px;
    }
    
    .davidd-features {
        margin-bottom: 16px;
    }
    
    .davidd-feature {
        margin-bottom: 6px;
    }
    
    .davidd-urgency-text {
        margin-bottom: 16px;
        padding: 8px;
    }
    
    .davidd-social-proof {
        padding: 12px;
        margin-top: 16px;
    }
}

/* Touch-specific improvements */
@media (hover: none) and (pointer: coarse) {
    /* Better touch targets */
    .davidd-close-btn {
        min-width: 44px !important;
        min-height: 44px !important;
    }
    
    .davidd-cta-button {
        min-height: 56px !important;
    }
    
    /* Remove hover effects on touch devices */
    .davidd-cta-button:hover {
        transform: none !important;
    }
    
    .davidd-badge:hover {
        transform: none !important;
    }
    
    /* Add active states for touch feedback */
    .davidd-cta-button:active {
        transform: scale(0.98) !important;
        transition: transform 0.1s ease !important;
    }
    
    .davidd-close-btn:active {
        transform: scale(0.95) !important;
        transition: transform 0.1s ease !important;
    }
}

/* Prevent zoom on inputs (iOS Safari) */
@media screen and (max-width: 768px) {
    input, select, textarea {
        font-size: 16px !important;
    }
}

/* High DPI screens optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .davidd-pulse-ring {
        border-width: 2px;
    }
    
    .davidd-pulse-ring::before {
        border-width: 1px;
    }
}

/* Mobile-specific utility classes */
.davidd-modal-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
}

.davidd-mobile-scroll {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.davidd-touch-active {
    opacity: 0.8;
    transform: scale(0.98);
    transition: all 0.1s ease;
}

.davidd-reduced-animations * {
    animation-duration: 0.3s !important;
    transition-duration: 0.2s !important;
}

.davidd-reduced-animations .davidd-pulse-ring,
.davidd-reduced-animations .davidd-pulse-ring::before {
    animation: none !important;
}

.davidd-reduced-animations .davidd-rocket {
    animation: none !important;
}

/* iOS Safari specific fixes */
@supports (-webkit-appearance: none) {
    .remodal[data-remodal-id="davidd-fomo-popup"] {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
    
    .davidd-fomo-container {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
}

/* Fix for iOS viewport units */
@supports (height: 100dvh) {
    @media (max-width: 768px) {
        .remodal[data-remodal-id="davidd-fomo-popup"] {
            max-height: 90dvh !important;
        }
        
        .davidd-fomo-container {
            max-height: 85dvh;
        }
    }
}

/* Fix for Android Chrome address bar */
@media screen and (max-width: 768px) {
    .remodal-overlay {
        min-height: 100vh;
        min-height: -webkit-fill-available;
    }
}

/* Accessibility improvements for mobile */
@media (prefers-reduced-motion: reduce) {
    .davidd-fomo-container {
        animation: none !important;
    }
    
    .davidd-seconds-tick,
    .davidd-countdown-urgent,
    .davidd-countdown-critical {
        animation: none !important;
    }
    
    .davidd-pulse-ring,
    .davidd-pulse-ring::before {
        animation: none !important;
    }
}

/* Enhanced focus styles for keyboard navigation on mobile */
@media (max-width: 768px) {
    .davidd-close-btn:focus,
    .davidd-cta-button:focus {
        outline: 3px solid #01ffa7;
        outline-offset: 2px;
    }
    
    /* Better contrast for dark mode */
    @media (prefers-color-scheme: dark) {
        .davidd-close-btn:focus,
        .davidd-cta-button:focus {
            outline-color: #ffffff;
        }
    }
}

/* High contrast accessibility support */
@media (prefers-contrast: high) {
    .davidd-fomo-container {
        background: rgba(255, 255, 255, 0.98);
        border: 2px solid #000;
    }
    
    .davidd-cta-button {
        background: #000 !important;
        border: 2px solid #000 !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
} 