/* ============================================
   CHURCHCARE — Member Portal
   Layers on churchkind's style.css design system.
   Uses the existing tokens (--navy/--gold/--green/--purple,
   Poppins/Inter, radius + shadow scale). Nothing here
   redefines a churchkind component — it only adds portal UI.
   ============================================ */

:root {
  --cc-bar-h: 68px;
  --cc-sub-h: 52px;
  --cc-ink: var(--text-dark);
  --cc-muted: var(--text-light);
  --cc-line: var(--border);
  --cc-surface: #fbfaf7;
}

body.cc-body {
  background: var(--cc-surface);
  color: var(--text-mid);
}

/* ============================================
   PORTAL TOP BAR
   ============================================ */
.cc-bar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--cc-bar-h);
  background: var(--navy);
  color: #fff;
  z-index: 200;
  display: flex;
  align-items: center;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06), var(--shadow-md);
}

.cc-bar__inner {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.cc-bar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: #fff;
  letter-spacing: -.01em;
  flex-shrink: 0;
}

.cc-bar__logo .logo-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--gold);
  color: var(--navy-dark);
}

.cc-bar__logo strong { font-weight: 800; }

.cc-bar__tag {
  font-family: var(--font-body);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--navy-dark);
  background: var(--gold);
  padding: 3px 8px;
  border-radius: 6px;
  margin-left: 2px;
}

/* search */
.cc-search {
  position: relative;
  flex: 1;
  max-width: 460px;
}

.cc-search input {
  width: 100%;
  height: 42px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-family: var(--font-body);
  font-size: .9rem;
  padding: 0 18px 0 44px;
  transition: var(--transition);
}

.cc-search input::placeholder { color: rgba(255, 255, 255, .6); }

.cc-search input:focus {
  outline: none;
  background: #fff;
  color: var(--text-dark);
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 147, 58, .25);
}

.cc-search input:focus::placeholder { color: var(--text-light); }

.cc-search svg {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, .7);
  pointer-events: none;
}

.cc-search input:focus + svg { color: var(--text-light); }

.cc-bar__spacer { flex: 1; }

.cc-bar__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.cc-iconbtn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, .82);
  font-family: var(--font-body);
  font-size: .84rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.cc-iconbtn:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.cc-iconbtn svg { width: 17px; height: 17px; }

.cc-iconbtn__count {
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: .68rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  padding: 0 5px;
}

.cc-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-dark);
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .82rem;
  border: 0;
  cursor: pointer;
  transition: var(--transition);
}

.cc-avatar:hover { transform: scale(1.06); }

/* ============================================
   SUB NAV
   ============================================ */
.cc-sub {
  position: fixed;
  top: var(--cc-bar-h);
  left: 0;
  right: 0;
  height: var(--cc-sub-h);
  background: #fff;
  border-bottom: 1px solid var(--cc-line);
  z-index: 190;
}

.cc-sub__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.cc-sub__inner::-webkit-scrollbar { display: none; }

.cc-sub a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-mid);
  white-space: nowrap;
  transition: var(--transition);
}

.cc-sub a svg { width: 16px; height: 16px; }
.cc-sub a:hover { background: var(--navy-light); color: var(--navy); }

.cc-sub a.is-active {
  background: var(--navy);
  color: #fff;
  font-weight: 600;
}

/* ============================================
   LAYOUT
   ============================================ */
.cc-main {
  padding-top: calc(var(--cc-bar-h) + var(--cc-sub-h));
  min-height: 100vh;
}

.cc-wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
}

.cc-section { padding: 44px 0; }
.cc-section--tight { padding: 28px 0; }

.cc-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.cc-head h2 {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--cc-ink);
  letter-spacing: -.02em;
  line-height: 1.2;
}

.cc-head p {
  color: var(--cc-muted);
  font-size: .93rem;
  margin-top: 5px;
  max-width: 620px;
}

.cc-head__link {
  font-size: .87rem;
  font-weight: 600;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.cc-head__link:hover { color: var(--gold-dark); }
.cc-head__link svg { width: 15px; height: 15px; }

.cc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 10px;
}

.cc-eyebrow svg { width: 14px; height: 14px; }

/* ============================================
   WELCOME BANNER
   ============================================ */
