:root {
  --bg: #fff9f8;
  --bg-soft: #fff3f4;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --text: #34292d;
  --muted: #836d73;
  --line: rgba(190, 155, 166, 0.2);
  --primary: #d8a8af;
  --primary-strong: #c98e97;
  --secondary: #f2dde1;
  --accent: #efe6e2;
  --shadow: 0 20px 50px rgba(199, 149, 160, 0.14);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(247, 221, 226, 0.7), transparent 28%),
    radial-gradient(circle at top right, rgba(244, 230, 226, 0.85), transparent 32%),
    linear-gradient(180deg, #fffaf9 0%, #fffdfc 100%);
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.bg-blur {
  position: fixed;
  border-radius: 999px;
  filter: blur(90px);
  z-index: -2;
  pointer-events: none;
}

.blur-1 {
  width: 260px;
  height: 260px;
  left: -60px;
  top: 90px;
  background: rgba(243, 209, 217, 0.7);
}

.blur-2 {
  width: 340px;
  height: 340px;
  right: -90px;
  top: 160px;
  background: rgba(244, 224, 220, 0.8);
}

.blur-3 {
  width: 280px;
  height: 280px;
  left: 50%;
  bottom: 60px;
  transform: translateX(-50%);
  background: rgba(235, 220, 226, 0.65);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(255, 250, 249, 0.75);
  border-bottom: 1px solid rgba(205, 178, 186, 0.12);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-weight: 500;
}

.nav-links a {
  transition: color 0.22s ease, transform 0.22s ease;
}

.nav-links a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.btn {
  min-height: 52px;
  padding: 0 22px;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: transform 0.22s ease, box-shadow 0.22s ease, opacity 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #e5bcc2 100%);
  color: #fff;
  box-shadow: 0 16px 34px rgba(201, 142, 151, 0.24);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-small {
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.95rem;
}

.hero {
  padding: 72px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  align-items: center;
}

.eyebrow,
.section-label {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  backdrop-filter: blur(12px);
}

.hero h1 {
  margin: 18px 0 18px;
  font-size: clamp(2.7rem, 6vw, 5.4rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.hero h1 span {
  display: block;
  color: var(--primary-strong);
}

.hero-text,
.section-heading p,
.services-copy p,
.contact-copy p,
.faq-answer p,
.form-note,
.contact-note,
.site-footer p,
.point-card span,
.portfolio-caption small,
.service-card p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-text {
  max-width: 62ch;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 32px;
}

.point-card {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(205, 178, 186, 0.18);
  box-shadow: var(--shadow);
}

.point-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.04rem;
}

.glass-card {
  background: var(--surface);
  border: 1px solid rgba(205, 178, 186, 0.18);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-brand-card {
  border-radius: var(--radius-xl);
  padding: 18px;
}

.hero-brand-image {
  width: 100%;
  border-radius: 26px;
}

.section {
  padding: 90px 0;
}

.section-soft {
  background:
    linear-gradient(180deg, rgba(255, 246, 247, 0.78) 0%, rgba(255, 252, 251, 0.62) 100%);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading h2,
.services-copy h2,
.booking-copy h2,
.contact-copy h2 {
  margin: 16px 0 14px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.portfolio-card {
  position: relative;
  padding: 0;
  border: 0;
  background: var(--surface-strong);
  border-radius: 28px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 44px rgba(199, 149, 160, 0.18);
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.portfolio-card.featured {
  grid-column: span 2;
}

.portfolio-card.featured img {
  min-height: 420px;
}

.portfolio-caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  text-align: left;
}

.portfolio-caption strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
}

.services-grid,
.booking-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
}

.service-card {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(205, 178, 186, 0.18);
  box-shadow: var(--shadow);
}

.service-card h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
}

.service-card p {
  margin: 0;
}

.service-card strong {
  white-space: nowrap;
  font-size: 1.2rem;
  align-self: center;
}

.addon-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.88) 0%,
    rgba(248, 236, 239, 0.9) 100%
  );
}

