/* ═══════════════════════════════════════════════════════════════
   RADIX Web — "Ceramic & Glass" 2026 Future-Luxury Design System
   Palette: Void Blue bg · Ceramic White text · Cyber Gold accents
   ═══════════════════════════════════════════════════════════════ */

/* ── CSS Custom Properties (Theme Tokens) ── */
:root {
  --void-bg: rgb(5, 10, 20);
  --void-bg-deep: rgb(2, 4, 8);
  --void-card: rgb(15, 18, 30);
  --ceramic: rgb(242, 242, 247);
  --ceramic-80: rgba(242, 242, 247, 0.8);
  --ceramic-55: rgba(242, 242, 247, 0.55);
  --ceramic-38: rgba(242, 242, 247, 0.38);
  --ceramic-22: rgba(242, 242, 247, 0.22);
  --ceramic-12: rgba(242, 242, 247, 0.12);
  --ceramic-08: rgba(242, 242, 247, 0.08);
  --ceramic-06: rgba(242, 242, 247, 0.06);
  --ceramic-04: rgba(242, 242, 247, 0.04);
  --gold: #D4AF37;
  --gold-80: rgba(212, 175, 55, 0.8);
  --gold-60: rgba(212, 175, 55, 0.6);
  --gold-45: rgba(212, 175, 55, 0.45);
  --gold-25: rgba(212, 175, 55, 0.25);
  --gold-15: rgba(212, 175, 55, 0.15);
  --gold-10: rgba(212, 175, 55, 0.1);
  --gold-08: rgba(212, 175, 55, 0.08);
  --gold-04: rgba(212, 175, 55, 0.04);
  --holo: #00C7BE;
  --holo-60: rgba(0, 199, 190, 0.6);
  --holo-15: rgba(0, 199, 190, 0.15);
  --danger: rgb(255, 107, 107);
  --walk: #64DC78;
  --walk-12: rgba(100, 220, 120, 0.12);
  --taxi: #FFC850;
  --hotel-color: var(--gold);
  --restaurant-color: #FF8C6A;
  --attraction-color: var(--holo);
  --default-color: #64DC78;
  --glass-bg: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.14);
  --gold-border: linear-gradient(135deg, rgba(255,255,255,0.3), rgba(212,175,55,0.6));
  --panel-radius: 24px;
  --card-radius: 20px;
  --btn-radius: 14px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100dvh; width: 100%;
  font-family: var(--font);
  background: var(--void-bg);
  color: var(--ceramic);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

input, textarea, button { font-family: var(--font); }
button { cursor: pointer; border: none; background: none; color: inherit; }
input { border: none; outline: none; background: none; color: inherit; }

.hidden { display: none !important; visibility: hidden; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--ceramic-12); border-radius: 4px; }

/* ═══════════════ SPLASH SCREEN ═══════════════ */
.splash {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: var(--void-bg);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.splash.fade-out { opacity: 0; visibility: hidden; pointer-events: none; }

.splash-bg {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--void-bg), var(--void-bg-deep));
  opacity: 0;
  animation: splashBgIn 0.8s 0.4s ease forwards;
}
.splash-radial {
  position: absolute; inset: 0;
  background: radial-gradient(circle at center, var(--gold-10), transparent 60%);
  opacity: 0;
  animation: splashBgIn 0.8s 0.4s ease forwards;
}

.splash-content {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  z-index: 1;
}

