/* ==========================================================================
   PetHub+ Styles
   Sections
   --------------------------------------------------------------------------
   1. CSS variables & base
   2. Layout & typography
   3. Shared cards & buttons
   4. Forms
   5. Home tab
   6. Pets tab
   7. Vets tab
   8. Insurance tab
   9. Calendar tab
  10. AI tab
  11. Shop tab
  12. Bottom navigation
  13. Responsive/mobile tweaks
   ========================================================================== */

/* style.css extracted from index.html */

:root {
  --purple: #372345;
  --purple-soft: #f1e6ff;
  --bg-home: #f5f3ff;
  --bg-pets: #fef6e7;
  --bg-vets: #e9f7ff;
  --bg-insurance: #f4f8ff;
  --bg-calendar: #f4fff7;
  --bg-ai: #f7f3ff;
  --bg-shop: #fff7f5;
  --bg-tags: #f4fff7;
  --card-bg: #ffffff;
  --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.18), 0 4px 12px rgba(15, 23, 42, 0.10);
  --muted: #6b7280;
  --danger: #b33939;
}

* {
  box-sizing: border-box;
}

/* iOS WKWebView: reliable tap/click on buttons and interactive elements */
button,
.btn,
.tab-btn,
a[href],
[data-section-link],
.card-header-row button,
.pet-list-header button,
.form-actions button,
.ai-send-btn,
#newLicenceBtn,
#newTravelBtn,
#newShopBtn,
#newAiChatBtn,
#newReminderBtn,
#newVetBtn,
#newPetBtn {
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Guideline 4.0: scroll-margin so focused input stays visible above keyboard when scrollIntoView runs */
input,
textarea,
select {
  scroll-margin-top: 16px;
  scroll-margin-bottom: 120px;
}

/* Standalone pages (lost, lost-mode, found): safe-area padding so content is not under notch/home indicator */
body.standalone-safe-area {
  padding-top: calc(16px + env(safe-area-inset-top));
  padding-right: max(16px, env(safe-area-inset-right));
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
  padding-left: max(16px, env(safe-area-inset-left));
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--bg-home);
  color: #111827;
  /* iOS safe areas: ensure content is never drawn under notch/Dynamic Island or home indicator */
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

body.section-home {
  background: var(--bg-home);
}
body.section-pets {
  background: var(--bg-pets);
}
body.section-vets {
  background: var(--bg-vets);
}
body.section-insurance {
  background: var(--bg-insurance);
}
body.section-travel {
  background: #e0f7f5;
}
body.section-licence {
  background: #eef2ff;
}
body.section-calendar {
  background: var(--bg-calendar);
}
body.section-ai {
  background: var(--bg-ai);
}
body.section-shop {
  background: var(--bg-shop);
}
body.section-tags {
  background: var(--bg-tags);
}

.app-shell {
  max-width: 1100px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh; /* iOS: use dynamic viewport so content fits visible area */
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 0; /* new */
}

/* Paw watermark in the background for the whole app */
.app-shell::before {
  content: "";
  position: absolute;              /* was fixed */
  inset: 0;
  background-image: url("paw-logo-purple-bold.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 420px 420px;
  opacity: 1.18;                   /* keep / tweak as you like */
  pointer-events: none;
  z-index: -1;                     /* sit behind all app-shell content */
}


header.app-header {
  padding: 10px 16px;
  padding-top: calc(10px + env(safe-area-inset-top));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, #6a4bc3 0%, #1b102b 100%);
  color: white;
}

.app-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
}

.app-title-icon {
  display: inline-block;
  width: 29px;
  height: 29px;
  margin-right: 2px;
  background: url("paw-logo-white-bold.png") no-repeat center center;
  background-size: contain;
}


.app-title h1,
.app-logo-btn {
  margin: 0;
  font-size: 1.9rem;
}

.app-logo-btn {
  background: none;
  border: none;
  padding: 0;
  color: #ffffff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-logo-btn:focus {
  outline: 2px solid rgba(255,255,255,0.6);
  outline-offset: 3px;
}

.app-subtitle {
  font-size: 0.9rem;
  opacity: 0.85;
}

main {
  flex: 1;
  padding: 12px 12px calc(90px + env(safe-area-inset-bottom));
  /* Extra bottom padding so content doesn't sit flush when scrolled – safe area for home indicator / nav bar */
}

h2.section-title {
  margin: 6px 0 10px;
  font-size: 1.25rem;
  color: var(--purple);
  display: flex;
  align-items: center;
  gap: 8px;
}

h2.section-title span.label-pill {
  font-size: 0.8rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(55, 35, 69, 0.1);
  color: var(--purple);
}

p.muted,
small.muted {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 4px 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 3px 10px;
  background: rgba(55, 35, 69, 0.06);
  color: #374151;
  font-size: 0.8rem;
}

.pill strong {
  font-weight: 600;
}

/* Make FullCalendar title smaller and cleaner */
.fc .fc-toolbar-title {
  font-size: 1rem !important;
  font-weight: 600;
  color: #372345;
}

/* Calendar: one consistent font size for toolbar (today, month/week/day, date) */
#section-calendar .fc .fc-toolbar-title,
#section-calendar .fc .fc-button {
  font-size: 0.95rem !important;
}

/* FullCalendar: mobile header containment + wrap (fixes Fri/Sat spilling/merging in week/day views) */
@media (max-width: 520px) {
  /* Make the header grid fixed so each day column keeps its own width */
  .fc .fc-scrollgrid-section-header table,
  .fc .fc-timegrid-header table {
    table-layout: fixed !important;
  }

  /* Stop header text from painting into neighbouring columns */
  .fc .fc-col-header-cell {
    overflow: hidden !important;
  }

  /* Allow "Tue 2/10" to wrap on two lines only when very narrow */
  .fc .fc-col-header-cell-cushion {
    display: block !important;
    white-space: normal !important;
    line-height: 1.2 !important;
    text-align: center !important;
    padding: 4px 2px !important;
    font-size: 0.8rem !important;
  }
}


/* Optional: slightly tighten up toolbar spacing */
.fc .fc-toolbar {
  margin-bottom: 0.4rem;
}

/* Prev/next arrows + today: stacked vertically, one above the other */
#section-calendar .fc .fc-toolbar-chunk:first-child {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 4px !important;
}
#section-calendar .fc .fc-prev-button,
#section-calendar .fc .fc-next-button {
  padding: 3px 6px !important;
  min-width: 26px !important;
}
#section-calendar .fc .fc-prev-button .fc-icon,
#section-calendar .fc .fc-next-button .fc-icon {
  font-size: 0.9em !important;
}
#section-calendar .fc .fc-today-button {
  padding: 4px 10px !important;
  line-height: 1.25 !important;
  margin-left: 0 !important;
  align-self: flex-start !important;
}

/* Fix header actions & Home button layout */
.header-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  margin-left: auto;
}

