:root {
  --bg: #FBE5EB;
  --surface: #ffffff;
  --surface-soft: #fcf8fc;
  --text: #2D2430;
  --muted: #8D7480;
  --border: #EADFE8;

  --primary: #D499A5;
  --primary-dark: #75475D;
  --primary-soft: #E0B8C3;

  --success: #5D8A6F;
  --danger: #C66A6A;
  --warning: #D4A25F;
  --secondary: #8B7C87;

  --shadow-sm: 0 1px 3px rgba(64, 40, 60, 0.06);
  --shadow-md: 0 12px 28px rgba(64, 40, 60, 0.08);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;

  --container: 1320px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, Arial, sans-serif;
  background: linear-gradient(180deg, #FFF5F8 0%, var(--bg) 100%);
  color: var(--text);
  line-height: 1.45;
}

a {
  color: var(--primary-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.page {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px;
}

.page-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-subtitle {
  font-size: 14px;
  color: var(--muted);
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px;
}

.section-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid-dashboard {
  grid-template-columns: 1.8fr 1fr;
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 18px;
}

.card-soft {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 16px;
}

.stat-label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.filters-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.appointment-card {
  background: linear-gradient(180deg, #fff 0%, #fefcfe 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

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

.appointment-time {
  font-size: 18px;
  font-weight: 700;
}

.appointment-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
}

.appointment-meta {
  color: var(--muted);
  font-size: 14px;
}

.appointment-links {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

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

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.badge-booked {
  background: #efe7fb;
  color: #6f4d8f;
}

.badge-cancelled {
  background: #fde9e9;
  color: #a14f4f;
}

.badge-pending {
  background: #fff2df;
  color: #b06b14;
}

.badge-accepted {
  background: #e5f3ea;
  color: #2f6e45;
}

.badge-declined {
  background: #fde9e9;
  color: #a14f4f;
}

.badge-neutral {
  background: #ede7ec;
  color: #5c5059;
}

.list-item {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  background: #fff;
}

.list-item-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.list-item-meta {
  color: var(--muted);
  font-size: 14px;
}

.calendar-box {
  display: grid;
  gap: 12px;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.calendar-day-label,
.calendar-day {
  text-align: center;
  font-size: 13px;
}

.calendar-day-label {
  color: var(--muted);
  font-weight: 700;
}

.calendar-day {
  padding: 10px 0;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border);
}

.calendar-day.is-today {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.calendar-day.has-bookings {
  box-shadow: inset 0 0 0 2px rgba(183, 132, 167, 0.35);
}

.calendar-header {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: start;
  gap: 10px;
  margin-bottom: 14px;
}

.calendar-heading {
  text-align: left;
}

.calendar-title-form {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0;
}

.calendar-title-select {
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  padding: 0;
  outline: none;
  cursor: pointer;
  appearance: none;
}

.calendar-arrow {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
  color: var(--primary-dark);
}

.calendar-arrow:hover {
  background: var(--primary-soft);
  text-decoration: none;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.label {
  font-size: 14px;
  font-weight: 600;
  color: #4f414d;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #e5d8e4;
  background: #fff;
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: 0.18s ease;
}

.textarea {
  min-height: 100px;
  resize: vertical;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: #c89dbb;
  box-shadow: 0 0 0 4px rgba(183, 132, 167, 0.15);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.icon-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 44px;
  height: 44px;

  border-radius: 14px;
  border: 1px solid #ead4dc;

  background: #f7e9ee;   /* lighter pink */
  color: #d499a5;        /* soft logo pink */

  cursor: pointer;

  font-size: 18px;
  line-height: 1;
  padding: 0;

  transition: all 0.18s ease;
}

.icon-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

.icon-btn.cancel {
  background: #fdeff1;
  border-color: #f6d6dc;
  color: #d98b99;
}

.icon-btn.cancel:hover {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 16px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

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

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

.btn-secondary {
  background: #ece5eb;
  color: #493d47;
}

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

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

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

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.help {
  color: var(--muted);
  font-size: 13px;
}

.notice {
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 14px;
}

.notice-warning {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
}

.notice-success {
  background: #eefbf2;
  color: #166534;
  border: 1px solid #c8efd4;
}

.notice-error {
  background: #fff1f1;
  color: #991b1b;
  border: 1px solid #f8cccc;
}

.messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.slot-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.slot-pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: #f3eaf1;
  color: #744e69;
  font-size: 13px;
  font-weight: 700;
}

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

.slot-option {
  position: relative;
  display: block;
  cursor: pointer;
}

.slot-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.slot-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #e6d7e8;
  background: #f7f1f8;
  color: #5a4a5c;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.18s ease;
  box-shadow: var(--shadow-sm);
}

.slot-option span:hover {
  background: #f0e6f2;
  border-color: #d9bfd4;
  transform: translateY(-1px);
}

.slot-option input:checked + span {
  background: #ead8ef;
  border-color: var(--primary-dark);
  color: #432f45;
  box-shadow: 0 0 0 3px rgba(183, 132, 167, 0.18);
  transform: translateY(-1px);
}

.empty {
  color: var(--muted);
  font-style: italic;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 18px 0;
}

.center-card {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
}

.big-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #cf9ec1, #b784a7);
  color: white;
  font-size: 24px;
  margin-bottom: 14px;
}

.icon-actions {
  align-items: center;
}

.icon-actions a.icon-btn {
  text-decoration: none;
}

.quick-message-wrapper {
  position: relative;
  display: inline-flex;
}

.quick-message-menu {
  display: none;
  position: absolute;
  top: 48px;
  left: 0;
  width: 240px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  padding: 8px;
  z-index: 9999;
}

.quick-message-menu.show {
  display: grid;
  gap: 6px;
}

.quick-message-menu button {
  width: 100%;
  border: none;
  background: var(--surface-soft);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.quick-message-menu button:hover {
  background: var(--primary-soft);
}

.snapshot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.snapshot-arrows {
  display: flex;
  gap: 6px;
}

.snapshot-window {
  position: relative;
}

.snapshot-item {
  display: none;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  background: #fff;
}

.snapshot-window {
  display: grid;
  gap: 12px;
}

.snapshot-item.is-active {
  display: block;
}

.quick-time-row {
  display: none;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 8px;
}

.quick-time-row.show {
  display: grid;
}

.quick-time-input {
  min-height: 42px;
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 8px 10px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
}

.quick-proposal-submit {
  background: var(--primary) !important;
  color: #fff !important;
  text-align: center !important;
  padding-inline: 14px !important;
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(45, 36, 48, 0.28);
  z-index: 99999;
  padding: 20px;
  align-items: center;
  justify-content: center;
}

.modal-overlay.show {
  display: flex;
}

.modal-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(64, 40, 60, 0.18);
  padding: 22px;
}

.modal-overlay[hidden] {
  display: none !important;
}

.modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;
  background: rgba(45, 36, 48, 0.32) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
}

.modal-card {
  width: 100% !important;
  max-width: 420px !important;
  background: #fff !important;
  border: 1px solid var(--border) !important;
  border-radius: 24px !important;
  box-shadow: 0 24px 60px rgba(64, 40, 60, 0.22) !important;
  padding: 22px !important;
}

.list .time-proposal-item {
  display: none !important;
}

.list .time-proposal-item.is-active {
  display: block !important;
}

.footer {
  margin-top: 0px;
  padding: 24px 20px 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.9;
}

.footer-logo {
  width: 180px;
  max-width: 80%;
  object-fit: contain;
}

.footer-text {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 980px) {
  .grid-dashboard,
  .stats,
  .filters-row,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn {
    width: 100%;
  }

  .quick-actions,
  .actions {
    flex-direction: column;
  }

  .slot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  body {
    background: linear-gradient(180deg, #FFF5F8 0%, #FBE5EB 100%) !important;
  }

  .footer {
  margin-top: 0px;
  padding: 24px 20px 34px;
  gap: 8px;
}

  .footer-logo {
    width: 110px;
  }

  .footer-text {
    font-size: 12px;
    line-height: 1.4;
  }

  .page {
    padding: 14px;
  }

  .topbar {
    margin-bottom: 12px;
  }

  .stats {
    gap: 10px;
  }

   .stat {
    padding: 14px;
  }

  .stat-value {
    font-size: 24px;
  }
}

.card,
.appointment-card,
.btn,
.icon-btn,
.calendar-day {
  transition: all 0.18s ease;
}

.stat-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.stat-link:hover {
  text-decoration: none;
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 14px 34px rgba(64, 40, 60, 0.12);
}

html {
  scroll-behavior: smooth;
}

.card {
  scroll-margin-top: 20px;
}

.public-logo {
  display: block;
  width: 170px;
  max-width: 75%;
  height: auto;
  margin: 0 auto 18px;
}

.public-logo-small {
  display: block;
  width: 130px;
  max-width: 70%;
  height: auto;
  margin: 0 auto 16px;
}