/* ===== CSS VARIABLES / DESIGN TOKENS ===== */
:root {
    --rf-primary: #0d7c4a;
    --rf-primary-light: #ecfdf5;
    --rf-primary-dark: #065f38;
    --rf-primary-muted: #bbf7d0;
    --rf-secondary: #f59e0b;
    --rf-accent: #0ea5e9;
    --rf-dark: #0f172a;
    --rf-dark-mid: #1e293b;
    --rf-gray: #4b5563;
    --rf-light-bg: #f8fafc;
    --rf-border: #e2e8f0;
    --rf-border-light: #f1f5f9;
    --rf-star: #f59e0b;
    --rf-star-empty: #cbd5e1;
    --rf-text: #1e293b;
    --rf-text-light: #4b5563;
    --rf-text-lighter: #64748b;
    --rf-radius: 10px;
    --rf-radius-lg: 16px;
    --rf-shadow-sm: 0 1px 2px rgba(15,23,42,.04);
    --rf-shadow: 0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
    --rf-shadow-md: 0 4px 6px -1px rgba(15,23,42,.07), 0 2px 4px -2px rgba(15,23,42,.05);
    --rf-shadow-lg: 0 10px 15px -3px rgba(15,23,42,.08), 0 4px 6px -4px rgba(15,23,42,.04);
    --rf-shadow-xl: 0 20px 25px -5px rgba(15,23,42,.08), 0 8px 10px -6px rgba(15,23,42,.04);
    --rf-font-heading: 'Bricolage Grotesque', system-ui, sans-serif;
    --rf-font-body: 'DM Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { margin: 0; padding: 0; }

html { overflow-x: hidden; }

body {
    font-family: var(--rf-font-body);
    color: var(--rf-text);
    line-height: 1.65;
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.rf-section-title,
.rf-hero h1,
.rf-page-header h1 {
    font-family: var(--rf-font-heading);
    letter-spacing: -0.02em;
}

a { color: var(--rf-primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--rf-primary-dark); }

/* ===== ENTRANCE ANIMATIONS ===== */
@keyframes rf-fadeUp {
    from { opacity: 0; transform: translate3d(0, 20px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes rf-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes rf-scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
.rf-animate {
    animation: rf-fadeUp .5s cubic-bezier(.22,.61,.36,1) both;
    will-change: transform, opacity;
}
.rf-animate-delay-1 { animation-delay: .1s; }
.rf-animate-delay-2 { animation-delay: .2s; }
.rf-animate-delay-3 { animation-delay: .3s; }
.rf-animate-delay-4 { animation-delay: .4s; }
/* Remove will-change after animation completes to free GPU memory */
.rf-animate-done { will-change: auto; }

/* ===== SCROLL REVEAL ===== */
@keyframes rf-revealUp {
    from { opacity: 0; transform: translate3d(0, 40px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}
.rf-reveal {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
}
.rf-reveal.rf-visible {
    animation: rf-revealUp .7s cubic-bezier(.22,.61,.36,1) both;
}
.rf-reveal-delay-1.rf-visible { animation-delay: .1s; }
.rf-reveal-delay-2.rf-visible { animation-delay: .2s; }
.rf-reveal-delay-3.rf-visible { animation-delay: .3s; }

/* ===== HERO FLOATING ORBS ===== */
@keyframes rf-orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-15px, 15px) scale(0.97); }
}
@keyframes rf-orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-25px, 20px) scale(1.03); }
    66% { transform: translate(20px, -15px) scale(0.95); }
}
@keyframes rf-orbFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(15px, -25px) scale(1.08); }
}
.rf-hero-orbs {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.rf-hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .15;
}
.rf-hero-orb--1 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, #10b981 0%, transparent 70%);
    top: -10%; left: 10%;
    animation: rf-orbFloat1 12s ease-in-out infinite;
}
.rf-hero-orb--2 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, #0ea5e9 0%, transparent 70%);
    top: 30%; right: 5%;
    animation: rf-orbFloat2 15s ease-in-out infinite;
}
.rf-hero-orb--3 {
    width: 250px; height: 250px;
    background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
    bottom: -5%; left: 40%;
    animation: rf-orbFloat3 18s ease-in-out infinite;
}

/* ===== PULSING SEARCH GLOW ===== */
@keyframes rf-pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(13,124,74,.4); }
    50% { box-shadow: 0 0 0 8px rgba(13,124,74,0); }
}