.header-home-btn {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  font-size: 0.8rem !important;
  padding: 3px 10px !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  flex: 0 0 auto !important;
  max-width: 120px !important;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header-home-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}
.header-home-btn.active {
  background: #f9fafb;
  color: #111827;
}
/* ---------- Shared card style (Pets/Vets/Insurance/Calendar/AI/Shop) ---------- */
.card,
.pet-card,
.vet-card,
.insurance-card,
.calendar-card,
.ai-card,
.shop-card,
.home-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
  padding: 16px 18px;
  margin-bottom: 18px;
  transition: transform 0.14s ease, box-shadow 0.14s ease,
    background 0.15s ease;
  overflow-x: hidden; /* keep content inside card on all devices */
  min-width: 0; /* allow flex/grid children to shrink */
}

.card:hover,
.pet-card:hover,
.vet-card:hover,
.insurance-card:hover,
.calendar-card:hover,
.ai-card:hover,
.shop-card:hover,
.home-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 35px rgba(15, 23, 42, 0.25);
}

.card:active,
.pet-card:active,
.vet-card:active,
.insurance-card:active,
.calendar-card:active,
.ai-card:active,
.shop-card:active,
.home-card:active {
  transform: translateY(-1px) scale(0.99);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.2);
}

/* ----------------------------
   Pet Tags order form
   ---------------------------- */

/* Give Pet Tags screens a bit more structure */
#section-tags .card,
#section-tags-hub .card,
#section-tags-hub .home-card {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.tag-order-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
}

/* Column helpers */
.col-12 { grid-column: span 12; }
.col-6  { grid-column: span 6; }
.col-4  { grid-column: span 4; }
.col-3  { grid-column: span 3; }

/* Larger, clearer inputs/selects */
.tag-order-grid .field-group label {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.2px;
}

.tag-order-grid select,
.tag-order-grid input {
  width: 100%;
  min-height: 46px;
  font-size: 16px;
  padding: 10px 12px;
  border-radius: 12px;
}

/* Make the Pet selector feel like a primary control */
#tagPetSelect {
  min-width: 220px;
}

.postage-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(16, 185, 129, 0.12);
}

.postage-pill-label {
  font-weight: 800;
  color: rgba(15, 23, 42, 0.9);
}

.postage-pill-value {
  font-weight: 700;
}


/* Pricing note */
.pricing-box {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.55);
}

.pricing-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.price-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.10);
  font-weight: 700;
  font-size: 13px;
}

.price-badge strong {
  font-weight: 900;
}

.price-badge.active {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.35);
}

.pricing-sub {
  margin-top: 8px;
  color: rgba(15, 23, 42, 0.75);
  font-size: 12.5px;
  font-weight: 600;
}

.tag-order-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
}

.tag-order-actions .btn-primary,
.tag-order-actions .btn-secondary {
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
}

@media (max-width: 900px) {
  .col-6, .col-4 { grid-column: span 12; }
  .tag-order-actions { justify-content: stretch; }
  .tag-order-actions button { width: 100%; }
}

/* ---------- Insurance policy cards (click anywhere to open) ---------- */
.policy-card {
  cursor: pointer;
}

.policy-card:focus {
  outline: 3px solid rgba(124, 58, 237, 0.35);
  outline-offset: 3px;
}

.policy-card-chevron {
  font-size: 24px;
  line-height: 1;
  opacity: 0.55;
  padding-left: 10px;
  user-select: none;
}

/* Paperclip indicator on list cards that have documents attached (Licence, Travel, Insurance) */
.card-doc-indicator {
  font-size: 0.75rem;
  font-weight: normal;
  margin-left: 2px;
}

.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

/* Title block can shrink so the button stays visible; button must not shrink */
.card-header-row > div:first-child {
  min-width: 0;
}
.card-header-row .btn,
.card-header-row button {
  flex-shrink: 0;
}

.card-title-main {
  font-weight: 600;
  margin-bottom: 4px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-subline {
  font-size: 0.85rem;
  color: var(--muted);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Subscription paywall: show full description, don't cut off mid-word */
.card-subline-wrap {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

/* Subscription option buttons: term and price only */
.subscription-option-btn {
  text-align: left;
  padding: 10px 14px;
}
.subscription-option-btn .subscription-option-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* -------- Family sharing page -------- */

.bullet-list {
  margin: 0;
  padding-left: 1.1rem;
}

.bullet-list li {
  margin-bottom: 2px;
}

/* Family invite / join card */
.family-card {
  margin-top: 16px;
}

.family-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  margin-bottom: 4px;
}

.family-code-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
}

.family-code-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  margin-top: 2px;
}

.family-code-placeholder {
  color: #9ca3af;
}

.join-family-form {
  margin-top: 6px;
}

.join-family-row {
  display: flex;
  gap: 8px;
  margin-top: 4px;
  min-width: 0; /* Allow flex container to shrink */
}

.join-family-row input {
  flex: 1;
  min-width: 0; /* Allow input to shrink below content size */
}

.join-family-row button {
  flex-shrink: 0; /* Prevent button from shrinking */
  white-space: nowrap; /* Keep button text on one line */
}

.btn-text {
  transition: transform 0.12s ease, background 0.12s ease;
  background: none;
  border: none;
  padding: 0;
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--purple);
  cursor: pointer;
  text-decoration: underline;
}


/* ---------- Buttons ---------- */

button,
.btn {
  border-radius: 999px;
  border: none;
  font-size: 0.9rem;
  padding: 7px 14px;
  cursor: pointer;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  overflow-wrap: break-word;
  text-align: center;
}

.btn-primary {
  background: var(--purple);
  color: #fff;
  transition: background 0.14s ease, transform 0.12s ease, box-shadow 0.12s ease;
  box-shadow: 0 10px 24px rgba(55, 35, 69, 0.35);
}
.btn-primary:hover {
  background: #2d1b3b;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(55, 35, 69, 0.45);
}
.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(55, 35, 69, 0.3);
}

.btn-secondary {
  background: #f3f4f6;
  color: #374151;
  transition: background 0.14s ease, transform 0.12s ease, box-shadow 0.12s ease;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.15);
}
.btn-secondary:hover {
  background: #e5e7eb;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.2);
}
.btn-secondary:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.16);
}

.btn-danger {
  background: #fee2e2;
  color: var(--danger);
}

.btn-small {
  transition: transform 0.12s ease, background 0.12s ease;
  font-size: 0.78rem;
  padding: 4px 10px;
}

.btn-ghost {
  transition: transform 0.12s ease, background 0.12s ease;
  background: transparent;
  color: #374151;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 0.75rem;
  background: #eef2ff;
  color: #4338ca;
}

/* ---------- Home layout ---------- */
#section-home {
  display: block;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.home-card {
  cursor: pointer;
}

.home-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.home-card-title {
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-card-icon {
  font-size: 1.3rem;
}

/* NEW: Vet quick actions */
.home-quick-actions {
  margin-top: 6px;
  display: none; /* shown when at least one quick action exists */
}

.home-quick-actions-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.home-quick-actions-meta {
  font-size: 0.8rem;
}

/* ---------- Layouts: split list/detail ---------- */
.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 14px;
}

