/* ==========================================================================
   SINGLE COUPON PAGE (.fp-cpg-)
   ========================================================================== */

/* 1. Base Container & Hero */
.fp-cpg-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 16px 120px; /* Space for sticky bar */
    font-family: var(--fp-font, 'Inter', sans-serif);
    color: var(--fp-text-main, #111827);
    background: #fafafa;
}

.fp-cpg-breadcrumb {
    font-size: var(--fp-text-base);
    color: var(--fp-text-muted, #6b7280);
    margin-bottom: 24px;
}
.fp-cpg-breadcrumb ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.fp-cpg-breadcrumb li {
    display: flex;
    align-items: center;
    gap: 8px;
}
.fp-cpg-breadcrumb li:not(:last-child)::after {
    content: '/';
    color: #d1d5db;
}
.fp-cpg-breadcrumb a {
    color: inherit;
    text-decoration: none;
}
.fp-cpg-breadcrumb a:hover {
    color: var(--fp-primary, #FACC15);
}
.fp-cpg-breadcrumb [aria-current="page"] {
    font-weight: 600;
    color: var(--fp-text-main, #111827);
}

.fp-cpg-hero {
    background: #fff;
    border-radius: var(--fp-radius-20);
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.fp-cpg-hero-mesh {
    position: absolute;
    inset: -2px;
    z-index: -1;
    background:
        radial-gradient(60% 80% at 0% 0%, rgba(94,87,230,0.08) 0%, transparent 60%),
        radial-gradient(50% 70% at 100% 0%, rgba(250,204,21,0.10) 0%, transparent 60%),
        radial-gradient(70% 70% at 50% 100%, rgba(16,185,129,0.05) 0%, transparent 60%);
    pointer-events: none;
}
.fp-cpg-hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}
.fp-cpg-hero-logo {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: var(--fp-radius-lg);
    border: 1px solid #e5e7eb;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.fp-cpg-hero-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.fp-cpg-hero-badge {
    position: absolute;
    bottom: -10px;
    background: var(--fp-secondary, #5E57E6);
    color: #fff;
    font-size: var(--fp-text-sm);
    font-weight: 800;
    padding: 4px 10px;
    border-radius: var(--fp-radius-20);
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    border: 2px solid #fff;
}
.fp-cpg-tag {
    display: inline-block;
    background: #fef3c7;
    color: #b45309;
    font-size: var(--fp-text-sm);
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--fp-radius-sm);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.fp-cpg-title {
    font-size: var(--fp-text-2xl);
    font-weight: 900;
    line-height: 1.3;
    margin: 0 0 12px;
}
.fp-cpg-desc {
    font-size: var(--fp-text-md);
    color: #4b5563;
    margin: 0;
    line-height: 1.5;
}

@media (min-width: 768px) {
    .fp-cpg-hero-inner {
        flex-direction: row;
        text-align: left;
        gap: 24px;
    }
    .fp-cpg-title {
        font-size: var(--fp-text-3xl2);
    }
}

/* 2. Main CTA: Smart Code Reveal */
.fp-cpg-cta-section {
    margin-bottom: 32px;
}
.fp-cpg-reveal-box {
    background: #ffffff;
    /* Coupon ticket cutouts using radial-gradient */
    background-image: radial-gradient(circle at 0 50%, #fafafa 12px, transparent 13px),
                      radial-gradient(circle at 100% 50%, #fafafa 12px, transparent 13px);
    background-size: 51% 100%;
    background-position: left, right;
    background-repeat: no-repeat;
    border: none;
    border-radius: var(--fp-radius-lg);
    padding: 40px 24px;
    text-align: center;
    position: relative;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.06));
    transition: all 0.3s ease;
}
.fp-cpg-reveal-box::before {
    content: '';
    position: absolute;
    inset: 12px;
    border: 2px dashed #e5e7eb;
    border-radius: var(--fp-radius-md);
    pointer-events: none;
}
.fp-cpg-reveal-box:hover {
    filter: drop-shadow(0 12px 32px rgba(94, 87, 230, 0.1));
    transform: translateY(-2px);
}
.fp-cpg-reveal-box:hover::before {
    border-color: var(--fp-primary, #FACC15);
}
.fp-cpg-reveal-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: var(--fp-text-base);
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 20px;
}
.fp-cpg-reveal-pulse {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: var(--fp-radius-circle);
    animation: fpPulse 2s infinite;
}
@keyframes fpPulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.fp-cpg-reveal-btn {
    width: 100%;
    max-width: 320px;
    margin: 0 auto 24px;
    background: var(--fp-primary, #FACC15);
    color: #111827;
    border: none;
    padding: 16px 24px;
    border-radius: var(--fp-radius-lg);
    font-size: var(--fp-text-lg2);
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(250,204,21,0.3);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.fp-cpg-reveal-btn:active {
    transform: scale(0.96);
}
.fp-cpg-reveal-hidden-code {
    background: rgba(0,0,0,0.1);
    padding: 4px 12px;
    border-radius: var(--fp-radius-sm);
    font-family: var(--fp-font-mono, monospace);
    letter-spacing: 2px;
}

/* Revealed State */
.fp-cpg-reveal-btn.fp-revealed {
    background: #fff;
    border: 2px solid #10b981;
    color: #111827;
    box-shadow: 0 8px 25px rgba(16,185,129,0.2);
}
.fp-cpg-code-value {
    font-family: var(--fp-font-mono, monospace);
    letter-spacing: 3px;
    font-size: var(--fp-text-xl2);
}
.fp-cpg-copy-icon {
    color: #10b981;
}

.fp-cpg-reveal-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: var(--fp-text-base);
    font-weight: 600;
    color: #6b7280;
}
.fp-cpg-stat {
    display: flex;
    align-items: center;
    gap: 6px;
}
.fp-cpg-stat-green {
    color: #10b981;
}

/* 3. Flash Verified Panel */
.fp-cpg-verified-panel {
    margin-bottom: 32px;
}
.fp-cpg-vcard {
    background: #fff;
    border-radius: var(--fp-radius-20);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.fp-cpg-vcard-score {
    display: flex;
    align-items: center;
    gap: 16px;
}
.fp-cpg-vcard-score-txt {
    display: flex;
    flex-direction: column;
}
.fp-cpg-vcard-score-txt strong {
    font-size: var(--fp-text-lg);
    font-weight: 800;
}
.fp-cpg-vcard-score-txt span {
    font-size: var(--fp-text-base);
    color: #10b981;
    font-weight: 600;
}
.fp-cpg-vcard-divider {
    height: 1px;
    background: #f3f4f6;
}
.fp-cpg-vcard-ai {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.fp-cpg-ai-badge {
    background: linear-gradient(135deg, #111827, #374151);
    color: #ffffff;
    font-size: var(--fp-text-sm);
    font-weight: 800;
    padding: 6px 12px;
    border-radius: var(--fp-radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.fp-cpg-ai-badge svg {
    stroke: #ffffff;
}
.fp-cpg-vcard-users {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: var(--fp-text-base);
    color: #6b7280;
    font-weight: 500;
}
.fp-cpg-avatars {
    display: flex;
}
.fp-cpg-avatar {
    width: 28px;
    height: 28px;
    border-radius: var(--fp-radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fp-text-sm);
    font-weight: 800;
    border: 2px solid #fff;
    margin-left: -8px;
}
.fp-cpg-avatar:first-child { margin-left: 0; }

@media (min-width: 768px) {
    .fp-cpg-vcard {
        flex-direction: row;
        align-items: center;
    }
    .fp-cpg-vcard-divider {
        width: 1px;
        height: 40px;
    }
    .fp-cpg-vcard-ai {
        flex: 1;
    }
}

/* 4. Common Section Styling */
.fp-cpg-section {
    background: #fff;
    border-radius: var(--fp-radius-20);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.fp-cpg-h2 {
    font-size: var(--fp-text-xl);
    font-weight: 800;
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.fp-cpg-h3 {
    font-size: var(--fp-text-lg);
    font-weight: 700;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Savings Intelligence */
.fp-cpg-stack-guide {
    background: #f8fafc;
    border-radius: var(--fp-radius-lg);
    padding: 20px;
    margin-bottom: 20px;
}
.fp-cpg-stack-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.fp-cpg-stack-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: var(--fp-text-md);
    line-height: 1.5;
}
.fp-cpg-step-num {
    width: 24px;
    height: 24px;
    background: #e2e8f0;
    border-radius: var(--fp-radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fp-text-sm);
    font-weight: 800;
    flex-shrink: 0;
}
.fp-cpg-inline-code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: var(--fp-radius-xs);
    font-family: var(--fp-font-mono, monospace);
    font-weight: 700;
    color: #0f172a;
}

.fp-cpg-simulator {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: var(--fp-radius-lg);
    padding: 20px;
}
.fp-cpg-sim-input-row {
    margin-bottom: 20px;
}
.fp-cpg-sim-input-row label {
    display: block;
    font-size: var(--fp-text-base);
    font-weight: 700;
    color: #4b5563;
    margin-bottom: 8px;
}
.fp-cpg-sim-input-wrap {
    display: flex;
    align-items: center;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: var(--fp-radius-md);
    overflow: hidden;
    transition: border-color 0.2s;
}
.fp-cpg-sim-input-wrap:focus-within {
    border-color: var(--fp-secondary, #5E57E6);
}
.fp-cpg-sim-currency {
    padding: 12px 16px;
    color: #6b7280;
    font-weight: 700;
    background: #f3f4f6;
}
.fp-cpg-sim-input-wrap input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px;
    font-size: var(--fp-text-lg);
    font-weight: 800;
    outline: none;
}

.fp-cpg-sim-breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.fp-cpg-sim-row {
    display: flex;
    justify-content: space-between;
    font-size: var(--fp-text-md);
    color: #4b5563;
}
.fp-cpg-sim-minus { color: #ef4444; font-weight: 600; }
.fp-cpg-sim-cb { color: #10b981; font-weight: 600; }
.fp-cpg-sim-total {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 2px dashed #e5e7eb;
    font-size: var(--fp-text-lg);
    font-weight: 900;
    color: #111827;
}

/* Coupon Details & Terms */
.fp-cpg-terms-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
.fp-cpg-terms-list li {
    font-size: var(--fp-text-md);
    padding: 14px 16px;
    background: #f8fafc;
    border-radius: var(--fp-radius-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #f1f5f9;
}
.fp-cpg-terms-list li strong {
    font-weight: 700;
    color: #475569;
    font-size: var(--fp-text-base);
}
.fp-cpg-terms-list li span {
    color: #0f172a;
    font-weight: 600;
    text-align: right;
}
@media (min-width: 640px) {
    .fp-cpg-terms-list { grid-template-columns: 1fr 1fr; }
}

/* User Interaction */
.fp-cpg-vote-panel {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}
.fp-cpg-vote-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border: 2px solid #e5e7eb;
    border-radius: var(--fp-radius-md);
    background: #fff;
    font-size: var(--fp-text-md);
    font-weight: 700;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s;
}
.fp-cpg-vote-btn:hover { background: #f9fafb; }
.fp-cpg-vote-btn.active.fp-cpg-vote-yes { border-color: #10b981; color: #10b981; background: #f0fdf4; }
.fp-cpg-vote-btn.active.fp-cpg-vote-no { border-color: #ef4444; color: #ef4444; background: #fef2f2; }

.fp-cpg-share-panel {
    background: linear-gradient(135deg, #fffef5 0%, #ffffff 40%, #f0fdf4 100%);
    border-radius: var(--fp-radius-18);
    border: 1.5px solid #fde68a;
    padding: 24px;
    position: relative;
    overflow: hidden;
    margin-top: 20px;
}
.fp-cpg-share-panel::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(250,204,21,0.15) 0%, transparent 70%);
    pointer-events: none;
}
.fp-cpg-share-panel::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(34,197,94,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.fp-cpg-share-panel .fp-cpg-h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: var(--fp-text-lg);
    font-weight: 900;
    color: #111827;
    margin: 0 0 6px;
    position: relative;
    z-index: 1;
}
.fp-cpg-share-icon-wrap {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: var(--fp-radius-md);
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}
.fp-cpg-share-desc {
    font-size: var(--fp-text-base);
    color: #4b5563;
    font-weight: 600;
    margin: 0 0 20px;
    line-height: 1.4;
    position: relative;
    z-index: 1;
}
.fp-cpg-share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    position: relative;
    z-index: 1;
}
.fp-cpg-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 18px;
    border-radius: var(--fp-radius-md);
    font-size: var(--fp-text-base);
    font-weight: 800;
    border: none;
    cursor: pointer;
    color: #fff;
    flex: 1;
    min-width: 120px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.fp-cpg-share-btn:hover {
    transform: translateY(-2px);
}
.fp-cpg-share-wa { background: #25D366; box-shadow: 0 4px 12px rgba(37,211,102,0.2); }
.fp-cpg-share-wa:hover { box-shadow: 0 6px 16px rgba(37,211,102,0.3); }
.fp-cpg-share-tg { background: #0088cc; box-shadow: 0 4px 12px rgba(0,136,204,0.2); }
.fp-cpg-share-tg:hover { box-shadow: 0 6px 16px rgba(0,136,204,0.3); }
.fp-cpg-share-copy { background: #ffffff; color: #475569; border: 1px solid #cbd5e1; box-shadow: 0 4px 12px rgba(0,0,0,0.03); }
.fp-cpg-share-copy:hover { background: #f8fafc; box-shadow: 0 6px 16px rgba(0,0,0,0.05); }

/* FAQ List */
.fp-cpg-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.fp-cpg-faq-item {
    background: #f8fafc;
    border-radius: var(--fp-radius-md);
    overflow: hidden;
}
.fp-cpg-faq-item summary {
    padding: 16px;
    font-size: var(--fp-text-md);
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 40px;
}
.fp-cpg-faq-item summary::-webkit-details-marker { display: none; }
.fp-cpg-faq-item summary::after {
    content: '+';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: var(--fp-text-lg2);
    color: #6b7280;
}
.fp-cpg-faq-item[open] summary::after { content: '−'; }
.fp-cpg-faq-answer {
    padding: 0 16px 16px;
    font-size: var(--fp-text-md);
    line-height: 1.6;
    color: #4b5563;
}

/* Sticky Bottom Bar */
.fp-cpg-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 16px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    z-index: 90;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.fp-cpg-sticky-bar.visible {
    transform: translateY(0);
}
.fp-cpg-sticky-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.fp-cpg-sticky-code {
    display: flex;
    flex-direction: column;
}
.fp-cpg-sticky-label {
    font-size: var(--fp-text-sm);
    color: #6b7280;
    font-weight: 700;
    text-transform: uppercase;
}
.fp-cpg-sticky-val {
    font-family: var(--fp-font-mono, monospace);
    font-size: var(--fp-text-lg2);
    font-weight: 900;
    letter-spacing: 1px;
}
.fp-cpg-sticky-btn {
    background: var(--fp-primary, #FACC15);
    color: #111827;
    border: none;
    padding: 14px 24px;
    border-radius: var(--fp-radius-md);
    font-size: var(--fp-text-md);
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
}
@media (min-width: 768px) {
    .fp-cpg-sticky-bar { display: none; }
}

/* 5. Trending Deals (Coupon Page Custom) */
.fp-cpg-trending-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.fp-cpg-view-all {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--fp-text-base);
    font-weight: 800;
    color: var(--fp-secondary, #5E57E6);
    text-decoration: none;
    padding: 6px 16px;
    background: #f5f3ff;
    border-radius: var(--fp-radius-pill);
    transition: all 0.25s ease;
    border: 1px solid transparent;
}
.fp-cpg-view-all:hover {
    background: #ede9fe;
    color: #4338ca;
    border-color: #ddd6fe;
    transform: translateX(2px);
}
.fp-cpg-trending-grid {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 12px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    cursor: grab;
}
.fp-cpg-trending-grid:active {
    cursor: grabbing;
}
.fp-cpg-trending-grid::-webkit-scrollbar {
    display: none;
}
.fp-cpg-tcard {
    flex: 0 0 42vw; /* Shows 2 and peeks 3rd on mobile */
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: var(--fp-radius-14);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    scroll-snap-align: start;
    position: relative;
}
@media (min-width: 768px) {
    .fp-cpg-tcard {
        flex: 0 0 calc(33.333% - 8px); /* Shows exactly 3 on desktop */
    }
}
.fp-cpg-tcard:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    border-color: #e2e8f0;
}
.fp-cpg-tcard-img {
    position: relative;
    width: 100%;
    height: 110px; /* Much more compact */
    background: #fff; /* Updated to white */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
}
.fp-cpg-slider-wrap {
    position: relative;
}
.fp-cpg-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--fp-radius-circle);
    display: none; /* hidden on mobile */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 10;
    color: #0f172a;
    transition: all 0.2s;
}
@media (min-width: 768px) {
    .fp-cpg-slider-btn { display: flex; }
}
.fp-cpg-slider-btn:hover {
    background: #f8fafc;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}
.fp-cpg-slider-btn.prev { left: 8px; }
.fp-cpg-slider-btn.next { right: 8px; }
.fp-cpg-tcard-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform 0.3s ease;
}
.fp-cpg-tcard:hover .fp-cpg-tcard-img img {
    transform: scale(1.08);
}
.fp-cpg-tcard-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ef4444; /* Vibrant red */
    color: #fff;
    font-size: var(--fp-text-xs);
    font-weight: 900;
    padding: 3px 8px;
    border-radius: var(--fp-radius-pill);
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
    z-index: 2;
}
.fp-cpg-tcard-flame {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #fff;
    border-radius: var(--fp-radius-circle);
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fp-text-sm);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    z-index: 2;
}
.fp-cpg-tcard-body {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
    background: #fff;
}
.fp-cpg-tcard-title {
    font-size: var(--fp-text-base);
    font-weight: 800;
    margin: 0 0 6px;
    color: #0f172a;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.fp-cpg-tcard-prices {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 12px;
    margin-top: auto;
}
.fp-cpg-tcard-price {
    font-size: var(--fp-text-lg);
    font-weight: 900;
    color: #10b981; /* Vibrant green */
    letter-spacing: -0.5px;
}
.fp-cpg-tcard-old {
    font-size: var(--fp-text-sm);
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 700;
}
.fp-cpg-tcard-cta {
    font-size: var(--fp-text-base);
    font-weight: 800;
    color: #0f172a;
    background: linear-gradient(135deg, #fde047, #facc15);
    padding: 8px;
    text-align: center;
    border-radius: var(--fp-radius-sm);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.fp-cpg-tcard:hover .fp-cpg-tcard-cta {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(250, 204, 21, 0.3);
}

/* ==========================================================================
   COUPON PAGE — V2 BILLION-DOLLAR ADDITIONS
   Urgency ticker, hero polish, reveal FX, How-to, Bento intel,
   Alternatives, Store card + Bank pair, MFS, Recently viewed, Toast
   ========================================================================== */

/* ───────── 1. Live Urgency Ticker ───────── */
.fp-cpg-urgency {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    border-radius: var(--fp-radius-14);
    padding: 10px 14px;
    margin-bottom: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
}
.fp-cpg-urg-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 5px 10px;
    border-radius: var(--fp-radius-pill);
    font-size: var(--fp-text-sm2);
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    backdrop-filter: blur(8px);
}
.fp-cpg-urg-live { color: #fff; }
.fp-cpg-urg-live strong { color: #4ade80; font-weight: 800; }
.fp-cpg-urg-dot {
    width: 7px;
    height: 7px;
    border-radius: var(--fp-radius-circle);
    background: #4ade80;
    box-shadow: 0 0 0 0 rgba(74,222,128,0.7);
    animation: fpUrgPulse 1.6s infinite;
}
@keyframes fpUrgPulse {
    0%   { box-shadow: 0 0 0 0 rgba(74,222,128,0.7); }
    70%  { box-shadow: 0 0 0 8px rgba(74,222,128,0); }
    100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}
.fp-cpg-urg-timer { color: #fde68a; }
.fp-cpg-urg-timer svg { color: #fbbf24; }
.fp-cpg-urg-track {
    flex: 1;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.fp-cpg-urg-marquee {
    display: inline-flex;
    gap: 32px;
    animation: fpUrgScroll 28s linear infinite;
    white-space: nowrap;
    padding-left: 100%;
}
.fp-cpg-urg-item {
    font-size: var(--fp-text-base);
    font-weight: 500;
    color: rgba(255,255,255,0.85);
}
.fp-cpg-urg-item strong { color: #fff; font-weight: 700; }
@keyframes fpUrgScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
@media (max-width: 640px) {
    .fp-cpg-urg-pill { font-size: var(--fp-text-sm); padding: 4px 9px; }
    .fp-cpg-urg-item { font-size: var(--fp-text-sm2); }
}

/* ───────── 2. Hero — tag row, save button ───────── */
.fp-cpg-hero-tagrow {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: 12px;
}
@media (min-width: 768px) {
    .fp-cpg-hero-tagrow { justify-content: flex-start; }
}
.fp-cpg-tag-exclusive {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 0 !important;
}
.fp-cpg-tag-type {
    background: #ede9fe;
    color: #5b21b6;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 0 !important;
}
.fp-cpg-hero-badge {
    box-shadow: 0 6px 18px rgba(94, 87, 230, 0.35);
    animation: fpBadgeGlow 2.4s ease-in-out infinite;
}
@keyframes fpBadgeGlow {
    0%, 100% { box-shadow: 0 6px 18px rgba(94, 87, 230, 0.35); }
    50%      { box-shadow: 0 6px 24px rgba(94, 87, 230, 0.55); }
}
.fp-cpg-save-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    padding: 8px 14px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    color: #475569;
    border-radius: var(--fp-radius-pill);
    font-size: var(--fp-text-base);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.fp-cpg-save-btn:hover { border-color: #FACC15; color: #111827; }
.fp-cpg-save-btn.saved {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
}
.fp-cpg-save-btn.saved .fp-cpg-save-ic { fill: #f59e0b; stroke: #f59e0b; }

/* ───────── 3. Reveal — anticipation glow + overlay + confetti ───────── */
.fp-cpg-reveal-wrap {
    position: relative;
    border-radius: var(--fp-radius-26);
    padding: 2px;
}
.fp-cpg-reveal-glow {
    display: none;
}
.fp-cpg-reveal-box {
    position: relative;
    z-index: 1;
}
.fp-cpg-reveal-btn {
    background: linear-gradient(135deg, #FACC15 0%, #fbbf24 100%);
    box-shadow: 0 8px 24px rgba(250, 204, 21, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}
.fp-cpg-reveal-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.5) 50%, transparent 70%);
    transform: translateX(-100%);
    animation: fpShimmer 3s ease-in-out infinite;
}
@keyframes fpShimmer {
    to { transform: translateX(100%); }
}
.fp-cpg-reveal-btn:hover { transform: translateY(-1px); }
.fp-cpg-reveal-btn.fp-revealed::before { display: none; }

/* Cashback activation overlay */
.fp-cpg-cb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: var(--fp-radius-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 32px 24px;
    opacity: 0;
    transform: scale(0.96);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 5;
    border: 2px solid #10b981;
}
.fp-cpg-cb-overlay.visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}
.fp-cpg-cb-tick {
    width: 56px;
    height: 56px;
    border-radius: var(--fp-radius-circle);
    background: #10b981;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
    animation: fpTickPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes fpTickPop {
    0%   { transform: scale(0) rotate(-45deg); }
    100% { transform: scale(1) rotate(0); }
}
.fp-cpg-cb-txt { text-align: center; }
.fp-cpg-cb-txt strong {
    display: block;
    font-size: var(--fp-text-lg);
    font-weight: 800;
    color: #065f46;
}
.fp-cpg-cb-txt span {
    font-size: var(--fp-text-base);
    color: #047857;
}
.fp-cpg-cb-redirect {
    width: 100%;
    max-width: 280px;
    text-align: center;
}
.fp-cpg-cb-redirect-txt {
    font-size: var(--fp-text-base);
    font-weight: 600;
    color: #065f46;
    display: block;
    margin-bottom: 6px;
}
.fp-cpg-cb-redirect-bar {
    height: 4px;
    background: rgba(16, 185, 129, 0.2);
    border-radius: var(--fp-radius-pill);
    overflow: hidden;
}
.fp-cpg-cb-redirect-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #10b981, #059669);
    border-radius: var(--fp-radius-pill);
}

/* Confetti */
.fp-cpg-confetti {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    border-radius: var(--fp-radius-xl);
    z-index: 4;
}
.fp-cpg-confetti-piece {
    position: absolute;
    top: -10px;
    width: 8px;
    height: 12px;
    border-radius: var(--fp-radius-1);
    animation: fpConfettiFall linear forwards;
}
@keyframes fpConfettiFall {
    0%   { transform: translateY(-20px) rotate(0); opacity: 1; }
    100% { transform: translateY(420px) rotate(720deg); opacity: 0; }
}

/* ───────── 4. AI Pill + How-to-Apply 4-step ───────── */
.fp-cpg-ai-pill {
    background: linear-gradient(135deg, #5E57E6, #8b5cf6);
    color: #fff;
    font-size: var(--fp-text-xs);
    font-weight: 800;
    padding: 3px 8px;
    border-radius: var(--fp-radius-6);
    display: inline-flex;
    align-items: center;
    gap: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(94, 87, 230, 0.3);
}
.fp-cpg-howto {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    counter-reset: howto;
}

.fp-cpg-howto-step {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 10px 14px;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    border-radius: var(--fp-radius-md);
    border: 1px solid #f0f0f0;
    position: relative;
    transition: all 0.3s ease;
}

.fp-cpg-howto-step:hover {
    transform: translateX(4px);
    border-color: #FACC15;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.fp-cpg-howto-num {
    width: 28px;
    height: 28px;
    border-radius: var(--fp-radius-circle);
    background: linear-gradient(135deg, #5E57E6, #8b5cf6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: var(--fp-text-base);
    box-shadow: 0 3px 10px rgba(94, 87, 230, 0.3);
}

.fp-cpg-howto-body { 
    display: flex; 
    flex-direction: column; 
    gap: 0;
}
.fp-cpg-howto-body strong {
    font-size: var(--fp-text-md);
    font-weight: 800;
    color: #111827;
}
.fp-cpg-howto-body span {
    font-size: var(--fp-text-sm);
    color: #6b7280;
    line-height: 1.3;
}

.fp-cpg-howto-ic {
    width: 30px;
    height: 30px;
    border-radius: var(--fp-radius-sm);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5E57E6;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.fp-cpg-howto-ic svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 480px) {
    .fp-cpg-howto-step { grid-template-columns: 24px 1fr; padding: 10px 12px; gap: 10px; }
    .fp-cpg-howto-num { width: 24px; height: 24px; font-size: var(--fp-text-base); }
    .fp-cpg-howto-ic { display: none; }
}

/* ───────── 5. Savings Intelligence Bento Grid ───────── */
.fp-cpg-section-sub {
    font-size: var(--fp-text-base);
    color: #6b7280;
    margin: -12px 0 16px;
}
.fp-cpg-intel-bumper {
    background: linear-gradient(135deg, #f3e8ff, #e0e7ff);
    color: #5E57E6;
    font-size: var(--fp-text-xs);
    font-weight: 800;
    padding: 3px 8px;
    border-radius: var(--fp-radius-6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: auto;
}
.fp-cpg-bento {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
@media (min-width: 720px) {
    .fp-cpg-bento {
        grid-template-columns: 1.1fr 1fr;
        grid-template-rows: auto auto;
    }
    .fp-cpg-bento-stack { grid-column: 1; grid-row: 1; }
    .fp-cpg-bento-sim { grid-column: 2; grid-row: 1 / 3; }
    .fp-cpg-bento-history { grid-column: 1; grid-row: 2; }
}
.fp-cpg-bento-cell {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: var(--fp-radius-lg);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: all 0.3s ease;
}
.fp-cpg-bento-cell:hover {
    border-color: #e2e8f0;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}
.fp-cpg-bento-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.fp-cpg-bento-head h3 {
    font-size: var(--fp-text-md);
    font-weight: 800;
    margin: 0;
    color: #111827;
}
.fp-cpg-bento-ic {
    width: 32px;
    height: 32px;
    border-radius: var(--fp-radius-10);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.fp-cpg-bento-meta {
    margin-left: auto;
    font-size: var(--fp-text-base);
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 4px;
}
.fp-cpg-bento-meta strong { color: #10b981; font-weight: 900; font-size: var(--fp-text-lg); }
/* Stack list inside bento */
.fp-cpg-bento-stack .fp-cpg-stack-list { gap: 10px; }
.fp-cpg-bento-stack .fp-cpg-stack-list li { font-size: var(--fp-text-base); }
/* Simulator polish */
.fp-cpg-bento-sim .fp-cpg-sim-input-wrap { margin-bottom: 14px; }
.fp-cpg-bento-sim .fp-cpg-sim-row { font-size: var(--fp-text-base); }
/* History chart cell */
.fp-cpg-history-insight {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-radius: var(--fp-radius-md);
}
.fp-cpg-history-insight strong {
    font-size: var(--fp-text-lg);
    font-weight: 900;
    color: #15803d;
    flex-shrink: 0;
}
.fp-cpg-history-insight span {
    font-size: var(--fp-text-base);
    color: #166534;
    line-height: 1.4;
}
.fp-cpg-spark {
    background: #fafafa;
    border-radius: var(--fp-radius-10);
    padding: 10px;
}
.fp-cpg-spark svg {
    width: 100%;
    height: 70px;
    display: block;
}
.fp-cpg-spark-axis {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    font-size: var(--fp-text-sm);
    font-weight: 700;
    color: #6b7280;
}
.fp-cpg-spark-axis span:last-child { color: #10b981; }
.fp-cpg-history-pred {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: var(--fp-text-base);
    color: #f3f4f6;
    padding: 10px 14px;
    background: linear-gradient(135deg, #111827, #374151);
    border: 2px solid #ffffff;
    border-radius: var(--fp-radius-md);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12), inset 0 2px 4px rgba(255,255,255,0.05);
    margin-top: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fp-cpg-history-pred strong { color: #a78bfa; font-weight: 800; }
.fp-cpg-history-pred svg { color: #a78bfa; flex-shrink: 0; }
@media (max-width: 480px) {
    .fp-cpg-history-pred { font-size: var(--fp-text-sm); padding: 8px 10px; }
}

/* ───────── 6. Alternative Coupons Comparison ───────── */
.fp-cpg-alt-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.fp-cpg-alt-row {
    display: grid;
    grid-template-columns: 32px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    background: #fafafa;
    border: 1px solid #f1f5f9;
    border-radius: var(--fp-radius-14);
    transition: all 0.25s ease;
    cursor: pointer;
}
.fp-cpg-alt-row:hover {
    background: #fff;
    border-color: #e2e8f0;
    transform: translateX(2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
.fp-cpg-alt-current {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border-color: #fde68a;
}
.fp-cpg-alt-current:hover {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-color: #fbbf24;
}
.fp-cpg-alt-rank {
    width: 32px;
    height: 32px;
    border-radius: var(--fp-radius-circle);
    background: #e2e8f0;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: var(--fp-text-base);
    flex-shrink: 0;
}
.fp-cpg-alt-current .fp-cpg-alt-rank {
    background: linear-gradient(135deg, #FACC15, #f59e0b);
    color: #fff;
    box-shadow: 0 4px 10px rgba(250, 204, 21, 0.4);
}
.fp-cpg-alt-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.fp-cpg-alt-code-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.fp-cpg-alt-code {
    position: relative;
    font-family: var(--fp-font-mono, monospace);
    font-size: var(--fp-text-base);
    font-weight: 800;
    background: #fff;
    padding: 3px 8px;
    border-radius: var(--fp-radius-6);
    border: 1px dashed #cbd5e1;
    color: #0f172a;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    overflow: hidden;
}
.fp-cpg-alt-row:not(.fp-cpg-alt-current) .fp-cpg-alt-code {
    padding-right: 44px; /* Space for the SHOW badge */
}
.fp-cpg-alt-row:not(.fp-cpg-alt-current) .fp-cpg-alt-code::after {
    content: 'SHOW';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    background: #f1f5f9;
    color: #64748b;
    font-size: var(--fp-text-xs);
    font-weight: 900;
    font-family: var(--fp-font-sans, sans-serif);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border-left: 1px dashed #cbd5e1;
    letter-spacing: 0;
    transition: all 0.2s;
}
.fp-cpg-alt-row:hover:not(.fp-cpg-alt-current) .fp-cpg-alt-code::after {
    background: #111827;
    color: #ffffff;
    border-left-color: #111827;
}

.fp-cpg-alt-current .fp-cpg-alt-code {
    background: #fff;
    border-color: #f59e0b;
}
.fp-cpg-alt-current-tag,
.fp-cpg-alt-tag-new,
.fp-cpg-alt-tag-bank,
.fp-cpg-alt-tag-prime {
    font-size: var(--fp-text-xs);
    font-weight: 800;
    padding: 2px 7px;
    border-radius: var(--fp-radius-5);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.fp-cpg-alt-current-tag { background: #fbbf24; color: #fff; }
.fp-cpg-alt-tag-new { background: #ddd6fe; color: #5b21b6; }
.fp-cpg-alt-tag-bank { background: #fed7aa; color: #9a3412; }
.fp-cpg-alt-tag-prime { background: #cffafe; color: #155e75; }
.fp-cpg-alt-desc {
    font-size: var(--fp-text-base);
    color: #6b7280;
    line-height: 1.4;
}
.fp-cpg-alt-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}
.fp-cpg-alt-bar {
    width: 70px;
    height: 4px;
    background: #e2e8f0;
    border-radius: var(--fp-radius-pill);
    overflow: hidden;
}
.fp-cpg-alt-bar > div {
    height: 100%;
    border-radius: var(--fp-radius-pill);
    transition: width 0.6s ease;
}
.fp-cpg-alt-rate {
    font-size: var(--fp-text-sm);
    font-weight: 800;
    color: #475569;
}
.fp-cpg-alt-viewall {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: var(--fp-text-base);
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
    padding: 12px 20px;
    background: linear-gradient(135deg, #111827, #374151);
    border-radius: var(--fp-radius-md);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15), inset 0 2px 4px rgba(255,255,255,0.05);
    border: 1px solid #4b5563;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}
.fp-cpg-alt-viewall:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 8px 20px rgba(0,0,0,0.2), inset 0 2px 4px rgba(255,255,255,0.05);
    background: linear-gradient(135deg, #1f2937, #4b5563);
}
@media (max-width: 480px) {
    .fp-cpg-alt-row { grid-template-columns: 28px 1fr auto; gap: 10px; padding: 12px; }
    .fp-cpg-alt-bar { width: 50px; }
}

/* ───────── 7. Store Quick Card + Bank Pairing ───────── */
.fp-cpg-pair-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 24px;
}
@media (min-width: 720px) {
    .fp-cpg-pair-grid { grid-template-columns: 1fr 1fr; }
}
.fp-cpg-pair-grid .fp-cpg-section { margin-bottom: 0; }

/* Store Quick Card */
.fp-cpg-storecard {
    background: linear-gradient(135deg, #fff 0%, #fafafa 100%);
    position: relative;
    overflow: hidden;
}
.fp-cpg-storecard::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 140px; height: 140px;
    background: radial-gradient(circle, rgba(250, 204, 21, 0.12) 0%, transparent 70%);
    pointer-events: none;
}
.fp-cpg-storecard-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    position: relative;
}
.fp-cpg-storecard-logo {
    width: 72px;
    height: 72px;
    border-radius: var(--fp-radius-14);
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    overflow: hidden;
}
.fp-cpg-storecard-logo img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.35); }
.fp-cpg-storecard-info { flex: 1; min-width: 0; }
.fp-cpg-storecard-info strong {
    display: block;
    font-size: var(--fp-text-md);
    font-weight: 800;
    color: #111827;
}
.fp-cpg-storecard-info span {
    font-size: var(--fp-text-base);
    color: #16a34a;
    font-weight: 700;
}
.fp-cpg-storecard-trust {
    text-align: center;
    padding: 8px 14px;
    background: #10b981;
    border-radius: var(--fp-radius-md);
    border: none;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.25);
}
.fp-cpg-storecard-trust strong {
    display: block;
    font-size: var(--fp-text-lg);
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
}
.fp-cpg-storecard-trust span {
    font-size: var(--fp-text-xs);
    font-weight: 800;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    margin-top: 2px;
    display: block;
}
.fp-cpg-storecard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}
.fp-cpg-storecard-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 6px;
    background: #fafafa;
    border-radius: var(--fp-radius-10);
    border: 1px solid #f1f5f9;
}
.fp-cpg-storecard-stat > svg { margin-bottom: 2px; }
.fp-cpg-storecard-stat strong { font-size: var(--fp-text-md); font-weight: 900; color: #111827; line-height: 1; }
.fp-cpg-storecard-stat small { font-size: var(--fp-text-sm); color: #6b7280; font-weight: 600; }
.fp-cpg-storecard-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px;
    background: linear-gradient(135deg, #FACC15, #fbbf24);
    color: #111827;
    border-radius: var(--fp-radius-md);
    text-decoration: none;
    font-size: var(--fp-text-md);
    font-weight: 800;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(250, 204, 21, 0.3);
}
.fp-cpg-storecard-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(250, 204, 21, 0.4); }

/* Bank Card Pairing */
.fp-cpg-bankpair { display: flex; flex-direction: column; }
.fp-cpg-bankpair .fp-cpg-h3 { margin-bottom: 14px; }
.fp-cpg-bank-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.fp-cpg-bank-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #fafafa;
    border-radius: var(--fp-radius-md);
    border: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}
.fp-cpg-bank-item:hover { background: #fff; border-color: #e2e8f0; transform: translateX(2px); }
.fp-cpg-bank-logo {
    width: 44px;
    height: 32px;
    border-radius: var(--fp-radius-6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: var(--fp-text-xs);
    letter-spacing: 0.5px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.fp-cpg-bank-info { flex: 1; min-width: 0; }
.fp-cpg-bank-info strong { display: block; font-size: var(--fp-text-md); font-weight: 800; color: #111827; }
.fp-cpg-bank-info span { font-size: var(--fp-text-sm); color: #6b7280; }
.fp-cpg-bank-tag {
    font-size: var(--fp-text-xs);
    font-weight: 800;
    padding: 3px 8px;
    border-radius: var(--fp-radius-5);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.fp-cpg-bank-tag-best { background: #dcfce7; color: #15803d; }

/* ───────── 8. Reminder card ───────── */
.fp-cpg-reminder {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: var(--fp-radius-14);
    border: 1px solid #bfdbfe;
    margin: 16px 0;
}
.fp-cpg-reminder-ic {
    width: 40px;
    height: 40px;
    border-radius: var(--fp-radius-md);
    background: #fff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.fp-cpg-reminder-txt { flex: 1; min-width: 0; }
.fp-cpg-reminder-txt strong { display: block; font-size: var(--fp-text-md); font-weight: 800; color: #1e40af; }
.fp-cpg-reminder-txt span { font-size: var(--fp-text-base); color: #2563eb; }
.fp-cpg-reminder-btn {
    background: #fff;
    border: 1.5px solid #2563eb;
    color: #2563eb;
    padding: 8px 14px;
    border-radius: var(--fp-radius-10);
    font-size: var(--fp-text-base);
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}
.fp-cpg-reminder-btn:hover { background: #2563eb; color: #fff; }
.fp-cpg-reminder-btn.on { background: #16a34a; border-color: #16a34a; color: #fff; }

/* ───────── 9. More From Store grid ───────── */
.fp-cpg-mfs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
@media (min-width: 540px) { .fp-cpg-mfs-grid { grid-template-columns: 1fr 1fr; } }
.fp-cpg-mfs-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px;
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: var(--fp-radius-14);
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
    position: relative;
}
.fp-cpg-mfs-card:hover {
    border-color: #5E57E6;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(94, 87, 230, 0.08);
}
.fp-cpg-mfs-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.fp-cpg-mfs-tag {
    font-size: var(--fp-text-xs);
    font-weight: 800;
    padding: 3px 8px;
    border-radius: var(--fp-radius-5);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.fp-mfs-tag-code  { background: #ede9fe; color: #5b21b6; }
.fp-mfs-tag-offer { background: #dcfce7; color: #15803d; }
.fp-mfs-tag-bank  { background: #fed7aa; color: #9a3412; }
.fp-mfs-tag-flash { background: #fee2e2; color: #b91c1c; }
.fp-cpg-mfs-rate {
    font-size: var(--fp-text-sm);
    font-weight: 700;
    color: #6b7280;
}
.fp-cpg-mfs-title {
    font-size: var(--fp-text-md);
    font-weight: 800;
    margin: 0;
    color: #111827;
    line-height: 1.35;
}
.fp-cpg-mfs-sub {
    font-size: var(--fp-text-base);
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}
.fp-cpg-mfs-cta {
    margin-top: auto;
    font-size: var(--fp-text-base);
    font-weight: 800;
    color: #5E57E6;
    padding-top: 6px;
}

/* ── Masked code row inside MFS cards ── */
.fp-cpg-mfs-code-row {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 4px 0 2px;
}
.fp-cpg-mfs-code {
    font-family: var(--fp-font-mono, monospace);
    font-size: var(--fp-text-base);
    font-weight: 800;
    background: #f8fafc;
    padding: 5px 10px;
    border-radius: var(--fp-radius-7) 0 0 7px;
    border: 1px dashed #cbd5e1;
    border-right: none;
    color: #0f172a;
    letter-spacing: 1.2px;
    display: inline-flex;
    align-items: center;
    line-height: 1;
    transition: all 0.3s ease;
}
.fp-cpg-mfs-reveal-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    background: #111827;
    color: #fff;
    font-size: var(--fp-text-xs);
    font-weight: 900;
    font-family: var(--fp-font-sans, sans-serif);
    border-radius: 0 7px 7px 0;
    border: 1px solid #111827;
    cursor: pointer;
    white-space: nowrap;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    transition: all 0.25s ease;
    line-height: 1;
}
.fp-cpg-mfs-reveal-btn:hover {
    background: #5E57E6;
    border-color: #5E57E6;
}
.fp-cpg-mfs-reveal-btn svg { flex-shrink: 0; }

/* Revealed state */
.fp-cpg-mfs-code.revealed {
    background: #f0fdf4;
    border-color: #86efac;
    border-right: 1px dashed #86efac;
    border-radius: var(--fp-radius-7);
    color: #15803d;
    letter-spacing: 0.5px;
    padding-right: 28px;
    position: relative;
}
.fp-cpg-mfs-code.revealed::after {
    content: '';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='13' height='13' rx='2'/%3E%3Cpath d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    opacity: 0.6;
}
.fp-cpg-mfs-reveal-btn.hidden { display: none; }

/* No code indicator */
.fp-cpg-mfs-nocode {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: var(--fp-text-base);
    font-weight: 700;
    color: #16a34a;
    margin: 4px 0 2px;
}
.fp-cpg-mfs-nocode svg { color: #16a34a; flex-shrink: 0; }

/* ───────── 10. Recently Viewed ───────── */
.fp-cpg-recent-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
@media (min-width: 540px) { .fp-cpg-recent-grid { grid-template-columns: 1fr 1fr; } }
.fp-cpg-recent-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #fafafa;
    border: 1px solid #f1f5f9;
    border-radius: var(--fp-radius-md);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}
.fp-cpg-recent-card:hover {
    background: #fff;
    border-color: #e2e8f0;
    transform: translateX(2px);
}
.fp-cpg-recent-card img {
    width: 32px;
    height: 32px;
    border-radius: var(--fp-radius-sm);
    background: #fff;
    padding: 3px;
    border: 1px solid #e5e7eb;
    object-fit: contain;
    flex-shrink: 0;
}
.fp-cpg-recent-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fp-cpg-recent-body strong { font-size: var(--fp-text-base); font-weight: 800; color: #111827; }
.fp-cpg-recent-body span {
    font-size: var(--fp-text-sm);
    color: #6b7280;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}
.fp-cpg-recent-card code {
    font-family: var(--fp-font-mono, monospace);
    font-size: var(--fp-text-sm);
    font-weight: 800;
    background: #fff;
    padding: 4px 8px;
    border-radius: var(--fp-radius-6);
    border: 1px dashed #cbd5e1;
    color: #0f172a;
    flex-shrink: 0;
}

/* ───────── 11. Toast ───────── */
.fp-cpg-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #111827;
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--fp-radius-pill);
    font-size: var(--fp-text-base);
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    pointer-events: none;
    white-space: nowrap;
}
.fp-cpg-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
@media (min-width: 768px) {
    .fp-cpg-toast { bottom: 32px; }
}

/* ───────── 12. Reduced motion respect ───────── */
@media (prefers-reduced-motion: reduce) {
    .fp-cpg-reveal-glow,
    .fp-cpg-reveal-btn::before,
    .fp-cpg-urg-marquee,
    .fp-cpg-hero-badge,
    .fp-cpg-urg-dot { animation: none; }
    .fp-cpg-confetti-piece { display: none; }
}

/* ==========================================================================
   COUPON PAGE — HERO REFINEMENT
   Kill mesh blob; bigger logo (matches single-fp_store);
   move CB badge to tag row using brand --fp-green;
   expandable description with "Check details" toggle.
   ========================================================================== */

/* Remove the rotating/static background gradient blobs */
.fp-cpg-hero-mesh { display: none !important; }

/* Hero shell — flat, clean */
.fp-cpg-hero {
    background: #fff;
    border: 1px solid var(--fp-border, #e5e7eb);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
    padding: 22px;
}

.fp-cpg-hero-inner {
    align-items: center;
}
@media (min-width: 768px) {
    .fp-cpg-hero-inner { align-items: flex-start; }
}

/* Logo — match single store page sizing & style */
.fp-cpg-hero-logo {
    width: 104px;
    height: 104px;
    border-radius: var(--fp-radius-22);
    background: #fff;
    border: 1.5px solid var(--fp-border, #e5e7eb);
    padding: 14px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.fp-cpg-hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
@media (min-width: 768px) {
    .fp-cpg-hero-logo {
        width: 128px;
        height: 128px;
        border-radius: var(--fp-radius-26);
        padding: 16px;
    }
}

/* Tag row — wrap nicely with new green badge */
.fp-cpg-hero-tagrow {
    gap: 8px !important;
    margin-bottom: 10px;
}

/* Cashback badge — brand green, white bold text (matches .fp-sp-cb-badge) */
.fp-cpg-cb-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--fp-green, #2ecc71);
    color: #fff;
    font-size: var(--fp-text-base);
    font-weight: 900;
    padding: 5px 12px;
    border-radius: var(--fp-radius-pill);
    letter-spacing: 0.3px;
    text-transform: none;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.32);
    white-space: nowrap;
    line-height: 1.2;
}
.fp-cpg-cb-badge svg { color: #fff; flex-shrink: 0; }
@media (min-width: 768px) {
    .fp-cpg-cb-badge {
        font-size: var(--fp-text-md);
        padding: 6px 14px;
    }
}

/* Expandable description — collapsed to 2 lines, "Check details" toggle */
.fp-cpg-desc-wrap {
    position: relative;
    margin: 0 0 10px;
    width: 100%;
}
.fp-cpg-desc-wrap .fp-cpg-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    transition: -webkit-line-clamp 0.25s ease;
}
.fp-cpg-desc-wrap.open .fp-cpg-desc {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}
.fp-cpg-desc-toggle {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 0;
    border: 0;
    background: transparent;
    color: #15803d;
    font-weight: 800;
    font-size: var(--fp-text-base);
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1.2;
}
.fp-cpg-desc-toggle:hover { color: #047857; }
.fp-cpg-desc-toggle .fp-cpg-desc-toggle-ic {
    transition: transform 0.25s ease;
}
.fp-cpg-desc-wrap.open .fp-cpg-desc-toggle .fp-cpg-desc-toggle-ic {
    transform: rotate(180deg);
}


/* ============================================================
   SHARED fp-dl-* COMPONENTS (used by single-fp_coupon.php)
   (Cross-page shared components — appended 2026-05-13)
   ============================================================ */

.fp-dl-rec-gauge-box { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; width: 90px; }

.fp-dl-rec-gauge { width: 100%; height: auto; overflow: visible; }

.fp-dl-flashai-banner { position: relative; border-radius: var(--fp-radius-lg); overflow: hidden; background: linear-gradient(145deg, #0f172a 0%, #020617 100%); display: flex; align-items: center; padding: 14px 18px; gap: 14px; border: 2px solid #fff; box-shadow: 0 6px 16px rgba(0,0,0,0.35), 0 2px 4px rgba(0,0,0,0.04); margin-top: 15px; text-decoration: none; }

.fp-dl-flashai-banner:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,0.45), 0 4px 8px rgba(0,0,0,0.1); }

.fp-dl-flashai-icon-wrap { position: relative; width: 48px; height: 48px; flex-shrink: 0; background: rgba(0,0,0,0.5); border-radius: var(--fp-radius-md); display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 4px 10px rgba(0,0,0,0.5); }

.fp-dl-flashai-pulse { position: absolute; top: 4px; right: 4px; width: 6px; height: 6px; background: #2ecc71; border-radius: var(--fp-radius-circle); box-shadow: 0 0 6px #2ecc71; animation: fpDlAiPulse 2s infinite; }

.fp-dl-flashai-info { flex: 1; display: flex; flex-direction: column; justify-content: center; }

.fp-dl-flashai-title { font-size: var(--fp-text-lg); font-weight: 800; color: #fff; margin: 0 0 2px 0; letter-spacing: -0.3px; }

.fp-dl-flashai-prompt { font-size: var(--fp-text-base); color: #94a3b8; margin: 0; font-style: italic; line-height: 1.3; }

.fp-dl-flashai-btn { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; gap: 4px; background: linear-gradient(135deg, #a855f7, #6366f1); color: #fff; padding: 10px 18px; border-radius: var(--fp-radius-pill); font-size: var(--fp-text-base); font-weight: 800; border: 1px solid rgba(255,255,255,0.2); box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3); cursor: pointer; transition: all 0.2s; text-transform: uppercase; letter-spacing: 0.5px; text-decoration: none; }

.fp-dl-flashai-btn svg { transition: transform 0.2s; }

.fp-dl-flashai-banner:hover .fp-dl-flashai-btn { transform: scale(1.05); box-shadow: 0 6px 14px rgba(99, 102, 241, 0.5); }

.fp-dl-flashai-btn:hover svg { transform: translateX(3px); }

@media (max-width: 768px) {
    .fp-dl-flashai-banner { padding: 12px; gap: 10px; }
    .fp-dl-flashai-icon-wrap { width: 42px; height: 42px; border-radius: var(--fp-radius-10); }
    .fp-dl-flashai-title { font-size: var(--fp-text-md); }
    .fp-dl-flashai-prompt { font-size: var(--fp-text-sm); }
    .fp-dl-flashai-btn { padding: 8px 14px; font-size: var(--fp-text-sm); }
}

.fp-dl-ext-compact { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: #0f172a; border: 2px solid #fff; border-radius: var(--fp-radius-lg); padding: 16px 20px; position: relative; overflow: hidden; box-shadow: 0 6px 16px rgba(0,0,0,0.35), 0 2px 4px rgba(0,0,0,0.04); transition: all 0.3s; text-decoration: none; text-align: center; }

.fp-dl-ext-compact::before, .fp-dl-ext-compact::after { content: ''; position: absolute; pointer-events: none; z-index: 0; border-radius: var(--fp-radius-circle); filter: blur(50px); animation: fpExtCompactGlow 8s ease-in-out infinite alternate; }

.fp-dl-ext-compact::before { top: -20%; right: -10%; width: 300px; height: 300px; background: rgba(168,85,247,0.4); }

.fp-dl-ext-compact::after { bottom: -30%; left: 20%; width: 250px; height: 250px; background: rgba(56,189,248,0.25); animation-delay: -4s; }

.fp-dl-ext-compact:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,0.45), 0 4px 8px rgba(0,0,0,0.1); }

.fp-dl-ext-c-left { display: flex; flex-direction: column; align-items: center; gap: 4px; position: relative; z-index: 1; flex: 0; }

.fp-dl-ext-c-title { font-size: var(--fp-text-lg); font-weight: 900; color: #ffffff; line-height: 1.25; margin: 0; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }

.fp-dl-ext-c-sub { font-size: var(--fp-text-base); color: #cbd5e1; line-height: 1.35; margin: 0; }

.fp-dl-ext-c-browsers { display: flex; align-items: center; justify-content: center; margin-top: 0; }

.fp-dl-ext-c-browser { width: 32px; height: 32px; border-radius: var(--fp-radius-circle); background: #ffffff; border: 2px solid #0f172a; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0,0,0,0.4); margin-left: -10px; position: relative; transition: transform 0.2s; }

.fp-dl-ext-c-browser:first-child { margin-left: 0; z-index: 5; }

.fp-dl-ext-c-browser:nth-child(2) { z-index: 4; }

.fp-dl-ext-c-browser:nth-child(3) { z-index: 3; }

.fp-dl-ext-c-browser:nth-child(4) { z-index: 2; }

.fp-dl-ext-c-browser:hover { transform: translateY(-4px); z-index: 10 !important; }

.fp-dl-ext-c-browser img { width: 18px; height: 18px; object-fit: contain; }

.fp-dl-ext-c-right { position: relative; z-index: 1; width: 100%; display: flex; justify-content: center; }

.fp-dl-ext-c-cta { background: #8B5CF6; color: #ffffff; border: 2px solid rgba(255,255,255,0.35); padding: 10px 16px; border-radius: var(--fp-radius-10); font-size: var(--fp-text-base); font-weight: 800; cursor: pointer; text-decoration: none; transition: all 0.2s; display: flex; width: 100%; align-items: center; justify-content: center; gap: 6px; box-shadow: 0 4px 0px #6d28d9, 0 6px 16px rgba(139,92,246,0.35); text-shadow: 0 1px 2px rgba(0,0,0,0.2); white-space: nowrap; }

.fp-dl-ext-c-cta:hover { transform: translateY(-3px); box-shadow: 0 4px 0px #6d28d9, 0 8px 24px rgba(139,92,246,0.5); }

@media (max-width: 768px) {
    .fp-dl-ext-compact { padding: 20px; gap: 16px; border-radius: var(--fp-radius-md); }
    .fp-dl-ext-c-title { font-size: var(--fp-text-lg); }
    .fp-dl-ext-c-sub { font-size: var(--fp-text-base); line-height: 1.3; margin: 0; }
    .fp-dl-ext-c-browser { width: 28px; height: 28px; border-width: 1.5px; margin-left: -8px; }
    .fp-dl-ext-c-browser img { width: 14px; height: 14px; }
    .fp-dl-ext-c-cta { padding: 12px 20px; font-size: var(--fp-text-md); border-radius: var(--fp-radius-md); }
}

.fp-dl-bottom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; align-items: stretch; }

@media (max-width: 800px) { .fp-dl-bottom-grid { grid-template-columns: 1fr; gap: 15px; } }

.fp-dl-alerts-card { position: relative; border-radius: var(--fp-radius-lg); overflow: hidden; background: #0f172a; border: 2px solid #fff; box-shadow: 0 6px 16px rgba(0,0,0,0.35), 0 2px 4px rgba(0,0,0,0.04); display: flex; align-items: center; justify-content: center; transition: all 0.3s; }

.fp-dl-alerts-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,0.45), 0 4px 8px rgba(0,0,0,0.1); }

.fp-dl-alerts-mesh { position: absolute; inset: 0; background: radial-gradient(circle at 80% -20%, rgba(168,85,247,0.3), transparent 60%), radial-gradient(circle at 20% 120%, rgba(46, 204, 113, 0.2), transparent 60%); pointer-events: none; }

.fp-dl-alerts-inner { position: relative; z-index: 2; padding: 14px 16px; text-align: center; width: 100%; }

.fp-dl-alerts-badge { display: inline-flex; align-items: center; gap: 5px; background: rgba(46, 204, 113, 0.15); border: 1px solid rgba(46, 204, 113, 0.3); color: #2ecc71; font-size: var(--fp-text-3xs); font-weight: 900; padding: 3px 8px; border-radius: var(--fp-radius-pill); letter-spacing: 1px; margin-bottom: 6px; box-shadow: 0 2px 8px rgba(46, 204, 113, 0.2); }

.fp-dl-alerts-dot { width: 4px; height: 4px; border-radius: var(--fp-radius-circle); background: #2ecc71; animation: fpDlBlink 1.5s infinite; box-shadow: 0 0 8px rgba(46, 204, 113, 0.8); }

.fp-dl-alerts-title { font-size: var(--fp-text-md); font-weight: 900; color: #fff; margin: 0 0 4px; line-height: 1.2; text-shadow: 0 2px 8px rgba(0,0,0,0.5); }

.fp-dl-alerts-title span { color: #94a3b8; }

.fp-dl-alerts-sub { font-size: var(--fp-text-xs); font-weight: 600; color: #94a3b8; margin: 0 0 6px; line-height: 1.3; }

.fp-dl-alerts-stats { display: flex; justify-content: center; gap: 10px; margin-bottom: 8px; }

.fp-dl-alerts-stats span { font-size: var(--fp-text-xs); font-weight: 800; color: #cbd5e1; }

.fp-dl-alerts-btns { display: flex; flex-direction: row; gap: 8px; margin-bottom: 8px; width: 100%; }

.fp-dl-alerts-btn { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: var(--fp-radius-10); font-size: var(--fp-text-base); font-weight: 800; text-decoration: none; color: #fff; transition: all 0.2s; flex: 1; justify-content: center; border: 2px solid rgba(255,255,255,0.35); }

.fp-dl-alerts-btn:hover { transform: translateY(-3px); }

.fp-dl-btn-tg { background: #2AABEE; box-shadow: 0 4px 0px #1a8fd4, 0 6px 16px rgba(42,171,238,0.35); }

.fp-dl-btn-tg:hover { box-shadow: 0 4px 0px #1a8fd4, 0 8px 24px rgba(42,171,238,0.5); }

.fp-dl-btn-wa { background: #25D366; box-shadow: 0 4px 0px #1aad50, 0 6px 16px rgba(37,211,102,0.35); }

.fp-dl-btn-wa:hover { box-shadow: 0 4px 0px #1aad50, 0 8px 24px rgba(37,211,102,0.5); }

.fp-dl-alerts-trust { font-size: var(--fp-text-xs); font-weight: 700; color: #64748b; }

@media (min-width: 768px) {
    .fp-dl { padding-bottom: 40px; }
    .fp-dl-breadcrumb { max-width: 1000px; }
    .fp-dl-hero { max-width: 1000px; border-radius: var(--fp-radius-32); margin: 20px auto; }
    .fp-dl-hero-img-wrap { width: 38%; min-height: 380px; }
    .fp-dl-hero-info { padding: 24px 22px; gap: 10px; }
    .fp-dl-title { font-size: var(--fp-text-xl); -webkit-line-clamp: 2; }
    .fp-dl-price-now { font-size: var(--fp-text-3xl); }
    .fp-dl-score-inline { padding: 12px 18px; border-radius: var(--fp-radius-lg); }
    .fp-dl-score-badge { width: 56px; height: 56px; }
    .fp-dl-score-num { font-size: var(--fp-text-lg); }
    .fp-dl-grab-btn { font-size: var(--fp-text-md); padding: 16px 28px; }
    .fp-dl-savings-breakdown { padding: 12px 18px; }
    .fp-dl-sb-final-price { font-size: var(--fp-text-xl); }
    .fp-dl-content { max-width: 1000px; padding: 0 24px 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
    .fp-dl-desc-card { grid-column: 1 / -1; }
    .fp-dl-sale-banner { grid-column: 1 / -1; }
    .fp-dl-history-card { grid-column: 1 / -1; }
    .fp-dl-review-card { grid-column: 1 / -1; }
    .fp-dl-calc-card { grid-column: 1; }
    .fp-dl-ai-card { grid-column: 2; }
    .fp-dl-bank-card { grid-column: 1; }
    .fp-dl-vote-card { grid-column: 2; }
    .fp-dl-stack-card { grid-column: 1 / -1; }
    .fp-dl-flashai-banner { grid-column: 1 / -1; }
    .fp-dl-similar-card { grid-column: 1 / -1; }
    .fp-dl-content > .fp-cpg-section { grid-column: 1 / -1; }
    .fp-dl-glass-promo { grid-column: 1 / -1; }
    .fp-dl-bottom-grid { grid-column: 1 / -1; }

    .fp-dl-share-card { grid-column: 1 / -1; }
    .fp-dl-seo-card { grid-column: 1 / -1; }
    .fp-dl-share-btns { gap: 10px; }
    .fp-dl-sticky { display: none; }
    .fp-dl-sim-card { flex: 0 0 160px; }
    .fp-dl-chart-wrap { height: 260px; }
    .fp-dl-ph-stats { gap: 10px; }
    .fp-dl-card { border-radius: var(--fp-radius-2xl); padding: 26px; }
    .fp-dl-procon-row { gap: 20px; }
}

@media (max-width: 380px) {
    .fp-dl-hero-inner { flex-direction: column; }
    .fp-dl-hero-img-wrap { width: 100%; min-height: 200px; }
    .fp-dl-title { font-size: var(--fp-text-md); }
    .fp-dl-price-now { font-size: var(--fp-text-xl2); }
    .fp-dl-grab-btn { padding: 12px 18px; font-size: var(--fp-text-base); }
    .fp-dl-card { padding: 14px; border-radius: var(--fp-radius-lg); }
    .fp-dl-score-inline { padding: 8px 10px; gap: 8px; }
    .fp-dl-score-badge { width: 40px; height: 40px; }
    .fp-dl-score-num { font-size: var(--fp-text-base); }
    .fp-dl-grab-btn { font-size: var(--fp-text-base); padding: 12px 18px; }
    .fp-dl-savings-breakdown { flex-wrap: wrap; gap: 6px; }
    .fp-dl-sb-final { flex-direction: row; align-items: center; gap: 6px; }
    #fpDlCalcTotal { font-size: var(--fp-text-xl); }
    .fp-dl-share-btns { flex-wrap: wrap; }
    .fp-dl-share-btn { flex: 0 0 calc(50% - 3px); }
    .fp-dl-reactions { gap: 6px; }
    .fp-dl-react { padding: 8px 12px; }
    .fp-dl-procon-row { flex-direction: column; gap: 8px; }
    .fp-dl-glass-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
    .fp-dl-alerts-inner { padding: 20px 16px; }
    .fp-dl-alerts-title { font-size: var(--fp-text-md); }
    .fp-dl-alerts-btns { flex-direction: column; }
    .fp-dl-alerts-btn { max-width: none; }
    .fp-dl-ph-stats { flex-direction: column; gap: 4px; }
    .fp-dl-sale-inner { flex-direction: column; gap: 10px; }
    .fp-dl-sale-right { align-items: flex-start; }
}

/* ============================================================
   ADDITIONAL MISSING COMPONENTS (used by single-fp_coupon.php)
   (Second-pass fix — appended 2026-05-13)
   ============================================================ */

.fp-cpg-terms-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.fp-cpg-terms-list li {
    font-size: var(--fp-text-md);
    padding: 14px 16px;
    background: #f8fafc;
    border-radius: var(--fp-radius-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #f1f5f9;
}

.fp-cpg-terms-list li strong {
    font-weight: 700;
    color: #475569;
    font-size: var(--fp-text-base);
}

.fp-cpg-terms-list li span {
    color: #0f172a;
    font-weight: 600;
    text-align: right;
}

@media (min-width: 640px) {
    .fp-cpg-terms-list { grid-template-columns: 1fr 1fr; }
}

.fp-cpg-intel-bumper {
    background: linear-gradient(135deg, #f3e8ff, #e0e7ff);
    color: #5E57E6;
    font-size: var(--fp-text-xs);
    font-weight: 800;
    padding: 3px 8px;
    border-radius: var(--fp-radius-6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: auto;
}

.fp-cpg-recent-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media (min-width: 540px) { .fp-cpg-recent-grid { grid-template-columns: 1fr 1fr; } }

.fp-cpg-recent-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #fafafa;
    border: 1px solid #f1f5f9;
    border-radius: var(--fp-radius-md);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.fp-cpg-recent-card:hover {
    background: #fff;
    border-color: #e2e8f0;
    transform: translateX(2px);
}

.fp-cpg-recent-card img {
    width: 32px;
    height: 32px;
    border-radius: var(--fp-radius-sm);
    background: #fff;
    padding: 3px;
    border: 1px solid #e5e7eb;
    object-fit: contain;
    flex-shrink: 0;
}

.fp-cpg-recent-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }

.fp-cpg-recent-body strong { font-size: var(--fp-text-base); font-weight: 800; color: #111827; }

.fp-cpg-recent-body span {
    font-size: var(--fp-text-sm);
    color: #6b7280;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.fp-cpg-recent-card code {
    font-family: var(--fp-font-mono, monospace);
    font-size: var(--fp-text-sm);
    font-weight: 800;
    background: #fff;
    padding: 4px 8px;
    border-radius: var(--fp-radius-6);
    border: 1px dashed #cbd5e1;
    color: #0f172a;
    flex-shrink: 0;
}