/* Luxe Locks Salon — AI Receptionist demo. Mahlin palette: navy #0B2239 + gold #D9A441 */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #071426;
  color: #eef2f7;
  display: flex; justify-content: center;
}
#app { width: 100%; max-width: 480px; min-height: 100%; background: #0B2239; display: flex; flex-direction: column; position: relative; }
.demo-label {
  text-align: center; font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: #D9A441; background: rgba(217,164,65,.12); padding: 7px 10px;
  border-bottom: 1px solid rgba(217,164,65,.35);
}
/* ---------- Start screen ---------- */
#start-screen { padding: 28px 22px 22px; text-align: center; }
.logo-circle {
  width: 92px; height: 92px; margin: 6px auto 14px; border-radius: 50%;
  background: linear-gradient(145deg, #D9A441, #b8862e);
  color: #0B2239; display: flex; align-items: center; justify-content: center;
  font-size: 34px; font-weight: 800; letter-spacing: .02em;
  box-shadow: 0 8px 26px rgba(217,164,65,.35);
}
h1 { font-size: 26px; font-weight: 700; }
.sub { color: #b9c6d4; margin-top: 4px; font-size: 14px; }
.card {
  margin: 20px 0 0; background: #102c49; border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px; padding: 14px 16px; text-align: left; font-size: 14px; line-height: 1.55;
}
.card h2 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #D9A441; margin-bottom: 8px; }
.card ul { list-style: none; }
.card li { display: flex; justify-content: space-between; padding: 3px 0; border-bottom: 1px dashed rgba(255,255,255,.07); }
.card li:last-child { border-bottom: none; }
.card li span:last-child { color: #D9A441; font-weight: 600; white-space: nowrap; margin-left: 12px; }
#call-btn {
  margin-top: 22px; width: 100%; padding: 16px; font-size: 18px; font-weight: 700;
  color: #0B2239; background: linear-gradient(145deg, #E7BC5A, #D9A441);
  border: none; border-radius: 999px; cursor: pointer;
  box-shadow: 0 8px 24px rgba(217,164,65,.4);
}
#call-btn:active { transform: scale(.98); }
.hint { margin-top: 14px; font-size: 12.5px; color: #8fa3b8; line-height: 1.6; }
#last-booking { margin-top: 10px; font-size: 13px; color: #D9A441; min-height: 18px; }
/* ---------- Call screen ---------- */
#call-screen { display: none; flex: 1; flex-direction: column; min-height: 0; }
.call-head { padding: 18px 16px 10px; text-align: center; border-bottom: 1px solid rgba(255,255,255,.08); }
.avatar {
  width: 64px; height: 64px; margin: 0 auto 8px; border-radius: 50%;
  background: linear-gradient(145deg, #D9A441, #b8862e); color: #0B2239;
  display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800;
}
.call-head h2 { font-size: 18px; }
#call-status { font-size: 12.5px; color: #8fa3b8; margin-top: 2px; }
#call-timer { font-size: 15px; color: #D9A441; font-variant-numeric: tabular-nums; margin-top: 4px; font-weight: 600; }
#lang-buttons { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
#lang-buttons button {
  padding: 8px 16px; border-radius: 999px; border: 1px solid #D9A441;
  background: transparent; color: #D9A441; font-size: 14px; font-weight: 600; cursor: pointer;
}
#lang-buttons button:active { background: #D9A441; color: #0B2239; }
#chat-log {
  flex: 1; overflow-y: auto; padding: 14px 14px 8px; display: flex; flex-direction: column; gap: 8px;
  min-height: 220px; -webkit-overflow-scrolling: touch;
}
.bubble {
  max-width: 85%; padding: 10px 13px; border-radius: 16px; font-size: 15px; line-height: 1.5;
  white-space: pre-wrap; word-break: break-word;
}
.bubble.ai { align-self: flex-start; background: #16324f; color: #eef2f7; border-bottom-left-radius: 4px; }
.bubble.user { align-self: flex-end; background: #D9A441; color: #0B2239; border-bottom-right-radius: 4px; font-weight: 500; }
#chat-log[dir="rtl"] .bubble.ai { align-self: flex-end; border-bottom-left-radius: 16px; border-bottom-right-radius: 4px; }
#chat-log[dir="rtl"] .bubble.user { align-self: flex-start; border-bottom-right-radius: 16px; border-bottom-left-radius: 4px; }
.sms {
  align-self: center; width: 92%; background: #1c2f45; border: 1px solid rgba(217,164,65,.5);
  border-radius: 12px; padding: 10px 12px; font-size: 13.5px; line-height: 1.5; color: #dfe8f2;
}
.sms-tag {
  display: inline-block; background: #D9A441; color: #0B2239; font-size: 10.5px; font-weight: 800;
  letter-spacing: .08em; border-radius: 5px; padding: 2px 7px; margin-right: 8px; vertical-align: middle;
}
.note { align-self: center; font-size: 12px; color: #8fa3b8; font-style: italic; }
#chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 4px 14px 8px; }
.chip {
  padding: 7px 13px; border-radius: 999px; border: 1px solid rgba(217,164,65,.6);
  background: transparent; color: #E7BC5A; font-size: 13.5px; cursor: pointer;
}
.chip:active { background: rgba(217,164,65,.2); }
.call-controls { padding: 8px 12px 14px; border-top: 1px solid rgba(255,255,255,.08); }
.input-row { display: flex; gap: 8px; align-items: center; }
#msg-input {
  flex: 1; padding: 12px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18);
  background: #102c49; color: #eef2f7; font-size: 15px; outline: none; min-width: 0;
}
#msg-input::placeholder { color: #7e93a8; }
#send-btn {
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: #D9A441; color: #0B2239; font-size: 18px; font-weight: 700; flex-shrink: 0;
}
#mic-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid #D9A441; cursor: pointer;
  background: transparent; color: #D9A441; font-size: 20px; flex-shrink: 0;
  touch-action: none; user-select: none; -webkit-user-select: none;
}
#mic-btn.listening { background: #c0392b; border-color: #c0392b; color: #fff; animation: pulse 1s infinite; }
#mic-btn.unsupported { opacity: .45; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(192,57,43,.5); } 70% { box-shadow: 0 0 0 12px rgba(192,57,43,0); } 100% { box-shadow: 0 0 0 0 rgba(192,57,43,0); } }
.mic-hint { text-align: center; font-size: 11.5px; color: #8fa3b8; margin-top: 7px; }
#end-btn {
  margin-top: 10px; width: 100%; padding: 12px; border-radius: 999px; border: none; cursor: pointer;
  background: #c0392b; color: #fff; font-size: 15px; font-weight: 700;
}
#test-results { display: none; }
