.member-hero {
    background:linear-gradient(135deg,var(--g9) 0%,var(--g7) 60%,var(--g6) 100%);
    color:var(--white);
    padding:36px 0 32px;
    position:relative;
    overflow:hidden;
}

.member-hero-inner {
    max-width:1300px;
    margin:0 auto;
    padding:0 32px;
    position:relative;
    z-index:2;
}

.member-hero h1 {
    font-size:30px;
    font-weight:800;
    letter-spacing:-0.5px;
    margin-bottom:4px;
    margin-top: 0;
}

.member-hero h1 span {
    color:var(--gold-400);
}

.member-hero .subtitle {
    font-size:14px;
    opacity:0.7;
    font-weight:400;
    font-style:italic;
}

.member-hero-decoration {
    position:absolute;
    right:60px;
    top:50%;
    transform:translateY(-50%);
    opacity:0.15;
}

.member-hero-decoration svg {
    width:200px;
    height:160px;
}

.btn-map {
    display:flex;
    align-items:center;
    gap:6px;
    padding:11px 20px;
    background:var(--white);
    color:var(--gray-700);
    border:1.5px solid var(--gray-300);
    border-radius:var(--radius);
    font-size:13.5px;
    font-weight:500;
    cursor:pointer;
    font-family:inherit;
    transition:all 0.2s;
    white-space:nowrap;
}

.btn-map:hover {
    border-color:var(--green-600);
    color:var(--green-700);
}

.list-header {
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:16px;
}

.list-header h2 {
    font-size:16px;
    font-weight:700;
    color:var(--gray-900);
    line-height: 1.6;
}

.list-controls {
    display:flex;
    align-items:center;
    gap:12px;
}

.sort-wrap {
    display:flex;
    align-items:center;
    gap:6px;
    font-size:13px;
    color:var(--gray-600);
}

