/* Adventure Cat Submissions — plugin styles */
/* Uses CSS custom properties from the adventure-cat theme */

/* ── Public gallery feed ─────────────────────────────────────── */

.cat-feed {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 2rem 0 4rem;
}

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

@media (max-width: 480px) {
  .cat-feed { grid-template-columns: 1fr; }
}

.cat-card {
  border-radius: 1.5rem;
  overflow: hidden;
  background: var(--clr-warm, #f0e8d8);
  box-shadow: 0 4px 20px rgba(60, 44, 0, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(60, 44, 0, 0.13);
}

.cat-card__img-wrap {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--clr-warm-hi, #e0d0b8);
  position: relative;
}

.cat-card__memorial-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 3;
  font-size: 1.35rem;
  line-height: 1;
  text-decoration: none;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
  transition: transform 0.15s;
  pointer-events: auto;
}

.cat-card__memorial-badge:hover {
  transform: scale(1.25);
}

.cat-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.cat-card:hover .cat-card__img-wrap img { transform: scale(1.04); }

.cat-card__body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.cat-card__caption {
  font-size: 0.95rem;
  font-weight: 500;
  font-style: italic;
  line-height: 1.55;
  color: var(--clr-text, #3c2a00);
  margin: 0 0 0.5rem;
}

.cat-card__author {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--clr-muted, #8a7060);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
}

.cat-gallery-empty {
  text-align: center;
  padding: 5rem 1rem;
  color: var(--clr-muted, #8a7060);
  font-size: 1.1rem;
}

.cat-gallery-empty a {
  color: var(--clr-brand, #7b5400);
  font-weight: 700;
  text-decoration: underline;
}

/* ── Dashboard shell ─────────────────────────────────────────── */

.acs-dashboard {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}

.acs-section-heading {
  font-family: var(--font-hed, sans-serif);
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--clr-brand, #7b5400);
  margin: 0 0 1.5rem;
}

/* ── Upload zone ─────────────────────────────────────────────── */

.acs-upload-section { margin-bottom: 4rem; }

.acs-drop-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border: 3px dashed var(--clr-gold, #feb300);
  border-radius: 2rem;
  padding: 4rem 2rem;
  cursor: pointer;
  background: var(--clr-cream, #fff1df);
  text-align: center;
  transition: background 0.2s, border-color 0.2s;
}

.acs-drop-zone:hover,
.acs-drop-zone.is-over {
  background: var(--clr-warm, #f0e8d8);
  border-color: var(--clr-brand, #7b5400);
}

.acs-drop-zone__icon { font-size: 3.5rem; line-height: 1; }

.acs-drop-zone__text {
  font-family: var(--font-hed, sans-serif);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--clr-brand, #7b5400);
}

.acs-drop-zone__hint {
  font-size: 0.8rem;
  color: var(--clr-muted, #8a7060);
}

/* Prevent author display rules from overriding [hidden] attribute */
.acs-preview-panel[hidden],
.acs-drop-zone[hidden],
.acs-cat-pick[hidden],
.acs-paw-progress[hidden],
#acs-caption-box[hidden],
#acs-passing-date-wrap[hidden] { display: none; }

/* ── Paw progress animation ──────────────────────────────────── */

.acs-paw-progress {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem 1rem;
}

.acs-paw-progress__prints {
  display: flex;
  gap: 0.5rem;
}

.acs-paw-progress__print {
  font-size: 1.6rem;
  opacity: 0.15;
  animation: acs-paw-step 1.5s ease-in-out infinite;
  display: inline-block;
}

.acs-paw-progress__print:nth-child(1) { animation-delay: 0s; }
.acs-paw-progress__print:nth-child(2) { animation-delay: 0.18s; }
.acs-paw-progress__print:nth-child(3) { animation-delay: 0.36s; }
.acs-paw-progress__print:nth-child(4) { animation-delay: 0.54s; }
.acs-paw-progress__print:nth-child(5) { animation-delay: 0.72s; }
.acs-paw-progress__print:nth-child(6) { animation-delay: 0.90s; }

@keyframes acs-paw-step {
  0%, 55%, 100% { opacity: 0.15; transform: scale(1) translateY(0); }
  27%           { opacity: 1;    transform: scale(1.2) translateY(-5px); }
}

.acs-paw-progress__label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-brand, #7b5400);
  margin: 0;
}

/* ── Preview panel ───────────────────────────────────────────── */

.acs-preview-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: var(--clr-warm, #f0e8d8);
  border-radius: 2rem;
  padding: 2rem;
}

.acs-preview-panel__img-wrap {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  max-width: 480px;
  width: 100%;
  align-self: center;
  cursor: crosshair;
  user-select: none;
}

.acs-focus-dot {
  position: absolute;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.5);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.acs-focus-dot[hidden] { display: none; }

.acs-focus-hint {
  position: absolute;
  bottom: 0.6rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.2rem 0.7rem;
  border-radius: 2rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  margin: 0;
}

.acs-preview-panel__img-wrap:hover .acs-focus-hint { opacity: 1; }

.acs-preview-panel__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.acs-preview-panel__info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ── Caption box ─────────────────────────────────────────────── */

.acs-caption-box {
  background: #fff;
  border-radius: 1rem;
  padding: 1.25rem;
}

.acs-caption-box__label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clr-teal, #006859);
  margin: 0 0 0.4rem;
}

.acs-caption-box__text {
  font-size: 1rem;
  font-style: italic;
  line-height: 1.65;
  color: var(--clr-text, #3c2a00);
  margin: 0;
  width: 100%;
  border: none;
  background: transparent;
  resize: none;
  padding: 0;
  font-family: inherit;
  outline: none;
  min-height: 100px;
  overflow: hidden;
  display: block;
  field-sizing: content;
}

.acs-caption-box__text:focus {
  outline: none;
}

.acs-caption-box:focus-within {
  outline: 2px solid var(--clr-teal, #006859);
  outline-offset: 2px;
}

.acs-caption-regen {
  padding: 0.6rem 0.75rem 0.75rem;
  border-top: 1px solid #f0e8d8;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.acs-style-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  flex: 1;
}

.acs-style-pill {
  padding: 0.25rem 0.65rem;
  border: 1.5px solid #e0d0be;
  border-radius: 2rem;
  background: transparent;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--clr-muted, #8a7060);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
  line-height: 1.4;
}

.acs-style-pill:hover {
  border-color: var(--clr-brand, #7b5400);
  color: var(--clr-brand, #7b5400);
}

.acs-style-pill.is-active {
  background: var(--clr-brand, #7b5400);
  border-color: var(--clr-brand, #7b5400);
  color: #fff;
}

.acs-regen-btn {
  padding: 0.3rem 0.85rem;
  background: transparent;
  border: 1.5px solid var(--clr-brand, #7b5400);
  border-radius: 2rem;
  color: var(--clr-brand, #7b5400);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background 0.12s, color 0.12s;
}

.acs-regen-btn:hover {
  background: var(--clr-brand, #7b5400);
  color: #fff;
}

.acs-regen-btn:disabled {
  opacity: 0.5;
  cursor: wait;
}

.acs-caption-ai-notice {
  font-size: 0.8rem;
  color: #b85c00;
  background: #fff4e0;
  border: 1px solid #ffd080;
  border-radius: 0.4rem;
  padding: 0.35rem 0.65rem;
  margin: 0 0 0.5rem;
}

/* hide photo upload row when editing an existing pounce */
.acs-preview-panel--editing .acs-cat-photo-row { display: none; }

/* ── Cat picker ──────────────────────────────────────────────── */

.acs-cat-pick {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.acs-cat-select {
  appearance: auto;
}

/* ── Toggle switches ─────────────────────────────────────────── */

.acs-flags {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.acs-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
}

.acs-toggle__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.acs-toggle__track {
  position: relative;
  width: 2.75rem;
  height: 1.5rem;
  background: var(--clr-warm-hi, #e0d0b8);
  border-radius: 9999px;
  flex-shrink: 0;
  transition: background 0.2s;
}

.acs-toggle__track::after {
  content: '';
  position: absolute;
  top: 0.2rem;
  left: 0.2rem;
  width: 1.1rem;
  height: 1.1rem;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s;
}

.acs-toggle__input:checked + .acs-toggle__track,
.acs-toggle.is-on .acs-toggle__track {
  background: var(--clr-teal, #006859);
}

.acs-toggle__input:checked + .acs-toggle__track::after,
.acs-toggle.is-on .acs-toggle__track::after {
  transform: translateX(1.25rem);
}

.acs-toggle__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--clr-text, #3c2a00);
}

/* ── Preview actions ─────────────────────────────────────────── */

.acs-preview-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: auto;
}

.acs-post-btn {
  background: linear-gradient(to bottom, #7b5400, #6b4900);
  color: var(--clr-cream, #fff1df);
  padding: 0.9rem 2rem;
  border-radius: 3rem;
  border: none;
  font-family: var(--font-hed, sans-serif);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(123, 84, 0, 0.3);
  transition: transform 0.2s, opacity 0.2s;
}

.acs-post-btn:hover:not(:disabled) { transform: scale(1.03); }
.acs-post-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.acs-cancel-btn {
  background: none;
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--clr-muted, #8a7060);
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.acs-cancel-btn:hover { color: var(--clr-rust, #9b3f00); }

/* ── Status message ──────────────────────────────────────────── */

.acs-status {
  display: block;
  margin-top: 1rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.acs-status--ok {
  background: var(--clr-mint, #6bfde0);
  color: var(--clr-teal, #006859);
}

.acs-status--err {
  background: var(--clr-peach, #ffc5aa);
  color: var(--clr-rust, #9b3f00);
}

/* ── Community Spotlight (featured carousel) ─────────────────── */

.acs-featured-section {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.acs-featured-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Carousel button wrappers (div blocks prevent wpautop from injecting <p> around buttons) */
.acs-carousel-btn-wrap { flex: 0 0 auto; display: flex; align-items: center; }
.acs-carousel-btn-wrap[hidden] { display: none !important; }

/* Safety net: if wpautop somehow injects a <p>, collapse it */
.acs-featured-wrap > p { margin: 0; display: contents; }

/* [hidden] overrides for section elements inside flex/grid ancestors */
#acs-featured-section[hidden],
#acs-gallery-spotlight[hidden] { display: none !important; }

.acs-featured-viewport {
  overflow: hidden;
  flex: 1;
  border-radius: 1.5rem;
}

.acs-featured-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.acs-featured-track.is-carousel {
  /* Each slide takes exactly 1/3 of viewport; gap-adjusted via calc */
  --feat-visible: 3;
}

.acs-feat-slide {
  flex: 0 0 calc((100% - 2rem) / 3);
  min-width: 0;
}

@media (max-width: 639px) {
  .acs-feat-slide { flex: 0 0 100%; }
  .acs-featured-track.is-carousel { --feat-visible: 1; }
}

.acs-feat-card {
  display: block;
  color: inherit;
  background: var(--clr-warm, #f0e8d8);
  border-radius: 1.5rem;
  overflow: hidden;
  height: 100%;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.acs-feat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(123, 84, 0, 0.14);
}

.acs-feat-card__img-link { display: block; }
.acs-feat-card__img-link:hover img { opacity: 0.92; }

.acs-feat-card__img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--clr-warm-hi, #e0d0b8);
}
.acs-feat-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.15s;
}
.acs-feat-card__no-img {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  height: 100%;
  width: 100%;
}

.acs-feat-badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.4;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.92);
  color: var(--clr-brand, #7b5400);
  backdrop-filter: blur(4px);
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
.acs-feat-badge--birthday   { background: #fff3cd; color: #7b5400; }
.acs-feat-badge--anniversary { background: #e8f0fe; color: #1a56a8; }
.acs-feat-badge--new        { background: #d4edda; color: #155724; }
.acs-feat-badge--popular    { background: #fff0d4; color: #7b5400; }
.acs-feat-badge--discussed  { background: #f0e8fe; color: #5a1a8a; }

.acs-feat-card__body {
  padding: 0.75rem 1rem 0.85rem;
}
.acs-feat-card__name {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--clr-brand, #7b5400);
  text-decoration: none;
  margin: 0 0 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.acs-feat-card__name:hover { text-decoration: underline; }
.acs-feat-card__caption {
  font-size: 0.95rem;
  font-weight: 500;
  font-style: italic;
  line-height: 1.55;
  color: var(--clr-text, #3c2a00);
  margin: 0 0 0.4rem;
}
.acs-feat-card__actions {
  border-top: 1px solid rgba(123, 84, 0, 0.07);
  margin: 0.4rem -1rem -0.85rem;
  padding: 0.45rem 0.65rem !important;
  justify-content: flex-start !important;
}

/* Carousel nav buttons */
.acs-carousel-btn {
  flex: 0 0 auto;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  border: 1.5px solid var(--clr-gold, #feb300);
  background: var(--clr-cream, #fff8ee);
  color: var(--clr-brand, #7b5400);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.15s;
  padding: 0;
}
.acs-carousel-btn:hover { background: var(--clr-gold, #feb300); transform: scale(1.08); }
.acs-carousel-btn:disabled { opacity: 0.35; cursor: default; }

/* Dots pagination */
.acs-featured-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
}
.acs-feat-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  border: none;
  background: var(--clr-warm-hi, #e0d0b8);
  cursor: pointer;
  padding: 0;
  transition: background 0.15s, transform 0.15s;
}
.acs-feat-dot.is-active {
  background: var(--clr-gold, #feb300);
  transform: scale(1.3);
}

/* ── My Pounces feed ─────────────────────────────────────────── */

.acs-my-section { margin-top: 1rem; }

.acs-my-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 480px) {
  .acs-my-grid { grid-template-columns: 1fr; }
}

.acs-card {
  background: var(--clr-warm, #f0e8d8);
  border-radius: 1.5rem;
  overflow: hidden;
}

.acs-card__img {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--clr-warm-hi, #e0d0b8);
}

.acs-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.acs-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.acs-card__cat {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--clr-teal, #006859);
  margin: 0;
}

.acs-card__caption {
  font-size: 0.9rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--clr-text, #3c2a00);
  margin: 0;
}

.acs-card__date {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--clr-muted, #8a7060);
  margin: 0;
}

.acs-card__actions {
  display: flex;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(123, 84, 0, 0.08);
  margin-top: 0.25rem;
}

.acs-card__edit-btn,
.acs-card__del-btn {
  flex: 1;
  padding: 0.45rem 0;
  border-radius: 2rem;
  border: 1.5px solid;
  font-family: var(--font-hed, sans-serif);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.acs-card__edit-btn {
  border-color: var(--clr-brand, #7b5400);
  background: var(--clr-cream, #fff1df);
  color: var(--clr-brand, #7b5400);
}

.acs-card__edit-btn:hover { background: var(--clr-warm, #f0e8d8); }

.acs-card__del-btn {
  border-color: var(--clr-rust, #9b3f00);
  background: transparent;
  color: var(--clr-rust, #9b3f00);
}

.acs-card__del-btn:hover { background: rgba(155, 63, 0, 0.07); }

.acs-card__flags {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.25rem;
  border-top: 1px solid rgba(123, 84, 0, 0.1);
}

/* ── Paw button (public gallery) ─────────────────────────────── */

.cat-card__stats {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.45rem 0.65rem;
  border-bottom: 1px solid rgba(123, 84, 0, 0.07);
}

.cat-card__stats-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--clr-brand, #7b5400);
  margin-right: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 50%;
}

/* Shared pill style for stat buttons */
.cat-card__stats .acs-paw-btn,
.cat-card__stat-link,
.cat-card__stat-share {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem 0.6rem;
  border: 1.5px solid rgba(123, 84, 0, 0.2);
  border-radius: 999px;
  background: transparent;
  color: var(--clr-muted, #8a7060);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.cat-card__stats .acs-paw-btn:hover,
.cat-card__stat-link:hover,
.cat-card__stat-share:hover {
  border-color: var(--clr-brand, #7b5400);
  color: var(--clr-brand, #7b5400);
  background: transparent;
}

.cat-card__stats .acs-paw-btn.is-pawed {
  background: var(--clr-gold, #feb300);
  border-color: var(--clr-gold, #feb300);
  color: var(--clr-brand, #7b5400);
  box-shadow: 0 2px 6px rgba(254, 179, 0, 0.35);
}
.cat-card__stats .acs-paw-btn.is-pawed .acs-paw-btn__icon svg { fill: currentColor; stroke: currentColor; }
.cat-card__stats .acs-paw-btn.is-pawed:hover { background: #e6a100; border-color: #e6a100; box-shadow: none; }
.cat-card__stat-share.is-copied { border-color: #34a853; color: #1e7e34; }
.cat-card__stats .acs-card-follow-btn.is-following {
  background: var(--clr-brand, #7b5400);
  border-color: var(--clr-brand, #7b5400);
  color: #fff;
}
.cat-card__stats .acs-card-follow-btn.is-following:hover { background: #5a3d00; border-color: #5a3d00; }
.cat-card__stats .acs-card-follow-btn:disabled { opacity: 0.6; cursor: wait; }


.acs-paw-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: transparent;
  border: 1.5px solid rgba(123, 84, 0, 0.2);
  border-radius: 2rem;
  padding: 0.25rem 0.65rem;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--clr-muted, #8a7060);
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
  white-space: nowrap;
  line-height: 1;
}

.acs-paw-btn:hover {
  background: var(--clr-cream, #fff1df);
  border-color: var(--clr-brand, #7b5400);
  color: var(--clr-brand, #7b5400);
}

.acs-paw-btn.is-pawed {
  background: var(--clr-gold, #feb300);
  border-color: var(--clr-gold, #feb300);
  color: var(--clr-brand, #7b5400);
}
.acs-paw-btn.is-pawed .acs-paw-btn__icon svg { fill: currentColor; stroke: currentColor; }

.acs-paw-btn:active:not(:disabled) { transform: scale(0.93); }
.acs-paw-btn:disabled { opacity: 0.6; cursor: wait; }

.acs-paw-btn__icon { line-height: 1; display: inline-flex; align-items: center; }
.acs-paw-btn__count:empty { display: none; }

.pounce-single__paw {
  font-size: 0.875rem;
  padding: 0.55rem 1.1rem;
}

/* ── Referral section ───────────────────────────────────────────────────── */

.acs-referral {
  background: #fffdf7;
  border: 1.5px solid #f0e8d8;
  border-radius: 0.875rem;
  padding: 1.1rem 1.4rem 1.25rem;
  margin-bottom: 1.25rem;
}

.acs-referral__heading {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--clr-brand, #7b5400);
  margin: 0 0 0.4rem;
}

.acs-referral__desc {
  font-size: 0.875rem;
  color: var(--clr-muted, #8a7060);
  margin: 0 0 0.85rem;
  line-height: 1.5;
}

.acs-referral__row {
  display: flex;
  gap: 0.5rem;
}

.acs-referral__input {
  flex: 1;
  padding: 0.45rem 0.75rem;
  border: 1.5px solid #e0d0be;
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 0.8rem;
  color: var(--clr-ink, #2a1a00);
  background: #fff;
  min-width: 0;
}

.acs-referral__btn {
  padding: 0.45rem 1rem;
  background: var(--clr-brand, #7b5400);
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}

.acs-referral__btn:hover { opacity: 0.85; }

.acs-referral__count {
  font-size: 0.8rem;
  color: var(--clr-brand, #7b5400);
  font-weight: 600;
  margin: 0.6rem 0 0;
}

.acs-tier-bonus {
  font-size: 0.75rem;
  color: var(--clr-brand, #7b5400);
  font-weight: 600;
}

/* ── Info tabs (Getting Started / Refer / Notifications) ─────────────── */

.acs-info-tabs {
  background: #fffdf7;
  border: 1.5px solid #f0e8d8;
  border-radius: 1rem;
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.acs-info-tabs__nav {
  display: flex;
  border-bottom: 1.5px solid #f0e8d8;
}

.acs-tab-btn {
  flex: 1;
  padding: 0.7rem 0.4rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1.5px;
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--clr-muted, #8a7060);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.acs-tab-btn--dash {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding-left: 0.875rem;
  padding-right: 0.875rem;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.8rem;
}

.acs-tab-dash-logo {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 3px;
  flex-shrink: 0;
  display: block;
}

.acs-tab-lbl--short { display: none; }

@media (max-width: 500px) {
  .acs-tab-lbl { display: none; }
  .acs-tab-lbl--short { display: inline; }
  .acs-tab-btn--dash { padding-left: 0.625rem; padding-right: 0.625rem; }
}

.acs-tab-btn.is-active {
  color: var(--clr-brand, #7b5400);
  border-bottom-color: var(--clr-brand, #7b5400);
}

.acs-tab-btn:hover:not(.is-active) { color: var(--clr-text, #3c2a00); }

.acs-tab-panel { padding: 1.25rem 1.4rem 1.4rem; }
.acs-tab-panel[hidden] { display: none; }
#acs-tab-score { padding: 1rem 1.4rem; }

/* ── Scorecard ───────────────────────────────────────────────────────────── */

.acs-scorecard {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.625rem;
}

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

.acs-scorecard__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.875rem 0.5rem;
  background: var(--clr-warm, #f0e8d8);
  border-radius: 0.75rem;
}

.acs-scorecard__num {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1;
  color: var(--clr-brand, #7b5400);
}

.acs-scorecard__label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--clr-muted, #8a7060);
}

/* ── Notification list ───────────────────────────────────────────────────── */

.acs-notif-list {
  display: block !important;
  width: 100%;
}

.acs-notif-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid #f0e8d8;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
}

.acs-notif-item:last-child { border-bottom: none; }

.acs-notif-item__text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  flex: 1;
}

.acs-notif-item__title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--clr-text, #3c2a00);
}

.acs-notif-item__desc {
  font-size: 0.775rem;
  color: var(--clr-muted, #8a7060);
  line-height: 1.4;
}

#acs-tab-notifs .acs-toggle { flex-shrink: 0; }

/* ── Onboarding checklist ────────────────────────────────────────────────── */

.acs-onboarding {
  background: #fffdf7;
  border: 1.5px solid #ffd080;
  border-radius: 0.875rem;
  padding: 1.1rem 1.4rem 1.25rem;
  margin-bottom: 1.25rem;
}

.acs-onboarding__heading {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--clr-brand, #7b5400);
  margin: 0 0 0.85rem;
}

.acs-onboarding__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.acs-onboarding__step {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--clr-ink, #2a1a00);
}

.acs-onboarding__step::before {
  content: none;
}

.acs-onboarding__step a {
  color: var(--clr-brand, #7b5400);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.acs-onboarding__step.is-done {
  color: var(--clr-muted, #8a7060);
  text-decoration: line-through;
  text-decoration-color: var(--clr-gold, #feb300);
}

/* ── Kitty Feed ──────────────────────────────────────────────── */
.acs-kitty-feed {
  padding: 0 0 3rem;
}

.acs-kf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.acs-kf-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--clr-muted, #8a7060);
  font-style: italic;
}

.acs-kf-card-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.acs-kf-card {
  aspect-ratio: 1 / 1;
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: var(--clr-cream, #fff1df);
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.acs-kf-card:hover,
.acs-kf-card:focus-visible {
  transform: scale(1.04);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  outline: none;
}

.acs-kf-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.acs-kf-card__no-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.acs-kf-badge {
  display: inline-block;
  background: var(--clr-gold, #feb300);
  color: #523700;
  font-family: var(--font-hed, sans-serif);
  font-weight: 900;
  font-size: 0.9rem;
  padding: 0.55rem 1.1rem;
  border-radius: 9999px;
  transform: rotate(-2deg);
  box-shadow: 0 8px 24px rgba(123, 84, 0, 0.22);
  white-space: nowrap;
  align-self: flex-start;
  margin-top: -1.2rem;
  margin-left: 0.6rem;
  position: relative;
  z-index: 2;
  max-width: calc(100% - 0.6rem);
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Kitty Feed overlay ──────────────────────────────────────── */
.acs-kf-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(60, 42, 0, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 2rem 1rem 4rem;
}

.acs-kf-overlay[hidden] { display: none; }

.acs-kf-overlay__panel {
  background: var(--clr-surface, #fff);
  border-radius: 1.25rem;
  overflow: hidden;
  width: 100%;
  max-width: 480px;
  position: relative;
  box-shadow: 0 24px 64px rgba(60, 42, 0, 0.35);
  animation: kf-panel-in 0.22s ease;
  margin-top: auto;
  margin-bottom: auto;
}

@keyframes kf-panel-in {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

.acs-kf-overlay__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 10;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.acs-kf-overlay__close:hover { background: rgba(0,0,0,0.65); }

.acs-kf-overlay__photo-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--clr-cream, #fff1df);
}

.acs-kf-overlay__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.acs-kf-overlay__body {
  padding: 1.4rem 1.5rem 1.25rem;
}

.acs-kf-overlay__name {
  font-family: var(--font-hed, sans-serif);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--clr-brand, #7b5400);
  margin: 0 0 0.2rem;
  line-height: 1.1;
}

.acs-kf-overlay__meta {
  font-size: 0.85rem;
  color: var(--clr-muted, #8a7060);
  margin: 0 0 0.85rem;
  display: block;
}

.acs-kf-overlay__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

.acs-kf-overlay__tag {
  background: var(--clr-cream, #fff1df);
  color: var(--clr-brand, #7b5400);
  border: 1px solid var(--clr-gold, #feb300);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-hed, sans-serif);
}

.acs-kf-overlay__tag--memorial {
  background: var(--clr-brand, #7b5400);
  color: #fff;
  border-color: var(--clr-brand, #7b5400);
}

.acs-kf-overlay__story p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--clr-text, #2c1a0e);
  margin: 0 0 0.75rem;
}

.acs-kf-overlay__story p:last-child { margin-bottom: 0; }

.acs-kf-overlay__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.5rem 1.25rem;
  background: var(--clr-cream, #fff8ee);
  border-top: 1px solid rgba(123, 84, 0, 0.12);
  flex-wrap: wrap;
}

.acs-kf-follow-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.4rem;
  background: var(--clr-gold, #feb300);
  color: var(--clr-brand, #7b5400);
  font-family: var(--font-hed, sans-serif);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(254, 179, 0, 0.4);
  transition: background 0.15s, box-shadow 0.15s;
}
.acs-kf-follow-btn:hover {
  background: #e6a100;
  box-shadow: 0 4px 14px rgba(254, 179, 0, 0.5);
}
.acs-kf-follow-btn.is-following {
  background: transparent;
  border-color: var(--clr-brand, #7b5400);
  color: var(--clr-brand, #7b5400);
  box-shadow: none;
}
.acs-kf-follow-btn.is-following:hover {
  background: rgba(123, 84, 0, 0.07);
  box-shadow: none;
}

.acs-kf-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.6rem 1.2rem;
  background: transparent;
  color: var(--clr-brand, #7b5400);
  font-family: var(--font-hed, sans-serif);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  border: 2px solid rgba(123, 84, 0, 0.28);
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.15s, background 0.15s;
}
.acs-kf-profile-link:hover {
  border-color: var(--clr-brand, #7b5400);
  background: rgba(123, 84, 0, 0.06);
  color: var(--clr-brand, #7b5400);
}

.acs-kf-story-loading {
  color: var(--clr-muted, #8a7060);
  font-style: italic;
  animation: acs-kf-pulse 1.4s ease-in-out infinite;
}

@keyframes acs-kf-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@media (max-width: 480px) {
  .acs-kf-overlay {
    padding: 0;
    align-items: flex-end;
  }
  .acs-kf-overlay__panel {
    border-radius: 1.25rem 1.25rem 0 0;
    max-height: 92dvh;
    max-width: 100%;
    overflow-y: auto;
  }
  .acs-kf-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

/* ── Paw count on dashboard own-pounce cards ─────────────────── */

.acs-card__paw {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--clr-muted, #8a7060);
  margin: 0;
}

/* ── Empty / loading states ──────────────────────────────────── */

.acs-loading,
.acs-empty {
  color: var(--clr-muted, #8a7060);
  font-style: italic;
  padding: 2rem 0;
  margin: 0;
}

.acs-gate {
  text-align: center;
  padding: 4rem;
  font-size: 1.1rem;
  color: var(--clr-text, #3c2a00);
}

.acs-gate a {
  color: var(--clr-brand, #7b5400);
  font-weight: 700;
}

/* ── Auth forms (login / signup) ─────────────────────────────── */

.acs-auth-wrap {
  background: #fff;
  border-radius: 2rem;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.acs-auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.acs-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.acs-form-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--clr-brand, #7b5400);
}

.acs-form-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.4rem;
}

.acs-form-input {
  width: 100%;
  padding: 0.85rem 1.25rem;
  border: 2px solid transparent;
  border-radius: 0.85rem;
  background: var(--clr-cream, #fff1df);
  font-size: 1rem;
  font-family: var(--font-body, sans-serif);
  color: var(--clr-text, #3c2a00);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  box-sizing: border-box;
}

.acs-form-input::placeholder { color: var(--clr-muted, #8a7060); opacity: 0.7; }
.acs-form-input:focus {
  border-color: var(--clr-gold, #feb300);
  background: #fff;
}

.acs-form-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.acs-form-remember {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--clr-text, #3c2a00);
  cursor: pointer;
}

.acs-form-forgot {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--clr-muted, #8a7060);
  text-decoration: underline;
}

.acs-form-forgot:hover { color: var(--clr-brand, #7b5400); }

.acs-auth-btn {
  width: 100%;
  justify-content: center;
  margin-top: 0.25rem;
}

.acs-auth-notice {
  padding: 0.85rem 1.25rem;
  border-radius: 0.85rem;
  font-size: 0.92rem;
  font-weight: 600;
  margin: 0;
}

.acs-auth-notice--ok {
  background: var(--clr-mint, #6bfde0);
  color: var(--clr-teal, #006859);
}

.acs-auth-notice--ok a { color: inherit; font-weight: 700; }

.acs-auth-notice--err {
  background: var(--clr-peach, #ffc5aa);
  color: var(--clr-rust, #9b3f00);
}

.acs-auth-switch {
  text-align: center;
  font-size: 0.9rem;
  color: var(--clr-muted, #8a7060);
  margin: 0;
}

.acs-auth-switch a {
  color: var(--clr-brand, #7b5400);
  font-weight: 700;
  text-decoration: underline;
}

.acs-auth-already {
  padding: 1rem;
  font-style: italic;
  color: var(--clr-muted, #8a7060);
}

.acs-auth-already a {
  color: var(--clr-brand, #7b5400);
  font-weight: 700;
}

/* ── Tier bar ────────────────────────────────────────────────── */

.acs-tier-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  background: var(--clr-warm, #f0e8d8);
  border-radius: 1.25rem;
  padding: 0.85rem 1.25rem;
  margin-bottom: 2rem;
}

.acs-tier-bar__left,
.acs-tier-bar__right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.acs-tier-badge {
  display: inline-block;
  padding: 0.2rem 0.8rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.acs-tier-badge--free    { background: var(--clr-warm-hi, #e0d0b8); color: var(--clr-muted, #8a7060); }
.acs-tier-badge--friend  { background: var(--clr-teal, #006859);    color: #fff; }
.acs-tier-badge--premium { background: var(--clr-gold, #feb300);    color: var(--clr-text, #3c2a00); }

.acs-tier-quota {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--clr-muted, #8a7060);
}

.acs-export-btn,
.acs-upgrade-btn,
.acs-portal-btn,
.acs-upgrade-inline-btn {
  border: none;
  border-radius: 9999px;
  padding: 0.4rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.acs-export-btn:hover:not(:disabled),
.acs-upgrade-btn:hover,
.acs-portal-btn:hover,
.acs-upgrade-inline-btn:hover { opacity: 0.85; transform: scale(1.02); }

.acs-export-btn  { background: var(--clr-teal, #006859); color: #fff; }
.acs-export-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.acs-upgrade-btn,
.acs-upgrade-inline-btn { background: var(--clr-gold, #feb300); color: var(--clr-text, #3c2a00); }

.acs-portal-btn  { background: transparent; border: 2px solid var(--clr-muted, #8a7060); color: var(--clr-muted, #8a7060); }

/* ── Limit notice ────────────────────────────────────────────── */

.acs-limit-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: var(--clr-peach, #ffc5aa);
  color: var(--clr-rust, #9b3f00);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.acs-limit-notice__text {
  flex: 1 1 auto;
}

/* Override shared button styles for the limit-notice CTA so it stands out */
.acs-limit-notice .acs-upgrade-inline-btn {
  background: var(--clr-rust, #9b3f00) !important;
  color: #fff0ea !important;
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.acs-drop-zone--disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Tier upgrade notice ─────────────────────────────────────── */

.acs-tier-notice {
  border-radius: 1rem;
  padding: 0.85rem 1.25rem;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.acs-tier-notice--ok {
  background: var(--clr-mint, #6bfde0);
  color: var(--clr-teal, #006859);
}

/* ── Cat profiles showcase ───────────────────────────────────── */

.acs-cats-stack {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.acs-cat-stack-entry {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

/* Full-size card — inherits shape from contact-deco__box + --photo */
.acs-cat-big-card {
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.acs-cat-big-card:hover,
.acs-cat-big-card:focus {
  outline: none;
  transform: rotate(3deg) scale(1.03);
  box-shadow: 0 24px 64px rgba(0, 104, 89, 0.28);
}

.acs-cat-card__img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.35s ease;
}

.acs-cat-big-card:hover .acs-cat-card__img { transform: scale(1.04); }

.acs-cat-card__no-img {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
}

/* Placeholder: blurry cat + big ＋ */
.acs-cat-placeholder {
  width: 100%; height: 100%;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}

.acs-cat-placeholder__blur {
  position: absolute;
  inset: 0;
  background: url('/wp-content/uploads/2026/05/cat-07.png') center / cover;
  filter: blur(3px) brightness(0.7);
  transform: scale(1.04);
}

.acs-cat-placeholder__plus {
  position: relative;
  z-index: 1;
  font-size: 3.5rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s;
}

.acs-cat-big-card:hover .acs-cat-placeholder__plus,
.acs-cat-big-card:focus .acs-cat-placeholder__plus { transform: scale(1.12); }

/* Per-card name badge — pulled up to overlap the card's bottom edge */
.acs-cat-stack-badge {
  display: inline-block;
  background: var(--clr-gold, #feb300);
  color: #523700;
  font-family: var(--font-hed, sans-serif);
  font-weight: 900;
  font-size: 1rem;
  padding: 0.65rem 1.4rem;
  border-radius: 9999px;
  transform: rotate(-2deg);
  box-shadow: 0 8px 24px rgba(123, 84, 0, 0.22);
  white-space: nowrap;
  margin-top: -1.4rem;
  margin-left: 0.75rem;
  position: relative;
  z-index: 2;
}

/* Add Cat button at bottom of stack */
.acs-cats-add-block {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  border: 2.5px dashed var(--clr-gold, #feb300);
  background: var(--clr-cream, #fff1df);
  color: var(--clr-brand, #7b5400);
  font-family: var(--font-hed, sans-serif);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  margin-top: 1.5rem;
}

.acs-cats-add-block:hover { background: var(--clr-warm, #f0e8d8); transform: scale(1.03); }

/* ── Cat profile overlay ─────────────────────────────────────── */

.acs-cat-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(60, 42, 0, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 2rem 1rem 4rem;
}

.acs-cat-overlay[hidden] { display: none; }

body.acs-overlay-open { overflow: hidden; }

.acs-cat-overlay__panel {
  background: #fff;
  border-radius: 2rem;
  width: 100%;
  max-width: 600px;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 24px 80px rgba(60, 42, 0, 0.3);
  margin-top: auto;
  margin-bottom: auto;
}

.acs-cat-overlay__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: none;
  background: var(--clr-warm, #f0e8d8);
  color: var(--clr-text, #3c2a00);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.acs-cat-overlay__close:hover { background: var(--clr-warm-hi, #e0d0b8); }

@media (max-width: 600px) {
  .acs-cat-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .acs-cat-overlay__panel {
    border-radius: 1.5rem 1.5rem 0 0;
    max-height: 92svh;
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 1.75rem 1.25rem 2.5rem;
    overflow-y: auto;
  }

  .acs-cat-overlay__title { font-size: 1.35rem; }

  .acs-cat-photo-wrap { gap: 0.6rem; }

  .acs-cat-form { gap: 1.1rem; }

  .acs-cat-form-actions { flex-direction: column; align-items: stretch; }

  .acs-cat-form-actions .acs-btn { text-align: center; }
}

.acs-cat-overlay__title {
  font-family: var(--font-hed, sans-serif);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--clr-brand, #7b5400);
  margin: 0 0 1.75rem;
  padding-right: 2.5rem;
}

/* ── Cat form ────────────────────────────────────────────────── */

.acs-cat-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.acs-cat-photo-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.acs-cat-photo-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 1.5rem;
  overflow: hidden;
  background: var(--clr-warm, #f0e8d8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.acs-cat-photo-preview.has-photo { cursor: crosshair; }

.acs-cat-photo-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.acs-cat-photo-preview img[hidden] { display: none; }

.acs-cat-focus-dot {
  position: absolute;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.5);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2;
}

.acs-cat-photo-preview .acs-focus-hint {
  position: absolute;
  bottom: 0.6rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.2rem 0.7rem;
  border-radius: 2rem;
  white-space: nowrap;
  pointer-events: none;
  margin: 0;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 3;
}

.acs-cat-photo-preview.has-photo:hover .acs-focus-hint { opacity: 1; }

.acs-cat-photo-icon { font-size: 3rem; position: relative; z-index: 1; }

.acs-cat-photo-label {
  cursor: pointer;
  display: flex;
  justify-content: center;
}

.acs-cat-photo-btn {
  display: inline-block;
  padding: 0.7rem 2rem;
  border-radius: 2rem;
  background: var(--clr-cream, #fff1df);
  border: 2px solid var(--clr-gold, #feb300);
  color: var(--clr-brand, #7b5400);
  font-family: var(--font-hed, sans-serif);
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.15s;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.acs-cat-photo-label:hover .acs-cat-photo-btn { background: var(--clr-warm, #f0e8d8); }

/* ── Still with us toggle ─────────────────────────────── */

.acs-swy-group {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.acs-swy-pill {
  display: inline-block;
  padding: 0.45rem 1.1rem;
  border-radius: 0.5rem;
  border: 2px solid var(--clr-warm-hi, #e0d0b8);
  background: var(--clr-cream, #fff1df);
  color: var(--clr-text, #3c2a00);
  font-family: var(--font-hed, sans-serif);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.acs-swy-pill input[type="radio"] { display: none !important; }

.acs-swy-pill:hover:not(.is-checked) { border-color: var(--clr-gold, #feb300); }

.acs-swy-pill--yes.is-checked {
  border-color: var(--clr-teal, #006859);
  background: var(--clr-teal, #006859);
  color: #fff;
}

.acs-swy-pill--no.is-checked {
  border-color: var(--clr-brand, #7b5400);
  background: var(--clr-warm-hi, #fed980);
  color: var(--clr-brand, #7b5400);
}

.acs-cat-fields {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

/* Pill checkboxes for personality / likes / dislikes */
.acs-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.acs-pill-check {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.95rem;
  border-radius: 9999px;
  border: 2px solid var(--clr-warm-hi, #e0d0b8);
  background: var(--clr-cream, #fff1df);
  color: var(--clr-text, #3c2a00);
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.acs-pill-check:hover:not(.is-checked) {
  border-color: var(--clr-gold, #feb300);
}

.acs-pill-check.is-checked {
  border-color: var(--clr-brand, #7b5400);
  background: var(--clr-brand, #7b5400);
  color: var(--clr-cream, #fff1df);
}

.acs-form-textarea {
  resize: vertical;
  min-height: 6rem;
  line-height: 1.6;
}

.acs-cat-form-actions {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.acs-cat-delete-btn {
  color: var(--clr-rust, #9b3f00) !important;
}

.acs-cat-delete-btn:hover { color: #7a2e00 !important; }

/* ── Cat Friends Showcase (my-pounces sidebar) ───────────────── */

.acs-friends-section {
  margin-top: 2.5rem;
  border-top: 2px dashed var(--clr-warm-hi, #e0d0b8);
  padding-top: 2rem;
}

.acs-friends-header {
  margin-bottom: 1rem;
}

.acs-friends-heading {
  display: block;
  font-family: var(--font-hed, sans-serif);
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--clr-brand, #7b5400);
  letter-spacing: -0.01em;
}

.acs-friends-sub {
  display: block;
  font-size: 0.78rem;
  color: var(--clr-muted, #8a7060);
  margin-top: 0.2rem;
  line-height: 1.4;
}

.acs-friends-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.acs-friend-mini-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  cursor: pointer;
  outline: none;
}

.acs-friend-mini-card:focus-visible .acs-friend-mini-img,
.acs-friend-mini-card:focus-visible .acs-friend-mini-placeholder {
  box-shadow: 0 0 0 3px var(--clr-teal, #006859);
}

.acs-friend-mini-img,
.acs-friend-mini-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 1rem;
  overflow: hidden;
  object-fit: cover;
  display: block;
  background: var(--clr-warm, #f0e8d8);
  transition: transform 0.2s, box-shadow 0.2s;
}

.acs-friend-mini-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.acs-friend-mini-card:hover .acs-friend-mini-img,
.acs-friend-mini-card:hover .acs-friend-mini-placeholder {
  transform: rotate(2deg) scale(1.04);
  box-shadow: 0 8px 24px rgba(0, 104, 89, 0.2);
}

.acs-friend-mini-name {
  display: inline-block;
  background: var(--clr-teal, #006859);
  color: #fff;
  font-family: var(--font-hed, sans-serif);
  font-weight: 900;
  font-size: 0.78rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 0.5rem);
  margin-top: -0.85rem;
  margin-left: 0.4rem;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 104, 89, 0.25);
}

/* "Add a Pal" button — smaller than "Add a Cat" */
.acs-friends-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.35rem;
  border-radius: 9999px;
  border: 2px dashed var(--clr-teal, #006859);
  background: transparent;
  color: var(--clr-teal, #006859);
  font-family: var(--font-hed, sans-serif);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.acs-friends-add-btn:hover {
  background: rgba(0, 104, 89, 0.07);
  transform: scale(1.03);
}

/* friend form row (species + breed side by side) */
.acs-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 400px) {
  .acs-form-row { grid-template-columns: 1fr; }
}

/* ── Friend overlay ──────────────────────────────────────────── */

.acs-friend-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 80, 67, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 2rem 1rem 4rem;
}

.acs-friend-overlay[hidden] { display: none; }

.acs-friend-overlay .acs-friend-overlay__panel,
.acs-friend-overlay > .acs-cat-overlay__panel {
  background: #fff;
  border-radius: 2rem;
  width: 100%;
  max-width: 600px;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 24px 80px rgba(0, 80, 67, 0.28);
  margin-top: auto;
  margin-bottom: auto;
}

/* Reuse acs-cat-overlay__panel inside acs-friend-overlay */
.acs-friend-overlay .acs-cat-overlay__panel {
  background: #fff;
  border-radius: 2rem;
  width: 100%;
  max-width: 600px;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 24px 80px rgba(0, 80, 67, 0.28);
  margin-top: auto;
  margin-bottom: auto;
}

@media (max-width: 600px) {
  .acs-friend-overlay {
    padding: 0;
    align-items: flex-end;
  }
  .acs-friend-overlay .acs-cat-overlay__panel {
    border-radius: 1.5rem 1.5rem 0 0;
    max-height: 92svh;
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 1.75rem 1.25rem 2.5rem;
    overflow-y: auto;
  }
}

/* [hidden] rules for the friend form */
.acs-friends-section[hidden] { display: none; }
#acs-friend-passing-wrap[hidden] { display: none; }
.acs-friend-overlay[hidden] { display: none; }

/* ── Paw Friends feed page ───────────────────────────────────── */

.acs-pf-feed {
  padding: 0 0 3rem;
}

.acs-pf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 480px) {
  .acs-pf-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

.acs-pf-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(60, 42, 0, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 2rem 1rem 4rem;
}

.acs-pf-overlay[hidden] { display: none; }

@media (max-width: 480px) {
  .acs-pf-overlay {
    padding: 0;
    align-items: flex-end;
  }
  .acs-pf-overlay .acs-kf-overlay__panel {
    border-radius: 1.25rem 1.25rem 0 0;
    max-height: 92dvh;
    max-width: 100%;
    overflow-y: auto;
  }
}

/* ── Pounce upload setup ─────────────────────────────────── */

.acs-step-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--clr-brand, #7b5400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.75rem;
}

.acs-pet-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-bottom: 1.125rem;
}

.acs-pet-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.625rem 0.625rem;
  background: var(--clr-warm, #f0e8d8);
  border: 2px solid transparent;
  border-radius: 0.875rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  position: relative;
  min-width: 68px;
}

.acs-pet-pill:hover {
  background: var(--clr-warm-hi, #e0d0b8);
}

.acs-pet-pill.is-selected {
  border-color: var(--clr-gold, #feb300);
  background: var(--clr-warm-hi, #e0d0b8);
  box-shadow: 0 0 0 3px rgba(254, 179, 0, 0.2);
}

.acs-pet-pill.is-selected::after {
  content: '✓';
  position: absolute;
  top: -7px;
  right: -7px;
  width: 18px;
  height: 18px;
  background: var(--clr-gold, #feb300);
  color: var(--clr-brand, #7b5400);
  font-size: 0.6rem;
  font-weight: 900;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.acs-pet-pill__img {
  width: 52px;
  height: 52px;
  border-radius: 0.5rem;
  object-fit: cover;
  display: block;
}

.acs-pet-pill__emoji {
  width: 52px;
  height: 52px;
  border-radius: 0.5rem;
  background: var(--clr-warm-hi, #e0d0b8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.acs-pet-pill__name {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--clr-text, #3c2a00);
  max-width: 76px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
}

.acs-pet-required {
  font-size: 0.82rem;
  color: #c0392b;
  margin: -0.5rem 0 0.75rem;
}

.acs-pounce-perms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 1.5rem;
  margin-bottom: 1.125rem;
}

.acs-perm-check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--clr-text, #3c2a00);
  user-select: none;
}

.acs-perm-check input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--clr-brand, #7b5400);
  cursor: pointer;
  flex-shrink: 0;
}

/* ── AI Bio generation ───────────────────────────────────── */

.acs-bio-gen-wrap {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
}

.acs-bio-gen-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.875rem;
  background: var(--clr-gold, #feb300);
  color: var(--clr-brand, #7b5400);
  border: none;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.18s, filter 0.18s;
  line-height: 1.4;
}

.acs-bio-gen-btn:not(:disabled):hover {
  filter: brightness(1.08);
}

.acs-bio-gen-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.acs-bio-gen-quota {
  font-size: 0.76rem;
  color: var(--clr-muted, #8a7060);
  line-height: 1.4;
}

/* ─── Gallery controls (search + sort) ────────────────────────────────────── */

.acs-gallery-controls {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin: 0 0 1.5rem;
  flex-wrap: wrap;
}

.acs-gallery-search {
  flex: 1 1 220px;
  padding: 0.6rem 1rem;
  border: 2px solid var(--clr-muted, #8a7060);
  border-radius: 2rem;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  color: var(--clr-ink, #2a1a00);
  outline: none;
  transition: border-color 0.15s;
}

.acs-gallery-search:focus {
  border-color: var(--clr-brand, #7b5400);
}

.acs-gallery-sort {
  padding: 0.6rem 1rem;
  border: 2px solid var(--clr-muted, #8a7060);
  border-radius: 2rem;
  font-size: 0.875rem;
  font-family: inherit;
  background: #fff;
  color: var(--clr-ink, #2a1a00);
  cursor: pointer;
  outline: none;
}

.acs-gallery-noresults {
  text-align: center;
  color: var(--clr-muted, #8a7060);
  padding: 2rem 0;
  font-style: italic;
}

/* ─── Pounce single page ───────────────────────────────────────────────────── */

.pounce-single-hero {
  padding: 2rem 1rem 0;
}

.pounce-single-img img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 1rem;
  margin: 0 auto;
}

.pounce-single-body {
  padding: 2rem 1rem 3rem;
}

.pounce-single {
  text-align: center;
}

.pounce-single__caption {
  font-size: 1.3rem;
  font-style: italic;
  color: var(--clr-ink, #2a1a00);
  line-height: 1.65;
  margin: 0 0 1.75rem;
}

.pounce-single__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: center;
  font-size: 0.875rem;
  color: var(--clr-muted, #8a7060);
  margin-bottom: 2rem;
}

.pounce-single__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.pounce-single__cps-actions {
  margin-top: 1.25rem;
  justify-content: flex-start;
}
.pounce-single__cps-actions .cps-action-group { margin-left: auto; }

.pounce-single__btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: opacity 0.15s, filter 0.15s;
  font-family: inherit;
  line-height: 1.4;
}

.pounce-single__btn--primary {
  background: var(--clr-brand, #7b5400);
  color: #fff !important;
  border-color: var(--clr-brand, #7b5400);
}

.pounce-single__btn--outline {
  border-color: var(--clr-brand, #7b5400);
  color: var(--clr-brand, #7b5400) !important;
  background: transparent;
}

.pounce-single__btn--copy {
  border-color: var(--clr-muted, #8a7060);
  color: var(--clr-muted, #8a7060) !important;
  background: transparent;
}

.pounce-single__btn:hover {
  filter: brightness(1.1);
  opacity: 0.85;
}

/* ── Pounce comments ─────────────────────────────────────────────────────── */

.pounce-comments {
  max-width: 700px;
  margin: 3rem auto 0;
  padding: 0 1rem 3rem;
  text-align: left;
}

.pounce-comments__heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--clr-brand, #7b5400);
  margin: 0 0 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--clr-gold, #feb300);
}

.pounce-comments__list {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;
}

.pounce-comment {
  padding: 1.1rem 1.25rem;
  margin-bottom: 0.75rem;
  background: #fffdf7;
  border: 1px solid #f0e8d8;
  border-radius: 0.875rem;
}

.pounce-comment.depth-2 {
  margin-left: 2rem;
  background: #fff9ef;
}

.pounce-comment__header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.pounce-comment__avatar {
  border-radius: 50%;
  flex-shrink: 0;
}

.pounce-comment__author {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--clr-ink, #2a1a00);
}

.pounce-comment__date {
  font-size: 0.8rem;
  color: var(--clr-muted, #8a7060);
  margin-left: auto;
}

.pounce-comment__body {
  font-size: 0.95rem;
  color: var(--clr-ink, #2a1a00);
  line-height: 1.6;
}

.pounce-comment__body p {
  margin: 0 0 0.5rem;
}

.pounce-comment__body p:last-child {
  margin-bottom: 0;
}

.pounce-comment__reply {
  margin-top: 0.5rem;
}

.pounce-comment__reply a,
.comment-reply-link {
  font-size: 0.8rem;
  color: var(--clr-brand, #7b5400);
  text-decoration: none;
  font-weight: 600;
}

.pounce-comment__reply a:hover,
.comment-reply-link:hover {
  text-decoration: underline;
}

/* comment form */

#respond {
  background: #fffdf7;
  border: 1px solid #f0e8d8;
  border-radius: 1rem;
  padding: 1.5rem;
}

.pounce-comments__form-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-brand, #7b5400);
  margin: 0 0 1.25rem;
}

.pounce-comments__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.pounce-comments__field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--clr-ink, #2a1a00);
}

.pounce-comments__note {
  font-weight: 400;
  color: var(--clr-muted, #8a7060);
}

.pounce-comments__field input,
.pounce-comments__field textarea {
  padding: 0.55rem 0.85rem;
  border: 1.5px solid #e0d0be;
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--clr-ink, #2a1a00);
  background: #fff;
  transition: border-color 0.15s;
}

.pounce-comments__field input:focus,
.pounce-comments__field textarea:focus {
  outline: none;
  border-color: var(--clr-brand, #7b5400);
}

.pounce-comments__field textarea {
  resize: vertical;
  min-height: 100px;
}

.comment-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1rem;
}

.pounce-comments__field:not(.pounce-comments__field--full) {
  flex: 1 1 200px;
}

.pounce-comments__field--full {
  flex: 1 1 100%;
}

.pounce-comments__submit {
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pounce-comments__submit-btn {
  background: linear-gradient(to bottom, #7b5400, #6b4900);
  color: var(--clr-cream, #fff1df);
  padding: 0.75rem 2rem;
  border-radius: 3rem;
  border: none;
  font-family: var(--font-hed, sans-serif);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(123, 84, 0, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  letter-spacing: 0.01em;
}

.pounce-comments__submit-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 24px rgba(123, 84, 0, 0.4);
}

.pounce-comments__submit-btn:active {
  transform: scale(0.97);
}

.required {
  color: var(--clr-brand, #7b5400);
}

.comment-awaiting-moderation {
  font-size: 0.8rem;
  color: var(--clr-muted, #8a7060);
  font-style: italic;
  margin-top: 0.5rem;
}

@media (max-width: 600px) {
  .pounce-comment.depth-2 {
    margin-left: 1rem;
  }
  .pounce-comment__date {
    display: none;
  }
}

/* ── Public cat profile page ─────────────────────────────────────────────── */

.cat-profile-hero { padding: 2rem 1rem 0; }
.cat-profile-img img {
  display: block;
  width: 100%;
  max-height: 70vh;
  object-fit: cover;
  border-radius: 1rem;
  margin: 0 auto;
}
.cat-profile-body { padding: 2rem 1rem 3rem; }

/* ── Cat profile single page ─────────────────────────────────────────────── */

.cps-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

/* Hero: 2-column grid */
.cps-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 4rem;
  align-items: start;
  padding: 2.5rem 0 0;
}

/* Eyebrow */
.cps-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.4rem 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}
.cps-eyebrow__item {
  font-size: 0.82rem;
  color: var(--clr-muted, #8a7060);
  font-weight: 500;
}
.cps-eyebrow__sep { color: var(--clr-muted, #8a7060); font-size: 0.82rem; }
.cps-eyebrow__memorial {
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--clr-brand, #7b5400);
  color: #fff;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-family: var(--font-hed, sans-serif);
}

/* Name */
.cps-name {
  font-family: var(--font-hed, sans-serif);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  color: var(--clr-brand, #7b5400);
  line-height: 1.05;
  margin: 0 0 0.85rem;
}

/* Personality pills */
.cps-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.cps-pill {
  background: var(--clr-cream, #fff1df);
  color: var(--clr-brand, #7b5400);
  border: 1px solid var(--clr-gold, #feb300);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.76rem;
  font-weight: 700;
  font-family: var(--font-hed, sans-serif);
}

/* Bio */
.cps-bio {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--clr-text, #2c1a0e);
  margin: 0 0 1.5rem;
}
.cps-bio p { margin: 0 0 0.85rem; }
.cps-bio p:last-child { margin-bottom: 0; }

/* Action bar */
.cps-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0;
}
.cps-back-link {
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-hed, sans-serif);
  color: var(--clr-muted, #8a7060);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s;
}
.cps-back-link:hover { color: var(--clr-brand, #7b5400); }

.cps-action-group {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-left: auto;
}

.cps-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.75rem;
  background: transparent;
  color: var(--clr-muted, #8a7060);
  border: 1.5px solid rgba(123, 84, 0, 0.2);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s, box-shadow 0.15s;
  white-space: nowrap;
  line-height: 1;
}
.cps-action-btn:hover {
  border-color: var(--clr-brand, #7b5400);
  color: var(--clr-brand, #7b5400);
}
.cps-action-btn.is-active {
  background: var(--clr-gold, #feb300);
  border-color: var(--clr-gold, #feb300);
  color: var(--clr-brand, #7b5400);
  box-shadow: 0 2px 8px rgba(254, 179, 0, 0.4);
}
.cps-action-btn.is-active:hover {
  background: #e6a100;
  border-color: #e6a100;
  box-shadow: 0 3px 12px rgba(254, 179, 0, 0.5);
}
.cps-action-btn.is-active svg { fill: currentColor; stroke: currentColor; }
.cps-action-btn.is-copied { background: #e6f9ee; border-color: #34a853; color: #1e7e34; box-shadow: none; }
.cps-action-btn--own { opacity: 0.45; cursor: default; }
.cps-action-btn--own:hover { border-color: rgba(123, 84, 0, 0.2); color: var(--clr-muted, #8a7060); background: transparent; box-shadow: none; }
.cps-action-btn__count { font-size: 0.75rem; min-width: 0.5ch; }
.cps-action-btn svg { flex-shrink: 0; }

/* Photo column */
.cps-hero__photo { position: sticky; top: 2rem; }
.cps-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 1.25rem;
  display: block;
  box-shadow: 0 12px 40px rgba(60, 42, 0, 0.18);
}
.cps-photo--empty {
  width: 100%;
  aspect-ratio: 1;
  background: var(--clr-cream, #fff1df);
  border-radius: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}

/* Comments accordion */
.cps-comments {
  margin-top: 1.5rem;
  border-top: 1px solid rgba(123, 84, 0, 0.15);
  padding-top: 1.25rem;
}
.cps-comments[hidden] { display: none !important; }
.cps-comments__list { list-style: none; margin: 0 0 1.25rem; padding: 0; }

/* Pounces grid */
.cps-pounces {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 2px solid var(--clr-gold, #feb300);
}
.cps-pounces__heading {
  font-family: var(--font-hed, sans-serif);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--clr-brand, #7b5400);
  margin: 0 0 1.25rem;
}
.cps-pounces__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.cps-pounce {
  display: block;
  border-radius: 0.6rem;
  overflow: hidden;
  text-decoration: none;
  background: var(--clr-cream, #fff1df);
}
.cps-pounce img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: opacity 0.15s;
}
.cps-pounce:hover img { opacity: 0.85; }
.cps-pounce__cap {
  font-size: 0.7rem;
  color: var(--clr-muted, #8a7060);
  padding: 0.3rem 0.5rem 0.4rem;
  margin: 0;
  line-height: 1.4;
}

/* Mobile */
@media (max-width: 700px) {
  .cps-hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem 0 0;
  }
  .cps-hero__photo { order: -1; position: static; }
  .cps-hero__photo .cps-photo { aspect-ratio: 4 / 3; border-radius: 0.75rem; }
  .cps-pounces__grid { grid-template-columns: repeat(2, 1fr); }
  .cps-action-group { margin-left: 0; }
  .cps-actions { gap: 0.5rem; }
}

.cat-profile-single__follow-btn:disabled { opacity: 0.6; cursor: wait; }

/* Gallery follow filter tabs */

.acs-follow-filter {
  display: flex;
  gap: 0.25rem;
}

.acs-follow-filter-btn {
  padding: 0.4rem 0.9rem;
  border: 1.5px solid #e0d0be;
  border-radius: 2rem;
  background: transparent;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--clr-muted, #8a7060);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
  white-space: nowrap;
}

.acs-follow-filter-btn:hover {
  border-color: var(--clr-brand, #7b5400);
  color: var(--clr-brand, #7b5400);
}

.acs-follow-filter-btn.is-active {
  background: var(--clr-brand, #7b5400);
  border-color: var(--clr-brand, #7b5400);
  color: #fff;
}

/* ── Rainbow Bridge memorial wall ──────────────────────────────── */
.acs-rb-wall {
  padding: 0 0 4rem;
}

/* Hero — Tribute of the Month */
.acs-rb-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 2rem;
  overflow: hidden;
  background: linear-gradient(135deg, #3d2360 0%, #6b4fa0 60%, #9b7fd4 100%);
  margin-bottom: 3.5rem;
  min-height: 360px;
  box-shadow: 0 20px 60px rgba(107, 79, 160, 0.35);
}

.acs-rb-hero[hidden] { display: none; }

.acs-rb-hero__photo-wrap {
  position: relative;
  overflow: hidden;
  min-height: 360px;
}

.acs-rb-hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
}

.acs-rb-hero__photo-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 60%, rgba(61, 35, 96, 0.6));
  pointer-events: none;
}

.acs-rb-hero__content {
  padding: 2.5rem 2.5rem 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
  color: #fff;
}

.acs-rb-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  width: fit-content;
}

.acs-rb-hero__name {
  font-family: var(--font-hed, sans-serif);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0;
}

.acs-rb-hero__date {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  margin: 0;
  letter-spacing: 0.02em;
}

.acs-rb-hero__bio {
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.88);
  margin: 0;
  max-width: 36ch;
}

.acs-rb-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #fff;
  color: #3d2360;
  font-family: var(--font-hed, sans-serif);
  font-weight: 900;
  font-size: 0.9rem;
  padding: 0.7rem 1.5rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  width: fit-content;
  margin-top: 0.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}

.acs-rb-hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.22);
}

/* Gallery section */
.acs-rb-gallery-section {
  margin-bottom: 3.5rem;
}

.acs-rb-section-header {
  margin-bottom: 1.5rem;
}

.acs-rb-section__title {
  font-family: var(--font-hed, sans-serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--clr-text, #3c2c00);
  margin: 0 0 0.4rem;
}

.acs-rb-section__desc {
  font-size: 0.92rem;
  color: var(--clr-muted, #6e5922);
  margin: 0;
}

/* Gallery cards override */
.acs-rb-grid {
  grid-template-columns: repeat(4, 1fr) !important;
}

.acs-rb-card {
  position: relative;
}

.acs-rb-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  background: linear-gradient(145deg, rgba(107,79,160,0.2), rgba(107,79,160,0));
  pointer-events: none;
}

.acs-rb-ribbon {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 3;
  font-size: 1.35rem;
  line-height: 1;
  text-shadow: 0 1px 5px rgba(0,0,0,0.35);
  pointer-events: none;
}

.acs-rb-card-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 0 0.2rem;
}

.acs-rb-card-wrap .acs-rb-badge {
  background: #6b4fa0;
  color: #fff;
  transform: rotate(-1.5deg);
  box-shadow: 0 8px 24px rgba(107, 79, 160, 0.28);
  margin-bottom: 0;
}

.acs-rb-card-date {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--clr-muted, #6e5922);
  font-style: italic;
  margin: 0 0 0 0.6rem;
  padding-bottom: 0.5rem;
}

.acs-rb-empty {
  max-width: 360px;
  margin: 0 auto;
}

/* Virtual candles section */
.acs-rb-candles-section {
  background: linear-gradient(135deg, #1e1035 0%, #3d2360 100%);
  border-radius: 2rem;
  padding: 3rem 2rem 2.5rem;
  text-align: center;
  margin-bottom: 2.5rem;
  box-shadow: 0 16px 48px rgba(61, 35, 96, 0.3);
}

.acs-rb-candles__title {
  font-family: var(--font-hed, sans-serif);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 900;
  color: #fff;
  margin: 0 0 0.6rem;
  letter-spacing: -0.02em;
}

.acs-rb-candles__desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  margin: 0 auto 2rem;
  max-width: 46ch;
}

.acs-rb-candles__loading {
  color: rgba(255,255,255,0.5);
  font-style: italic;
  font-size: 0.88rem;
  margin: 0;
}

/* Named candle row */
.acs-rb-candles-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem 1rem;
  align-items: flex-start;
}

/* Individual candle (named) */
.acs-rb-candle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  width: 5rem;
}

.acs-rb-candle__inner {
  position: relative;
  width: 4.25rem;
  height: 4.25rem;
}

.acs-rb-candle__circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #fec13d 0%, #feb300 60%, #f59000 100%);
  box-shadow: 0 0 0 3px rgba(254,179,0,0.35), 0 6px 20px rgba(254,179,0,0.3);
  animation: acs-rb-glow 2.8s ease-in-out infinite alternate;
  position: relative;
}

.acs-rb-candle__circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.6;
  mix-blend-mode: luminosity;
}

.acs-rb-candle__no-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.acs-rb-candle__flame {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  line-height: 1;
  text-shadow: 0 0 8px rgba(255,200,0,0.8);
}

/* Remove button — outside the circle, on the inner wrapper */
.acs-rb-candle__remove {
  position: absolute;
  top: -0.3rem;
  right: -0.3rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  border: none;
  background: rgba(40,28,60,0.9);
  color: #fff;
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 5;
}

.acs-rb-candle:hover .acs-rb-candle__remove {
  opacity: 1;
}

.acs-rb-candle__name {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  text-align: center;
  line-height: 1.2;
  max-width: 5rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
}

/* Add Yours circle */
.acs-rb-candle--add .acs-rb-candle__inner {
  width: 4.25rem;
  height: 4.25rem;
}

.acs-rb-candle--add .acs-rb-candle__circle--add {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2.5px dashed rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.08);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  backdrop-filter: blur(4px);
}

.acs-rb-candle--add .acs-rb-candle__circle--add:hover {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.7);
  transform: scale(1.08);
}

.acs-rb-add-icon {
  font-size: 1.75rem;
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  line-height: 1;
  margin-top: -0.05rem;
}

.acs-rb-candle--add .acs-rb-candle__name {
  color: rgba(255,255,255,0.65);
  font-weight: 600;
}

@keyframes acs-rb-glow {
  0%   { box-shadow: 0 0 0 3px rgba(254,179,0,0.3), 0 4px 16px rgba(254,179,0,0.25); }
  100% { box-shadow: 0 0 0 5px rgba(254,179,0,0.45), 0 8px 28px rgba(254,179,0,0.45); }
}

/* Add-yours candle entrance */
@keyframes acs-rb-candle-in {
  from { opacity: 0; transform: scale(0.6); }
  to   { opacity: 1; transform: scale(1); }
}
.acs-rb-candle--new {
  animation: acs-rb-candle-in 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

/* Modal */
.acs-rb-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(20, 13, 40, 0.78);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  overflow-y: auto;
}

.acs-rb-modal[hidden] { display: none; }

.acs-rb-modal__panel {
  background: #fff;
  border-radius: 1.5rem;
  width: 100%;
  max-width: 420px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(20,13,40,0.45);
  animation: kf-panel-in 0.22s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: 85dvh;
}

.acs-rb-modal__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.08);
  color: #3c2c00;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.15s;
}

.acs-rb-modal__close:hover { background: rgba(0,0,0,0.15); }

.acs-rb-modal__header {
  padding: 2rem 1.75rem 1.25rem;
  text-align: center;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  flex-shrink: 0;
}

.acs-rb-modal__icon {
  font-size: 2.25rem;
  display: block;
  margin-bottom: 0.6rem;
}

.acs-rb-modal__title {
  font-family: var(--font-hed, sans-serif);
  font-size: 1.25rem;
  font-weight: 900;
  color: #3d2360;
  margin: 0 0 0.35rem;
}

.acs-rb-modal__sub {
  font-size: 0.85rem;
  color: var(--clr-muted, #6e5922);
  margin: 0;
}

.acs-rb-modal__pets {
  overflow-y: auto;
  flex: 1;
  padding: 0.5rem 0;
}

.acs-rb-modal__loading,
.acs-rb-modal__empty {
  text-align: center;
  padding: 2rem 1.5rem;
  color: var(--clr-muted, #6e5922);
  font-size: 0.88rem;
}

.acs-rb-modal__empty a {
  color: #6b4fa0;
  font-weight: 600;
  text-decoration: underline;
}

/* Pet row inside modal */
.acs-rb-modal__pet {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid rgba(0,0,0,0.045);
}

.acs-rb-modal__pet:last-child { border-bottom: none; }

.acs-rb-modal__pet:hover:not(.is-lit) {
  background: rgba(107,79,160,0.06);
}

.acs-rb-modal__pet.is-selected {
  background: rgba(107,79,160,0.1);
}

.acs-rb-modal__pet.is-lit {
  opacity: 0.55;
  cursor: default;
}

.acs-rb-modal__pet-photo {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--clr-warm, #ffe6ae);
  display: flex;
  align-items: center;
  justify-content: center;
}

.acs-rb-modal__pet-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.acs-rb-modal__pet-no-img {
  font-size: 1.3rem;
}

.acs-rb-modal__pet-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.acs-rb-modal__pet-info strong {
  font-family: var(--font-hed, sans-serif);
  font-weight: 900;
  font-size: 0.95rem;
  color: #3c2c00;
}

.acs-rb-modal__pet-info span {
  font-size: 0.78rem;
  color: var(--clr-muted, #6e5922);
}

.acs-rb-modal__pet-status {
  font-size: 0.8rem;
  color: #f59000;
}

.acs-rb-modal__pet.is-selected .acs-rb-modal__pet-info strong::before {
  content: '✓ ';
  color: #6b4fa0;
}

.acs-rb-modal__footer {
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid rgba(0,0,0,0.06);
  flex-shrink: 0;
}

.acs-rb-modal__save {
  width: 100%;
  background: linear-gradient(135deg, #3d2360 0%, #6b4fa0 100%);
  color: #fff;
  font-family: var(--font-hed, sans-serif);
  font-weight: 900;
  font-size: 1rem;
  padding: 0.85rem 1.5rem;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 6px 20px rgba(61,35,96,0.3);
}

.acs-rb-modal__save:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.acs-rb-modal__save:not(:disabled):hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

/* Support links */
.acs-rb-support {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.acs-rb-support__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-radius: 1.25rem;
  padding: 2rem;
  text-decoration: none;
  transition: background 0.2s;
}

.acs-rb-support__card:hover {
  text-decoration: none;
}

.acs-rb-support__card--teal {
  background: rgba(0, 104, 89, 0.06);
  color: var(--clr-text, #3c2c00);
}

.acs-rb-support__card--teal:hover {
  background: rgba(0, 104, 89, 0.12);
}

.acs-rb-support__card--rust {
  background: rgba(155, 63, 0, 0.06);
  color: var(--clr-text, #3c2c00);
}

.acs-rb-support__card--rust:hover {
  background: rgba(155, 63, 0, 0.12);
}

.acs-rb-support__text {
  display: inline-flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.acs-rb-support__title {
  display: block;
  font-family: var(--font-hed, sans-serif);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  margin-bottom: 0.3rem;
}

.acs-rb-support__card--teal .acs-rb-support__title {
  color: var(--clr-teal, #006859);
}

.acs-rb-support__card--rust .acs-rb-support__title {
  color: var(--clr-rust, #9b3f00);
}

.acs-rb-support__desc {
  display: block;
  font-size: 0.88rem;
  color: var(--clr-muted, #6e5922);
  line-height: 1.5;
}

.acs-rb-support__arrow {
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.acs-rb-support__card--teal .acs-rb-support__arrow { color: var(--clr-teal, #006859); }
.acs-rb-support__card--rust .acs-rb-support__arrow { color: var(--clr-rust, #9b3f00); }

.acs-rb-support__card:hover .acs-rb-support__arrow {
  transform: translateX(4px);
}

/* Overlay */
.acs-rb-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(40, 28, 60, 0.72);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 2rem 1rem 4rem;
}

.acs-rb-overlay[hidden] { display: none; }

.acs-rb-overlay__crossing {
  font-size: 0.88rem;
  font-weight: 700;
  color: #6b4fa0;
  font-family: var(--font-hed, sans-serif);
  margin: 0.15rem 0 0.85rem;
}

/* Responsive */
@media (max-width: 900px) {
  .acs-rb-hero {
    grid-template-columns: 1fr;
    min-height: unset;
  }
  .acs-rb-hero__photo-wrap {
    height: 260px;
    min-height: unset;
    position: relative;
  }
  .acs-rb-hero__photo {
    position: absolute;
  }
  .acs-rb-hero__photo-wrap::after {
    background: linear-gradient(to bottom, transparent 50%, rgba(61, 35, 96, 0.7));
  }
  .acs-rb-hero__content {
    padding: 1.75rem 1.75rem 2rem;
  }
  .acs-rb-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 600px) {
  .acs-rb-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .acs-rb-support {
    grid-template-columns: 1fr;
  }
  .acs-rb-candles-section {
    padding: 2rem 1.25rem 2rem;
  }
  .acs-rb-modal__panel {
    max-height: 92dvh;
  }
}

@media (max-width: 480px) {
  .acs-rb-modal {
    align-items: flex-end;
    padding: 0;
  }
  .acs-rb-modal__panel {
    border-radius: 1.5rem 1.5rem 0 0;
    max-width: 100%;
    max-height: 90dvh;
  }
}

@media (max-width: 480px) {
  .acs-rb-overlay {
    padding: 0;
    align-items: flex-end;
  }
  .acs-rb-overlay .acs-kf-overlay__panel {
    border-radius: 1.25rem 1.25rem 0 0;
    max-height: 92dvh;
    max-width: 100%;
    overflow-y: auto;
  }
}

/* ── Mobile: dashboard + caption regen ───────────────────────── */
@media (max-width: 782px) {
  /* Remove dashboard's own horizontal padding — site-main now provides the gutter */
  .acs-dashboard {
    padding-inline: 0;
  }
}

@media (max-width: 480px) {
  /* Caption style pills: wrap as a row grid, regen button on its own line below */
  .acs-caption-regen {
    flex-direction: column;
    align-items: stretch;
  }
  .acs-style-pills {
    flex: unset;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
  }
  .acs-regen-btn {
    align-self: flex-start;
  }
}
