/**
 * Hồ sơ công ty / Business — bố cục gọn, kiểu mạng xã hội (dùng chung company_detail + business_dashboard).
 */
.page-home.page-company-social,
.page-home.page-business-social,
.page-home.page-identifier-detail {
  --co-brand: #00b67a;
  --co-brand-dark: #047857;
  --co-text: #111827;
  --co-muted: #6b7280;
  --co-line: rgba(15, 23, 42, 0.08);
  --co-radius: 12px;
  --co-font: var(--cs-font-sans, Inter, system-ui, -apple-system, sans-serif);
  font-family: var(--co-font);
  background: #f3f4f6;
  color: var(--co-text);
  overflow-x: hidden;
}

.co-social-profile {
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.co-social-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding-left: clamp(0.85rem, 3vw, 1.25rem);
  padding-right: clamp(0.85rem, 3vw, 1.25rem);
}

.co-social-cover-wrap {
  position: relative;
  margin-bottom: 0.5rem;
}

.co-social-cover {
  min-height: clamp(100px, 22vw, 160px);
  background-size: cover;
  background-position: center;
  background-color: #0f172a;
}

.co-social-cover--gradient {
  background-image: linear-gradient(
    125deg,
    #065f46 0%,
    var(--co-brand) 42%,
    #34d399 100%
  );
}

/* Trang công khai /companies/<slug>/ — hero full ngang giống business */
.co-hero-stack {
  margin: 0;
  width: 100%;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-sizing: border-box;
  overflow: hidden;
}

.co-hero-cover {
  position: relative;
  width: 100%;
  min-height: clamp(168px, 32vw, 260px);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #0a0a0a;
}

.co-hero-cover--has-image {
  background-color: #0a0a0a;
}

.co-hero-cover--plain {
  background-color: #eef2f6;
  background-image: linear-gradient(165deg, #eef2f6 0%, #e2e8f0 48%, #dce3eb 100%);
}

.co-hero-cover__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.co-hero-cover--plain .co-hero-cover__scrim {
  opacity: 0;
}

.co-hero-cover--has-image .co-hero-cover__scrim {
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.5) 0%,
    rgba(15, 23, 42, 0.12) 42%,
    rgba(15, 23, 42, 0.55) 100%
  );
}

.co-hero-cover__inner {
  position: relative;
  z-index: 1;
  padding: clamp(1.35rem, 4vw, 2.15rem) 0;
}

.co-hero-identity {
  display: flex;
  align-items: flex-start;
  gap: 1rem 1.1rem;
  padding: 0;
}

.co-hero-identity__avatar.co-social-avatar-ring {
  width: clamp(88px, 20vw, 116px);
  height: clamp(88px, 20vw, 116px);
  flex-shrink: 0;
}

.co-hero-identity__avatar .co-social-avatar-fallback {
  font-size: clamp(1.75rem, 5vw, 2rem);
}

.co-hero-identity__text {
  flex: 1;
  min-width: 0;
}

