:root {
  --petid-night: #0a1628;
  --petid-night-mid: #0f1f35;
  --petid-night-card: #132640;
  --petid-night-line: #1e3a5f;
  --petid-gold: #c9a227;
  --petid-gold-light: #e4c76b;
  --petid-gold-dark: #9a7b1a;
  --petid-cream: #f5f0e8;
  --petid-cream-dark: #e8e2d6;
  --petid-muted: #8fa3bf;
  --petid-white: #ffffff;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--petid-night);
  min-height: 100vh;
}

body.theme-dark {
  color: var(--petid-white);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(201, 162, 39, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(30, 58, 95, 0.5), transparent 50%),
    linear-gradient(180deg, var(--petid-night) 0%, #060d18 100%);
}

body.theme-app {
  background: linear-gradient(180deg, var(--petid-cream) 0%, #ebe6dc 100%);
}

.font-display {
  font-family: "Syne", "Outfit", system-ui, sans-serif;
}

/* Logo paw replaces dot on "i" visually via emoji — hide emoji on small inline, use gold dot */
.petid-paw { display: none; }
.petid-logo .text-gold { color: var(--petid-gold); }

.petid-tagline {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--petid-gold);
}

.petid-promise {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.petid-promise span { color: var(--petid-gold); }

/* Cards */
.petid-shell {
  background: var(--petid-night-card);
  border: 1px solid rgba(201, 162, 39, 0.35);
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.08), 0 16px 48px rgba(0, 0, 0, 0.25);
  color: var(--petid-white);
}

.petid-shell-light {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(201, 162, 39, 0.28);
  box-shadow: 0 4px 24px rgba(10, 22, 40, 0.08);
  color: var(--petid-night);
}

.theme-app .petid-shell-light {
  background: #fff;
}

.theme-app .petid-shell {
  background: #fff;
  border: 1px solid rgba(201, 162, 39, 0.22);
  box-shadow: 0 1px 2px rgba(10, 22, 40, 0.04), 0 8px 32px rgba(10, 22, 40, 0.06);
  color: var(--petid-night);
}

.petid-card {
  background: #fff;
  border: 1px solid rgba(201, 162, 39, 0.18);
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.petid-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(201, 162, 39, 0.12);
  background: linear-gradient(180deg, rgba(201, 162, 39, 0.06) 0%, transparent 100%);
}

.petid-card-header h2 {
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--petid-night);
  letter-spacing: -0.01em;
}

.petid-card-body { padding: 1.5rem; }

/* Form fields */
.petid-field { display: flex; flex-direction: column; gap: 0.4rem; }

.petid-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--petid-muted);
}

.petid-hint {
  font-size: 0.75rem;
  color: var(--petid-muted);
  margin-top: 0.15rem;
}

.petid-input {
  width: 100%;
  border-radius: 0.625rem;
  border: 1px solid #d4dce8;
  background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
  padding: 0.72rem 0.95rem;
  font-size: 0.9rem;
  font-weight: 500;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  color: var(--petid-night);
  box-shadow: inset 0 1px 2px rgba(10, 22, 40, 0.04);
}
.petid-input::placeholder { color: #a8b4c4; font-weight: 400; }
.petid-input:hover { border-color: #b8c4d4; }
.petid-input:focus {
  border-color: var(--petid-gold);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.14), inset 0 1px 2px rgba(10, 22, 40, 0.03);
}

.petid-input-icon {
  position: relative;
}
.petid-input-icon .petid-input { padding-left: 2.5rem; }
.petid-input-icon::before {
  content: attr(data-icon);
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  opacity: 0.45;
  pointer-events: none;
}

.petid-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238fa3bf' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.25rem;
  cursor: pointer;
}

.petid-card-section {
  border-top: 1px solid rgba(201, 162, 39, 0.12);
  background: #fff;
}

.petid-page-content {
  background: #fff;
}

.petid-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.5rem;
}

/* Stat cards */
.petid-stat {
  position: relative;
  background: #fff;
  border: 1px solid rgba(201, 162, 39, 0.16);
  border-radius: 1rem;
  padding: 1.15rem 1.25rem;
  box-shadow: 0 1px 2px rgba(10, 22, 40, 0.04);
  overflow: hidden;
}
.petid-stat::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--petid-gold-dark), var(--petid-gold-light));
  opacity: 0.85;
}
.petid-stat-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--petid-muted);
}
.petid-stat-value {
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--petid-night);
  margin-top: 0.35rem;
}
.petid-stat-sub {
  font-size: 0.75rem;
  color: var(--petid-muted);
  margin-top: 0.25rem;
}

/* Unified dashboard panel */
.petid-panel {
  margin-bottom: 0;
  min-height: auto;
}

.petid-metrics-bar {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(201, 162, 39, 0.12);
  background: #fff;
}

.petid-metric {
  flex: 1 1 110px;
  padding: 1rem 1.25rem;
  border-right: 1px solid rgba(201, 162, 39, 0.1);
  border-bottom: 1px solid rgba(201, 162, 39, 0.08);
}
.petid-metric:last-child { border-right: none; }
@media (min-width: 768px) {
  .petid-metric { border-bottom: none; }
}

.petid-metric-value {
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1;
  color: var(--petid-night);
}
.petid-metric-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--petid-muted);
  margin-top: 0.35rem;
}

.petid-dash-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: #fff;
  flex: 1;
}
@media (min-width: 1024px) {
  .petid-dash-grid { grid-template-columns: 1fr 280px; }
}

.petid-dash-main {
  padding: 0;
  background: #fff;
  border-bottom: 1px solid rgba(201, 162, 39, 0.1);
}
@media (min-width: 1024px) {
  .petid-dash-main {
    border-bottom: none;
    border-right: 1px solid rgba(201, 162, 39, 0.1);
  }
}

.petid-dash-aside {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: #fff;
}

.petid-widget {
  border: 1px solid rgba(201, 162, 39, 0.14);
  border-radius: 0;
  padding: 0.9rem 1rem;
  background: #fff;
}
.petid-widget-title {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--petid-muted);
  margin-bottom: 0.65rem;
}

.petid-alert {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
}
.petid-alert-success {
  background: #edf7f0;
  color: #1a6b42;
  border: 1px solid #c6e8d0;
}
.petid-alert-icon {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: #c6e8d0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.petid-quick-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.petid-quick-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.65rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--petid-night);
  border: 1px solid rgba(10, 22, 40, 0.08);
  background: #fafbfc;
  transition: border-color 0.15s, background 0.15s;
}
.petid-quick-link:hover {
  border-color: var(--petid-gold);
  background: rgba(201, 162, 39, 0.06);
}
.petid-quick-link span { color: var(--petid-muted); font-size: 0.7rem; }

.petid-section-title {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--petid-muted);
  margin-bottom: 0;
}

.petid-panel-body {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .petid-panel-body { grid-template-columns: 280px 1fr; }
}