/* ===== NAVBAR ===== */
.rf-navbar {
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--rf-border);
    position: sticky;
    top: 0;
    z-index: 1050;
    transition: box-shadow .3s ease;
    padding: 0; /* override Bootstrap .navbar default padding: .5rem 0 */
}
.rf-navbar > .container { position: static; }
.rf-navbar.scrolled {
    box-shadow: var(--rf-shadow-md);
}
.rf-navbar .container { padding-top: 6px; padding-bottom: 6px; }
.rf-navbar .navbar-brand img { height: 40px; width: auto; }
.rf-navbar .nav-link {
    color: var(--rf-text);
    font-weight: 500;
    font-size: .9rem;
    padding: .5rem 1.1rem !important;
    border-radius: 6px;
    transition: all .2s ease;
    position: relative;
}
.rf-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--rf-primary);
    transition: all .25s ease;
    transform: translateX(-50%);
    border-radius: 1px;
}
.rf-navbar .nav-link:hover::after,
.rf-navbar .nav-link.active::after {
    width: calc(100% - 22px);
}
.rf-navbar .nav-link:hover { color: var(--rf-primary); }
.rf-navbar .nav-link.active { color: var(--rf-primary); font-weight: 600; }
.rf-navbar .btn-login {
    border: 1.5px solid var(--rf-border);
    color: var(--rf-text);
    font-weight: 600;
    border-radius: 8px;
    padding: 7px 20px;
    font-size: .875rem;
    transition: all .2s ease;
}
.rf-navbar .btn-login:hover {
    border-color: var(--rf-primary);
    color: var(--rf-primary);
    background: var(--rf-primary-light);
}
.rf-navbar .btn-signup {
    background: var(--rf-primary);
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    padding: 7px 22px;
    border: 1.5px solid var(--rf-primary);
    font-size: .875rem;
    transition: all .2s ease;
    box-shadow: 0 1px 2px rgba(13,124,74,.2);
}
.rf-navbar .btn-signup:hover {
    background: var(--rf-primary-dark);
    border-color: var(--rf-primary-dark);
    box-shadow: 0 2px 8px rgba(13,124,74,.25);
    transform: translateY(-1px);
}

/* ===== MEGA MENU ===== */
.rf-mega-item {
    position: static !important;
}
.rf-mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100vw;
    z-index: 1060;
    background: #fff;
    border-top: 2px solid var(--rf-primary);
    border-bottom: 1px solid var(--rf-border);
    box-shadow: 0 16px 40px rgba(15,23,42,.12);
    display: none;
    padding: 22px 0 18px;
}
/* Desktop show: controlled by JS hover with delay (see layout.blade.php) */
.rf-mega-menu.rf-mega-open {
    display: block;
}
.rf-mega-item .nav-link::after {
    display: none;
}
.rf-mega-item .nav-link .mega-arrow {
    font-size: .65rem;
    margin-left: 4px;
    transition: transform .2s ease;
    display: inline-block;
}
.rf-mega-item:hover .nav-link .mega-arrow {
    transform: rotate(180deg);
}
/* 2-row grid: 6 columns on large screens, max 2 rows */
.rf-mega-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: .75rem 1rem;
}
@media (max-width: 1199px) {
    .rf-mega-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 992px) and (max-width: 1024px) {
    .rf-mega-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===== MOBILE MEGA MENU (below lg breakpoint) ===== */
@media (max-width: 991.98px) {
    .rf-mega-item {
        position: relative !important;
    }
    .rf-mega-menu {
        position: static;
        width: 100%;
        border-top: none;
        border-bottom: none;
        box-shadow: none;
        padding: 0 0 8px;
        background: var(--rf-light-bg);
        border-radius: var(--rf-radius);
        margin-top: 4px;
        display: none;
    }
    .rf-mega-item.rf-mega-open .rf-mega-menu {
        display: block;
    }
    /* Disable hover on mobile — use click instead */
    .rf-mega-item:hover .rf-mega-menu {
        display: none;
    }
    .rf-mega-item.rf-mega-open:hover .rf-mega-menu {
        display: block;
    }
    .rf-mega-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: .5rem;
        padding: 12px;
    }
    @media (max-width: 575.98px) {
        .rf-mega-grid {
            grid-template-columns: 1fr;
            gap: .35rem;
            padding: 10px;
        }
    }
    .rf-mega-child-link {
        display: none !important;
    }
    .rf-mega-viewall {
        margin: 4px 12px 8px;
    }
    .rf-mega-item .nav-link .mega-arrow {
        float: right;
        margin-top: 3px;
    }
    .rf-mega-item.rf-mega-open .nav-link .mega-arrow {
        transform: rotate(180deg);
    }
}
.rf-mega-col-title {
    font-family: var(--rf-font-heading);
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--rf-text-lighter);
    margin-bottom: 6px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--rf-border-light);
}
.rf-mega-col-title a {
    color: var(--rf-primary);
    font-size: .76rem;
}
.rf-mega-col-title a:hover { color: var(--rf-primary-dark); }
.rf-mega-child-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 0;
    color: var(--rf-text-light);
    font-size: .82rem;
    font-weight: 500;
    transition: all .15s ease;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rf-mega-child-link:hover {
    color: var(--rf-primary);
    padding-left: 3px;
}
.rf-mega-child-link .fi {
    font-size: .55rem;
    color: var(--rf-primary);
    opacity: .5;
    flex-shrink: 0;
}
.rf-mega-child-link:hover .fi { opacity: 1; }
.rf-mega-viewall {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 7px 16px;
    background: var(--rf-primary-light);
    color: var(--rf-primary);
    border-radius: 8px;
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s ease;
}
.rf-mega-viewall:hover {
    background: var(--rf-primary);
    color: #fff;
}

