/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.12),
    transparent
  );
  opacity: 0;
  transition: opacity 0.2s ease;
}

.btn:hover::after {
  opacity: 1;
}

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

.btn--large {
  height: 56px;
  padding: 0 var(--space-xl);
  font-size: 16px;
  border-radius: var(--radius-lg);
}

.btn--medium {
  height: 48px;
  padding: 0 var(--space-lg);
  font-size: 15px;
  border-radius: var(--radius-md);
}

.btn--small {
  height: 36px;
  padding: 0 14px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.btn--primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-button);
}

.btn--primary:hover {
  box-shadow: var(--shadow-button-hover);
  transform: translateY(-2px);
}

.btn--secondary {
  background: var(--color-surface);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn--secondary:hover {
  background: rgba(91, 168, 108, 0.06);
  transform: translateY(-2px);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--color-primary-light);
  color: var(--color-primary);
}

.btn--accent {
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}

.btn--accent:hover {
  box-shadow: 0 6px 20px rgba(232, 115, 74, 0.45);
  transform: translateY(-2px);
}

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

.btn--outline {
  background: transparent;
  border: 1.5px solid var(--color-border);
  color: var(--color-text-secondary);
}

.btn--outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(91, 168, 108, 0.04);
}

.btn--block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ========== CARDS ========== */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: all 0.3s var(--ease-out);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card--pet {
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  border: none;
}

.card--article {
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 0;
  border: none;
}

.card--article .card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.card--article:hover .card__image {
  transform: scale(1.04);
}

.card--article .card__content {
  padding: var(--space-lg);
}

.card--glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* ========== FEATURE CARDS (landing) ========== */
.feature-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: all 0.35s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--card-accent, var(--gradient-primary));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card__icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.feature-card__icon svg {
  color: #fff;
}

.feature-card__icon--green {
  background: var(--gradient-primary);
  --card-accent: var(--gradient-primary);
}
.feature-card__icon--teal {
  background: linear-gradient(135deg, #4a9b9b, #6bc4c4);
  --card-accent: linear-gradient(135deg, #4a9b9b, #6bc4c4);
}
.feature-card__icon--orange {
  background: var(--gradient-accent);
  --card-accent: var(--gradient-accent);
}
.feature-card__icon--purple {
  background: linear-gradient(135deg, #8b5cf6, #a78bfa);
  --card-accent: linear-gradient(135deg, #8b5cf6, #a78bfa);
}
.feature-card__icon--blue {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  --card-accent: linear-gradient(135deg, #3b82f6, #60a5fa);
}
.feature-card__icon--gold {
  background: var(--gradient-gold);
  --card-accent: var(--gradient-gold);
}

.feature-card h4 {
  font-size: 19px;
  margin-bottom: var(--space-sm);
}

.feature-card p {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.55;
}

/* ========== STEP CARDS ========== */
.step-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  text-align: center;
  transition: all 0.35s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.step-card__visual {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-xl);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  color: #fff;
  box-shadow: var(--shadow-button);
}

.step-card__number {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 900;
  color: var(--color-primary);
  background: rgba(91, 168, 108, 0.1);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  letter-spacing: 0.02em;
}

.step-card h4 {
  font-size: 20px;
  margin-bottom: var(--space-sm);
}

.step-card p {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

@media (min-width: 768px) {
  .step-card {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg) var(--space-xl);
    text-align: left;
  }
  .step-card__visual {
    margin: 0;
    flex-shrink: 0;
  }
  .step-card__number {
    margin: 0 0 var(--space-sm) 0;
  }
}

/* ========== TESTIMONIAL CARDS ========== */
.testimonial-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: all 0.3s var(--ease-out);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.testimonial-card__stars {
  display: flex;
  gap: 3px;
  margin-bottom: var(--space-md);
  color: var(--color-gold);
}

.testimonial-card__text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-text);
  margin-bottom: var(--space-lg);
  font-style: italic;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}

.testimonial-card__author strong {
  display: block;
  font-size: 15px;
  color: var(--color-text);
  font-weight: 700;
}

.testimonial-card__author span {
  font-size: 13px;
  color: var(--color-text-secondary);
}

/* ========== PRICING CARDS ========== */
.pricing-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--color-border);
  text-align: center;
  position: relative;
  transition: all 0.3s var(--ease-out);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.pricing-card--featured {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
}

.pricing-card--featured:hover {
  transform: scale(1.02) translateY(-4px);
}

.pricing-card h4 {
  font-size: 20px;
  margin-bottom: var(--space-sm);
}

.pricing-card__price {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 900;
  color: var(--color-text);
  margin: var(--space-md) 0 var(--space-lg);
  line-height: 1;
}

.pricing-card__price span {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.pricing-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-xl);
  text-align: left;
}