.cc-welcome {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 62%, #24406f 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 40px 44px;
  position: relative;
  overflow: hidden;
  margin-top: 34px;
}

.cc-welcome::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -70px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 147, 58, .34), transparent 68%);
  pointer-events: none;
}

.cc-welcome__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}

.cc-welcome h1 {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.15;
  margin-bottom: 10px;
}

.cc-welcome h1 em {
  font-style: normal;
  color: var(--gold);
}

.cc-welcome p {
  color: rgba(255, 255, 255, .82);
  font-size: 1rem;
  max-width: 560px;
  line-height: 1.65;
}

.cc-welcome__stats {
  display: flex;
  gap: 14px;
}

.cc-stat {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  text-align: center;
  min-width: 124px;
  backdrop-filter: blur(6px);
}

.cc-stat__num {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -.02em;
}

.cc-stat__label {
  font-size: .72rem;
  color: rgba(255, 255, 255, .78);
  margin-top: 7px;
  letter-spacing: .04em;
  line-height: 1.35;
}

/* ============================================
   SERVICE CARDS — the high-value support
   ============================================ */
.cc-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
}

.cc-service {
  background: #fff;
  border: 1px solid var(--cc-line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.cc-service:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.cc-service__top {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 16px;
}

.cc-ico {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.cc-ico svg { width: 25px; height: 25px; }
.cc-ico--gold   { background: var(--gold-light);   color: var(--gold-dark); }
.cc-ico--navy   { background: var(--navy-light);   color: var(--navy); }
.cc-ico--green  { background: var(--green-light);  color: var(--green-dark); }
.cc-ico--purple { background: var(--purple-light); color: var(--purple); }
.cc-ico--teal   { background: var(--teal-light);   color: var(--teal); }
.cc-ico--amber  { background: var(--gold-light);   color: var(--gold-dark); }
.cc-ico--indigo { background: #e8e7fb;             color: var(--indigo); }

.cc-service h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cc-ink);
  letter-spacing: -.015em;
  line-height: 1.3;
}

.cc-service__provider {
  font-size: .78rem;
  color: var(--cc-muted);
  margin-top: 3px;
}

.cc-service__strap {
  color: var(--text-mid);
  font-size: .93rem;
  line-height: 1.6;
  margin-bottom: 18px;
  flex: 1;
}

.cc-value {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: .74rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.cc-value svg { width: 13px; height: 13px; }

.cc-service__foot {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--cc-line);
}

.cc-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  letter-spacing: -.01em;
}

.cc-phone svg { width: 17px; height: 17px; color: var(--gold-dark); }

/* ============================================
   BUTTONS (small additions only — .btn comes from style.css)
   ============================================ */
.cc-btn-sm {
  padding: 9px 18px;
  font-size: .84rem;
}

.cc-btn-navy {
  background: var(--navy);
  color: #fff;
  border: 1px solid var(--navy);
}

.cc-btn-navy:hover { background: var(--navy-dark); border-color: var(--navy-dark); }

.cc-btn-line {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--cc-line);
}

.cc-btn-line:hover { border-color: var(--navy); background: var(--navy-light); }

/* ============================================
   CATEGORY TILES
   ============================================ */
.cc-cats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.cc-cat {
  background: #fff;
  border: 1px solid var(--cc-line);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  display: flex;
  align-items: center;
  gap: 13px;
  transition: var(--transition);
}

.cc-cat:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.cc-cat__ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.cc-cat__ico svg { width: 20px; height: 20px; }

.cc-cat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: .93rem;
  font-weight: 600;
  color: var(--cc-ink);
  line-height: 1.3;
}

.cc-cat span {
  font-size: .76rem;
  color: var(--cc-muted);
}

/* ============================================
   OFFER GRID
   ============================================ */
.cc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(252px, 1fr));
  gap: 18px;
}

