﻿:root {
    --navy: #090958; /* رنگ هدر / هیرو (طبق طرح) */
    --navy-dark: #1e1e5c;
    --navy-title-section: #072474;
    --accent: #e7ecf3; /* رنگ ستون کناری (طبق طرح - قابل تغییر به رنگ برند) */
    --main-bg: #6f9bc4; /* رنگ باکس محتوای اصلی (طبق طرح - جایگزین با محتوای واقعی) */
    --page-bg: #eef0f5;
    --border_b: #1a1a1a;
    --border: #e7e9f1;
    --gap: 24px;
    --gap-18: 18px;
    --topgap: 40px;
    --top-mrg: 60px;
    --top-mrg-24: 24px;
    --hero-height: 280px;
    --hero-height-mobile: 280px;
    --sidebar-overlap: 280px; /* میزان بالا رفتن سایدبار داخل هیرو */
    --sidebar-width: 280px;
    --hero-blank-width: 345px;
    --hero-width: 1360px;
    --text: #1c2340;
    --blue: #2f5fe0;
    --blue-soft: #eaf0fe;
    --green-text: #17910e;
    --green-bkg: #ddffd5;
    --muted: #8a8fa3;
    --pill-bg: #f4f5f9;
    --default-text: #3a4047;
    --card-desc: #949aa4;
    --tag-green-bg: #e3f9db;
    --tag-green-border: #bfe6b2;
    --tag-green-text: #2f6e2b;
    --tag-amber-bg: #fff1e2;
    --tag-amber-border: #ffd9ab;
    --tag-amber-text: #b5560a;
    /*--------------------------*/
    --navy: #0f1b3d;
    --navy-2: #16234d;
    --blue: #ff7a30;
    --orang-soft: #fff1e6;
    --border: #e7e9f1;
    --muted: #6f7385; /*#8a8fa3;*/
    --pill-bg: #f4f5f9;
    --text: #1c2340;
    --bg: #f6f7fb;
    --card-bg: #ffffff;
    --crm-1: #0f4c3a;
    --crm-2: #0d9488;
    --crm-soft: #e6f5f1;
    --radius-lg: 18px;
    --radius-md: 12px;
    --btn-mrg: 45px;
}
/* ---------- HERO ---------- */

body {
    color: var(--default-text);
    overflow-x: hidden;
}

span {
    font-family: Vazirmatn !important;
}



/* ---------- LAYOUT (main + sidebar) ---------- */
.layout {
    position: relative;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 var(--gap);
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: var(--gap);
}



.main-content {
    flex: 1 1 auto;
    min-height: 420px;
    margin-top: var(--gap);
    padding: 0px var(--gap);
    border-radius: 4px;
}

.main-content h1{
  color: var(--blue-soft);
}

@media(max-width:640px) {
    .layout {
        position: relative;
        max-width: 1360px;
        margin: 0 auto;
        padding: 0px;
        display: grid;
        grid-template-columns: 1fr;
        gap: var(--gap);
    }

    .main-content {
        flex: 1 1 auto;
        min-height: 420px;
        margin-top: 2px;
        border-radius: 4px;
        padding: 10px 0px;
    }
}

.wrap {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    margin-bottom:45px;
    
}

.wrap-mrg-top {
    margin-top: 70px;
}

.wrap-mrg-top-2x {
    margin-top: 100px;
}

#apex_chart_div {
    min-height: 550px;
    overflow: scroll;
   
}