.petid-panel-side {
  padding: 1.35rem 1.5rem;
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.07) 0%, rgba(201, 162, 39, 0.02) 100%);
  border-bottom: 1px solid rgba(201, 162, 39, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (min-width: 1024px) {
  .petid-panel-side {
    border-bottom: none;
    border-right: 1px solid rgba(201, 162, 39, 0.1);
  }
}
.petid-panel-side .petid-metric-value { font-size: 2.75rem; }
.petid-panel-side .petid-metric-label { font-size: 0.7rem; margin-top: 0.5rem; }

.petid-panel-main { padding: 1.35rem 1.5rem; }

.petid-panel-split {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 1024px) {
  .petid-panel-split { grid-template-columns: 1fr 1fr; }
}
.petid-panel-col {
  padding: 0 1.5rem 1.35rem;
}
@media (min-width: 1024px) {
  .petid-panel-col {
    padding: 0 1.5rem 1.5rem;
  }
  .petid-panel-col:first-child {
    border-right: 1px solid rgba(201, 162, 39, 0.1);
    padding-top: 0;
  }
}
.petid-panel-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.1rem 1.5rem 0.85rem;
  margin-bottom: 0;
  border-top: 1px solid rgba(201, 162, 39, 0.1);
}
@media (min-width: 1024px) {
  .petid-panel-col:first-child .petid-panel-col-header { border-top: none; }
}
.petid-panel-col-header h3 {
  font-family: "Outfit", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--petid-night);
}

.petid-inline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(201, 162, 39, 0.1);
}

.petid-lost-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(10, 22, 40, 0.06);
  font-size: 0.8rem;
}
.petid-lost-item:last-child { border-bottom: none; }

/* Status bars (inventory) */
.petid-status-row {
  display: grid;
  grid-template-columns: 5.5rem 1fr 2.5rem;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(10, 22, 40, 0.06);
}
.petid-status-row:last-child { border-bottom: none; }
.petid-status-name {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--petid-night);
}
.petid-status-bar {
  height: 8px;
  border-radius: 999px;
  background: #eef1f5;
  overflow: hidden;
}
.petid-status-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--petid-gold-dark), var(--petid-gold-light));
  transition: width 0.4s ease;
}
.petid-status-count {
  font-family: "Outfit", sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  text-align: right;
  color: var(--petid-night);
}

/* Tables */
.petid-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.petid-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.875rem;
}
.petid-table thead th {
  text-align: left;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--petid-muted);
  padding: 0.75rem 1rem;
  background: rgba(201, 162, 39, 0.05);
  border-bottom: 1px solid rgba(201, 162, 39, 0.12);
}
.petid-table tbody td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(10, 22, 40, 0.06);
  vertical-align: middle;
}
.petid-table tbody tr:hover td { background: rgba(201, 162, 39, 0.03); }
.petid-table tbody tr:last-child td { border-bottom: none; }

.petid-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 0.375rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.petid-badge-available { background: #e8f5ee; color: #1a6b42; }
.petid-badge-assigned { background: #eef2ff; color: #3b4f9a; }
.petid-badge-active { background: rgba(201,162,39,.15); color: var(--petid-gold-dark); }
.petid-badge-reserved { background: #f3eef8; color: #6b4f8a; }
.petid-badge-blocked { background: #fdecea; color: #9a3412; }
.petid-badge-lost { background: #fff3e8; color: #c45c26; }

/* List rows */
.petid-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(10, 22, 40, 0.06);
}
.petid-list-row:last-child { border-bottom: none; }
.petid-list-meta { font-size: 0.75rem; color: var(--petid-muted); margin-top: 0.15rem; }

.petid-empty {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--petid-muted);
}
.petid-empty-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  border-radius: 999px;
  background: rgba(201, 162, 39, 0.1);
  border: 1px solid rgba(201, 162, 39, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.petid-btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.85rem;
  border-radius: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.15s;
}
.petid-btn-sm-gold {
  background: linear-gradient(135deg, var(--petid-gold-light), var(--petid-gold));
  color: var(--petid-night);
}
.petid-btn-sm-ghost {
  border: 1px solid #d4dce8;
  color: var(--petid-muted);
  background: #fafbfc;
}
.petid-btn-sm-ghost:hover { border-color: var(--petid-gold); color: var(--petid-gold-dark); }
.petid-btn-sm-danger {
  background: #9a3412;
  color: #fff;
  border: 1px solid #9a3412;
}
.petid-btn-sm-danger:hover { background: #7c2d12; border-color: #7c2d12; color: #fff; }

.petid-page-header {
  margin-bottom: 1.75rem;
}
.petid-page-header .petid-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--petid-muted);
}
.petid-page-header h1 {
  font-family: "Outfit", sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--petid-night);
  margin-top: 0.25rem;
  letter-spacing: -0.02em;
}

.petid-card-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 1.5rem 1.25rem;
  border-bottom: 1px solid rgba(201, 162, 39, 0.12);
  background: #fff;
}
.petid-card-page-header .petid-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--petid-muted);
}
.petid-card-page-header h1 {
  font-family: "Outfit", sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--petid-night);
  margin-top: 0.2rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}


/* Sidebar */
.petid-sidebar {
  background: linear-gradient(180deg, var(--petid-night) 0%, var(--petid-night-mid) 100%);
  border-right: 1px solid rgba(201, 162, 39, 0.25);
  color: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: sticky;
  top: 0;
}

.petid-sidebar-head {
  position: relative;
  padding: 1.25rem;
  border-bottom: 1px solid rgba(201, 162, 39, 0.2);
  flex-shrink: 0;
}

.petid-panel-nav-close {
  display: none;
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 0.5rem;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.petid-sidebar-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Admin shell — one clean scroll area, no ugly scrollbar track */
.petid-admin-body {
  margin: 0;
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
}

.petid-admin-shell {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: grid;
  grid-template-columns: 260px 1fr;
}

.petid-admin-main {
  height: 100%;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.petid-admin-content {
  max-width: 1400px;
  width: 100%;
  min-width: 0;
}

/* Mobile top bar + drawer (admin / owner / reseller) */
.petid-panel-topbar {
  display: none;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  background: var(--petid-night);
  border-bottom: 1px solid rgba(201, 162, 39, 0.28);
  color: #fff;
  flex-shrink: 0;
  z-index: 40;
}

.petid-panel-topbar-brand {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  min-width: 0;
}

.petid-panel-topbar-logo {
  font-family: "Syne", "Outfit", system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  line-height: 1;
}
.petid-panel-topbar-logo span { color: var(--petid-gold-light); }

.petid-panel-topbar-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(228, 199, 107, 0.7);
}

.petid-panel-menu-btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.55rem;
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 0.55rem;
  background: rgba(255,255,255,0.06);
  cursor: pointer;
  flex-shrink: 0;
}
.petid-panel-menu-btn span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.petid-admin-shell.is-nav-open .petid-panel-menu-btn span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.petid-admin-shell.is-nav-open .petid-panel-menu-btn span:nth-child(2) { opacity: 0; }
.petid-admin-shell.is-nav-open .petid-panel-menu-btn span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.petid-panel-overlay {
  display: none;
  position: fixed;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(10, 22, 40, 0.5);
  z-index: 50;
  cursor: pointer;
}

