/**
 * Modern Affiliate Feed Component - CSS
 * Location: /public_html/wp-content/themes/kadence/affiliate-feed/affiliate-feed.css
 * 
 * Beautiful, modern styling matching RV Explorer homepage design
 */

/* ========================================================================== */
/* FEED CONTAINER & LAYOUT */
/* ========================================================================== */

.affiliate-feed-container {
    width: 100%;
    max-width: 1400px;
    margin: 80px auto;
    padding: 0 20px;
    animation: fadeInUp 0.8s ease-out;
}

.feed-header {
    text-align: center;
    margin-bottom: 60px;
}

.feed-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.feed-subtitle {
    font-size: 1.3rem;
    color: #718096;
    margin: 0;
    font-weight: 300;
}

/* ========================================================================== */
/* ADVERTISER TABS */
/* ========================================================================== */

.feed-tabs {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
    padding-bottom: 20px;
}

.feed-tab {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.feed-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.feed-tab:hover::before {
    left: 100%;
}

.feed-tab:hover {
    border-color: #cbd5e0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.feed-tab.active {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    color: white;
    border-color: #2d3748;
    box-shadow: 0 15px 40px rgba(45, 55, 72, 0.2);
}

.tab-icon {
    font-size: 1.3rem;
}

.tab-name {
    font-weight: 700;
}

.tab-rating {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-left: 5px;
}

.feed-tab.active .tab-rating {
    color: #ffd700;
}

/* ========================================================================== */
/* PROMOTIONS GRID */
/* ========================================================================== */

.feed-content {
    margin-bottom: 50px;
}

.promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 1024px) {
    .promotions-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .promotions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ========================================================================== */
/* PROMOTION CARD */
/* ========================================================================== */

.promo-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.promo-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

.promo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #ed8936, #c05621);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.promo-card:hover::before {
    opacity: 1;
}

/* ========================================================================== */
/* PROMO IMAGE & BADGES */
/* ========================================================================== */

.promo-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

.promo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.promo-card:hover .promo-image img {
    transform: scale(1.08);
}

/* Advertiser Badge */
.promo-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: white;
    border-radius: 50px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    font-weight: 600;
    font-size: 0.9rem;
    color: #2d3748;
    z-index: 2;
    animation: slideInDown 0.5s ease-out;
}

.badge-icon {
    font-size: 1.2rem;
}

/* Discount Badge */
.promo-discount {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ed8936 0%, #c05621 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 10px 25px rgba(237, 137, 54, 0.3);
    animation: slideInUp 0.5s ease-out 0.1s both;
}

/* ========================================================================== */
/* PROMO BODY */
/* ========================================================================== */

