:root {
  --brand-800: #060880;
  --brand-700: #090cab;
  --brand-600: #1a1fd9;
  --brand-500: #3f44e8;
  --brand-sky: #818cf8;
  --care-800: #047857;
  --care-700: #059669;
  --care-100: #d1fae5;
  --ink-950: #0b1830;
  --ink-900: #0f172a;
  --ink-800: #1e293b;
  --ink-700: #334155;
  --ink-600: #475569;
  --ink-500: #64748b;
  --ink-300: #cbd5e1;
  --line: #e2e8f0;
  --canvas: #fafbff;
  --surface: #ffffff;
  --warm: #fffaf3;
  --warning: #b45309;
  --danger: #b91c1c;
  --shadow-soft: 0 20px 55px rgba(15, 23, 42, 0.09);
  --shadow-float: 0 28px 80px rgba(11, 24, 48, 0.18);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 15px;
  --content: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
  color: var(--ink-900);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  inset: 10px auto auto 10px;
  z-index: 5000;
  padding: 10px 15px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink-950);
  font-weight: 800;
  transform: translateY(-160%);
  box-shadow: var(--shadow-soft);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--brand-sky);
  outline-offset: 3px;
}

.container {
  width: min(calc(100% - 40px), var(--content));
  margin-inline: auto;
}

.profile-nav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 50;
  color: white;
}

.profile-nav.is-sticky {
  position: fixed;
  color: var(--ink-950);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.07);
  backdrop-filter: blur(18px);
}

.nav-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.petme-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
  color: inherit;
  text-decoration: none;
  font-family: "Manrope", sans-serif;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.petme-brand img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin-inline: auto;
}

.nav-links a {
  padding: 9px 12px;
  border-radius: 999px;
  color: inherit;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  opacity: 0.84;
  transition: background 180ms ease, opacity 180ms ease;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.14);
  opacity: 1;
}

.profile-nav.is-sticky .nav-links a:hover {
  background: #eff6ff;
  color: var(--brand-700);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.creator-language select {
  min-height: 42px;
  padding: 0 30px 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.creator-language select option {
  background: white;
  color: #111827;
}

.profile-nav.is-sticky .creator-language select {
  border-color: var(--line);
  background: var(--surface);
}

[dir="rtl"] .creator-language select {
  padding: 0 12px 0 30px;
}

.icon-button,
.nav-share {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.profile-nav.is-sticky .icon-button,
.profile-nav.is-sticky .nav-share {
  border-color: var(--line);
  background: var(--surface);
}

.nav-donate {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--care-700);
  color: white;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(4, 120, 87, 0.28);
}

.nav-donate:hover {
  background: var(--care-800);
}

.svg-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.profile-hero {
  position: relative;
  min-height: 610px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink-950);
  isolation: isolate;
}

.hero-photo,
.hero-fallback,
.hero-overlay,
.hero-texture {
  position: absolute;
  inset: 0;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  z-index: -4;
  transform: scale(1.01);
}

.hero-fallback {
  z-index: -5;
  background:
    radial-gradient(circle at 78% 28%, rgba(63, 68, 232, 0.62), transparent 28%),
    radial-gradient(circle at 18% 72%, rgba(16, 185, 129, 0.35), transparent 30%),
    linear-gradient(130deg, #060880 0%, #090cab 55%, #1a1fd9 100%);
}

.hero-overlay {
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(6, 18, 40, 0.93) 0%, rgba(7, 24, 53, 0.68) 48%, rgba(7, 24, 53, 0.2) 76%),
    linear-gradient(0deg, rgba(6, 18, 40, 0.86) 0%, transparent 52%);
}

.hero-texture {
  z-index: -2;
  opacity: 0.22;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.85) 1px, transparent 1px);
  background-size: 27px 27px;
  mask-image: linear-gradient(90deg, black, transparent 74%);
}

.hero-content {
  padding-top: 138px;
  padding-bottom: 98px;
  color: white;
}