.splash-logo-ring {
  width: 130px; height: 130px; position: relative;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(1.15);
  animation: splashLogoIn 0.7s 0.1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.splash-logo-inner {
  width: 120px; height: 120px; border-radius: 32px;
  border: 1.5px solid var(--gold-45);
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-04);
}
.splash-logo-img {
  width: 96px; height: 96px;
  border-radius: 24px;
  object-fit: cover;
}
.splash-logo-letter {
  font-size: 64px; font-weight: 800;
  background: linear-gradient(135deg, var(--gold), var(--gold-60));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.splash-shimmer {
  position: absolute; top: 0; left: 0; width: 60px; height: 160px;
  background: linear-gradient(135deg, transparent, var(--gold-45), transparent);
  transform: rotate(25deg); opacity: 0;
  border-radius: 24px; overflow: hidden;
  animation: splashShimmer 0.7s 0.7s ease-in-out forwards;
}
.splash-wordmark {
  font-size: 42px; font-weight: 800; letter-spacing: 2px;
  background: linear-gradient(135deg, var(--gold), var(--gold-60));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0; animation: splashLogoIn 0.7s 0.1s ease forwards;
}
.splash-subtitle {
  font-size: 14px; font-weight: 500; color: var(--holo);
  opacity: 0; animation: fadeIn 0.5s 1s ease forwards;
}

@keyframes splashLogoIn {
  to { opacity: 1; transform: scale(1); }
}
@keyframes splashBgIn {
  to { opacity: 1; }
}
@keyframes splashShimmer {
  0% { opacity: 0.9; left: -60px; }
  100% { opacity: 0; left: calc(100% + 60px); }
}
@keyframes fadeIn {
  to { opacity: 1; }
}

/* ═══════════════ SETUP MODAL ═══════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 8000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  animation: fadeIn 0.3s ease;
}

.setup-card {
  width: 90%; max-width: 420px;
  padding: 36px 28px;
  background: var(--void-card);
  border-radius: var(--panel-radius);
  border: 1px solid var(--glass-border);
  box-shadow: 0 24px 48px rgba(0,0,0,0.5);
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.setup-icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--gold-10);
  border: 1px solid var(--gold-25);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
}
.setup-icon svg { width: 24px; height: 24px; }
.setup-title { font-size: 22px; font-weight: 800; text-align: center; }
.setup-desc { font-size: 13px; color: var(--ceramic-55); text-align: center; line-height: 1.5; }
.setup-field { width: 100%; display: flex; flex-direction: column; gap: 6px; }
.setup-field label { font-size: 12px; font-weight: 600; color: var(--gold-80); text-transform: uppercase; letter-spacing: 0.5px; }
.setup-field input {
  width: 100%; padding: 12px 14px;
  background: var(--ceramic-06);
  border: 1px solid var(--ceramic-12);
  border-radius: 12px; font-size: 14px;
  color: var(--ceramic);
  transition: border-color 0.2s;
}
.setup-field input:focus { border-color: var(--gold-45); }
.setup-field input::placeholder { color: var(--ceramic-22); }
.setup-note { font-size: 11px; color: var(--ceramic-38); }

/* ── Buttons ── */
.btn-gold {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: var(--btn-radius);
  background: linear-gradient(135deg, var(--gold), var(--gold-80));
  color: var(--void-bg); font-weight: 700; font-size: 15px;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 16px var(--gold-25);
}
.btn-gold:active { transform: scale(0.97); }
.btn-gold svg { width: 18px; height: 18px; }
.btn-full { width: 100%; }
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--btn-radius);
  background: var(--gold-08);
  border: 1px solid var(--gold-25);
  color: var(--gold); font-weight: 600; font-size: 14px;
  transition: background 0.15s;
}
.btn-outline:active { background: var(--gold-15); }
.btn-outline svg { width: 16px; height: 16px; }
.btn-danger { color: var(--danger); border-color: rgba(255,107,107,0.25); background: rgba(255,107,107,0.08); }
.btn-danger:active { background: rgba(255,107,107,0.15); }

.icon-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ceramic-55); position: relative;
  transition: background 0.15s;
}
.icon-btn:hover { background: var(--ceramic-06); }
.icon-btn svg { width: 18px; height: 18px; }

.badge {
  position: absolute; top: -2px; right: -2px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: var(--gold);
  color: var(--void-bg); font-size: 9px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

/* ═══════════════ APP LAYOUT ═══════════════ */
.app {
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--void-bg), var(--void-bg-deep));
  animation: fadeIn 0.4s ease;
}

.view {
  flex: 1; display: none; flex-direction: column;
  overflow: hidden; position: relative;
  min-height: 0;
}
.view.active { display: flex; }

/* ═══════════════ DISCOVER VIEW ═══════════════ */
.discover-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(env(safe-area-inset-top, 0px) + 16px) 20px 12px;
  background: rgba(5, 10, 20, 0.6);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  position: relative; z-index: 10; flex-shrink: 0;
}
.discover-header::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-25), transparent);
}
.discover-header-left { display: flex; flex-direction: column; gap: 4px; }
.discover-title { font-size: 30px; font-weight: 800; letter-spacing: -0.5px; }
.discover-location { display: flex; align-items: center; gap: 4px; color: var(--ceramic-55); }
.discover-location svg { width: 12px; height: 12px; color: var(--gold); }
.discover-location span { font-size: 12px; font-weight: 500; }
.discover-header-right { display: flex; align-items: center; gap: 8px; }
.discover-header-right .icon-btn { color: var(--gold-80); }