.promo-body {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.promo-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.promo-description {
    font-size: 0.95rem;
    color: #718096;
    margin: 0 0 15px 0;
    line-height: 1.5;
    flex: 1;
}

/* ========================================================================== */
/* PROMO META & FOOTER */
/* ========================================================================== */

.promo-meta {
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 12px;
    border-left: 4px solid #ed8936;
}

.meta-item {
    font-size: 0.9rem;
    color: #4a5568;
    display: block;
}

.meta-item strong {
    color: #2d3748;
}

.promo-footer {
    padding: 20px 25px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.btn-book-now {
    flex: 1;
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
}

.btn-book-now:hover {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    transform: translateX(3px);
    box-shadow: 0 10px 25px rgba(45, 55, 72, 0.3);
    color: white;
    text-decoration: none;
}

.btn-arrow {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.btn-book-now:hover .btn-arrow {
    transform: translateX(3px);
}

/* ========================================================================== */
/* LOADING SKELETON */
/* ========================================================================== */

.loading-skeleton {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    width: 100%;
}

.promo-card-skeleton {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    animation: pulse-skeleton 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.promo-card-skeleton::before {
    content: '';
    display: block;
    width: 100%;
    height: 380px;
    background: linear-gradient(
        90deg,
        #e2e8f0 0%,
        #f1f5f9 50%,
        #e2e8f0 100%
    );
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@keyframes pulse-skeleton {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@media (max-width: 1024px) {
    .loading-skeleton {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

@media (max-width: 768px) {
    .loading-skeleton {
        grid-template-columns: 1fr;
    }
}

/* ========================================================================== */
/* FEED FOOTER & BUTTONS */
/* ========================================================================== */

.feed-footer {
    display: flex;
    justify-content: center;
    padding: 30px 0;
    border-top: 1px solid #e2e8f0;
}

.btn-load-more {
    background: linear-gradient(135deg, #ed8936 0%, #c05621 100%);
    color: white;
    border: none;
    padding: 16px 40px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(237, 137, 54, 0.3);
}

.btn-load-more:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(237, 137, 54, 0.4);
}

.btn-load-more:active {
    transform: translateY(-1px);
}

/* ========================================================================== */
/* ANIMATIONS */
/* ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================================================== */
/* ACCESSIBILITY */
/* ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .promo-card,
    .promo-image img,
    .feed-tab,
    .btn-book-now,
    .btn-load-more {
        transition: none;
        animation: none;
    }
}

/* ========================================================================== */
/* DARK MODE (Optional) */
/* ========================================================================== */

@media (prefers-color-scheme: dark) {
    .affiliate-feed-container {
        color: #e2e8f0;
    }
    
    .feed-title {
        color: #f1f5f9;
    }
    
    .feed-subtitle {
        color: #cbd5e0;
    }
    
    .promo-card {
        background: #2d3748;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    }
    
    .promo-title {
        color: #f1f5f9;
    }
    
    .promo-description {
        color: #cbd5e0;
    }
    
    .feed-tab {
        background: #1a202c;
        border-color: #4a5568;
        color: #cbd5e0;
    }
    
    .feed-tab.active {
        background: linear-gradient(135deg, #ed8936 0%, #c05621 100%);
        color: white;
    }
}
/* ==========================================================
   HUB & COUPON PAGE STYLES (plugin additions)
   ========================================================== */

/**
 * Hub & Dedicated Coupon Page Styles
 * Appended to: affiliate-feed/affiliate-feed.css
 *
 * Covers:
 *   .aff-hub-*          — [affiliate_feed_hub] hub shortcode
 *   .aff-coupon-page *  — [affiliate_coupon_page] dedicated pages
 */

/* ============================================================
   HUB: Per-company sections
   ============================================================ */

.aff-hub-section {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 40px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.aff-hub-section-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.aff-hub-icon {
    font-size: 2.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.aff-hub-merchant-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 6px 0;
}

.aff-hub-merchant-desc {
    font-size: 0.95rem;
    color: #718096;
    margin: 0;
    line-height: 1.5;
}

/* Promo rows (compact list, max 3) */
.aff-hub-promos-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.aff-hub-promo-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    background: #f7fafc;
    border-radius: 10px;
    border-left: 4px solid #ed8936;
    flex-wrap: wrap;
}

.aff-hub-promo-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.aff-hub-promo-info strong {
    font-size: 0.95rem;
    color: #2d3748;
}

.aff-hub-promo-info span {
    font-size: 0.85rem;
    color: #718096;
    line-height: 1.4;
}

.aff-hub-promo-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.aff-hub-badge {
    background: linear-gradient(135deg, #ed8936, #c05621);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

.aff-hub-btn-small {
    background: linear-gradient(135deg, #4a5568, #2d3748);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.aff-hub-btn-small:hover {
    background: linear-gradient(135deg, #2d3748, #1a202c);
    color: #fff;
    text-decoration: none;
    transform: translateX(2px);
}

/* Section footer CTA links */
.aff-hub-section-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    flex-wrap: wrap;
}

.aff-hub-cta-link {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ed8936;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.aff-hub-cta-link:hover {
    color: #c05621;
    text-decoration: underline;
}

.aff-hub-review-link {
    font-size: 0.85rem;
    color: #718096;
    text-decoration: none;
}

.aff-hub-review-link:hover {
    color: #4a5568;
    text-decoration: underline;
}

@media (max-width: 640px) {
    .aff-hub-section {
        padding: 20px;
    }

    .aff-hub-promo-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .aff-hub-promo-meta {
        width: 100%;
        justify-content: space-between;
    }

    .aff-hub-section-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================================
   DEDICATED COUPON PAGE
   ============================================================ */

.aff-coupon-page {
    max-width: 1100px;
    margin: 0 auto;
}

/* Last updated pill */
.aff-coupon-updated {
    display: inline-block;
    background: #f0f4ff;
    border: 1px solid #c3dafe;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 0.85rem;
    color: #4a5568;
    margin-bottom: 16px;
}

/* Breadcrumb */
.aff-coupon-breadcrumb {
    font-size: 0.85rem;
    color: #a0aec0;
    margin-bottom: 28px;
}

.aff-coupon-breadcrumb a {
    color: #718096;
    text-decoration: none;
}

.aff-coupon-breadcrumb a:hover {
    color: #ed8936;
    text-decoration: underline;
}

/* Intro block */
.aff-coupon-intro {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 28px;
}

.aff-coupon-icon {
    font-size: 3rem;
    line-height: 1;
    flex-shrink: 0;
}

.aff-coupon-intro h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 10px 0;
    line-height: 1.25;
}

.aff-coupon-intro p {
    font-size: 1rem;
    color: #4a5568;
    margin: 0;
    line-height: 1.6;
}

/* Review link box */
.aff-coupon-review-link-box {
    background: #fffbeb;
    border: 1px solid #f6e05e;
    border-radius: 10px;
    padding: 14px 20px;
    font-size: 0.95rem;
    color: #744210;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.aff-coupon-review-link-box a {
    color: #c05621;
    font-weight: 700;
    text-decoration: none;
}

.aff-coupon-review-link-box a:hover {
    text-decoration: underline;
}

/* Back to hub footer */
.aff-coupon-footer-links {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.aff-coupon-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 10px 22px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #4a5568;
    text-decoration: none;
    transition: all 0.2s ease;
}

.aff-coupon-back-link:hover {
    background: #edf2f7;
    color: #2d3748;
    text-decoration: none;
}

@media (max-width: 640px) {
    .aff-coupon-intro {
        flex-direction: column;
        gap: 12px;
    }

    .aff-coupon-intro h1 {
        font-size: 1.35rem;
    }
}

/* ==========================================================================
   HUB PAGE — full redesign styles (rvaf_hub shortcode)
   Using body prefix to override Kadence theme styles
   ========================================================================== */

/* ── Hero ─────────────────────────────────────────────────────────────────── */

body .rvaf-hub-hero {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%) !important;
    color: #fff !important;
    border-radius: 16px !important;
    padding: 48px 40px !important;
    margin-bottom: 40px !important;
    text-align: center !important;
}

body .rvaf-hub-h1 {
    font-size: 2.2rem !important;
    font-weight: 800 !important;
    margin: 0 0 16px 0 !important;
    line-height: 1.2 !important;
    color: #fff !important;
}

body .rvaf-hub-intro {
    font-size: 1.05rem !important;
    line-height: 1.7 !important;
    color: #cbd5e0 !important;
    max-width: 720px !important;
    margin: 0 auto 20px auto !important;
}

body .rvaf-hub-bullets {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 auto 28px auto !important;
    display: flex !important;
    justify-content: center !important;
    gap: 24px !important;
    flex-wrap: wrap !important;
    font-size: 0.95rem !important;
    color: #a0aec0 !important;
}

body .rvaf-hub-hero-cta {
    display: inline-block !important;
    background: linear-gradient(135deg, #ed8936, #c05621) !important;
    color: #fff !important;
    padding: 14px 36px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 8px 24px rgba(237,137,54,0.35) !important;
}

body .rvaf-hub-hero-cta:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 32px rgba(237,137,54,0.45) !important;
    color: #fff !important;
    text-decoration: none !important;
}

/* ── Featured Deal ────────────────────────────────────────────────────────── */

body .rvaf-hub-featured {
    border: 2px solid #ed8936 !important;
    border-radius: 16px !important;
    padding: 28px 30px !important;
    margin-bottom: 40px !important;
    background: linear-gradient(135deg, #fffbf5 0%, #fff8ee 100%) !important;
    position: relative !important;
}

body .rvaf-hub-featured-badge {
    position: absolute !important;
    top: -14px !important;
    left: 24px !important;
    background: linear-gradient(135deg, #ed8936, #c05621) !important;
    color: #fff !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    padding: 4px 16px !important;
    border-radius: 20px !important;
    letter-spacing: 0.03em !important;
}

body .rvaf-hub-featured-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 24px !important;
    flex-wrap: wrap !important;
}

body .rvaf-hub-featured-info { flex: 1 !important; min-width: 0 !important; }

body .rvaf-hub-featured-brand {
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    color: #c05621 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    display: block !important;
    margin-bottom: 6px !important;
}

body .rvaf-hub-featured-title {
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    color: #1a202c !important;
    margin: 0 0 8px 0 !important;
}

body .rvaf-hub-featured-desc {
    font-size: 0.9rem !important;
    color: #4a5568 !important;
    line-height: 1.6 !important;
    margin: 0 0 10px 0 !important;
}

body .rvaf-hub-featured-savings {
    display: inline-block !important;
    background: #fff !important;
    border: 1px solid #f6ad55 !important;
    border-radius: 6px !important;
    padding: 4px 12px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: #c05621 !important;
}

body .rvaf-hub-featured-cta {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
    flex-shrink: 0 !important;
}

body .rvaf-hub-featured-more {
    font-size: 0.82rem !important;
    color: #718096 !important;
    text-decoration: none !important;
}
body .rvaf-hub-featured-more:hover { color: #ed8936 !important; text-decoration: underline !important; }

/* ── How It Works ─────────────────────────────────────────────────────────── */

body .rvaf-hub-explainer {
    background: #f7fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 36px 40px !important;
    margin-bottom: 40px !important;
}

body .rvaf-hub-explainer h2 {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #1a202c !important;
    margin: 0 0 16px 0 !important;
}

body .rvaf-hub-explainer p {
    font-size: 0.97rem !important;
    color: #4a5568 !important;
    line-height: 1.75 !important;
    margin: 0 0 14px 0 !important;
}

body .rvaf-hub-explainer-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px !important;
    margin-top: 24px !important;
}

body .rvaf-hub-explainer-item {
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 16px 18px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}

body .rvaf-hub-explainer-item strong {
    font-size: 0.92rem !important;
    color: #2d3748 !important;
}

body .rvaf-hub-explainer-item span {
    font-size: 0.85rem !important;
    color: #718096 !important;
    line-height: 1.5 !important;
}

/* ── Brand Sections ───────────────────────────────────────────────────────── */

body .rvaf-hub-brand {
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 32px !important;
    margin-bottom: 28px !important;
    background: #fff !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04) !important;
}

body .rvaf-hub-brand-header {
    display: flex !important;
    align-items: flex-start !important;
    gap: 16px !important;
    margin-bottom: 24px !important;
    padding-bottom: 20px !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

body .rvaf-hub-brand-icon { font-size: 2.4rem !important; line-height: 1 !important; flex-shrink: 0 !important; }

body .rvaf-hub-brand-name {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    color: #1a202c !important;
    margin: 0 0 6px 0 !important;
}

body .rvaf-hub-brand-desc {
    font-size: 0.9rem !important;
    color: #718096 !important;
    margin: 0 !important;
    line-height: 1.5 !important;
}

body .rvaf-hub-deals-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin-bottom: 20px !important;
}

body .rvaf-hub-deal-row {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 20px !important;
    padding: 16px 20px !important;
    background: #f8f9fa !important;
    border-radius: 10px !important;
    border-left: 4px solid #ed8936 !important;
    flex-wrap: wrap !important;
}

body .rvaf-hub-deal-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    flex: 1 !important;
    min-width: 0 !important;
}

body .rvaf-hub-deal-info strong {
    font-size: 0.95rem !important;
    color: #1a202c !important;
    font-weight: 700 !important;
}

body .rvaf-hub-deal-info span {
    font-size: 0.85rem !important;
    color: #718096 !important;
    line-height: 1.5 !important;
}

body .rvaf-hub-deal-trust {
    font-size: 0.78rem !important;
    color: #a0aec0 !important;
    font-style: normal !important;
}

body .rvaf-hub-deal-right {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
}

body .rvaf-hub-deal-badge {
    background: linear-gradient(135deg, #ed8936, #c05621) !important;
    color: #fff !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    padding: 3px 12px !important;
    border-radius: 20px !important;
    white-space: nowrap !important;
}

body .rvaf-hub-btn-deal {
    background: linear-gradient(135deg, #2d3748, #1a202c) !important;
    color: #fff !important;
    padding: 9px 18px !important;
    border-radius: 20px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    display: inline-block !important;
}

body .rvaf-hub-btn-deal:hover {
    background: linear-gradient(135deg, #1a202c, #0d1117) !important;
    color: #fff !important;
    text-decoration: none !important;
}

body .rvaf-hub-no-deals {
    color: #a0aec0 !important;
    font-size: 0.9rem !important;
    padding: 16px 0 !important;
    margin: 0 !important;
}

body .rvaf-hub-brand-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    padding-top: 16px !important;
    border-top: 1px solid #f0f0f0 !important;
    flex-wrap: wrap !important;
}

body .rvaf-hub-brand-cta {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #ed8936 !important;
    text-decoration: none !important;
}
body .rvaf-hub-brand-cta:hover { color: #c05621 !important; text-decoration: underline !important; }

body .rvaf-hub-brand-review {
    font-size: 0.85rem !important;
    color: #a0aec0 !important;
    text-decoration: none !important;
}
body .rvaf-hub-brand-review:hover { color: #718096 !important; text-decoration: underline !important; }

/* ── Shared primary button ────────────────────────────────────────────────── */

body .rvaf-hub-btn-primary {
    display: inline-block !important;
    background: linear-gradient(135deg, #ed8936, #c05621) !important;
    color: #fff !important;
    padding: 12px 24px !important;
    border-radius: 25px !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}
body .rvaf-hub-btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(237,137,54,0.35) !important;
    color: #fff !important;
    text-decoration: none !important;
}

/* ── Comparison Section ───────────────────────────────────────────────────── */

body .rvaf-hub-comparison {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%) !important;
    border: 1px solid #c3dafe !important;
    border-radius: 16px !important;
    padding: 36px 40px !important;
    margin: 40px 0 !important;
}

body .rvaf-hub-comparison h2 {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #1a202c !important;
    margin: 0 0 10px 0 !important;
}

body .rvaf-hub-comparison > p {
    font-size: 0.95rem !important;
    color: #4a5568 !important;
    margin: 0 0 24px 0 !important;
}

body .rvaf-hub-comparison-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
}

body .rvaf-hub-comparison-card {
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 22px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

body .rvaf-hub-comparison-card strong {
    font-size: 1rem !important;
    color: #1a202c !important;
}

body .rvaf-hub-comparison-tag {
    display: inline-block !important;
    background: #ebf8ff !important;
    border: 1px solid #bee3f8 !important;
    color: #2b6cb0 !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    padding: 2px 10px !important;
    border-radius: 20px !important;
    width: fit-content !important;
}

body .rvaf-hub-comparison-card p {
    font-size: 0.85rem !important;
    color: #718096 !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    flex: 1 !important;
}

body .rvaf-hub-comparison-card a {
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    color: #ed8936 !important;
    text-decoration: none !important;
}
body .rvaf-hub-comparison-card a:hover { text-decoration: underline !important; }

/* ── FAQ ──────────────────────────────────────────────────────────────────── */

body .rvaf-hub-faq {
    margin: 40px 0 !important;
}

body .rvaf-hub-faq h2 {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #1a202c !important;
    margin: 0 0 20px 0 !important;
}

body .rvaf-hub-faq-item {
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    margin-bottom: 8px !important;
    overflow: hidden !important;
}

body .rvaf-hub-faq-item summary {
    padding: 16px 20px !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    color: #2d3748 !important;
    cursor: pointer !important;
    background: #f8f9fa !important;
    user-select: none !important;
    list-style: none !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}
body .rvaf-hub-faq-item summary::-webkit-details-marker { display: none !important; }
body .rvaf-hub-faq-item summary::after { content: '+' !important; font-size: 1.2rem !important; color: #a0aec0 !important; }
body .rvaf-hub-faq-item[open] summary::after { content: '−' !important; }
body .rvaf-hub-faq-item summary:hover { background: #f0f0f0 !important; }
body .rvaf-hub-faq-item[open] summary { background: #f0f0f0 !important; }

body .rvaf-hub-faq-item p {
    padding: 14px 20px !important;
    margin: 0 !important;
    font-size: 0.9rem !important;
    color: #4a5568 !important;
    line-height: 1.7 !important;
    background: #fff !important;
}

/* ── Final CTA ────────────────────────────────────────────────────────────── */

body .rvaf-hub-final-cta {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%) !important;
    border-radius: 16px !important;
    padding: 40px !important;
    text-align: center !important;
    margin-top: 40px !important;
}

body .rvaf-hub-final-cta h2 {
    font-size: 1.6rem !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin: 0 0 10px 0 !important;
}

body .rvaf-hub-final-cta p {
    font-size: 0.97rem !important;
    color: #a0aec0 !important;
    margin: 0 0 28px 0 !important;
}

body .rvaf-hub-final-cta-links {
    display: flex !important;
    justify-content: center !important;
    gap: 16px !important;
    flex-wrap: wrap !important;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
    body .rvaf-hub-explainer-grid,
    body .rvaf-hub-comparison-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 640px) {
    body .rvaf-hub-hero { padding: 32px 20px !important; }
    body .rvaf-hub-h1 { font-size: 1.55rem !important; }
    body .rvaf-hub-bullets { flex-direction: column !important; gap: 8px !important; align-items: center !important; }
    body .rvaf-hub-explainer,
    body .rvaf-hub-comparison,
    body .rvaf-hub-final-cta { padding: 24px 20px !important; }
    body .rvaf-hub-brand { padding: 20px !important; }
    body .rvaf-hub-deal-row { flex-direction: column !important; }
    body .rvaf-hub-deal-right { flex-direction: row !important; align-items: center !important; width: 100% !important; justify-content: space-between !important; }
    body .rvaf-hub-featured-inner { flex-direction: column !important; }
    body .rvaf-hub-featured-cta { width: 100% !important; }
    body .rvaf-hub-brand-footer { flex-direction: column !important; align-items: flex-start !important; }
}

/* ==========================================================================
   HUB PAGE — Optimization additions
   ========================================================================== */

body .rvaf-hub-updated-pill {
    display: inline-block !important;
    background: rgba(255,255,255,0.15) !important;
    border: 1px solid rgba(255,255,255,0.25) !important;
    border-radius: 20px !important;
    padding: 4px 14px !important;
    font-size: 0.8rem !important;
    color: #a0aec0 !important;
    margin-bottom: 16px !important;
}

body .rvaf-hub-featured-bullets {
    list-style: none !important;
    padding: 0 !important;
    margin: 12px 0 0 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

body .rvaf-hub-featured-bullets li {
    font-size: 0.82rem !important;
    color: #718096 !important;
}

body .rvaf-hub-brand-bestfor {
    display: inline-block !important;
    margin: 6px 0 0 0 !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: #2b6cb0 !important;
    background: #ebf8ff !important;
    border: 1px solid #bee3f8 !important;
    border-radius: 6px !important;
    padding: 3px 10px !important;
}

body .rvaf-hub-deal-trust-row {
    display: flex !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    margin-top: 6px !important;
}

body .rvaf-hub-deal-trust-row span {
    font-size: 0.75rem !important;
    color: #48bb78 !important;
    font-weight: 600 !important;
}

body .rvaf-hub-deal-savings {
    font-size: 0.8rem !important;
    color: #c05621 !important;
    font-weight: 600 !important;
}

@media (max-width: 640px) {
    body .rvaf-hub-deal-trust-row { gap: 6px !important; }
}

/* ==========================================================================
   HUB PAGE — Fine-tune optimization additions
   ========================================================================== */

body .rvaf-hub-scroll-nudge {
    margin: 16px 0 0 0 !important;
    font-size: 0.85rem !important;
    color: #718096 !important;
    opacity: 0.85 !important;
}

body .rvaf-hub-urgency-line {
    margin: 8px 0 0 0 !important;
    font-size: 0.8rem !important;
    color: #c05621 !important;
    font-weight: 600 !important;
    font-style: italic !important;
}

body .rvaf-hub-comparison-bullets {
    list-style: none !important;
    padding: 0 !important;
    margin: 4px 0 10px 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

body .rvaf-hub-comparison-bullets li {
    font-size: 0.8rem !important;
    color: #4a5568 !important;
}

body .rvaf-hub-comparison-cta {
    display: inline-block !important;
    background: linear-gradient(135deg, #ed8936, #c05621) !important;
    color: #fff !important;
    padding: 8px 18px !important;
    border-radius: 20px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    margin-top: auto !important;
    transition: all 0.2s ease !important;
}

body .rvaf-hub-comparison-cta:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 16px rgba(237,137,54,0.35) !important;
    color: #fff !important;
    text-decoration: none !important;
}

/* ==========================================================================
   MOBILE FIX — Deal row layout on small screens
   ========================================================================== */

@media (max-width: 640px) {

    /* Deal row: stack info on top, right section below */
    body .rvaf-hub-deal-row {
        flex-direction: column !important;
        gap: 12px !important;
    }

    /* Right section: horizontal row with badge + savings + button */
    body .rvaf-hub-deal-right {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    /* Badge: normal wrap */
    body .rvaf-hub-deal-badge {
        white-space: normal !important;
        word-break: break-word !important;
    }

    /* Savings text: allow wrapping, no overflow */
    body .rvaf-hub-deal-savings {
        white-space: normal !important;
        word-break: break-word !important;
        font-size: 0.75rem !important;
        max-width: 120px !important;
    }

    /* Button: full width on mobile */
    body .rvaf-hub-btn-deal {
        width: 100% !important;
        text-align: center !important;
        white-space: normal !important;
        padding: 10px 14px !important;
        font-size: 0.9rem !important;
    }

    /* Trust row: stack vertically */
    body .rvaf-hub-deal-trust-row {
        flex-direction: column !important;
        gap: 3px !important;
    }

    /* Urgency line: smaller on mobile */
    body .rvaf-hub-urgency-line {
        font-size: 0.75rem !important;
    }

    /* Brand footer: stack vertically */
    body .rvaf-hub-brand-footer {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }

    /* Comparison grid: single column */
    body .rvaf-hub-comparison-grid {
        grid-template-columns: 1fr !important;
    }

    /* Featured inner: stack */
    body .rvaf-hub-featured-inner {
        flex-direction: column !important;
    }

    body .rvaf-hub-featured-cta {
        width: 100% !important;
    }

    body .rvaf-hub-btn-primary {
        width: 100% !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }

    /* Explainer grid: single column */
    body .rvaf-hub-explainer-grid {
        grid-template-columns: 1fr !important;
    }

    /* Final CTA links: stack */
    body .rvaf-hub-final-cta-links {
        flex-direction: column !important;
        align-items: center !important;
    }
}