.cc-offer {
  background: #fff;
  border: 1px solid var(--cc-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.cc-offer:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.cc-offer__head {
  height: 108px;
  display: grid;
  place-items: center;
  position: relative;
  background: linear-gradient(135deg, var(--off-white), #eef1f7);
  border-bottom: 1px solid var(--cc-line);
}

.cc-mono {
  width: 62px;
  height: 62px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  color: #fff;
  letter-spacing: -.02em;
  box-shadow: var(--shadow-sm);
}

/* Brand logo tile — sits in the same slot as .cc-mono */
.cc-logo {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--cc-line);
  display: grid;
  place-items: center;
  padding: 13px;
  box-shadow: var(--shadow-sm);
}

.cc-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* larger variant used on detail heroes */
.cc-logo.cc-mark--lg {
  width: 78px;
  height: 78px;
  border-radius: 22px;
  padding: 14px;
  border-color: transparent;
}

.cc-mono.cc-mark--lg {
  width: 78px;
  height: 78px;
  border-radius: 22px;
  font-size: 1.9rem;
}

.cc-callout__demo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(26, 47, 94, .07);
  border: 1px dashed rgba(26, 47, 94, .25);
  color: var(--navy);
  font-size: .82rem;
  font-weight: 600;
  padding: 11px 18px;
  border-radius: var(--radius-pill);
}

.cc-callout__demo svg { width: 15px; height: 15px; }

.cc-offer__badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: var(--navy);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  letter-spacing: .01em;
}

.cc-offer__badge--free { background: var(--green-dark); }

.cc-fav {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--cc-line);
  background: rgba(255, 255, 255, .92);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-light);
  z-index: 2;
}

.cc-fav svg { width: 16px; height: 16px; }
.cc-fav:hover { border-color: var(--gold); color: var(--gold-dark); transform: scale(1.1); }

.cc-fav.is-on {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

.cc-fav.is-on svg { fill: currentColor; }

.cc-offer__body {
  padding: 16px 17px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cc-offer__brand {
  font-family: var(--font-heading);
  font-size: .97rem;
  font-weight: 600;
  color: var(--cc-ink);
  line-height: 1.3;
  margin-bottom: 5px;
}

.cc-offer__text {
  font-size: .82rem;
  color: var(--cc-muted);
  line-height: 1.55;
  flex: 1;
}

.cc-offer__cat {
  font-size: .69rem;
  color: var(--text-light);
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--cc-line);
  display: flex;
  align-items: center;
  gap: 5px;
  letter-spacing: .03em;
}

.cc-offer__cat svg { width: 12px; height: 12px; }

/* ============================================
   FILTER BAR
   ============================================ */
.cc-filters {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.cc-chip {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--cc-line);
  background: #fff;
  font-family: var(--font-body);
  font-size: .84rem;
  font-weight: 500;
  color: var(--text-mid);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.cc-chip:hover { border-color: var(--navy); color: var(--navy); }

.cc-chip.is-on {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  font-weight: 600;
}

.cc-count {
  font-size: .84rem;
  color: var(--cc-muted);
  margin-left: auto;
  white-space: nowrap;
}

/* ============================================
   DETAIL PAGE
   ============================================ */
.cc-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .86rem;
  font-weight: 500;
  color: var(--cc-muted);
  margin: 28px 0 18px;
  transition: var(--transition);
}

.cc-back:hover { color: var(--navy); gap: 9px; }
.cc-back svg { width: 16px; height: 16px; }

.cc-detail {
  background: #fff;
  border: 1px solid var(--cc-line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 26px;
}

.cc-detail__hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding: 40px 44px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 26px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.cc-detail__hero::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -90px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 147, 58, .3), transparent 70%);
}

.cc-detail__ico {
  width: 78px;
  height: 78px;
  border-radius: 22px;
  background: var(--gold);
  color: var(--navy-dark);
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
}

.cc-detail__ico svg { width: 38px; height: 38px; }

.cc-detail__htext { position: relative; z-index: 1; }

.cc-detail__htext h1 {
  font-family: var(--font-heading);
  font-size: 1.95rem;
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.18;
  margin-bottom: 7px;
}

.cc-detail__htext p {
  color: rgba(255, 255, 255, .82);
  font-size: 1rem;
  line-height: 1.6;
}

.cc-detail__body { padding: 36px 44px 40px; }

.cc-detail__body > p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-mid);
  max-width: 760px;
}

.cc-callout {
  background: var(--gold-light);
  border: 1px solid rgba(201, 147, 58, .3);
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  margin: 26px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cc-callout__label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 5px;
}

.cc-callout__num {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.02em;
  line-height: 1.1;
}