.pricing-card__features li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--color-border-light);
}

.pricing-card__features li:last-child {
  border-bottom: none;
}

.pricing-card__features li svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: #fff;
  padding: 5px 18px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 800;
  font-family: var(--font-heading);
  box-shadow: var(--shadow-button);
}

/* ========== BADGES ========== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-heading);
}

.badge--premium {
  background: var(--gradient-gold);
  color: #fff;
  box-shadow: 0 2px 8px rgba(245, 184, 0, 0.3);
}

.badge--verified {
  background: var(--gradient-primary);
  color: #fff;
}

.badge--outline {
  background: transparent;
  border: 1.5px solid var(--color-border);
  color: var(--color-text-secondary);
}

.badge--soft {
  background: rgba(91, 168, 108, 0.1);
  color: var(--color-primary-dark);
}

/* ========== AVATAR ========== */
.avatar {
  border-radius: 50%;
  object-fit: cover;
  background: var(--color-surface-alt);
  border: 2px solid var(--color-border-light);
}

.avatar--small {
  width: 36px;
  height: 36px;
}
.avatar--medium {
  width: 52px;
  height: 52px;
}
.avatar--large {
  width: 72px;
  height: 72px;
}
.avatar--xl {
  width: 96px;
  height: 96px;
}

/* ========== ANIMAL CHIPS ========== */
.animal-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: var(--space-md) var(--space-sm);
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  font-family: var(--font-heading);
}

.animal-chip:hover {
  border-color: var(--color-primary);
  background: rgba(91, 168, 108, 0.06);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.animal-chip__icon {
  color: var(--color-primary);
}

/* ========== LOADER ========== */
.loader {
  width: 24px;
  height: 24px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ========== TOAST ========== */
.toast {
  position: fixed;
  bottom: calc(var(--tab-bar-height) + var(--space-lg));
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: var(--color-text);
  color: #fff;
  padding: 14px var(--space-xl);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  z-index: 1000;
  opacity: 0;
  transition: all 0.35s var(--ease-out);
  max-width: 90vw;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast--error {
  background: var(--color-error);
}
.toast--success {
  background: var(--color-primary);
}

/* ========== MODAL ========== */
.app-modal.modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  width: auto;
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
  transform: none;
}
.app-modal.modal[aria-hidden="true"] { display: none; }
.app-modal.modal[aria-hidden="false"],
.app-modal.modal--open { display: block; }

.app-modal .modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(27, 39, 30, 0.58);
  backdrop-filter: blur(5px);
}

.app-modal .modal__content {
  position: absolute;
  top: 50%;
  left: 50%;
  box-sizing: border-box;
  width: min(640px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 28px;
  border-radius: 24px;
  background: var(--color-surface);
  box-shadow: var(--shadow-xl);
  transform: translate(-50%, -50%);
}

.app-modal .modal__content > .modal__close {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 14px;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--color-text-secondary);
  cursor: pointer;
}

.app-modal .modal__content > .modal__close .ui-icon {
  width: 18px;
  height: 18px;
}

.app-modal .modal__content > .modal__close ~ h2,
.app-modal .modal__content > .modal__close ~ h3 {
  padding-right: 44px;
}

@media (max-width: 640px) {
  .app-modal .modal__content {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    padding: 22px 18px;
    border-radius: 20px;
  }
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(45, 41, 38, 0.55);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--color-surface);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  width: 100%;
  max-width: var(--max-content-width);
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-xl);
  transform: translateY(100%);
  transition: transform 0.35s var(--ease-out);
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