.hero-identity {
  max-width: 820px;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 28px;
  align-items: end;
}

.profile-avatar {
  width: 132px;
  height: 132px;
  border-radius: 32px;
  object-fit: cover;
  background: white;
  border: 5px solid rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-float);
}

.profile-avatar-fallback {
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  border-radius: 32px;
  border: 5px solid rgba(255, 255, 255, 0.92);
  background: linear-gradient(145deg, var(--brand-sky), var(--brand-700));
  color: white;
  font-family: "Manrope", sans-serif;
  font-size: 46px;
  font-weight: 800;
  box-shadow: var(--shadow-float);
}

.eyebrow-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
}

.eyebrow-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(7, 24, 53, 0.34);
  color: rgba(255, 255, 255, 0.94);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.verified-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18);
}

.hero-title {
  max-width: 780px;
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.65rem, 6vw, 5.25rem);
  font-weight: 800;
  letter-spacing: -0.038em;
  line-height: 1.02;
  text-wrap: balance;
}

.hero-tagline {
  max-width: 680px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  line-height: 1.55;
}

.hero-location {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 13px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 30px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--brand-600);
  color: white;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.3);
}

.button-care {
  background: var(--care-700);
  color: white;
  box-shadow: 0 14px 30px rgba(4, 120, 87, 0.3);
}

.button-light {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: white;
  backdrop-filter: blur(12px);
}

.button-surface {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink-800);
}

.button-full {
  width: 100%;
}

.button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.impact-dock {
  position: relative;
  z-index: 12;
  margin-top: -46px;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.impact-item {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 22px;
  border-inline-end: 1px solid var(--line);
}

.impact-item:last-child {
  border-inline-end: 0;
}

.impact-value {
  color: var(--ink-950);
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.32rem, 2vw, 1.82rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.15;
}

.impact-label {
  margin-top: 5px;
  color: var(--ink-500);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section {
  padding-block: 104px;
}

.section-tight {
  padding-block: 76px;
}

.section-alt {
  border-block: 1px solid rgba(226, 232, 240, 0.85);
  background: var(--surface);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 13px;
  color: var(--brand-700);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.section-kicker::before {
  content: "";
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-sky);
}

.section-heading {
  max-width: 780px;
  margin: 0;
  color: var(--ink-950);
  font-family: "Manrope", sans-serif;
  font-size: clamp(2rem, 4vw, 3.45rem);
  font-weight: 800;
  letter-spacing: -0.052em;
  line-height: 1.08;
  text-wrap: balance;
}

.section-intro {
  max-width: 670px;
  margin: 18px 0 0;
  color: var(--ink-500);
  font-size: 17px;
}

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 38px;
}

.privacy-note {
  max-width: 760px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 24px;
  padding: 13px 16px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 14px;
  background: rgba(129, 140, 248, 0.1);
  color: var(--ink-600);
  font-size: 14px;
  font-weight: 600;
}

.privacy-note .svg-icon {
  width: 18px;
  min-width: 18px;
  margin-top: 2px;
  color: var(--brand-600);
}

.privacy-note + .card-grid {
  margin-top: 24px;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: clamp(38px, 8vw, 110px);
  align-items: start;
  margin-top: 46px;
}

.section-more-note {
  margin-inline: auto;
  text-align: center;
}

.about-copy {
  position: relative;
  padding-inline-start: 38px;
}

.about-copy::before {
  content: "“";
  position: absolute;
  inset: -25px auto auto -5px;
  color: #dbeafe;
  font-family: Georgia, serif;
  font-size: 108px;
  line-height: 1;
  z-index: -1;
}

.about-copy p {
  margin: 0;
  color: var(--ink-700);
  font-size: clamp(1.12rem, 2vw, 1.42rem);
  line-height: 1.75;
  white-space: pre-line;
}

.contact-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.contact-card h3 {
  margin: 0 0 8px;
  font-family: "Manrope", sans-serif;
  font-size: 19px;
}

.contact-card > p {
  margin: 0 0 20px;
  color: var(--ink-500);
  font-size: 14px;
}

.contact-list {
  display: grid;
  gap: 9px;
}

.contact-link {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 13px;
  color: var(--ink-700);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: background 160ms ease, color 160ms ease;
}

.contact-link:hover {
  background: #eff6ff;
  color: var(--brand-700);
}

.contact-link > span:last-child {
  min-width: 0;
}

.contact-link strong {
  display: block;
  overflow-wrap: anywhere;
}

.contact-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 10px;
  background: #eff6ff;
  color: var(--brand-700);
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.social-link {
  min-width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-700);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.campaign-grid {
  margin-top: 40px;
}

.point-card,
.campaign-card,
.animal-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.point-card:hover,
.campaign-card:hover,
.animal-card:hover {
  transform: translateY(-5px);
  border-color: #bfdbfe;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.11);
}

.card-media {
  position: relative;
  overflow: hidden;
  background: #eaf2ff;
}

.card-media img {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.point-card:hover .card-media img,
.animal-card:hover .card-media img,
.campaign-card:hover .card-media img {
  transform: scale(1.04);
}

.point-card .card-media,
.campaign-card .card-media {
  aspect-ratio: 16 / 10;
}

.media-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 220px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(129, 140, 248, 0.42), transparent 35%),
    linear-gradient(135deg, #eaf2ff, #dbeafe);
  color: var(--brand-700);
}

.media-placeholder .svg-icon {
  width: 46px;
  height: 46px;
}

.media-badge {
  position: absolute;
  z-index: 2;
  inset: 14px auto auto 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink-800);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
}