@media (max-width: 840px) {
  .split-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Calendar: more Outlook-style proportions (narrow sidebar, wide calendar) */
#section-calendar .split-layout {
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 2.1fr);
  align-items: flex-start;
}

@media (max-width: 840px) {
  #section-calendar .split-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.panel {
  border-radius: 18px;
  padding: 12px 12px;
}



/* Home card themes (use data-theme so order doesn't matter) */
.home-card[data-theme="pets"] {
  background: linear-gradient(135deg, #ffc470, #fff3dd);
}
.home-card[data-theme="vets"] {
  background: linear-gradient(135deg, #9fe0ff, #e9f8ff);
}
.home-card[data-theme="insurance"] {
  background: linear-gradient(135deg, #b7f0c1, #eaffee);
}
.home-card[data-theme="travel"] {
  background: linear-gradient(135deg, #4fd1c7, #e0f7f5);
}
.home-card[data-theme="licence"] {
  background: linear-gradient(135deg, #818cf8, #eef2ff);
}
.home-card[data-theme="calendar"] {
  background: linear-gradient(135deg, #ffbac4, #ffecef);
}
.home-card[data-theme="ai"] {
  background: linear-gradient(135deg, #ddc8ff, #f4edff);
}
.home-card[data-theme="shop"] {
  background: linear-gradient(135deg, #ffd3a1, #fff2e2);
}
.home-card[data-theme="tags"] {
  background: linear-gradient(135deg, #a4f3d5, #e4fff1);
}
.home-card[data-theme="places"] {
  background: linear-gradient(135deg, #b9d1ff, #eef3ff);
}
.home-card[data-theme="admin"] {
  background: linear-gradient(135deg, #c4c2ff, #f1efff);
}
.home-card[data-theme="guide"] {
  background: linear-gradient(135deg, #f0abfc, #fce7f3);
  position: relative;
}
.home-card[data-theme="guide"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("paw-logo-white-bold.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 60%;
  opacity: 0.15;
  pointer-events: none;
}

/* Make inner "mini" cards match their parent card */
.home-card[data-theme] .card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.55);
}
.home-card[data-theme="pets"] .card { background: linear-gradient(135deg, rgba(255,255,255,0.88), rgba(255,243,221,0.95)); }
.home-card[data-theme="vets"] .card { background: linear-gradient(135deg, rgba(255,255,255,0.88), rgba(233,248,255,0.95)); }
.home-card[data-theme="insurance"] .card { background: linear-gradient(135deg, rgba(255,255,255,0.88), rgba(234,255,238,0.95)); }
.home-card[data-theme="travel"] .card { background: linear-gradient(135deg, rgba(255,255,255,0.88), rgba(224,247,245,0.95)); }
.home-card[data-theme="licence"] .card { background: linear-gradient(135deg, rgba(255,255,255,0.88), rgba(238,242,255,0.95)); }
.home-card[data-theme="calendar"] .card { background: linear-gradient(135deg, rgba(255,255,255,0.88), rgba(255,236,239,0.95)); }
.home-card[data-theme="ai"] .card { background: linear-gradient(135deg, rgba(255,255,255,0.88), rgba(244,237,255,0.95)); }
.home-card[data-theme="shop"] .card { background: linear-gradient(135deg, rgba(255,255,255,0.88), rgba(255,242,226,0.95)); }
.home-card[data-theme="tags"] .card { background: linear-gradient(135deg, rgba(255,255,255,0.88), rgba(228,255,241,0.95)); }
.home-card[data-theme="places"] .card { background: linear-gradient(135deg, rgba(255,255,255,0.88), rgba(238,243,255,0.95)); }
.home-card[data-theme="admin"] .card { background: linear-gradient(135deg, rgba(255,255,255,0.88), rgba(241,239,255,0.95)); }
.home-card[data-theme="guide"] .card { background: linear-gradient(135deg, rgba(255,255,255,0.88), rgba(252,231,243,0.95)); }



/* Admin page cards */
#section-admin .home-grid .home-card:nth-child(1) { /* Family sharing */
  background: linear-gradient(135deg, #c7f0ff, #ecf9ff);
}
#section-admin .home-grid .home-card:nth-child(2) { /* Subscription */
  background: linear-gradient(135deg, #cec6ff, #f1efff);
}
#section-admin .home-grid .home-card:nth-child(3) { /* My Details */
  background: linear-gradient(135deg, #d8e1ee, #f3f7fb);
}
#section-admin .home-grid .home-card:nth-child(4) { /* Legal */
  background: linear-gradient(135deg, #c7d2fe, #eef2ff);
}
#section-admin .home-grid .home-card:nth-child(5) { /* Sign out */
  background: linear-gradient(135deg, #cbd5e1, #f1f5f9);
}
#section-admin .home-grid .home-card.home-card-interactive {
  cursor: pointer;
}
#section-admin .home-grid .home-card.home-card-interactive:hover {
  filter: brightness(0.98);
}
#section-admin .home-grid .home-card.home-card-interactive:active {
  filter: brightness(0.95);
}
#section-admin .home-grid .home-card:nth-child(6) { /* Delete my account */
  background: linear-gradient(135deg, #fde2e2, #fff5f5);
}

/* Section card tints to match home tiles */
#section-pets .card {
  background: linear-gradient(135deg, #ffc470, #fff3dd);
}

#section-vets .card {
  background: linear-gradient(135deg, #9fe0ff, #e9f8ff);
}

#section-insurance .card {
  background: linear-gradient(135deg, #b7f0c1, #eaffee);
}

#section-travel .card {
  background: linear-gradient(135deg, #4fd1c7, #e0f7f5);
}

#section-licence .card {
  background: linear-gradient(135deg, #6366f1, #eef2ff);
}

/* Readable text on coloured section cards (Licence, Insurance, Travel, etc.) – avoid faint grey on tinted backgrounds */
#section-pets .card,
#section-vets .card,
#section-insurance .card,
#section-travel .card,
#section-licence .card,
#section-tags .card,
#section-calendar .card,
#section-ai .card,
#section-shop .card,
#section-places .card,
#section-family .card,
#section-subscription .card {
  color: #1f2937;
}
#section-pets .card .muted,
#section-pets .card p.muted,
#section-pets .card small.muted,
#section-vets .card .muted,
#section-vets .card p.muted,
#section-vets .card small.muted,
#section-insurance .card .muted,
#section-insurance .card p.muted,
#section-insurance .card small.muted,
#section-travel .card .muted,
#section-travel .card p.muted,
#section-travel .card small.muted,
#section-licence .card .muted,
#section-licence .card p.muted,
#section-licence .card small.muted,
#section-tags .card .muted,
#section-tags .card p.muted,
#section-tags .card small.muted,
#section-calendar .card .muted,
#section-calendar .card p.muted,
#section-calendar .card small.muted,
#section-ai .card .muted,
#section-ai .card p.muted,
#section-ai .card small.muted,
#section-shop .card .muted,
#section-shop .card p.muted,
#section-shop .card small.muted,
#section-places .card .muted,
#section-places .card p.muted,
#section-places .card small.muted,
#section-family .card .muted,
#section-family .card p.muted,
#section-family .card small.muted,
#section-subscription .card .muted,
#section-subscription .card p.muted,
#section-subscription .card small.muted {
  color: #374151;
}
#section-pets .card .card-subline,
#section-vets .card .card-subline,
#section-insurance .card .card-subline,
#section-travel .card .card-subline,
#section-licence .card .card-subline,
#section-tags .card .card-subline,
#section-calendar .card .card-subline,
#section-ai .card .card-subline,
#section-shop .card .card-subline,
#section-places .card .card-subline,
#section-family .card .card-subline,
#section-subscription .card .card-subline {
  color: #374151;
}
#section-pets .card .pill,
#section-vets .card .pill,
#section-insurance .card .pill,
#section-travel .card .pill,
#section-licence .card .pill,
#section-tags .card .pill,
#section-calendar .card .pill,
#section-ai .card .pill,
#section-shop .card .pill,
#section-places .card .pill,
#section-family .card .pill,
#section-subscription .card .pill {
  color: #1f2937;
}
#section-pets .card .pill strong,
#section-vets .card .pill strong,
#section-insurance .card .pill strong,
#section-travel .card .pill strong,
#section-licence .card .pill strong,
#section-tags .card .pill strong,
#section-calendar .card .pill strong,
#section-ai .card .pill strong,
#section-shop .card .pill strong,
#section-places .card .pill strong,
#section-family .card .pill strong,
#section-subscription .card .pill strong {
  color: #111827;
}

/* Pet Tags pages should match the Pet Tags home tile */
#section-tags-hub .home-card,
#section-tags .card,
#section-tags-europe .card {
  background: linear-gradient(135deg, #a4f3d5, #e4fff1);
}

body.section-tags-europe {
  background: var(--bg-tags);
}

/* Europe (Zazzle): force green card (overrides generic .card white), dark readable text */
#section-tags-europe .card {
  background: linear-gradient(135deg, #a4f3d5, #e4fff1) !important;
}
#section-tags-europe .card .card-subline,
#section-tags-europe .card .muted,
#section-tags-europe .card p.muted,
#section-tags-europe .card small.muted,
#section-tags-europe .card .muted.small,
#section-tags-europe #tagEuropeHint {
  color: #1f2937;
  opacity: 1;
}

/* Europe (Zazzle) pet select: readable text and placeholder */
#section-tags-europe .tag-europe-pet-select,
#section-tags-europe select#tagEuropePetSelect {
  color: #1f2937;
  background: #fff;
}
#section-tags-europe .tag-europe-pet-select option,
#section-tags-europe select#tagEuropePetSelect option {
  color: #1f2937;
  background: #fff;
}

