/* =========================================================
   BUSINESS REVIEW SECTION
========================================================= */

:root {
    --frd-orange: #f6a21a;
    --frd-orange-dark: #ed8700;
    --frd-blue: #1e64bb;
    --frd-navy: #18345f;
    --frd-text: #263752;
    --frd-muted: #6e7b90;
    --frd-border: #dfe7f2;
    --frd-bg: #f5f8fc;
    --frd-white: #ffffff;
}

.frd-business-page {
    padding: 35px 20px 60px;
    background:
        radial-gradient(circle at top left, rgba(246, 162, 26, .08), transparent 30%),
        #f7f9fc;
    font-family: "Nunito", sans-serif;
    color: var(--frd-text);
}

.frd-layout {
    max-width: 1500px;
    margin: auto;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr) 280px;
    gap: 20px;
    align-items: start;
}

/* COMMON CARDS */

.frd-side-card,
.frd-business-header,
.frd-about-card,
.frd-review-item,
.frd-right-card,
.frd-join-card,
.frd-ad-card {
    background: #fff;
    border: 1px solid var(--frd-border);
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(31, 57, 94, .06);
}

.frd-side-card {
    padding: 20px;
    margin-bottom: 18px;
}

/* =========================================================
   LEFT PROFILE
========================================================= */

.frd-profile-card {
    text-align: center;
}

.frd-business-logo {
    width: 142px;
    height: 142px;
    margin: -8px auto 18px;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    background: #090d12;
    border: 4px solid var(--frd-orange);
    box-shadow: 0 8px 25px rgba(0,0,0,.14);
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
}

.frd-logo-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    border: 1px solid rgba(246,162,26,.4);
    border-radius: 50%;
}

.frd-logo-icon {
    font-size: 22px;
    margin-bottom: 4px;
}

.frd-business-logo strong {
    font-size: 44px;
    line-height: 1;
    color: var(--frd-orange);
    font-family: Georgia, serif;
}

.frd-business-logo small {
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-top: 8px;
}

.frd-profile-card h2 {
    font-size: 19px;
    line-height: 1.4;
    margin: 0 0 12px;
}

.frd-profile-card h2 i {
    color: var(--frd-blue);
    font-size: 16px;
}

.frd-main-rating {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.frd-stars {
    color: var(--frd-orange);
    font-size: 20px;
    letter-spacing: 2px;
}

.frd-rating-box {
    background: var(--frd-blue);
    color: #fff;
    padding: 6px 11px;
    border-radius: 6px;
    font-weight: 900;
}

.frd-review-count {
    text-align: left;
    font-size: 14px;
    font-weight: 700;
    margin: 13px 0 15px;
}

.frd-write-review {
    padding-top: 14px;
    width: 100%;
    min-height: 50px;
    border: none;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--frd-orange), #ff7e00);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: .25s;
}

.frd-write-review:hover,
.frd-membership-banner button:hover,
.frd-review-score-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(246,162,26,.25);
}

.frd-profile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}

.frd-outline-btn,
.frd-follow-top,
.frd-share-top {
    height: 40px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--frd-blue);
    color: var(--frd-blue);
    font-weight: 800;
    cursor: pointer;
}

.frd-rate-card h3,
.frd-similar-card h3,
.frd-claim-card h3,
.frd-right-card h3 {
    margin: 0 0 17px;
    font-size: 14px;
    color: var(--frd-navy);
}

.frd-rating-row {
    display: grid;
    grid-template-columns: 30px 1fr 35px;
    align-items: center;
    gap: 8px;
    margin-bottom: 13px;
    font-size: 13px;
}

.frd-rating-row span i {
    color: var(--frd-orange);
    font-size: 10px;
}

.frd-rating-row strong {
    font-size: 12px;
}

.frd-rating-track,
.frd-mini-progress {
    height: 8px;
    background: #e9edf3;
    border-radius: 20px;
    overflow: hidden;
}

.frd-rating-track b,
.frd-mini-progress b {
    display: block;
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(90deg, var(--frd-orange), #ff7b00);
}

.frd-card-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.frd-card-title a {
    font-size: 12px;
    color: var(--frd-blue);
    font-weight: 800;
    text-decoration: none;
}

.frd-similar-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    text-decoration: none;
    color: var(--frd-text);
    border-bottom: 1px solid #edf0f5;
}

.frd-similar-item:last-child {
    border-bottom: 0;
}

.frd-similar-item img {
    width: 55px;
    height: 55px;
    object-fit: cover;
    border-radius: 9px;
}