/* Subtle gold radial at top */
.discover-scroll {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  padding: 12px 0 100px;
  position: relative;
}
.discover-scroll::before {
  content: ''; position: fixed; top: 0; left: 0; right: 0;
  height: 300px; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse at top center, var(--gold-08), transparent 70%);
}

/* Greeting Card */
.greeting-card {
  display: flex; gap: 12px; padding: 14px;
  margin: 0 16px 16px;
  border-radius: var(--card-radius);
  background: var(--glass-bg);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 12px 32px rgba(0,0,0,0.35), 0 0 20px var(--holo-15);
  position: relative; z-index: 1;
  animation: slideUp 0.4s ease;
}
.greeting-icon {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: var(--holo-15);
  border: 1px solid var(--holo-60);
  display: flex; align-items: center; justify-content: center;
  color: var(--holo);
}
.greeting-icon svg { width: 14px; height: 14px; }
.greeting-content { display: flex; flex-direction: column; gap: 4px; }
.greeting-label { font-size: 10px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 0.5px; }
#greeting-text { font-size: 13px; color: var(--ceramic-80); line-height: 1.5; }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Filter Row */
.filter-row {
  display: flex; gap: 8px; padding: 0 16px 16px;
  overflow-x: auto; flex-shrink: 0; position: relative; z-index: 1;
  -ms-overflow-style: none; scrollbar-width: none;
}
.filter-row::-webkit-scrollbar { display: none; }

.filter-chip {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 14px; border-radius: 20px;
  background: var(--ceramic-06);
  border: 1px solid var(--ceramic-08);
  color: var(--ceramic-55);
  font-size: 12px; font-weight: 600;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.filter-chip svg { width: 12px; height: 12px; }
.filter-chip.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--void-bg);
}

/* Places Grid */
.places-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px; padding: 0 16px;
  position: relative; z-index: 1;
}

/* Place Card */
.place-card {
  border-radius: var(--card-radius);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 6px 24px rgba(0,0,0,0.4);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: cardIn 0.4s ease backwards;
  background: var(--void-card);
}
.place-card:active { transform: scale(0.97); }

.place-card-hero {
  height: 138px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--card-type-color, var(--gold)) 0%, rgba(15,18,30,0.9) 100%);
}
.place-card-hero img {
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity 0.3s;
}
.place-card-hero-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  position: relative; overflow: hidden;
}
.place-card-hero-placeholder .hero-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
}
.place-card-hero-placeholder .hero-icon svg { width: 26px; height: 26px; opacity: 0.8; }
.place-card-hero-placeholder .hero-type-label {
  font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
  opacity: 0.5;
}

.place-card-badge {
  position: absolute; top: 10px; left: 10px;
  display: flex; align-items: center; gap: 4px;
  padding: 4px 8px; border-radius: 20px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 0.5px solid rgba(255,255,255,0.15);
  font-size: 8px; font-weight: 700; text-transform: uppercase;
}
.place-card-badge svg { width: 10px; height: 10px; }

.place-card-info { padding: 12px; display: flex; flex-direction: column; gap: 10px; background: var(--glass-bg); backdrop-filter: blur(12px); }

.place-card-name { font-size: 14px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.place-card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.place-card-distance { display: flex; align-items: center; gap: 3px; font-size: 10px; font-weight: 500; color: var(--ceramic-55); }
.place-card-distance svg { width: 10px; height: 10px; }
.place-card-transport {
  display: flex; align-items: center; gap: 3px;
  font-size: 10px; font-weight: 600;
  padding: 3px 7px; border-radius: 10px;
}
.place-card-rating { display: flex; align-items: center; gap: 3px; font-size: 10px; font-weight: 700; color: var(--ceramic-80); }
.place-card-rating svg { width: 10px; height: 10px; color: var(--gold); fill: var(--gold); }

.place-card-actions { display: flex; gap: 8px; }
.place-card-actions button {
  flex: 1; padding: 8px; border-radius: 20px;
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  transition: opacity 0.15s;
}
.place-card-actions button:active { opacity: 0.7; }
.place-card-actions .btn-book { background: var(--gold); color: var(--void-bg); }
.place-card-actions .btn-go { background: var(--gold-10); border: 1px solid var(--gold-25); color: var(--gold); }
.place-card-actions .btn-go svg { width: 12px; height: 12px; }

@keyframes cardIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Shimmer Card */
.shimmer-card {
  border-radius: var(--card-radius); overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--void-card);
}
.shimmer-hero {
  height: 138px; background: var(--ceramic-04); position: relative; overflow: hidden;
}
.shimmer-hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, var(--gold-08), transparent);
  animation: shimmer 1.4s linear infinite;
}
.shimmer-info { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.shimmer-line { height: 13px; border-radius: 4px; background: var(--ceramic-06); }
.shimmer-line.short { width: 60%; height: 10px; }

@keyframes shimmer {
  from { transform: translateX(-100%); }
  to { transform: translateX(200%); }
}

/* Empty State */
.empty-state {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 60px 20px; text-align: center;
  position: relative; z-index: 1;
}
.empty-state > svg { width: 48px; height: 48px; color: var(--gold-25); }
.empty-state p { font-size: 16px; font-weight: 600; color: var(--ceramic-38); }

/* ═══════════════ AGENT CHAT VIEW ═══════════════ */
.chat-header {
  display: flex; align-items: center; gap: 12px;
  padding: calc(env(safe-area-inset-top, 0px) + 16px) 16px 16px;
  background: rgba(5, 10, 20, 0.6);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  position: relative; z-index: 10; flex-shrink: 0;
}
.chat-header::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-25), transparent);
}