/* ===== HERO ===== */
.rf-hero {
    background: var(--rf-dark);
    color: #fff;
    padding: 72px 0 64px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.rf-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 50%, rgba(13,124,74,.15) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 20%, rgba(14,165,233,.1) 0%, transparent 50%);
    pointer-events: none;
}
.rf-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.rf-hero .container { position: relative; z-index: 1; }
.rf-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: .8rem;
    font-weight: 500;
    margin-bottom: 24px;
    color: var(--rf-primary-muted);
    backdrop-filter: blur(4px);
}
.rf-hero .hero-badge i { font-size: .7rem; }
.rf-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.15;
    letter-spacing: -0.03em;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}
.rf-hero h1 span {
    background: linear-gradient(135deg, var(--rf-primary-muted), #6ee7b7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.rf-hero .hero-sub {
    font-size: 1.05rem;
    opacity: .7;
    margin-bottom: 32px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}
.rf-hero .search-box {
    max-width: 580px;
    margin: 0 auto 36px;
    position: relative;
}
.rf-hero .search-box input {
    width: 100%;
    padding: 16px 56px 16px 22px;
    border-radius: var(--rf-radius);
    border: 2px solid rgba(255,255,255,.12);
    font-size: 1rem;
    outline: none;
    background: rgba(255,255,255,.06);
    color: #fff;
    backdrop-filter: blur(4px);
    transition: all .25s ease;
    font-family: var(--rf-font-body);
}
.rf-hero .search-box input::placeholder { color: rgba(255,255,255,.45); }
.rf-hero .search-box input:focus {
    border-color: var(--rf-primary);
    background: rgba(255,255,255,.1);
    box-shadow: 0 0 0 4px rgba(13,124,74,.2);
}
.rf-hero .search-box button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--rf-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    transition: all .2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rf-hero .search-box button:hover {
    background: var(--rf-primary-dark);
    transform: translateY(-50%) scale(1.04);
}
.rf-hero .search-box button:not(:hover) {
    animation: rf-pulseGlow 2.5s ease-in-out infinite;
}
.rf-hero .hero-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}
.rf-hero .hero-stat {
    text-align: center;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    padding: 18px 28px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: all .3s ease;
}
.rf-hero .hero-stat:hover {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.15);
    transform: translateY(-2px);
}
.rf-hero .hero-stat .stat-num {
    font-family: var(--rf-font-heading);
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #fff 60%, var(--rf-primary-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.rf-hero .hero-stat .stat-label {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    opacity: .5;
    font-weight: 500;
}
.rf-search-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: var(--rf-radius);
    box-shadow: 0 20px 40px rgba(15,23,42,.15), 0 4px 8px rgba(15,23,42,.08);
    z-index: 100;
    display: none;
    max-height: 420px;
    overflow-y: auto;
    text-align: left;
    color: var(--rf-text);
    border: 1px solid var(--rf-border);
}
.rf-search-results.active { display: block; }
.rf-search-results .search-group-label {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--rf-text-lighter);
    padding: 14px 16px 6px;
    font-weight: 700;
    border-top: 1px solid var(--rf-border-light);
}
.rf-search-results .search-group-label:first-child {
    border-top: none;
}
.rf-search-results a {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    color: var(--rf-text);
    gap: 12px;
    transition: background .15s ease;
    font-size: .9rem;
    line-height: 1.4;
    border-radius: 0;
}
.rf-search-results a:hover {
    background: var(--rf-primary-light);
    color: var(--rf-primary);
}
.rf-search-results a .fi {
    font-size: .9rem;
    color: var(--rf-text-lighter);
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}
.rf-search-results a:hover .fi {
    color: var(--rf-primary);
}
.rf-search-results a small.text-muted {
    color: var(--rf-text-lighter) !important;
    font-size: .78rem;
    margin-left: auto;
    white-space: nowrap;
}
.rf-search-results a:hover small.text-muted {
    color: var(--rf-primary) !important;
    opacity: .7;
}
.rf-search-results .search-no-results {
    padding: 16px 16px 8px;
    color: var(--rf-text-light);
    font-size: .88rem;
}
.rf-search-results .search-request-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px 14px;
    color: var(--rf-primary);
    font-size: .875rem;
    font-weight: 600;
    border-top: 1px solid var(--rf-border-light);
    cursor: pointer;
}
.rf-search-results .search-request-link:hover {
    background: var(--rf-primary-light);
}