.cc-callout__note {
  font-size: .84rem;
  color: var(--text-mid);
  margin-top: 5px;
}

.cc-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px 30px;
  margin: 22px 0 6px;
}

.cc-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: .93rem;
  color: var(--text-mid);
  line-height: 1.6;
}

.cc-list svg {
  width: 18px;
  height: 18px;
  color: var(--green);
  flex-shrink: 0;
  margin-top: 3px;
}

.cc-sub-h {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cc-ink);
  margin: 32px 0 6px;
  letter-spacing: -.015em;
}

.cc-panel {
  background: var(--off-white);
  border: 1px solid var(--cc-line);
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  margin: 22px 0;
}

.cc-who {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--navy-light);
  border-radius: var(--radius-md);
  padding: 17px 20px;
  margin: 24px 0;
  font-size: .9rem;
  color: var(--navy);
  line-height: 1.6;
}

.cc-who svg { width: 19px; height: 19px; flex-shrink: 0; margin-top: 2px; }

.cc-small {
  font-size: .79rem;
  color: var(--text-light);
  line-height: 1.65;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--cc-line);
  max-width: 820px;
}

/* ============================================
   GIFT CARDS
   ============================================ */
.cc-gc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(198px, 1fr));
  gap: 14px;
}

.cc-gc {
  background: #fff;
  border: 1px solid var(--cc-line);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 13px;
  transition: var(--transition);
}

.cc-gc:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.cc-gc__mono {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: .95rem;
  color: #fff;
  flex-shrink: 0;
}

.cc-gc__logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--cc-line);
  display: grid;
  place-items: center;
  padding: 7px;
  flex-shrink: 0;
}

.cc-gc__logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.cc-gc strong {
  display: block;
  font-size: .87rem;
  font-weight: 600;
  color: var(--cc-ink);
  line-height: 1.3;
}

.cc-gc span {
  font-size: .8rem;
  font-weight: 700;
  color: var(--green-dark);
}

/* ============================================
   CALCULATOR
   ============================================ */
.cc-calc {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 26px;
  align-items: start;
}

.cc-calc__card {
  background: #fff;
  border: 1px solid var(--cc-line);
  border-radius: var(--radius-xl);
  padding: 32px 34px;
}

.cc-field { margin-bottom: 20px; }

.cc-field label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--cc-ink);
  margin-bottom: 8px;
}

.cc-field label svg { width: 16px; height: 16px; color: var(--gold-dark); }

.cc-field__row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cc-input {
  position: relative;
  flex: 1;
}

.cc-input span {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: .95rem;
  pointer-events: none;
}

.cc-input input {
  width: 100%;
  height: 46px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--cc-line);
  background: #fff;
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text-dark);
  padding: 0 15px 0 32px;
  transition: var(--transition);
}

.cc-input input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 147, 58, .16);
}

.cc-toggle {
  display: flex;
  background: var(--off-white);
  border: 1px solid var(--cc-line);
  border-radius: var(--radius-sm);
  padding: 3px;
  flex-shrink: 0;
}

.cc-toggle button {
  padding: 7px 13px;
  border: 0;
  background: transparent;
  border-radius: 7px;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
}

.cc-toggle button.is-on {
  background: var(--navy);
  color: #fff;
}

.cc-result {
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 34px;
  position: sticky;
  top: calc(var(--cc-bar-h) + var(--cc-sub-h) + 24px);
  overflow: hidden;
}

.cc-result::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -70px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 147, 58, .32), transparent 70%);
}

.cc-result__inner { position: relative; z-index: 1; }

.cc-result__label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.cc-result__num {
  font-family: var(--font-heading);
  font-size: 3.4rem;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: 8px;
}

.cc-result__sub {
  color: rgba(255, 255, 255, .8);
  font-size: .93rem;
  line-height: 1.6;
  margin-bottom: 22px;
}

.cc-result__rows {
  border-top: 1px solid rgba(255, 255, 255, .16);
  padding-top: 18px;
}

.cc-result__row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 0;
  font-size: .87rem;
  color: rgba(255, 255, 255, .8);
}

.cc-result__row strong { color: var(--gold); font-weight: 700; }

/* ============================================
   ACCOUNT
   ============================================ */