.sort-wrap select {
    padding:6px 28px 6px 10px;
    border:1px solid var(--gray-300);
    border-radius:6px;
    font-size:13px;
    font-family:inherit;
    color:var(--gray-800);
    background:var(--white);
    appearance:none;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M2.5 4l2.5 2.5 2.5-2.5' fill='none' stroke='%23757575' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat:no-repeat;
    background-position:right 8px center;
    cursor:pointer;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.biz-card {
    background:var(--white);
    border:1.5px solid var(--gray-200);
    border-radius:var(--radius-lg);
    padding:18px;
    transition:all 0.25s;
    cursor:pointer;
    position:relative;
    overflow:hidden;
}

.biz-card:hover {
    border-color:var(--green-400);
    box-shadow:var(--shadow-md);
    transform:translateY(-2px);
}

.biz-card.selected {
    border-color:var(--green-600);
    box-shadow:0 0 0 2px rgba(31,122,61,0.15),var(--shadow-md);
}

/* Card Top:Logo + Info */

.card-top {
    display:flex;
    gap:12px;
    margin:-18px -18px 14px -18px;
    padding:16px 18px;
    background:linear-gradient(160deg,#f2faf4 0%,#e6f4ea 40%,#dff0e4 100%);
    border-bottom:1.5px solid #c8e6c9;
    border-radius:var(--radius-lg) var(--radius-lg) 0 0;
}

.card-logo {
    width:56px;
    height:56px;
    border-radius:10px;
    border:1.5px solid var(--gray-200);
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
    font-weight:700;
    font-size:11px;
    color:var(--green-700);
    background:var(--white);
    line-height:1.2;
    text-align:center;
    overflow:hidden;
    box-shadow:0 1px 4px rgba(0,0,0,0.06);
}

.card-logo img,
.card-logo svg{
    width: 100%;
    height: auto;
}

.card-logo.logo-maiphat {
    color:var(--green-800);
    font-size:10px;
}

.card-logo.logo-mailong {
    color:var(--orange-500);
    font-size:10px;
}

.card-logo.logo-maicare {
    color:var(--green-700);
    font-size:10px;
}

.card-logo.logo-maitech {
    color:var(--green-800);
    font-size:10px;
}

.card-logo.logo-maiedu {
    color:var(--green-700);
    font-size:10px;
}

.card-info {
    flex:1;
    min-width:0;
}

.card-name {
    font-size:14px;
    font-weight:700;
    color:var(--gray-900);
    display:flex;
    align-items:center;
    gap:5px;
    margin-bottom:4px;
}

.card-name .verified {
    width:16px;
    height:16px;
    border-radius:50%;
    background:var(--green-600);
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
}

.card-name .verified i {
    font-size:10px;
    color:var(--white);
}

.card-field {
    font-size:12px;
    color:var(--green-700);
    display:flex;
    align-items:center;
    gap:4px;
    margin-bottom:3px;
}

.card-field i {
    font-size:13px;
    color:var(--green-600);
}

.card-location {
    font-size:12px;
    color:var(--gray-500);
    display:flex;
    align-items:center;
    gap:4px;
}

.card-location i {
    font-size:13px;
}

/* Card Metrics Row */

.card-metrics {
    display:flex;
    gap:0;
    margin-bottom:12px;
    background:var(--gray-50);
    border-radius:8px;
    padding:8px 0;
    border:1px solid var(--gray-100);
}

.card-metric {
    flex:1;
    text-align:center;
    position:relative;
}

.card-metric + .card-metric::before {
    content:'';
    position:absolute;
    left:0;
    top:4px;
    bottom:4px;
    width:1px;
    background:var(--gray-200);
}

.card-metric .m-icon {
    font-size:14px;
    color:var(--green-600);
    margin-bottom:1px;
}

.card-metric .m-label {
    font-size:10px;
    color:var(--gray-500);
    margin-bottom:1px;
}

.card-metric .m-value {
    font-size:12.5px;
    font-weight:600;
    color:var(--gray-800);
}

/* Card Score Section */

.card-score-row {
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:12px;
}

.score-left {
    display:flex;
    gap:0;
    font-size:11px;
    color:var(--gray-500);
}

.score-item {
    text-align:center;
    padding:0 8px;
    position:relative;
}

.score-item + .score-item::before {
    content:'';
    position:absolute;
    left:0;
    top:2px;
    bottom:2px;
    width:1px;
    background:var(--gray-200);
}

.score-item:first-child {
    padding-left:0;
}

.score-item .s-label {
    font-size:10px;
    color:var(--gray-500);
}

.score-item .s-value {
    font-size:12px;
    font-weight:600;
    color:var(--gray-700);
}

.score-right {
    text-align:center;
}

.score-label-text {
    font-size:10px;
    color:var(--gray-500);
    margin-bottom:1px;
}

.score-number {
    font-size:26px;
    font-weight:700;
    line-height:1;
}

.score-number span {
    font-size:14px;
    font-weight:400;
    color:var(--gray-400);
}

.score-green {
    color:var(--green-700);
}

.score-gold {
    color:var(--gold-500);
}

.score-orange {
    color:var(--orange-500);
}

/* Stars */

.stars {
    display:flex;
    gap:1px;
    margin:3px 0;
    justify-content:center;
}

.stars i {
    font-size:13px;
    color:var(--gold-500);
}

.stars i.empty {
    color:var(--gray-300);
}

/* Tier Badge */

.tier-badge {
    display:inline-flex;
    align-items:center;
    gap:4px;
    padding:3px 10px;
    border-radius:12px;
    font-size:10.5px;
    font-weight:600;
    margin-top:2px;
}

.tier-diamond {
    background:linear-gradient(135deg,#e0f2f1,#b2dfdb);
    color:#00695c;
}

.tier-gold {
    background:linear-gradient(135deg,#fff8e1,#ffecb3);
    color:#f57f17;
}

.tier-silver {
    background:linear-gradient(135deg,#f5f5f5,#e0e0e0);
    color:#546e7a;
}

/* Card Footer */

.card-footer {
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-top:12px;
    padding-top:12px;
    border-top:1px solid var(--gray-100);
}

.btn-detail {
    padding:7px 20px;
    background:var(--green-700);
    color:var(--white);
    border:none;
    border-radius:6px;
    font-size:12.5px;
    font-weight:600;
    cursor:pointer;
    font-family:inherit;
    transition:background 0.2s;
}

.btn-detail:hover {
    background:var(--green-800);
}

.card-actions {
    display:flex;
    gap:4px;
}

.card-actions button {
    width:32px;
    height:32px;
    border:1px solid var(--gray-200);
    border-radius:6px;
    background:var(--white);
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    color:var(--gray-500);
    font-size:15px;
    transition:all 0.15s;
}

.active-bookmark,
.card-actions button:hover {
    border-color:var(--green-600) !important;
    color:var(--green-700) !important;
    background:var(--green-50) !important;
}

/*Detail*/
.company-hero {
    background:linear-gradient(160deg,var(--g9) 0%,var(--g7) 55%,var(--g6) 100%);
    padding:32px 0 28px;
    position:relative;
    overflow:hidden;
}

.company-hero::before {
    content:'';
    position:absolute;
    top:0;
    right:0;
    width:500px;
    height:100%;
    background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300'%3E%3Ccircle cx='200' cy='80' r='16' fill='%23c9a84c' opacity='0.08'/%3E%3Ccircle cx='140' cy='150' r='10' fill='%23c9a84c' opacity='0.06'/%3E%3Ccircle cx='260' cy='150' r='10' fill='%23c9a84c' opacity='0.06'/%3E%3Ccircle cx='100' cy='220' r='7' fill='%23c9a84c' opacity='0.04'/%3E%3Ccircle cx='200' cy='220' r='7' fill='%23c9a84c' opacity='0.04'/%3E%3Ccircle cx='300' cy='220' r='7' fill='%23c9a84c' opacity='0.04'/%3E%3Cline x1='200' y1='80' x2='140' y2='150' stroke='%23c9a84c' stroke-width='1' opacity='0.06'/%3E%3Cline x1='200' y1='80' x2='260' y2='150' stroke='%23c9a84c' stroke-width='1' opacity='0.06'/%3E%3Cline x1='140' y1='150' x2='100' y2='220' stroke='%23c9a84c' stroke-width='0.7' opacity='0.04'/%3E%3Cline x1='140' y1='150' x2='200' y2='220' stroke='%23c9a84c' stroke-width='0.7' opacity='0.04'/%3E%3Cline x1='260' y1='150' x2='200' y2='220' stroke='%23c9a84c' stroke-width='0.7' opacity='0.04'/%3E%3Cline x1='260' y1='150' x2='300' y2='220' stroke='%23c9a84c' stroke-width='0.7' opacity='0.04'/%3E%3C/svg%3E") no-repeat center;
    pointer-events:none;
}

.hero-inner {
    max-width:1400px;
    margin:0 auto;
    padding:0 32px;
    display:flex;
    gap:24px;
    align-items:stretch;
    position:relative;
    z-index:2;
}

/* Hero Left - Company Info */

.hero-company {
    display:flex;
    gap:24px;
    flex:1;
    min-width:0;
}

.hero-logo {
    position: relative;
    width:180px;
    height:180px;
    border-radius:16px;
    background:var(--w);
    border:3px solid rgba(255,255,255,0.3);
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
    flex-direction:column;
    gap:4px;
    box-shadow:0 4px 20px rgba(0,0,0,0.15);
    overflow: hidden;
}

.hero-logo-text {
    font-size:32px;
    font-weight:800;
    color:var(--r);
}

.hero-info {
    color:var(--w);
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:6px;
}

.hero-name {
    font-size:26px;
    font-weight:800;
    display:flex;
    align-items:center;
    gap:8px;
}

.hero-name .verified {
    width:22px;
    height:22px;
    border-radius:50%;
    background:var(--g4);
    display:flex;
    align-items:center;
    justify-content:center;
}

.hero-name .verified i {
    font-size:13px;
    color:var(--w);
}

.hero-detail {
    display:flex;
    align-items:center;
    gap:6px;
    font-size:13.5px;
    opacity:0.85;
}

.hero-detail i {
    font-size:15px;
    opacity:0.7;
}

.hero-tier {
    display:inline-flex;
    align-items:center;
    gap:5px;
    padding:5px 14px;
    border-radius:20px;
    font-size:12px;
    font-weight:600;
    background:rgba(201,168,76,0.2);
    color:var(--gold);
    border:1px solid rgba(201,168,76,0.35);
    margin-top:4px;
    width:fit-content;
}

.hero-tier i {
    font-size:14px;
}

/* Hero Center - Score Card */

.hero-score-card {
    background:var(--w);
    border-radius:14px;
    padding:20px 24px;
    min-width:340px;
    box-shadow:0 4px 20px rgba(0,0,0,0.1);
}

.score-card-top {
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:14px;
    padding-bottom:12px;
    border-bottom:1px solid #eee;
}

.score-card-title {
    display:flex;
    align-items:baseline;
    gap:6px;
}

.score-card-title span {
    font-size:13px;
    font-weight:600;
    color:var(--g800);
}

.score-card-title .score-big {
    font-size:28px;
    font-weight:800;
    color:var(--g7);
}

.score-card-title .score-max {
    font-size:14px;
    color:var(--g500);
    font-weight:400;
}

.score-stars {
    display:flex;
    gap:2px;
}

.score-stars i {
    font-size:18px;
    color:var(--gold);
}

.score-stars i.half {
    color:var(--gold);
}

.score-stars i.empty {
    color:var(--e0);
}

.score-breakdown {
    display:flex;
    flex-direction:column;
    gap:7px;
}

.score-row {
    display:flex;
    align-items:center;
    gap:8px;
    font-size:12.5px;
}

.score-row i {
    font-size:14px;
    color:var(--g4);
}

.score-row .sr-label {
    flex:1;
    color:var(--g700);
}

.score-row .sr-value {
    font-weight:700;
    color:var(--g7);
    min-width:40px;
    text-align:right;
}

.score-row .sr-bar {
    width:60px;
    height:5px;
    background:var(--e0);
    border-radius:3px;
    overflow:hidden;
    position:relative;
}

.score-row .sr-bar-fill {
    height:100%;
    border-radius:3px;
    background:var(--g4);
}

/* Hero Right - Actions */

.hero-actions {
    display:flex;
    flex-direction:column;
    gap:10px;
    justify-content:center;
    flex-shrink:0;
}

.btn-action {
    padding:12px 28px;
    border-radius:10px;
    font-size:13.5px;
    font-weight:600;
    cursor:pointer;
    font-family:inherit;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    transition:.2s;
    min-width:180px;
    border:none;
}

.btn-connect {
    background:var(--white);
    box-shadow:0 2px 8px rgba(26,107,53,0.3);
}

.btn-connect:hover {
    background:var(--g8);
}

.btn-save {
    background:var(--w);
    color:var(--g800);
    border:1.5px solid var(--e0) !important;
}

.btn-save:hover {
    border-color:var(--g7) !important;
    color:var(--g7);
}

.btn-share {
    background:var(--w);
    color:var(--g800);
    border:1.5px solid var(--e0) !important;
}

.btn-share:hover {
    border-color:var(--g7) !important;
    color:var(--g7);
}

.btn-action i {
    font-size:17px;
}

/* ===== METRICS BAR ===== */

.metrics-bar {
    background:var(--w);
    border-bottom:1px solid #eee;
    padding:18px 0;
}

.metrics-inner {
    max-width:1400px;
    margin:0 auto;
    padding:0 32px;
    display:flex;
    gap:0;
}

.metric-item {
    flex:1;
    display:flex;
    align-items:center;
    gap:12px;
    padding:0 20px;
    position:relative;
}

.metric-item+.metric-item::before {
    content:'';
    position:absolute;
    left:0;
    top:4px;
    bottom:4px;
    width:1px;
    background:var(--e0);
}

.metric-item:first-child {
    padding-left:0;
}

.metric-icon {
    width:40px;
    height:40px;
    border-radius:10px;
    background:var(--g50);
    display:flex;
    align-items:center;
    justify-content:center;
    color:var(--g7);
    font-size:20px;
    flex-shrink:0;
}

.metric-data .md-value {
    font-size:18px;
    font-weight:700;
    color:var(--g900);
    line-height: 25px;
}

.metric-data .md-label {
    font-size:11.5px;
    color:var(--g500);
}

.needs-section {
    background:linear-gradient(160deg,#fffdf5 0%,#fff8e1 50%,#fff3cd 100%);
    border-top:3px solid var(--gold);
    border-bottom:3px solid var(--gold);
    padding:24px 0;
    position:relative;
    overflow:hidden;
}

.needs-section::before {
    content:'';
    position:absolute;
    top:0;
    right:0;
    width:400px;
    height:100%;
    background:radial-gradient(circle at 80% 50%,rgba(212,175,55,0.08) 0%,transparent 70%);
    pointer-events:none;
}

.needs-inner {
    max-width:1400px;
    margin:0 auto;
    padding:0 32px;
    position:relative;
    z-index:2;
}

.needs-title-bar {
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:20px;
}

.needs-title-icon {
    width:44px;
    height:44px;
    border-radius:12px;
    background:linear-gradient(135deg,var(--gold),#e2c254);
    display:flex;
    align-items:center;
    justify-content:center;
    color:var(--w);
    font-size:22px;
    box-shadow:0 2px 8px rgba(212,175,55,0.3);
}

.needs-title-bar h2 {
    font-size:18px;
    font-weight:800;
    color:var(--g9);
    letter-spacing:-0.3px;
}

.needs-title-bar .pulse-dot {
    width:10px;
    height:10px;
    border-radius:50%;
    background:#e65100;
    animation:pulse-needs 2s infinite;
    margin-left:8px;
}

@keyframes pulse-needs {
    0%,
    100% {
        opacity:1;
        transform:scale(1);
    }
    50% {
        opacity:0.6;
        transform:scale(1.3);
    }
}

.needs-layout {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
}

.tabs-section {
    background:var(--w);
    border-bottom:1px solid #eee;
    border-top: 3px solid var(--gold);
    /*position:sticky;
    top:64px;
    z-index:90;*/
}

.tabs-inner {
    max-width:1400px;
    margin:0 auto;
    padding:0 32px;
    display:flex;
    gap:0;
}

.tab-item {
    padding:14px 20px;
    font-size:13px;
    font-weight:500;
    color:var(--g600);
    cursor:pointer;
    display:flex;
    align-items:center;
    gap:6px;
    border-bottom:2.5px solid transparent;
    transition:.2s;
    white-space:nowrap;
}

.tab-item:hover {
    color:var(--g7);
}

.tab-item.active {
    color:var(--g7);
    font-weight:600;
    border-bottom-color:var(--g7);
}

.tab-item i {
    font-size:16px;
}

.main-two-col {
    display:grid;
    grid-template-columns:1.3fr 0.7fr;
    gap:20px;
}

.panel {
    background:var(--w);
    border:1px solid #eee;
    border-radius:12px;
    overflow:hidden;
}

.panel-head {
    padding:16px 20px 14px;
    border-bottom:1px solid #f0f0f0;
    display:flex;
    align-items:center;
    gap:8px;
}

.panel-head h3 {
    font-size:14px;
    font-weight:700;
    color:var(--g900);
    letter-spacing:0.2px;
}

.panel-head i {
    font-size:17px;
    color:var(--g7);
}

.panel-body {
    padding:18px 20px;
}

.info-grid {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:0;
}

.info-col {
    display:flex;
    flex-direction:column;
    gap:0;
}

.info-col:first-child {
    border-right:1px solid #f0f0f0;
    padding-right:20px;
}

.info-col:last-child {
    padding-left:20px;
}

.info-row {
    display:flex;
    align-items:flex-start;
    gap:8px;
    padding:8px 0;
    border-bottom:1px solid #fafafa;
}

.info-row:last-child {
    border-bottom:none;
}

.info-row i {
    font-size:14px;
    color:var(--g7);
    margin-top:2px;
    flex-shrink:0;
}

.info-row .ir-label {
    font-size:12px;
    color:var(--g500);
    min-width:110px;
    flex-shrink:0;
}

.info-row .ir-value {
    font-size:12.5px;
    font-weight:500;
    color:var(--g800);
}

.info-row .ir-value.link {
    color:var(--g7);
}

.field-tags {
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    padding:4px 0;
}

.field-tag {
    padding:6px 16px;
    border:1.5px solid var(--g7);
    border-radius:20px;
    font-size:12px;
    font-weight:500;
    color:var(--g7);
    background:var(--g50);
    transition:.15s;
}

.field-tag:hover {
    background:var(--g7);
    color:var(--w);
}

.cert-list {
    display:flex;
    flex-direction:column;
    gap:8px;
}

.cert-item {
    display:flex;
    align-items:center;
    gap:8px;
    padding:8px 12px;
    background:var(--f5);
    border-radius:8px;
    font-size:12.5px;
    color:var(--g800);
    font-weight:500;
}

.cert-item i {
    font-size:16px;
    color:var(--g4);
}

.video-thumb {
    border-radius:10px;
    overflow:hidden;
    position:relative;
    height:180px;
    background:linear-gradient(135deg,#1a3a2a,#2d5a3e,#1a4a2e);
    cursor:pointer;
}

.video-thumb::before {
    content:'';
    position:absolute;
    inset:0;
    background:rgba(0,0,0,0.3);
}

.video-play {
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    width:50px;
    height:50px;
    border-radius:50%;
    background:rgba(255,255,255,0.92);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:2;
    color:var(--g7);
    font-size:22px;
    box-shadow:0 4px 16px rgba(0,0,0,0.2);
}

.video-time {
    position:absolute;
    bottom:10px;
    right:12px;
    background:rgba(0,0,0,0.7);
    color:var(--w);
    padding:2px 8px;
    border-radius:4px;
    font-size:11px;
    font-weight:500;
    z-index:2;
}

.video-buildings {
    position:absolute;
    bottom:0;
    left:0;
    right:0;
    height:70px;
    z-index:1;
    opacity:0.3;
}

.video-link {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    padding:10px;
    font-size:12.5px;
    color:var(--g600);
    cursor:pointer;
}

.video-link:hover {
    color:var(--g7);
}

.video-link i {
    font-size:15px;
}

.doc-list {
    display:flex;
    flex-direction:column;
    gap:6px;
}

.doc-item {
    display:flex;
    align-items:center;
    gap:10px;
    padding:10px 12px;
    border-radius:8px;
    background:var(--f5);
    cursor:pointer;
    transition:.15s;
}

.doc-item:hover {
    background:var(--g50);
}

.doc-icon {
    width:32px;
    height:32px;
    border-radius:6px;
    background:var(--r);
    display:flex;
    align-items:center;
    justify-content:center;
    color:var(--w);
    font-size:14px;
    flex-shrink:0;
    opacity:0.85;
}

.doc-item .doc-name {
    flex:1;
    font-size:12px;
    font-weight:500;
    color:var(--g800);
}

.doc-item .doc-size {
    font-size:11px;
    color:var(--g500);
    flex-shrink:0;
}

.contact-list {
    display:flex;
    flex-direction:column;
    gap:10px;
}

.contact-row {
    display:flex;
    align-items:flex-start;
    gap:8px;
    font-size:12.5px;
}

.contact-row i {
    font-size:15px;
    color:var(--g7);
    margin-top:1px;
    flex-shrink:0;
}

.contact-row .cl-label {
    color:var(--g500);
    min-width:auto;
    font-weight:500;
}

.contact-row .cl-value {
    color:var(--g800);
    font-weight:500;
}

.contact-row .cl-value.link {
    color:var(--g7);
}

.btn-contact {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    width:100%;
    padding:11px;
    background:var(--g7);
    color:var(--w);
    border:none;
    border-radius:8px;
    font-size:13px;
    font-weight:600;
    cursor:pointer;
    font-family:inherit;
    margin-top:14px;
    transition:.2s;
}

.btn-contact:hover {
    background:var(--g8);
}

/* ====== VIDEO & LIBRARY TAB ====== */
.video-embed {
    border-radius: 10px;
    overflow: hidden;
}
.video-embed iframe {
    width: 100%;
    height: 200px;
    display: block;
}
.video-play a {
    color: inherit;
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}
.video-link a {
    color: inherit;
}

/* Tab panes that span full width */
.tab-pane-full {
    grid-template-columns: 1fr;
}

/* ====== COOPERATION TAB BASE ====== */
.coop-tab-intro {
    padding: 24px;
    background: linear-gradient(135deg, rgba(26,107,53,0.06) 0%, rgba(212,175,55,0.08) 100%);
    border-radius: 12px;
    border: 1px dashed rgba(26,107,53,0.25);
    margin-bottom: 25px;
}
.coop-banner-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.coop-banner-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--g7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}
.coop-banner-text {
    flex: 1;
    min-width: 260px;
}
.coop-banner-text h4 {
    font-size: 17px;
    font-weight: 700;
    color: #1a6b35;
    margin: 0 0 5px 0;
}
.coop-banner-text p {
    margin: 0;
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}
.btn-coop-cta {
    width: auto;
    padding: 12px 24px;
    margin-top: 0;
    white-space: nowrap;
}
.coop-features-row {
    display: flex;
    flex-wrap: wrap;
    margin: -10px;
}
.coop-feature-col {
    flex: 1;
    min-width: 260px;
    padding: 10px;
}
.coop-feature-card {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 18px;
    height: 100%;
}
.coop-feature-card h5 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
}
.coop-feature-card h5 i {
    color: var(--g7);
}
.coop-feature-card p {
    font-size: 13.5px;
    color: #666;
    margin: 0;
}

/* Library Grid */
.lib-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}
.lib-gallery-item {
    border-radius: 8px;
    overflow: hidden;
    display: block;
    border: 1px solid #eee;
}
.lib-gallery-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

/* Library No Image */
.lib-no-image {
    padding: 40px 0;
    color: #777;
    text-align: center;
}
.lib-no-image i {
    font-size: 40px;
    margin-bottom: 10px;
    opacity: 0.5;
}

/* Utility classes */
.p-40 { padding: 40px 0; }
.color-777 { color: #777; }

/* ====== REVIEWS ====== */
.review-overview {
    text-align: center;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 20px;
}
.ro-num {
    font-size: 32px;
    font-weight: 700;
    color: var(--g800);
}
.ro-stars i {
    color: var(--gold);
    font-size: 20px;
}
.ro-count {
    color: #777;
    font-size: 13px;
    margin-top: 5px;
}

.review-form-box {
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 25px;
}
.review-form-box h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 15px;
}
.star-rating-input i {
    font-size: 24px;
    color: var(--gold);
    cursor: pointer;
}

.review-login-req {
    background: #fff3cd;
    color: #856404;
    padding: 15px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}
.review-login-req p {
    margin: 0;
}
.review-login-req a {
    font-weight: bold;
    text-decoration: underline;
}

.review-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.review-item {
    display: flex;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}
.ri-avatar img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}
.ri-content {
    flex: 1;
}
.ri-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3px;
}
.ri-name {
    font-weight: 600;
    color: var(--g800);
}
.ri-date {
    font-size: 12px;
    color: #999;
}
.ri-stars i {
    color: var(--gold);
    font-size: 13px;
}
.ri-text {
    margin-top: 5px;
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 991.98px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-inner {
        padding: 0 20px;
        gap: 20px;
    }

    .hero-logo {
        width: 130px;
        height: 130px;
    }

    .hero-name {
        font-size: 22px;
    }

    #tab-products .prod-grid,
    .prod-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px !important;
    }
}

@media (max-width: 767.98px) {
    .member-hero h1 {
        letter-spacing: 0;
        line-height: 1.5;
        font-size: 22px;
    }

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

    /* ====== HOIVIEN DETAIL: HERO SECTION ====== */
    .company-hero {
        padding: 20px 0 16px;
    }

    .company-hero::before {
        display: none;
    }

    .hero-inner {
        padding: 0 14px;
        gap: 14px;
        flex-direction: column;
    }

    .hero-company {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 14px;
        margin-bottom: 0;
    }

    .hero-logo {
        width: 84px;
        height: 84px;
        border-radius: 12px;
        border-width: 2.5px;
        flex-shrink: 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    }

    .hero-logo-text {
        font-size: 24px;
    }

    .hero-info {
        flex: 1;
        min-width: 0;
        gap: 4px;
        margin-bottom: 0;
    }

    .hero-name {
        font-size: 18px;
        font-weight: 700;
        line-height: 1.35;
        gap: 6px;
        flex-wrap: wrap;
    }

    .hero-name .verified {
        width: 18px;
        height: 18px;
        font-size: 11px;
        flex-shrink: 0;
    }

    .hero-detail {
        font-size: 12px;
        line-height: 1.4;
        gap: 5px;
        opacity: 0.9;
        word-break: break-word;
    }

    .hero-detail i {
        font-size: 13.5px;
        opacity: 0.8;
        flex-shrink: 0;
        margin-top: 1px;
    }

    .hero-tier {
        font-size: 11px;
        padding: 3px 10px;
        margin-top: 4px;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
        margin-top: 4px;
    }

    .btn-action {
        min-width: unset;
        height: 42px;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 600;
        padding: 0 12px;
    }

    .btn-connect {
        grid-column: span 2;
        background: #ffffff !important;
        color: #1a6b35 !important;
        font-size: 13.5px;
        font-weight: 700;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
        justify-content: center;
    }

    .btn-bookmark,
    .btn-share {
        background: rgba(255, 255, 255, 0.15) !important;
        color: #ffffff !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        backdrop-filter: blur(4px);
        justify-content: center;
    }

    .btn-bookmark.active-bookmark {
        background: #ffffff !important;
        color: #1a6b35 !important;
        border-color: #ffffff !important;
    }

    /* ====== HOIVIEN DETAIL: METRICS BAR ====== */
    .metrics-bar {
        padding: 10px 0;
        background: #f8fafc;
        border-bottom: 1px solid #e2e8f0;
    }

    .metrics-inner {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 0 14px;
    }

    .metric-item {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        padding: 9px 11px;
        display: flex;
        align-items: center;
        gap: 9px;
        margin: 0;
    }

    .metric-item+.metric-item::before {
        display: none;
    }

    .metric-icon {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        font-size: 16px;
        background: #ecfdf5;
        color: #1a6b35;
        flex-shrink: 0;
    }

    .metric-data .md-value {
        font-size: 13px;
        font-weight: 700;
        color: #0f172a;
        line-height: 1.25;
        word-break: break-word;
    }

    .metric-data .md-label {
        font-size: 10.5px;
        color: #64748b;
        margin-top: 1px;
    }

    /* ====== HOIVIEN DETAIL: STICKY HORIZONTAL TABS ====== */
    .tabs-section {
        position: sticky;
        top: 62px;
        z-index: 850;
        background: #ffffff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        border-top: none;
        border-bottom: 1px solid #e2e8f0;
    }

    .tabs-inner {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0 10px;
        gap: 4px;
    }

    .tabs-inner::-webkit-scrollbar {
        display: none;
    }

    .tab-item {
        flex: 0 0 auto;
        padding: 11px 13px;
        font-size: 12.5px;
        font-weight: 600;
        color: #64748b;
        background: transparent;
        border: none;
        border-bottom: 2.5px solid transparent;
        border-radius: 0;
        white-space: nowrap;
        transition: all 0.2s ease;
    }

    .tab-item.active {
        color: #1a6b35;
        border-bottom-color: #1a6b35;
        background: #f0fdf4;
        border-radius: 8px 8px 0 0;
        font-weight: 700;
    }

    .tab-item i {
        font-size: 14px;
        margin-right: 2px;
    }

    /* ====== HOIVIEN DETAIL: CONTENT PANELS & INFO GRID ====== */
    .content-section {
        padding: 14px 12px 30px;
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .content-main,
    .side {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .panel {
        border-radius: 12px;
        border: 1px solid #e2e8f0;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
        margin-bottom: 0;
    }

    .panel-head {
        padding: 12px 14px 10px;
        gap: 7px;
    }

    .panel-head h3 {
        font-size: 13.5px;
        font-weight: 700;
    }

    .panel-head i {
        font-size: 16px;
    }

    .panel-body {
        padding: 12px 14px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .info-col:first-child,
    .info-col:last-child {
        border: none;
        padding: 0;
    }

    .info-row {
        display: grid;
        grid-template-columns: 18px 1fr;
        row-gap: 2px;
        column-gap: 6px;
        align-items: center;
        padding: 8px 0;
        border-bottom: 1px solid #f1f5f9;
    }

    .info-row i {
        font-size: 13.5px;
        color: #1a6b35;
        grid-column: 1;
        grid-row: 1;
    }

    .info-row .ir-label {
        font-size: 11.5px;
        color: #64748b;
        font-weight: 500;
        grid-column: 2;
        grid-row: 1;
        min-width: unset;
    }

    .info-row .ir-value {
        font-size: 13px;
        color: #0f172a;
        font-weight: 600;
        grid-column: 1 / span 2;
        grid-row: 2;
        word-break: break-word;
        line-height: 1.4;
        padding-left: 0;
        margin-left: 0;
    }

    .info-row .ir-value.link {
        color: #1a6b35;
        text-decoration: underline;
    }

    .cert-list {
        gap: 6px;
    }

    .cert-item {
        padding: 8px 10px;
        font-size: 12px;
        border-radius: 6px;
    }

    .body-text {
        font-size: 13.5px;
        line-height: 1.6;
        color: #334155;
        word-break: break-word;
    }

    .body-text img {
        max-width: 100% !important;
        height: auto !important;
        border-radius: 8px;
    }

    .body-text table {
        display: block;
        overflow-x: auto;
        width: 100% !important;
    }

    /* ====== SIDEBAR PANELS ON MOBILE ====== */
    .field-tags {
        gap: 6px;
    }

    .field-tag {
        padding: 4px 10px;
        font-size: 11.5px;
    }

    .video-thumb {
        height: 150px;
    }

    .video-embed iframe {
        height: 180px;
    }

    .doc-item {
        padding: 8px 10px;
        gap: 8px;
    }

    .doc-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .doc-item .doc-name {
        font-size: 12px;
    }

    .contact-row {
        font-size: 12.5px;
        gap: 6px;
    }

    .btn-contact {
        height: 42px;
        font-size: 13.5px;
        font-weight: 600;
        border-radius: 8px;
        margin-top: 10px;
    }

    /* ====== HOIVIEN DETAIL: TAB PRODUCTS ====== */
    #tab-products .prod-grid,
    .prod-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .prod {
        border-radius: 10px !important;
    }

    .prod-img {
        height: 125px !important;
    }

    .prod-body {
        padding: 10px !important;
    }

    .prod-name {
        font-size: 12.5px !important;
        font-weight: 600 !important;
        line-height: 1.35 !important;
        height: 34px !important;
        overflow: hidden !important;
        margin-bottom: 4px !important;
    }

    .prod-desc {
        display: none !important;
    }

    .prod-price {
        font-size: 13px !important;
        font-weight: 700 !important;
        margin-bottom: 6px !important;
    }

    .prod-foot {
        flex-direction: column !important;
        gap: 6px !important;
        align-items: stretch !important;
    }

    .prod-foot .btn-p {
        width: 100% !important;
        height: 32px !important;
        font-size: 12px !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .prod-stats {
        font-size: 11px !important;
        justify-content: center !important;
    }

    /* ====== HOIVIEN DETAIL: TAB LIBRARY ====== */
    .lib-gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .lib-gallery-img {
        height: 120px !important;
        border-radius: 6px !important;
    }

    /* ====== HOIVIEN DETAIL: TAB COOPERATION ====== */
    .coop-tab-intro {
        padding: 14px !important;
        border-radius: 10px !important;
        margin-bottom: 16px !important;
    }

    .coop-banner-inner {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 12px !important;
    }

    .coop-banner-icon {
        width: 48px !important;
        height: 48px !important;
        font-size: 22px !important;
        margin: 0 auto !important;
    }

    .coop-banner-text h4 {
        font-size: 15.5px !important;
    }

    .coop-banner-text p {
        font-size: 12.5px !important;
    }

    .btn-coop-cta {
        width: 100% !important;
        justify-content: center !important;
        height: 42px !important;
        font-size: 13.5px !important;
    }

    .coop-features-row {
        margin: 0 !important;
        gap: 10px !important;
        flex-direction: column !important;
    }

    .coop-feature-col {
        padding: 0 !important;
        min-width: 100% !important;
        flex: 0 0 100% !important;
    }

    /* ====== HOIVIEN DETAIL: TAB REVIEWS ====== */
    .review-overview {
        padding: 14px;
        border-radius: 8px;
    }

    .ro-num {
        font-size: 28px;
    }

    .ro-stars i {
        font-size: 18px;
    }

    .review-form-box {
        padding: 14px;
    }

    .review-form-box textarea {
        font-size: 16px !important;
    }

    .review-item {
        gap: 10px;
    }

    .ri-avatar img {
        width: 38px;
        height: 38px;
    }

    .ri-name {
        font-size: 13px;
    }

    .ri-text {
        font-size: 13px;
    }
}

@media (max-width: 600px) {
    .coop-modal-backdrop {
        padding: 10px !important;
    }

    .coop-modal-dialog {
        max-height: 94vh !important;
        border-radius: 14px !important;
    }

    .coop-modal-header {
        padding: 12px 14px !important;
    }

    .coop-modal-icon {
        width: 34px !important;
        height: 34px !important;
        font-size: 18px !important;
    }

    .coop-modal-title {
        font-size: 15.5px !important;
    }

    .coop-modal-sub {
        font-size: 11.5px !important;
    }

    .coop-modal-body {
        padding: 14px 12px !important;
    }

    .coop-form-grid {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    .coop-form-group {
        margin-bottom: 10px !important;
    }

    .coop-label {
        font-size: 12.5px !important;
        margin-bottom: 4px !important;
    }

    .coop-input {
        font-size: 16px !important;
        padding: 9px 12px 9px 34px !important;
    }

    .coop-textarea {
        font-size: 16px !important;
        min-height: 85px !important;
    }

    .coop-modal-footer {
        padding: 10px 12px !important;
        flex-direction: column-reverse !important;
        gap: 8px !important;
    }

    .coop-modal-footer .coop-btn {
        width: 100% !important;
        justify-content: center !important;
        height: 42px !important;
    }
}

@media (max-width: 499.98px) {
    .cards-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .hero-company {
        gap: 12px;
    }

    .hero-logo {
        width: 76px;
        height: 76px;
        border-radius: 10px;
    }

    .hero-name {
        font-size: 16.5px;
    }

    .metrics-inner {
        gap: 6px;
        padding: 0 10px;
    }

    .metric-item {
        padding: 8px 10px;
        gap: 8px;
    }

    .metric-icon {
        width: 30px;
        height: 30px;
        font-size: 15px;
    }

    .metric-data .md-value {
        font-size: 12.5px;
    }

    .metric-data .md-label {
        font-size: 10px;
    }

    #tab-products .prod-grid, .prod-grid{
        grid-template-columns: repeat(1, 1fr) !important;
    }
}

/* ====== COOPERATION MODAL STYLES ====== */
.coop-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.65);
    z-index: 99999;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    box-sizing: border-box;
}

.coop-modal-backdrop.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.coop-modal-dialog {
    width: 100%;
    max-width: 620px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    overflow: hidden;
    margin: auto !important;
    position: relative;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: transform 0.25s ease;
    box-sizing: border-box;
}

.coop-modal-backdrop.show .coop-modal-dialog {
    transform: scale(1);
}

.coop-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    background: linear-gradient(135deg, #14522a 0%, #1a6b35 100%);
    color: #fff;
}

.coop-modal-title-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.coop-modal-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    flex-shrink: 0;
}

.coop-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.coop-modal-sub {
    margin: 3px 0 0 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
}

.coop-modal-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.15s;
}

.coop-modal-close:hover {
    color: #fff;
}

.coop-modal-body {
    padding: 22px;
    overflow-y: auto;
    font-size: 14px;
}

.coop-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.coop-form-group {
    margin-bottom: 14px;
}

.coop-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 13px;
    color: #333;
}

.coop-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.coop-input-icon {
    position: absolute;
    left: 12px;
    color: #888;
    font-size: 16px;
    pointer-events: none;
}

.coop-input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    border: 1.5px solid #dcdcdc;
    border-radius: 8px;
    font-size: 13.5px;
    color: #333;
    font-family: inherit;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    box-sizing: border-box;
}

