:root{
      --popup-bg: rgba(0,0,0,0.65);
      --card-radius: 12px;
      --max-card-width: 420px;
      --sticky-height-desktop: 90px;
      --sticky-height-mobile: 60px;
      --z-popup: 99999;
      --z-sticky: 99998;
    }
    html,body{height:100%; margin:0; font-family: Inter, system-ui, Arial; -webkit-font-smoothing:antialiased;}
    /* ---------- Popup Overlay ---------- */
    .ad-popup {
      position: fixed;
      inset: 0;
      display: none; /* toggled via JS */
      align-items: center;
      justify-content: center;
      background: var(--popup-bg);
      z-index: var(--z-popup);
      padding: 16px;
    }
    .ad-popup.active { display: flex; }

    .ad-popup-card {
      width: 100%;
      max-width: var(--max-card-width);
      background: #fff;
      border-radius: var(--card-radius);
      box-shadow: 0 18px 40px rgba(0,0,0,0.35);
      padding: 18px;
      position: relative;
      display:flex;
      flex-direction: column;
      gap: 12px;
    }

    .ad-popup-close {
      position: absolute;
      top: -12px;
      right: -12px;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      border: none;
      background: #111;
      color: #fff;
      font-size: 18px;
      cursor: pointer;
      box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    }

    /* Ad container style - ensures visible area even if ad is not filled */
    .ad-container {
      min-height: 80px;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      width: 100%;
    }

    /* Fallback placeholder when ad blocked */
    .ad-fallback {
      border: 1px dashed #ddd;
      background: #fafafa;
      padding: 12px;
      text-align: center;
      color: #555;
      font-size: 14px;
      border-radius: 8px;
      width:100%;
    }

    /* ---------- Sticky Bottom Ad ---------- */
    .sticky-ad {
      position: fixed;
      left: 0;
      bottom: 0;
      width: 100%;
      z-index: var(--z-sticky);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 8px 12px;
      box-sizing: border-box;
      transform: translateY(100%);
      transition: transform 300ms ease, opacity 300ms ease;
      opacity: 0;
      pointer-events: none;
    }
    .sticky-ad.active {
      transform: translateY(0);
      opacity: 1;
      pointer-events: auto;
    }

    .sticky-inner {
      width: 100%;
      max-width: 100%;
      height: var(--sticky-height-desktop);
      background: #fff;
      border-radius: 8px 8px 0 0;
      box-shadow: 0 -8px 30px rgba(0,0,0,0.12);
      display:flex;
      align-items:center;
      justify-content:center;
      position:relative;
      padding: 6px 14px;
      box-sizing: border-box;
    }