.frd-similar-item div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.frd-similar-item strong {
    font-size: 13px;
}

.frd-similar-item span {
    font-size: 12px;
}

.frd-similar-item span i {
    color: var(--frd-orange);
}

.frd-similar-item small {
    color: var(--frd-muted);
    font-size: 11px;
}

.frd-claim-card p {
    color: var(--frd-muted);
    font-size: 13px;
    line-height: 1.7;
}

.frd-claim-card button {
    width: 100%;
    height: 44px;
    border: 1px solid var(--frd-orange);
    color: var(--frd-orange-dark);
    background: #fff;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
}

/* =========================================================
   MAIN HEADER
========================================================= */

.frd-business-header {
    padding: 24px;
}

.frd-heading-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.frd-heading-row h1 {
    margin: 0 0 10px;
    font-size: 28px;
    color: var(--frd-navy);
}

.frd-heading-row h1 i {
    color: var(--frd-blue);
    font-size: 18px;
}

.frd-location {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--frd-muted);
}

.frd-location i {
    color: var(--frd-orange);
}

.frd-location a {
    color: var(--frd-blue);
    font-weight: 800;
    margin-left: 12px;
    text-decoration: none;
}

.frd-header-actions {
    display: flex;
    gap: 10px;
    white-space: nowrap;
}

.frd-follow-top {
    border-color: var(--frd-orange);
    color: var(--frd-orange-dark);
    padding: 0 16px;
}

.frd-share-top {
    padding: 0 16px;
}

/* SCORE */

.frd-score-card {
    margin-top: 20px;
    border: 1px solid var(--frd-border);
    border-radius: 16px;
    overflow: hidden;
    background: #fbfcfe;
}

.frd-score-top {
    display: flex;
    align-items: center;
    padding: 20px;
    gap: 20px;
}

.frd-score-block {
    min-width: 145px;
}

.frd-score-block > span {
    display: block;
    font-weight: 800;
    margin-bottom: 10px;
}

.frd-score-stars {
    color: var(--frd-orange);
    font-size: 20px;
}

.frd-star-muted {
    color: #cbd3df;
}

.frd-score-block small {
    display: block;
    margin-top: 8px;
    font-weight: 700;
}

.frd-score-divider {
    width: 1px;
    height: 55px;
    background: #dce3ec;
}

.frd-love-score {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 18px;
}

.frd-love-score i {
    color: #ef3f35;
}

.frd-score-number {
    text-align: center;
}

.frd-score-number strong {
    display: inline-block;
    padding: 10px 16px;
    background: var(--frd-blue);
    color: #fff;
    border-radius: 8px;
    font-size: 25px;
}

.frd-score-number small {
    display: block;
    margin-top: 6px;
}

.frd-followers {
    text-align: center;
    min-width: 100px;
}

.frd-followers > span {
    font-size: 13px;
    display: block;
    margin-bottom: 8px;
}

.frd-followers-images {
    display: flex;
    align-items: center;
    justify-content: center;
}

.frd-followers-images img {
    width: 29px;
    height: 29px;
    border-radius: 50%;
    border: 2px solid #fff;
    object-fit: cover;
    margin-left: -7px;
}

.frd-followers-images b {
    width: 30px;
    height: 30px;
    background: #edf1f7;
    border-radius: 50%;
    font-size: 10px;
    display: grid;
    place-items: center;
    margin-left: -5px;
}

.frd-score-bars {
    padding: 18px 20px;
    border-top: 1px solid var(--frd-border);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 17px 45px;
}

.frd-score-bars > div {
    display: grid;
    grid-template-columns: 135px 1fr 30px;
    gap: 10px;
    align-items: center;
    font-size: 12px;
}

.frd-score-bars strong {
    font-size: 13px;
}

.frd-updated-text {
    margin: 12px 0 0;
    font-size: 11px;
    color: var(--frd-muted);
}

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

.frd-tabs {
    margin: 14px 0;
    display: flex;
    overflow-x: auto;
    background: #fff;
    border: 1px solid var(--frd-border);
    border-radius: 13px;
}

.frd-tabs button {
    flex: 1;
    min-width: max-content;
    padding: 14px 20px;
    border: 0;
    background: transparent;
    color: var(--frd-text);
    font-weight: 700;
    cursor: pointer;
    border-bottom: 3px solid transparent;
}

.frd-tabs button.active {
    color: var(--frd-orange-dark);
    border-bottom-color: var(--frd-orange);
}

/* =========================================================
   ABOUT
========================================================= */

.frd-about-card {
    padding: 22px;
}