/* Guide section - each card explanation matches its home card color */
#section-guide .guide-card-pets {
  background: linear-gradient(135deg, #ffc470, #fff3dd);
  position: relative;
}
#section-guide .guide-card-pets::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("paw-logo-white-bold.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 50%;
  opacity: 0.12;
  pointer-events: none;
}

#section-guide .guide-card-vets {
  background: linear-gradient(135deg, #9fe0ff, #e9f8ff);
  position: relative;
}
#section-guide .guide-card-vets::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("paw-logo-white-bold.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 50%;
  opacity: 0.12;
  pointer-events: none;
}

#section-guide .guide-card-insurance {
  background: linear-gradient(135deg, #b7f0c1, #eaffee);
  position: relative;
}
#section-guide .guide-card-insurance::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("paw-logo-white-bold.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 50%;
  opacity: 0.12;
  pointer-events: none;
}

#section-guide .guide-card-travel {
  background: linear-gradient(135deg, #4fd1c7, #e0f7f5);
  position: relative;
}
#section-guide .guide-card-travel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("paw-logo-white-bold.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 50%;
  opacity: 0.12;
  pointer-events: none;
}

#section-guide .guide-card-licence {
  background: linear-gradient(135deg, #818cf8, #eef2ff);
  position: relative;
}
#section-guide .guide-card-licence::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("paw-logo-white-bold.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 50%;
  opacity: 0.12;
  pointer-events: none;
}

#section-guide .guide-card-calendar {
  background: linear-gradient(135deg, #ffbac4, #ffecef);
  position: relative;
}
#section-guide .guide-card-calendar::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("paw-logo-white-bold.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 50%;
  opacity: 0.12;
  pointer-events: none;
}

#section-guide .guide-card-ai {
  background: linear-gradient(135deg, #ddc8ff, #f4edff);
  position: relative;
}
#section-guide .guide-card-ai::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("paw-logo-white-bold.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 50%;
  opacity: 0.12;
  pointer-events: none;
}

#section-guide .guide-card-shop {
  background: linear-gradient(135deg, #ffd3a1, #fff2e2);
  position: relative;
}
#section-guide .guide-card-shop::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("paw-logo-white-bold.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 50%;
  opacity: 0.12;
  pointer-events: none;
}

#section-guide .guide-card-tags {
  background: linear-gradient(135deg, #a4f3d5, #e4fff1);
  position: relative;
}
#section-guide .guide-card-tags::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("paw-logo-white-bold.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 50%;
  opacity: 0.12;
  pointer-events: none;
}

#section-guide .guide-card-places {
  background: linear-gradient(135deg, #b9d1ff, #eef3ff);
  position: relative;
}
#section-guide .guide-card-places::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("paw-logo-white-bold.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 50%;
  opacity: 0.12;
  pointer-events: none;
}

#section-guide .guide-card-admin {
  background: linear-gradient(135deg, #c4c2ff, #f1efff);
  position: relative;
}
#section-guide .guide-card-admin::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("paw-logo-white-bold.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 50%;
  opacity: 0.12;
  pointer-events: none;
}

#section-guide .guide-card {
  padding: 20px;
  border-radius: 18px;
  position: relative;
  z-index: 1;
}

#section-guide .guide-card-guide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("paw-logo-white-bold.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 50%;
  opacity: 0.12;
  pointer-events: none;
}

#section-tags .card {
  max-width: 1120px;
  margin: 0 auto;
}

/* Pet Tag order form spacing & bigger controls */
.tag-order-top {
  grid-template-columns: minmax(240px, 1.6fr) minmax(170px, 1fr) minmax(150px, 0.8fr);
  align-items: end;
}

#section-tags .field-group select,
#section-tags .field-group input {
  height: 46px;
  font-size: 16px;
}

#section-tags .field-group label {
  font-size: 13px;
  letter-spacing: 0.2px;
}

@media (max-width: 820px) {
  .tag-order-top { grid-template-columns: 1fr; }
}