@media (max-width: 1023px) {
  .petid-admin-shell {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
  }

  .petid-panel-topbar { display: flex; }

  .petid-panel-overlay {
    display: block;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
  }
  .petid-admin-shell.is-nav-open .petid-panel-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .petid-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: min(288px, 88vw);
    height: 100vh;
    height: 100dvh;
    z-index: 60;
    transform: translateX(-105%);
    transition: transform 0.25s ease;
    box-shadow: 8px 0 28px rgba(0,0,0,0.25);
  }
  .petid-admin-shell.is-nav-open .petid-sidebar {
    transform: translateX(0);
  }

  .petid-panel-nav-close { display: inline-flex; align-items: center; justify-content: center; }

  .petid-admin-main {
    flex: 1;
    min-height: 0;
    height: auto;
  }

  body.petid-panel-nav-open {
    overflow: hidden;
  }

  .petid-card-page-header {
    flex-wrap: wrap;
    padding: 1rem 1rem 0.9rem;
    gap: 0.65rem;
  }
  .petid-card-page-header h1 {
    font-size: 1.35rem;
  }

  .petid-section-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 0.75rem;
    scrollbar-width: none;
  }
  .petid-section-tabs::-webkit-scrollbar { display: none; }
  .petid-section-tab {
    flex: 0 0 auto;
    padding: 0.7rem 0.75rem;
    font-size: 0.72rem;
  }

  .petid-tab-panel { padding-left: 0; padding-right: 0; }
  .petid-tab-panel.p-5 { padding: 1rem !important; }

  .petid-table {
    min-width: 560px;
  }
  .petid-table thead th,
  .petid-table tbody td {
    padding: 0.7rem 0.75rem;
  }

  .petid-table-toolbar {
    padding: 0.65rem 0.85rem;
  }
  .petid-toolbar-field--search {
    flex: 1 1 100%;
    min-width: 0;
    max-width: none;
  }
  .petid-table-meta {
    margin-left: 0;
    width: 100%;
  }

  .petid-pagination {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  .petid-metrics-bar,
  .petid-metrics-inline {
    gap: 0;
  }

  .petid-dash-aside {
    padding: 0.85rem;
  }

  .petid-qr-card {
    width: 100%;
    max-width: 12rem;
    margin-inline: auto;
  }

  .petid-modal-dialog {
    width: calc(100% - 1.25rem);
    max-height: calc(100dvh - 1.5rem);
    margin: 0.75rem auto;
  }

  .petid-btn-gold,
  .petid-btn-outline {
    min-height: 2.75rem;
  }

  .petid-field,
  .petid-toolbar-field {
    min-width: 0;
  }

  .petid-input,
  .petid-select,
  textarea.petid-input {
    font-size: 16px; /* prevent iOS zoom */
  }
}

@media (min-width: 1024px) {
  .petid-panel-topbar,
  .petid-panel-overlay,
  .petid-panel-nav-close {
    display: none !important;
  }
}

.petid-scroll-hidden,
.petid-admin-main,
.petid-sidebar-nav,
.petid-table-wrap,
.petid-bulk-scroll {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.petid-scroll-hidden::-webkit-scrollbar,
.petid-admin-main::-webkit-scrollbar,
.petid-sidebar-nav::-webkit-scrollbar,
.petid-table-wrap::-webkit-scrollbar,
.petid-bulk-scroll::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.petid-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border-radius: 0.75rem;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
  transition: background 0.15s, color 0.15s;
}
.petid-nav-link:hover {
  background: rgba(201, 162, 39, 0.12);
  color: #fff;
}
.petid-nav-link.active {
  background: rgba(201, 162, 39, 0.2);
  color: var(--petid-gold-light);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.35);
}

/* Buttons */
.petid-btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--petid-gold-light) 0%, var(--petid-gold) 50%, var(--petid-gold-dark) 100%);
  color: var(--petid-night);
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 20px rgba(201, 162, 39, 0.35);
}
.petid-btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(201, 162, 39, 0.45);
}

.petid-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid rgba(201, 162, 39, 0.55);
  color: var(--petid-gold-light);
  background: rgba(201, 162, 39, 0.06);
  transition: background 0.15s, border-color 0.15s;
}
.petid-btn-outline:hover {
  background: rgba(201, 162, 39, 0.14);
  border-color: var(--petid-gold);
}

.petid-input {
  width: 100%;
  border-radius: 0.625rem;
  border: 1px solid #d4dce8;
  background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
  padding: 0.72rem 0.95rem;
  font-size: 0.9rem;
  font-weight: 500;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  color: var(--petid-night);
  box-shadow: inset 0 1px 2px rgba(10, 22, 40, 0.04);
}
.petid-input::placeholder { color: #a8b4c4; font-weight: 400; }
.petid-input:hover { border-color: #b8c4d4; }
.petid-input:focus {
  border-color: var(--petid-gold);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.14), inset 0 1px 2px rgba(10, 22, 40, 0.03);
}

.petid-divider-gold {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.6), transparent);
}