.frd-about-card h2 {
    margin: 0 0 10px;
    font-size: 20px;
}

.frd-about-card > p {
    color: #52627a;
    font-size: 13px;
    line-height: 1.8;
}

.frd-about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 20px;
}

.frd-about-features > div {
    display: flex;
    gap: 10px;
}

.frd-about-features > div > i {
    color: var(--frd-orange);
    font-size: 21px;
}

.frd-about-features section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.frd-about-features strong {
    font-size: 13px;
}

.frd-about-features span {
    font-size: 11px;
    line-height: 1.5;
    color: var(--frd-muted);
}

.frd-view-more {
    display: block;
    margin: 17px auto 0;
    background: transparent;
    border: 0;
    color: var(--frd-blue);
    font-weight: 800;
    cursor: pointer;
}

/* =========================================================
   MEMBERSHIP
========================================================= */

.frd-membership-banner {
    margin: 15px 0;
    min-height: 75px;
    padding: 14px 22px;
    border-radius: 13px;
    background: linear-gradient(135deg, #1e64bb, #183b76);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 18px;
}

.frd-member-brand {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 23px;
}

.frd-member-brand i {
    color: var(--frd-orange);
}

.frd-membership-banner > div:nth-child(2) {
    flex: 1;
}

.frd-membership-banner strong,
.frd-membership-banner small {
    display: block;
}

.frd-membership-banner small {
    margin-top: 5px;
    font-size: 9px;
    opacity: .8;
}

.frd-membership-banner button {
    border: 0;
    background: var(--frd-orange);
    color: #fff;
    padding: 11px 18px;
    border-radius: 8px;
    font-weight: 900;
    cursor: pointer;
    transition: .25s;
}

/* =========================================================
   REVIEW FILTER
========================================================= */

.frd-review-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
}

.frd-review-heading h2 {
    margin: 0;
    font-size: 19px;
}

.frd-review-heading h2 span {
    font-size: 14px;
}

.frd-review-search {
    display: flex;
    gap: 8px;
}

.frd-review-search > div {
    width: 250px;
    height: 40px;
    display: flex;
    align-items: center;
    padding: 0 13px;
    gap: 9px;
    background: #fff;
    border: 1px solid var(--frd-border);
    border-radius: 8px;
}

.frd-review-search input {
    width: 100%;
    border: 0;
    outline: 0;
    font-family: inherit;
}

.frd-review-search button {
    width: 40px;
    border: 1px solid var(--frd-border);
    background: #fff;
    border-radius: 8px;
    color: var(--frd-blue);
    cursor: pointer;
}

.frd-filter-buttons {
    display: flex;
    gap: 8px;
    margin: 15px 0;
    overflow-x: auto;
}

.frd-filter-buttons button {
    white-space: nowrap;
    padding: 9px 16px;
    border-radius: 8px;
    border: 1px solid #cfd8e5;
    background: #fff;
    color: var(--frd-text);
    font-weight: 700;
    cursor: pointer;
}

.frd-filter-buttons button.active {
    background: var(--frd-orange);
    color: #fff;
    border-color: var(--frd-orange);
}

/* =========================================================
   SUMMARY
========================================================= */

.frd-review-summary {
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: 12px;
}

.frd-summary-card,
.frd-review-score-box {
    background: #fff;
    border: 1px solid var(--frd-border);
    border-radius: 14px;
    padding: 20px;
}

.frd-summary-card h3 {
    margin: 0 0 15px;
    font-size: 13px;
}