.coop-input:focus {
    border-color: #1a6b35;
    box-shadow: 0 0 0 3px rgba(26, 107, 53, 0.15);
}

select.coop-input {
    cursor: pointer;
    background-color: #fff;
}

.coop-textarea {
    padding: 10px 12px;
    min-height: 95px;
    resize: vertical;
}

.coop-note {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f4fbf6;
    border: 1px solid #ccebd4;
    border-radius: 6px;
    padding: 9px 12px;
    font-size: 12.5px;
    color: #1e7039;
    margin-top: 8px;
}

.coop-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 22px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
}

.coop-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: 0.2s;
    border: none;
}

.coop-btn-cancel {
    background: #e9ecef;
    color: #495057;
}

.coop-btn-cancel:hover {
    background: #dde2e6;
}

.coop-btn-submit {
    background: #1a6b35;
    color: #fff;
}

.coop-btn-submit:hover {
    background: #14522a;
}

.coop-btn-submit:disabled {
    background: #88c09a;
    cursor: not-allowed;
}

/* ========================================================
   HỘI VIÊN ƯU TÚ & DANH BẠ HỘI VIÊN CÁ NHÂN
   ======================================================== */

.members-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 28px;
}

.member-card {
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: 14px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.member-card:hover {
    border-color: var(--green-400);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.member-card.is-featured {
    border-color: #f1c40f;
    background: linear-gradient(180deg, #fffef9 0%, #ffffff 100%);
    box-shadow: 0 4px 18px rgba(241, 196, 15, 0.15);
}

.member-card.is-featured:hover {
    border-color: #d4af37;
    box-shadow: 0 10px 28px rgba(212, 175, 55, 0.24);
}

.card-ribbon-uutu {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    background: #fff8e1;
    color: #a06800;
    border: 1px solid #faeec7;
}

.member-card-header {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 14px;
}

.member-avatar-wrap {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--gray-100);
    border: 2px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-avatar-wrap.avatar-gold-ring {
    border: 2.5px solid var(--gold);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.28);
}

.member-header-info {
    flex: 1;
    min-width: 0;
}

.member-fullname {
    font-size: 15px;
    font-weight: 800;
    color: var(--g900);
    margin: 0 0 4px 0;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 5px;
    word-break: break-word;
}

.text-gold {
    color: #f39c12;
    font-size: 13px;
    flex-shrink: 0;
}

.member-assoc-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    color: var(--g7);
    font-weight: 600;
}

.member-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px dashed var(--gray-200);
    margin-bottom: 14px;
    font-size: 12.5px;
}