.fade-up {
  animation: fadeUp 0.55s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Auth — split brand + form */
.petid-auth-body {
  margin: 0;
  min-height: 100vh;
  background: var(--petid-night);
}
.petid-auth {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 1fr;
}
.petid-auth-brand {
  position: relative;
  display: none;
  overflow: hidden;
  min-height: 100vh;
}
.petid-auth-brand-bg {
  position: absolute;
  inset: 0;
}
.petid-auth-brand-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transform: scale(1.06);
  animation: authKen 18s ease-in-out infinite alternate;
}
@keyframes authKen {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}
.petid-auth-brand-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 13, 24, 0.35) 0%, rgba(6, 13, 24, 0.55) 42%, rgba(6, 13, 24, 0.92) 100%),
    linear-gradient(90deg, rgba(6, 13, 24, 0.55) 0%, transparent 55%),
    radial-gradient(ellipse at 28% 18%, rgba(201, 162, 39, 0.2), transparent 48%);
}
.petid-auth-brand-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 2.75rem 3.25rem 3.25rem;
  max-width: 36rem;
}
.petid-auth-home {
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0;
  animation: authBrandIn 0.7s ease both;
}
.petid-auth-brand-copy {
  animation: authBrandIn 0.7s ease 0.12s both;
}
.petid-auth-eyebrow {
  margin-bottom: 0.75rem;
}
.petid-auth-lead {
  font-family: "Syne", system-ui, sans-serif;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: #fff;
  margin: 0 0 1.25rem;
}
.petid-auth-promise {
  margin: 0;
}
@keyframes authBrandIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.petid-auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem 2.5rem;
  background:
    radial-gradient(ellipse 70% 45% at 80% 0%, rgba(201, 162, 39, 0.1), transparent 55%),
    linear-gradient(180deg, #0c1a2e 0%, #08111f 100%);
  overflow-y: auto;
  max-height: 100vh;
}
.petid-auth-panel-inner {
  width: 100%;
  max-width: 26rem;
}
.petid-auth-mobile-logo {
  display: inline-block;
  text-decoration: none;
  margin-bottom: 1.75rem;
}
.petid-auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.petid-auth-form-head h1 {
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  letter-spacing: -0.02em;
}
.petid-auth-form-head p {
  margin: 0.4rem 0 0.35rem;
  font-size: 0.9rem;
  color: var(--petid-muted);
  line-height: 1.45;
}
.petid-auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.petid-auth-field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(228, 199, 107, 0.92);
  letter-spacing: 0.02em;
}
.petid-auth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.petid-auth-error {
  min-height: 0;
  margin: 0;
  font-size: 0.75rem;
  color: #e4c76b;
}
.petid-auth-error:empty { display: none; }
.petid-auth-banner {
  margin: 0;
  padding: 0.65rem 0.85rem;
  border-radius: 0.55rem;
  font-size: 0.85rem;
  background: rgba(201, 162, 39, 0.12);
  border: 1px solid rgba(201, 162, 39, 0.35);
  color: var(--petid-gold-light);
}
.petid-auth-submit {
  width: 100%;
  margin-top: 0.35rem;
  justify-content: center;
  min-height: 2.85rem;
}
.petid-auth-form .petid-input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(201, 162, 39, 0.28);
  color: #fff;
  box-shadow: none;
}
.petid-auth-form .petid-input::placeholder {
  color: rgba(143, 163, 191, 0.75);
}
.petid-auth-form .petid-input:hover {
  border-color: rgba(201, 162, 39, 0.45);
  background: rgba(255, 255, 255, 0.08);
}
.petid-auth-form .petid-input:focus {
  border-color: var(--petid-gold);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.18);
}
.petid-auth-switch {
  text-align: center;
  font-size: 0.9rem;
  color: var(--petid-muted);
  margin: 0.25rem 0 0;
}
.petid-auth-switch a {
  color: var(--petid-gold-light);
  font-weight: 700;
  text-decoration: none;
}
.petid-auth-switch a:hover { text-decoration: underline; }
.petid-auth-demo {
  margin-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.85rem;
  font-size: 0.75rem;
  color: rgba(143, 163, 191, 0.9);
}
.petid-auth-demo summary {
  cursor: pointer;
  color: rgba(228, 199, 107, 0.75);
  font-weight: 600;
  list-style: none;
}
.petid-auth-demo summary::-webkit-details-marker { display: none; }
.petid-auth-demo[open] summary { margin-bottom: 0.45rem; }
.petid-auth-demo p { margin: 0.2rem 0; line-height: 1.4; }
.petid-auth-demo code {
  font-size: 0.72rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.1rem 0.35rem;
  border-radius: 0.25rem;
}

@media (min-width: 900px) {
  .petid-auth {
    grid-template-columns: minmax(0, 1.05fr) minmax(22rem, 0.95fr);
  }
  .petid-auth-brand { display: block; }
  .petid-auth-mobile-logo { display: none; }
  .petid-auth-panel {
    padding: 3rem 3.5rem;
    border-left: 1px solid rgba(201, 162, 39, 0.18);
  }
  .petid-auth-panel-inner { max-width: 24.5rem; }
}

@media (max-width: 899px) {
  .petid-auth-row { grid-template-columns: 1fr; }
  .petid-auth-panel {
    min-height: 100vh;
    align-items: flex-start;
    padding-top: 2.5rem;
  }
}

.pulse-lost {
  animation: pulseLost 1.8s ease-in-out infinite;
}
@keyframes pulseLost {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.45); }
  50% { box-shadow: 0 0 0 12px rgba(201, 162, 39, 0); }
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  max-width: 22rem;
  border-radius: 0.75rem;
  padding: 0.9rem 1rem;
  background: var(--petid-night-card);
  border: 1px solid rgba(201, 162, 39, 0.4);
  color: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  animation: fadeUp 0.35s ease both;
}

.stat-gold {
  color: var(--petid-gold);
}

.badge-gold {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(201, 162, 39, 0.15);
  border: 1px solid rgba(201, 162, 39, 0.45);
  color: var(--petid-gold-light);
}

.petid-table-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.5rem 0.65rem;
  padding: 0.65rem 1.25rem;
  border-bottom: 1px solid rgba(201, 162, 39, 0.12);
  background: #fff;
}

.petid-table-toolbar--server {
  margin-bottom: 0;
}

.petid-toolbar-field {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 0 0 auto;
}

.petid-toolbar-field--search {
  flex: 1 1 11rem;
  min-width: 11rem;
  max-width: 16rem;
}

.petid-toolbar-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--petid-muted);
  line-height: 1;
}

.petid-table-toolbar .petid-input,
.petid-table-toolbar .petid-select {
  width: 100%;
  min-height: 2.1rem;
  padding: 0.45rem 0.7rem;
  font-size: 0.82rem;
  border-radius: 0;
  box-shadow: none;
  background: #fff;
}

.petid-table-filter {
  width: 9.5rem;
  min-width: 9.5rem;
}

.petid-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
  padding-bottom: 1px;
}

.petid-table-search {
  min-width: 0;
}

.petid-table-meta {
  margin-left: auto;
  white-space: nowrap;
  font-size: 0.78rem;
}

.petid-section-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid rgba(201, 162, 39, 0.2);
  background: #faf8f4;
  padding: 0 1.25rem;
}

.petid-section-tab {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--petid-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}

.petid-section-tab:hover {
  color: var(--petid-night);
}

.petid-section-tab.active {
  color: var(--petid-night);
  border-bottom-color: var(--petid-gold);
  background: #fff;
}

.petid-tab-panel {
  background: #fff;
}

.petid-sidebar-group {
  padding: 0.35rem 0.75rem 0.15rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(228, 199, 107, 0.55);
  margin-top: 0.5rem;
}

.petid-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid rgba(201, 162, 39, 0.12);
}

.petid-pagination-meta {
  font-size: 0.8rem;
  color: var(--petid-muted);
}

.petid-pagination-pages {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.petid-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.55rem;
  border: 1px solid rgba(201, 162, 39, 0.22);
  border-radius: 0.45rem;
  background: #fff;
  color: var(--petid-night, #1a1a1a);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

a.petid-page-btn:hover {
  border-color: rgba(201, 162, 39, 0.55);
  background: rgba(201, 162, 39, 0.08);
  color: var(--petid-night, #1a1a1a);
}

.petid-page-btn.is-current {
  background: var(--petid-gold, #c9a227);
  border-color: var(--petid-gold, #c9a227);
  color: #1a1a1a;
  cursor: default;
}

.petid-page-btn.is-disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.petid-page-btn.petid-page-end {
  min-width: auto;
  padding: 0 0.7rem;
}

.petid-page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  color: var(--petid-muted);
  font-size: 0.85rem;
  user-select: none;
}

.petid-reseller-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 640px) {
  .petid-reseller-type-grid { grid-template-columns: 1fr; }
}

.petid-reseller-type-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(201, 162, 39, 0.22);
  border-radius: 0.75rem;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.petid-reseller-type-card:has(input:checked) {
  border-color: rgba(201, 162, 39, 0.65);
  background: rgba(201, 162, 39, 0.07);
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.25);
}

.petid-reseller-type-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.petid-reseller-type-title {
  font-family: var(--font-display, inherit);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--petid-night, #1a1a1a);
}

.petid-reseller-type-desc {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--petid-muted);
}

.petid-bulk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 900px) {
  .petid-bulk-grid { grid-template-columns: 1fr; }
}