.price-poster {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.price-image {
  width: 100%;
  border-radius: var(--radius-xl);
}

.faq-list {
  max-width: 920px;
}

.faq-item {
  margin-bottom: 14px;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(205, 178, 186, 0.16);
  box-shadow: var(--shadow);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: 0;
  text-align: left;
  padding: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.faq-icon {
  font-size: 1.4rem;
  color: var(--primary-strong);
  transition: transform 0.24s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 22px;
  transition: max-height 0.28s ease, padding 0.28s ease;
}

.faq-item.active .faq-answer {
  max-height: 220px;
  padding: 0 22px 22px;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.booking-summary,
.booking-card,
.contact-card {
  border-radius: 28px;
  padding: 24px;
}

.booking-summary {
  margin-top: 28px;
}

.booking-summary h3 {
  margin-top: 0;
  margin-bottom: 18px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(205, 178, 186, 0.16);
}

.summary-row:last-child {
  border-bottom: 0;
}

.summary-row span {
  color: var(--muted);
}

.total-row strong {
  color: var(--primary-strong);
  font-size: 1.08rem;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.form-group label {
  font-size: 0.95rem;
  font-weight: 700;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(205, 178, 186, 0.2);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  outline: none;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.form-group textarea {
  min-height: 140px;
  padding: 14px 16px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: rgba(201, 142, 151, 0.45);
  box-shadow: 0 0 0 4px rgba(216, 168, 175, 0.12);
}

.checkbox-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(205, 178, 186, 0.2);
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
}

.checkbox-card input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-strong);
  min-height: auto;
  padding: 0;
}

.form-note {
  margin: 0;
  font-size: 0.94rem;
}

.contact-card {
  margin-top: 28px;
}

.contact-line {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(205, 178, 186, 0.16);
}

.contact-line:last-of-type {
  border-bottom: 0;
}

.contact-line span {
  color: var(--muted);
}

.contact-line a {
  color: var(--primary-strong);
  font-weight: 700;
}

.contact-note {
  margin: 18px 0 0;
}

.contact-image {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.site-footer {
  padding: 30px 0 48px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  border-top: 1px solid rgba(205, 178, 186, 0.16);
  padding-top: 22px;
}

.footer-links {
  display: flex;
  gap: 18px;
  color: var(--muted);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  min-width: 280px;
  max-width: 360px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(52, 41, 45, 0.94);
  color: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 120;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 130;
}

.portfolio-modal.open {
  display: block;
}

.portfolio-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 20, 23, 0.68);
  backdrop-filter: blur(6px);
}

.portfolio-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 24px));
  margin: 40px auto;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
  z-index: 2;
}

.modal-image {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #f8f4f3;
}

.modal-content {
  padding: 22px;
}

.modal-content h3 {
  margin: 0 0 10px;
}

.modal-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .hero-grid,
  .services-grid,
  .booking-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-card.featured {
    grid-column: span 2;
  }

  .hero h1 {
    max-width: 12ch;
  }
}


.service-extra-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(205, 178, 186, 0.16);
  color: var(--muted);
  line-height: 1.7;
  box-shadow: var(--shadow);
}

@media (max-width: 760px) {
  .nav {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    padding-bottom: 6px;
    font-size: 0.95rem;
  }

  .hero {
    padding-top: 36px;
  }

  .hero-points,
  .portfolio-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .portfolio-card.featured {
    grid-column: span 1;
  }

  .portfolio-card.featured img,
  .portfolio-card img {
    min-height: 320px;
  }

  .service-card,
  .contact-line,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .section {
    padding: 72px 0;
  }

  .portfolio-modal-dialog {
    margin: 18px auto;
  }
}

.hidden {
  display: none !important;
}

.admin-main {
  padding: 56px 0 80px;
}

.admin-shell {
  max-width: 1200px;
}

.admin-header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.admin-login-section {
  display: flex;
  justify-content: center;
}

.admin-login-card {
  width: min(560px, 100%);
  padding: 28px;
  border-radius: 30px;
}

.admin-title {
  margin: 16px 0 12px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.admin-subtitle {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.75;
}

.admin-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  margin-bottom: 24px;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.admin-stat-card {
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(205, 178, 186, 0.18);
  box-shadow: var(--shadow);
}

.admin-stat-card span {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}

.admin-stat-card strong {
  font-size: 1.8rem;
}

.admin-filters {
  padding: 22px;
  border-radius: 26px;
  margin-bottom: 20px;
}

.admin-filters-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 14px;
}

.appointments-list {
  display: grid;
  gap: 16px;
}

.admin-appointment-card {
  padding: 24px;
  border-radius: 26px;
}

.appointment-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.appointment-top h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.appointment-top p {
  margin: 0;
  color: var(--muted);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
}

.status-new {
  background: rgba(240, 226, 230, 0.9);
  color: #8d6470;
}

.status-confirmed {
  background: rgba(223, 239, 229, 0.95);
  color: #427058;
}

.status-completed {
  background: rgba(228, 234, 244, 0.95);
  color: #506683;
}

.status-cancelled {
  background: rgba(244, 228, 228, 0.95);
  color: #9a5f5f;
}