.chat-avatar-wrap {
  width: 56px; height: 56px; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.chat-avatar-pulse {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid var(--gold-25);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 0; }
}
.chat-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gold-10);
  border: 1.5px solid var(--gold-45);
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
}
.chat-avatar.speaking { border-color: var(--holo-60); }
.chat-avatar-inner { color: var(--gold); }
.chat-avatar-inner svg { width: 18px; height: 18px; }
.chat-avatar.speaking .chat-avatar-inner { color: var(--holo); }

.chat-header-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.chat-agent-name { font-size: 17px; font-weight: 700; }
.chat-status { display: flex; align-items: center; gap: 5px; }
.chat-status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ceramic-38);
  transition: background 0.3s;
}
.chat-status-dot.ready { background: var(--ceramic-38); }
.chat-status-dot.thinking { background: var(--gold); animation: dotPulse 1s ease infinite; }
.chat-status-dot.speaking { background: var(--holo); }
.chat-status-dot.error { background: var(--danger); }
.chat-status-text { font-size: 11px; color: var(--ceramic-55); }

@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.chat-header-actions { display: flex; align-items: center; gap: 8px; }

/* Chat Messages */
.chat-messages {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  padding: 14px 16px 12px;
  display: flex; flex-direction: column; gap: 14px;
  scroll-behavior: smooth;
  position: relative;
}
.chat-messages::before {
  content: ''; position: fixed; top: 0; left: 0; right: 0;
  height: 280px; pointer-events: none;
  background: radial-gradient(ellipse at top center, var(--gold-04), transparent 70%);
}

/* Date Divider */
.chat-date-divider {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 0;
}
.chat-date-divider::before, .chat-date-divider::after {
  content: ''; flex: 1; height: 0.5px; background: var(--ceramic-08);
}
.chat-date-divider span {
  font-size: 11px; font-weight: 500; color: var(--ceramic-38);
  padding: 5px 10px;
  background: var(--ceramic-06);
  border-radius: 20px;
  border: 0.5px solid var(--ceramic-12);
  white-space: nowrap;
}

/* Session Divider */
.session-divider {
  display: flex; align-items: center; gap: 8px; padding: 4px 8px;
}
.session-divider::before, .session-divider::after {
  content: ''; flex: 1; height: 0.5px; background: var(--gold-25);
}
.session-divider span {
  font-size: 10px; font-weight: 500; color: var(--ceramic-22); white-space: nowrap;
}

/* Message Bubble */
.msg-row { display: flex; gap: 8px; align-items: flex-end; animation: msgIn 0.3s ease; }
.msg-row.user { justify-content: flex-end; }
.msg-row.agent { justify-content: flex-start; }

@keyframes msgIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.msg-agent-avatar {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: var(--gold-10);
  display: flex; align-items: center; justify-content: center;
  align-self: flex-start; margin-top: 2px;
}
.msg-agent-avatar svg { width: 12px; height: 12px; color: var(--gold); }

.msg-content { display: flex; flex-direction: column; gap: 8px; max-width: 80%; min-width: 60px; }

.msg-bubble {
  padding: 14px;
  font-size: 14px; line-height: 1.55;
  word-wrap: break-word; white-space: pre-wrap;
}
.msg-row.agent .msg-bubble {
  background: var(--glass-bg);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: 18px 18px 18px 4px;
  border: 0.8px solid var(--gold-25);
  color: var(--ceramic-80);
}
.msg-row.user .msg-bubble {
  background: var(--gold);
  border-radius: 18px 18px 4px 18px;
  color: var(--void-bg);
  box-shadow: 0 3px 12px var(--gold-25);
}