.co-hero-title {
  margin: 0 0 0.18rem 0;
  font-size: clamp(1.35rem, 2.8vw, 1.95rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #111827;
}

.co-hero-handle {
  margin: 0 0 0.4rem 0;
  font-size: 0.88rem;
  color: #6b7280;
  line-height: 1.35;
}

.co-hero-meta-row a.co-hero-url {
  font-weight: 600;
  text-decoration: none;
  word-break: break-all;
}

.co-hero-url--placeholder {
  display: inline-block;
  min-width: 10rem;
  height: 1.2rem;
}

.co-hero-cover--has-image .co-hero-title,
.co-hero-cover--type-theme .co-hero-title {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.co-hero-cover--has-image .co-hero-handle,
.co-hero-cover--type-theme .co-hero-handle {
  color: rgba(255, 255, 255, 0.88);
}

.co-hero-cover--has-image .co-hero-breadcrumb,
.co-hero-cover--has-image .co-hero-breadcrumb span:not(a),
.co-hero-cover--type-theme .co-hero-breadcrumb,
.co-hero-cover--type-theme .co-hero-breadcrumb span:not(a) {
  color: rgba(255, 255, 255, 0.82);
}

.co-hero-cover--has-image .co-hero-breadcrumb a,
.co-hero-cover--type-theme .co-hero-breadcrumb a {
  color: #a7f3d0;
  font-weight: 600;
}

.co-hero-cover--has-image .co-hero-breadcrumb a:hover,
.co-hero-cover--type-theme .co-hero-breadcrumb a:hover {
  color: #d1fae5;
}

.co-hero-cover--has-image .co-hero-meta-row a.co-hero-url,
.co-hero-cover--type-theme .co-hero-meta-row a.co-hero-url {
  color: #a7f3d0;
}

.co-hero-cover--has-image .co-hero-meta-row a.co-hero-url:hover,
.co-hero-cover--type-theme .co-hero-meta-row a.co-hero-url:hover {
  color: #d1fae5;
}

.co-hero-cover--has-image .co-hero-badge.co-badge--ok,
.co-hero-cover--type-theme .co-hero-badge.co-badge--ok {
  background: rgba(16, 185, 129, 0.35) !important;
  border-color: rgba(167, 243, 208, 0.45) !important;
  color: #ecfdf5 !important;
}

.co-hero-cover--has-image .co-hero-badge.co-badge--muted,
.co-hero-cover--type-theme .co-hero-badge.co-badge--muted {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  color: rgba(248, 250, 252, 0.92) !important;
}

.co-hero-cover--type-theme .co-hero-cover__scrim {
  opacity: 1;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.42) 0%,
    rgba(15, 23, 42, 0.12) 45%,
    rgba(15, 23, 42, 0.58) 100%
  );
}