.card-body {
  padding: 23px;
}

.card-title {
  margin: 0;
  color: var(--ink-950);
  font-family: "Manrope", sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.card-location,
.card-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  color: var(--ink-500);
  font-size: 13px;
  font-weight: 700;
}

.card-description {
  display: -webkit-box;
  margin: 15px 0 0;
  overflow: hidden;
  color: var(--ink-600);
  font-size: 14px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 21px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.micro-stat {
  color: var(--ink-500);
  font-size: 12px;
  font-weight: 800;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--brand-700);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.filter-chip {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-600);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.filter-chip.is-active {
  border-color: var(--brand-600);
  background: var(--brand-600);
  color: white;
}

.animal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 19px;
}

.animal-card {
  display: flex;
  flex-direction: column;
}

.animal-card.is-clickable {
  cursor: pointer;
}

.animal-card.is-clickable:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.38);
  outline-offset: 4px;
}

.animal-card .card-media {
  aspect-ratio: 4 / 5;
}

.animal-card .card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.animal-card .card-title {
  font-size: 18px;
}

.animal-card .card-footer {
  margin-top: auto;
}

.animal-status {
  position: absolute;
  z-index: 2;
  inset: 13px 13px auto auto;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(6, 95, 70, 0.92);
  color: white;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.animal-status.is-reserved {
  background: rgba(180, 83, 9, 0.94);
}

.campaign-card {
  display: flex;
  flex-direction: column;
}

.campaign-card .card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.campaign-type {
  margin-bottom: 11px;
  color: var(--brand-700);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.campaign-progress {
  margin-top: auto;
  padding-top: 21px;
}

.progress-track {
  display: block;
  width: 100%;
  height: 9px;
  overflow: hidden;
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: #e9eef6;
}

.progress-track::-webkit-progress-bar {
  border-radius: inherit;
  background: #e9eef6;
}

.progress-track::-webkit-progress-value,
.progress-track::-moz-progress-bar {
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-700), var(--brand-sky));
}

.campaign-donate {
  margin-top: 18px;
}