.nav-arrow {
    position: absolute;
    right: -46px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 52px;
    background: var(--navy);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .nav-arrow svg {
        width: 14px;
        height: 14px;
    }

.section-page {
    --m-navy-dark: #0D1B2A;
    --m-navy: #18467A;
    --m-amber: #f5821f;
    --m-green: #1B7A5B;
    --m-green-bg: #E6F4EE;
    --m-bg: #F4F6F9;
    --m-card-bg: #FFFFFF;
    --m-text-muted: #6B7A90;
    --m-border: #E4E9EF;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    direction: rtl;
    /* background: var(--m-bg); */
    padding: 10px 0px;
    box-sizing: border-box;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin:10px 1px;
}



.grid-2clm {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.grid-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: var(--top-mrg-24);
}

@media (max-width:759px) {
    .grid-2clm {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 18px;
        margin:5px 20px;
    }

    .grid-list {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 24px;
    }
}

.card-g {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px 18px 16px;
    display: flex;
    flex-direction: column;
    min-width: 0; /* مهم‌ترین خط برای رفع مشکل */
    height: 100%;
}

/*
        .card-sh-h {
            background: #fff;
            border: 1px solid var(--border);
            border-radius: 14px;
            padding: 20px 18px 16px;
            display: flex;
            flex-direction: column;
           /* مهم‌ترین خط برای رفع مشکل
            max-height: 120px;
        }
        */

.card-sh-h {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    border: 1px solid #e9ecf1;
    border-radius: 16px;
    background: #fff;
    min-width: 0;
    overflow:hidden;
}

.card-content {
    flex: 1;
    min-width: 0; /* برای جلوگیری از overflow متن */
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    flex-direction: row;
}

.card-sh-h .card-content .card-header {
    margin-bottom: 0px !important;
}

.icon-badge {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--blue-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .icon-badge svg {
        width: 18px;
        height: 18px;
        stroke: var(--blue);
    }

.card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    white-space: nowrap;
}

.card-image {
    width: 88px;
    height: 88px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #eef0f3;
}

.card-desc {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--card-desc);
    margin-right: 45px;
}

.card-tag-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    flex-wrap: nowrap;
}

.card-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 26px;
    padding: 0 14px;
    border-radius: 24px;
    white-space: nowrap;
    width: fit-content;
    background: var(--tag-green-bg);
    border: 1px solid var(--tag-green-border);
}

    .card-tag.card-tag--location {
        background: var(--tag-amber-bg);
        border-color: var(--tag-amber-border);
    }

        .card-tag.card-tag--location .card-tag-desc {
            color: var(--tag-amber-text);
        }

    .card-tag.card-tag-DateReg {
        background: #eaf0fe;
        border-color: #d8dff0;
    }

        .card-tag.card-tag-DateReg .card-tag-desc {
            color: #a5afb8;
        }

.card-tag-desc {
    font-size: 11px;
    padding: 0px;
    font-weight: 500;
    color: #85997e;
}