/* Calendar sidebar: let the care-item list scroll within its panel */
#section-calendar #remindersContainer {
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
}

/* Calendar body: give FullCalendar a bit more vertical room, Outlook-style */
#section-calendar #fullCalendar {
  min-height: 520px;
}

/* Day columns: wider so "Tue 2/10" fits; one layout for all day headers */
#section-calendar .fc .fc-col-header-cell,
#section-calendar .fc .fc-timegrid-col,
#section-calendar .fc .fc-daygrid-day {
  min-width: 72px !important;
}
#section-calendar .fc .fc-col-header-cell-cushion {
  font-size: 0.85rem !important;
  padding: 4px 2px !important;
  line-height: 1.2 !important;
  text-align: center !important;
  white-space: nowrap !important;
}

/* Two-line day headers: weekday on first line, date (M/D) on second line */
#section-calendar .fc .fc-col-header-cell-cushion:has(.fc-day-header-two-line) {
  font-size: 0 !important; /* hide default "Sun 2/8" text when we show custom two-line */
}
#section-calendar .fc .fc-day-header-two-line {
  display: block !important;
  text-align: center !important;
  font-size: 0.85rem !important;
  line-height: 1.25 !important;
}
#section-calendar .fc .fc-day-header-weekday {
  display: block !important;
}
#section-calendar .fc .fc-day-header-date {
  display: block !important;
  font-weight: 600 !important;
}

/* Calendar cards: make the main calendar panel more neutral */
#section-calendar #calendar-detail-panel .card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.20);
}

/* Keep the left-hand list card softly tinted like the Calendar home tile */
#section-calendar .card {
  background: linear-gradient(135deg, #ffbac4, #ffecef);
}

#section-ai {
  padding-bottom: 20px;
}

#section-ai .section-title {
  margin-bottom: 14px;
}

#section-ai .card {
  background: linear-gradient(135deg, #ddc8ff, #f4edff);
}

#section-shop .card {
  background: linear-gradient(135deg, #ffd3a1, #fff2e2);
}


#section-places .card {
  background: linear-gradient(135deg, #b9d1ff, #eef3ff);
}


#section-family .card {
  background: linear-gradient(135deg, #c7f0ff, #ecf9ff);
}

#section-subscription .card {
  background: linear-gradient(135deg, #cec6ff, #f1efff);
}
/* Pets list & detail containers use cards inside panels */
.empty-state {
  font-size: 0.9rem;
  color: var(--muted);
  padding: 8px 0;
}

/* ---------- Form layout ---------- */
form {
  margin-top: 6px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px 12px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.9rem;
}

label {
  font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="date"],
input[type="time"],
input[type="number"],
select,
textarea {
  border-radius: 8px;
  border: 1px solid #d1d5db;
  padding: 7px 9px;
  font-size: 0.9rem;
  font-family: inherit;
}

textarea {
  min-height: 70px;
  resize: vertical;
}

input[type="file"] {
  font-size: 0.85rem;
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 4px;
}

/* ---------- Pets ---------- */
#section-pets {
  display: none;
}

.pet-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.pet-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pet-avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
  background: #eef1f7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #6b7280;
}

.pet-detail-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

#petProfilePhoto {
  width: 120px;
  height: 120px;
  min-width: 120px;
  min-height: 120px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #eef1f7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
}

#petProfilePhoto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#petProfileName {
  font-size: 1.1rem;
  font-weight: 600;
}

/* ---------- Vets ---------- */
#section-vets {
  display: none;
}

/* ---------- Insurance ---------- */
#section-insurance {
  display: none;
}

/* ---------- Calendar ---------- */
#section-calendar {
  display: none;
}

/* Calendar layout: Outlook-style sidebar + main calendar */
#section-calendar .split-layout {
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 2.1fr);
  align-items: flex-start;
}

@media (max-width: 840px) {
  #section-calendar .split-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Calendar sidebar: keep care items scrollable like an Outlook list */
#section-calendar #remindersContainer {
  max-height: 430px;
  overflow-y: auto;
  padding-right: 4px;
}

/* Slightly tighter calendar cards to feel more app-like than "big tiles" */
#section-calendar .card {
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.18);
}

/* Calendar filter row */
.calendar-filter-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 6px 0 10px;
  font-size: 0.85rem;
}
.calendar-filter-row label {
  color: #6b7280;
}
.calendar-filter-select {
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(55, 35, 69, 0.25);
  background: #ffffff;
  font-size: 0.85rem;
  outline: none;
}
.calendar-filter-select:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 1px rgba(55, 35, 69, 0.15);
}

/* Birthday & insurance event accents in calendar */
.fc-event.calendar-birthday-event,
.calendar-birthday-event .fc-event-main-frame {
  background: #f97316;
  border-color: #ea580c;
  color: #ffffff;
}
.fc-event.calendar-insurance-event,
.calendar-insurance-event .fc-event-main-frame {
  background: #0ea5e9;
  border-color: #0284c7;
  color: #ffffff;
}
.calendar-reminder-birthday {
  border-color: #ea580c;
  background: #fff7ed;
}

.fc-toolbar-title {
  font-size: 1.1rem;
  font-weight: 600;
}
@media (max-width: 600px) {
  .fc-toolbar-title {
    font-size: 1rem;
  }
}

/* ---------- Home: upcoming birthdays / today / this week ---------- */
.home-birthdays-card {
  margin-bottom: 16px;
}
.home-birthday-list {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.home-birthday-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 0.9rem;
  padding: 4px 0;
  border-bottom: 1px dashed rgba(55, 35, 69, 0.12);
}
.home-birthday-item:last-child {
  border-bottom: none;
}
.home-birthday-name {
  font-weight: 600;
}
.home-birthday-date {
  font-weight: 500;
}
.home-birthday-meta {
  font-size: 0.8rem;
  color: #6b7280;
  margin-left: 8px;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .home-birthdays-card {
    margin-bottom: 12px;
  }
  .home-birthday-item {
    font-size: 0.85rem;
  }
}

/* ---------- AI tab ---------- */
.ai-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.8fr);
  gap: 16px;
  align-items: start;
}

.ai-sidebar {
  max-height: 520px;
  overflow-y: auto;
  padding-right: 4px;
}

.ai-sidebar .card-header-row {
  margin-bottom: 12px;
}

.ai-sidebar p.muted {
  margin: 0 0 14px 0;
  font-size: 0.85rem;
  line-height: 1.4;
}

/* Main conversation card: messages scroll, input pinned to bottom */
#section-ai > .ai-layout > .card:last-child {
  display: flex;
  flex-direction: column;
  min-height: 400px;
  max-height: 520px;
}

.ai-messages {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}

.ai-conversation-card {
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  border: 1px solid rgba(55, 35, 69, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: all 0.15s ease;
}

.ai-conversation-card:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(55, 35, 69, 0.15);
  transform: translateX(2px);
}

