.otw-modal-overlay {
  --otw-surface: #ffffff;
  --otw-surface-2: #edf1f9;
  --otw-border: rgba(15, 23, 42, 0.08);
  --otw-border-2: rgba(15, 23, 42, 0.13);
  --otw-text: #0f172a;
  --otw-muted: #4a5c78;
  --otw-dim: #8a9ab8;
  --otw-blue: #1d4ed8;
  --otw-green: #059669;
  --otw-green-dark: #047857;
  --otw-amber: #d97706;
  --otw-purple: #a78bfa;
  --otw-whatsapp: #25d366;
  --otw-radius-sm: 6px;
  --otw-radius: 10px;
  --otw-radius-xl: 18px;
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0);
  pointer-events: none;
  transition: background 0.25s, backdrop-filter 0.25s;
  font-family: "Manrope", system-ui, sans-serif;
}

.otw-modal-overlay.open {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  pointer-events: all;
}

.otw-modal-sheet {
  width: 100%;
  max-width: 500px;
  max-height: 94dvh;
  overflow-y: auto;
  background: var(--otw-surface);
  border: 1px solid var(--otw-border-2);
  border-radius: var(--otw-radius-xl) var(--otw-radius-xl) 0 0;
  color: var(--otw-text);
  scrollbar-width: thin;
  scrollbar-color: var(--otw-border-2) transparent;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform;
}

.otw-modal-overlay.open .otw-modal-sheet {
  transform: translateY(0);
}

.otw-modal-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--otw-border-2);
  margin: 12px auto 0;
}

.otw-modal-inner {
  padding: 16px 20px 28px;
}

.otw-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.otw-modal-avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(5, 150, 105, 0.08));
  border: 1px solid var(--otw-border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Sora", monospace;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--otw-blue);
}

.otw-modal-title {
  flex: 1;
}

.otw-modal-name {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  color: var(--otw-text);
}

.otw-modal-role {
  margin: 0.3rem 0 0;
  font-size: 1.2rem;
  color: var(--otw-muted);
}

.otw-modal-close {
  width: 30px;
  height: 30px;
  border-radius: var(--otw-radius-sm);
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid var(--otw-border);
  color: var(--otw-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.4rem;
  cursor: pointer;
}

.otw-modal-close:hover {
  background: rgba(15, 23, 42, 0.08);
  color: var(--otw-text);
}

.otw-status {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border-radius: var(--otw-radius);
  background: rgba(5, 150, 105, 0.08);
  border: 1px solid rgba(5, 150, 105, 0.2);
  margin-bottom: 14px;
}

.otw-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--otw-green);
  box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.45);
  animation: otwPulse 1.7s infinite;
  flex-shrink: 0;
}

.otw-status-label {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--otw-green);
  flex: 1;
}

.otw-status-since {
  font-family: "Sora", monospace;
  font-size: 1rem;
  color: var(--otw-green-dark);
}

.otw-bio {
  margin: 0 0 4px;
  font-size: 1.3rem;
  color: var(--otw-muted);
  line-height: 1.7;
}

.otw-section-label {
  margin: 14px 0 6px;
  font-family: "Sora", monospace;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--otw-dim);
}

.otw-chip-row,
.otw-role-row,
.otw-pref-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.otw-chip {
  font-family: "Sora", monospace;
  font-size: 1rem;
  padding: 4px 9px;
  border-radius: 5px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid var(--otw-border);
  color: var(--otw-muted);
}

.otw-chip.hi {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.2);
  color: var(--otw-blue);
}

.otw-role-tag {
  font-size: 1.15rem;
  padding: 4px 10px;
  border-radius: var(--otw-radius-sm);
  background: rgba(217, 119, 6, 0.08);
  border: 1px solid rgba(217, 119, 6, 0.2);
  color: var(--otw-amber);
}

.otw-pref-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1.2rem;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--otw-surface-2);
  border: 1px solid var(--otw-border);
  color: var(--otw-muted);
}

