:root {
  --dark: #263447;          /* Deep blue slate */
  --purple: #53657A;        /* Muted blue grey */
  --berry: #6F8FAF;         /* Dusty blue */
  --rose: #6F8FAF;          /* Dusty blue accent */
  --coral: #D8E8DD;         /* Soft sage */
  --cream: #F8F6F2;         /* Warm off-white */
  --card: #FFFFFF;

  --danger: #D96C5F;        /* Muted coral for alerts */
  --sage: #D8E8DD;
  --soft-blue: #E8EEF3;

  --soft-border: rgba(38, 52, 71, 0.14);
  --soft-shadow: rgba(38, 52, 71, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(252, 115, 81, 0.22), transparent 32%),
    radial-gradient(circle at top right, rgba(194, 67, 95, 0.18), transparent 30%),
    var(--cream);
  color: var(--dark);
  min-height: 100vh;
}

header {
  position: relative;
  background: linear-gradient(135deg, var(--dark), var(--purple), var(--berry));
  color: white;
  padding: 34px 20px;
  text-align: center;
  border-bottom: 6px solid var(--coral);
}

header h1 {
  margin: 0;
  font-size: 42px;
  letter-spacing: 0.5px;
}

header p {
  margin: 10px 0 0;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.88);
}

.partner-link {
  position: absolute;
  top: 18px;
  right: 20px;
  color: white;
  text-decoration: none;
  font-size: 13px;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  transition: background 0.15s ease, transform 0.15s ease;
}

.partner-link:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px;
}

.card {
  background: var(--card);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 22px;
  box-shadow: 0 12px 30px var(--soft-shadow);
  border: 1px solid var(--soft-border);
}

h2 {
  margin-top: 0;
  color: var(--dark);
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
  font-size: 14px;
  color: var(--purple);
}

input,
select,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(91, 54, 87, 0.28);
  border-radius: 12px;
  font-size: 15px;
  margin-bottom: 12px;
  color: var(--dark);
  background: #fffdfc;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(228, 88, 95, 0.16);
}

textarea {
  min-height: 80px;
  resize: vertical;
}

button {
  border: none;
  border-radius: 14px;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--rose), var(--coral));
  color: white;
  font-weight: bold;
  cursor: pointer;
  margin-right: 8px;
  margin-top: 4px;
  box-shadow: 0 8px 18px rgba(194, 67, 95, 0.24);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(194, 67, 95, 0.32);
}

button:active {
  transform: translateY(0);
  opacity: 0.92;
}

button.secondary {
  background: linear-gradient(135deg, var(--dark), var(--purple));
  box-shadow: 0 8px 18px rgba(39, 35, 68, 0.24);
}

button.secondary:hover {
  box-shadow: 0 10px 22px rgba(39, 35, 68, 0.32);
}

.hidden {
  display: none;
}

.message {
  padding: 12px;
  border-radius: 12px;
  margin-top: 12px;
  background: rgba(91, 54, 87, 0.08);
  color: var(--dark);
  white-space: pre-wrap;
  border: 1px solid rgba(91, 54, 87, 0.12);
}

.success {
  background: rgba(252, 115, 81, 0.12);
  color: var(--purple);
  border: 1px solid rgba(252, 115, 81, 0.35);
}

.error {
  background: rgba(194, 67, 95, 0.12);
  color: #8a233a;
  border: 1px solid rgba(194, 67, 95, 0.35);
}

.pet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.pet-card {
  border: 1px solid rgba(91, 54, 87, 0.16);
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(180deg, #fff, #fff8f4);
  box-shadow: 0 8px 20px rgba(39, 35, 68, 0.08);
}

.pet-card h3 {
  margin: 0 0 8px;
  color: var(--berry);
  font-size: 22px;
}

.pet-card p {
  margin: 7px 0;
}

.pet-card strong {
  color: var(--purple);
}

.pet-photos {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.pet-photos img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 14px;
  border: 2px solid rgba(252, 115, 81, 0.35);
  background: #fff;
}

.preview-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.preview-box {
  width: 140px;
  height: 140px;
  border: 2px dashed rgba(194, 67, 95, 0.45);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--purple);
  background: rgba(252, 115, 81, 0.08);
  font-size: 13px;
  text-align: center;
  padding: 8px;
}

.preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.small {
  font-size: 13px;
  color: rgba(39, 35, 68, 0.72);
}

hr {
  margin: 24px 0;
  border: none;
  border-top: 1px solid rgba(91, 54, 87, 0.16);
}

.brand-pill {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
}

a {
  color: var(--berry);
  font-weight: bold;
}

@media (max-width: 700px) {
  .row {
    grid-template-columns: 1fr;
  }

  header h1 {
    font-size: 34px;
  }

  main {
    padding: 16px;
  }

  .partner-link {
    position: static;
    display: inline-block;
    margin-bottom: 16px;
  }
}

.site-header {
  padding: 0;
  text-align: left;
}