/* ===== STARS ===== */
.rf-stars { display: inline-flex; gap: 1px; }
.rf-stars .fi-sr-star { color: var(--rf-star); font-size: .85rem; }
.rf-stars .fi-rr-star { color: var(--rf-star-empty); font-size: .85rem; }
.rf-stars-lg .fi-sr-star,
.rf-stars-lg .fi-rr-star { font-size: 1.1rem; }

/* ===== CATEGORY PILLS ===== */
.rf-cat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    padding: 36px 0;
}
.rf-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 100px;
    border: 1px solid var(--rf-border);
    background: #fff;
    color: var(--rf-text);
    font-size: .85rem;
    font-weight: 500;
    transition: all .3s cubic-bezier(.22,.61,.36,1);
    position: relative;
    overflow: hidden;
}
.rf-cat-pill i {
    font-size: .8rem;
    color: var(--rf-text-lighter);
    transition: color .3s ease;
}
.rf-cat-pill:hover {
    border-color: var(--rf-primary);
    color: var(--rf-primary);
    background: var(--rf-primary-light);
    box-shadow: 0 4px 16px rgba(13,124,74,.1);
    transform: translateY(-2px);
}
.rf-cat-pill:hover i { color: var(--rf-primary); }

/* ===== SECTION ===== */
.rf-section {
    padding: 64px 0;
}
.rf-section-title {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
    color: var(--rf-dark);
}
.rf-section-header {
    position: relative;
}
.rf-section-header .rf-section-accent {
    display: inline-block;
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--rf-primary), var(--rf-accent));
    margin-bottom: 12px;
}
.rf-section-sub {
    color: var(--rf-text-light);
    margin-bottom: 32px;
    font-size: .95rem;
}

/* ===== COMPANY CARD ===== */
.rf-company-card {
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius-lg);
    padding: 22px;
    transition: all .3s cubic-bezier(.22,.61,.36,1);
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.rf-company-card:hover {
    box-shadow: var(--rf-shadow-lg);
    border-color: transparent;
    transform: translateY(-4px);
}
.rf-company-card .card-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: var(--rf-radius);
    margin-bottom: 14px;
    background: var(--rf-light-bg);
}
.rf-company-card .card-name {
    font-family: var(--rf-font-heading);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 6px;
    color: var(--rf-text);
}
.rf-company-card .card-meta {
    font-size: .8rem;
    color: var(--rf-text-light);
    font-weight: 500;
}
.rf-company-card .card-desc {
    font-size: .78rem;
    color: var(--rf-text-lighter);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}