.frd-summary-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.frd-summary-columns div {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.frd-summary-columns strong {
    font-size: 12px;
    color: #249254;
}

.frd-summary-columns span {
    font-size: 12px;
    color: #536177;
}

.frd-cons strong {
    color: #e24a3e;
}

.frd-review-score-box {
    text-align: center;
}

.frd-review-score-box small {
    font-weight: 700;
}

.frd-review-score-box > strong {
    display: block;
    font-size: 30px;
    color: var(--frd-navy);
    margin: 6px 0;
}

.frd-big-stars {
    color: var(--frd-orange);
    letter-spacing: 2px;
}

.frd-big-stars span {
    color: #cbd3df;
}

.frd-review-score-box button {
    width: 100%;
    margin-top: 13px;
    border: 0;
    background: var(--frd-orange);
    color: #fff;
    border-radius: 8px;
    padding: 11px;
    font-weight: 800;
    cursor: pointer;
}

/* =========================================================
   REVIEW ITEMS
========================================================= */

.frd-review-item {
    padding: 18px;
    margin-top: 14px;
    display: grid;
    grid-template-columns: 115px 1fr;
    gap: 18px;
}

.frd-review-user {
    text-align: center;
}

.frd-review-user img {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 7px;
}

.frd-review-user strong,
.frd-review-user small {
    display: block;
}

.frd-review-user strong {
    font-size: 13px;
}

.frd-review-user small {
    margin-top: 4px;
    font-size: 10px;
    color: var(--frd-muted);
}

.frd-review-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.frd-review-stars-text {
    color: var(--frd-orange);
    letter-spacing: 1px;
    font-size: 15px;
}

.frd-review-stars-text b {
    color: var(--frd-blue);
    margin-left: 7px;
}

.frd-empty-star {
    color: #cfd7e1;
}

.frd-review-meta small {
    color: var(--frd-muted);
}

.frd-review-body h3 {
    margin: 8px 0;
    font-size: 16px;
}

.frd-review-body p {
    margin: 0;
    color: #59687c;
    font-size: 13px;
    line-height: 1.7;
}

.frd-review-photos {
    display: flex;
    gap: 8px;
    margin: 12px 0;
}

.frd-review-photos img {
    width: 72px;
    height: 52px;
    object-fit: cover;
    border-radius: 7px;
}

.frd-review-actions {
    display: flex;
    gap: 25px;
}

.frd-review-actions button {
    border: 0;
    background: transparent;
    color: var(--frd-blue);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

/* =========================================================
   RIGHT SIDEBAR
========================================================= */

.frd-ad-card {
    min-height: 530px;
    margin-bottom: 18px;
    position: relative;
    overflow: hidden;
    padding: 40px 24px;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(10,52,116,.78), rgba(10,40,90,.35)),
        url("https://images.unsplash.com/photo-1544735716-392fe2489ffa?w=800") center/cover;
}

.frd-ad-card::after {
    content: "";
    position: absolute;
    width: 230px;
    height: 230px;
    right: -130px;
    top: -90px;
    border-radius: 50%;
    background: var(--frd-orange);
}

.frd-ad-card > * {
    position: relative;
    z-index: 2;
}

.frd-ad-label {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--frd-orange);
    padding: 5px 7px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 900;
}

.frd-ad-brand {
    text-align: center;
    font-size: 18px;
    margin-bottom: 60px;
}

.frd-ad-brand b {
    background: #f4512c;
    padding: 4px 7px;
    border-radius: 7px;
    font-style: italic;
}

.frd-ad-card h2 {
    font-size: 26px;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.frd-ad-card p {
    margin-bottom: 0;
}

.frd-ad-card > strong {
    font-size: 42px;
    display: block;
    line-height: 1;
}

.frd-ad-card > strong small {
    font-size: 18px;
    margin-left: 5px;
}

.frd-ad-card > span:not(.frd-ad-label) {
    display: block;
    margin-top: 8px;
    font-size: 17px;
}

.frd-ad-card button {
    margin-top: 20px;
    background: var(--frd-orange);
    border: 0;
    color: #fff;
    padding: 11px 18px;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
}

.frd-right-card {
    padding: 20px;
    margin-bottom: 18px;
}

.frd-social-icons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 18px;
}

.frd-social-icons a {
    text-decoration: none;
    text-align: center;
    font-size: 9px;
    color: var(--frd-text);
}

.frd-social-icons i {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    margin: auto auto 5px;
    color: #fff;
    font-size: 17px;
}

.frd-whatsapp i {
    background: #20b95a;
}

.frd-facebook i {
    background: #315995;
}

.frd-twitter i {
    background: #111;
}

.frd-email i {
    background: var(--frd-blue);
}

.frd-right-card label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 7px;
}

.frd-copy-link {
    height: 38px;
    display: flex;
    border: 1px solid var(--frd-border);
    border-radius: 7px;
    overflow: hidden;
}

.frd-copy-link input {
    width: 100%;
    min-width: 0;
    border: 0;
    padding: 0 8px;
    font-size: 8px;
    outline: 0;
}

.frd-copy-btn {
    width: 38px;
    border: 0;
    background: #fff;
    color: var(--frd-blue);
    cursor: pointer;
}

.frd-save-card p,
.frd-right-card > p {
    font-size: 12px;
    color: var(--frd-muted);
    line-height: 1.6;
}

.frd-save-card button {
    width: 100%;
    min-height: 45px;
    background: #fff;
    border: 1px solid var(--frd-orange);
    border-radius: 8px;
    color: var(--frd-orange-dark);
    font-weight: 900;
    cursor: pointer;
}