.progress-copy {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.progress-raised {
  color: var(--ink-950);
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  font-weight: 800;
}

.progress-target {
  color: var(--ink-500);
  font-size: 12px;
  font-weight: 700;
}

.foster-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(270px, 0.8fr);
  gap: 50px;
  align-items: center;
  overflow: hidden;
  padding: clamp(36px, 7vw, 78px);
  border-radius: var(--radius-xl);
  background: var(--ink-950);
  color: white;
  box-shadow: var(--shadow-float);
  isolation: isolate;
}

.foster-panel::before,
.foster-panel::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: -1;
}

.foster-panel::before {
  width: 420px;
  height: 420px;
  inset: -210px -90px auto auto;
  background: rgba(129, 140, 248, 0.28);
}

.foster-panel::after {
  width: 320px;
  height: 320px;
  inset: auto auto -210px 32%;
  background: rgba(16, 185, 129, 0.18);
}

.foster-panel h2 {
  max-width: 720px;
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.05em;
  line-height: 1.08;
}

.foster-panel p {
  max-width: 650px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
}

.foster-count {
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.foster-count strong {
  display: block;
  font-family: "Manrope", sans-serif;
  font-size: 56px;
  letter-spacing: -0.06em;
  line-height: 1;
}

.foster-count span {
  display: block;
  margin: 8px 0 20px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.donation-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(36px, 7vw, 90px);
  align-items: start;
}

.donation-summary {
  position: sticky;
  top: 110px;
}

.money-stack {
  display: grid;
  gap: 8px;
  margin-top: 25px;
}

.money-total {
  color: var(--ink-950);
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.1rem, 4vw, 3.7rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
}

.money-caption {
  color: var(--ink-500);
  font-size: 13px;
  font-weight: 700;
}

.activity-list {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.activity-panel {
  min-width: 0;
}

.donation-list-controls {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

.donation-list-toggle {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 10px 18px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-800);
  font-size: 13px;
  font-weight: 850;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.1);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease,
    transform 160ms ease;
}

.donation-list-toggle:hover {
  border-color: var(--brand-600);
  background: white;
  transform: translateY(-1px);
}

.donation-list-toggle:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.22);
  outline-offset: 3px;
}

.donation-toggle-chevron {
  width: 9px;
  height: 9px;
  border-inline-end: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 180ms ease;
}

.donation-list-toggle.is-expanded .donation-toggle-chevron {
  transform: translateY(2px) rotate(225deg);
}

.activity-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 19px 21px;
  border-bottom: 1px solid var(--line);
}

.activity-item[hidden] {
  display: none;
}

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

.activity-avatar {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--care-100);
  color: var(--care-800);
}

.activity-copy strong {
  display: block;
  color: var(--ink-800);
  font-size: 14px;
}

.activity-copy span {
  display: block;
  overflow: hidden;
  color: var(--ink-500);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-amount {
  color: var(--care-800);
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  font-weight: 800;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 44px;
  border: 1px dashed var(--ink-300);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.empty-state strong {
  display: block;
  color: var(--ink-800);
  font-family: "Manrope", sans-serif;
  font-size: 18px;
}

.empty-state p {
  max-width: 500px;
  margin: 8px auto 0;
  color: var(--ink-500);
}

.contact-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: clamp(32px, 6vw, 62px);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 90% 0%, rgba(129, 140, 248, 0.22), transparent 35%),
    #eff6ff;
}

.contact-banner h2 {
  margin: 0;
  color: var(--ink-950);
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  letter-spacing: -0.05em;
  line-height: 1.12;
}

.contact-banner p {
  margin: 12px 0 0;
  color: var(--ink-600);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.contact-actions > .button {
  max-width: 100%;
}

.contact-action-value {
  min-width: 0;
  overflow-wrap: anywhere;
}

.profile-footer {
  margin-top: 105px;
  padding: 54px 0 28px;
  background: var(--ink-950);
  color: white;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 42px;
  align-items: start;
  padding-bottom: 38px;
}

.footer-brand-copy {
  max-width: 500px;
  margin-top: 15px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px 18px;
}

.footer-links a,
.footer-links button {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.46);
  font-size: 12px;
}