/* Rating Score Badge */
.rf-rating-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-family: var(--rf-font-heading);
    font-weight: 800;
    font-size: .88rem;
    color: #fff;
    flex-shrink: 0;
}
.rf-rating-badge--excellent { background: linear-gradient(135deg, #059669, #10b981); }
.rf-rating-badge--good { background: linear-gradient(135deg, #0d7c4a, #34d399); }
.rf-rating-badge--average { background: linear-gradient(135deg, #d97706, #f59e0b); }
.rf-rating-badge--poor { background: linear-gradient(135deg, #dc2626, #ef4444); }

/* Rank Badge (Top 3) */
.rf-rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--rf-font-heading);
    font-weight: 800;
    font-size: .75rem;
    color: #fff;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.rf-rank-badge--1 { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.rf-rank-badge--2 { background: linear-gradient(135deg, #9ca3af, #d1d5db); color: #374151; }
.rf-rank-badge--3 { background: linear-gradient(135deg, #b45309, #d97706); }

/* Review Volume Bar */
.rf-review-bar {
    height: 3px;
    border-radius: 2px;
    background: var(--rf-border-light);
    margin-top: 8px;
    overflow: hidden;
}
.rf-review-bar-fill {
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--rf-primary), var(--rf-accent));
    transition: width .6s cubic-bezier(.22,.61,.36,1);
}

/* ===== REVIEW CARD ===== */
.rf-review-card {
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius-lg);
    padding: 22px;
    background: #fff;
    height: 100%;
    transition: all .3s cubic-bezier(.22,.61,.36,1);
}
.rf-review-card:hover {
    box-shadow: var(--rf-shadow-md);
    border-color: var(--rf-border-light);
}
.rf-review-card .review-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.rf-review-card .review-avatar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--rf-primary), var(--rf-primary-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: .82rem;
    flex-shrink: 0;
}
.rf-review-card .review-title {
    font-family: var(--rf-font-heading);
    font-weight: 600;
    font-size: .95rem;
    margin-bottom: 6px;
}
.rf-review-card .review-text {
    font-size: .88rem;
    color: var(--rf-text-light);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}
.rf-review-card .review-store {
    margin-top: auto;
    padding-top: 12px;
    font-size: .82rem;
    color: var(--rf-primary);
    font-weight: 500;
}
.rf-review-card .review-quote {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 2.5rem;
    color: var(--rf-primary);
    opacity: .06;
    font-family: Georgia, serif;
    line-height: 1;
    pointer-events: none;
}
.rf-review-card .review-time {
    font-size: .72rem;
    color: var(--rf-text-lighter);
    font-weight: 400;
}

/* ===== REVIEW CAROUSEL ===== */
.rf-review-carousel-wrap {
    position: relative;
}
.rf-review-carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scrollbar-width: none;
}
.rf-review-carousel::-webkit-scrollbar { display: none; }
.rf-review-carousel-item {
    scroll-snap-align: start;
    flex: 0 0 300px;
    min-width: 280px;
}
.rf-review-carousel .rf-review-card {
    position: relative;
}
.rf-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--rf-border);
    box-shadow: var(--rf-shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: all .2s ease;
    color: var(--rf-text);
    font-size: .9rem;
}
.rf-carousel-arrow:hover {
    background: var(--rf-primary);
    color: #fff;
    border-color: var(--rf-primary);
    box-shadow: var(--rf-shadow-lg);
}
.rf-carousel-arrow--left { left: -16px; }
.rf-carousel-arrow--right { right: -16px; }
@media (max-width: 768px) {
    .rf-carousel-arrow { display: none; }
    .rf-review-carousel-item { flex: 0 0 85vw; min-width: 260px; }
}

/* ===== COMMITMENT / TRUST ===== */
.rf-commitment {
    background: var(--rf-light-bg);
    padding: 64px 0;
    border-top: 1px solid var(--rf-border-light);
    border-bottom: 1px solid var(--rf-border-light);
}
.rf-commitment-card {
    background: #fff;
    border-radius: var(--rf-radius-lg);
    padding: 32px 28px;
    border: 1px solid var(--rf-border);
    height: 100%;
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
}
.rf-commitment-card:hover {
    box-shadow: var(--rf-shadow-md);
    border-color: transparent;
    transform: translateY(-2px);
}
.rf-commitment-card .rf-step-number {
    position: absolute;
    top: -8px;
    right: -4px;
    font-family: var(--rf-font-heading);
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    color: var(--rf-primary);
    opacity: .04;
    pointer-events: none;
    letter-spacing: -0.04em;
}
.rf-commitment-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--rf-primary-light), #d1fae5);
    color: var(--rf-primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 18px;
    transition: all .3s ease;
}
.rf-commitment-card:hover .rf-commitment-icon {
    background: linear-gradient(135deg, var(--rf-primary), var(--rf-primary-dark));
    color: #fff;
    transform: scale(1.05);
}

/* ===== BLOG CARD ===== */
.rf-blog-card {
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius-lg);
    overflow: hidden;
    background: #fff;
    height: 100%;
    transition: all .3s cubic-bezier(.22,.61,.36,1);
}
.rf-blog-card:hover {
    box-shadow: var(--rf-shadow-lg);
    border-color: transparent;
    transform: translateY(-3px);
}
.rf-blog-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}
.rf-blog-card .card-body {
    padding: 20px;
}
.rf-blog-card .card-title {
    font-family: var(--rf-font-heading);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -0.01em;
}
.rf-blog-card .card-text {
    font-size: .88rem;
    color: var(--rf-text-light);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

/* ===== FAQ ===== */
.rf-faq .accordion-item {
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius) !important;
    margin-bottom: 8px;
    overflow: hidden;
}
.rf-faq .accordion-button {
    font-family: var(--rf-font-heading);
    font-weight: 600;
    color: var(--rf-text);
    font-size: .95rem;
    padding: 16px 20px;
}
.rf-faq .accordion-button:not(.collapsed) {
    background: var(--rf-primary-light);
    color: var(--rf-primary);
    box-shadow: none;
}
.rf-faq .accordion-button:focus { box-shadow: none; }
.rf-faq .accordion-body {
    font-size: .9rem;
    line-height: 1.7;
    color: var(--rf-text-light);
}