.frd-media-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.frd-media-buttons button {
    min-height: 75px;
    border: 1px solid var(--frd-border);
    background: #f9fbfe;
    border-radius: 10px;
    color: var(--frd-blue);
    font-weight: 700;
    cursor: pointer;
}

.frd-media-buttons i {
    display: block;
    font-size: 22px;
    margin-bottom: 8px;
}

.frd-join-card {
    padding: 25px 20px;
    text-align: center;
    background: linear-gradient(135deg, #fffaf0, #fff3d7);
}

.frd-join-card > div {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    background: var(--frd-orange);
    color: #fff;
    border-radius: 50%;
    margin: auto;
}

.frd-join-card h2 {
    margin: 13px 0 8px;
    font-size: 17px;
}

.frd-join-card p {
    font-size: 12px;
    line-height: 1.7;
    color: #58677b;
}

.frd-join-card button {
    margin-top: 5px;
    width: 80%;
    height: 43px;
    background: #fff;
    border: 1px solid var(--frd-orange);
    color: var(--frd-orange-dark);
    border-radius: 8px;
    font-weight: 900;
    cursor: pointer;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1200px) {

    .frd-layout {
        grid-template-columns: 250px minmax(0, 1fr);
    }

    .frd-sidebar-right {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .frd-ad-card {
        grid-row: span 2;
        min-height: auto;
    }

    .frd-right-card,
    .frd-join-card {
        margin-bottom: 0;
    }

    .frd-join-card {
        grid-column: span 2;
    }
}

@media (max-width: 900px) {

    .frd-layout {
        grid-template-columns: 1fr;
    }

    .frd-sidebar-left {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .frd-side-card {
        margin-bottom: 0;
    }

    .frd-heading-row {
        flex-direction: column;
    }

    .frd-score-top {
        flex-wrap: wrap;
    }

    .frd-score-divider {
        display: none;
    }

    .frd-score-bars {
        grid-template-columns: 1fr;
    }

    .frd-sidebar-right {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {

    .frd-business-page {
        padding: 20px 12px 40px;
    }

    .frd-sidebar-left,
    .frd-sidebar-right {
        display: block;
    }

    .frd-side-card,
    .frd-right-card,
    .frd-ad-card,
    .frd-join-card {
        margin-bottom: 15px;
    }

    .frd-heading-row h1 {
        font-size: 22px;
    }

    .frd-header-actions {
        width: 100%;
    }

    .frd-header-actions button {
        flex: 1;
    }

    .frd-score-top {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .frd-score-block {
        grid-column: 1 / -1;
    }

    .frd-about-features,
    .frd-review-summary {
        grid-template-columns: 1fr;
    }

    .frd-review-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .frd-review-search {
        width: 100%;
    }

    .frd-review-search > div {
        width: 100%;
    }

    .frd-review-item {
        grid-template-columns: 1fr;
    }

    .frd-review-user {
        display: flex;
        text-align: left;
        align-items: center;
        gap: 10px;
    }

    .frd-review-user img {
        margin: 0;
    }

    .frd-review-actions {
        justify-content: space-between;
        gap: 5px;
        flex-wrap: wrap;
    }

    .frd-membership-banner {
        flex-wrap: wrap;
    }

    .frd-membership-banner button {
        width: 100%;
    }
}

/* =========================================================
   MODERN SCREENSHOT-MATCH OVERRIDES
   FirmsReviews business review page
========================================================= */
.frd-business-page {
    padding: 24px 15px 38px;
    background: #f4f7fb;
    color: #18345f;
}
.frd-layout {
    max-width: 1800px;
    grid-template-columns: minmax(235px, 270px) minmax(0, 1fr) minmax(220px, 250px);
    gap: 18px;
}
.frd-side-card,
.frd-business-header,
.frd-about-card,
.frd-review-item,
.frd-right-card,
.frd-join-card,
.frd-ad-card {
    border: 1px solid #dce6f4;
    border-radius: 17px;
    box-shadow: 0 7px 24px rgba(25, 58, 102, .045);
}
.frd-side-card { padding: 18px; margin-bottom: 16px; }
.frd-profile-card { padding: 20px 17px 18px; }
.frd-business-logo {
    width: 128px;
    height: 128px;
    margin: -8px auto 14px;
    border-width: 3px;
    box-shadow: 0 10px 24px rgba(18, 43, 77, .12);
}
.frd-business-logo strong { font-size: 39px; }
.frd-profile-card h2 {
    color: #17365f;
    font-size: 18px;
    margin-bottom: 8px;
}
.frd-profile-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0 0 12px;
    color: #6e7b90;
    font-size: 12px;
    line-height: 1.45;
}
.frd-profile-location i { color: #f6a21a; }
.frd-main-rating { gap: 10px; }
.frd-stars { font-size: 19px; letter-spacing: 1px; }
.frd-rating-box {
    padding: 6px 10px;
    border-radius: 6px;
    background: #2166bd;
}
.frd-review-count {
    font-size: 12px;
    font-weight: 600;
    margin: 10px 0 14px;
}
.frd-profile-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 12px;
}
.frd-profile-actions .frd-write-review,
.frd-profile-actions .frd-outline-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    min-height: 43px;
    padding: 10px 12px;
    border: 1px solid #2166bd;
    border-radius: 9px;
    background: #fff;
    color: #2166bd;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.frd-profile-actions .frd-write-review:first-child {
    border-color: #f6a21a;
    background: #f6a21a;
    color: #fff;
}
.frd-profile-actions .frd-write-review:hover,
.frd-profile-actions .frd-outline-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(30, 100, 187, .12);
}
.frd-rate-card h3,
.frd-similar-card h3,
.frd-claim-card h3,
.frd-right-card h3 {
    margin-bottom: 16px;
    font-size: 13px;
    letter-spacing: .15px;
}
.frd-rating-row {
    grid-template-columns: 28px minmax(0, 1fr) 22px;
    gap: 7px;
    margin-bottom: 12px;
    font-size: 12px;
}
.frd-rating-track,
.frd-mini-progress { height: 7px; background: #e8edf4; }
.frd-rating-track b,
.frd-mini-progress b { background: #f6a21a; }
.frd-business-header { padding: 22px; }
.frd-heading-row h1 {
    font-size: 25px;
    letter-spacing: -.35px;
    color: #17365f;
}
.frd-location { font-size: 12px; }
.frd-score-card {
    margin-top: 17px;
    border-radius: 15px;
    background: #fbfcfe;
}
.frd-score-top {
    padding: 18px;
    gap: 17px;
    min-height: 112px;
}
.frd-score-block { min-width: 138px; }
.frd-score-block > span { font-size: 14px; }
.frd-score-stars { font-size: 20px; }
.frd-score-block small { font-size: 12px; }
.frd-score-divider { background: #dce4ef; }
.frd-love-score { font-size: 16px; white-space: nowrap; }
.frd-score-number strong {
    padding: 9px 14px;
    border-radius: 8px;
    background: #2166bd;
    font-size: 23px;
}
.frd-score-number small { font-size: 11px; }
.frd-followers { font-size: 12px; }
.frd-score-bars {
    padding: 17px 18px;
    gap: 17px 28px;
    background: #fff;
}
.frd-score-bars > div {
    grid-template-columns: minmax(105px, 125px) minmax(50px, 1fr) 28px;
    gap: 9px;
    font-size: 11px;
}
.frd-score-bars strong { font-size: 12px; }
.frd-updated-text { font-size: 11px; }
.frd-review-heading { margin-top: 19px; gap: 14px; }
.frd-review-heading h2 { font-size: 18px; color: #17365f; }
.frd-review-search > div {
    width: 225px;
    height: 38px;
    border-radius: 8px;
}
.frd-review-search input { font-size: 13px; }
.frd-review-search button { width: 38px; border-radius: 8px; }
.frd-filter-buttons { gap: 7px; margin: 13px 0; }
.frd-filter-buttons button {
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 12px;
}
.frd-filter-buttons button.active {
    background: #f6a21a;
    border-color: #f6a21a;
}
.frd-review-item {
    padding: 18px;
    border-radius: 14px;
}
.frd-review-body h3 { color: #17365f; }
.frd-review-body p { font-size: 13px; line-height: 1.7; }
.frd-ad-card {
    min-height: 475px;
    border-radius: 16px;
    padding: 38px 20px;
    background:
        linear-gradient(180deg, rgba(9, 43, 89, .56), rgba(7, 31, 63, .32)),
        url("https://images.unsplash.com/photo-1544735716-392fe2489ffa?w=800") center/cover;
}
.frd-ad-card h2 { font-size: 24px; line-height: 1.25; letter-spacing: .2px; }
.frd-ad-card > strong { font-size: 39px; }
.frd-ad-card > span:not(.frd-ad-label) { font-size: 15px; }
.frd-ad-card button {
    background: #f6a21a;
    border-radius: 8px;
    padding: 11px 16px;
}
.frd-similar-item { gap: 9px; }
.frd-similar-item img { width: 48px; height: 48px; }
.frd-similar-item strong { font-size: 12px; }
.frd-similar-item span { font-size: 11px; }
.frd-similar-item small { font-size: 10px; }

/* Empty state styled as a deliberate panel instead of a plain message. */
.frd-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-height: 130px;
    padding: 22px;
    border: 1px dashed #d7e3f3;
    border-radius: 13px;
    background: #fbfdff;
    text-align: left;
}
.frd-empty-icon {
    display: grid;
    place-items: center;
    flex: 0 0 76px;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: #edf4fc;
    color: #2166bd;
    font-size: 30px;
}
.frd-empty-state h3 { margin: 0 0 5px; color: #17365f; font-size: 17px; }
.frd-empty-state p { margin: 0; color: #53647b; font-size: 12px; line-height: 1.6; }
.frd-empty-state a {
    display: inline-flex;
    margin-top: 9px;
    padding: 8px 13px;
    border: 1px solid #2166bd;
    border-radius: 8px;
    color: #2166bd;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}
.frd-page-error {
    margin: 0 0 12px;
    padding: 15px 17px;
    border: 1px solid #ffc4c7;
    border-radius: 14px;
    background: #fff7f7;
    color: #c52828;
    font-size: 13px;
}
.frd-page-error a { display: inline-block; margin-top: 8px; color: #2166bd; font-weight: 800; }

@media (min-width: 1500px) {
    .frd-layout { grid-template-columns: 380px minmax(0, 1fr) 350px; gap: 20px; }
    .frd-side-card { padding: 24px; }
    .frd-business-logo { width: 150px; height: 150px; }
    .frd-profile-actions .frd-write-review,
    .frd-profile-actions .frd-outline-btn { min-height: 48px; font-size: 14px; }
}
@media (max-width: 1100px) {
    .frd-layout { grid-template-columns: 240px minmax(0, 1fr); }
    .frd-sidebar-right { grid-column: 1 / -1; }
    .frd-ad-card { min-height: 300px; background-position: center 45%; }
    .frd-ad-brand { margin-bottom: 28px; }
}
@media (max-width: 760px) {
    .frd-business-page { padding: 15px 10px 28px; }
    .frd-layout { display: flex; flex-direction: column; gap: 14px; }
    .frd-sidebar-left, .frd-main-content, .frd-sidebar-right { width: 100%; min-width: 0; }
    .frd-business-header { padding: 17px; }
    .frd-heading-row h1 { font-size: 22px; }
    .frd-score-top { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
    .frd-score-block { grid-column: 1 / -1; }
    .frd-score-divider { display: none; }
    .frd-love-score, .frd-score-number, .frd-followers { justify-self: start; }
    .frd-score-bars { grid-template-columns: 1fr; gap: 15px; }
    .frd-score-bars > div { grid-template-columns: minmax(100px, 1fr) minmax(65px, 1.2fr) 28px; }
    .frd-review-heading { align-items: stretch; flex-direction: column; }
    .frd-review-search { width: 100%; }
    .frd-review-search > div { width: 100%; }
    .frd-filter-buttons { padding-bottom: 3px; }
    .frd-empty-state { justify-content: flex-start; gap: 12px; padding: 16px; }
    .frd-empty-icon { flex-basis: 54px; width: 54px; height: 54px; font-size: 23px; }
    .frd-ad-card { min-height: 380px; }
}
@media (max-width: 420px) {
    .frd-main-rating { gap: 7px; }
    .frd-stars { font-size: 17px; letter-spacing: 0; }
    .frd-rating-box { padding: 5px 8px; }
    .frd-profile-actions { grid-template-columns: 1fr; }
    .frd-score-bars > div { grid-template-columns: 1fr 1fr 25px; }
    .frd-empty-state { align-items: flex-start; }
}


/* FIRMSREVIEWS — SCREENSHOT MATCH DESIGN */

.frd-business-page {
    padding: 24px 15px 38px;
    background: #f4f7fb;
    color: #18345f;
    font-family: "Nunito", sans-serif;
}

.frd-layout {
    max-width: 1800px;
    margin: auto;
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr) 250px;
    gap: 18px;
    align-items: start;
}

.frd-side-card,
.frd-business-header,
.frd-review-item,
.frd-right-card,
.frd-ad-card {
    background: #fff;
    border: 1px solid #dce6f4;
    border-radius: 17px;
    box-shadow: 0 7px 24px rgba(25, 58, 102, .045);
}

.frd-side-card {
    padding: 18px;
    margin-bottom: 16px;
}

.frd-profile-card {
    text-align: center;
    padding: 20px 17px 18px;
}

.frd-business-logo {
    width: 128px;
    height: 128px;
    margin: -8px auto 14px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #f6a21a;
    background: #090d12;
    box-shadow: 0 10px 24px rgba(18, 43, 77, .12);
}

.frd-profile-card h2,
.frd-heading-row h1 {
    color: #17365f;
}

.frd-profile-card h2 {
    font-size: 18px;
    margin-bottom: 8px;
}

.frd-main-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.frd-stars,
.frd-score-stars {
    color: #f6a21a;
    font-size: 20px;
}

.frd-rating-box,
.frd-score-number strong {
    background: #2166bd;
    color: #fff;
    border-radius: 8px;
    padding: 8px 12px;
    font-weight: 800;
}

.frd-profile-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 12px;
}

.frd-profile-actions .frd-write-review {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    min-height: 44px;
    padding: 10px;
    border-radius: 9px;
    background: #f6a21a;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.frd-profile-actions .frd-write-review + .frd-write-review {
    background: #fff;
    color: #2166bd;
    border: 1px solid #2166bd;
}

.frd-business-header {
    padding: 22px;
}

.frd-heading-row h1 {
    font-size: 25px;
    margin: 0 0 10px;
}

.frd-location {
    color: #6e7b90;
    font-size: 12px;
}

.frd-location i {
    color: #f6a21a;
}

.frd-score-card {
    margin-top: 17px;
    border: 1px solid #dce6f4;
    border-radius: 15px;
    overflow: hidden;
    background: #fbfcfe;
}

.frd-score-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 17px;
    padding: 18px;
}

.frd-score-divider {
    width: 1px;
    height: 55px;
    background: #dce4ef;
}

.frd-score-number strong {
    display: inline-block;
    font-size: 23px;
}

.frd-score-bars {
    padding: 17px 18px;
    border-top: 1px solid #dce6f4;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 17px 28px;
    background: #fff;
}

.frd-score-bars > div {
    display: grid;
    grid-template-columns: minmax(105px, 125px) minmax(50px, 1fr) 28px;
    align-items: center;
    gap: 9px;
    font-size: 11px;
}

.frd-mini-progress,
.frd-rating-track {
    height: 7px;
    overflow: hidden;
    border-radius: 20px;
    background: #e8edf4;
}

.frd-mini-progress b,
.frd-rating-track b {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #f6a21a;
}

.frd-review-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-top: 19px;
}

.frd-review-heading h2 {
    color: #17365f;
    font-size: 18px;
}

.frd-filter-buttons {
    display: flex;
    gap: 7px;
    margin: 13px 0;
    overflow-x: auto;
}

.frd-filter-buttons button {
    padding: 9px 14px;
    white-space: nowrap;
    border: 1px solid #d1dceb;
    border-radius: 8px;
    background: #fff;
    color: #18345f;
    font-weight: 700;
    cursor: pointer;
}

.frd-filter-buttons button.active {
    color: #fff;
    background: #f6a21a;
    border-color: #f6a21a;
}

.frd-review-search > div {
    width: 225px;
    height: 38px;
    border: 1px solid #dce6f4;
    border-radius: 8px;
    background: #fff;
}

.frd-ad-card {
    min-height: 475px;
    padding: 38px 20px;
    overflow: hidden;
    position: relative;
    border-radius: 16px;
    color: #fff;
    background:
        linear-gradient(
            180deg,
            rgba(9, 43, 89, .56),
            rgba(7, 31, 63, .32)
        ),
        url("https://images.unsplash.com/photo-1544735716-392fe2489ffa?w=800")
        center / cover;
}

.frd-ad-card h2 {
    font-size: 24px;
    line-height: 1.25;
}

.frd-ad-card > strong {
    display: block;
    font-size: 39px;
}

.frd-ad-card button {
    margin-top: 20px;
    padding: 11px 16px;
    border: 0;
    border-radius: 8px;
    background: #f6a21a;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

@media (max-width: 1100px) {
    .frd-layout {
        grid-template-columns: 240px minmax(0, 1fr);
    }

    .frd-sidebar-right {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .frd-business-page {
        padding: 15px 10px 28px;
    }

    .frd-layout {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .frd-sidebar-left,
    .frd-main-content,
    .frd-sidebar-right {
        width: 100%;
        min-width: 0;
    }

    .frd-score-top {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .frd-score-block {
        grid-column: 1 / -1;
    }

    .frd-score-divider {
        display: none;
    }

    .frd-score-bars {
        grid-template-columns: 1fr;
    }

    .frd-review-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .frd-review-search > div {
        width: 100%;
    }
}