.member-meta-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--g700);
    line-height: 1.45;
}

.member-meta-row .meta-icon {
    font-size: 14px;
    color: var(--g6);
    flex-shrink: 0;
    margin-top: 2px;
}

.meta-content {
    flex: 1;
    min-width: 0;
}

.meta-role {
    font-weight: 700;
    color: var(--g800);
}

.meta-divider {
    color: var(--gray-400);
    margin: 0 3px;
}

.meta-company-link {
    color: var(--g7);
    text-decoration: none;
    font-weight: 600;
}

.meta-company-link:hover {
    text-decoration: underline;
    color: var(--g9);
}

.meta-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s;
}

.meta-link:hover {
    color: var(--g7);
    text-decoration: underline;
}

.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--gray-100);
    margin-top: auto;
    font-size: 11px;
    color: var(--g500);
}

.member-since {
    display: flex;
    align-items: center;
    gap: 4px;
}

.member-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-action-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--gray-100);
    color: var(--g700);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.15s;
    font-size: 13px;
}

.btn-action-icon:hover {
    background: var(--g7);
    color: #fff;
}

.btn-action-company {
    padding: 4px 8px;
    border-radius: 6px;
    background: #eef8f1;
    color: #1a6b35;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    text-decoration: none;
    transition: all 0.15s;
}