/* ========== SKELETON ========== */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--color-surface-alt) 25%,
    var(--color-border) 50%,
    var(--color-surface-alt) 75%
  );
  background-size: 200% 100%;
  animation: skeleton 1.5s ease infinite;
  border-radius: var(--radius-md);
}

@keyframes skeleton {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ========== QUICK ACTIONS ========== */
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: var(--space-lg) var(--space-sm);
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--color-border);
  text-decoration: none;
  color: var(--color-text);
  transition: all 0.25s var(--ease-out);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
}

.quick-action:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--qa-color, var(--color-primary));
}

.quick-action__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: var(--qa-bg, rgba(91, 168, 108, 0.1));
  color: var(--qa-color, var(--color-primary));
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========== WELLNESS CARDS ========== */
.wellness-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.wellness-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  text-align: center;
  border: 1.5px solid var(--color-border);
  transition: all 0.25s var(--ease-out);
}

.wellness-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.wellness-card__value {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 6px;
}

.wellness-card__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-secondary);
  font-family: var(--font-heading);
}

/* ========== EVENTS LIST ========== */
.events-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.event-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--color-border);
  transition: all 0.2s var(--ease-out);
}

.event-item:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-sm);
}

.event-item__date {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-heading);
  line-height: 1;
}

.event-item__date .day {
  font-size: 20px;
  font-weight: 900;
}

.event-item__date .month {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0.9;
}

.event-item__content h5 {
  font-size: 15px;
  margin-bottom: 2px;
}

.event-item__content p {
  font-size: 13px;
  color: var(--color-text-secondary);
}

/* ========== PROFILE MENU ========== */
.profile-menu {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  overflow: hidden;
  margin-bottom: var(--space-lg);
}

.profile-menu__item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 16px var(--space-lg);
  text-decoration: none;
  color: var(--color-text);
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s var(--ease-out);
  border: none;
  background: none;
  width: 100%;
  cursor: pointer;
  font-family: var(--font-body);
  border-bottom: 1px solid var(--color-border-light);
}

.profile-menu__item:last-child {
  border-bottom: none;
}

.profile-menu__item:hover {
  background: var(--color-surface-hover);
}

.profile-menu__item svg:last-child {
  margin-left: auto;
  color: var(--color-text-tertiary);
}

.profile-menu__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--pm-bg, rgba(91, 168, 108, 0.1));
  color: var(--pm-color, var(--color-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-menu--danger .profile-menu__item:hover {
  background: rgba(212, 87, 74, 0.06);
}

.profile-menu--danger .profile-menu__item span {
  color: var(--color-error);
}

/* ========== COMPARISON TABLE ========== */
.comparison-table {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.comparison-table__header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  background: var(--color-surface-alt);
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
}

.comparison-table__header .comparison-table__col {
  padding: var(--space-md) var(--space-sm);
  text-align: center;
}

.comparison-table__header .comparison-table__col--feature {
  text-align: left;
  padding-left: var(--space-lg);
}

.comparison-table__row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  border-bottom: 1px solid var(--color-border-light);
  font-size: 14px;
  transition: background 0.2s ease;
}

.comparison-table__row:last-child {
  border-bottom: none;
}

.comparison-table__row:hover {
  background: rgba(91, 168, 108, 0.02);
}

.comparison-table__col {
  padding: 14px var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.comparison-table__col--feature {
  justify-content: flex-start;
  padding-left: var(--space-lg);
  font-weight: 600;
  color: var(--color-text);
}

.comparison-table__col--us {
  color: var(--color-primary);
  background: rgba(91, 168, 108, 0.04);
}

.comparison-table__col--us svg {
  color: var(--color-primary);
}

.comparison-table__cross {
  color: var(--color-text-tertiary);
  font-size: 13px;
}

.comparison-table__logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--color-primary-dark);
}