.ai-conversation-card.active {
  border-color: var(--purple);
  background: rgba(55, 35, 69, 0.08);
  box-shadow: 0 2px 8px rgba(55, 35, 69, 0.12);
}

.ai-conversation-card > div:first-child {
  flex: 1;
  min-width: 0;
}

.ai-conversation-card > div:first-child > div:first-child {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-conversation-card > div:first-child > div:last-child {
  font-size: 0.75rem;
  color: var(--muted);
}

.ai-input-wrapper {
  padding: 12px 8px 8px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  flex-shrink: 0;
}

.ai-remaining-requests {
  padding: 8px 12px;
  margin-bottom: 8px;
  background: rgba(55, 35, 69, 0.05);
  border-radius: 8px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid rgba(55, 35, 69, 0.1);
}

.ai-remaining-requests.low {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
  color: #dc2626;
}

.ai-remaining-requests.premium {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.2);
}

.ai-remaining-requests .remaining-text {
  font-weight: 500;
  color: inherit;
}

.ai-remaining-requests .upgrade-hint {
  font-size: 0.75rem;
  color: var(--purple);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.ai-remaining-requests .upgrade-hint:hover {
  opacity: 0.8;
}

.ai-remaining-requests.cooldown {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #dc2626;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.ai-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.ai-attach-btn {
  flex: 0 0 auto;
  min-width: 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border-radius: 12px;
}

/* iOS: ensure AI text area is tappable and receives focus (not blocked by overlay or tap handler) */
.ai-input-wrapper,
.ai-input-row,
#aiInput {
  position: relative;
  z-index: 2;
  pointer-events: auto;
  touch-action: manipulation;
}

.ai-input-row input[type="text"] {
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 14px;
  font-size: 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(55, 35, 69, 0.15);
  background: rgba(255, 255, 255, 0.9);
}

.ai-input-row input[type="text"]:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(55, 35, 69, 0.1);
}

.ai-send-btn {
  flex: 0 0 auto;
  padding: 10px 18px;
  font-weight: 600;
  border-radius: 12px;
  white-space: nowrap;
  min-width: 70px;
}

.ai-image-badge {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 6px;
  padding-left: 52px;
  line-height: 1.3;
}

/* Chat bubbles */
.ai-message {
  position: relative;
  max-width: 85%;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.5;
  word-wrap: break-word;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
  transition: opacity 0.2s ease;
}

.ai-message.system {
  align-self: flex-start;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(55, 35, 69, 0.12);
  color: #1f2937;
}

.ai-message.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #4a2c5f, #372345);
  color: #ffffff;
  box-shadow: 0 3px 12px rgba(55, 35, 69, 0.25);
}

.ai-message strong {
  font-weight: 600;
  color: inherit;
}

.ai-message .muted {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 6px;
}

/* Per-message delete button – subtle in top-right corner */
.ai-delete-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  border-radius: 999px;
  border: none;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.08);
  color: #6b7280;
  opacity: 0.7;
  transition: all 0.15s ease;
}

.ai-message:hover .ai-delete-btn {
  opacity: 1;
}

.ai-message.user .ai-delete-btn {
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
}

.ai-delete-btn:hover {
  background: rgba(15, 23, 42, 0.15);
  transform: scale(1.1);
}

.ai-message.user .ai-delete-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* AI empty state */
#aiConversationsEmpty {
  padding: 20px 12px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* AI messages empty state */
.ai-messages:has(.ai-message.system:only-child) {
  justify-content: center;
  align-items: center;
}

.ai-message.system:only-child {
  max-width: 90%;
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, rgba(221, 200, 255, 0.15), rgba(244, 237, 255, 0.25));
  border: 1px dashed rgba(55, 35, 69, 0.2);
}

/* Mobile layout for AI */
@media (max-width: 700px) {
  .ai-layout {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  /* Show main conversation first on small screens */
  #section-ai > .ai-layout > .card:last-child {
    order: 1;
    min-height: 320px;
    max-height: 400px;
  }

  .ai-sidebar {
    order: 2;
    max-height: unset;
    margin-top: 0;
  }

  .ai-messages {
    padding: 10px 6px;
    gap: 8px;
  }

  .ai-message {
    max-width: 90%;
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .ai-input-wrapper {
    padding: 10px 6px 6px;
  }

  .ai-input-row {
    gap: 6px;
  }

  .ai-attach-btn {
    min-width: 40px;
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .ai-input-row input[type="text"] {
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  .ai-send-btn {
    padding: 8px 14px;
    font-size: 0.9rem;
    min-width: 60px;
  }

  .ai-image-badge {
    font-size: 0.7rem;
    padding-left: 46px;
    margin-top: 4px;
  }

  #section-ai {
    padding: 10px;
  }
}

/* ---------- Shop tab ---------- */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.shop-card-icon {
  width: 34px;
  height: 34px;
  border-radius: 14px;
  background: #e0f2fe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  overflow: hidden;
}

.shop-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.shop-card-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #111827;
}

.shop-card-url {
  display: block;
  margin-top: 2px;
  font-size: 0.8rem;
  color: #6b7280;
  word-break: break-all;
}

.shop-card-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.shop-card-actions button {
  font-size: 0.75rem;
}

@media (max-width: 720px) {
  .shop-grid {
    grid-template-columns: 1fr;
  }
}

/* Bottom navigation – respect safe area (nav bar / gesture bar) */
.tab-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 16px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(135deg, #6a4bc3 0%, #1b102b 100%);
  display: flex;
  justify-content: center;
  z-index: 20;
}

/* Bottom nav: 2 rows max, up to 4 per row */
.tab-bar-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)); /* 4 columns = 2 rows for 7 tabs */
  column-gap: 4px;
  row-gap: 4px;
  width: 100%;
  max-width: 900px;
}

/* 5-tab bar: Home, AI, Cal, Shop, Settings – single row, short labels so it fits */
.tab-bar-five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.tab-bar-five .tab-btn {
  font-size: 0.7rem;
  padding: 2px 4px;
  gap: 2px;
  min-width: 0;
}

.tab-bar-five .tab-btn span.icon {
  font-size: 0.95rem;
}

/* Slightly tighter tabs so 4 per row fits on phones */
.tab-btn {
  width: 100%;
  border-radius: 999px;
  border: none;
  padding: 4px 0;
  background: transparent;
  color: #e5e7eb;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  text-align: center;
  min-width: 0;
}

.tab-btn span.icon {
  font-size: 1rem;
}

.tab-btn .tab-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tab-btn.active {
  background: #f9fafb;
  color: #111827;
}

/* Responsive tweaks – main content above bottom nav and safe area */
@media (max-width: 600px) {
  main {
    padding: 10px 10px 90px;
    padding-bottom: calc(90px + env(safe-area-inset-bottom));
  }
}



/* ---------- Onboarding / Auth overlay with paw watermark ---------- */