.btn-action-company:hover {
    background: #1a6b35;
    color: #fff;
}

@media (max-width: 1200px) {
    .members-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 860px) {
    .members-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .members-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================================
   BẢN ĐỒ DOANH NGHIỆP HỘI VIÊN - GIAO DIỆN HIỆN ĐẠI
   ======================================================== */

.hoivien-map-wrapper {
    background: #ffffff;
    font-family: inherit;
    color: #2d3748;
    position: relative;
    width: 100%;
}

/* 1. Header Bar: Thống kê số lượng theo tỉnh/thành & tổng quan */
.map-header-bar {
    background: #ffffff;
    border-bottom: 1.5px solid #edf2f7;
    padding: 14px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.map-header-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.map-stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #eef8f1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a6b35;
    font-size: 22px;
    flex-shrink: 0;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 12px;
    color: #718096;
    font-weight: 500;
    line-height: 1.2;
}

.stat-num {
    font-size: 21px;
    font-weight: 800;
    color: #1a6b35;
    line-height: 1.2;
    margin: 1px 0;
}

.stat-sub {
    font-size: 11px;
    color: #a0aec0;
    font-weight: 500;
    line-height: 1.2;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: #e2e8f0;
    margin: 0 4px;
}

.stat-cities-list {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.city-stat-item {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 3px 8px;
    border-radius: 8px;
    border: 1px solid transparent;
}

.city-stat-item:hover {
    background: #f0fdf4;
    border-color: #dcfce7;
}

.city-stat-item.active {
    background: #eef8f1;
    border-color: #1a6b35;
}

.city-name {
    font-size: 12px;
    color: #718096;
    font-weight: 500;
    line-height: 1.2;
}

.city-val-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-top: 2px;
}

.city-num {
    font-size: 18px;
    font-weight: 800;
    color: #1a6b35;
    line-height: 1.2;
}

.city-unit {
    font-size: 11px;
    color: #a0aec0;
    font-weight: 500;
}

.map-header-right {
    display: flex;
    align-items: center;
}

.btn-dashboard {
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 18px;
    background: #ffffff;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-dashboard:hover {
    border-color: #1a6b35;
    box-shadow: 0 4px 14px rgba(26, 107, 53, 0.1);
    transform: translateY(-1px);
    text-decoration: none;
}

.btn-dashboard i {
    font-size: 22px;
    color: #1a6b35;
}

.db-title {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #2d3748;
    line-height: 1.25;
}

.db-sub {
    display: block;
    font-size: 11px;
    color: #a0aec0;
    line-height: 1.2;
}

/* 2. Workspace: Sidebar (Left) + Map (Right) */
.map-workspace {
    display: flex;
    position: relative;
    height: 720px;
    background: #f7f9fa;
    overflow: hidden;
}

@media (min-height: 800px) {
    .map-workspace {
        height: calc(100vh - 190px);
        min-height: 650px;
        max-height: 860px;
    }
}

/* Sidebar Danh sách doanh nghiệp */
.map-sidebar {
    width: 390px;
    min-width: 390px;
    background: #ffffff;
    border-right: 1.5px solid #edf2f7;
    display: flex;
    flex-direction: column;
    height: 100%;
    z-index: 1000;
    position: relative;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.02);
}