/* ===== CREDIBLE SECTION ===== */
.rf-credible {
    background: var(--rf-dark);
    color: #fff;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.rf-credible::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 100%, rgba(13,124,74,.2) 0%, transparent 60%);
    pointer-events: none;
}
.rf-credible .container { position: relative; z-index: 1; }
.rf-credible h2 {
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.rf-credible p { opacity: .65; max-width: 560px; margin: 0 auto; font-size: .95rem; line-height: 1.7; }

/* ===== PAGE HEADER ===== */
.rf-page-header {
    background: var(--rf-dark);
    color: #fff;
    padding: 48px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.rf-page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(13,124,74,.12) 0%, transparent 60%);
    pointer-events: none;
}
.rf-page-header .container { position: relative; z-index: 1; }
.rf-page-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.03em;
}
.rf-page-header p {
    opacity: .6;
    font-size: .95rem;
}
.rf-breadcrumb {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: .85rem;
}
.rf-breadcrumb a { color: var(--rf-primary-muted); font-weight: 500; }
.rf-breadcrumb a:hover { color: #fff; }
.rf-breadcrumb span { opacity: .4; }

/* ===== STORE PAGE ===== */
.rf-store-header {
    background: var(--rf-dark);
    color: #fff;
    padding: 32px 0;
    position: relative;
    overflow: hidden;
}
.rf-store-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 20%, rgba(13,124,74,.1) 0%, transparent 50%);
    pointer-events: none;
}
.rf-store-header .container { position: relative; z-index: 1; }
.rf-store-header .store-logo {
    width: 200px;
    height: 150px;
    border-radius: 14px;
    border: 2px solid rgba(255, 255, 255, .15);
    object-fit: contain;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}
.rf-store-rating-box {
    background: var(--rf-primary);
    color: #fff;
    border-radius: var(--rf-radius-lg);
    padding: 24px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(13,124,74,.25);
}
.rf-store-rating-box .big-rating {
    font-family: var(--rf-font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
}
.rf-store-rating-box .rating-label {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 4px;
}
.rf-rating-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.rf-rating-bar label { width: 50px; font-size: .82rem; font-weight: 500; color: var(--rf-text-light); }
.rf-rating-bar .bar {
    flex: 1;
    height: 8px;
    background: var(--rf-border);
    border-radius: 4px;
    overflow: hidden;
}
.rf-rating-bar .bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--rf-primary), #34d399);
    border-radius: 4px;
    transition: width .6s cubic-bezier(.22,.61,.36,1);
}
.rf-rating-bar .pct { width: 40px; text-align: right; font-size: .82rem; color: var(--rf-text-light); font-weight: 500; }

/* ===== FILTER BAR ===== */
.rf-filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 16px 0;
    border-bottom: 1px solid var(--rf-border);
    margin-bottom: 24px;
}
.rf-filter-bar select,
.rf-filter-bar .btn-filter {
    border: 1px solid var(--rf-border);
    border-radius: 8px;
    padding: 8px 14px;
    font-size: .85rem;
    font-family: var(--rf-font-body);
    transition: all .2s ease;
}
.rf-filter-bar select:focus,
.rf-filter-bar .btn-filter:focus {
    border-color: var(--rf-primary);
    box-shadow: 0 0 0 3px rgba(13,124,74,.1);
}

/* ===== SIDEBAR ===== */
.rf-sidebar-card {
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius-lg);
    padding: 22px;
    margin-bottom: 20px;
    background: #fff;
}
.rf-sidebar-card h5 {
    font-family: var(--rf-font-heading);
    font-weight: 700;
    font-size: .95rem;
    margin-bottom: 16px;
    color: var(--rf-dark);
}

/* ===== RELATED STORE ===== */
.rf-related-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--rf-border-light);
}
.rf-related-item:last-child { border-bottom: none; }
.rf-related-item .name { font-weight: 600; font-size: .88rem; }
.rf-related-item .meta { font-size: .78rem; color: var(--rf-text-light); }

