/* ═══════════════════════════════════════════════════════ */
/* TELEGRAM DEALS PAGES - CUSTOM STYLES                    */
/* Used by: BBD Telegram, GIF Telegram, Price Error,       */
/*          Amazon Loot, Flipkart Loot, Under ₹99 pages    */
/* File: css/telegram-deals.css                            */
/* ═══════════════════════════════════════════════════════ */

/* ─── SALE COUNTDOWN BAR (Top Sticky) ─── */
.sale-countdown-bar {
    background: linear-gradient(90deg, #FF3B3B 0%, #FF6B35 100%);
    color: #fff;
    padding: 8px 12px;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(255, 59, 59, 0.3);
}
.sale-countdown-bar__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.sale-countdown-bar__icon {
    font-size: 16px;
    animation: tgPulse 1.5s infinite;
}
.sale-countdown-bar__text strong {
    color: #FFD700;
    font-size: 14px;
    margin: 0 2px;
    font-weight: 800;
}
.sale-countdown-bar.sale-live {
    background: linear-gradient(90deg, #00C853 0%, #00E676 100%);
    box-shadow: 0 2px 10px rgba(0, 200, 83, 0.4);
}

@keyframes tgPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.15); }
}

/* ─── TELEGRAM HERO EXTRAS ─── */
.telegram-hero .live-badge {
    background: linear-gradient(90deg, #FF3B3B, #FF6B35) !important;
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.live-badge .live-dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: tgPulse 1s infinite;
    display: inline-block;
}

/* Telegram CTA Button */
.btn--telegram {
    background: linear-gradient(135deg, #229ED9 0%, #1E88C7 100%);
    color: #fff !important;
    box-shadow: 0 6px 20px rgba(34, 158, 217, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    border: none;
}
.btn--telegram:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 158, 217, 0.5);
}

/* ─── LIVE TICKER ─── */
.live-ticker {
    background: #0F172A;
    color: #fff;
    padding: 10px 0;
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.live-ticker__inner {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}
.live-ticker__pulse {
    width: 10px;
    height: 10px;
    background: #FF3B3B;
    border-radius: 50%;
    animation: tgPulse 1s infinite;
    flex-shrink: 0;
}
.live-ticker__scroll {
    display: flex;
    gap: 32px;
    animation: tickerScroll 40s linear infinite;
    white-space: nowrap;
}
.live-ticker__item {
    font-size: 13px;
    color: #CBD5E1;
    flex-shrink: 0;
}
.live-ticker__item strong {
    color: #FFD700;
    margin: 0 2px;
}
@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ─── DEAL TABS SECTION ─── */
.deal-tabs-section {
    padding: 40px 0;
    background: #F8FAFC;
}
.deal-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 4px 16px;
    margin: 20px 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.deal-tabs::-webkit-scrollbar {
    display: none;
}
.deal-tab {
    background: #fff;
    border: 2px solid #E2E8F0;
    color: #475569;
    padding: 10px 18px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.25s ease;
    flex-shrink: 0;
    font-family: inherit;
}
.deal-tab:hover {
    border-color: #6C3CE1;
    color: #6C3CE1;
}
.deal-tab.active {
    background: linear-gradient(135deg, #6C3CE1 0%, #8B5CF6 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(108, 60, 225, 0.35);
}

/* ─── DEAL PANELS ─── */
.deal-panel {
    display: none;
}
.deal-panel.active {
    display: block;
    animation: fadeInPanel 0.4s ease;
}
@keyframes fadeInPanel {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── DEAL CARDS (Blur & Unlock) ─── */
.deal-card {
    background: #fff;
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
    border: 1px solid #E2E8F0;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}
.deal-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(15, 23, 42, 0.12);
}
.deal-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
}
.deal-card__header--flash {
    background: linear-gradient(90deg, #FF3B3B, #FF6B35);
}
.deal-card__header--glitch {
    background: linear-gradient(90deg, #7C3AED, #A855F7);
}
.deal-card__header--bank {
    background: linear-gradient(90deg, #16A34A, #22C55E);
}
.deal-card__badge {
    display: inline-block;
}
.deal-card__timer {
    background: rgba(0,0,0,0.25);
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 11px;
}
.deal-card__body {
    display: flex;
    gap: 12px;
    padding: 14px;
    align-items: center;
}
.deal-card__image {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    border-radius: 10px;
    background: linear-gradient(135deg, #F1F5F9, #E2E8F0);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.deal-card__image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.deal-card__info {
    flex: 1;
    min-width: 0;
}
.deal-card__title {
    font-size: 14px;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 6px 0;
    line-height: 1.3;
}
.deal-card__pricing {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.deal-card__mrp {
    font-size: 12px;
    color: #94A3B8;
    text-decoration: line-through;
}
.deal-card__price {
    font-size: 20px;
    font-weight: 800;
    color: #16A34A;
    font-family: 'Poppins', sans-serif;
}
.deal-card__off {
    background: #DCFCE7;
    color: #16A34A;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}
.deal-card__claims {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #DC2626;
    font-weight: 600;
}
.claims-dot {
    width: 6px;
    height: 6px;
    background: #16A34A;
    border-radius: 50%;
    animation: tgPulse 1.5s infinite;
}
.deal-card__blur {
    padding: 10px 14px;
    background: #F1F5F9;
    border-top: 1px dashed #CBD5E1;
    border-bottom: 1px dashed #CBD5E1;
    position: relative;
}
.deal-card__blur-content {
    filter: blur(5px);
    user-select: none;
    pointer-events: none;
    font-size: 12px;
    color: #475569;
    text-align: center;
}
.deal-card__blur-content p {
    margin: 0;
}
.deal-card__blur-content span {
    font-weight: 700;
    color: #6C3CE1;
}
.deal-card__unlock {
    display: block;
    background: linear-gradient(135deg, #229ED9 0%, #1E88C7 100%);
    color: #fff !important;
    text-align: center;
    padding: 14px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    letter-spacing: 0.3px;
}
.deal-card__unlock:hover {
    background: linear-gradient(135deg, #1E88C7 0%, #1976A8 100%);
}
.deal-card__unlock:active {
    transform: scale(0.98);
}

/* ─── SEO CONTENT ─── */
.seo-content {
    padding: 40px 0;
    background: #fff;
}
.seo-content__wrap {
    max-width: 820px;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.8;
    color: #334155;
}
.seo-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    color: #0F172A;
    margin: 32px 0 12px;
    line-height: 1.3;
    font-weight: 800;
}
.seo-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 19px;
    color: #6C3CE1;
    margin: 24px 0 10px;
    font-weight: 700;
}
.seo-content p {
    margin-bottom: 14px;
}
.seo-content ul {
    padding-left: 22px;
    margin: 10px 0 20px;
}
.seo-content li {
    margin-bottom: 8px;
}
.seo-content strong {
    color: #0F172A;
}

/* ─── STICKY BOTTOM BAR ─── */
.tg-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, #FF3B3B, #FF6B35);
    color: #fff;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    z-index: 998;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}
.tg-sticky-bar.visible {
    transform: translateY(0);
}
.tg-sticky-bar__info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.tg-sticky-bar__pulse {
    width: 8px;
    height: 8px;
    background: #00E676;
    border-radius: 50%;
    animation: tgPulse 1s infinite;
    flex-shrink: 0;
}
.tg-sticky-bar__text {
    font-size: 12px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tg-sticky-bar__text strong {
    color: #FFD700;
    font-weight: 800;
}
.tg-sticky-bar__btn {
    background: #fff;
    color: #FF3B3B !important;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}
body.has-sticky-tg-bar {
    padding-bottom: 60px;
}

/* ─── BOTTOM DRAWER ─── */
.tg-drawer {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.2);
    transition: bottom 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1001;
    padding: 24px 20px;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}
.tg-drawer.show {
    bottom: 0;
}
.tg-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
}
.tg-drawer-overlay.show {
    opacity: 1;
    visibility: visible;
}
.tg-drawer__close {
    position: absolute;
    right: 16px;
    top: 8px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: #64748B;
    cursor: pointer;
    width: 36px;
    height: 36px;
    line-height: 1;
    padding: 0;
}
.tg-drawer__icon {
    font-size: 36px;
    margin-bottom: 8px;
}
.tg-drawer__title {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #0F172A;
    margin: 4px 0 6px;
}
.tg-drawer__desc {
    font-size: 13px;
    color: #64748B;
    margin-bottom: 16px;
}
.tg-drawer__btn {
    display: block;
    background: linear-gradient(135deg, #229ED9, #1E88C7);
    color: #fff !important;
    padding: 14px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 6px 20px rgba(34, 158, 217, 0.35);
}
.tg-drawer__miss {
    display: block;
    width: 100%;
    background: transparent;
    border: none;
    color: #94A3B8;
    font-size: 12px;
    padding: 12px 0 0;
    cursor: pointer;
    text-decoration: underline;
    font-family: inherit;
}

/* ─── EXIT INTENT OVERLAY ─── */
.exit-intent {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    animation: fadeInOverlay 0.3s ease;
}
.exit-intent.show {
    display: flex;
}
@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}
.exit-intent__box {
    background: #fff;
    border-radius: 20px;
    padding: 32px 24px;
    max-width: 380px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideInBox 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes slideInBox {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.exit-intent__icon {
    font-size: 48px;
    margin-bottom: 8px;
}
.exit-intent__title {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #0F172A;
    margin: 8px 0;
}
.exit-intent__desc {
    font-size: 14px;
    color: #475569;
    margin-bottom: 20px;
    line-height: 1.5;
}
.exit-intent__btn {
    display: block;
    background: linear-gradient(135deg, #229ED9, #1E88C7);
    color: #fff !important;
    padding: 14px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 12px;
}
.exit-intent__close {
    background: transparent;
    border: none;
    color: #94A3B8;
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
    font-family: inherit;
}

/* ─── MOBILE OPTIMIZATIONS ─── */
@media (max-width: 640px) {
    .sale-countdown-bar {
        font-size: 12px;
        padding: 7px 10px;
    }
    .sale-countdown-bar__text strong {
        font-size: 13px;
    }
    .deal-card__title {
        font-size: 13px;
    }
    .deal-card__price {
        font-size: 18px;
    }
    .deal-card__image {
        width: 80px;
        height: 80px;
    }
    .live-ticker__item {
        font-size: 12px;
    }
    .tg-sticky-bar__text {
        font-size: 11px;
    }
    .tg-sticky-bar__btn {
        padding: 7px 12px;
        font-size: 12px;
    }
    .seo-content h2 {
        font-size: 20px;
    }
    .seo-content h3 {
        font-size: 17px;
    }
}