.petid-bulk-panel {
  border: 1px solid rgba(201, 162, 39, 0.2);
  background: #fff;
}

.petid-bulk-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid rgba(201, 162, 39, 0.12);
  background: #faf8f4;
}

.petid-bulk-scroll {
  max-height: 320px;
  overflow: auto;
}

.petid-bulk-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  border-bottom: 1px solid rgba(10, 22, 40, 0.05);
  font-size: 0.85rem;
}

.petid-bulk-row:hover { background: rgba(201, 162, 39, 0.06); }

.petid-metrics-inline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(201, 162, 39, 0.12);
}

.petid-metric-chip {
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(201, 162, 39, 0.2);
  background: #faf8f4;
}

.petid-metric-chip strong {
  display: block;
  font-size: 1.1rem;
  color: var(--petid-night);
}

.petid-metric-chip span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--petid-muted);
}

th[data-sortable]::after {
  content: " ⇅";
  opacity: 0.35;
  font-size: 0.7em;
}

/* Public marketing site */
.petid-public-body { min-height: 100vh; display: flex; flex-direction: column; }
.petid-public-body > main { flex: 1; }

.petid-skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--petid-gold);
  color: var(--petid-night);
  padding: 0.5rem 1rem;
  z-index: 100;
}
.petid-skip-link:focus { left: 1rem; top: 1rem; }

.petid-public-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(201, 162, 39, 0.22);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(10, 22, 40, 0.04);
}
.petid-public-nav-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.petid-public-logo { flex-shrink: 0; min-width: 0; }
.petid-public-logo .petid-logo { color: var(--petid-night) !important; white-space: nowrap; }
.petid-public-links {
  flex: 1;
  display: none;
  gap: 1rem;
  justify-content: center;
  font-size: 0.82rem;
  flex-wrap: wrap;
}
.petid-public-links a {
  color: rgba(10, 22, 40, 0.72);
  transition: color 0.15s;
  white-space: nowrap;
  font-weight: 600;
}
.petid-public-links a:hover { color: var(--petid-gold-dark); }
.petid-public-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-left: auto;
  flex-shrink: 0;
}
.petid-public-actions .petid-nav-text,
.petid-public-actions .petid-btn-gold {
  white-space: nowrap;
  flex-shrink: 0;
}

.petid-nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(201,162,39,.4);
  background: #fff;
  padding: 0.55rem;
  flex-shrink: 0;
}
.petid-nav-toggle span {
  display: block;
  height: 2px;
  background: var(--petid-night);
  transition: transform .2s, opacity .2s;
}
.petid-public-nav.is-open .petid-nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.petid-public-nav.is-open .petid-nav-toggle span:nth-child(2) { opacity: 0; }
.petid-public-nav.is-open .petid-nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.petid-mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.75rem 1.25rem 1.25rem;
  border-top: 1px solid rgba(201,162,39,.15);
  background: #fff;
}
.petid-mobile-nav a {
  color: var(--petid-night);
  padding: 0.7rem 0.25rem;
  border-bottom: 1px solid rgba(10,22,40,.06);
  font-size: 0.95rem;
  font-weight: 600;
}

/* Mobile header: logo | compact CTA | menu (Sign in lives in drawer) */
@media (max-width: 1023px) {
  .petid-public-nav-inner {
    padding: 0.65rem 0.85rem;
    gap: 0.5rem;
  }
  .petid-public-logo .petid-logo {
    font-size: 1.65rem !important;
    line-height: 1;
  }
  .petid-public-actions {
    gap: 0.4rem;
  }
  .petid-public-actions .petid-nav-text {
    display: none;
  }
  .petid-public-actions .petid-btn-gold {
    padding: 0.45rem 0.7rem !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.06em;
    line-height: 1.2;
    min-height: 0;
    box-shadow: 0 2px 10px rgba(201, 162, 39, 0.28);
  }
  .petid-nav-toggle {
    width: 2.25rem;
    height: 2.25rem;
    padding: 0.45rem;
  }
}

@media (max-width: 380px) {
  .petid-public-nav-inner {
    padding: 0.55rem 0.7rem;
  }
  .petid-public-logo .petid-logo {
    font-size: 1.45rem !important;
  }
  .petid-public-actions .petid-btn-gold {
    padding: 0.4rem 0.55rem !important;
    font-size: 0.65rem !important;
  }
}

@media (min-width: 1024px) {
  .petid-public-links { display: flex; }
  .petid-nav-toggle { display: none; }
  .petid-mobile-nav { display: none !important; }
}

.petid-page-hero {
  border-bottom: 1px solid rgba(201, 162, 39, 0.18);
  background:
    radial-gradient(ellipse 80% 80% at 100% 0%, rgba(201, 162, 39, 0.12), transparent 55%),
    linear-gradient(180deg, #fff 0%, var(--petid-cream) 100%);
}
.petid-page-hero-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 2rem;
}
.petid-page-title {
  font-family: Outfit, system-ui, sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--petid-night);
}
.petid-page-subtitle {
  margin-top: 0.75rem;
  max-width: 36rem;
  color: #5c6b7e;
  line-height: 1.6;
}

.petid-public-section { padding: 3.5rem 0 4.5rem; }
.petid-public-section-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.petid-section-alt {
  background: #fff;
  border-top: 1px solid rgba(201,162,39,.12);
  border-bottom: 1px solid rgba(201,162,39,.12);
}
.petid-section-head { text-align: center; margin-bottom: 2.5rem; }
.petid-section-title {
  font-family: Outfit, system-ui, sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  font-weight: 700;
  color: var(--petid-night);
  margin-top: 0.5rem;
}
.petid-section-sub {
  margin: 0.85rem auto 0;
  max-width: 40rem;
  color: #5c6b7e;
  line-height: 1.65;
  font-size: 0.95rem;
}

.petid-mkt-hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.petid-mkt-hero-bg { position: absolute; inset: 0; }
.petid-mkt-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.petid-mkt-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,22,40,.25) 0%, rgba(10,22,40,.45) 40%, rgba(10,22,40,.82) 100%),
    radial-gradient(ellipse at 20% 20%, rgba(201,162,39,.2), transparent 45%);
}
.petid-mkt-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 80rem;
  width: 100%;
  margin: 0 auto;
  padding: 4rem 1.25rem 3.5rem;
}
.petid-mkt-hero .petid-logo { color: #fff !important; }
.petid-mkt-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--petid-gold-light);
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.petid-mkt-h1 {
  margin-top: 1rem;
  max-width: 18ch;
  font-family: Outfit, system-ui, sans-serif;
  font-size: clamp(1.85rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
}
.petid-mkt-lead {
  margin-top: 1rem;
  max-width: 36rem;
  color: rgba(255,255,255,.85);
  line-height: 1.7;
  font-size: 1.05rem;
}
.petid-mkt-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.petid-mkt-hero .petid-btn-outline {
  color: #fff;
  border-color: rgba(255,255,255,.45);
}
.petid-mkt-hero .petid-btn-outline:hover {
  border-color: var(--petid-gold);
  color: var(--petid-gold-light);
}

.petid-feature-grid,
.petid-product-grid,
.petid-pricing-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .petid-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .petid-product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .petid-feature-grid { grid-template-columns: repeat(3, 1fr); }
  .petid-product-grid { grid-template-columns: repeat(3, 1fr); }
  .petid-pricing-grid { grid-template-columns: repeat(3, 1fr); }
}