.nav-bar {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo-link {
  color: white;
  text-decoration: none;
  font-size: 26px;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
}

.nav-links a:hover {
  color: white;
}

.nav-button {
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.partner-link-nav {
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(39, 35, 68, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 54px 24px 64px;
}

.hero-content {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  color: white;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.02;
  letter-spacing: -1.5px;
}

.hero-text {
  max-width: 620px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-button {
  display: inline-block;
  text-decoration: none;
  border-radius: 16px;
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--rose), var(--coral));
  color: white;
  font-weight: bold;
  box-shadow: 0 10px 24px rgba(39, 35, 68, 0.22);
}

.secondary-hero {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.intro-card {
  margin-top: -28px;
}

.intro-text {
  max-width: 640px;
  color: rgba(39, 35, 68, 0.72);
  line-height: 1.5;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.feature-card {
  border: 1px solid rgba(91, 54, 87, 0.14);
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(180deg, #fff, #fff8f4);
}

.feature-card h3 {
  margin: 0 0 8px;
  color: var(--berry);
}

.feature-card p {
  margin: 0;
  color: rgba(39, 35, 68, 0.74);
  line-height: 1.45;
}

.auth-card {
  scroll-margin-top: 20px;
}

.auth-header {
  margin-bottom: 18px;
}

.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.auth-panel {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(91, 54, 87, 0.14);
  background: #fffdfc;
}

.auth-panel h3 {
  margin-top: 0;
  color: var(--berry);
}

@media (max-width: 800px) {
  .nav-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    gap: 10px;
  }

  .hero {
    padding-top: 36px;
  }

  .feature-grid,
  .auth-grid {
    grid-template-columns: 1fr;
  }
}

.partner-hero-header {
  background: linear-gradient(135deg, var(--dark), var(--purple), #3f4d72);
}

.login-panel {
  display: flex;
  flex-direction: column;
}

.partner-note {
  margin-top: 24px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(91, 54, 87, 0.08);
  border: 1px solid rgba(91, 54, 87, 0.14);
}

.partner-note h4 {
  margin: 0 0 6px;
  color: var(--purple);
}

.partner-note p {
  margin: 0 0 10px;
  color: rgba(39, 35, 68, 0.74);
  line-height: 1.45;
}

#adoptBreedIds {
  min-height: 150px;
}

.filter-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 14px;
  margin-top: 16px;
}

.card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 14px;
}

.button-link {
  display: inline-block;
  border-radius: 14px;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--rose), var(--coral));
  color: white;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(194, 67, 95, 0.24);
}

.button-link:hover {
  color: white;
  transform: translateY(-1px);
}

.secondary-link {
  background: linear-gradient(135deg, var(--dark), var(--purple));
}

.small-button {
  padding: 9px 12px;
  font-size: 13px;
}

.id-pill {
  display: inline-block;
  margin: 8px 0 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(252, 115, 81, 0.12);
  border: 1px solid rgba(252, 115, 81, 0.32);
  color: var(--purple);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 22px;
}

.detail-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}

.detail-photo-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
  border: 2px solid rgba(252, 115, 81, 0.35);
  background: #fff;
}

.partner-contact-card {
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(91, 54, 87, 0.14);
  background: #fff8f4;
}

.partner-contact-card h3 {
  margin-top: 0;
  color: var(--berry);
}

.lookup-card {
  max-width: 720px;
}

.lookup-result-card {
  max-width: 720px;
}

.compact-header .hero,
.compact-hero {
  padding-top: 34px;
  padding-bottom: 42px;
}

@media (max-width: 800px) {
  .filter-row,
  .detail-layout {
    grid-template-columns: 1fr;
  }
}

body {
  background:
    radial-gradient(circle at top left, rgba(111, 143, 175, 0.20), transparent 32%),
    radial-gradient(circle at top right, rgba(216, 232, 221, 0.45), transparent 30%),
    var(--cream);
  color: var(--dark);
}

header {
  background: linear-gradient(135deg, var(--dark), var(--purple), var(--berry));
  border-bottom: 6px solid var(--sage);
}

button,
.hero-button,
.button-link {
  background: linear-gradient(135deg, var(--berry), var(--purple));
  box-shadow: 0 8px 18px rgba(38, 52, 71, 0.22);
}

button:hover,
.button-link:hover {
  box-shadow: 0 10px 22px rgba(38, 52, 71, 0.30);
}

button.secondary,
.secondary-link {
  background: linear-gradient(135deg, var(--dark), var(--purple));
  box-shadow: 0 8px 18px rgba(38, 52, 71, 0.24);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--berry);
  box-shadow: 0 0 0 4px rgba(111, 143, 175, 0.18);
}

.success {
  background: rgba(216, 232, 221, 0.55);
  color: var(--dark);
  border: 1px solid rgba(83, 101, 122, 0.24);
}

.error {
  background: rgba(217, 108, 95, 0.12);
  color: #8A3D35;
  border: 1px solid rgba(217, 108, 95, 0.35);
}

.message {
  background: rgba(216, 232, 221, 0.36);
  color: var(--dark);
  border: 1px solid rgba(83, 101, 122, 0.14);
}

.pet-card,
.feature-card {
  border: 1px solid rgba(83, 101, 122, 0.16);
  background: linear-gradient(180deg, #ffffff, #f7faf8);
  box-shadow: 0 8px 20px rgba(38, 52, 71, 0.08);
}

.pet-card h3,
.feature-card h3,
.auth-panel h3,
.partner-contact-card h3 {
  color: var(--berry);
}

.pet-card strong,
label,
.partner-note h4 {
  color: var(--purple);
}

.pet-photos img,
.detail-photo-grid img {
  border: 2px solid rgba(111, 143, 175, 0.32);
}

.preview-box {
  border: 2px dashed rgba(111, 143, 175, 0.42);
  color: var(--purple);
  background: rgba(216, 232, 221, 0.35);
}

.brand-pill,
.nav-button,
.partner-link,
.partner-link-nav {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.secondary-hero {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.partner-hero-header {
  background: linear-gradient(135deg, var(--dark), var(--purple), var(--berry));
}

.partner-note {
  background: rgba(216, 232, 221, 0.35);
  border: 1px solid rgba(83, 101, 122, 0.14);
}

.id-pill {
  background: rgba(216, 232, 221, 0.55);
  border: 1px solid rgba(83, 101, 122, 0.24);
  color: var(--purple);
}

.partner-contact-card {
  background: #f7faf8;
  border: 1px solid rgba(83, 101, 122, 0.14);
}

a {
  color: var(--berry);
}