.co-hero-cover--id-type-phone {
  background-image: linear-gradient(135deg, #0f766e 0%, #0d9488 45%, #2dd4bf 100%);
}
.co-hero-cover--id-type-telegram {
  background-image: linear-gradient(135deg, #0369a1 0%, #0284c7 40%, #38bdf8 100%);
}
.co-hero-cover--id-type-email {
  background-image: linear-gradient(135deg, #6d28d9 0%, #7c3aed 45%, #a78bfa 100%);
}
.co-hero-cover--id-type-website {
  background-image: linear-gradient(135deg, #0f172a 0%, #334155 42%, #64748b 100%);
}
.co-hero-cover--id-type-wallet {
  background-image: linear-gradient(135deg, #78350f 0%, #ca8a04 48%, #fbbf24 100%);
}
.co-hero-cover--id-type-exchange {
  background-image: linear-gradient(135deg, #155e75 0%, #0891b2 45%, #22d3ee 100%);
}
.co-hero-cover--id-type-bank {
  background-image: linear-gradient(135deg, #1e3a5f 0%, #2563eb 45%, #60a5fa 100%);
}
.co-hero-cover--id-type-other {
  background-image: linear-gradient(135deg, #4b5563 0%, #64748b 48%, #94a3b8 100%);
}

.co-hero-desc {
  margin-top: 0.85rem;
  max-width: min(100%, 52rem);
  text-align: left;
  display: block;
}

.co-hero-desc__label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.78);
}

.co-hero-desc__text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(248, 250, 252, 0.95);
  word-break: break-word;
}

.co-hero-cover--plain .co-hero-desc {
  background: transparent !important;
  border-color: transparent !important;
}
.co-hero-cover--plain .co-hero-desc__label {
  color: #64748b;
}
.co-hero-cover--plain .co-hero-desc__text {
  color: #1f2937;
}

/* Chỉ chồng hero với header — không tô nền đen cả #page-company-social (sẽ lộ dải đen phía trên footer do padding .co-social-profile) */
#page-company-social .co-hero-stack {
  margin-top: -2px;
  padding-top: 2px;
  background-color: #0a0a0a;
}
#page-company-social .co-social-profile {
  background: #f3f4f6;
}

/* Chi tiết định danh /identifiers/<seo>/ — cùng lưới hero với công ty */
#page-identifier-detail .co-hero-stack {
  margin-top: -2px;
  padding-top: 2px;
  background-color: #0a0a0a;
}

a.co-pill.co-pill--link {
  text-decoration: none;
  cursor: pointer;
  color: inherit;
}

.co-pill--disabled {
  opacity: 0.7;
  pointer-events: none;
}

.co-hero-cover--has-image a.co-pill.co-pill--link:hover {
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.18);
}

.co-hero-cover--plain a.co-pill.co-pill--link:hover {
  border-color: rgba(0, 182, 122, 0.45);
  background: rgba(255, 255, 255, 0.92);
}

/* Một hàng pill + icon — cuộn ngang khi hẹp */
.co-hero-pills-strip {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.38rem;
  margin-top: 0.55rem;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.2rem;
  scrollbar-width: thin;
}

.co-pill__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.co-pill.co-pill--iconic {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  padding: 0.28rem 0.55rem;
}

.co-pill.co-pill--iconic i {
  font-size: 0.72rem;
  opacity: 0.92;
}

.co-hero-cover--plain .co-pill.co-pill--iconic i {
  color: var(--co-brand-dark);
}

.co-hero-cover--has-image .co-pill.co-pill--iconic i {
  color: rgba(255, 255, 255, 0.88);
}

.co-pill.co-pill--iconic .co-pill__v {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  font-size: 0.72rem;
}

.co-pill.co-pill--trust {
  align-items: center;
  gap: 0.38rem;
}

.co-pill.co-pill--trust-meta {
  align-items: center;
  gap: 0.35rem;
}

.co-pill.co-pill--trust .tp-star-bubbles {
  display: inline-flex;
  gap: 1px;
}

.co-pill.co-pill--trust .tp-bubble {
  width: 14px;
  height: 14px;
}

.co-pill.co-pill--trust .co-pill__sep {
  opacity: 0.75;
  font-weight: 600;
}

.co-pill.co-pill--iconic .co-pill__v--text {
  font-weight: 700;
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.co-hero-cover--plain .co-pill.co-pill--iconic .co-pill__v,
.co-hero-cover--plain .co-pill.co-pill--iconic .co-pill__v--text {
  color: var(--co-brand-dark);
}

.co-hero-cover--has-image .co-pill.co-pill--iconic .co-pill__v,
.co-hero-cover--has-image .co-pill.co-pill--iconic .co-pill__v--text {
  color: #ecfdf5;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.co-hero-cover--has-image .co-pill.co-pill--iconic .co-pill__v--rating {
  color: #ecfdf5;
}

.co-pill.co-pill--glass {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem 0.4rem;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.35;
  max-width: 100%;
}

.co-pill.co-pill--glass .co-pill__k {
  font-weight: 700;
  opacity: 0.88;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.62rem;
}

.co-hero-cover--plain .co-pill.co-pill--glass {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 23, 42, 0.1);
  color: #1e293b;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.co-hero-cover--plain .co-pill.co-pill--glass .co-pill__k {
  color: #64748b;
}

.co-hero-cover--has-image .co-pill.co-pill--glass,
.co-hero-cover--type-theme .co-pill.co-pill--glass {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.co-hero-cover--has-image .co-pill.co-pill--glass .co-pill__k,
.co-hero-cover--type-theme .co-pill.co-pill--glass .co-pill__k {
  color: rgba(255, 255, 255, 0.78);
}

.co-pill.co-pill--glass-wide {
  flex: 1 1 100%;
  align-items: flex-start;
}

@media (min-width: 640px) {
  .co-pill.co-pill--glass-wide {
    flex: 1 1 auto;
    max-width: 100%;
  }
}

.co-page-main {
  display: block;
  width: 100%;
  margin: 0;
  background: #f3f4f6;
  padding: clamp(1rem, 3vw, 1.5rem) 0 clamp(2rem, 5vw, 3rem);
  border-top: none;
  box-shadow: 0 -1px 0 rgba(15, 23, 42, 0.06);
  box-sizing: border-box;
}

.co-social-cover-meta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.85rem 1.1rem;
  padding: 0 0 1rem;
  margin-top: clamp(-2.5rem, -8vw, -2.75rem);
}

.co-social-avatar-ring {
  flex-shrink: 0;
  width: clamp(72px, 18vw, 92px);
  height: clamp(72px, 18vw, 92px);
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.15);
  background: #fff;
  overflow: hidden;
}