.msg-time {
  font-size: 9px; color: var(--ceramic-22);
  padding: 0 4px;
}
.msg-row.user .msg-time { text-align: right; }

/* Place cards in chat */
.msg-places-scroll {
  display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px;
  -ms-overflow-style: none; scrollbar-width: none;
}
.msg-places-scroll::-webkit-scrollbar { display: none; }

.agent-place-card {
  width: 220px; min-width: 220px; border-radius: 16px; overflow: hidden;
  background: var(--glass-bg);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 0.8px solid var(--glass-border);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: transform 0.15s;
}
.agent-place-card:active { transform: scale(0.97); }

.agent-place-hero { height: 120px; position: relative; overflow: hidden; }
.agent-place-hero img { width: 100%; height: 100%; object-fit: cover; }
.agent-place-hero .hero-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.agent-place-hero .hero-placeholder svg { width: 28px; height: 28px; opacity: 0.4; }
.agent-place-hero .type-badge {
  position: absolute; top: 8px; left: 8px;
  display: flex; align-items: center; gap: 3px;
  padding: 3px 6px; border-radius: 10px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
  font-size: 7px; font-weight: 700; text-transform: uppercase;
}
.agent-place-hero .type-badge svg { width: 8px; height: 8px; }
.agent-place-hero .open-badge {
  position: absolute; top: 8px; right: 8px;
  padding: 3px 6px; border-radius: 10px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
  font-size: 7px; font-weight: 700;
}

.agent-place-info { padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.agent-place-name { font-size: 13px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.agent-place-meta { display: flex; align-items: center; gap: 6px; }
.agent-place-meta .rating { display: flex; align-items: center; gap: 2px; font-size: 10px; font-weight: 700; color: var(--ceramic-80); }
.agent-place-meta .rating svg { width: 10px; height: 10px; color: var(--gold); fill: var(--gold); }
.agent-place-meta .distance { font-size: 10px; color: var(--ceramic-55); }
.agent-place-actions { display: flex; gap: 6px; }
.agent-place-actions button {
  flex: 1; padding: 7px; border-radius: 20px;
  font-size: 11px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 3px;
}
.agent-place-actions button svg { width: 10px; height: 10px; }
.agent-place-actions .btn-details { background: var(--gold-10); border: 1px solid var(--gold-25); color: var(--gold); }
.agent-place-actions .btn-navigate { color: white; }

/* Inline Booking Card */
.inline-booking {
  border-radius: 16px; overflow: hidden;
  background: var(--glass-bg);
  border: 1px solid var(--gold-45);
  box-shadow: 0 4px 16px var(--gold-25);
}
.inline-booking-header {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
}
.inline-booking-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--gold-15);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
}
.inline-booking-icon svg { width: 18px; height: 18px; }
.inline-booking-title { font-size: 12px; font-weight: 700; }
.inline-booking-place { font-size: 11px; color: var(--ceramic-55); }
.inline-booking-type {
  font-size: 9px; font-weight: 700; text-transform: uppercase;
  padding: 4px 8px; border-radius: 10px;
  background: var(--gold-10); color: var(--gold-80);
  margin-left: auto;
}
.inline-booking-chips {
  display: flex; gap: 12px; flex-wrap: wrap;
  padding: 10px 14px;
  border-top: 1px solid var(--ceramic-08);
}
.inline-booking-chip {
  display: flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 500; color: var(--ceramic-55);
}
.inline-booking-chip svg { width: 10px; height: 10px; color: var(--gold-60); }
.inline-booking-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; padding: 12px;
  background: var(--gold); color: var(--void-bg);
  font-size: 13px; font-weight: 700;
}
.inline-booking-btn svg { width: 14px; height: 14px; }

/* Typing Indicator */
.typing-indicator {
  display: flex; align-items: center; gap: 8px;
  padding: 0 16px 8px;
}
.typing-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--gold-10);
  display: flex; align-items: center; justify-content: center;
}
.typing-avatar svg { width: 12px; height: 12px; color: var(--gold); }
.typing-dots {
  display: flex; gap: 5px;
  padding: 12px 16px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  border: 0.8px solid var(--gold-25);
}
.typing-dots span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold-60);
  animation: typingBounce 1s ease-in-out infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%, 100% { transform: scale(0.6); opacity: 0.4; }
  50% { transform: scale(1); opacity: 1; }
}

