﻿        /* Download Wait Modal Styles */
        .download-wait-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(15, 23, 42, 0.75);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            z-index: 99999;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
            padding: 20px;
            box-sizing: border-box;
        }
        
        .download-wait-overlay.show {
            opacity: 1;
            pointer-events: auto;
        }
        
        .download-wait-modal, .download-wait-modal * {
            box-sizing: border-box;
        }
        
        .download-wait-modal {
            background: #ffffff;
            border-radius: 24px;
            width: 100%;
            max-width: 600px;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(226, 232, 240, 0.8);
            transform: scale(0.9);
            transition: transform 0.3s ease;
            padding: 20px 24px;
            direction: rtl;
            position: relative;
            text-align: center;
            font-family: iransans, Tahoma, sans-serif;
        }
        
        .download-wait-overlay.show .download-wait-modal {
            transform: scale(1);
        }
        
        .download-wait-header {
            position: relative;
            margin-bottom: 15px;
            padding-top: 15px;
        }
        
        .download-wait-close-btn {
            position: absolute;
            top: -10px;
            left: -10px;
            background: #f1f5f9;
            border: none;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            font-size: 20px;
            color: #64748b;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }
        
        .download-wait-close-btn:hover {
            background: #e2e8f0;
            color: #0f172a;
        }
        
        .download-wait-close-btn:disabled {
            opacity: 0.4;
            cursor: not-allowed;
        }
        
        .vip-crown-badge {
            width: 54px;
            height: 54px;
            background: linear-gradient(135deg, #fef08a 0%, #facc15 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 10px auto;
            box-shadow: 0 8px 16px rgba(234, 179, 8, 0.3);
            position: relative;
            border: 4px solid #fff;
            top: -10px;
        }
        
        .vip-crown-badge img {
            width: 28px;
            height: 28px;
        }
        
        .download-wait-title {
            font-size: 1.2rem;
            font-weight: bold;
            color: #0f172a;
            margin: 0;
            font-family: iransans, Tahoma, sans-serif;
        }
        
        /* Countdown Ring Styles */
        .countdown-container {
            position: relative;
            width: 75px;
            height: 75px;
            margin: 0 auto 6px auto;
        }
        
        .countdown-svg {
            transform: rotate(-90deg);
            width: 75px;
            height: 75px;
        }
        
        .countdown-circle-bg {
            stroke: #f1f5f9;
            stroke-width: 8;
            fill: transparent;
        }
        
        .countdown-circle {
            stroke: #eab308;
            stroke-width: 8;
            stroke-dasharray: 270;
            stroke-dashoffset: 0;
            fill: transparent;
            stroke-linecap: round;
            transition: stroke-dashoffset 0.1s linear;
        }
        
        .countdown-number {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 2rem;
            font-weight: 800;
            color: #0f172a;
            font-family: iransans, Tahoma, sans-serif;
        }

        /* Pain-point hook below timer */
        .vip-pain-hook {
            font-size: 0.82rem;
            color: #b45309;
            font-weight: 600;
            margin: 0 auto 12px auto;
            background: linear-gradient(135deg, #fef9c3 0%, #fef3c7 100%);
            border: 1px solid #fde68a;
            border-radius: 20px;
            padding: 4px 14px;
            display: inline-block;
            animation: pulseHook 2.5s ease-in-out infinite;
        }
        @keyframes pulseHook {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.75; }
        }
        .vip-pain-hook-wrap {
            text-align: center;
            margin-bottom: 12px;
        }

        /* VIP Promo Area */
        .vip-promo-box {
            background: linear-gradient(160deg, #fffbeb 0%, #fef3c7 60%, #fffbeb 100%);
            border: 1.5px solid #fde68a;
            border-radius: 18px;
            padding: 16px 16px 14px;
            margin-bottom: 16px;
            text-align: right;
            position: relative;
            overflow: hidden;
        }
        .vip-promo-box::before {
            content: '';
            position: absolute;
            top: -30px;
            left: -30px;
            width: 100px;
            height: 100px;
            background: radial-gradient(circle, rgba(250,204,21,0.18) 0%, transparent 70%);
            pointer-events: none;
        }
        
        /* VIP Social Proof Header */
        .vip-social-proof {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: rgba(254, 243, 199, 0.7);
            border: 1px dashed #fcd34d;
            border-radius: 10px;
            padding: 6px 12px;
            margin-bottom: 12px;
            font-size: 0.78rem;
            color: #78350f;
        }
        .vip-social-proof .proof-badge {
            font-weight: 600;
        }
        .vip-social-proof .proof-members strong {
            color: #b45309;
            font-size: 0.85rem;
        }

        .vip-promo-heading {
            font-size: 0.95rem;
            font-weight: 800;
            color: #92400e;
            margin: 0 0 10px 0;
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }

        /* AI Hero Feature Card */
        .vip-ai-hero-card {
            background: linear-gradient(135deg, #f0f5ff 0%, #e0e7ff 100%);
            border: 1.5px solid #c7d2fe;
            border-radius: 14px;
            padding: 12px 14px;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 12px;
            text-align: right;
            box-shadow: 0 4px 14px rgba(79, 70, 229, 0.08);
            transition: all 0.2s ease;
        }
        .vip-ai-hero-card:hover {
            border-color: #818cf8;
            box-shadow: 0 6px 18px rgba(79, 70, 229, 0.14);
            transform: translateY(-1px);
        }
        .vip-ai-hero-icon {
            width: 44px;
            height: 44px;
            background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.4rem;
            color: #ffffff;
            flex-shrink: 0;
            box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
        }
        .vip-ai-hero-content {
            flex: 1;
        }
        .vip-ai-hero-content strong {
            display: block;
            color: #1e1b4b;
            font-size: 0.92rem;
            font-weight: 800;
            margin-bottom: 2px;
        }
        .vip-ai-hero-content span {
            color: #3730a3;
            font-size: 0.78rem;
            line-height: 1.4;
            display: block;
        }

        /* Clean VIP Benefits Checklist */
        .vip-clean-benefits {
            list-style: none;
            padding: 0;
            margin: 0 0 14px 0;
            display: flex;
            flex-direction: column;
            gap: 8px;
            text-align: right;
        }
        .vip-clean-benefits li {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.82rem;
            color: #334155;
            line-height: 1.4;
            background: #ffffff;
            padding: 6px 10px;
            border-radius: 8px;
            border: 1px solid #f1f5f9;
        }
        .vip-clean-benefits li .benefit-tick {
            color: #059669;
            font-weight: 800;
            font-size: 0.95rem;
            flex-shrink: 0;
        }
        .vip-clean-benefits li strong {
            color: #0f172a;
            font-weight: 700;
        }
        .vip-clean-benefits li span {
            color: #64748b;
            font-size: 0.78rem;
        }

        /* Live Social Proof Line right above CTA */
        .vip-live-proof {
            font-size: 0.78rem;
            font-weight: 700;
            color: #b45309;
            background: rgba(254, 243, 199, 0.9);
            border: 1px solid #fde68a;
            border-radius: 8px;
            padding: 5px 12px;
            width: 100%;
            text-align: center;
            margin-bottom: 2px;
            letter-spacing: -0.1px;
            box-shadow: 0 1px 3px rgba(180, 83, 9, 0.06);
        }
        
        .vip-actions {
            display: flex;
            flex-direction: column;
            gap: 8px;
            justify-content: center;
            align-items: center;
            width: 100%;
        }
        
        .btn-buy-vip {
            background: linear-gradient(135deg, #059669 0%, #047857 100%);
            color: #ffffff !important;
            border: none;
            padding: 14px 20px;
            border-radius: 14px;
            font-weight: 800;
            font-size: 1.05rem;
            text-decoration: none;
            box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
            transition: all 0.2s ease;
            animation: pulseBtn 2.2s infinite;
            font-family: iransans, Tahoma, sans-serif;
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            position: relative;
            letter-spacing: -0.2px;
        }
        .btn-buy-vip:hover {
            background: linear-gradient(135deg, #047857 0%, #065f46 100%);
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(5, 150, 105, 0.5);
        }

        /* VIP Price Hint */
        .vip-price-hint {
            font-size: 0.78rem;
            color: #92400e;
            margin-top: 2px;
            margin-bottom: 2px;
            font-weight: 600;
            text-align: center;
        }
        
        /* Secondary Login link - clearer & high usability for existing members */
        .btn-login-vip {
            background: rgba(255, 255, 255, 0.75);
            color: #475569 !important;
            border: 1px solid #cbd5e1;
            padding: 6px 14px;
            border-radius: 8px;
            font-weight: 700;
            font-size: 0.8rem;
            text-decoration: none;
            transition: all 0.2s ease;
            font-family: iransans, Tahoma, sans-serif;
            cursor: pointer;
            display: inline-block;
            margin-top: 2px;
        }
        
        .btn-login-vip:hover {
            background: #ffffff !important;
            color: #0f172a !important;
            border-color: #94a3b8;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
        }
        
        /* Ad Placement */
        .ad-wait-slot {
            border-top: 1px dashed #e2e8f0;
            padding-top: 15px;
            margin-top: 15px;
        }
        
        .ad-label {
            font-size: 0.75rem;
            color: #94a3b8;
            display: block;
            margin-bottom: 8px;
            font-family: iransans, Tahoma, sans-serif;
        }
        
        .ad-content-wrapper {
            min-height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .ad-content-wrapper a img {
            max-width: 100%;
            height: auto;
            border-radius: 8px;
        }
        
        /* Download CTA button */
        .download-action-container {
            margin-top: 16px;
            animation: fadeIn 0.4s ease forwards;
            display: flex;
            flex-direction: column;
            gap: 10px;
            align-items: center;
        }

        /* Download started success message */
        .download-success-msg {
            color: #065f46;
            background: #ecfdf5;
            border: 1px solid #a7f3d0;
            padding: 12px 24px;
            border-radius: 12px;
            font-size: 0.95rem;
            font-weight: 700;
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            width: 100%;
            font-family: iransans, Tahoma, sans-serif;
            animation: popIn 0.4s ease forwards;
        }

        /* Subtle fallback download link */
        .btn-fallback-download {
            color: #6b7280 !important;
            font-size: 0.8rem;
            text-decoration: underline;
            text-underline-offset: 3px;
            transition: color 0.2s ease;
            font-family: iransans, Tahoma, sans-serif;
            background: none;
            border: none;
            cursor: pointer;
            padding: 4px 10px;
            display: inline-block;
            margin-top: 2px;
        }

        .btn-fallback-download:hover {
            color: #1f2937 !important;
        }

        /* Post-countdown VIP upsell strip - sticky bottom drawer */
        .post-download-vip-strip {
            width: calc(100% + 60px);
            margin-left: -30px;
            margin-right: -30px;
            margin-top: 20px;
            margin-bottom: -30px;
            background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
            border-top: 1.5px solid #fde68a;
            border-bottom: none;
            border-left: none;
            border-right: none;
            border-radius: 0 0 24px 24px;
            padding: 15px 30px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            animation: fadeIn 0.5s 0.2s ease both;
            position: sticky;
            bottom: -30px;
            z-index: 99;
            box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.05);
        }

        .post-download-vip-strip .strip-text {
            font-size: 0.8rem;
            color: #92400e;
            font-weight: 600;
            text-align: right;
            line-height: 1.45;
            flex: 1;
        }

        .post-download-vip-strip .strip-text span {
            display: block;
            font-size: 0.72rem;
            color: #b45309;
            font-weight: 400;
            margin-top: 2px;
        }

        .post-download-vip-strip .strip-btn {
            background: linear-gradient(135deg, #ca8a04 0%, #a16207 100%);
            color: #fff !important;
            border: none;
            border-radius: 10px;
            padding: 8px 14px;
            font-size: 0.8rem;
            font-weight: 700;
            text-decoration: none;
            white-space: nowrap;
            font-family: iransans, Tahoma, sans-serif;
            transition: all 0.2s ease;
            box-shadow: 0 3px 10px rgba(161,98,7,0.3);
            flex-shrink: 0;
        }

        .post-download-vip-strip .strip-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 5px 14px rgba(161,98,7,0.4);
        }

        /* Urgency message that updates during countdown */
        .countdown-urgency-msg {
            font-size: 0.78rem;
            color: #dc2626;
            font-weight: 600;
            margin: 4px auto 0 auto;
            opacity: 0;
            transition: opacity 0.5s ease;
            font-family: iransans, Tahoma, sans-serif;
            min-height: 1.2em;
        }

        .countdown-urgency-msg.visible {
            opacity: 1;
        }

        /* Shimmer sweep on VIP button during countdown */
        @keyframes shimmerSweep {
            0%   { background-position: 200% center; }
            100% { background-position: -200% center; }
        }

        .btn-buy-vip.shimmer-active {
            background: linear-gradient(135deg, #ca8a04 0%, #a16207 50%, #ca8a04 100%);
            background-size: 200% auto;
            border: none !important;
            animation: shimmerSweep 2.2s linear infinite, pulseBtn 2s infinite;
        }
        
        /* Animations */
        @keyframes pulseBtn {
            0% {
                box-shadow: 0 0 0 0 rgba(161, 98, 7, 0.4);
            }
            70% {
                box-shadow: 0 0 0 10px rgba(161, 98, 7, 0);
            }
            100% {
                box-shadow: 0 0 0 0 rgba(161, 98, 7, 0);
            }
        }

        @keyframes popIn {
            from { opacity: 0; transform: scale(0.85); }
            to   { opacity: 1; transform: scale(1); }
        }
        
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        @media (max-width: 768px) {
            .download-wait-modal {
                padding: 12px 10px;
                width: 95%;
            }
            .vip-crown-badge {
                width: 44px;
                height: 44px;
                margin-bottom: 6px;
            }
            .vip-crown-badge img {
                width: 22px;
                height: 22px;
            }
            .vip-promo-box {
                padding: 10px 8px;
                margin-bottom: 8px;
            }
            .vip-promo-heading {
                font-size: 0.85rem;
                margin-bottom: 8px;
                padding-bottom: 6px;
            }
            /* AI Hero Card Mobile */
            .vip-ai-hero-card {
                padding: 10px;
                gap: 8px;
                margin-bottom: 8px;
                border-radius: 12px;
            }
            .vip-ai-hero-icon {
                width: 36px;
                height: 36px;
                font-size: 1.15rem;
                border-radius: 10px;
            }
            .vip-ai-hero-content strong {
                font-size: 0.82rem;
            }
            .vip-ai-hero-content span {
                font-size: 0.72rem;
                line-height: 1.35;
            }

            /* Clean Benefits Mobile */
            .vip-clean-benefits {
                gap: 5px;
                margin-bottom: 10px;
            }
            .vip-clean-benefits li {
                font-size: 0.74rem;
                padding: 5px 8px;
                gap: 6px;
            }
            .vip-clean-benefits li .benefit-tick {
                font-size: 0.85rem;
            }
            .vip-clean-benefits li span {
                font-size: 0.71rem;
            }

            .vip-actions {
                flex-direction: column;
                gap: 6px;
            }
            .btn-buy-vip {
                width: 100%;
                text-align: center;
                padding: 11px 14px;
                font-size: 0.92rem;
                border-radius: 12px;
            }
            .btn-login-vip {
                font-size: 0.78rem;
            }
            .countdown-container {
                margin-bottom: 4px;
                width: 60px;
                height: 60px;
            }
            .countdown-svg {
                width: 60px;
                height: 60px;
            }
            .countdown-number {
                font-size: 1.5rem;
            }
            .download-wait-title {
                font-size: 1rem;
            }
            .download-wait-header {
                margin-bottom: 8px;
                padding-top: 8px;
            }
            .vip-pain-hook {
                font-size: 0.76rem;
                padding: 4px 10px;
                margin-bottom: 8px;
            }
            .vip-pain-hook-wrap {
                margin-bottom: 8px;
            }
            .post-download-vip-strip {
                width: calc(100% + 24px);
                margin-left: -12px;
                margin-right: -12px;
                margin-bottom: -15px;
                padding: 12px 16px;
                bottom: -15px;
                border-radius: 0 0 24px 24px;
            }
        }