.co-social-avatar-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.co-social-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--co-brand), #34d399);
  color: #fff;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 800;
}

.co-social-titles {
  flex: 1;
  min-width: 0;
  padding-bottom: 0.15rem;
}

.co-social-titles h1 {
  margin: 0 0 0.2rem 0;
  font-size: clamp(1.15rem, 3.2vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.co-social-breadcrumb {
  font-size: 0.6875rem;
  color: var(--co-muted);
  margin-bottom: 0.35rem;
}

.co-social-breadcrumb a {
  color: var(--co-brand-dark);
  text-decoration: none;
  font-weight: 500;
}

.co-social-breadcrumb a:hover {
  text-decoration: underline;
}

.co-social-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  align-items: center;
  font-size: 0.75rem;
}

.co-social-meta-row a {
  color: var(--co-brand-dark);
  font-weight: 600;
  text-decoration: none;
  word-break: break-all;
}

.co-social-meta-row a:hover {
  text-decoration: underline;
}

.co-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.co-badge--ok {
  background: #ecfdf5;
  color: var(--co-brand-dark);
  border: 1px solid rgba(0, 182, 122, 0.25);
}

.co-badge--muted {
  background: #f3f4f6;
  color: #64748b;
  border: 1px solid var(--co-line);
}

.co-social-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 300px);
  gap: clamp(1rem, 3vw, 1.35rem);
  align-items: start;
}

@media (max-width: 900px) {
  .co-social-layout {
    grid-template-columns: 1fr;
  }
}

.co-panel {
  background: #fff;
  border: 1px solid var(--co-line);
  border-radius: var(--co-radius);
  padding: 0.85rem 1rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.co-panel h2,
.co-panel h3 {
  margin: 0 0 0.65rem 0;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--co-text);
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--co-line);
}

.co-panel p,
.co-panel .co-prose {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--co-muted);
  margin: 0;
}

.co-stats-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

@media (max-width: 640px) {
  .co-stats-strip {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-left: -0.15rem;
    margin-right: -0.15rem;
    padding-left: 0.15rem;
    padding-right: 0.15rem;
    scrollbar-width: thin;
    padding-bottom: 0.25rem;
  }
}

.co-stat-chip {
  flex: 0 0 auto;
  min-width: 4.5rem;
  padding: 0.4rem 0.55rem;
  background: #fff;
  border: 1px solid var(--co-line);
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.co-stat-chip__val {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--co-text);
  font-variant-numeric: tabular-nums;
}

.co-stat-chip__val--brand {
  color: var(--co-brand-dark);
}

.co-stat-chip__lbl {
  font-size: 0.5625rem;
  font-weight: 600;
  color: var(--co-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 0.15rem;
  line-height: 1.2;
}

.co-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

/* Đồng bộ cỡ tiêu đề Reviews giữa company và identifier */
#page-company-social #company-feed-title,
#page-identifier-detail .reviews-section .section-header h2 {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

#page-company-social .section-header-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  justify-content: flex-end;
}

#page-company-social .page-app-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0.38rem 0.82rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: var(--co-brand);
  border: 1px solid var(--co-brand);
}