/* Chat Input Bar */
.chat-input-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: rgba(5, 10, 20, 0.6);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  position: relative; z-index: 10; flex-shrink: 0;
}
.chat-input-bar::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-25), transparent);
}

.mic-btn {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: var(--gold-08);
  border: 1.5px solid var(--gold-25);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  transition: all 0.2s;
}
.mic-btn svg { width: 16px; height: 16px; }
.mic-btn.recording {
  background: rgba(255, 60, 60, 0.12);
  border-color: rgba(255, 60, 60, 0.7);
  color: #ff3c3c;
  animation: micPulse 1.5s ease infinite;
}
@keyframes micPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 60, 60, 0.3); }
  50% { box-shadow: 0 0 0 8px rgba(255, 60, 60, 0); }
}

.chat-input-wrap {
  flex: 1; padding: 11px 14px;
  background: var(--ceramic-06);
  border-radius: 22px;
  border: 1px solid var(--gold-15);
  transition: border-color 0.2s;
}
.chat-input-wrap:focus-within { border-color: var(--gold-45); }
#chat-input {
  width: 100%; font-size: 14px; color: var(--ceramic);
}
#chat-input::placeholder { color: var(--ceramic-22); }

.send-btn {
  width: 36px; height: 36px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--ceramic-22);
  transition: color 0.2s;
}
.send-btn svg { width: 32px; height: 32px; }
.send-btn:not(:disabled) { color: var(--gold); }

/* ═══════════════ TAB BAR ═══════════════ */
.tab-bar {
  display: flex; align-items: center;
  padding: 10px 12px;
  margin: 0 32px calc(env(safe-area-inset-bottom, 0px) + 12px);
  border-radius: 30px;
  background: rgba(15, 18, 30, 0.7);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 6px 24px var(--gold-10), 0 10px 40px rgba(0,0,0,0.5);
  position: relative; z-index: 100;
  flex-shrink: 0;
}

.tab-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 4px; border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.tab-btn span { font-size: 9px; font-weight: 500; color: var(--ceramic-38); transition: all 0.3s; }
.tab-btn.active span { font-weight: 700; color: var(--gold); }

.tab-icon-wrap { position: relative; display: flex; align-items: center; justify-content: center; width: 50px; height: 34px; }
.tab-icon-bg {
  position: absolute; inset: 0; border-radius: 12px;
  background: var(--gold-15);
  box-shadow: 0 2px 12px var(--gold-25);
  opacity: 0; transition: opacity 0.3s;
}
.tab-btn.active .tab-icon-bg { opacity: 1; }
.tab-btn svg { width: 20px; height: 20px; color: var(--ceramic-38); position: relative; z-index: 1; transition: color 0.3s; }
.tab-btn.active svg { color: var(--gold); }

/* Disabled AR tab */
.tab-btn-disabled {
  opacity: 0.4; cursor: default; position: relative;
  pointer-events: none;
}
.tab-btn-disabled .tab-icon-bg { display: none; }
.tab-soon-badge {
  position: absolute; top: -2px; right: 50%; transform: translateX(calc(50% + 18px));
  font-size: 7px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.3px;
  padding: 2px 5px; border-radius: 6px;
  background: var(--holo); color: var(--void-bg);
  line-height: 1;
}

/* ═══════════════ SLIDE MODAL ═══════════════ */
.slide-modal {
  position: fixed; inset: 0; z-index: 5000;
  display: flex; align-items: flex-end; justify-content: center;
}
.slide-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  animation: fadeIn 0.25s ease;
}
.slide-modal-content {
  position: relative; z-index: 1;
  width: 100%; max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--void-card);
  border-radius: 28px 28px 0 0;
  animation: slideModalIn 0.35s cubic-bezier(0.34, 1.1, 0.64, 1);
}
@keyframes slideModalIn {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-handle {
  width: 40px; height: 4px; border-radius: 4px;
  background: var(--ceramic-22);
  margin: 12px auto;
}

/* Place Detail */
.place-detail-carousel {
  height: 260px; position: relative; overflow: hidden;
}
.place-detail-carousel img {
  width: 100%; height: 100%; object-fit: cover;
}
.place-detail-carousel .carousel-counter {
  position: absolute; bottom: 12px; right: 12px;
  font-size: 10px; font-weight: 700;
  padding: 4px 8px; border-radius: 10px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
  z-index: 3;
}
.place-detail-carousel .carousel-dots {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 3;
}
.place-detail-carousel .carousel-dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ceramic-38);
  transition: all 0.25s; cursor: pointer;
}
.place-detail-carousel .carousel-dots span.active {
  width: 22px; border-radius: 4px;
  background: var(--ceramic);
}
/* Carousel arrows */
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: white; z-index: 4; cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.carousel-arrow:active { transform: translateY(-50%) scale(0.92); background: rgba(0,0,0,0.65); }
.carousel-arrow svg { width: 18px; height: 18px; }
.carousel-arrow.left { left: 10px; }
.carousel-arrow.right { right: 10px; }
.carousel-img-wrap {
  width: 100%; height: 100%; position: relative; overflow: hidden;
  touch-action: pan-y;
}
.carousel-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity 0.25s ease;
}
.place-detail-fade {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 50px;
  background: linear-gradient(transparent, var(--void-card));
}
.place-detail-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  color: var(--ceramic-80);
}
.place-detail-close svg { width: 18px; height: 18px; }

