/* Cheapplanet community upgrade. Existing site colors remain the source of truth. */
.cp-primary-actions,
.cp-friday-fundraisers,
.cp-community-stream {
  width: min(1180px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

.cp-primary-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 34px;
  margin-bottom: 6px;
}

.cp-primary-action {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 92px;
  padding: 18px 22px;
  border: 1px solid var(--cp-border, #dfe8e4);
  border-radius: 22px;
  color: var(--cp-text, #15212c);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--cp-card, #fff) 96%, var(--cp-accent, #f97316) 4%), var(--cp-card, #fff));
  box-shadow: 0 14px 36px rgba(16, 42, 67, .08);
  text-align: left;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.cp-primary-action:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--cp-accent, #f97316) 38%, var(--cp-border, #dfe8e4));
  box-shadow: 0 18px 42px rgba(16, 42, 67, .13);
}

.cp-action-icon {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  place-items: center;
  border-radius: 17px;
  color: var(--cp-accent-text, #fff);
  background: var(--cp-accent, #f97316);
  font-size: 1.5rem;
  font-weight: 900;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--cp-accent, #f97316) 32%, transparent);
}

.cp-primary-action strong,
.cp-primary-action small { display: block; }
.cp-primary-action strong { font-size: 1.12rem; margin-bottom: 4px; }
.cp-primary-action small { color: #687782; line-height: 1.35; }

#categories .category-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#categories .category-card {
  min-height: 118px;
}

.cp-friday-fundraisers {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 26px;
  margin-top: 14px;
  margin-bottom: 52px;
  padding: 30px;
  border: 1px solid color-mix(in srgb, var(--cp-accent, #f97316) 34%, var(--cp-border, #dfe8e4));
  border-radius: 28px;
  color: var(--cp-text, #15212c);
  background:
    radial-gradient(circle at 88% 20%, color-mix(in srgb, var(--cp-accent, #f97316) 18%, transparent), transparent 34%),
    linear-gradient(145deg, var(--cp-card, #fff), color-mix(in srgb, var(--cp-card, #fff) 91%, var(--cp-accent, #f97316) 9%));
  box-shadow: 0 22px 48px rgba(16, 42, 67, .11);
  overflow: hidden;
}

.cp-mini-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 12px;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--cp-accent, #f97316);
  background: color-mix(in srgb, var(--cp-accent, #f97316) 11%, transparent);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.cp-friday-copy h2,
.cp-community-stream h2 {
  margin: 0;
  color: var(--cp-text, #15212c);
  font-size: clamp(1.65rem, 3.4vw, 2.45rem);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.cp-friday-copy p {
  max-width: 690px;
  margin: 16px 0 18px;
  color: #687782;
  line-height: 1.65;
}

.cp-friday-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.cp-friday-trust span {
  padding: 8px 11px;
  border: 1px solid var(--cp-border, #dfe8e4);
  border-radius: 999px;
  background: color-mix(in srgb, var(--cp-card, #fff) 92%, var(--cp-accent, #f97316) 8%);
  font-size: .8rem;
  font-weight: 760;
}

.cp-friday-card {
  display: grid;
  align-content: center;
  gap: 10px;
  min-height: 230px;
  padding: 24px;
  border-radius: 22px;
  color: white;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--cp-footer, #111827) 82%, #0a2644 18%), var(--cp-footer, #111827));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 18px 38px rgba(0,0,0,.18);
}

.cp-friday-icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 16px;
  background: rgba(255,255,255,.1);
  font-size: 1.45rem;
}

.cp-friday-card strong { font-size: 1.08rem; }
.cp-friday-card > span { color: rgba(255,255,255,.72); line-height: 1.5; font-size: .9rem; }

.cp-fundraiser-apply,
.cp-modal-account,
.cp-account-shortcut {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  color: var(--cp-accent-text, #fff);
  background: var(--cp-accent, #f97316);
  font-weight: 800;
}

.cp-fundraiser-apply { margin-top: 6px; width: fit-content; }

.cp-community-stream {
  padding: 62px 0 38px;
}

.cp-section-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.cp-section-subtitle {
  max-width: 430px;
  color: #687782;
  line-height: 1.55;
  text-align: right;
}

.cp-community-channel-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.cp-community-channel-grid button {
  display: grid;
  gap: 6px;
  min-height: 126px;
  padding: 18px;
  border: 1px solid var(--cp-border, #dfe8e4);
  border-radius: 18px;
  color: var(--cp-text, #15212c);
  background: var(--cp-card, #fff);
  text-align: left;
  box-shadow: 0 8px 24px rgba(16,42,67,.05);
}

.cp-community-channel-grid button > span { font-size: 1.55rem; }
.cp-community-channel-grid strong { font-size: .94rem; }
.cp-community-channel-grid small { color: #687782; line-height: 1.3; }

.cp-verified-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 18px;
  color: var(--cp-text, #15212c);
  background: color-mix(in srgb, var(--cp-accent, #f97316) 8%, var(--cp-card, #fff));
  border: 1px solid color-mix(in srgb, var(--cp-accent, #f97316) 18%, var(--cp-border, #dfe8e4));
}

.cp-verified-strip > div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cp-verified-strip strong,
.cp-verified-strip small { display: block; }
.cp-verified-strip small { margin-top: 3px; color: #687782; }
.cp-verified-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: #1f9d63;
  font-weight: 900;
}

.cp-fundraiser-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4,10,20,.64);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.cp-fundraiser-modal.open { opacity: 1; pointer-events: auto; }
.cp-fundraiser-modal-card {
  position: relative;
  width: min(560px, 100%);
  padding: 28px;
  border-radius: 24px;
  color: var(--cp-text, #15212c);
  background: var(--cp-card, #fff);
  box-shadow: 0 28px 70px rgba(0,0,0,.28);
}
.cp-fundraiser-modal-card h3 { margin: 0; font-size: 1.7rem; }
.cp-fundraiser-modal-card > p { color: #687782; line-height: 1.55; }
.cp-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.06);
  font-size: 1.5rem;
}
.cp-approval-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0;
}
.cp-approval-grid > div {
  padding: 14px;
  border: 1px solid var(--cp-border, #dfe8e4);
  border-radius: 15px;
  background: color-mix(in srgb, var(--cp-card, #fff) 96%, var(--cp-accent, #f97316) 4%);
}
.cp-approval-grid strong,
.cp-approval-grid span { display: block; }
.cp-approval-grid span { margin-top: 6px; color: #687782; font-size: .84rem; line-height: 1.4; }
.cp-modal-note { font-size: .82rem; }

.cp-mobile-nav { display: none; }

/* Premium heading effect retained from the current website. */
.cp-neon-latest {
  position: relative;
  display: inline-block;
  isolation: isolate;
  margin: 0;
  color: #cfefff !important;
  font-size: clamp(1.42rem, 2.8vw, 2.05rem) !important;
  line-height: 1.05 !important;
  font-weight: 950 !important;
  letter-spacing: -0.035em !important;
  transform-origin: left bottom;
  transform-style: preserve-3d;
  -webkit-font-smoothing: antialiased;
  -webkit-text-stroke: .8px rgba(70, 187, 255, .68);
  text-shadow:
    0 1px 0 #d9f4ff,
    0 2px 0 #8dd6ff,
    0 3px 0 #399ff0,
    0 5px 0 #0e5aa8,
    0 9px 16px rgba(0, 48, 108, .34),
    0 0 9px rgba(46, 189, 255, .78),
    0 0 22px rgba(35, 111, 255, .54),
    0 0 38px rgba(0, 213, 255, .34);
  animation: cpLatestNeonPulse 2.3s ease-in-out infinite;
  will-change: transform, filter, text-shadow, opacity;
}

.cp-neon-latest::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -8px -14px -10px;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(58, 185, 255, .15), rgba(58, 185, 255, 0) 70%);
  filter: blur(8px);
  opacity: .72;
  animation: cpLatestAura 2.3s ease-in-out infinite;
  pointer-events: none;
}

.cp-neon-latest::after {
  content: '';
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: -8px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #38bdf8 22%, #dff8ff 50%, #38bdf8 78%, transparent);
  box-shadow: 0 0 8px #38bfff, 0 0 20px rgba(56, 191, 255, .58);
  animation: cpLatestLine 2.3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes cpLatestNeonPulse {
  0%, 100% { opacity: .97; transform: perspective(620px) rotateX(5deg) translateZ(8px) scale(1); filter: brightness(1.04) saturate(1.06); }
  44% { opacity: .82; transform: perspective(620px) rotateX(5deg) translateZ(3px) scale(.995); filter: brightness(.9) saturate(.96); }
  52% { opacity: 1; transform: perspective(620px) rotateX(3deg) translateZ(13px) scale(1.012); filter: brightness(1.28) saturate(1.18); }
  61% { opacity: .9; transform: perspective(620px) rotateX(4deg) translateZ(7px) scale(1.003); filter: brightness(.98); }
}
@keyframes cpLatestAura { 0%,100%{opacity:.7;transform:scale(1)} 44%{opacity:.28;transform:scale(.95)} 52%{opacity:.95;transform:scale(1.04)} 61%{opacity:.46;transform:scale(.99)} }
@keyframes cpLatestLine { 0%,100%{opacity:.7;transform:scaleX(.94)} 44%{opacity:.24;transform:scaleX(.72)} 52%{opacity:1;transform:scaleX(1.04)} 61%{opacity:.46;transform:scaleX(.88)} }

#listings .listing-card img.cp-luxury-photo-reveal {
  animation: cpLuxuryPhotoReveal 1.9s cubic-bezier(.22,.72,.18,1) both;
  will-change: filter, opacity;
}
@keyframes cpLuxuryPhotoReveal {
  0% { opacity: .58; filter: blur(10px) brightness(.84) saturate(.88); }
  45% { opacity: .9; filter: blur(4px) brightness(.94) saturate(.95); }
  100% { opacity: 1; filter: blur(0) brightness(1) saturate(1); }
}

@media (max-width: 900px) {
  #categories .category-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .cp-community-channel-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .cp-friday-fundraisers { grid-template-columns: 1fr; }
  .cp-section-title-row { align-items: start; flex-direction: column; }
  .cp-section-subtitle { text-align: left; }
}

@media (max-width: 700px) {
  /* Mobile viewport fix: reserve real space for the dock and stop the header
     from consuming permanent viewport height while the customer scrolls. */
  body { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .site-header {
    position: relative !important;
    top: auto !important;
  }

  .cp-primary-actions,
  .cp-friday-fundraisers,
  .cp-community-stream { width: min(100% - 28px, 1180px); }
  .cp-primary-actions { gap: 10px; margin-top: 18px; }
  .cp-primary-action { min-height: 78px; padding: 13px 12px; gap: 10px; border-radius: 17px; }
  .cp-action-icon { width: 42px; height: 42px; flex-basis: 42px; border-radius: 14px; font-size: 1.2rem; }
  .cp-primary-action strong { font-size: .95rem; }
  .cp-primary-action small { font-size: .72rem; }
  #categories .category-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  #categories .category-card { min-height: 106px; padding: 14px; }
  #categories .category-icon { width: 40px; height: 40px; font-size: 1.1rem; }
  #categories .category-card .arrow { display: none; }
  .cp-friday-fundraisers { padding: 18px; margin-bottom: 30px; border-radius: 22px; }
  .cp-friday-card { min-height: 200px; }
  .cp-community-stream { padding-top: 42px; }
  .cp-community-channel-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .cp-community-channel-grid button { min-height: 110px; padding: 14px; }
  .cp-verified-strip { align-items: stretch; flex-direction: column; }
  .cp-account-shortcut { width: 100%; }
  .cp-approval-grid { grid-template-columns: 1fr; }
  .cp-neon-latest { font-size: clamp(1.25rem, 6vw, 1.65rem) !important; -webkit-text-stroke-width: .6px; }

  /* Dock the navigation flush to the viewport edge instead of floating over
     the page. The extra body padding above keeps the final content reachable. */
  .cp-mobile-nav {
    position: fixed;
    z-index: 99990;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
    min-height: 70px;
    padding: 6px 8px max(6px, env(safe-area-inset-bottom));
    border: 1px solid rgba(255,255,255,.12);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 20px 20px 0 0;
    background: color-mix(in srgb, var(--cp-footer, #111827) 97%, transparent);
    box-shadow: 0 -10px 32px rgba(0,0,0,.24);
    backdrop-filter: blur(18px);
  }
  .cp-mobile-nav button {
    display: grid;
    place-items: center;
    gap: 1px;
    min-width: 0;
    border: 0;
    border-radius: 14px;
    color: rgba(255,255,255,.86);
    background: transparent;
  }
  .cp-mobile-nav button > span { font-size: 1.05rem; }
  .cp-mobile-nav small { font-size: .62rem; }
  .cp-mobile-nav .cp-mobile-place {
    color: var(--cp-accent-text, #fff);
    background: var(--cp-accent, #f97316);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cp-neon-latest,
  .cp-neon-latest::before,
  .cp-neon-latest::after,
  #listings .listing-card img.cp-luxury-photo-reveal {
    animation: none !important;
  }
  #listings .listing-card img.cp-luxury-photo-reveal { filter: none !important; opacity: 1 !important; }
}