#page-company-social .page-app-btn-primary:hover {
  background: #009d6b;
  border-color: #009d6b;
}

#page-company-social .co-review-filter--date {
  min-width: 132px;
}

#page-company-social .section-header-actions .co-btn {
  border-radius: 999px;
  min-height: 32px;
  padding: 0.38rem 0.82rem;
  font-size: 0.75rem;
}

#page-company-social #company-reviews-feed[hidden] {
  display: none !important;
}

.co-section-head h2 {
  margin: 0;
  font-size: 0.8125rem;
  border: none;
  padding: 0;
}

.co-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.co-btn--primary {
  background: var(--co-brand);
  color: #fff;
}

.co-btn--primary:hover {
  background: #009d6b;
  color: #fff;
}

.co-btn--ghost {
  background: #fff;
  color: var(--co-brand-dark);
  border: 1px solid rgba(0, 182, 122, 0.35);
}

.co-btn--ghost:hover {
  background: #ecfdf5;
}

.co-identifiers-scroll {
  margin: 0 -0.25rem;
  padding: 0 0.25rem 0.35rem;
}

@media (max-width: 640px) {
  .co-identifiers-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

.co-identifiers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.55rem;
}

@media (max-width: 640px) {
  .co-identifiers-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.55rem;
  }
  .co-identifiers-grid .identifier-card {
    flex: 0 0 min(82vw, 260px);
  }

  #page-company-social .section-header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  #page-company-social .page-app-btn-primary,
  #page-company-social .co-review-filter,
  #page-company-social .co-btn {
    width: 100%;
  }
}

.co-feed {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.co-feed-post {
  background: #fff;
  border: 1px solid var(--co-line);
  border-radius: var(--co-radius);
  padding: 0.75rem 0.85rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.co-feed-post--official {
  border-left: 3px solid var(--co-brand);
  background: linear-gradient(180deg, #f8fffc 0%, #fff 48%);
}

.co-feed-post__top {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin-bottom: 0.45rem;
}

.co-feed-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.co-feed-avatar--user,
.co-feed-avatar--brand-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  background: #64748b;
}

.co-feed-avatar--brand-fallback {
  background: var(--co-brand);
}

.co-feed-avatar--brand {
  border: 2px solid rgba(0, 182, 122, 0.35);
}

.co-feed-who {
  flex: 1;
  min-width: 0;
}

.co-feed-name {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--co-text);
  margin: 0;
  line-height: 1.25;
}

.co-feed-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.co-feed-badge {
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--co-brand-dark);
  background: #ecfdf5;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.co-feed-time {
  font-size: 0.6875rem;
  color: var(--co-muted);
  margin: 0.1rem 0 0 0;
}

.co-feed-stars {
  color: #f59e0b;
  font-size: 0.75rem;
  letter-spacing: -0.05em;
}

.co-feed-body {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #374151;
  margin: 0;
  word-break: break-word;
}

.co-feed-media {
  margin-top: 0.55rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--co-line);
  max-height: none;
}

.co-feed-media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 420px;
}

.co-feed-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.co-feed-media-grid .co-feed-media {
  margin-top: 0;
  max-height: 280px;
}

.co-feed-media-grid .co-feed-media img {
  max-height: 280px;
}

.co-feed-actions {
  margin-top: 0.45rem;
}

.co-feed-actions .co-btn {
  padding: 0.28rem 0.55rem;
  font-size: 0.6875rem;
}

.co-aside-stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.co-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0;
  font-size: 0.75rem;
  border-bottom: 1px solid var(--co-line);
}

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

.co-detail-row .lbl {
  color: var(--co-muted);
  font-weight: 500;
}

.co-detail-row .val {
  color: var(--co-text);
  font-weight: 600;
  text-align: right;
}

.co-activity-item {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--co-line);
  font-size: 0.75rem;
}