.owner-toolbar {
  position: fixed;
  inset: auto 22px 22px auto;
  z-index: 220;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-float);
  backdrop-filter: blur(18px);
}

.owner-toolbar span {
  color: var(--ink-600);
  font-size: 12px;
  font-weight: 800;
}

.owner-toolbar button {
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--brand-600);
  color: white;
  font-weight: 800;
  cursor: pointer;
}

.mobile-action-bar {
  display: none;
}

.mobile-action-bar.is-single {
  grid-template-columns: 1fr;
}

.dialog-backdrop,
.editor-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 13, 29, 0.66);
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
  backdrop-filter: blur(8px);
}

.dialog-backdrop.is-open,
.editor-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.dialog-card {
  width: min(100%, 540px);
  max-height: min(86vh, 780px);
  overflow: auto;
  padding: 27px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-float);
  transform: translateY(16px) scale(0.985);
  transition: transform 200ms ease;
}

.dialog-backdrop.is-open .dialog-card {
  transform: translateY(0) scale(1);
}

.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.dialog-head h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 24px;
  letter-spacing: -0.035em;
}

.dialog-head p {
  margin: 5px 0 0;
  color: var(--ink-500);
  font-size: 14px;
}

.animal-dialog-card {
  width: min(100%, 940px);
  max-height: min(90vh, 820px);
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: #f8fafc;
}

.animal-dialog-head {
  position: sticky;
  z-index: 6;
  top: 0;
  align-items: center;
  margin: 0;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.animal-dialog-head h2 {
  color: var(--ink-950);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.animal-dialog-content {
  display: grid;
  grid-template-columns: minmax(300px, 0.88fr) minmax(360px, 1.12fr);
  min-height: 560px;
}

.animal-dialog-gallery {
  min-width: 0;
  padding: 24px;
  background:
    radial-gradient(circle at 12% 8%, rgba(96, 165, 250, 0.32), transparent 36%),
    linear-gradient(145deg, #07183a 0%, #090cab 58%, #2226c8 100%);
}

.animal-dialog-media {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 25px;
  background: rgba(219, 234, 254, 0.96);
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.32);
}

.animal-dialog-main-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.animal-dialog-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--brand-700);
  background:
    radial-gradient(circle at 30% 20%, rgba(129, 140, 248, 0.45), transparent 35%),
    linear-gradient(135deg, #eff6ff, #dbeafe);
}

.animal-dialog-placeholder .svg-icon {
  width: 64px;
  height: 64px;
}

.animal-dialog-media .animal-status {
  inset: 16px 16px auto auto;
  padding: 8px 12px;
  box-shadow: 0 10px 26px rgba(2, 6, 23, 0.22);
}

.animal-dialog-thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.animal-dialog-thumb {
  position: relative;
  width: 62px;
  height: 62px;
  flex: 0 0 auto;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.animal-dialog-thumb.is-active {
  border-color: white;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.45);
}

.animal-dialog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.animal-dialog-details {
  min-width: 0;
  padding: clamp(26px, 4vw, 42px);
  background:
    radial-gradient(circle at 100% 0, rgba(199, 210, 254, 0.52), transparent 34%),
    #fff;
}

.animal-dialog-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-700);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.animal-dialog-kicker .svg-icon {
  width: 17px;
  height: 17px;
}

.animal-dialog-meta,
.animal-health-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.animal-dialog-meta {
  margin-top: 16px;
}

.animal-dialog-chip,
.animal-health-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.animal-dialog-chip {
  border: 1px solid #dbeafe;
  background: #f8fbff;
  color: var(--ink-700);
}

.animal-dialog-section {
  margin-top: 25px;
}

.animal-dialog-section h3 {
  margin: 0 0 11px;
  color: var(--ink-900);
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  letter-spacing: -0.015em;
}

.animal-health-badge {
  gap: 6px;
  background: #ecfdf5;
  color: #047857;
}