.map-sidebar.collapsed {
    margin-left: -390px;
}

.sidebar-head {
    padding: 16px 20px 14px;
    border-bottom: 1px solid #edf2f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
}

.sidebar-title {
    font-size: 13px;
    font-weight: 800;
    color: #2d3748;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin: 0;
}

.btn-toggle-sidebar {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #718096;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s ease;
    padding: 0;
}

.btn-toggle-sidebar:hover {
    background: #edf2f7;
    color: #1a6b35;
}

.sidebar-search-box {
    padding: 10px 16px;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
}

.sidebar-search-box input {
    width: 100%;
    height: 38px;
    padding: 8px 30px 8px 34px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 12.5px;
    color: #2d3748;
    outline: none;
    transition: all 0.2s ease;
    background: #fbfcfd;
}

.sidebar-search-box input:focus {
    background: #ffffff;
    border-color: #1a6b35;
    box-shadow: 0 0 0 3px rgba(26, 107, 53, 0.1);
}

.sidebar-search-box .search-ic {
    position: absolute;
    left: 26px;
    color: #a0aec0;
    font-size: 15px;
    pointer-events: none;
}

.btn-clear-search {
    position: absolute;
    right: 24px;
    background: none;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-clear-search:hover {
    color: #e53e3e;
}

/* Danh sách Card doanh nghiệp cuộn */
.sidebar-cards-list {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.sidebar-cards-list::-webkit-scrollbar {
    width: 5px;
}
.sidebar-cards-list::-webkit-scrollbar-track {
    background: #f8fafc;
}
.sidebar-cards-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.sidebar-cards-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.company-card {
    padding: 14px 16px;
    border-bottom: 1px solid #edf2f7;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
    border-left: 3.5px solid transparent;
    background: #ffffff;
    position: relative;
}

.company-card:hover {
    background: #f8fafc;
}

.company-card.active {
    background: #f4fbf7;
    border-left-color: #1a6b35;
}

.company-logo-box {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 8px;
    border: 1px solid #edf2f7;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 2px;
    box-sizing: border-box;
}

.company-logo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.company-initials {
    font-weight: 800;
    font-size: 11px;
    color: #1a6b35;
    text-align: center;
    line-height: 1.15;
    text-transform: uppercase;
    white-space: pre-line;
    word-break: break-word;
}

.company-info-wrap {
    flex: 1;
    min-width: 0;
}

.company-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 3px;
}

.company-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #1a202c;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 190px;
}