.co-activity-item:last-child {
  border-bottom: none;
}

.co-activity-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 182, 122, 0.15);
  color: var(--co-brand-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Business dashboard: block bìa nhỏ hơn khi preview */
.page-business .co-social-cover-wrap {
  border-radius: var(--co-radius);
  overflow: hidden;
  border: 1px solid var(--co-line);
}

.page-business .co-social-cover-meta {
  padding-left: 1rem;
  padding-right: 1rem;
}

.identifier-card {
  border: 1px solid var(--co-line);
  border-radius: 10px;
  padding: 0.6rem 0.65rem;
  background: #fafafa;
  font-size: 0.75rem;
}

#page-company-social .identifier-card.identifier-card--glass {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

#page-company-social .identifier-card.identifier-card--glass:hover {
  border-color: rgba(0, 182, 122, 0.28);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.07);
}

#page-company-social .identifier-card.identifier-card--glass .identifier-header {
  gap: 0.5rem;
}

#page-company-social .identifier-card.identifier-card--glass .score-badge {
  border-radius: 999px;
  padding: 0.18rem 0.45rem;
  font-size: 0.62rem;
}

.identifier-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.identifier-type {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: var(--co-brand);
  color: #fff;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
}

.identifier-type.identifier-type--glass {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 182, 122, 0.38);
  color: #047857;
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
}

.identifier-type.identifier-type--glass i {
  color: #00b67a;
}

.identifier-value a {
  color: var(--co-brand-dark);
  font-weight: 600;
  text-decoration: none;
  word-break: break-all;
}

.identifier-value a:hover {
  text-decoration: underline;
}

.score-badge {
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
}
.score-excellent { background: #00b67a; }
.score-good { background: #22c55e; }
.score-average { background: #eab308; color: #422006; }
.score-poor { background: #f97316; }
.score-verypoor { background: #dc2626; }

.loading {
  text-align: center;
  padding: 1.5rem;
  color: var(--co-muted);
  font-size: 0.8125rem;
}

.spinner {
  width: 28px;
  height: 28px;
  border: 2px solid var(--co-line);
  border-top-color: var(--co-brand);
  border-radius: 50%;
  animation: co-spin 0.7s linear infinite;
  margin: 0 auto 0.5rem;
}

@keyframes co-spin {
  to {
    transform: rotate(360deg);
  }
}

/* --- Hero: Trust score + sao vàng --- */
.co-hero-trust {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  max-width: min(100%, 36rem);
}

.co-hero-cover--plain .co-hero-trust {
  border-top-color: rgba(15, 23, 42, 0.1);
}

.co-hero-trust__label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
  color: rgba(255, 255, 255, 0.82);
}

.co-hero-cover--plain .co-hero-trust__label {
  color: #64748b;
}

.co-hero-trust__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.875rem;
}

.co-hero-trust__score {
  color: rgba(248, 250, 252, 0.98);
  font-weight: 600;
}

.co-hero-trust__score strong {
  font-size: 1.05rem;
  font-weight: 800;
}

.co-hero-cover--plain .co-hero-trust__score {
  color: #111827;
}

.co-hero-trust__den {
  font-weight: 600;
  opacity: 0.85;
}

.co-hero-trust__sep,
.co-hero-trust__reviews {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.8125rem;
}

.co-hero-cover--plain .co-hero-trust__sep,
.co-hero-cover--plain .co-hero-trust__reviews {
  color: #475569;
}

.co-hero-trust__hint {
  margin: 0.4rem 0 0 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.72);
}

.co-hero-cover--plain .co-hero-trust__hint {
  color: #64748b;
}

.co-hero-trust .tp-star-bubbles {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.co-hero-trust .tp-bubble {
  width: 17px;
  height: 17px;
}

.co-hero-cover--has-image .co-hero-trust .tp-star-bubbles--gold .tp-bubble--empty,
.co-hero-cover--type-theme .co-hero-trust .tp-star-bubbles--gold .tp-bubble--empty {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

/* Feed Facebook-style (màu theme site) */
.reviews-section--fb {
  padding: 1rem 1.1rem !important;
}

.co-feed-post--fb {
  padding: 0.85rem 0.95rem !important;
  border-radius: var(--co-radius) !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06) !important;
}

.co-feed-post__fb-head {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin-bottom: 0.55rem;
}

.co-feed-post__fb-meta {
  flex: 1;
  min-width: 0;
}

.co-feed-post__fb-meta .co-feed-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.12rem;
}

.co-feed-post__fb-meta .co-feed-name {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--co-text);
  line-height: 1.25;
}

.co-feed-ident-line {
  margin: 0 0 0.2rem 0;
}

.co-feed-ident-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #047857;
  background: rgba(0, 182, 122, 0.1);
  border: 1px solid rgba(0, 182, 122, 0.22);
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  max-width: 100%;
  word-break: break-word;
}