.list {
   
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    flex: 1; /* کل فضای خالی بین هدر و فوتر کارت را اشغال می‌کند */
}

    .list li {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        min-width: 0; /* اجازه بده li هم جمع بشه */
        flex: 1; 

}



 

    .list li:nth-child(odd) {
        background: #fafbfd;
    }

    .list .name {
        font-size: 13.5px;
        font-weight: 500;
        color: var(--text);
    }

    .list .fnt-11 {
        font-size: 11.5px !important;
    }



    .list li {
        border-bottom: 1px dashed var(--m-border, #E4E9EF);
    }

        .list li:last-child {
            border-bottom: none;
        }

        .list li a {
            display: flex; /* ← کلید حل مشکل */
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            padding: 8px 6px;
            text-decoration: none;
            color: inherit;
            width:stretch;
        }
      


    .list .name {
        font-size: 13px;
        line-height: 1.6;
        color: var(--m-navy-dark, #0D1B2A);
        white-space: nowrap; /* اسم مجبور به تک‌خطی شدن می‌شود */
        overflow: hidden;
        text-overflow: ellipsis;
        flex: 1;
        min-width: 0; /* بدون این، ellipsis روی flex کار نمی‌کند */
    }

    .list .count-pill {
        font-family: 'IRANSane', monospace;
        font-size: 11px;
        font-weight: 500;
        color: var(--brand-navy-900);
        background: rgb(225 233 244);
        border-radius: 20px;
        padding: 2px 10px;
        white-space: nowrap;
        flex-shrink: 0;
        margin: 1px;
    }

.count-pill {
    /*background: var(--pill-bg);*/
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

/* ISIC list variant: icon + label, no count */
.list.isic li {
    justify-content: flex-start;
    gap: 10px;
    background: none !important;
    padding: 8px 4px;
}

.isic .cat-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .isic .cat-icon svg {
        width: 14px;
        height: 14px;
    }

/* HS code list variant: code number left, name right */
.list.hs li {
    justify-content: space-between;
}

.hs .code {
    color: var(--blue);
    font-weight: 700;
    font-size: 13.5px;
    direction: ltr;
}

.card-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--blue);
    cursor: pointer;
}

    .card-footer svg {
        width: 13px;
        height: 13px;
        stroke: var(--blue);
    }

.excel-promo {
    display: flex;
    align-items: center;
    gap: 18px;
    background: linear-gradient(135deg, #0f5f4d 0%, #14806a 55%, #1a9b82 100%);
    border-radius: 16px;
    padding: 22px 26px;
    box-shadow: 0 8px 24px rgba(15,95,77,.25);
    position: relative;
    overflow: hidden;
    margin: 20px auto;
}

    .excel-promo::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 100% 0%, rgba(255,255,255,.12), transparent 55%);
        pointer-events: none;
    }

.promo-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 12px;
    color: #e7fff8;
}

    .promo-icon svg {
        width: 26px;
        height: 26px;
    }

.promo-text {
    flex: 1;
    min-width: 0;
}

.promo-title {
    color: #fff;
    font-weight: 700;
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 6px;
}

.promo-sub {
    color: rgba(255,255,255,.8);
    font-size: 13px;
    line-height: 1.6;
}

.promo-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffb020;
    color: #1a1a1a;
    border: none;
    border-radius: 10px;
    padding: 13px 22px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255,176,32,.4);
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    white-space: nowrap;
}

    .promo-btn:hover {
        background: #ffc247;
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(255,176,32,.5);
    }

    .promo-btn:active {
        transform: translateY(0);
    }

    .promo-btn svg {
        width: 17px;
        height: 17px;
        flex-shrink: 0;
    }


.mrg-top-50 {
    margin-top: var(--top-mrg);
}

@media (max-width:759px) {
    .excel-promo {
        flex-direction: column;
        text-align: center;
        padding: 24px 18px;
        margin: 20px 20px;
    }

    .promo-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width:980px) {
    .grid {
        grid-template-columns: repeat(2,1fr);
    }

    .nav-arrow {
        display: none;
    }
}

/* ---------- Grid ---------- */

/*
@media (max-width:980px) {
    .grid {
        grid-template-columns: repeat(2,1fr);
    }
}
*/

@media (max-width:759px) {
    .grid {
        grid-template-columns: 1fr;
    }
}


.section-head  h2 {
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 10px;
    letter-spacing: -.2px;
    color: var(--navy-title-section);
}

.section-head .titles p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.9;
}

    .section-head .titles p b {
        color: var(--blue);
        font-weight: 800;
        font-variant-numeric: tabular-nums;
    }

@media (max-width:759px) {

    .section-head {
        margin: 0 10px;
       text-align:center;
    }

    .section-head .titles p {
        margin: 0;
        color: var(--muted);
        font-size: 15px;
        line-height: 1.9;
    }

        .section-head .titles p b {
            color: var(--blue);
            font-weight: 800;
            font-variant-numeric: tabular-nums;
        }
}
/* ---------- Card ---------- */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    height: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    z-index: 1;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

    .card:hover {
        transform: translateY(-4px);
        border-color: #c4c4c4; /*var(--blue);*/
        box-shadow: 0 18px 40px -22px rgba(15,27,61,.25);
    }
    /* Raise the whole card above its siblings while its call tooltip is open,
        so the popup never gets painted underneath the next card in the grid. */
    .card:has(.phone-wrap:hover),
    .card:has(.phone-wrap:focus-within) {
        z-index: 50;
    }

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    min-height: 77px;
}

