.account-page {
  background: #fbfbf8;
  min-height: 100vh;
}

.account-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 20px 64px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: start;
}

.account-nav {
  position: sticky;
  top: 88px;
  background: white;
  border: 1px solid var(--grey-200);
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--shadow-sm);
}

.account-nav__title {
  margin: 4px 8px 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey-500);
}

.account-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--grey-700);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.account-nav a:hover {
  background: var(--color-surface);
  color: var(--color-primary);
}

.account-nav a.is-active {
  background: rgba(59, 124, 100, 0.1);
  color: var(--color-primary);
}

.account-main {
  min-width: 0;
}

.account-header h1 {
  margin: 0 0 6px;
  font-size: clamp(26px, 4vw, 34px);
  color: var(--grey-900);
}

.account-header p {
  margin: 0 0 24px;
  color: var(--grey-600);
  font-size: 15px;
}

.account-card {
  background: white;
  border: 1px solid var(--grey-200);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.account-card h2 {
  margin: 0 0 14px;
  font-size: 17px;
  color: var(--grey-900);
}

.account-field {
  margin-bottom: 14px;
}

.account-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--grey-700);
}

.account-field input,
.account-field textarea,
.account-field select {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid var(--grey-300);
  border-radius: 12px;
  font: inherit;
  font-size: 15px;
}

.account-field--inline {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.account-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: var(--color-primary);
  color: white;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.account-btn:hover {
  background: var(--color-primary-dark);
}

.account-btn--ghost {
  background: white;
  border: 1px solid var(--grey-300);
  color: var(--grey-700);
}

.account-btn--danger {
  background: #b42318;
}

.account-msg {
  margin: 10px 0 0;
  font-size: 14px;
}

.account-msg.is-error {
  color: #b42318;
}

.account-msg.is-success {
  color: var(--color-primary);
}

.account-section-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--grey-800);
}

.account-section-title:first-child {
  margin-top: 0;
}

.account-segments {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.account-segment {
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--grey-200, #e5e7eb);
  background: var(--white, #fff);
  cursor: pointer;
}

.account-segment.is-active {
  background: rgba(45, 90, 61, 0.12);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.account-bookings-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.account-empty--inline {
  margin-top: 0;
}

.booking-card-item__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.booking-card-item__head h2 {
  font-size: 1.0625rem;
  margin: 0;
}

.booking-card-item__status {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--grey-100);
  color: var(--grey-700);
  white-space: nowrap;
}

.booking-card-item__status--confirmed {
  background: rgba(45, 90, 61, 0.12);
  color: var(--color-primary);
}

.booking-card-item__when,
.booking-card-item__price {
  margin: 0 0 6px;
  font-size: 0.9375rem;
  color: var(--grey-600);
}

.booking-card-item__policy {
  margin: 0 0 8px;
  font-size: 0.8125rem;
  color: var(--grey-500);
  line-height: 1.45;
}

.booking-card-item__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.account-btn--outline {
  background: white;
  border: 1px solid var(--grey-300);
  color: var(--grey-800);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.account-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--grey-600);
}

.account-empty h2 {
  margin: 0 0 8px;
  color: var(--grey-900);
}

.favourites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.favourite-card-wrap {
  position: relative;
}

.favourite-card-wrap .favorite-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
}

.account-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.account-card__head h2 {
  margin: 0;
}

.account-btn--sm {
  min-height: 38px;
  padding: 0 14px;
  font-size: 13px;
}

.account-btn--full {
  width: 100%;
}

.profile-hero {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px;
}

.profile-hero__avatar {
  flex-shrink: 0;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: var(--color-surface);
  background-size: cover;
  background-position: center;
  border: 3px solid rgba(59, 124, 100, 0.35);
  box-shadow: 0 4px 16px rgba(26, 46, 38, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 900;
  color: var(--color-primary);
}

.profile-hero__info {
  min-width: 0;
}

.profile-hero__name {
  margin: 0 0 4px;
  font-size: 22px;
  color: var(--grey-900);
}

.profile-hero__email {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--grey-600);
  word-break: break-word;
}

.profile-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-dl {
  margin: 0 0 16px;
}

.profile-dl__row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--grey-200);
}

.profile-dl__row:last-child {
  border-bottom: 0;
}

.profile-dl dt {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--grey-500);
}

.profile-dl dd {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--grey-900);
}

.profile-edit__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.account-toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--color-surface);
  border: 1px solid var(--grey-200);
}

.account-toggle-input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.account-toggle-input:disabled {
  cursor: default;
  opacity: 0.7;
}