.co-feed-submeta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.35rem;
  font-size: 0.6875rem;
  color: var(--co-muted);
}

.co-feed-submeta__dot {
  opacity: 0.55;
  user-select: none;
}

.co-feed-submeta__rating {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.co-feed-submeta__rating .tp-star-bubbles {
  display: inline-flex;
  gap: 1px;
}

.co-feed-submeta__rating .tp-bubble {
  width: 13px;
  height: 13px;
}

.co-feed-rating-num {
  font-weight: 600;
  color: #334155;
  font-size: 0.6875rem;
}

.co-feed-body-wrap {
  margin-bottom: 0.45rem;
}

.co-feed-post--fb .co-feed-body {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #1f2937;
}

.co-feed-post__engage {
  margin-top: 0.55rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--co-line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.co-feed-reacts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.28rem 0.35rem;
  margin-top: 0.45rem;
  font-size: 0.72rem;
  color: #6b7280;
}

.co-feed-reacts__badge {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
}

.co-feed-reacts__sep {
  opacity: 0.55;
}

.co-feed-engage__btn {
  display: inline-flex;
  flex: 1 1 110px;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #4b5563;
  text-decoration: none;
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
  border: none;
  background: transparent;
  cursor: pointer;
}

.co-feed-engage__btn:hover {
  background: #f3f4f6;
  color: #111827;
}

.co-feed-post--fb .co-feed-media-grid {
  margin-top: 0.45rem;
}

.co-feed-post--fb .co-feed-media {
  border-radius: 10px;
}

.co-feed-post--fb .co-feed-media img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
}

/* Trustpilot stars shared on detail/feed pages */
:is(.page-home, .page-app) .tp-star-bubbles {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  flex-shrink: 0;
}

:is(.page-home, .page-app) .tp-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 2px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

:is(.page-home, .page-app) .tp-bubble--full {
  background: var(--tp-bubble, #00b67a);
}

:is(.page-home, .page-app) .tp-bubble--full .fa-star {
  color: #fff;
  font-size: 8px;
  line-height: 1;
}

:is(.page-home, .page-app) .tp-bubble--empty {
  background: #e3e4e5;
}

:is(.page-home, .page-app) .tp-bubble--empty .fa-star {
  color: #c4c7cc;
  font-size: 8px;
}

:is(.page-home, .page-app) .tp-bubble--partial {
  background: #e3e4e5;
}

:is(.page-home, .page-app) .tp-bubble--partial::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: var(--tp-pct, 0%);
  background: var(--tp-bubble, #00b67a);
  z-index: 0;
}

:is(.page-home, .page-app) .tp-bubble--partial .fa-star {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 8px;
  line-height: 1;
}

.co-review-filter {
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  font-size: 0.75rem;
  padding: 0.35rem 0.65rem;
}

.section-header-actions .co-review-filter,
.co-section-head .co-review-filter {
  min-height: 34px;
}

.section-header-actions .see-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  background: #fff;
  color: #111827;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
}