/* Full-screen onboarding overlay */
.onboarding-overlay{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;

  color:#fff;
  background: radial-gradient(circle at top, #6a4bc3 0, #1b102b 55%, #08050d 100%);

  /* Prevent weird WebView "shrink" behaviour */
  overflow: hidden;

  /* Prevent double-tap zoom on iPad (App Store Guideline 4.0) */
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;

  /* Safe areas on all sides (notch, Dynamic Island, home indicator, landscape) */
  padding-top: calc(14px + env(safe-area-inset-top));
  padding-right: max(14px, env(safe-area-inset-right));
  padding-bottom: calc(14px + env(safe-area-inset-bottom));
  padding-left: max(14px, env(safe-area-inset-left));
}

/* Paw watermark behind the slides */
.onboarding-overlay::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:url("paw-logo-white-bold.svg");
  background-repeat:no-repeat;
  background-position:center 42%;
  background-size:320px 320px;
  opacity:0.18;
  pointer-events:none;
}

/* The panel (the "box") - force an explicit height so Android WebView can't collapse it */
.onboarding-inner{
  position: relative;
  z-index: 1;

  width: min(560px, calc(100% - 28px));
  max-width: 560px;

  /* Hard height: account for top and bottom safe areas (iOS notch, home indicator) */
  height: calc(100vh - 28px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  height: calc(100dvh - 28px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  min-height: 520px;
  max-height: calc(100vh - 28px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  max-height: calc(100dvh - 28px - env(safe-area-inset-top) - env(safe-area-inset-bottom));

  display:flex;
  flex-direction:column;

  padding: 24px 22px 16px;
  border-radius: 24px;

  /* Avoid backdrop-filter (can render oddly in some WebViews) */
  background: rgba(0,0,0,0.38);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 20px 55px rgba(0,0,0,0.45);

  overflow:hidden; /* slide body scrolls, not the whole panel */
}

/* Slide content scrolls inside the panel */
.onboarding-slide{
  flex: 1 1 auto;
  min-height: 0;              /* critical for flex + overflow on mobile */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 10px;
  position: relative;
  z-index: 1;
}

.onboarding-slide h2{
  margin:0 0 8px;
  font-size:1.6rem;
}
.onboarding-slide p{
  margin:0;
  font-size:0.95rem;
  opacity:0.9;
}

/* Password field with visibility toggle */
.auth-password-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.auth-password-wrap input {
  flex: 1;
  padding-right: 44px;
}
.auth-password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  font-size: 1.1rem;
  opacity: 0.8;
  color: inherit;
}
.auth-password-toggle:hover { opacity: 1; }

/* Footer stays visible at the bottom */
.onboarding-footer{
  flex: 0 0 auto;
  margin-top: 10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  position: relative;
  z-index: 1;

  padding-top: 10px;
  padding-bottom: calc(6px + env(safe-area-inset-bottom));
}

.onboarding-dots span{
  width:8px;
  height:8px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.6);
  margin-right:4px;
}
.onboarding-dots span.active{
  background:#fff;
}

.onboarding-nav {
  display: flex;
  gap: 28px;
}
.onboarding-nav button{
  min-width: 80px;
  font-size: 0.9rem;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  color:#fff;
  border:1px solid rgba(255,255,255,0.24);
  /* Prevent double-tap zoom when tapping Back/Next quickly (iPad/App Store) */
  touch-action: manipulation;
}
.onboarding-nav button:active{ transform: scale(0.98); }
.onboarding-nav button:focus{
  outline: 2px solid rgba(255,255,255,0.65);
  outline-offset: 2px;
}

/* Auth form inside onboarding */
#authForm{
  margin-top:10px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
#authForm input{
  width:100%;
  padding:10px 12px;
  border-radius:10px;
  border:none;
  font-size:0.95rem;
}
#authForm button[type="submit"],
#authForm #createAccountBtn,
#applyPromoBtn{
  border-radius:999px;
  border:none;
  padding:10px 14px;
  font-size:0.95rem;
}

.promo-block{ margin-top:8px; }
.promo-block label { color: #fff; }
.promo-row{ display:flex; gap:6px; margin-top:4px; }
.promo-message{ font-size:0.8rem; margin-top:4px; color: rgba(255,255,255,0.95); }

/* Onboarding: no grey text – use white, black or blue for readability (Guideline 4.0) */
.onboarding-overlay .muted,
.onboarding-overlay p.muted,
.onboarding-overlay small.muted {
  color: rgba(255,255,255,0.95);
}
.onboarding-overlay #authForm input {
  background: rgba(255,255,255,0.95);
  color: #111;
}
.onboarding-overlay #authForm input::placeholder {
  color: #374151;
}
.onboarding-overlay #authForm button[type="submit"],
.onboarding-overlay #authForm #createAccountBtn {
  background: #3b82f6;
  color: #fff;
}
.onboarding-overlay #authForm button[type="submit"]:disabled,
.onboarding-overlay #authForm #createAccountBtn:disabled,
.onboarding-overlay .auth-primary-btn:disabled,
.onboarding-overlay .auth-secondary-btn:disabled {
  background: rgba(255,255,255,0.3);
  color: #111;
}
/* Auth button hierarchy: Create account primary, Sign in secondary (12–16px spacing, WCAG contrast) */
.onboarding-overlay .auth-buttons-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
  width: 100%;
}
.onboarding-overlay .auth-primary-btn {
  width: 100%;
  border-radius: 999px;
  border: none;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: 500;
  background: #3b82f6;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}
.onboarding-overlay .auth-primary-btn:hover {
  background: #2563eb;
}
.onboarding-overlay .auth-primary-btn:active {
  transform: scale(0.99);
}
.onboarding-overlay .auth-secondary-btn {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: 500;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.onboarding-overlay .auth-secondary-btn:hover {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.05);
}
.onboarding-overlay .auth-secondary-btn:active {
  background: rgba(255,255,255,0.1);
  transform: scale(0.99);
}
.onboarding-overlay #applyPromoBtn {
  background: rgba(255,255,255,0.2);
  color: #fff;
}
.onboarding-overlay .link-button {
  color: #93c5fd;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}
.onboarding-overlay .link-button:hover { color: #bfdbfe; }

/* Post-signup choice & subscription: cards on dark overlay – ensure no disappeared text */
.onboarding-overlay .card {
  background: #fff;
  color: #111;
  border-radius: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(0,0,0,0.08);
}
.onboarding-overlay .card .muted,
.onboarding-overlay .card p.muted,
.onboarding-overlay .card .card-subline,
.onboarding-overlay .subscription-paywall-card .card-subline,
.onboarding-overlay .subscription-paywall-card .muted {
  color: #374151;
}
.onboarding-overlay .card .join-family-row input,
.onboarding-overlay #postSignupFamilyCode {
  background: #f9fafb;
  color: #111;
  border: 1px solid #e5e7eb;
  padding: 8px 12px;
  border-radius: 8px;
}
.onboarding-overlay .card .join-family-row input::placeholder,
.onboarding-overlay #postSignupFamilyCode::placeholder {
  color: #6b7280;
}
/* Cancel / ghost buttons on dark purple (outside cards) – use white so they don’t disappear */
.onboarding-overlay #postSignupChoice .btn-ghost,
.onboarding-overlay .onboarding-slide > .btn-ghost {
  color: rgba(255,255,255,0.95);
}
.onboarding-overlay #postSignupChoice .btn-ghost:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}
/* Subscription card: Back / Cancel / Restore visible on white card */
.onboarding-overlay .subscription-paywall-card .btn-secondary,
.onboarding-overlay .subscription-paywall-card .btn-ghost {
  background: #f3f4f6;
  color: #111;
}
.onboarding-overlay .subscription-paywall-card .btn-ghost {
  background: transparent;
  color: #374151;
}
.onboarding-overlay .subscription-paywall-card .btn-ghost:hover {
  background: rgba(0,0,0,0.05);
}
.onboarding-overlay #postSignupFamilyStatus,
.onboarding-overlay .promo-message {
  color: #374151;
}