/* ===== FOOTER ===== */
.rf-footer {
    background: var(--rf-dark);
    color: rgba(255,255,255,.6);
    padding: 60px 0 24px;
    border-top: 1px solid rgba(255,255,255,.06);
}
.rf-footer h5 {
    color: #fff;
    font-family: var(--rf-font-heading);
    font-weight: 700;
    font-size: .9rem;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.rf-footer a {
    color: rgba(255,255,255,.55);
    display: block;
    margin-bottom: 10px;
    font-size: .88rem;
    transition: all .2s ease;
}
.rf-footer a:hover { color: #fff; transform: translateX(2px); }
.rf-footer hr { border-color: rgba(255,255,255,.08); margin: 32px 0 20px; }
.rf-footer .copyright {
    text-align: center;
    font-size: .82rem;
    opacity: .4;
}
.rf-footer-logo { height: 28px; width: auto; margin-bottom: 18px; opacity: .8; }
.rf-footer-desc { font-size: .85rem; line-height: 1.7; opacity: .5; }
.rf-footer .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,.06);
    border-radius: 8px;
    color: rgba(255,255,255,.6);
    margin-bottom: 0;
    transition: all .2s ease;
}
.rf-footer .social-link:hover {
    background: var(--rf-primary);
    color: #fff;
    transform: translateY(-2px);
}

/* ===== CATEGORY PAGE ===== */
.rf-cat-group {
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius-lg);
    padding: 26px;
    background: #fff;
    height: 100%;
    transition: all .3s ease;
}
.rf-cat-group:hover {
    box-shadow: var(--rf-shadow-md);
    border-color: transparent;
}
.rf-cat-group h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--rf-dark);
}
.rf-cat-group .cat-icon {
    width: 40px;
    height: 40px;
    background: var(--rf-primary-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rf-primary);
}
.rf-cat-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.rf-cat-group ul li {
    padding: 5px 0;
}
.rf-cat-group ul li a {
    color: var(--rf-text-light);
    font-size: .88rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all .2s ease;
}
.rf-cat-group ul li a:hover { color: var(--rf-primary); transform: translateX(2px); }
.rf-cat-group ul li a .fi { font-size: .65rem; color: var(--rf-primary); opacity: .6; }

/* ===== PAGINATION ===== */
.rf-pagination .page-link {
    color: var(--rf-text);
    border-color: var(--rf-border);
    border-radius: 8px;
    margin: 0 2px;
    font-size: .85rem;
    font-weight: 500;
    padding: 8px 14px;
    transition: all .2s ease;
}
.rf-pagination .page-link:hover {
    background: var(--rf-primary-light);
    border-color: var(--rf-primary);
    color: var(--rf-primary);
}
.rf-pagination .page-item.active .page-link {
    background: var(--rf-primary);
    border-color: var(--rf-primary);
    color: #fff;
    box-shadow: 0 2px 4px rgba(13,124,74,.2);
}

/* ===== STORE LIST ITEM ===== */
.rf-store-list-item {
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius-lg);
    padding: 22px;
    margin-bottom: 14px;
    background: #fff;
    display: flex;
    gap: 20px;
    align-items: center;
    transition: all .3s cubic-bezier(.22,.61,.36,1);
}
.rf-store-list-item:hover {
    box-shadow: var(--rf-shadow-lg);
    border-color: transparent;
    transform: translateY(-2px);
}
.rf-store-list-item .store-thumb {
    width: 100px;
    height: 70px;
    border-radius: var(--rf-radius);
    object-fit: cover;
    background: var(--rf-light-bg);
    flex-shrink: 0;
}
.rf-store-list-item .store-info { flex: 1; }
.rf-store-list-item .store-name {
    font-family: var(--rf-font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 4px;
}
.rf-store-list-item .store-meta {
    font-size: .82rem;
    color: var(--rf-text-light);
}

/* ===== DISCOVER MORE ===== */
.rf-discover-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--rf-border-light);
    color: var(--rf-text);
    font-size: .88rem;
    transition: all .2s ease;
}
.rf-discover-item:last-child { border-bottom: none; }
.rf-discover-item:hover { color: var(--rf-primary); padding-left: 4px; }