.petid-feature-card,
.petid-product-card,
.petid-pricing-card {
  border: 1px solid rgba(201,162,39,.22);
  background: #fff;
  padding: 1.35rem 1.25rem;
  border-radius: 1rem;
  box-shadow: 0 8px 28px rgba(10, 22, 40, 0.05);
  transition: border-color .2s, transform .2s;
}
.petid-feature-card:hover,
.petid-product-card:hover,
.petid-pricing-card:hover {
  border-color: rgba(201,162,39,.5);
  transform: translateY(-2px);
}
.petid-feature-card h3,
.petid-product-card h3,
.petid-pricing-card h3 {
  font-family: Outfit, system-ui, sans-serif;
  font-weight: 700;
  color: var(--petid-night);
  font-size: 1.05rem;
}
.petid-feature-card p,
.petid-product-card p {
  margin-top: 0.65rem;
  font-size: 0.875rem;
  color: #5c6b7e;
  line-height: 1.6;
}
.petid-product-badge {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--petid-night);
  background: var(--petid-gold);
  padding: 0.2rem 0.45rem;
  font-weight: 800;
  margin-bottom: 0.65rem;
}

.petid-split {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 900px) {
  .petid-split { grid-template-columns: 1.1fr 0.9fr; gap: 3rem; }
}
.petid-check-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  gap: 0.7rem;
}
.petid-check-list li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--petid-night);
  font-size: 0.95rem;
  line-height: 1.5;
}
.petid-check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--petid-gold-dark);
  font-weight: 700;
}
.petid-step-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(201,162,39,.45);
  color: var(--petid-gold-dark);
  background: rgba(201,162,39,.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border-radius: 999px;
}
.petid-cta-band {
  display: grid;
  gap: 1.5rem;
  border: 1px solid rgba(201,162,39,.28);
  background:
    radial-gradient(ellipse at 0% 0%, rgba(201,162,39,.14), transparent 50%),
    #fff;
  padding: 2rem 1.5rem;
  border-radius: 1.25rem;
  box-shadow: 0 12px 40px rgba(10, 22, 40, 0.06);
}
@media (min-width: 768px) {
  .petid-cta-band {
    grid-template-columns: 1.2fr auto;
    align-items: center;
    padding: 2.5rem;
  }
}

.petid-public-footer {
  border-top: 1px solid rgba(201, 162, 39, 0.2);
  background: var(--petid-night);
  margin-top: auto;
}
.petid-public-footer-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2.75rem 1.25rem;
  display: grid;
  gap: 2rem;
}
@media (min-width: 900px) {
  .petid-public-footer-inner { grid-template-columns: 1.1fr 2fr; }
}
.petid-public-footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .petid-public-footer-grid { grid-template-columns: repeat(3, 1fr); }
}
.petid-footer-heading {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--petid-gold);
  margin-bottom: 0.75rem;
  font-weight: 700;
}
.petid-public-footer-grid a {
  display: block;
  font-size: 0.875rem;
  color: var(--petid-muted);
  margin-bottom: 0.4rem;
}
.petid-public-footer-grid a:hover { color: #fff; }
.petid-newsletter-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.petid-newsletter-row .petid-input {
  flex: 1;
  min-width: 0;
  background: #fff;
  color: var(--petid-night);
  border-color: rgba(201,162,39,.35);
}
.petid-public-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 1.25rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--petid-muted);
}

.petid-public-body .petid-btn-outline {
  color: var(--petid-night);
  border-color: rgba(201,162,39,.45);
}
.petid-public-body .petid-btn-outline:hover {
  border-color: var(--petid-gold);
  color: var(--petid-gold-dark);
}
.petid-scan-camera { min-height: 220px; }