.cc-account {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.cc-card {
  background: #fff;
  border: 1px solid var(--cc-line);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
}

.cc-card h3 {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--cc-ink);
  margin-bottom: 6px;
  letter-spacing: -.015em;
}

.cc-card > p {
  font-size: .88rem;
  color: var(--cc-muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

.cc-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--cc-line);
  font-size: .9rem;
}

.cc-row:last-child { border-bottom: 0; }
.cc-row span { color: var(--cc-muted); }
.cc-row strong { color: var(--cc-ink); font-weight: 600; text-align: right; }

.cc-prefs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.cc-empty {
  text-align: center;
  padding: 70px 24px;
  background: #fff;
  border: 1px dashed var(--cc-line);
  border-radius: var(--radius-xl);
}

.cc-empty svg {
  width: 44px;
  height: 44px;
  color: var(--text-light);
  margin: 0 auto 16px;
  opacity: .55;
}

.cc-empty h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cc-ink);
  margin-bottom: 7px;
}

.cc-empty p {
  color: var(--cc-muted);
  font-size: .92rem;
  max-width: 400px;
  margin: 0 auto 20px;
}

/* ============================================
   HELP STRIP
   ============================================ */
.cc-help {
  background: var(--navy-dark);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
  margin: 20px 0 46px;
}

.cc-help__text h3 {
  font-family: var(--font-heading);
  font-size: 1.28rem;
  font-weight: 700;
  margin-bottom: 5px;
  letter-spacing: -.015em;
}

.cc-help__text p {
  color: rgba(255, 255, 255, .76);
  font-size: .92rem;
  line-height: 1.6;
}

.cc-help__num {
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--gold);
  color: var(--navy-dark);
  padding: 15px 26px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -.01em;
  transition: var(--transition);
  white-space: nowrap;
}

.cc-help__num svg { width: 20px; height: 20px; }

/* ============================================
   FOOTER NOTE
   ============================================ */
.cc-foot {
  border-top: 1px solid var(--cc-line);
  padding: 30px 0 46px;
  text-align: center;
  font-size: .8rem;
  color: var(--text-light);
  line-height: 1.7;
}

.cc-foot a { color: var(--navy); font-weight: 500; }
.cc-foot a:hover { color: var(--gold-dark); }

.cc-demo-flag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--gold-light);
  border: 1px solid rgba(201, 147, 58, .35);
  color: var(--gold-dark);
  font-size: .74rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
  letter-spacing: .04em;
}

.cc-demo-flag svg { width: 14px; height: 14px; }

/* ============================================
   LOGIN PAGE
   ============================================ */
.cc-login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
}

.cc-login__aside {
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-dark) 55%, #1d3763 100%);
  color: #fff;
  padding: 56px 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.cc-login__aside::after {
  content: "";
  position: absolute;
  left: -110px;
  bottom: -140px;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 147, 58, .26), transparent 68%);
}

.cc-login__brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.2rem;
  position: relative;
  z-index: 1;
}

.cc-login__brand .logo-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--gold);
  color: var(--navy-dark);
}

.cc-login__brand strong { font-weight: 800; }

.cc-login__mid { position: relative; z-index: 1; padding: 40px 0; }

.cc-login__mid h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.cc-login__mid h1 em { font-style: normal; color: var(--gold); }

.cc-login__mid > p {
  color: rgba(255, 255, 255, .82);
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 460px;
  margin-bottom: 30px;
}

.cc-login__points {
  display: grid;
  gap: 15px;
  max-width: 460px;
}

.cc-login__point {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.cc-login__point-ico {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--gold);
}

.cc-login__point-ico svg { width: 18px; height: 18px; }

.cc-login__point strong {
  display: block;
  font-family: var(--font-heading);
  font-size: .96rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.cc-login__point span {
  font-size: .85rem;
  color: rgba(255, 255, 255, .72);
  line-height: 1.55;
}

.cc-login__foot {
  position: relative;
  z-index: 1;
  font-size: .8rem;
  color: rgba(255, 255, 255, .6);
}

.cc-login__main {
  display: grid;
  place-items: center;
  padding: 48px 40px;
  background: var(--cc-surface);
}

.cc-login__form {
  width: 100%;
  max-width: 412px;
}

.cc-login__form h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--cc-ink);
  letter-spacing: -.025em;
  margin-bottom: 7px;
}