.animal-health-badge .svg-icon {
  width: 15px;
  height: 15px;
  stroke-width: 2.6;
}

.animal-dialog-about p {
  margin: 0;
  color: var(--ink-600);
  font-size: 14px;
  line-height: 1.75;
  white-space: pre-line;
}

.animal-dialog-loading {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  margin-top: 25px;
  padding: 15px;
  border: 1px solid #bfdbfe;
  border-radius: 17px;
  background: linear-gradient(135deg, #eff6ff, #f8fafc);
  color: var(--brand-800);
}

.animal-dialog-loading-visual {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: white;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.12);
}

.animal-dialog-spinner {
  width: 21px;
  height: 21px;
  border: 3px solid #bfdbfe;
  border-top-color: var(--brand-700);
  border-radius: 50%;
  animation: animal-dialog-spin 760ms linear infinite;
}

.animal-dialog-loading-copy {
  min-width: 0;
}

.animal-dialog-loading-copy strong {
  display: block;
  font-size: 12px;
  line-height: 1.45;
}

.animal-dialog-skeleton {
  display: grid;
  gap: 6px;
  margin-top: 9px;
}

.animal-dialog-skeleton i {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #dbeafe;
}

.animal-dialog-skeleton i:nth-child(2) {
  width: 88%;
}

.animal-dialog-skeleton i:nth-child(3) {
  width: 64%;
}

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

.animal-dialog-location {
  display: grid;
  gap: 8px;
  margin-top: 25px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #f8fafc;
}

.animal-dialog-location span {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: var(--ink-600);
  font-size: 13px;
  font-weight: 750;
}

.animal-dialog-location .svg-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: var(--brand-700);
}

.animal-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.animal-dialog-actions .button {
  flex: 1 1 170px;
}

.close-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink-600);
  cursor: pointer;
}

.choice-list {
  display: grid;
  gap: 10px;
}

.choice-link {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--ink-800);
  text-decoration: none;
}

.choice-link:hover {
  border-color: #93c5fd;
  background: #f8fbff;
}

.choice-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--care-100);
  color: var(--care-800);
}

.choice-copy strong,
.choice-copy span {
  display: block;
}

.choice-copy strong {
  font-size: 14px;
}

.choice-copy span {
  color: var(--ink-500);
  font-size: 12px;
}

.auth-form,
.editor-form {
  display: grid;
  gap: 17px;
}

.field,
.field-grid {
  display: grid;
  gap: 7px;
}

.field-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field label,
.field-label {
  color: var(--ink-700);
  font-size: 12px;
  font-weight: 800;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--ink-300);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink-900);
  outline: 0;
}

.field textarea {
  min-height: 126px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--brand-600);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.11);
}

.field small {
  color: var(--ink-500);
  font-size: 11px;
}

.form-divider {
  height: 1px;
  margin-block: 4px;
  background: var(--line);
}

.google-button {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink-800);
  font-weight: 800;
  cursor: pointer;
}

.form-message {
  min-height: 20px;
  margin: 0;
  color: var(--danger);
  font-size: 12px;
  font-weight: 700;
}