.name-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.name-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
}

.company-name {
    font-size: 16.5px;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1 1 auto;
}

.verified {
    background: var(--green-bkg);
    color: var(--green-text);
    border: 1px solid #82b676;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

    .verified svg {
        width: 11px;
        height: 11px;
    }

.company-activity {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 12.5px;
}

.location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 12.5px;
}

    .location svg {
        width: 13px;
        height: 13px;
        flex-shrink: 0;
        color: var(--blue);
    }

.bookmark-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--pill-bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--muted);
    flex-shrink: 0;
    transition: .2s;
}

    .bookmark-btn:hover {
        color: var(--blue);
        border-color: var(--blue);
    }

    .bookmark-btn svg {
        width: 15px;
        height: 15px;
    }

/* ---------- Media / Logo ring ---------- */
.media {
    height: 150px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--blue-soft);
}

    .media .ring {
        width: 96px;
        height: 96px;
        border-radius: 50%;
        border: 7px solid var(--blue);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 26px;
        font-weight: 800;
        color: var(--navy);
        background: #fff;
    }

    .media .isic {
        position: absolute;
        top: 10px;
        inset-inline-end: 10px;
        background: #ffffffcc;
        backdrop-filter: blur(4px);
        color: var(--navy);
        font-size: 10.5px;
        padding: 4px 9px;
        border-radius: 999px;
        border: 1px solid var(--border);
        letter-spacing: .3px;
        font-variant-numeric: tabular-nums;
        font-weight: 700;
    }

/* ---------- Tags ---------- */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tag {
    background: var(--pill-bg);
    border: 1px solid var(--border);
    color: var(--navy-2);
    font-size: 11.5px;
    padding: 5px 10px;
    border-radius: 8px;
}

    .tag.more {
        color: var(--muted);
    }

/* ---------- Meta stats ---------- */
.meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px dashed var(--border);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: var(--muted);
}

    .meta-item svg {
        width: 14px;
        height: 14px;
        color: var(--muted);
    }

    .meta-item b {
        color: var(--navy-2);
        font-weight: 700;
        font-variant-numeric: tabular-nums;
    }

/* ---------- Footer actions ---------- */
.card-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.btn-crm {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: linear-gradient(135deg, var(--crm-1), var(--crm-2));
    color: #fff;
    border: none;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    padding: 11px 8px;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 10px 22px -10px rgba(13,148,136,.5);
    transition: .2s;
    flex: 1;
    white-space: nowrap;
}

    .btn-crm:hover {
        transform: translateY(-1px);
        box-shadow: 0 14px 26px -10px rgba(15,76,58,.6);
    }

    .btn-crm svg {
        width: 14px;
        height: 14px;
        flex-shrink: 0;
    }

.btn-detail {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: var(--blue);
    color: #fff;
    border: none;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    padding: 11px 8px;
    border-radius: 10px;
    cursor: pointer;
    transition: .2s;
    white-space: nowrap;
}

    .btn-detail:hover {
        background: var(--navy);
        transform: translateY(-1px);
    }

    .btn-detail svg {
        width: 14px;
        height: 14px;
        flex-shrink: 0;
    }

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--pill-bg);
    border: 1px solid var(--border);
    color: var(--navy-2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .2s;
}

    .btn-icon:hover {
        border-color: var(--blue);
        color: var(--blue);
    }

    .btn-icon svg {
        width: 16px;
        height: 16px;
    }

/* ---------- Locked call icon + login popup ---------- */
.phone-wrap {
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
}