.appointment-meta {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.appointment-meta div {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(205, 178, 186, 0.14);
}

.appointment-meta span,
.appointment-notes span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.appointment-notes {
  margin-bottom: 18px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(205, 178, 186, 0.14);
}

.appointment-notes p {
  margin: 0;
  line-height: 1.7;
}

.appointment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-action-btn {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(205, 178, 186, 0.18);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.admin-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.admin-action-btn.danger {
  color: #9a5f5f;
}

.admin-empty {
  padding: 28px;
  border-radius: 24px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1080px) {
  .admin-stats-grid,
  .appointment-meta,
  .admin-filters-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .admin-top,
  .appointment-top,
  .admin-header-actions,
  .appointment-actions,
  .admin-filters-grid,
  .admin-stats-grid,
  .appointment-meta {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .admin-top {
    align-items: stretch;
  }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-admin {
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
}

.btn-admin:hover {
  background: rgba(255, 255, 255, 0.96);
}

@media (max-width: 760px) {
  .nav-actions {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
}

.availability-note {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.94rem;
}

.available-days {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.day-chip,
.time-slot-btn {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(205, 178, 186, 0.18);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.day-chip:hover,
.time-slot-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.day-chip.active,
.time-slot-btn.active {
  background: linear-gradient(135deg, var(--primary) 0%, #e5bcc2 100%);
  color: #fff;
  border-color: transparent;
}

.time-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.time-slots-empty {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.blocked-days-panel {
  padding: 24px;
  border-radius: 26px;
  margin-bottom: 20px;
}

.admin-section-title {
  margin: 14px 0 10px;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.blocked-days-top {
  margin-bottom: 18px;
}

.blocked-day-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 20px;
}

.blocked-days-list {
  display: grid;
  gap: 12px;
}

.blocked-day-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(205, 178, 186, 0.14);
}

.blocked-day-meta strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.blocked-day-meta p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

@media (max-width: 900px) {
  .blocked-day-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .blocked-day-item {
    flex-direction: column;
    align-items: flex-start;
  }
}

.admin-calendar-panel {
  padding: 24px;
  border-radius: 26px;
  margin-bottom: 20px;
}

.admin-calendar-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  margin-bottom: 18px;
}

.calendar-month-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.calendar-month-label {
  min-width: 180px;
  text-align: center;
  font-weight: 800;
  color: var(--text);
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 18px;
}

.calendar-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.calendar-swatch {
  width: 14px;
  height: 14px;
  border-radius: 999px;
}

.calendar-swatch-green {
  background: #dff0e4;
  border: 1px solid #9cc7a9;
}

.calendar-swatch-red {
  background: #f6dfdf;
  border: 1px solid #d6a1a1;
}

.admin-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}

.calendar-weekday {
  text-align: center;
  font-weight: 700;
  color: var(--muted);
  padding: 8px 0;
}

.calendar-empty {
  min-height: 92px;
}

.calendar-day {
  min-height: 92px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(205, 178, 186, 0.16);
  background: rgba(255, 255, 255, 0.86);
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.calendar-day:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.calendar-day-num {
  font-weight: 800;
  color: var(--text);
}

.calendar-day-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.calendar-day.is-booked {
  background: rgba(223, 239, 229, 0.88);
  border-color: rgba(120, 168, 136, 0.35);
}

.calendar-day.is-blocked {
  background: rgba(244, 228, 228, 0.9);
  border-color: rgba(184, 117, 117, 0.32);
}

.calendar-day.is-selected {
  box-shadow: inset 0 0 0 2px rgba(201, 142, 151, 0.75);
}

.calendar-day.is-today {
  border-color: rgba(201, 142, 151, 0.5);
}

@media (max-width: 1080px) {
  .admin-calendar-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .admin-calendar-top {
    flex-direction: column;
    align-items: stretch;
  }

  .calendar-month-nav {
    justify-content: space-between;
  }

  .calendar-day,
  .calendar-empty {
    min-height: 76px;
  }

  .calendar-day {
    padding: 10px;
  }

  .calendar-day-meta {
    font-size: 0.78rem;
  }
}

.appointment-edit-panel {
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(205, 178, 186, 0.14);
}

.appointment-edit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.appointment-edit-note {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.appointment-edit-note.danger {
  color: #9a5f5f;
}

.appointment-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

@media (max-width: 760px) {
  .appointment-edit-grid {
    grid-template-columns: 1fr;
  }
}

.blocked-days-panel {
  padding: 0;
  overflow: hidden;
}

.blocked-days-summary {
  list-style: none;
  cursor: pointer;
  padding: 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.blocked-days-summary::-webkit-details-marker {
  display: none;
}

.blocked-days-summary-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(205, 178, 186, 0.16);
  color: var(--primary-strong);
  font-size: 1.3rem;
  transition: transform 0.22s ease;
}

.blocked-days-panel[open] .blocked-days-summary-icon {
  transform: rotate(180deg);
}

.blocked-days-content {
  padding: 0 24px 24px;
}

.blocked-days-summary .admin-subtitle {
  margin-bottom: 0;
}

@media (max-width: 760px) {
  .blocked-days-summary {
    flex-direction: column;
  }

  .blocked-days-summary-icon {
    align-self: flex-end;
  }
}