/* Demo page styles */
.demo-container {
  min-height: 100vh;
  padding: 120px 48px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.demo-header {
  text-align: center;
  margin-bottom: 60px;
}

.badge {
  display: inline-block;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(255, 122, 61, 0.3);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.demo-header h1 {
  font-size: 48px;
  margin-bottom: 16px;
}

.demo-header p {
  color: var(--text-muted);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

.demo-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 60px;
  align-items: start;
}

/* Phone frame */
.phone-frame {
  background: #1a1a17;
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 12px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}

.phone-notch {
  width: 120px;
  height: 28px;
  background: #0D0D0B;
  border-radius: 0 0 20px 20px;
  margin: 0 auto 8px;
}

.phone-screen {
  background: #111110;
  border-radius: 28px;
  height: 580px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-header {
  background: #1a1a17;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.chat-avatar {
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
}

.chat-name {
  font-weight: 600;
  font-size: 15px;
}

.chat-status {
  margin-left: auto;
  font-size: 12px;
  color: #4ade80;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.msg { display: flex; flex-direction: column; }
.msg.received { align-items: flex-start; }
.msg.sent { align-items: flex-end; }

.bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-line;
}

.msg.received .bubble {
  background: var(--surface-2);
  border-bottom-left-radius: 4px;
}

.msg.sent .bubble {
  background: var(--accent);
  color: var(--bg);
  border-bottom-right-radius: 4px;
}

.timestamp {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 4px;
}

.msg.sent .timestamp { text-align: right; }

/* Typing indicator */
.typing { display: flex; gap: 4px; align-items: center; }
.typing span {
  width: 7px; height: 7px;
  background: var(--text-dim);
  border-radius: 50%;
  animation: typing 1.2s infinite;
}
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

.chat-input-bar {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}

.chat-input {
  background: var(--surface-2);
  border-radius: 24px;
  padding: 10px 16px;
  color: var(--text-dim);
  font-size: 14px;
}

/* Demo controls */
.demo-controls {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.control-section h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.btn-group { display: flex; flex-wrap: wrap; gap: 10px; }

.btn-demo {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-demo:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent);
}

/* Intent display */
.intent-display {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.intent-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.intent-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

/* Slots display */
.slots-display {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

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

.slot-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--surface-2);
  border-radius: 8px;
}

.slot-num {
  background: var(--accent-dim);
  color: var(--accent);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.slot-time { flex: 1; font-size: 14px; }

.btn-confirm-slot {
  background: var(--accent);
  color: var(--bg);
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.empty-state {
  color: var(--text-dim);
  font-size: 14px;
  text-align: center;
  padding: 20px;
}

/* Booking confirmed display */
.booking-display {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.booking-confirmed {
  text-align: center;
}

.booking-check {
  width: 48px;
  height: 48px;
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 12px;
}

.booking-date {
  font-size: 18px;
  font-weight: 700;
  font-family: 'Bricolage Grotesque', sans-serif;
}

.booking-time {
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 4px;
}

.booking-service {
  display: inline-block;
  background: var(--accent-dim);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  margin-top: 8px;
}

.btn-back {
  display: inline-block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.btn-back:hover { color: var(--accent); }