*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: linear-gradient(160deg, #1a1028 0%, #2d1b4e 45%, #1f2937 100%);
  color: #f8fafc;
}

.app {
  max-width: 32rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.title {
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  margin: 0 0 2rem;
}

.subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  margin: 0 0 1.5rem;
}

.actions--question {
  position: relative;
  min-height: 8rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.actions__pair {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.actions--question.actions--desktop-dodge {
  min-height: 10rem;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 0.85rem 2rem;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.btn--yes {
  background: linear-gradient(135deg, #ec4899, #a855f7);
  color: #fff;
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.35);
}

.btn--yes:hover {
  box-shadow: 0 10px 28px rgba(236, 72, 153, 0.45);
}

.btn--no {
  background: #334155;
  color: #e2e8f0;
}

.actions--question.actions--desktop-dodge .btn--no {
  pointer-events: none;
  will-change: transform;
  transition: transform 0.14s ease-out;
}

.actions--question.actions--desktop-dodge .btn--no:active {
  transform: none;
}

.btn--no:hover {
  background: #475569;
}

.btn--back,
.btn--ghost {
  background: transparent;
  color: #cbd5e1;
  border: 1px solid #64748b;
}

.btn--back {
  display: block;
  margin: 2rem auto 0;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.tease {
  text-align: center;
  margin: 1.5rem 0 0;
  font-size: 1.05rem;
  color: #fbbf24;
  min-height: 1.5em;
}

.slots {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.day-group__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #c4b5fd;
  margin: 0 0 0.5rem;
}

.day-group__times {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.slot-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
  cursor: pointer;
}

.slot-btn:hover {
  background: rgba(168, 85, 247, 0.25);
  border-color: #a855f7;
}

.status {
  text-align: center;
  margin: 0 0 1.25rem;
  font-size: 1rem;
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
}

.status--ok {
  color: #ecfdf5;
  background: rgba(34, 197, 94, 0.22);
  border: 1px solid rgba(134, 239, 172, 0.65);
  font-size: 1.125rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.15);
}

.status--err {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(252, 165, 165, 0.5);
  font-weight: 500;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 100;
}

.modal-backdrop:not([hidden]) {
  display: flex;
}

.modal {
  background: #1e293b;
  border-radius: 1rem;
  padding: 1.5rem;
  width: 100%;
  max-width: 24rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.modal__title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.modal__slot {
  margin: 0 0 1rem;
  color: #c4b5fd;
  font-size: 0.95rem;
}

.modal__label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: #cbd5e1;
}

.modal__textarea {
  width: 100%;
  resize: vertical;
  border-radius: 0.5rem;
  border: 1px solid #475569;
  background: #0f172a;
  color: #f8fafc;
  padding: 0.75rem;
  font: inherit;
}

.modal__counter {
  text-align: right;
  font-size: 0.8rem;
  color: #94a3b8;
  margin: 0.35rem 0 1rem;
}

.modal__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}
