:root {
  --bg-canvas: #f4f1ea;
  --bg-accent-top: rgba(12, 56, 82, 0.08);
  --bg-accent-bottom: rgba(197, 138, 43, 0.1);
  --surface: #ffffff;
  --surface-subtle: #f9f7f3;
  --ink-primary: #082336;
  --ink-secondary: #435665;
  --ink-muted: #6e7f8d;
  --brand-navy: #0c3852;
  --brand-navy-hover: #082336;
  --brand-sky: #026597;
  --gold-accent: #c58a2b;
  --gold-soft: rgba(197, 138, 43, 0.16);
  --success: #0f766e;
  --danger: #b91c1c;
  --danger-hover: #991b1b;
  --border-subtle: rgba(8, 35, 54, 0.1);
  --shadow-card: 0 24px 60px -24px rgba(8, 35, 54, 0.18), 0 4px 16px -4px rgba(8, 35, 54, 0.06);
  --radius-card: 24px;
  --radius-control: 14px;
}

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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink-primary);
  background:
    radial-gradient(circle at 85% 12%, var(--bg-accent-top), transparent 44%),
    radial-gradient(circle at 12% 88%, var(--bg-accent-bottom), transparent 46%),
    var(--bg-canvas);
  -webkit-font-smoothing: antialiased;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.concierge-card {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  padding: 28px 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.brand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.brand-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  display: block;
}

.city-caption {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0.01em;
}

.hero-copy {
  text-align: center;
}

.hero-copy h1 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink-primary);
}

.subtitle {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--ink-secondary);
}

.stage-panel {
  background: var(--surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 24px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.stage-panel[data-state='connected'] {
  background: linear-gradient(180deg, #f4f9fb 0%, #f9f7f3 100%);
  border-color: rgba(2, 101, 151, 0.22);
}

.orb-wrapper {
  position: relative;
  width: 112px;
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orb-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(12, 56, 82, 0.14);
  transition: transform 0.35s ease, border-color 0.35s ease, opacity 0.35s ease;
}

.stage-panel[data-state='connecting'] .orb-ring {
  border-color: var(--gold-accent);
  animation: kohl-ring-pulse 1.6s ease-in-out infinite;
}

.stage-panel[data-state='connected'] .orb-ring {
  border-color: rgba(2, 101, 151, 0.35);
  animation: kohl-ring-breathe 2.6s ease-in-out infinite;
}

.orb-core {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(145deg, #0c3852 0%, #082336 100%);
  box-shadow: 0 14px 28px -10px rgba(8, 35, 54, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.3s ease;
}

.stage-panel[data-state='connected'] .orb-core {
  background: linear-gradient(145deg, #026597 0%, #0c3852 100%);
}

.stage-panel[data-state='speaking'] .orb-core {
  background: linear-gradient(145deg, #0f766e 0%, #0c3852 100%);
}

.voice-bars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 36px;
}

.voice-bars span {
  display: block;
  width: 4px;
  height: 10px;
  border-radius: 99px;
  background: #f6e7c8;
  transition: height 0.1s ease-out, opacity 0.2s ease;
  opacity: 0.72;
}

.voice-bars span:nth-child(2),
.voice-bars span:nth-child(4) {
  height: 16px;
}

.voice-bars span:nth-child(3) {
  height: 22px;
  background: #ffffff;
  opacity: 0.95;
}

.stage-panel[data-state='connecting'] .voice-bars span {
  animation: kohl-bar-wave 1.1s ease-in-out infinite;
}

.stage-panel[data-state='connecting'] .voice-bars span:nth-child(2) {
  animation-delay: 0.12s;
}
.stage-panel[data-state='connecting'] .voice-bars span:nth-child(3) {
  animation-delay: 0.24s;
}
.stage-panel[data-state='connecting'] .voice-bars span:nth-child(4) {
  animation-delay: 0.36s;
}
.stage-panel[data-state='connecting'] .voice-bars span:nth-child(5) {
  animation-delay: 0.48s;
}

.status-block {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.status-label {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-primary);
}

.status-sub {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.call-timer {
  margin: 6px 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--brand-sky);
  direction: ltr;
}

.caller-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink-secondary);
}

.text-input {
  width: 100%;
  padding: 11px 14px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink-primary);
  background: var(--surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.text-input:focus {
  background: #ffffff;
  border-color: var(--brand-sky);
  box-shadow: 0 0 0 3px rgba(2, 101, 151, 0.12);
}

.error-banner {
  padding: 11px 14px;
  border-radius: 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 0.86rem;
  line-height: 1.55;
  text-align: center;
}

.actions-area {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn {
  width: 100%;
  border: none;
  border-radius: var(--radius-control);
  padding: 14px 18px;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.14s ease, background-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn:active:not(:disabled) {
  transform: scale(0.985);
}

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

.btn-icon {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--brand-navy);
  color: #ffffff;
  box-shadow: 0 12px 24px -12px rgba(8, 35, 54, 0.55);
}

.btn-primary:hover:not(:disabled) {
  background: var(--brand-navy-hover);
}

.live-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-secondary {
  background: var(--surface-subtle);
  color: var(--ink-primary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover:not(:disabled) {
  background: #efeae0;
}

.btn-secondary[aria-pressed='true'] {
  background: var(--gold-soft);
  color: #8a5a10;
  border-color: rgba(197, 138, 43, 0.35);
}

.btn-danger {
  background: var(--danger);
  color: #ffffff;
}

.btn-danger:hover:not(:disabled) {
  background: var(--danger-hover);
}

.card-footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.hours-row {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.whatsapp-link {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--brand-sky);
  text-decoration: none;
}

.whatsapp-link:hover {
  text-decoration: underline;
}

/* Compact embed mode for floating website widget (?embed=1) */
body.embed-mode {
  background: #ffffff;
}

body.embed-mode .page-shell {
  min-height: auto;
  padding: 0;
  display: block;
}

body.embed-mode .concierge-card {
  max-width: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 18px 18px 16px;
  gap: 14px;
}

body.embed-mode .brand-logo {
  height: 32px;
}

body.embed-mode .hero-copy h1 {
  font-size: 1.2rem;
}

body.embed-mode .subtitle {
  font-size: 0.85rem;
}

body.embed-mode .stage-panel {
  padding: 16px 14px;
}

@keyframes kohl-ring-pulse {
  0%,
  100% {
    transform: scale(0.95);
    opacity: 0.45;
  }
  50% {
    transform: scale(1.06);
    opacity: 0.95;
  }
}

@keyframes kohl-ring-breathe {
  0%,
  100% {
    transform: scale(0.98);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.04);
    opacity: 0.9;
  }
}

@keyframes kohl-bar-wave {
  0%,
  100% {
    height: 10px;
  }
  50% {
    height: 28px;
  }
}

@media (max-width: 480px) {
  .concierge-card {
    padding: 22px 18px 18px;
    border-radius: 20px;
  }

  .live-controls {
    grid-template-columns: 1fr;
  }
}