.section-header-actions .see-more-btn:hover {
  background: #f8fafc;
}

.co-feed-comments {
  margin-top: 0.45rem;
}

.co-feed-comments__list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.co-comment-item {
  display: block;
}

.co-comment-bubble {
  background: #f3f4f6;
  border-radius: 14px;
  padding: 0.4rem 0.55rem;
}

.co-comment-name {
  margin: 0 0 0.1rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #111827;
}

.co-comment-text {
  margin: 0;
  font-size: 0.78rem;
  color: #1f2937;
  line-height: 1.4;
}

.co-comment-meta {
  margin-top: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  color: #6b7280;
}

.co-comment-reply-btn {
  border: none;
  background: transparent;
  color: #4b5563;
  padding: 0;
  font-weight: 700;
  cursor: pointer;
}

.co-comment-children {
  margin-left: 1.35rem;
  margin-top: 0.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.co-comments-loadmore {
  margin-top: 0.35rem;
  border: none;
  background: transparent;
  color: #475569;
  font-size: 0.73rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.co-comments-loadmore:hover {
  text-decoration: underline;
}

.co-feed-comments__form {
  margin-top: 0.45rem;
  display: flex;
  gap: 0.45rem;
}

.co-feed-comments__input {
  flex: 1;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 0.42rem 0.68rem;
  font-size: 0.78rem;
  outline: none;
}

.co-feed-comments__input:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.co-feed-comments__send {
  border: none;
  border-radius: 999px;
  background: #10b981;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
}

.co-image-modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.78);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.co-image-modal[hidden] {
  display: none !important;
}

.co-image-modal__img {
  max-width: min(100%, 1200px);
  max-height: calc(100vh - 2rem);
  border-radius: 10px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}

.co-image-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

#page-company-social .co-feed-post--fb {
  margin-bottom: 0.5rem;
}

.co-feed-post--fb .tp-star-bubbles--gold .tp-bubble--empty {
  border: 1px solid #e5e7eb;
  background: #f9fafb;
}

#page-identifier-detail .detail-content--sidebar-only {
  grid-template-columns: minmax(0, 1fr);
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

#page-company-social .co-panel.co-panel--bare {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

#page-company-social .co-panel.co-panel--bare > .co-section-head {
  margin-bottom: 0.65rem;
}

#page-company-social .co-panel.co-panel--bare h2#company-feed-title,
#page-company-social .co-panel.co-panel--bare > .co-section-head h2 {
  border-bottom: none;
  padding-bottom: 0.15rem;
  margin-bottom: 0;
}

.co-pill--tap,
.co-hero-desc--tap {
  cursor: pointer;
}

.co-pill--tap:hover,
.co-hero-desc--tap:hover {
  filter: brightness(1.06);
}

.co-pill--tap:focus-visible,
.co-hero-desc--tap:focus-visible {
  outline: 2px solid rgba(0, 182, 122, 0.7);
  outline-offset: 2px;
}

.co-hero-info-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.co-hero-info-modal[hidden] {
  display: none !important;
}

.co-hero-info-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
}

.co-hero-info-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  max-height: min(78vh, 520px);
  overflow: auto;
  margin: auto;
  padding: 1.1rem 1.15rem 1.2rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow:
    0 14px 40px rgba(15, 23, 42, 0.18),
    0 0 0 1px rgba(15, 23, 42, 0.04);
}

.co-hero-info-modal__title {
  margin: 0 2rem 0.55rem 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--co-text, #0f172a);
}

.co-hero-info-modal__body {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--co-muted, #64748b);
}

.co-hero-info-modal__close {
  position: absolute;
  top: 0.55rem;
  right: 0.6rem;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--co-text, #0f172a);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.co-hero-info-modal__close:hover {
  background: rgba(15, 23, 42, 0.1);
}