.sticky-close {
  position: absolute;
  right: 10px;
  top: 8px;
  background: rgba(0,0,0,0.06);
  border: none;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  z-index: 3;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

    /* Mobile adjustments (small screens) */
    @media (max-width: 600px) {
      .ad-popup-card { padding: 12px; max-width: 360px; }
      :root { --sticky-height-desktop: var(--sticky-height-mobile); }
      .ad-container { min-height: 50px; }
      .ad-popup-card { gap: 8px; }
    }

    /* Very small devices: make sticky smaller */
    @media (max-width: 380px) {
      .sticky-inner { height: calc(var(--sticky-height-desktop) - 10px); padding:6px 8px; }
      .ad-popup-card { max-width: 320px; }
    }

    /* ensure ins.adsbygoogle takes space when present */
    ins.adsbygoogle { display:block !important; width:100% !important; height:auto !important; min-height:50px; }

    .price-alert-container {
            max-width: 1000px;
            margin: 0 auto;
            position: relative;
        }
        
        .advertisement-label {
            display: inline-block;
            background: #f1f5f9;
            color: #64748b;
            font-size: 12px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            padding: 4px 10px;
            border-radius: 4px 4px 0 0;
            margin-bottom: -1px;
            border: 1px solid #e2e8f0;
            border-bottom: none;
        }
        
        .price-alert-ad {
            background: linear-gradient(135deg, #f0f7ff 0%, #f8fafc 100%);
            border: 1px solid #e2e8f0;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        }
        
        .alert-content-wrapper {
            display: flex;
            align-items: center;
            padding: 20px;
        }
        
        .alert-brand-section {
            flex: 0 0 auto;
            margin-right: 20px;
            position: relative;
        }
        
        .alert-icon-box {
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 24px;
            box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
        }
        
        .new-badge {
            position: absolute;
            top: -5px;
            right: -5px;
            background: #10b981;
            color: white;
            font-size: 10px;
            font-weight: bold;
            padding: 2px 6px;
            border-radius: 10px;
            box-shadow: 0 2px 5px rgba(16, 185, 129, 0.4);
        }
        
        .alert-text-section {
            flex: 1;
            padding-right: 20px;
        }
        
        .alert-main-title {
            font-size: 18px;
            font-weight: 700;
            color: #1e293b;
            margin-bottom: 6px;
            line-height: 1.3;
        }
        
        .alert-description-text {
            font-size: 14px;
            color: #475569;
            margin-bottom: 12px;
            line-height: 1.5;
        }
        
        .alert-features-list {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 15px;
        }
        
        .alert-feature-item {
            background: white;
            border: 1px solid #e2e8f0;
            border-radius: 20px;
            padding: 5px 12px;
            font-size: 12px;
            font-weight: 600;
            color: #334155;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .alert-feature-item i {
            color: #3b82f6;
            font-size: 10px;
        }
        
        
        .alert-action-section {
            flex: 0 0 auto;
            min-width: 180px;
        }
        
        .download-app-btn {
            display: block;
            background: linear-gradient(to right, #10b981, #34d399);
            color: white;
            text-decoration: none;
            font-weight: 700;
            font-size: 15px;
            padding: 12px 24px;
            border-radius: 8px;
            text-align: center;
            box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
            border: none;
            cursor: pointer;
            width: 100%;
        }
        
        .price-alert-container,
        .price-alert-ad {
            cursor: pointer;
        }
        
        .download-app-btn i {
            margin-right: 8px;
        }
        
        .alert-footer-area {
            background: #f8fafc;
            border-top: 1px solid #e2e8f0;
            padding: 12px 20px;
            font-size: 12px;
            color: #64748b;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .advertisement-disclaimer {
            font-style: italic;
        }
        
        .close-ad-button {
            color: #94a3b8;
            background: none;
            border: none;
            font-size: 18px;
            cursor: pointer;
            padding: 0 5px;
        }
        
        .sponsored-label {
            position: absolute;
            top: 10px;
            right: 10px;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(5px);
            color: #64748b;
            font-size: 11px;
            font-weight: 600;
            padding: 3px 10px;
            border-radius: 4px;
            border: 1px solid #e2e8f0;
        }
        
        @media (max-width: 900px) {
            .alert-content-wrapper {
                flex-direction: column;
                padding: 25px 20px;
            }
            
            .alert-brand-section {
                margin-right: 0;
                margin-bottom: 20px;
            }
            
            .alert-text-section {
                padding-right: 0;
                margin-bottom: 20px;
                text-align: center;
            }
            
            .alert-features-list {
                justify-content: center;
            }
            
            .alert-action-section {
                min-width: 100%;
            }
        }
        
        @media (max-width: 600px) {
            .alert-main-title {
                font-size: 17px;
            }
            
            .alert-description-text {
                font-size: 13.5px;
            }
            
            .alert-features-list {
                gap: 6px;
            }
            
            .alert-feature-item {
                padding: 4px 10px;
                font-size: 11px;
            }
            
            .discount-code-box {
                font-size: 12px;
                padding: 5px 12px;
            }
            
            .download-app-btn {
                padding: 11px 20px;
                font-size: 14px;
            }
            
            .alert-footer-area {
                flex-direction: column;
                gap: 10px;
                text-align: center;
            }
        }