.editor-backdrop {
  place-items: stretch;
  padding: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.editor-panel {
  position: fixed;
  inset-block: 0;
  inset-inline-end: 0;
  width: min(100%, 510px);
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  box-shadow: -20px 0 70px rgba(5, 13, 29, 0.24);
  transform: translateX(102%);
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

[dir="rtl"] .editor-panel {
  inset-inline: 0 auto;
  transform: translateX(-102%);
}

.editor-backdrop.is-open .editor-panel {
  transform: translateX(0);
}

.editor-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.editor-header h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 20px;
}

.editor-header p {
  margin: 3px 0 0;
  color: var(--ink-500);
  font-size: 12px;
}

.editor-scroll {
  min-height: 0;
  height: 0;
  flex: 1 1 0;
  overflow-y: auto;
  padding: 25px;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.editor-section-nav {
  position: sticky;
  z-index: 5;
  top: -25px;
  display: flex;
  gap: 7px;
  margin: 0 -8px 25px;
  padding: 11px 8px;
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  scrollbar-width: none;
  backdrop-filter: blur(16px);
}

.editor-section-nav::-webkit-scrollbar {
  display: none;
}

.editor-section-link {
  min-height: 36px;
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--ink-600);
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.editor-section-link:hover,
.editor-section-link.is-active {
  border-color: var(--brand-600);
  background: var(--brand-600);
  color: white;
}

.editor-section {
  margin-bottom: 30px;
  scroll-margin-top: 62px;
}

.editor-section h3 {
  margin: 0 0 4px;
  color: var(--ink-950);
  font-family: "Manrope", sans-serif;
  font-size: 16px;
}

.editor-section > p {
  margin: 0 0 17px;
  color: var(--ink-500);
  font-size: 12px;
}

.sync-notice {
  display: flex;
  gap: 12px;
  margin-bottom: 26px;
  padding: 15px;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  background: #eff6ff;
  color: var(--brand-800);
  font-size: 12px;
  line-height: 1.55;
}

.image-input-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.image-input {
  position: relative;
  min-height: 132px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px dashed #93c5fd;
  border-radius: 15px;
  background: #f8fbff;
  color: var(--brand-700);
  text-align: center;
  cursor: pointer;
}

.image-input input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.image-input img {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-input img.is-loaded {
  display: block;
}

.image-input:focus-within,
.switch:focus-within .switch-track {
  outline: 3px solid rgba(9, 12, 171, 0.24);
  outline-offset: 3px;
}

.auth-setup-link {
  margin-top: 18px;
}

.image-input span {
  position: relative;
  z-index: 1;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  font-weight: 800;
}

.switch-row {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
}

.switch-copy strong,
.switch-copy span {
  display: block;
}

.switch-copy strong {
  font-size: 13px;
}

.switch-copy span {
  color: var(--ink-500);
  font-size: 11px;
}

.switch {
  position: relative;
  width: 48px;
  height: 28px;
  flex: 0 0 auto;
}

.switch input {
  position: absolute;
  opacity: 0;
}

.switch-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--ink-300);
  cursor: pointer;
  transition: background 160ms ease;
}

.switch-track::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  inset: 3px auto 3px 3px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
  transition: transform 160ms ease;
}

.switch input:checked + .switch-track {
  background: var(--care-700);
}

.switch input:checked + .switch-track::after {
  transform: translateX(20px);
}

.editor-footer {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 24px calc(17px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.save-status {
  color: var(--ink-500);
  font-size: 12px;
  font-weight: 700;
}

.editor-footer-actions {
  display: flex;
  gap: 9px;
}

.toast-region {
  position: fixed;
  inset: 20px 20px auto auto;
  z-index: 3000;
  display: grid;
  gap: 9px;
}

.toast {
  max-width: min(390px, calc(100vw - 40px));
  padding: 13px 16px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.97);
  color: var(--ink-800);
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
  animation: toast-in 220ms ease both;
}

.toast.is-error {
  border-color: #fecaca;
  color: var(--danger);
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.ssr-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 40px;
  background: var(--ink-950);
  color: white;
  text-align: center;
}

.ssr-logo {
  width: 72px;
  height: 72px;
  margin-inline: auto;
  border-radius: 22px;
}

.ssr-eyebrow {
  margin: 24px 0 0;
  color: var(--brand-sky);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ssr-shell h1 {
  margin: 12px 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.4rem, 7vw, 5rem);
  letter-spacing: -0.06em;
}

.ssr-shell > p:last-child {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.68);
}