.cc-login__form > p {
  color: var(--cc-muted);
  font-size: .93rem;
  line-height: 1.6;
  margin-bottom: 28px;
}

.cc-login__form .cc-field label { font-size: .85rem; }

.cc-login__form input[type="email"],
.cc-login__form input[type="password"],
.cc-login__form input[type="text"] {
  width: 100%;
  height: 48px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--cc-line);
  background: #fff;
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text-dark);
  padding: 0 16px;
  transition: var(--transition);
}

.cc-login__form input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 147, 58, .16);
}

.cc-login__form .btn { width: 100%; margin-top: 6px; }

.cc-login__hint {
  background: #fff;
  border: 1px dashed rgba(201, 147, 58, .5);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 24px;
  font-size: .84rem;
  line-height: 1.65;
  color: var(--text-mid);
}

.cc-login__hint strong { color: var(--gold-dark); }

.cc-login__hint code {
  background: var(--gold-light);
  color: var(--gold-dark);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: .84rem;
  font-weight: 600;
}

.cc-tabs {
  display: flex;
  gap: 4px;
  background: #fff;
  border: 1px solid var(--cc-line);
  border-radius: var(--radius-pill);
  padding: 4px;
  margin-bottom: 26px;
}

.cc-tab {
  flex: 1;
  padding: 10px 14px;
  border: 0;
  background: transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: .84rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.cc-tab:hover { color: var(--navy); }

.cc-tab.is-on {
  background: var(--navy);
  color: #fff;
}

.cc-field--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cc-field--split label {
  min-height: 22px;
}

.cc-church-found {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 9px;
  padding: 10px 14px;
  background: var(--green-light);
  border: 1px solid rgba(74, 124, 89, .3);
  border-radius: var(--radius-sm);
  font-size: .87rem;
  font-weight: 600;
  color: var(--green-dark);
}

.cc-church-found svg { width: 16px; height: 16px; flex-shrink: 0; }

.cc-login__meta {
  margin-top: 22px;
  font-size: .84rem;
  color: var(--cc-muted);
  text-align: center;
  line-height: 1.7;
}

.cc-login__meta a { color: var(--navy); font-weight: 500; }
.cc-login__meta a:hover { color: var(--gold-dark); }

.cc-error {
  background: #fdecec;
  border: 1px solid #f5c2c2;
  color: #a12a2a;
  border-radius: var(--radius-sm);
  padding: 11px 15px;
  font-size: .85rem;
  margin-bottom: 16px;
  display: none;
  align-items: center;
  gap: 9px;
}

.cc-error.is-on { display: flex; }
.cc-error svg { width: 17px; height: 17px; flex-shrink: 0; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1080px) {
  .cc-calc { grid-template-columns: 1fr; }
  .cc-result { position: static; }
}

@media (max-width: 960px) {
  .cc-login { grid-template-columns: 1fr; }
  .cc-login__aside { padding: 40px 32px; }
  .cc-login__mid { padding: 30px 0; }
  .cc-login__mid h1 { font-size: 2rem; }
  .cc-welcome__inner { grid-template-columns: 1fr; }
  .cc-welcome__stats { flex-wrap: wrap; }
}

@media (max-width: 860px) {
  .cc-search { display: none; }
  .cc-bar__inner { gap: 12px; }
  .cc-iconbtn span { display: none; }
  .cc-welcome { padding: 30px 26px; }
  .cc-welcome h1 { font-size: 1.65rem; }
  .cc-detail__hero { padding: 30px 26px; grid-template-columns: 1fr; }
  .cc-detail__htext h1 { font-size: 1.5rem; }
  .cc-detail__body { padding: 28px 26px 32px; }
  .cc-help { padding: 26px; }
  .cc-callout { padding: 20px 22px; }
}

@media (max-width: 620px) {
  .cc-wrap { padding: 0 18px; }
  .cc-bar__inner { padding: 0 18px; }
  .cc-sub__inner { padding: 0 18px; }
  .cc-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .cc-gc-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .cc-stat { min-width: 104px; padding: 14px 16px; }
  .cc-result__num { font-size: 2.6rem; }
  .cc-login__aside { padding: 32px 22px; }
  .cc-login__main { padding: 34px 22px; }
}