/* Reveal: content stays readable; motion is progressive enhancement */
[data-reveal] {
  opacity: 1;
  transform: none;
}
html.js-anim [data-reveal]:not(.is-visible) {
  opacity: 0;
  transform: translateY(16px);
}
html.js-anim [data-reveal] {
  transition: opacity .55s ease, transform .55s ease;
}
html.js-anim [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html.js-anim [data-reveal]:not(.is-visible),
  html.js-anim [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.petid-photo-gallery {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  margin-top: 1rem;
}
.petid-photo-gallery img {
  width: 4rem;
  height: 4rem;
  object-fit: cover;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
}
.petid-photo-gallery img.active {
  border-color: var(--petid-gold);
}

/* Blog CMS */
.petid-blog-cover-box {
  aspect-ratio: 4 / 3;
  border-radius: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #f4f4f5;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.petid-blog-cover-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.petid-blog-cover-empty {
  font-size: 0.75rem;
  color: var(--petid-muted, #71717a);
  padding: 1rem;
  text-align: center;
}
.petid-blog-thumb {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: cover;
  border-radius: 0.4rem;
  display: block;
}
.petid-blog-thumb--empty {
  background: #e4e4e7;
}
.petid-blog-card-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0.75rem;
  margin-bottom: 0.75rem;
  display: block;
}
.petid-blog-cover-hero {
  width: 100%;
  max-height: 22rem;
  object-fit: cover;
  border-radius: 0.85rem;
  display: block;
}
.petid-blog-body p { margin: 0 0 0.85rem; }
.petid-blog-body h2,
.petid-blog-body h3 { color: #fff; margin: 1.25rem 0 0.5rem; font-weight: 600; }
.petid-blog-body ul,
.petid-blog-body ol { margin: 0 0 0.85rem; padding-left: 1.25rem; }
.petid-blog-body a { color: var(--petid-gold); text-decoration: underline; }
.petid-blog-body img {
  max-width: 100%;
  height: auto;
  border-radius: 0.65rem;
  margin: 0.75rem 0;
}
.petid-admin-body .tox-tinymce {
  border-radius: 0.65rem !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
}

@media (max-width: 640px) {
  .petid-mkt-hero { min-height: 88vh; }
  .petid-public-section { padding: 2.75rem 0 3.25rem; }
  .petid-mkt-cta .petid-btn-gold,
  .petid-mkt-cta .petid-btn-outline { width: 100%; justify-content: center; }
}

/* Light auth panel (admin-like white + gold) */
.theme-app.petid-auth-body {
  background: var(--petid-cream);
}
.theme-app .petid-auth-panel {
  background:
    radial-gradient(ellipse 70% 45% at 80% 0%, rgba(201, 162, 39, 0.12), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, var(--petid-cream) 100%);
}
.theme-app .petid-auth-form-head h1 { color: var(--petid-night); }
.theme-app .petid-auth-form-head p { color: #5c6b7e; }
.theme-app .petid-auth-field label { color: var(--petid-gold-dark); }
.theme-app .petid-auth-form .petid-input {
  background: #fff;
  border: 1px solid rgba(201, 162, 39, 0.28);
  color: var(--petid-night);
}
.theme-app .petid-auth-form .petid-input::placeholder { color: #a8b4c4; }
.theme-app .petid-auth-form .petid-input:hover,
.theme-app .petid-auth-form .petid-input:focus {
  background: #fff;
  border-color: var(--petid-gold);
}
.theme-app .petid-auth-switch { color: #5c6b7e; }
.theme-app .petid-auth-switch a { color: var(--petid-gold-dark); }
.theme-app .petid-auth-demo {
  border-top-color: rgba(10, 22, 40, 0.08);
  color: #5c6b7e;
}
.theme-app .petid-auth-demo summary { color: var(--petid-gold-dark); }
.theme-app .petid-auth-demo code {
  color: var(--petid-night);
  background: rgba(201, 162, 39, 0.12);
}
.theme-app .petid-auth-banner {
  color: var(--petid-gold-dark);
}
.theme-app .petid-auth-error { color: var(--petid-gold-dark); }
.petid-auth-form-head h1 {
  font-family: "Syne", system-ui, sans-serif !important;
  letter-spacing: -0.03em !important;
}

/* Public blog on light theme */
.theme-app .petid-blog-body { color: rgba(10, 22, 40, 0.82); }
.theme-app .petid-blog-body h2,
.theme-app .petid-blog-body h3 { color: var(--petid-night); }
.theme-app .petid-shell.rounded-2xl .petid-tagline { color: var(--petid-gold-dark); }


/* Owner QR card */
.petid-qr-card {
  background: #fff;
  border: 1px solid rgba(201, 162, 39, 0.28);
  padding: 0.85rem;
  width: 11.5rem;
  text-align: center;
}
.petid-qr-card--muted {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 11.5rem;
  background: #faf8f5;
}
.petid-qr-img {
  width: 160px;
  height: 160px;
  display: block;
  margin: 0 auto;
  background: #fff;
}
.petid-qr-code {
  margin: 0.55rem 0 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--petid-night);
  letter-spacing: 0.02em;
}

/* —— Branded circular PetID QR tag —— */
.petid-brand-tag {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 220px;
}
.petid-brand-tag-disc {
  position: relative;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #f7f4ef 0%, #d9d3c8 42%, #a8a194 78%, #7d776c 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.55),
    inset 0 -8px 18px rgba(12,26,46,0.12),
    0 14px 28px rgba(12,26,46,0.14);
  overflow: hidden;
}
.petid-brand-tag-shine {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow: inset 0 0 0 1px rgba(12,26,46,0.08);
  pointer-events: none;
  z-index: 2;
}
.petid-brand-tag-arc {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.petid-brand-tag-arc text {
  font-family: "Syne", Arial Black, Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  fill: #0c1a2e;
}
.petid-brand-tag-qr-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 118px;
  height: 118px;
  margin: 0;
  padding: 6px;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 1px 6px rgba(12,26,46,0.08);
  z-index: 1;
}
.petid-brand-tag-qr {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0.4rem;
}
.petid-brand-tag-qr-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22%;
  height: 22%;
  transform: translate(-50%, -50%);
  border-radius: 0.28rem;
  overflow: hidden;
  box-shadow: 0 0 0 3px #fff;
  background: #fff;
  pointer-events: none;
}
.petid-brand-tag-qr-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.petid-brand-tag-name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12%;
  margin: 0;
  text-align: center;
  font-family: "Syne", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #0c1a2e;
  z-index: 1;
}
.petid-brand-tag-name span { color: #c9a227; }
.petid-brand-tag-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  font-size: 0.7rem;
  color: #6b7c93;
  text-align: center;
}
.petid-brand-tag-caption span:first-child {
  font-weight: 700;
  color: var(--petid-night);
}
.petid-brand-tag-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 100%;
}
.petid-brand-tag-actions .petid-btn-sm {
  width: 100%;
  justify-content: center;
}

.petid-lost-banner {
  border: 1px solid #f0c2a0;
  background: #fff6ef;
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
}
.petid-lost-banner h3 {
  font-family: "Syne", system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #c45c26;
  margin: 0 0 0.35rem;
}
.petid-lost-banner p { margin: 0; font-size: 0.85rem; color: #5c6b7e; }
.petid-nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.3rem;
  margin-left: 0.35rem;
  border-radius: 999px;
  background: #c45c26;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
}
.pf-loc-status {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: rgba(12, 26, 46, 0.65);
  text-align: center;
}
.pf-loc-status.is-ok { color: #1f7a4c; font-weight: 600; }
.pf-loc-status.is-err { color: #c45c26; }

/* —— Modal (lost mode etc.) —— */
body.petid-modal-open { overflow: hidden; }
.petid-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.petid-modal[hidden] { display: none !important; }
.petid-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 17, 31, 0.55);
  backdrop-filter: blur(2px);
}
.petid-modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 28rem;
  background: #fff;
  border: 1px solid rgba(201, 162, 39, 0.28);
  box-shadow: 0 24px 64px rgba(10, 22, 40, 0.22);
  padding: 1.35rem 1.35rem 1.5rem;
}
.petid-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.petid-modal-title {
  margin: 0;
  font-family: "Syne", system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--petid-night);
}
.petid-modal-x {
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: #6b7c93;
  cursor: pointer;
  padding: 0.1rem 0.35rem;
}
.petid-modal-lead {
  margin: 0.85rem 0 1.1rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #5c6b7e;
}
.petid-modal-body { display: flex; flex-direction: column; gap: 0.85rem; }
.petid-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.petid-check-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--petid-night);
  cursor: pointer;
}

/* —— Community lost board —— */
.petid-lost-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  margin-bottom: 1.25rem;
  background:
    radial-gradient(ellipse 50% 80% at 100% 0%, rgba(201,162,39,.12), transparent 55%),
    linear-gradient(180deg, #fff 0%, #faf8f5 100%);
  border: 1px solid rgba(201, 162, 39, 0.22);
}
.petid-lost-hero-stat { text-align: right; }
.petid-lost-hero-num {
  display: block;
  font-family: "Syne", system-ui, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #c45c26;
  line-height: 1;
}
.petid-lost-filters {
  margin-bottom: 1.5rem;
  padding: 1rem 1.15rem;
  background: #fff;
  border: 1px solid rgba(12, 26, 46, 0.08);
}
.petid-lost-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin-top: 0.35rem;
}
.petid-lost-filter-row .petid-input {
  flex: 1;
  min-width: 12rem;
}
.petid-lost-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
}
.petid-lost-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #5c6b7e;
  border: 1px solid rgba(12, 26, 46, 0.12);
  background: #faf8f5;
  text-decoration: none;
}
.petid-lost-chip:hover { border-color: rgba(201,162,39,.45); color: var(--petid-night); }
.petid-lost-chip.is-active {
  background: rgba(201, 162, 39, 0.16);
  border-color: rgba(201, 162, 39, 0.45);
  color: var(--petid-gold-dark);
}
.petid-lost-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .petid-lost-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .petid-lost-grid { grid-template-columns: repeat(3, 1fr); }
}
.petid-lost-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(12, 26, 46, 0.1);
  overflow: hidden;
  min-height: 100%;
}
.petid-lost-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #e8e2d6;
  overflow: hidden;
}
.petid-lost-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.petid-lost-card-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Syne", system-ui, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(255,255,255,.9);
  background:
    radial-gradient(ellipse at 30% 20%, rgba(201,162,39,.4), transparent 55%),
    linear-gradient(160deg, #1a2a40, #0a1628);
}
.petid-lost-card-flag {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  background: #fff3e8;
  color: #c45c26;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
}
.petid-lost-card-body {
  padding: 1rem 1.05rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}
