.ccrmf-wrap {
  --ccrmf-red: #e42822;
  --ccrmf-ink: #1a2733;
  --ccrmf-muted: #5b6b79;
  --ccrmf-border: #e2e6ea;
  --ccrmf-bg: #ffffff;
  max-width: 1180px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ccrmf-ink);
}

/* ---------------------------------------------------------------- filters */
.ccrmf-filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  background: #f7f8fa;
  border: 1px solid var(--ccrmf-border);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 20px;
}
.ccrmf-filter select,
.ccrmf-filter input[type="text"] {
  border: 1px solid var(--ccrmf-border);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 14px;
  min-width: 160px;
  background: #fff;
  color: var(--ccrmf-ink);
}
.ccrmf-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.ccrmf-count { font-weight: 700; font-size: 15px; }
.ccrmf-empty { padding: 40px 0; text-align: center; color: var(--ccrmf-muted); }
.ccrmf-disabled { padding: 20px; color: var(--ccrmf-muted); font-style: italic; }

/* -------------------------------------------------------------------- btn */
.ccrmf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: opacity .15s ease;
}
.ccrmf-btn:hover { opacity: .85; text-decoration: none; }
.ccrmf-btn-solid { background: var(--ccrmf-red); color: #fff; }
.ccrmf-btn-outline { background: #fff; border-color: var(--ccrmf-ink); color: var(--ccrmf-ink); }

/* ------------------------------------------------------------------- grid */
.ccrmf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.ccrmf-card {
  position: relative;
  border: 1px solid var(--ccrmf-border);
  border-radius: 12px;
  padding: 20px;
  background: var(--ccrmf-bg);
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 1px 2px rgba(16,24,32,0.04);
}

.ccrmf-status-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  padding: 3px 9px;
  border-radius: 999px;
  background: #eef2f6;
  color: var(--ccrmf-muted);
}
.ccrmf-status-new { background: #e7f0fb; color: #2271b1; }
.ccrmf-status-contacted { background: #fbf1de; color: #b26a00; }
.ccrmf-status-won { background: #e6f4ea; color: #1a7f37; }
.ccrmf-status-lost { background: #fbe9e9; color: #b32d2e; }

.ccrmf-card-top { display: flex; gap: 14px; align-items: flex-start; }

.ccrmf-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--ccrmf-border);
}
.ccrmf-logo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a2733, #3a5068);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
}
.ccrmf-logo-lg { width: 84px; height: 84px; font-size: 26px; }

.ccrmf-heading { min-width: 0; }
.ccrmf-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--ccrmf-ink);
  text-decoration: none;
  display: block;
  line-height: 1.25;
}
.ccrmf-name:hover { color: var(--ccrmf-red); text-decoration: none; }

.ccrmf-rating { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 13.5px; flex-wrap: wrap; }
.ccrmf-rating-num { font-weight: 700; }
.ccrmf-stars { color: var(--ccrmf-red); letter-spacing: 1px; }
.ccrmf-reviews { color: #2271b1; }
.ccrmf-rating-lg { font-size: 16px; margin-top: 8px; }

.ccrmf-meta { display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; color: var(--ccrmf-muted); }
.ccrmf-meta-row { display: flex; gap: 6px; align-items: center; }

.ccrmf-services-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ccrmf-muted); margin-bottom: 6px; }
.ccrmf-services-bar { display: flex; height: 6px; border-radius: 999px; overflow: hidden; margin-bottom: 8px; }
.ccrmf-bar-seg { flex: 1; }
.ccrmf-services-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ccrmf-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f1f3f5;
  color: var(--ccrmf-ink);
}
.ccrmf-tag-more { background: transparent; color: var(--ccrmf-muted); }
.ccrmf-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }

.ccrmf-desc { font-size: 13.5px; line-height: 1.55; color: var(--ccrmf-muted); margin: 0; }

.ccrmf-card-footer { display: flex; gap: 10px; margin-top: auto; padding-top: 4px; }
.ccrmf-card-footer .ccrmf-btn { flex: 1; }

/* -------------------------------------------------------------- pagination */
.ccrmf-pagination { display: flex; gap: 6px; justify-content: center; margin-top: 26px; }
.ccrmf-page {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--ccrmf-border);
  color: var(--ccrmf-ink);
  text-decoration: none;
  font-size: 13.5px;
}
.ccrmf-page.is-active { background: var(--ccrmf-ink); color: #fff; border-color: var(--ccrmf-ink); }

/* -------------------------------------------------------------- single view */
.ccrmf-single .ccrmf-back { display: inline-block; margin-bottom: 18px; color: var(--ccrmf-muted); text-decoration: none; font-size: 13.5px; }
.ccrmf-profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ccrmf-border);
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.ccrmf-profile-name { font-size: 28px; margin: 0; font-weight: 800; }
.ccrmf-tagline { color: var(--ccrmf-muted); margin: 4px 0 0; font-size: 14.5px; }
.ccrmf-visit-btn { margin-left: auto; }

.ccrmf-profile-body { display: grid; grid-template-columns: 2fr 1fr; gap: 34px; align-items: start; }
.ccrmf-section { margin-bottom: 28px; }
.ccrmf-section h2 { font-size: 16px; margin: 0 0 10px; }
.ccrmf-section p { line-height: 1.65; color: var(--ccrmf-ink); }
.ccrmf-list { margin: 0; padding-left: 18px; line-height: 1.8; }

.ccrmf-facts { border: 1px solid var(--ccrmf-border); border-radius: 12px; padding: 18px; margin-bottom: 18px; }
.ccrmf-facts h2 { font-size: 14px; margin: 0 0 12px; }
.ccrmf-fact-row { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; padding: 7px 0; border-bottom: 1px dashed var(--ccrmf-border); }
.ccrmf-fact-row:last-child { border-bottom: none; }
.ccrmf-fact-row span { color: var(--ccrmf-muted); }
.ccrmf-muted { color: var(--ccrmf-muted); font-size: 13.5px; line-height: 1.6; }

@media (max-width: 780px) {
  .ccrmf-profile-body { grid-template-columns: 1fr; }
  .ccrmf-visit-btn { margin-left: 0; width: 100%; }
}

/* ---------------------------------------------------- admin grid tweaks */
.ccrmf-grid-admin .ccrmf-card { background: #fff; }