.company-card:hover .company-name {
    color: #1a6b35;
}

.tier-badge {
    font-size: 10.5px;
    font-weight: 700;
    padding: 1.5px 7px;
    border-radius: 999px;
    white-space: nowrap;
    line-height: 1.25;
}

.tier-badge.tier-gold {
    background: #fff8e1;
    color: #b7791f;
    border: 1px solid #ffe082;
}

.tier-badge.tier-diamond {
    background: #e6fffa;
    color: #00796b;
    border: 1px solid #80cbc4;
}

.tier-badge.tier-silver {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.tier-badge.tier-standard {
    background: #f8fafc;
    color: #718096;
    border: 1px solid #e2e8f0;
}

.company-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #718096;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.company-meta-item i {
    font-size: 13px;
    color: #a0aec0;
    flex-shrink: 0;
}

.company-score-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
    padding-left: 4px;
}

.company-score {
    font-size: 14px;
    font-weight: 800;
    color: #1a6b35;
    line-height: 1.2;
}

.company-score .score-max {
    font-size: 11px;
    font-weight: 600;
    color: #a0aec0;
}

.company-score-wrap .star-gold {
    font-size: 13px;
    color: #d4af37;
    margin-top: 4px;
}

.sidebar-footer {
    padding: 12px 16px;
    border-top: 1px solid #edf2f7;
    background: #ffffff;
}

.btn-load-more {
    width: 100%;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    color: #4a5568;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-load-more:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #1a6b35;
}

/* Nút mở rộng Sidebar khi bị thu gọn */
.btn-expand-sidebar {
    position: absolute;
    left: 14px;
    top: 14px;
    z-index: 995;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #1a6b35;
    font-size: 18px;
    transition: all 0.2s ease;
}

.btn-expand-sidebar:hover {
    background: #f4fbf7;
    transform: translateX(2px);
}

/* Khu vực bản đồ */
.map-canvas-wrap {
    flex: 1 1 auto;
    height: 100%;
    min-height: 550px;
    position: relative;
    display: flex;
    flex-direction: column;
    background: #e5e9ec;
    min-width: 0;
    overflow: hidden;
}

#hoivien-map {
    flex: 1 1 auto;
    width: 100% !important;
    height: 100% !important;
    min-height: 550px;
    position: relative;
    z-index: 1;
}

.leaflet-container img.leaflet-tile {
    max-width: none !important;
    max-height: none !important;
}

/* 3. Floating Map Legend (Thanh chú thích nhóm ngành) */
.map-legend-bar {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 990;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    padding: 7px 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    pointer-events: auto;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: #4a5568;
    padding: 3px 8px;
    border-radius: 12px;
    transition: all 0.15s ease;
    user-select: none;
}

.legend-item:hover {
    background: #f1f5f9;
    color: #1a202c;
}

.legend-item.active {
    background: #1a6b35;
    color: #ffffff;
}

.legend-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.legend-item.active .legend-dot {
    outline: 1.5px solid #ffffff;
}