.account-toggle-label {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--grey-700);
  line-height: 1.4;
  cursor: pointer;
}

.account-empty-inline {
  margin: 0;
  padding: 12px 0;
  color: var(--grey-600);
  font-size: 14px;
}

.account-empty-inline a {
  color: var(--color-primary);
  font-weight: 700;
}

.dog-cards {
  display: grid;
  gap: 10px;
}

.dog-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--grey-200);
  border-radius: 14px;
  background: #fafcfa;
}

.dog-card__avatar {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: white;
  background-size: cover;
  background-position: center;
  border: 2px solid rgba(59, 124, 100, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.dog-card__body {
  flex: 1;
  min-width: 0;
}

.dog-card__name {
  margin: 0;
  font-size: 16px;
  color: var(--grey-900);
}

.dog-card__meta {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--grey-600);
}

.dog-card__actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.dog-card__btn {
  padding: 8px 12px;
  border: 1px solid var(--grey-300);
  border-radius: 10px;
  background: white;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--grey-700);
  cursor: pointer;
}

.dog-card__btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.dog-card__btn--danger:hover {
  border-color: #b42318;
  color: #b42318;
}

.review-cards {
  display: grid;
  gap: 10px;
}

.review-card {
  border: 1px solid var(--grey-200);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.review-card:hover {
  border-color: rgba(59, 124, 100, 0.35);
  box-shadow: var(--shadow-sm);
}

.review-card__link {
  display: block;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
}

.review-stars {
  display: inline-flex;
  gap: 2px;
  margin-bottom: 6px;
}

.review-stars__star {
  color: var(--grey-300);
  font-size: 16px;
  line-height: 1;
}

.review-stars__star.is-filled {
  color: #e8a317;
}

.review-card__title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 800;
  color: var(--color-primary);
}

.review-card__snippet {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--grey-700);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-card__date {
  font-size: 12px;
  color: var(--grey-500);
}

.account-footer-danger {
  margin-top: 8px;
  padding: 16px 0 32px;
  text-align: center;
}

.account-link-danger {
  border: 0;
  background: none;
  padding: 8px 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #b42318;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.account-link-danger:hover {
  color: #912018;
}

.account-sheet-modal__container {
  max-width: 480px;
}

.account-sheet-modal__title {
  margin: 0 0 16px;
  padding-right: 36px;
  font-size: 20px;
  color: var(--grey-900);
}

.account-sheet-modal__title--danger {
  color: #b42318;
}

.account-sheet-modal__lede {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--grey-700);
  line-height: 1.5;
}

.account-sheet-modal__note {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--grey-600);
}

.account-sheet-modal__note a {
  color: var(--color-primary);
}

.dog-modal-photo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.dog-modal-photo__preview {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-surface);
  background-size: cover;
  background-position: center;
  border: 2px solid rgba(59, 124, 100, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.user-menu-link {
  display: block;
  text-decoration: none;
  text-align: left;
}

.user-profile .user-menu {
  z-index: 200;
}

.home-nav__drawer-account {
  display: grid;
  gap: 4px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--grey-200);
}

.home-nav__drawer-account-link {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: none;
}

.home-nav__drawer-account-link:hover {
  background: var(--color-surface);
}