@media (max-width: 1050px) {
  .nav-links {
    display: none;
  }

  .impact-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .impact-item:nth-child(3) {
    border-inline-end: 0;
  }

  .impact-item:nth-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }

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

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 72px;
  }

  .container {
    width: min(calc(100% - 28px), var(--content));
  }

  .nav-inner {
    min-height: 66px;
  }

  .petme-brand span {
    display: none;
  }

  .nav-donate {
    display: none;
  }

  .profile-hero {
    min-height: 650px;
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(6, 18, 40, 0.96) 0%, rgba(7, 24, 53, 0.65) 60%, rgba(7, 24, 53, 0.2) 100%);
  }

  .hero-content {
    padding-top: 100px;
    padding-bottom: 82px;
  }

  .hero-identity {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .profile-avatar,
  .profile-avatar-fallback {
    width: 94px;
    height: 94px;
    border-radius: 25px;
  }

  .profile-avatar-fallback {
    font-size: 34px;
  }

  .hero-title {
    font-size: clamp(2.45rem, 12vw, 4rem);
  }

  .hero-actions .button {
    flex: 1 1 calc(50% - 6px);
  }

  .impact-dock {
    margin-top: -34px;
  }

  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .impact-item,
  .impact-item:nth-child(3) {
    min-height: 98px;
    padding: 15px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .impact-item:nth-child(2n) {
    border-inline-end: 0;
  }

  .impact-item:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .section,
  .section-tight {
    padding-block: 72px;
  }

  .section-head-row {
    display: grid;
    align-items: start;
  }

  .about-layout,
  .foster-panel,
  .donation-layout,
  .contact-banner,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .about-copy {
    padding-inline-start: 20px;
  }

  .card-grid,
  .animal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .foster-panel {
    gap: 30px;
  }

  .donation-summary {
    position: static;
  }

  .contact-actions,
  .footer-links {
    justify-content: flex-start;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .owner-toolbar {
    inset: auto 12px calc(12px + env(safe-area-inset-bottom)) 12px;
    justify-content: space-between;
  }

  .mobile-action-bar {
    position: fixed;
    inset: auto 0 0;
    z-index: 180;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 -12px 36px rgba(15, 23, 42, 0.09);
    backdrop-filter: blur(18px);
  }

  .mobile-action-bar .button {
    min-height: 46px;
    padding-inline: 12px;
  }

  .mobile-action-bar.is-single {
    grid-template-columns: 1fr;
  }

  .hero-title,
  .card-title,
  .contact-link strong,
  .footer-brand-copy {
    overflow-wrap: anywhere;
  }

  .profile-footer {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }

  .field-grid,
  .image-input-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .profile-hero {
    min-height: 690px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .button {
    width: 100%;
  }

  .impact-grid {
    border-radius: 18px;
  }

  .impact-value {
    font-size: 1.25rem;
  }

  .card-grid,
  .animal-grid {
    grid-template-columns: 1fr;
  }

  .animal-card .card-media {
    aspect-ratio: 4 / 3;
  }

  .section-heading {
    font-size: 2rem;
  }

  .activity-item {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .activity-amount {
    grid-column: 2;
  }

  .dialog-backdrop {
    place-items: end center;
    padding: 0;
  }

  .dialog-card {
    width: 100%;
    max-height: 90vh;
    padding: 23px 18px calc(23px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
  }

  .animal-dialog-card {
    max-height: 94vh;
    padding: 0;
    border-radius: 26px 26px 0 0;
  }

  .animal-dialog-head {
    padding: 16px 18px;
  }

  .animal-dialog-content {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .animal-dialog-gallery {
    padding: 14px 14px 18px;
  }

  .animal-dialog-media {
    min-height: 0;
    aspect-ratio: 4 / 3;
    border-radius: 20px;
  }

  .animal-dialog-details {
    padding: 25px 18px calc(26px + env(safe-area-inset-bottom));
  }

  .animal-dialog-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .animal-dialog-actions .button {
    width: 100%;
  }

  .editor-panel {
    width: 100%;
  }

  .editor-header,
  .editor-scroll,
  .editor-footer {
    padding-inline: 18px;
  }

  .editor-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .editor-footer-actions .button {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