.btn-icon.locked {
    color: var(--muted);
}

    .btn-icon.locked .slash {
        color: #e0463e;
    }

    .btn-icon.locked:hover {
        border-color: var(--border);
        color: var(--muted);
    }

.call-tooltip {
    position: absolute;
    bottom: calc(100% + 12px);
    top: auto;
    inset-inline-end: -8px;
    inset-inline-start: auto;
    width: min(230px, calc(100vw - 32px));
    background: var(--navy);
    color: #fff;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 16px 34px -12px rgba(15,27,61,.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    transform: translateY(6px);
    z-index: 30;
    text-align: right;
}

.phone-wrap:hover .call-tooltip,
.phone-wrap:focus-within .call-tooltip {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.call-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    inset-inline-end: 20px;
    inset-inline-start: auto;
    border: 7px solid transparent;
    border-top-color: var(--navy);
}

.call-tooltip p {
    margin: 0 0 10px;
    font-size: 12px;
    line-height: 1.8;
    color: #dbe1f0;
}

.call-tooltip .tooltip-actions {
    display: flex;
    gap: 6px;
}

.call-tooltip button {
    flex: 1;
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 700;
    border-radius: 8px;
    padding: 8px 6px;
    cursor: pointer;
    border: none;
}

.tt-login {
    background: var(--blue);
    color: #fff;
}

    .tt-login:hover {
        background: #e8691f;
    }

.tt-signup {
    background: rgba(255,255,255,.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,.2) !important;
}

    .tt-signup:hover {
        background: rgba(255,255,255,.18);
    }




.login-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 16, 38, .55);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease;
    z-index: 999;
    padding: 16px;
}

    .login-overlay.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

.login-modal {
    position: relative;
    background: var(--navy);
    color: #fff;
    width: min(320px, 100%);
    border-radius: 16px;
    padding: 28px 20px 20px;
    text-align: center;
    box-shadow: 0 20px 50px -12px rgba(15,27,61,.5);
    transform: translateY(10px) scale(.97);
    transition: transform .2s ease;
}

.login-overlay.open .login-modal {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 10px;
    inset-inline-end: 12px;
    background: none;
    border: none;
    color: #aab3c9;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
}

.modal-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: rgba(224,70,62,.15);
    color: #e0463e;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .modal-icon svg {
        width: 20px;
        height: 20px;
    }

.login-modal p {
    margin: 0 0 18px;
    font-size: 13.5px;
    line-height: 1.9;
    color: #dbe1f0;
}

.modal-actions {
    display: flex;
    gap: 8px;
    align-items:center;
}

    .modal-actions a {
        flex: 1;
        font-family: inherit;
        font-size: 12.5px;
        font-weight: 700;
        border-radius: 9px;
        padding: 10px 6px;
        cursor: pointer;
        border: none;
    }
/* On narrow screens, a side popup can't fit — flip it to open upward
        above the button, centered on the icon but clamped to viewport width. */
@media (max-width:640px) {
    .call-tooltip {
        top: auto;
        bottom: calc(100% + 12px);
        inset-inline-start: auto;
        inset-inline-end: -8px;
        width: min(230px, calc(100vw - 88px));
        transform: translateY(6px);
        
    }

    .phone-wrap:hover .call-tooltip,
    .phone-wrap:focus-within .call-tooltip {
        transform: translateY(0);
    }

    .call-tooltip::after {
        top: 100%;
        inset-inline-end: 20px;
        inset-inline-start: auto;
        transform: none;
        border-inline-end-color: transparent;
        border-top-color: var(--navy);
    }
}

/* ---------- Footer / pagination ---------- */
.footer-more {
    display: flex;
    justify-content: center;
    margin-top: 36px;
}

.load-more {
    background: #fff;
    border: 1px solid var(--border);
    color: var(--navy);
    padding: 13px 34px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: .2s;
}

    .load-more:hover {
        border-color: var(--blue);
        color: var(--blue);
    }