.place-detail-body { padding: 16px 20px 40px; display: flex; flex-direction: column; gap: 16px; }
.place-detail-type-row { display: flex; align-items: center; gap: 8px; }
.place-detail-type-badge {
  display: flex; align-items: center; gap: 4px;
  padding: 4px 8px; border-radius: 10px;
  background: rgba(0,0,0,0.3);
  font-size: 9px; font-weight: 700; text-transform: uppercase;
}
.place-detail-type-badge svg { width: 10px; height: 10px; }
.place-detail-open-badge {
  font-size: 10px; font-weight: 700;
  padding: 4px 8px; border-radius: 10px;
}
.place-detail-name { font-size: 24px; font-weight: 800; line-height: 1.2; }

.place-detail-rating { display: flex; align-items: center; gap: 6px; }
.place-detail-stars { display: flex; gap: 2px; }
.place-detail-stars svg { width: 14px; height: 14px; }
.place-detail-rating-num { font-size: 14px; font-weight: 700; }
.place-detail-rating-count { font-size: 12px; color: var(--ceramic-55); }

.place-detail-chips { display: flex; gap: 8px; overflow-x: auto; }
.place-detail-chip {
  display: flex; align-items: center; gap: 4px;
  padding: 6px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 500;
  white-space: nowrap;
}
.place-detail-chip svg { width: 12px; height: 12px; }

.place-detail-section { display: flex; flex-direction: column; gap: 6px; }
.place-detail-section-title { font-size: 13px; font-weight: 600; color: var(--gold); text-transform: uppercase; letter-spacing: 1px; }
.place-detail-section p { font-size: 14px; color: var(--ceramic-80); line-height: 1.6; }

.place-detail-hours {
  padding: 14px; border-radius: 14px;
  background: var(--ceramic-04);
  border: 1px solid var(--ceramic-08);
}
.place-detail-hours-toggle {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; width: 100%;
}
.place-detail-hours-toggle svg { width: 12px; height: 12px; color: var(--gold-60); transition: transform 0.3s; }
.place-detail-hours-toggle.open svg { transform: rotate(90deg); }
.place-detail-hours-list {
  display: none; flex-direction: column; gap: 5px;
  padding-top: 8px; margin-top: 8px;
  border-top: 1px solid var(--ceramic-08);
}
.place-detail-hours-list.open { display: flex; }
.place-detail-hours-list span { font-size: 12px; color: var(--ceramic-55); }

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

/* ═══════════════ BOOKING MODAL CONTENT ═══════════════ */
.booking-content { padding: 0 0 40px; text-align: center; }
.booking-check-wrap {
  display: flex; align-items: center; justify-content: center;
  padding: 32px 0 24px;
}
.booking-check-circle {
  width: 100px; height: 100px; border-radius: 50%;
  background: var(--gold-15);
  border: 2px solid var(--gold-45);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  animation: bookingCircleIn 0.5s 0.1s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}
.booking-check-circle .outer-glow {
  position: absolute; inset: -10px; border-radius: 50%;
  background: var(--gold-08);
  animation: bookingCircleIn 0.5s 0.1s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}