@media (max-width: 768px) {
  .profile-hero {
    flex-direction: column;
    text-align: center;
  }

  .profile-hero__actions {
    justify-content: center;
  }

  .profile-dl__row {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .dog-card {
    flex-wrap: wrap;
  }

  .dog-card__actions {
    width: 100%;
    justify-content: flex-end;
  }

  .account-layout {
    grid-template-columns: 1fr;
    padding-top: 16px;
  }

  .account-nav {
    position: static;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 8px;
  }

  .account-nav__title {
    display: none;
  }

  .account-nav a {
    white-space: nowrap;
    padding: 10px 14px;
  }
}

.booking-detail-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.booking-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.booking-detail-header h1 {
  margin: 0;
  font-size: 1.5rem;
}

.booking-detail-grid {
  display: grid;
  gap: 16px;
}

.booking-detail-meta {
  margin: 4px 0 0;
  color: var(--grey-600);
  font-size: 0.9375rem;
}

.booking-detail-actions {
  margin-top: 20px;
}

.booking-detail-entry h2 {
  margin: 0 0 12px;
  font-size: 1.125rem;
}

.booking-detail-entry__block {
  margin-top: 12px;
}

.booking-detail-entry__block h3 {
  margin: 0 0 4px;
  font-size: 0.875rem;
  color: var(--grey-600);
  font-weight: 600;
}

.booking-detail-entry__block p {
  margin: 0;
  line-height: 1.5;
}

.booking-detail-entry__code strong {
  font-size: 1.25rem;
  letter-spacing: 0.08em;
}

.booking-card-item__title-link {
  color: inherit;
  text-decoration: none;
}

.booking-card-item__title-link:hover {
  color: var(--green-700, #2d5a3d);
}

.booking-detail-sheet {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  visibility: hidden;
}

.booking-detail-sheet[aria-hidden="false"] {
  pointer-events: auto;
  visibility: visible;
}

.booking-detail-sheet__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(12, 22, 18, 0.42);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.28s ease;
  cursor: pointer;
}

.booking-detail-sheet[aria-hidden="false"] .booking-detail-sheet__backdrop {
  opacity: 1;
}

.booking-detail-sheet__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(100%, 460px);
  display: flex;
  flex-direction: column;
  background: var(--grey-50, #f8faf9);
  box-shadow: -12px 0 48px rgba(0, 0, 0, 0.14);
  transform: translateX(104%);
  transition: transform 0.34s cubic-bezier(0.32, 0.72, 0, 1);
}

.booking-detail-sheet[aria-hidden="false"] .booking-detail-sheet__panel {
  transform: translateX(0);
}

.booking-detail-sheet__header {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 22px 18px;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.booking-detail-sheet__header-main {
  min-width: 0;
  flex: 1;
}

.booking-detail-sheet__eyebrow {
  margin: 0 0 4px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--grey-500);
}

.booking-detail-sheet__title {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--grey-900);
  word-break: break-word;
}

.booking-detail-sheet__status {
  display: inline-flex;
  margin-top: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.booking-detail-sheet__status.booking-card-item__status--confirmed {
  background: rgba(45, 90, 61, 0.12);
  color: var(--color-primary);
}

.booking-detail-sheet__status.booking-card-item__status--cancelled,
.booking-detail-sheet__status.booking-card-item__status--refunded {
  background: rgba(180, 35, 24, 0.1);
  color: #b42318;
}

.booking-detail-sheet__status.booking-card-item__status--pending_payment,
.booking-detail-sheet__status.booking-card-item__status--held {
  background: rgba(181, 137, 0, 0.12);
  color: #92680a;
}

.booking-detail-sheet__close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: var(--grey-100, #f0f2f1);
  color: var(--grey-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.booking-detail-sheet__close:hover {
  background: var(--grey-200, #e4e8e6);
  color: var(--grey-900);
}

.booking-detail-sheet__body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 22px 28px;
  -webkit-overflow-scrolling: touch;
}

.booking-detail-sheet__loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 200px;
  padding: 32px 16px;
  text-align: center;
  color: var(--grey-600);
  font-size: 0.9375rem;
}

.booking-detail-sheet__spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(45, 90, 61, 0.15);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: booking-sheet-spin 0.75s linear infinite;
}

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

.booking-detail-sheet__body .booking-detail-header {
  display: none;
}

.booking-detail-sheet__body .booking-detail-grid {
  gap: 14px;
}

.booking-detail-sheet__body .booking-detail-summary {
  padding: 18px;
}

.booking-detail-sheet__facts {
  display: grid;
  gap: 14px;
  margin: 0 0 18px;
}

.booking-detail-sheet__fact {
  display: grid;
  gap: 2px;
}

.booking-detail-sheet__fact dt {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--grey-500);
}

.booking-detail-sheet__fact dd {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--grey-900);
  line-height: 1.4;
}

.booking-detail-sheet__fact dd.booking-detail-sheet__fact-price {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: Fraunces, Georgia, serif;
}

.booking-detail-sheet__body .booking-detail-actions {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.booking-detail-sheet__body .booking-detail-actions .account-btn {
  width: 100%;
  justify-content: center;
}

.booking-detail-sheet__body .booking-card-item__policy {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.booking-detail-sheet__body .booking-detail-entry {
  padding: 18px;
}

body.booking-sheet-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .booking-detail-sheet__panel {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: min(92vh, 720px);
    border-radius: 20px 20px 0 0;
    transform: translateY(104%);
  }

  .booking-detail-sheet[aria-hidden="false"] .booking-detail-sheet__panel {
    transform: translateY(0);
  }

  .booking-detail-sheet__header {
    padding: 18px 18px 14px;
  }

  .booking-detail-sheet__body {
    padding: 16px 18px 24px;
  }
}

.booking-calendar-picker {
  z-index: 1200;
  min-width: 220px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.booking-calendar-picker__item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font: inherit;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.booking-calendar-picker__item:hover {
  background: rgba(45, 106, 79, 0.08);
}