.comparison-table__logo img {
  width: 24px;
  height: 24px;
  border-radius: 4px;
}

/* ========== STATS TICKER ========== */
.stats-ticker__number {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.stats-ticker__label {
  font-size: 12px;
  opacity: 0.75;
  font-weight: 500;
}

/* ========== MAP ILLUSTRATION ========== */
.map-illustration {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-xl);
  background: linear-gradient(
    160deg,
    #e8f5e9 0%,
    #e0f2f1 40%,
    #fff3e0 70%,
    #f3e5f5 100%
  );
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.map-illustration__base {
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 30% 25%,
      rgba(91, 168, 108, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 60%,
      rgba(74, 155, 155, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 50% 80%,
      rgba(245, 184, 0, 0.1) 0%,
      transparent 50%
    );
}

.map-illustration__pin {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  animation: pinBounce 3s ease-in-out infinite;
  z-index: 2;
}

.map-illustration__pin--red {
  background: linear-gradient(135deg, #ef4444, #f87171);
  animation-delay: 0s;
}
.map-illustration__pin--green {
  background: linear-gradient(135deg, #5ba86c, #7bc67a);
  animation-delay: 0.7s;
}
.map-illustration__pin--orange {
  background: linear-gradient(135deg, #e8734a, #ff9a7a);
  animation-delay: 1.4s;
}
.map-illustration__pin--purple {
  background: linear-gradient(135deg, #8b5cf6, #a78bfa);
  animation-delay: 2.1s;
}

.map-illustration__pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid rgba(91, 168, 108, 0.3);
  animation: radarPulse 3s ease-out infinite;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 640px) {
  .comparison-table__header,
  .comparison-table__row {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    font-size: 12px;
  }

  .comparison-table__col--feature {
    padding-left: var(--space-md);
  }

  .quick-actions-grid {
    gap: var(--space-sm);
  }

  .quick-action {
    padding: var(--space-md) var(--space-xs);
    font-size: 11px;
  }

  .quick-action__icon {
    width: 40px;
    height: 40px;
  }
}

/* ========== NOTIFICATION PANEL ========== */
.notification-panel {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.notification-panel--open {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}

.notification-panel__overlay {
  position: absolute;
  inset: 0;
  background: rgba(45, 41, 38, 0.4);
  backdrop-filter: blur(4px);
}

.notification-panel__dropdown {
  position: absolute;
  top: var(--header-height);
  right: var(--space-md);
  width: 360px;
  max-width: calc(100vw - var(--space-md) * 2);
  max-height: 70vh;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(-8px);
  transition: transform 0.3s var(--ease-out);
}

.notification-panel--open .notification-panel__dropdown {
  transform: translateY(0);
}

.notification-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}

.notification-panel__header h4 {
  font-size: 16px;
  margin: 0;
}
.notification-panel__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.notification-panel__actions > [data-read-all] {
  border: 0;
  background: transparent;
  color: var(--color-primary-dark);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.notification-panel__actions > [data-notification-settings] {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--color-surface-alt);
  color: var(--color-text-secondary);
  cursor: pointer;
}
.notification-panel__actions > [data-notification-settings] .ui-icon { width: 17px; }

.notification-panel__close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--color-surface-alt);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  font-size: 16px;
}
.notification-panel__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 8px 12px 0;
}
.notification-panel__tabs button {
  padding: 9px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--color-text-secondary);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.notification-panel__tabs button[aria-selected="true"] {
  background: rgba(91, 168, 108, 0.11);
  color: var(--color-primary-dark);
}
.notification-history-item {
  display: flex;
  gap: 12px;
  padding: 14px;
  margin-bottom: 8px;
  border-radius: var(--radius-lg);
  background: var(--color-surface-alt);
}
.notification-history-item > div {
  min-width: 0;
}
.notification-history-item h5 {
  margin: 0 0 3px;
  font-size: 14px;
}
.notification-history-item p {
  margin: 0 0 7px;
  color: var(--color-text-secondary);
  font-size: 12px;
}
.notification-history-item strong {
  color: var(--color-primary-dark);
  font-size: 11px;
}

.notification-panel__list {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-sm);
}
.notification-panel__settings { overflow-y: auto; padding: 16px; }
.notification-settings-loading { padding: 28px 10px; color: var(--color-text-secondary); text-align: center; }
.notification-settings-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.notification-settings-heading span { color: var(--color-primary-dark); font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.notification-settings-heading h3 { margin: 4px 0 0; font-size: 19px; }
.notification-settings-heading button { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid var(--color-border); border-radius: 10px; background: #fff; cursor: pointer; }
.notification-settings-native { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding: 12px; border: 1px solid color-mix(in srgb, var(--color-primary) 26%, var(--color-border)); border-radius: 13px; background: color-mix(in srgb, var(--color-primary) 7%, #fff); }
.notification-settings-native > div { display: grid; gap: 3px; }
.notification-settings-native strong { font-size: 12px; }
.notification-settings-native span { color: var(--color-text-secondary); font-size: 10px; line-height: 1.35; }
.notification-settings-native__actions { display: grid; flex: 0 0 auto; gap: 6px; }
.notification-settings-toggles { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.notification-settings-toggles label { display: flex; align-items: center; gap: 7px; min-height: 38px; padding: 7px 9px; border: 1px solid var(--color-border); border-radius: 11px; font-size: 11px; font-weight: 700; }
.notification-settings-toggles input { accent-color: var(--color-primary); }
.notification-settings-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 14px 0; }
.notification-settings-fields label { display: grid; gap: 5px; color: var(--color-text-secondary); font-size: 10px; font-weight: 700; }
.notification-settings-fields input,
.notification-settings-fields select { width: 100%; min-height: 38px; padding: 0 8px; border: 1px solid var(--color-border); border-radius: 10px; background: #fff; }

.notification-item {
  display: block;
  padding: 0;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-sm);
  transition: background 0.2s ease;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.notification-item__open {
  display: flex;
  gap: var(--space-md);
  width: 100%;
  padding: var(--space-md);
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: var(--radius-lg);
}
.notification-item__snooze {
  padding: 0 var(--space-md) var(--space-sm);
}
.notification-item__snooze > button {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--color-text-tertiary);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.notification-item__snooze > button .ui-icon {
  width: 14px;
  height: 14px;
}
.notification-item__snooze > div {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding-top: 5px;
}
.notification-item__snooze > div[hidden] {
  display: none;
}
.notification-item__snooze > div button {
  padding: 6px 8px;
  border: 1px solid var(--color-border);
  border-radius: 9px;
  background: var(--color-surface);
  color: var(--color-text-secondary);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.notification-item__snooze button:hover {
  color: var(--color-primary-dark);
  border-color: var(--color-primary-light);
  background: var(--color-surface-hover);
}
.notification-item--unread {
  background: rgba(91, 168, 108, 0.08);
}
.notification-item__content {
  flex: 1;
  min-width: 0;
}
.notification-item__dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--color-primary);
}

.notification-item:hover {
  background: var(--color-surface-hover);
}

.notification-item--empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-xl);
  color: var(--color-text-secondary);
}

.notification-item__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(91, 168, 108, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.notification-item__content h5 {
  font-size: 14px;
  margin-bottom: 2px;
}

.notification-item__content p {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-bottom: 4px;
}

.notification-item__time {
  font-size: 12px;
  color: var(--color-text-tertiary);
}

/* ========== HEADER COMPONENTS ========== */
.badge-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--color-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-bg);
}

/* Pet gallery and memorial mode */
.pet-gallery { max-width: 1180px; margin: 0 auto; padding: 24px 20px 100px; }
.pet-gallery__hero { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; padding:32px; border-radius:28px; background:linear-gradient(135deg,#eef8f0,#fff); margin-bottom:24px; }
.pet-gallery__hero span { color:var(--color-primary-dark); font-size:12px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.pet-gallery__hero h1 { margin:6px 0 8px; font-size:clamp(30px,5vw,52px); }
.pet-gallery__hero p { max-width:620px; color:var(--color-text-secondary); }
.pet-gallery__grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.pet-gallery-card { overflow:hidden; border:1px solid var(--color-border); border-radius:22px; background:var(--color-surface); box-shadow:0 10px 30px rgba(24,40,28,.06); }
.pet-gallery-card img,.pet-gallery-card video { display:block; width:100%; aspect-ratio:4/3; object-fit:cover; background:#e7e9e7; }
.pet-gallery-card>div { padding:14px 16px 16px; }
.pet-gallery-card span { color:var(--color-text-tertiary); font-size:12px; }
.pet-gallery-card p { margin:6px 0 0; }
.pet-gallery-card button { margin-top:10px; padding:0; border:0; background:none; color:var(--color-danger); font:inherit; cursor:pointer; }
.pet-gallery-card__missing,.pet-gallery__empty { min-height:220px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; color:var(--color-text-secondary); text-align:center; }
.pet-gallery__empty { grid-column:1/-1; border:1px dashed var(--color-border); border-radius:24px; }
.pet-gallery__memory { margin:0 0 24px; padding:20px 24px; border-left:3px solid #8b8f8c; border-radius:0 18px 18px 0; background:#f3f4f3; color:#464a47; font-size:18px; }
.pet-gallery__ai-placeholder { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:16px; margin:0 0 24px; padding:20px 24px; border:1px dashed #9da19e; border-radius:20px; background:#f7f8f7; }
.pet-gallery__ai-placeholder>.ui-icon { width:30px; height:30px; color:#676c68; }
.pet-gallery__ai-placeholder span { color:#676c68; font-size:11px; font-weight:800; letter-spacing:.07em; text-transform:uppercase; }
.pet-gallery__ai-placeholder h2 { margin:4px 0 5px; font-size:20px; }
.pet-gallery__ai-placeholder p { max-width:720px; margin:0; color:var(--color-text-secondary); line-height:1.5; }
.pet-gallery__ai-placeholder small { display:block; margin-top:7px; color:var(--color-text-tertiary); }
.pet-gallery-form label { display:grid; gap:7px; margin:16px 0; }
.pet-gallery-form input,.pet-gallery-form textarea { width:100%; }
.pet-gallery--memorial { filter:grayscale(.72); }
.pet-gallery--memorial .pet-gallery__hero { background:linear-gradient(135deg,#e6e7e6,#fafafa); }
.pet-overview--memorial .pet-overview__hero img { filter:grayscale(1); }
.pet-overview--memorial .pet-overview__hero { background:linear-gradient(135deg,#e7e8e7,#fafafa); }
.pet-memorial-note { display:flex; gap:16px; align-items:flex-start; margin:18px 0; padding:20px 24px; border-radius:20px; background:#f0f1f0; color:#505450; }
.pet-memorial-note .ui-icon { width:28px; height:28px; flex:0 0 auto; }
.pet-memorial-note p { margin:5px 0 0; }
.pet-delete-permanent { margin-top:18px; padding-top:16px; border-top:1px solid var(--color-border); }
.pet-delete-permanent summary { color:var(--color-danger); cursor:pointer; font-weight:700; }
.pet-delete-permanent label { display:grid; gap:7px; margin:14px 0; }
@media (max-width:800px) { .pet-gallery__grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .pet-gallery__hero { align-items:flex-start; flex-direction:column; } }
@media (max-width:520px) { .pet-gallery { padding-inline:14px; } .pet-gallery__grid { grid-template-columns:1fr; } .pet-gallery__hero { padding:24px 20px; } .pet-gallery__ai-placeholder { grid-template-columns:1fr; padding:20px; } .pet-gallery__ai-placeholder .btn { width:100%; } }

/* Documents, legal guide and travel */
.pet-documents,.law-guide,.travel-guide { max-width:1180px; margin:0 auto; padding:24px 20px 100px; }
.pet-documents__hero,.law-guide__hero,.travel-guide__hero { display:flex; justify-content:space-between; align-items:center; gap:28px; padding:32px; border-radius:28px; background:linear-gradient(135deg,#eaf6ed,#fff); }
.pet-documents__hero>div:first-child,.law-guide__hero>div:first-child,.travel-guide__hero>div:first-child { max-width:720px; }
.pet-documents__hero span,.law-guide__hero>div:first-child>span,.travel-guide__hero span,.travel-packing>span,.law-sources>span { color:var(--color-primary-dark); font-size:12px; font-weight:800; letter-spacing:.07em; text-transform:uppercase; }
.pet-documents__hero h1,.law-guide__hero h1,.travel-guide__hero h1 { margin:6px 0 10px; font-size:clamp(32px,5vw,54px); }
.pet-documents__hero p,.law-guide__hero p,.travel-guide__hero p { color:var(--color-text-secondary); }
.pet-documents__score,.law-guide__stamp { min-width:180px; padding:20px; border-radius:20px; background:#fff; box-shadow:0 12px 36px rgba(26,55,32,.08); text-align:center; }
.pet-documents__score strong { display:block; font-size:42px; color:var(--color-primary-dark); }
.pet-documents__score span,.law-guide__stamp>* { display:block; }
.law-guide__stamp .ui-icon { width:32px; height:32px; margin:0 auto 8px; color:var(--color-primary); }
.law-guide__stamp small { margin-top:5px; color:#956a19; }
.legal-review-note { display:flex; gap:14px; margin:18px 0; padding:16px 20px; border-radius:18px; background:#fff8e8; color:#76561a; }
.legal-review-note .ui-icon { flex:0 0 auto; }
.legal-review-note p { margin:3px 0 0; }
.pet-documents__situations,.law-guide__quick { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin:20px 0; }
.pet-documents__situations a,.law-guide__quick a { display:flex; align-items:center; gap:14px; padding:18px 20px; border:1px solid var(--color-border); border-radius:18px; background:#fff; color:inherit; text-decoration:none; }
.pet-documents__situations a span { flex:1; display:grid; gap:3px; }
.pet-documents__situations small { color:var(--color-text-secondary); }
.pet-documents__list { display:grid; gap:14px; }
.pet-document-card { display:grid; grid-template-columns:auto 1fr auto; gap:18px; align-items:start; padding:22px; border:1px solid var(--color-border); border-radius:22px; background:#fff; }
.pet-document-card__icon { display:grid; place-items:center; width:44px; height:44px; border-radius:14px; background:#f1f3f1; }
.pet-document-card--ready .pet-document-card__icon { color:#26773b; background:#eaf7ed; }
.pet-document-card--expired .pet-document-card__icon { color:#a06a11; background:#fff5dd; }
.pet-document-card__copy>span { color:var(--color-text-tertiary); font-size:10px; font-weight:800; }
.pet-document-card h2 { margin:3px 0 5px; font-size:20px; }
.pet-document-card p { color:var(--color-text-secondary); }
.pet-document-card details { margin-top:9px; font-size:13px; }
.pet-document-card__actions { display:grid; justify-items:end; gap:8px; }
.pet-document-card__actions b { padding:5px 9px; border-radius:999px; background:#f1f3f1; font-size:11px; }
.pet-document-card__actions button { border:0; background:none; color:var(--color-primary-dark); font:inherit; font-size:13px; cursor:pointer; }
.pet-document-card__actions button:last-child:not(:first-child) { color:var(--color-danger); }
.pet-document-form label { display:grid; gap:6px; margin:14px 0; }
.pet-document-form__dates { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.law-guide__quick { grid-template-columns:repeat(3,minmax(0,1fr)); }
.law-guide__grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.law-guide__grid article { display:flex; gap:16px; padding:24px; border:1px solid var(--color-border); border-radius:22px; background:#fff; }
.law-guide__grid article>i { display:grid; place-items:center; width:46px; height:46px; flex:0 0 auto; border-radius:15px; background:#edf7ef; color:var(--color-primary-dark); }
.law-guide__grid h2 { margin-bottom:7px; font-size:21px; }
.law-guide__grid p,.law-guide__grid li { color:var(--color-text-secondary); }
.law-guide__grid ul { margin:12px 0 0; padding-left:18px; }
.law-guide__grid li+li { margin-top:7px; }
.law-sources { margin-top:24px; padding:28px; border-radius:24px; background:#f2f5f2; }
.law-sources h2 { margin:6px 0 18px; }
.law-sources>div { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.law-sources a { display:grid; gap:3px; padding:15px; border-radius:14px; background:#fff; color:inherit; text-decoration:none; }
.law-sources small { color:var(--color-text-secondary); }
.travel-guide__controls { display:grid; gap:16px; margin:20px 0; }
.travel-guide__controls label { display:grid; grid-template-columns:auto minmax(220px,360px); align-items:center; gap:14px; }
.travel-guide__controls>div { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.travel-guide__controls button { display:grid; gap:5px; padding:16px; border:1px solid var(--color-border); border-radius:16px; background:#fff; color:inherit; text-align:left; cursor:pointer; }
.travel-guide__controls button.active { border-color:var(--color-primary); background:#edf8ef; box-shadow:0 0 0 2px rgba(91,168,108,.12); }
.travel-guide__controls small { color:var(--color-text-secondary); }
.travel-readiness { display:grid; grid-template-columns:220px 1fr; gap:20px; align-items:start; }
.travel-readiness__score { position:sticky; top:90px; display:grid; gap:8px; padding:24px; border-radius:22px; background:#183d25; color:#fff; }
.travel-readiness__score strong { font-size:48px; }
.travel-readiness__score i { display:block; height:8px; border-radius:99px; background:linear-gradient(90deg,#91d79f var(--progress),rgba(255,255,255,.22) var(--progress)); }
.travel-readiness__list { display:grid; gap:10px; }
.travel-readiness__list article { display:grid; grid-template-columns:auto 1fr auto; gap:14px; align-items:center; padding:18px; border:1px solid var(--color-border); border-radius:18px; background:#fff; }
.travel-readiness__list article>i { color:#9b751c; }
.travel-readiness__list article.is-ready>i { color:#2e8143; }
.travel-readiness__list p { margin:4px 0 0; color:var(--color-text-secondary); }
.travel-checklist,.travel-packing { margin-top:22px; padding:26px; border-radius:24px; background:#f2f5f2; }
.travel-checklist ol { display:grid; gap:10px; padding-left:22px; }
.travel-checklist>p { margin-top:18px; color:var(--color-text-secondary); }
.travel-packing>div { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-top:16px; }
.travel-packing article { padding:18px; border-radius:16px; background:#fff; }
.travel-packing article>.ui-icon { color:var(--color-primary-dark); }
.travel-packing article strong { display:block; margin:9px 0 5px; }
.travel-packing article p { color:var(--color-text-secondary); font-size:13px; }
@media(max-width:800px){.pet-documents__hero,.law-guide__hero,.travel-guide__hero{align-items:flex-start;flex-direction:column}.pet-documents__situations,.law-guide__quick,.law-guide__grid,.law-sources>div{grid-template-columns:1fr}.pet-document-card{grid-template-columns:auto 1fr}.pet-document-card__actions{grid-column:2;justify-items:start}.travel-guide__controls>div,.travel-packing>div{grid-template-columns:repeat(2,minmax(0,1fr))}.travel-readiness{grid-template-columns:1fr}.travel-readiness__score{position:static}}
@media(max-width:520px){.pet-documents,.law-guide,.travel-guide{padding-inline:14px}.pet-documents__hero,.law-guide__hero,.travel-guide__hero{padding:23px 19px}.pet-document-card{grid-template-columns:1fr}.pet-document-card__actions{grid-column:auto;justify-items:start}.pet-document-form__dates,.travel-guide__controls>div,.travel-packing>div{grid-template-columns:1fr}.travel-guide__controls label{grid-template-columns:1fr}}