.booking-check-circle svg {
  width: 44px; height: 44px; color: var(--gold);
  stroke-dasharray: 100; stroke-dashoffset: 100;
  animation: checkDraw 0.7s 0.4s ease forwards;
}
@keyframes bookingCircleIn {
  from { transform: scale(0.3); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes checkDraw {
  to { stroke-dashoffset: 0; }
}

.booking-title { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.booking-subtitle { font-size: 12px; font-weight: 500; color: var(--gold); }

.booking-details-card {
  margin: 24px 20px; border-radius: 18px; overflow: hidden;
  background: var(--ceramic-06);
  border: 1px solid var(--ceramic-08);
  text-align: left;
}
.booking-detail-header { padding: 16px; display: flex; justify-content: space-between; align-items: flex-start; }
.booking-detail-header h3 { font-size: 17px; font-weight: 700; }
.booking-detail-header .detail-type { font-size: 12px; font-weight: 500; color: var(--gold); }
.booking-detail-header .detail-icon { font-size: 24px; color: var(--gold-60); }
.booking-detail-header .detail-icon svg { width: 28px; height: 28px; }
.booking-detail-rows { border-top: 1px solid var(--ceramic-08); }
.booking-detail-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px;
}
.booking-detail-row svg { width: 14px; height: 14px; color: var(--gold-60); flex-shrink: 0; }
.booking-detail-row .label { font-size: 12px; font-weight: 500; color: var(--ceramic-55); }
.booking-detail-row .value { font-size: 12px; font-weight: 600; color: var(--ceramic-80); margin-left: auto; }

.booking-note { padding: 0 20px; font-size: 13px; color: var(--ceramic-55); line-height: 1.5; margin-bottom: 24px; }
.booking-actions { padding: 0 20px; display: flex; flex-direction: column; gap: 10px; }

/* ═══════════════ SIDE PANELS ═══════════════ */
.side-panel {
  position: fixed; inset: 0; z-index: 6000;
}
.panel-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.5);
  animation: fadeIn 0.2s ease;
}
.panel-content {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 90%; max-width: 400px;
  background: var(--void-card);
  border-left: 1px solid var(--glass-border);
  box-shadow: -8px 0 32px rgba(0,0,0,0.5);
  display: flex; flex-direction: column;
  animation: panelSlideIn 0.3s cubic-bezier(0.34, 1.1, 0.64, 1);
}
@keyframes panelSlideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
.panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--ceramic-08);
}
.panel-header h2 { font-size: 20px; font-weight: 800; }

/* Bookings List */
.bookings-list { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.bookings-empty {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  color: var(--ceramic-38);
}
.bookings-empty svg { width: 40px; height: 40px; }

.booking-item {
  padding: 14px; border-radius: 16px;
  background: var(--ceramic-06);
  border: 1px solid var(--ceramic-08);
  display: flex; flex-direction: column; gap: 8px;
}
.booking-item-header { display: flex; align-items: center; justify-content: space-between; }
.booking-item-name { font-size: 14px; font-weight: 700; }
.booking-item-ref { font-size: 10px; font-weight: 600; color: var(--gold); }
.booking-item-meta { display: flex; gap: 12px; flex-wrap: wrap; }
.booking-item-meta span { font-size: 11px; color: var(--ceramic-55); display: flex; align-items: center; gap: 4px; }
.booking-item-meta svg { width: 11px; height: 11px; }
.booking-item-delete {
  align-self: flex-end;
  font-size: 11px; font-weight: 600; color: var(--danger);
  padding: 4px 10px; border-radius: 8px;
  background: rgba(255,107,107,0.08);
}

/* Settings */
.settings-body { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 24px; }
.settings-section h3 { font-size: 13px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; }
.settings-option { display: flex; flex-direction: column; gap: 8px; }

.radio-card {
  display: block; cursor: pointer;
  padding: 14px; border-radius: 14px;
  background: var(--ceramic-04);
  border: 1.5px solid var(--ceramic-08);
  transition: all 0.2s;
}
.radio-card:has(input:checked) {
  background: var(--gold-08);
  border-color: var(--gold-45);
}
.radio-card input { display: none; }
.radio-card-content { display: flex; align-items: center; gap: 12px; }
.radio-card-content svg { width: 20px; height: 20px; color: var(--ceramic-55); flex-shrink: 0; }
.radio-card:has(input:checked) .radio-card-content svg { color: var(--gold); }
.radio-card-content strong { font-size: 14px; font-weight: 600; display: block; }
.radio-card-content p { font-size: 11px; color: var(--ceramic-55); margin-top: 2px; }

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (min-width: 768px) {
  .tab-bar { max-width: 340px; margin-left: auto; margin-right: auto; }
  .places-grid { grid-template-columns: repeat(3, 1fr); }
  .slide-modal-content { max-height: 85vh; border-radius: 28px; margin-bottom: 20px; }
}

@media (min-width: 1024px) {
  .places-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ═══════════════ UTILITY ═══════════════ */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Loading spinner */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--gold-25);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