.petid-lost-card-name {
  margin: 0;
  font-family: "Syne", system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--petid-night);
}
.petid-lost-card-meta {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: #6b7c93;
  text-transform: capitalize;
}
.petid-lost-card-city {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--petid-gold-dark);
}
.petid-lost-card-msg {
  margin: 0.15rem 0 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #5c6b7e;
  flex: 1;
}
.petid-lost-card-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.65rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(12, 26, 46, 0.08);
}

/* —— Pet activity tab —— */
.petid-activity-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
@media (min-width: 800px) {
  .petid-activity-summary { grid-template-columns: 1fr 1fr 1.4fr; }
}
.petid-activity-stat {
  background: linear-gradient(180deg, #fff 0%, #faf8f5 100%);
  border: 1px solid rgba(12, 26, 46, 0.08);
  padding: 1rem 1.1rem;
}
.petid-activity-stat-num {
  display: block;
  font-family: "Syne", system-ui, sans-serif;
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--petid-night);
  line-height: 1.1;
}
.petid-activity-stat-num--sm { font-size: 1.25rem; }
.petid-activity-stat-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7c93;
}
.petid-activity-latest {
  display: grid;
  gap: 0;
  border: 1px solid rgba(201, 162, 39, 0.28);
  background: #fff;
  overflow: hidden;
}
@media (min-width: 900px) {
  .petid-activity-latest { grid-template-columns: minmax(220px, 0.9fr) 1.3fr; }
}
.petid-activity-latest-copy { padding: 1.25rem 1.35rem; }
.petid-activity-latest-title {
  margin: 0;
  font-family: "Syne", system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--petid-night);
}
.petid-activity-latest-meta {
  margin: 0.45rem 0 0;
  font-size: 0.85rem;
  color: #6b7c93;
}
.petid-activity-coords {
  margin: 0.85rem 0 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--petid-night);
}
.petid-activity-map {
  min-height: 220px;
  background: #e8e2d6;
  border-top: 1px solid rgba(12, 26, 46, 0.08);
}
@media (min-width: 900px) {
  .petid-activity-map { border-top: none; border-left: 1px solid rgba(12, 26, 46, 0.08); min-height: 100%; }
}
.petid-activity-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  border: 0;
}
.petid-activity-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 960px) {
  .petid-activity-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}
.petid-activity-block {
  border: 1px solid rgba(12, 26, 46, 0.1);
  background: #fff;
  min-height: 12rem;
}
.petid-activity-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid rgba(12, 26, 46, 0.08);
  background: #faf8f5;
}
.petid-activity-block-head h3 {
  margin: 0;
  font-family: "Syne", system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--petid-night);
}
.petid-activity-block-head span {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7c93;
}
.petid-activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 28rem;
  overflow-y: auto;
}
.petid-activity-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid rgba(12, 26, 46, 0.06);
}
.petid-activity-item:last-child { border-bottom: none; }
.petid-activity-item-main { min-width: 0; }
.petid-activity-item-title {
  margin: 0.4rem 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--petid-night);
}
.petid-activity-item-sub {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: #6b7c93;
}
.petid-activity-item-side {
  flex-shrink: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
  color: #8a97a8;
}

/* —— Notifications feed —— */
.petid-notif-feed {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.petid-notif-item {
  display: grid;
  grid-template-columns: 4px 1fr;
  background: #fff;
  border: 1px solid rgba(12, 26, 46, 0.1);
  overflow: hidden;
}
.petid-notif-item.is-unread {
  border-color: rgba(201, 162, 39, 0.35);
  background: linear-gradient(180deg, #fffefb 0%, #fff 100%);
}
.petid-notif-item.is-read { opacity: 0.78; }
.petid-notif-tone { background: #c9d0da; }
.petid-notif-tone--alert { background: #c45c26; }
.petid-notif-tone--map { background: #2f6fed; }
.petid-notif-tone--scan { background: var(--petid-gold); }
.petid-notif-tone--ok { background: #1f7a4c; }
.petid-notif-tone--neutral { background: #8a97a8; }
.petid-notif-body { padding: 1rem 1.15rem 1.05rem; }
.petid-notif-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}
.petid-notif-chip {
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5c6b7e;
}
.petid-notif-time {
  font-size: 0.75rem;
  color: #8a97a8;
  white-space: nowrap;
}
.petid-notif-title {
  margin: 0;
  font-family: "Syne", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--petid-night);
}
.petid-notif-msg {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #5c6b7e;
}
.petid-notif-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

/* —— Family access —— */
.petid-family-section {
  border: 1px solid rgba(12, 26, 46, 0.1);
  background: #fff;
  padding: 1.15rem 1.25rem 1.25rem;
}
.petid-family-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.petid-family-section-head h3 {
  margin: 0;
  font-family: "Syne", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--petid-night);
}
.petid-family-section-head span {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7c93;
}
.petid-family-section-lead {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: #6b7c93;
  line-height: 1.5;
}
.petid-family-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.petid-family-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(12, 26, 46, 0.06);
}
.petid-family-row:last-child { border-bottom: none; }
.petid-family-row--stack {
  flex-wrap: wrap;
  align-items: flex-start;
}
.petid-family-row-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--petid-night);
}
.petid-family-row-sub {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: #6b7c93;
}
.petid-family-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.petid-family-block h4 {
  margin: 0 0 0.65rem;
  font-family: "Syne", system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--petid-night);
}
.petid-family-success {
  margin-top: 1.25rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid rgba(201, 162, 39, 0.3);
  background: linear-gradient(180deg, #fffefb 0%, #fff 100%);
}
.petid-family-link-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.petid-family-link-row .petid-input { flex: 1; }

/* —— Account profile —— */
.petid-profile-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 960px) {
  .petid-profile-grid { grid-template-columns: 1.2fr 0.9fr; align-items: start; }
}
.petid-profile-card {
  border: 1px solid rgba(12, 26, 46, 0.1);
  background: #fff;
  padding: 1.25rem 1.35rem 1.4rem;
}
.petid-profile-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.petid-profile-card-title {
  margin: 0;
  font-family: "Syne", system-ui, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--petid-night);
}