/* ===== CTA SECTION ===== */
.rf-cta-section {
    background: var(--rf-primary-light);
    border: 1px solid var(--rf-primary-muted);
    border-radius: var(--rf-radius-lg);
    padding: 48px;
    text-align: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .rf-hero h1 { font-size: 1.8rem; }
    .rf-hero { padding: 48px 0 40px; }
    .rf-hero .hero-stats { gap: 12px; }
    .rf-hero .hero-stat { padding: 12px 18px; }
    .rf-hero .hero-stat .stat-num { font-size: 1.2rem; }
    .rf-hero-orb--1 { width: 200px; height: 200px; }
    .rf-hero-orb--2 { width: 150px; height: 150px; }
    .rf-hero-orb--3 { width: 120px; height: 120px; }
    .rf-section { padding: 40px 0; }
    .rf-section-title { font-size: 1.35rem; }
    .rf-page-header h1 { font-size: 1.6rem; }
    .rf-store-list-item { flex-direction: column; text-align: center; }
    .rf-store-list-item .store-thumb { width: 100%; height: 120px; }
    .rf-credible { padding: 48px 0; }
    .rf-credible h2 { font-size: 1.5rem; }
    .rf-commitment-card { padding: 24px 20px; }
    .rf-commitment-card .rf-step-number { font-size: 3.5rem; }
    .rf-navbar { backdrop-filter: none; -webkit-backdrop-filter: none; }
    .rf-rank-badge { width: 24px; height: 24px; font-size: .68rem; top: 8px; left: 8px; }
    .rf-rating-badge { width: 32px; height: 32px; font-size: .78rem; border-radius: 8px; }
    .rf-cat-pills { gap: 6px; padding: 24px 0; }
    .rf-cat-pill { padding: 8px 14px; font-size: .8rem; }
    .rf-company-card .card-desc { display: none; }
}

/* ===== LOADING SKELETON ===== */
.rf-skeleton {
    position: relative;
    overflow: hidden;
    background: var(--rf-border-light);
    border-radius: 6px;
}
.rf-skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent);
    animation: rf-shimmer 1.5s ease-in-out infinite;
}
@keyframes rf-shimmer {
    to { transform: translateX(200%); }
}

/* ===== VERIFIED BADGE ===== */
.rf-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .75rem;
    font-weight: 600;
    color: var(--rf-primary);
    background: var(--rf-primary-light);
    padding: 2px 8px;
    border-radius: 100px;
}

/* ===== FOCUS STYLES ===== */
:focus-visible {
    outline: 2px solid var(--rf-primary);
    outline-offset: 2px;
}

/* ===== SMOOTH SCROLL ===== */
html { scroll-behavior: smooth; }

/* ===== SELECTION ===== */
::selection {
    background: var(--rf-primary-muted);
    color: var(--rf-dark);
}

/* ===== ADSENSE ===== */
.rf-ad { margin: 16px 0; overflow: hidden; }
/* Cap width so banners don't stretch to full viewport on wide screens */
.rf-ad-display { text-align: center; max-width: 970px; margin-left: auto; margin-right: auto; }
.rf-ad-inarticle { margin: 20px 0; }
.rf-ad-sidebar { position: sticky; top: 80px; margin-bottom: 20px; }
.rf-ad-multiplex { margin: 32px 0; }
/* Collapsed empty/blocked ad slots — removes the placeholder gap entirely */
.rf-ad-hidden { display: none !important; margin: 0 !important; padding: 0 !important; min-height: 0 !important; }
.rf-ad ins { background: transparent !important; }
@media (max-width: 767.98px) {
    .rf-ad { margin: 12px 0; }
    .rf-ad-sidebar { position: static; }
    .rf-ad-display { max-width: 100%; }
}

/* ── Ad skeleton loading ─────────────────────────────────────────────── */
/* Reserve height per ad type so the page doesn't jump when AdSense fills */
.rf-ad-skeleton                 { position: relative; min-height: 90px; border-radius: var(--rf-radius); }
.rf-ad-sidebar.rf-ad-skeleton   { min-height: 250px; }
.rf-ad-infeed.rf-ad-skeleton    { min-height: 200px; }
.rf-ad-inarticle.rf-ad-skeleton { min-height: 150px; }

/* Shimmer overlay that covers the <ins> while the slot is empty */
.rf-ad-skeleton .rf-ad-placeholder {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: var(--rf-radius);
    overflow: hidden;
    background: var(--rf-border-light);
    animation: rf-ad-shimmer 1.8s ease-in-out infinite;
}

/* Decorative bar above the label */
.rf-ad-skeleton .rf-ad-placeholder::before {
    content: '';
    width: 52px;
    height: 5px;
    border-radius: 3px;
    background: rgba(100, 116, 139, .20);
}

/* "Advertisement" text label */
.rf-ad-skeleton .rf-ad-placeholder::after {
    content: 'Advertisement';
    font-family: var(--rf-font-body);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--rf-text-lighter);
}

@keyframes rf-ad-shimmer {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.6; }
}

/* Once AdSense fills the slot, fade the skeleton out */
.rf-ad-loaded .rf-ad-placeholder {
    animation: rf-ad-fadeout .4s ease forwards;
    pointer-events: none;
}
@keyframes rf-ad-fadeout {
    to { opacity: 0; }
}

/* ===== TOAST Z-INDEX ===== */
.rf-toast-container { z-index: 9999; }

/* == css end == */