.otw-pref-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

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

.otw-calendly-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border-radius: var(--otw-radius);
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid var(--otw-border);
  color: inherit;
  text-decoration: none;
}

.otw-calendly-strip:hover {
  border-color: var(--otw-border-2);
}

.otw-cal-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--otw-radius-sm);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--otw-blue);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.otw-cal-text {
  flex: 1;
}

.otw-cal-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--otw-text);
}

.otw-cal-sub {
  margin: 1px 0 0;
  font-size: 1.1rem;
  color: var(--otw-dim);
}

.otw-booking-panel {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--otw-border-2);
  border-radius: var(--otw-radius);
  background: var(--otw-surface-2);
}

.otw-booking-panel[hidden] {
  display: none;
}

.otw-booking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.otw-booking-field {
  display: grid;
  gap: 4px;
}

.otw-booking-field.full {
  grid-column: 1 / -1;
}

.otw-booking-field span,
.otw-booking-note {
  font-family: "Sora", monospace;
  font-size: 1rem;
  color: var(--otw-dim);
}

.otw-booking-field input,
.otw-booking-field select,
.otw-booking-field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--otw-border-2);
  border-radius: var(--otw-radius-sm);
  background: var(--otw-surface);
  color: var(--otw-text);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 1.2rem;
  padding: 8px 9px;
  outline: none;
}

.otw-booking-field textarea {
  min-height: 64px;
  resize: vertical;
}

.otw-booking-field input:focus,
.otw-booking-field select:focus,
.otw-booking-field textarea:focus {
  border-color: var(--otw-blue);
}

.otw-booking-actions,
.otw-cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.otw-booking-actions {
  margin-top: 10px;
}

.otw-booking-note {
  margin: 8px 0 0;
}

.otw-cta-area {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.otw-modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 10px 12px;
  border-radius: var(--otw-radius);
  border: 1px solid transparent;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

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

.otw-modal-btn.solid {
  background: #2563eb;
  color: #ffffff;
}

.otw-modal-btn.blue {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.2);
  color: var(--otw-blue);
}

.otw-modal-btn.whatsapp {
  background: rgba(37, 211, 102, 0.1);
  border-color: rgba(37, 211, 102, 0.22);
  color: var(--otw-whatsapp);
}

.otw-modal-btn.ghost {
  background: var(--otw-surface);
  border-color: var(--otw-border-2);
  color: var(--otw-muted);
}

.otw-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--otw-border);
  margin-top: 12px;
}

.otw-location {
  font-family: "Sora", monospace;
  font-size: 1rem;
  color: var(--otw-dim);
  display: flex;
  align-items: center;
  gap: 5px;
}

.otw-experience-badge {
  font-family: "Sora", monospace;
  font-size: 1rem;
  padding: 3px 9px;
  border-radius: 4px;
  background: rgba(217, 119, 6, 0.08);
  border: 1px solid rgba(217, 119, 6, 0.2);
  color: var(--otw-amber);
  white-space: nowrap;
}

.otw-tagline {
  margin: 14px 0 0;
  text-align: center;
  font-size: 1.15rem;
  color: var(--otw-dim);
  font-style: italic;
}

@keyframes otwPulse {
  0% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(5, 150, 105, 0); }
  100% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}

@media (min-width: 640px) {
  .otw-modal-overlay {
    align-items: center;
  }

  .otw-modal-sheet {
    border-radius: var(--otw-radius-xl);
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: transform 0.28s cubic-bezier(0.34, 1.2, 0.64, 1), opacity 0.2s ease;
  }

  .otw-modal-overlay.open .otw-modal-sheet {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  .otw-modal-handle {
    display: none;
  }
}

@media (max-width: 639px) {
  .otw-modal-inner {
    padding: 14px 16px 24px;
  }

  .otw-booking-grid,
  .otw-booking-actions,
  .otw-cta-row {
    grid-template-columns: 1fr;
  }

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