:root {
  --bg:        #0a0a0a;
  --surface:   #141414;
  --surface2:  #1c1c1c;
  --border:    #252525;
  --fg:        #fafafa;
  --muted:     #777777;
  --accent:    #E8A020;
  --accent-d:  #c4861a;
  --accent-bg: rgba(232,160,32,0.08);
  --green:     #2E7D32;
  --red:       #C62828;
  --r:         8px;
  --r-lg:      14px;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0 64px;
}

/* ---------- Header bar ---------- */
.header {
  width: 100%;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 24px;
  margin-bottom: 0;
}
.logo-img {
  height: 40px;
  width: auto;
  filter: invert(1);
}

/* ---------- Shell ---------- */
.shell {
  width: 100%;
  max-width: 520px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ---------- Steps ---------- */
.step { display: none; flex-direction: column; }
.step.active { display: flex; }

/* ---------- Greeting block ---------- */
.greeting-block {
  padding: 36px 0 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.welcome-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.greeting {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--fg);
  margin-bottom: 8px;
}
.greeting-sub {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 6px;
  margin-bottom: 0;
}
.sub {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}
.duration-note {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 10px;
}
.duration-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* ---------- Date bar ---------- */
.date-section { margin-bottom: 24px; }
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.date-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.date-bar::-webkit-scrollbar { display: none; }
.date-pill {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 10px 14px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  min-width: 56px;
}
.date-pill:hover { border-color: var(--accent); }
.date-pill.selected {
  background: var(--accent);
  border-color: var(--accent);
}
.date-pill.selected .pill-day,
.date-pill.selected .pill-num { color: #000; }
.pill-day {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.pill-num {
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  line-height: 1;
}

/* ---------- Slots ---------- */
.slots-section { margin-bottom: 8px; }
.slots-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.slot-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--fg);
  border-radius: var(--r);
  padding: 10px 18px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.slot-btn:hover { border-color: var(--accent); color: var(--accent); }
.slot-btn.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
  font-weight: 600;
}

/* ---------- Selected slot pill ---------- */
.selected-slot {
  background: var(--accent-bg);
  border: 1px solid rgba(232,160,32,0.3);
  border-radius: var(--r);
  padding: 12px 16px;
  font-size: 14px;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
}
.selected-slot .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* ---------- Form ---------- */
.form-block {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
label { font-size: 13px; color: var(--muted); font-weight: 500; }
input[type="text"],
input[type="tel"] {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--fg);
  border-radius: var(--r);
  padding: 13px 16px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}
input:focus { border-color: var(--accent); }
input::placeholder { color: var(--muted); }

/* ---------- Toggle ---------- */
.toggle-label { font-size: 13px; color: var(--muted); font-weight: 500; margin-bottom: 7px; }
.toggle-row {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}
.toggle-btn {
  flex: 1;
  padding: 12px;
  font-size: 14px;
  font-family: inherit;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.toggle-btn.active {
  background: var(--accent);
  color: #000;
  font-weight: 600;
}
.toggle-divider { width: 1px; background: var(--border); }

/* ---------- Step 2 header ---------- */
.step2-header {
  padding: 36px 0 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.step2-header .greeting { font-size: 20px; margin-bottom: 0; }

/* ---------- Primary button ---------- */
.btn-primary {
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: var(--r);
  padding: 15px 20px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
  width: 100%;
  letter-spacing: 0.01em;
  margin-top: 8px;
}
.btn-primary:hover { background: var(--accent-d); }
.btn-primary:disabled { opacity: 0.35; cursor: not-allowed; }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: var(--r);
  padding: 10px 16px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  align-self: flex-start;
  margin-bottom: 24px;
}
.btn-ghost:hover { border-color: var(--fg); color: var(--fg); }

/* ---------- Confirmation ---------- */
.step3-header {
  padding: 36px 0 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.confirm-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 24px;
}
.confirm-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.confirm-row:last-child { border-bottom: none; }
.confirm-key {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.confirm-val { font-size: 16px; color: var(--fg); }
.confirm-val.accent { color: var(--accent); }
.confirm-val a { color: var(--accent); text-decoration: none; }
.confirm-val a:hover { text-decoration: underline; }

.link-box {
  border-radius: var(--r);
  padding: 14px 16px;
  font-size: 13px;
  word-break: break-all;
  line-height: 1.5;
}
.link-box.meet { background: #0d1f0e; border: 1px solid #2E7D32; color: #81c784; }
.link-box.wa   { background: transparent; border: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.link-box a { color: inherit; }
.wa-note { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 0; }
.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--r);
  padding: 13px 20px;
  transition: background 0.15s;
  width: 100%;
  justify-content: center;
}
.btn-wa:hover { background: #1ebe5a; }

.closing-note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- Note button + preview ---------- */
.btn-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px dashed var(--border);
  color: var(--muted);
  border-radius: var(--r);
  padding: 9px 14px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  align-self: flex-start;
}
.btn-note:hover { border-color: var(--accent); color: var(--accent); }
.btn-note.has-note { border-color: var(--accent); color: var(--accent); border-style: solid; }
.note-preview {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  line-height: 1.5;
  padding: 0 2px;
}

/* ---------- Modal ---------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 100;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: 24px 24px 32px;
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: slide-up 0.2s ease;
}
@keyframes slide-up {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title { font-size: 16px; font-weight: 600; color: var(--fg); }
.modal-close {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}
.modal-close:hover { color: var(--fg); }
.modal-sub { font-size: 13px; color: var(--muted); margin-top: -8px; }
.modal-textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--fg);
  border-radius: var(--r);
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  transition: border-color 0.15s;
}
.modal-textarea:focus { border-color: var(--accent); }
.modal-textarea::placeholder { color: var(--muted); }

/* ---------- Utility ---------- */
.spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid rgba(0,0,0,0.25);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }
.error-msg { color: var(--red); font-size: 13px; margin-top: 4px; }
.empty { color: var(--muted); font-size: 14px; padding: 24px 0; }