/* Nút "Hiện tất cả" */
.map-floating-controls {
    position: absolute;
    bottom: 22px;
    right: 68px;
    z-index: 990;
}

.btn-fit-all {
    background: #1a6b35;
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 14px rgba(26, 107, 53, 0.25);
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-fit-all:hover {
    background: #14522a;
    box-shadow: 0 6px 18px rgba(26, 107, 53, 0.35);
    transform: translateY(-1px);
}

/* 4. Custom Pin Marker Leaflet */
.leaflet-custom-pin {
    background: transparent;
    border: none;
}

.custom-pin-marker {
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.25));
}

.custom-pin-marker:hover,
.custom-pin-marker.is-active {
    transform: scale(1.18);
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
}

/* 5. Custom Leaflet Popup Card */
.leaflet-popup-content-wrapper {
    padding: 0 !important;
    border-radius: 14px !important;
    overflow: hidden;
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.16), 0 3px 10px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid #edf2f7;
}

.leaflet-popup-content {
    margin: 0 !important;
    width: 350px !important;
    line-height: 1.4;
}

.leaflet-popup-close-button {
    display: none !important;
}

.leaflet-popup-tip {
    background: #ffffff !important;
}

.map-popup-card {
    padding: 18px 20px 20px;
    background: #ffffff;
    position: relative;
}

.popup-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    color: #718096;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    transition: all 0.15s ease;
}

.popup-close-btn:hover {
    background: #e2e8f0;
    color: #1a202c;
}

.popup-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-right: 22px;
}

.popup-logo-box {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 8px;
    border: 1px solid #edf2f7;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 2px;
    box-sizing: border-box;
}

.popup-logo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.popup-initials {
    font-weight: 800;
    font-size: 12px;
    color: #c53030;
    text-align: center;
    line-height: 1.15;
    text-transform: uppercase;
    white-space: pre-line;
}

.popup-header-info {
    flex: 1;
    min-width: 0;
}

.popup-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 3px;
}

.popup-company-name {
    font-size: 14.5px;
    font-weight: 800;
    color: #1a202c;
    margin: 0;
    line-height: 1.3;
}

.popup-tier-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 1.5px 7px;
    border-radius: 999px;
    white-space: nowrap;
}

.popup-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #4a5568;
    margin-top: 3px;
}

.popup-meta-item i {
    font-size: 13px;
    color: #718096;
    flex-shrink: 0;
}

/* 4 Metrics Box */
.popup-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 10px;
    margin: 14px 0 16px;
    padding: 10px 4px;
    text-align: center;
}

.metric-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 0 4px;
}

.metric-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: #e2e8f0;
}

.metric-item i {
    font-size: 15px;
    color: #718096;
    margin-bottom: 2px;
}

.metric-val {
    font-size: 12.5px;
    font-weight: 800;
    color: #1a202c;
    line-height: 1.25;
}

.metric-val.highlight-score {
    color: #1a6b35;
}

.metric-lbl {
    font-size: 10.5px;
    color: #718096;
    margin-top: 2px;
    white-space: nowrap;
}

/* Action Buttons */
.popup-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-popup-detail {
    flex: 1.1;
    background: #1a6b35;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 13px;
    padding: 9px 12px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.btn-popup-detail:hover {
    background: #14522a;
}

.btn-popup-directions {
    flex: 1;
    background: #ffffff;
    color: #2d3748 !important;
    border: 1.5px solid #dcdcdc;
    font-weight: 600;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.btn-popup-directions:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

/* Responsive adjustments for BẢN ĐỒ DOANH NGHIỆP */
@media (max-width: 991.98px) {
    .map-header-bar {
        padding: 10px 14px;
        gap: 10px;
    }

    .map-header-left {
        gap: 12px;
        width: 100%;
        justify-content: space-between;
    }

    .map-stat-card {
        gap: 8px;
    }

    .stat-icon-box {
        width: 36px;
        height: 36px;
        font-size: 18px;
        border-radius: 8px;
    }

    .stat-num {
        font-size: 17px;
    }

    .stat-label {
        font-size: 11px;
    }

    .stat-sub {
        font-size: 10px;
    }

    .stat-divider {
        display: none;
    }

    /* Hiển thị danh sách tỉnh thành dạng thanh trượt ngang trên di động */
    .stat-cities-list {
        display: flex !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 6px;
        width: 100%;
        padding-top: 6px;
        border-top: 1px solid #f1f5f9;
    }

    .stat-cities-list::-webkit-scrollbar {
        display: none;
    }

    .city-stat-item {
        flex: 0 0 auto;
        padding: 4px 10px;
        border-radius: 20px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 5px;
    }

    .city-stat-item.active {
        background: #1a6b35;
        border-color: #1a6b35;
        color: #fff;
    }

    .city-stat-item.active .city-name,
    .city-stat-item.active .city-num,
    .city-stat-item.active .city-unit {
        color: #fff !important;
    }

    .city-name {
        font-size: 11px;
        font-weight: 600;
    }

    .city-num {
        font-size: 12px;
    }

    .city-unit {
        display: none;
    }

    .map-workspace {
        height: calc(100vh - 170px) !important;
        min-height: 480px !important;
        max-height: 720px !important;
    }

    .map-sidebar {
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 86vw !important;
        max-width: 330px !important;
        min-width: unset !important;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.25);
        z-index: 1000;
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
        transform: translateX(0);
        margin-left: 0 !important;
    }

    .map-sidebar.collapsed {
        transform: translateX(-100%) !important;
        margin-left: 0 !important;
    }

    .btn-expand-sidebar {
        position: absolute;
        left: 12px;
        top: 12px;
        z-index: 995;
        width: auto !important;
        height: 38px !important;
        padding: 0 14px !important;
        border-radius: 20px !important;
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15) !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        color: #1a6b35 !important;
    }

    .btn-expand-sidebar .expand-text {
        display: inline !important;
    }

    .map-legend-bar {
        max-width: calc(100% - 100px);
        bottom: 10px;
        left: 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        justify-content: flex-start;
        border-radius: 20px;
        padding: 6px 10px;
        gap: 8px;
    }

    .map-legend-bar::-webkit-scrollbar {
        display: none;
    }

    .legend-item {
        font-size: 11px;
        padding: 2px 6px;
        flex-shrink: 0;
    }

    .btn-fit-all {
        bottom: 10px;
        right: 10px;
        padding: 7px 12px;
        font-size: 11.5px;
        border-radius: 20px;
    }

    .leaflet-popup-content {
        width: calc(100vw - 44px) !important;
        max-width: 310px !important;
    }

    .map-popup-card {
        padding: 12px 14px 14px !important;
    }

    .popup-top {
        gap: 10px !important;
        padding-right: 20px !important;
    }

    .popup-logo-box {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        border-radius: 6px !important;
    }

    .popup-company-name {
        font-size: 13.5px !important;
        line-height: 1.3 !important;
    }

    .popup-meta-item {
        font-size: 11.5px !important;
        margin-top: 2px !important;
    }

    .popup-metrics-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
        padding: 8px 6px !important;
        margin: 10px 0 12px !important;
    }

    .metric-item:not(:last-child)::after {
        display: none !important;
    }

    .metric-item {
        border-bottom: 1px dashed #f1f5f9;
        padding-bottom: 4px;
    }

    .metric-val {
        font-size: 12px !important;
    }

    .metric-lbl {
        font-size: 10px !important;
    }

    .popup-actions {
        gap: 8px !important;
    }

    .btn-popup-detail,
    .btn-popup-directions {
        font-size: 12px !important;
        padding: 8px 10px !important;
    }
}