/* Small screens */
@media (max-width: 480px){
  .onboarding-inner{
    width: calc(100% - 24px);
    height: calc(100vh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    min-height: 460px;
    padding: 22px 18px 16px;
    border-radius: 22px;
  }
  .onboarding-slide h2{
    font-size:1.55rem;
    line-height:1.15;
  }
}

/* ---------- Family sharing card ---------- */
.family-card {
  margin: 12px 0 20px;
}

.family-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  margin-bottom: 4px;
}

.family-code-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
}

.family-code-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  margin-top: 2px;
}

.family-code-placeholder {
  color: #9ca3af;
}

.join-family-form {
  margin-top: 6px;
}

.join-family-row {
  display: flex;
  gap: 8px;
  margin-top: 4px;
  min-width: 0; /* Allow flex container to shrink */
}

.join-family-row input {
  flex: 1;
  min-width: 0; /* Allow input to shrink below content size */
}

.join-family-row button {
  flex-shrink: 0; /* Prevent button from shrinking */
  white-space: nowrap; /* Keep button text on one line */
}

/* Text-style button (used for "Join a family with a code") */
.btn-text {
  transition: transform 0.12s ease, background 0.12s ease;
  background: none;
  border: none;
  padding: 0;
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--purple);
  cursor: pointer;
  text-decoration: underline;
}

@media (max-width: 600px) {
  .family-card {
    margin: 8px 0 16px;
  }
}

.text-list {
  margin: 6px 0 4px;
  padding-left: 18px;
  font-size: 0.9rem;
  color: #4b5563;
}
.text-list li + li {
  margin-top: 2px;
}





/* Pet-friendly places map */
.places-map-wrapper {
  margin-top: 10px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
  background: linear-gradient(135deg, #a4f3d5, #e4fff1);
  min-height: 260px;
}

.places-map-canvas {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}

@media (max-width: 600px) {
  .places-map-canvas {
    height: 260px;
  }
}

/* Pet-friendly places filters */
.places-filter-row {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.places-filter-pill {
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.8rem;
  border: 1px solid rgba(55, 35, 69, 0.18);
  background: rgba(255, 255, 255, 0.75);
  color: #372345;
  cursor: pointer;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.14);
  transition: background 0.18s ease, box-shadow 0.18s ease,
    transform 0.12s ease;
}

.places-filter-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.places-filter-pill.is-active {
  background: linear-gradient(135deg, #a4f3d5, #e4fff1);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.2);
}


.places-filters {
  display: flex;
  gap: 8px;
  margin: 10px 0;
}

.places-filter-btn {
  padding: 6px 12px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.15);
  cursor: pointer;
  font-size: 0.9rem;
}

.places-filter-btn:hover {
  background: #f1f1f1;
}

/* Pet-friendly places disclaimer text */
.places-disclaimer {
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}

/* Pet-friendly places map view selector */
.places-view-row {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.places-view-label {
  font-size: 0.75rem;
}

.places-view-select {
  flex: 0 0 auto;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(55, 35, 69, 0.2);
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
}


/* ---------- Family members list (owner) ---------- */
.member-list {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.member-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.75);
}

.member-name {
  font-weight: 600;
}

.member-meta {
  margin-top: 2px;
  font-size: 0.8rem;
  color: var(--muted);
}

.member-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}



/* Web-only: store buttons under the sign-in form */
.web-only-store-panel {
  margin-top: 6px;
}

/* Clear space ~1/3 of badge height between badges per guidelines */
.web-store-buttons {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  align-items: center;
}

.web-store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 0.8rem;
  text-decoration: none;
  white-space: nowrap;
}

.web-store-btn:hover {
  background: rgba(255, 255, 255, 0.24);
}

/* Official store badges - identical size, no flex growth/shrink */
.web-store-btn.web-store-badge {
  padding: 0;
  border: none;
  background: transparent;
  display: inline-block;
  flex: 0 0 200px;
  width: 200px;
  height: 60px;
}

.web-store-btn.web-store-badge:hover {
  background: transparent;
  opacity: 0.9;
}

.web-store-badge-inner {
  display: block;
  width: 200px;
  height: 60px;
  overflow: hidden;
  line-height: 0;
}

.web-store-badge-img {
  width: 200px;
  height: 60px;
  object-fit: contain;
  object-position: center;
  display: block;
  vertical-align: top;
}

@media (max-width: 480px) {
  .web-store-btn.web-store-badge {
    flex: 0 0 180px;
    width: 180px;
    height: 54px;
  }
  .web-store-badge-inner {
    width: 180px;
    height: 54px;
  }
  .web-store-badge-img {
    width: 180px;
    height: 54px;
  }
  .web-store-buttons {
    gap: 24px;
  }
}


/* --- Insurance document viewer --- */
.doc-viewer{
  margin-top: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 10px;
  background: rgba(0,0,0,0.18);
}
.doc-viewer-header{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
}
.doc-viewer-title{
  font-weight: 700;
  font-size: 14px;
  opacity: 0.95;
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#docViewerFrame{
  width:100%;
  height: 520px;
  border: 0;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
}

/* Lost Mode: back button (iOS friendly) */
.lost-back-btn{
  appearance:none;
  -webkit-appearance:none;
  border: 1px solid rgba(38, 20, 68, 0.25);
  background: rgba(255, 255, 255, 0.92);
  color: #261444;
  padding: 8px 10px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  margin-right: 10px;
  cursor: pointer;
  flex: 0 0 auto;
}
.lost-back-btn:active{
  transform: scale(0.99);
}
@media (max-width: 480px){
  .lost-back-btn{
    padding: 8px 10px;
    border-radius: 14px;
  }
}


/* --- Pet Tags region chooser + quantity layout --- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 820px) {
  .grid-3 { grid-template-columns: 1fr; }
}

.home-card.home-card-disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.home-card-subtle {
  font-size: 12px;
  opacity: 0.85;
}
