/* ============ RESET & BASE ============ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #080b0f;
  --surface: #0d1117;
  --card: #111827;
  --card-2: #1a2332;
  --border: #1f2937;
  --border-light: #374151;
  --green: #4ade80;
  --green-dim: #22c55e;
  --green-glow: rgba(74, 222, 128, 0.12);
  --green-glow-strong: rgba(74, 222, 128, 0.22);
  --purple: #7c3aed;
  --purple-dim: #6d28d9;
  --purple-glow: rgba(124, 58, 237, 0.15);
  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 28px;
  --radius-full: 9999px;
}

html, body {
  height: 100%;
  overflow: hidden;
  background: #000;
  font-family: 'Inter', -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--text-primary);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
}

input {
  font-family: inherit;
  color: inherit;
}

/* ============ APP SHELL ============ */
.app {
  max-width: 430px;
  height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ============ TOP NAV ============ */
.top-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 16px 20px 10px;
  flex-shrink: 0;
}

.nav-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 30px;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  text-align: center;
}

.nav-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple) 0%, var(--green) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: white;
  margin-left: auto;
  cursor: pointer;
  flex-shrink: 0;
}

/* ============ HOME CONTENT ============ */
.home-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 80px;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.home-content::-webkit-scrollbar { display: none; }

/* ============ GREETING ============ */
.greeting {
  padding: 10px 20px 22px;
}

.greeting-sub {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.greeting-main {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 36px;
  line-height: 1.08;
  color: var(--text-primary);
  font-weight: 700;
}

.greeting-main em {
  font-style: italic;
}

.accent-green { color: var(--green); }
.accent-purple { color: var(--purple); }

/* ============ CHUCK SEARCH BAR ============ */
.chuck-search-bar {
  margin: 0 20px 28px;
  background: var(--surface);
  border: 1px solid rgba(74, 222, 128, 0.2);
  border-radius: var(--radius-2xl);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 0 32px var(--green-glow);
  position: relative;
  overflow: hidden;
}

.chuck-search-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(74, 222, 128, 0.03), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.chuck-search-bar:hover {
  border-color: rgba(74, 222, 128, 0.45);
  box-shadow: 0 0 48px var(--green-glow-strong);
  transform: translateY(-1px);
}

.chuck-search-bar:active {
  transform: translateY(0);
}

.chuck-search-icon {
  color: var(--green);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.chuck-placeholder {
  flex: 1;
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 500;
  user-select: none;
}

.chuck-badge {
  background: var(--green);
  color: #000;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 4px 9px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

/* ============ SECTIONS ============ */
.section {
  padding: 0 20px;
  margin-bottom: 28px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.section-title-standalone {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.01em;
  margin-bottom: 14px;
}

.section-link {
  font-size: 13px;
  color: var(--green);
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}

.section-link:hover { opacity: 0.75; }

/* ============ CATEGORY CHIPS ============ */
.category-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.category-chips::-webkit-scrollbar { display: none; }

.chip {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.chip.active {
  background: var(--green);
  color: #000;
  border-color: var(--green);
  font-weight: 600;
}

.chip:not(.active):hover {
  border-color: var(--border-light);
  color: var(--text-primary);
}

/* ============ STORES HORIZONTAL SCROLL ============ */
.stores-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  margin: 0 -20px;
  padding: 0 20px 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.stores-scroll::-webkit-scrollbar { display: none; }

.store-card-mini {
  flex-shrink: 0;
  width: 155px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.store-card-mini:hover {
  transform: translateY(-3px);
  border-color: var(--border-light);
}

.store-card-mini-thumb {
  width: 100%;
  height: 96px;
  position: relative;
  overflow: hidden;
}

.store-card-mini-thumb-bg {
  width: 100%;
  height: 100%;
}

.store-card-mini-open {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: rgba(74, 222, 128, 0.9);
  color: #000;
}

.store-card-mini-open.closed {
  background: rgba(107, 114, 128, 0.9);
  color: #fff;
}

.store-card-mini-heart {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(8, 11, 15, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
  z-index: 2;
}

.store-card-mini-heart.saved {
  color: var(--green);
  background: rgba(74, 222, 128, 0.15);
  border-color: rgba(74, 222, 128, 0.4);
}

.store-card-mini-heart:active { transform: scale(0.88); }

.store-card-mini-body {
  padding: 10px 12px 12px;
}

.store-card-mini-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.store-card-mini-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.meta-dot {
  width: 2px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============ INSPO GRID ============ */
.inspo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.inspo-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.inspo-card:nth-child(even) {
  margin-top: 20px;
}

.inspo-card:hover {
  transform: scale(1.02);
}

.inspo-card-inner {
  position: relative;
  aspect-ratio: 3/4;
}

.inspo-card-bg {
  width: 100%;
  height: 100%;
  position: relative;
}

.inspo-card-decor {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
}

.inspo-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
}

.inspo-card-vibe {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  color: var(--green);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.inspo-card-desc {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.3;
}

.inspo-card-heart {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.1);
}

.inspo-card-heart:hover { color: #ef4444; }

/* ============ BOTTOM NAV ============ */
.bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(8, 11, 15, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 6px 0 max(10px, env(safe-area-inset-bottom));
  z-index: 200;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 4px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-item.active { color: var(--text-primary); }

.nav-icon {
  display: block;
}

.nav-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.nav-item-chuck {
  color: var(--text-muted);
}

.nav-chuck-bubble {
  width: 48px;
  height: 34px;
  background: var(--green);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  margin-bottom: -2px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(74, 222, 128, 0.35);
}

.nav-item-chuck:hover .nav-chuck-bubble {
  box-shadow: 0 6px 24px rgba(74, 222, 128, 0.5);
  transform: translateY(-1px);
}

.nav-item-chuck .nav-label { color: var(--green); font-weight: 600; }

/* ============ CHUCK OVERLAY ============ */
.chuck-overlay {
  position: absolute;
  inset: 0;
  z-index: 210; /* above bottom-nav (200) */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 1;
  transition: opacity 0.3s ease;
  pointer-events: all;
}

.chuck-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.chuck-overlay.hidden .chuck-panel {
  transform: translateY(100%);
}

.chuck-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.chuck-panel {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border-top: 1px solid rgba(74, 222, 128, 0.15);
  border-radius: 24px 24px 0 0;
  height: 88dvh;
  max-height: 88dvh;
  display: flex;
  flex-direction: column;
  transform: translateY(0);
  transition: transform 0.45s cubic-bezier(0.32, 0.72, 0, 1);
  overflow: hidden;
}

/* ============ CHUCK HEADER ============ */
.chuck-drag-handle {
  width: 36px;
  height: 4px;
  background: var(--border-light);
  border-radius: 2px;
  margin: 12px auto 0;
  flex-shrink: 0;
}

.chuck-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px 14px;
  border-bottom: 1px solid var(--border);
}

.chuck-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chuck-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.chuck-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green) 0%, var(--purple) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  color: white;
  letter-spacing: 0.05em;
}

.chuck-online-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 10px;
  height: 10px;
  background: var(--green);
  border-radius: 50%;
  border: 2px solid var(--surface);
}

.chuck-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  line-height: 1;
}

.chuck-status {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
  letter-spacing: 0.02em;
}

.chuck-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.chuck-close:hover {
  background: var(--border);
  color: var(--text-primary);
}

/* ============ MESSAGES ============ */
.chuck-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  min-height: 0;
}

.chuck-messages::-webkit-scrollbar { display: none; }

.message {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  animation: msgIn 0.3s ease forwards;
}

.message.chuck { justify-content: flex-start; }
.message.user  { justify-content: flex-end; }

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

.message-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green) 0%, var(--purple) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 14px;
  color: white;
  flex-shrink: 0;
}

.message-bubble {
  max-width: 78%;
  padding: 11px 15px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.55;
  word-break: break-word;
}

.message.chuck .message-bubble {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}

.message.user .message-bubble {
  background: var(--green);
  color: #000;
  font-weight: 500;
  border-bottom-right-radius: 4px;
}

/* Typing indicator */
.typing-bubble {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  border-bottom-left-radius: 4px;
  padding: 14px 18px;
  display: flex;
  gap: 5px;
  align-items: center;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typingBounce 1.3s infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.18s; }
.typing-dot:nth-child(3) { animation-delay: 0.36s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* ============ QUICK REPLIES ============ */
.quick-replies {
  padding: 6px 20px 10px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  flex-shrink: 0;
  scrollbar-width: none;
}

.quick-replies::-webkit-scrollbar { display: none; }

.quick-reply-btn {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  background: rgba(74, 222, 128, 0.07);
  border: 1px solid rgba(74, 222, 128, 0.22);
  transition: all 0.18s ease;
  white-space: nowrap;
  letter-spacing: 0.01em;
  animation: msgIn 0.3s ease forwards;
}

.quick-reply-btn:hover {
  background: rgba(74, 222, 128, 0.14);
  border-color: rgba(74, 222, 128, 0.4);
}

.quick-reply-btn:active {
  transform: scale(0.97);
}

/* ============ STORE RESULTS ============ */
.store-results {
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  max-height: 52%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.4s ease forwards;
}

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

.store-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px 10px;
  flex-shrink: 0;
}

.store-results-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.store-results-count {
  font-size: 12px;
  color: var(--green);
  font-weight: 600;
}

.store-results-list {
  overflow-y: auto;
  padding: 0 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.store-results-list::-webkit-scrollbar { display: none; }

.result-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 13px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  position: relative;
  transition: border-color 0.18s ease, transform 0.15s ease, box-shadow 0.15s ease;
  animation: msgIn 0.35s ease both;
  -webkit-tap-highlight-color: transparent;
}

.result-card:hover {
  border-color: var(--border-light);
  box-shadow: 0 0 0 1px rgba(74,222,128,0.12);
}

.result-card:active {
  transform: scale(0.97);
  border-color: rgba(74,222,128,0.3);
}

.card-mini-heart {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(8,11,15,0.75);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.4);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all 0.18s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.card-mini-heart:active { transform: scale(0.88); }

.card-mini-heart.saved {
  color: var(--green);
  background: rgba(74,222,128,0.15);
  border-color: rgba(74,222,128,0.45);
}

.result-card-thumb {
  width: 62px;
  height: 62px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  overflow: hidden;
}

.result-card-thumb-bg {
  width: 100%;
  height: 100%;
}

.result-card-body {
  flex: 1;
  min-width: 0;
}

.result-card-store {
  font-size: 11px;
  color: var(--green);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.result-card-item {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.result-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

.result-card-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--green);
  margin-top: 5px;
}

.result-card-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
  flex-shrink: 0;
}

.btn-directions {
  font-size: 12px;
  font-weight: 700;
  color: #000;
  background: var(--green);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: all 0.18s ease;
  letter-spacing: 0.02em;
}

.btn-directions:hover {
  filter: brightness(1.08);
}

.btn-heart {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--text-muted);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-heart:hover { color: #ef4444; border-color: rgba(239,68,68,0.3); }
.btn-heart.saved { color: #ef4444; border-color: rgba(239,68,68,0.25); background: rgba(239,68,68,0.06); }

/* ============ PHOTO UPLOAD BUTTON ============ */
.chuck-photo-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 2px 12px rgba(74, 222, 128, 0.3);
}

.chuck-photo-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 4px 18px rgba(74, 222, 128, 0.45);
}

.chuck-photo-btn:active { transform: scale(0.94); }

/* ============ PHOTO MESSAGE BUBBLE ============ */
.message-bubble-photo {
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-primary) !important;
  padding: 6px 6px 10px !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 210px;
}

.message-photo {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.message-photo-caption {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0 4px;
}

/* ============ PREMIUM MODAL ============ */
.premium-modal {
  position: absolute;
  inset: 0;
  z-index: 230; /* above chuck-overlay (210) */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: opacity 0.28s ease;
  pointer-events: all;
}

.premium-modal.hidden {
  opacity: 0;
  pointer-events: none;
}

.premium-modal.hidden .premium-sheet {
  transform: translateY(100%);
}

.premium-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.premium-sheet {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border-top: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: 24px 24px 0 0;
  padding: 8px 24px max(28px, env(safe-area-inset-bottom));
  transform: translateY(0);
  transition: transform 0.42s cubic-bezier(0.32, 0.72, 0, 1);
}

.premium-sheet-handle {
  width: 36px;
  height: 4px;
  background: var(--border-light);
  border-radius: 2px;
  margin: 8px auto 20px;
}

.premium-sheet-icon {
  font-size: 44px;
  text-align: center;
  margin-bottom: 14px;
  line-height: 1;
}

.premium-sheet-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.premium-sheet-desc {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.6;
  margin-bottom: 20px;
}

.premium-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 22px;
  padding: 0 4px;
}

.premium-features li {
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pf-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.premium-pricing {
  text-align: center;
  margin-bottom: 18px;
}

.premium-price-amount {
  font-size: 34px;
  font-weight: 800;
  color: var(--green);
  letter-spacing: -0.02em;
}

.premium-price-period {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 500;
}

.premium-price-trial {
  font-size: 13px;
  color: var(--text-muted);
}

.premium-cta {
  width: 100%;
  padding: 15px;
  background: var(--purple);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 24px rgba(124, 58, 237, 0.45);
}

.premium-cta:hover {
  background: var(--purple-dim);
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(124, 58, 237, 0.55);
}

.premium-cta:active { transform: translateY(0); }

.premium-dismiss {
  width: 100%;
  padding: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  transition: color 0.15s;
}

.premium-dismiss:hover { color: var(--text-secondary); }

/* ============ CHUCK INPUT ============ */
.chuck-input-area {
  padding: 10px 20px max(14px, env(safe-area-inset-bottom));
  display: flex;
  gap: 10px;
  align-items: flex-end; /* buttons pin to bottom as textarea grows */
  border-top: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
}

.chuck-input {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px; /* rounded but works for multi-line */
  padding: 11px 18px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s ease;
  min-width: 0;
  /* textarea-specific */
  resize: none;
  overflow-y: hidden; /* JS switches to auto at max height */
  font-family: inherit;
  height: 44px; /* single-line starting height */
  display: block;
}

.chuck-input::placeholder { color: var(--text-muted); }
.chuck-input:focus { border-color: rgba(74, 222, 128, 0.4); }

.chuck-send {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.chuck-send:not(:disabled):hover {
  transform: scale(1.06);
  box-shadow: 0 4px 16px rgba(74,222,128,0.4);
}

.chuck-send:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ============ SETUP MODAL ============ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 400; /* above chuck-overlay (210) and premium-modal (230) */
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 24px;
}

.modal.hidden { display: none; }

.modal-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 32px 24px 28px;
  width: 100%;
  max-width: 360px;
  animation: msgIn 0.35s ease;
}

.modal-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  letter-spacing: 0.1em;
  color: var(--green);
  margin-bottom: 16px;
}

.modal-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.modal-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 22px;
}

.modal-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  margin-bottom: 14px;
  transition: border-color 0.2s;
  letter-spacing: 0.03em;
}

.modal-input:focus { border-color: rgba(74, 222, 128, 0.4); }
.modal-input::placeholder { color: var(--text-muted); letter-spacing: 0; }

.btn-primary {
  width: 100%;
  padding: 14px;
  background: var(--green);
  color: #000;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius-md);
  letter-spacing: 0.02em;
  transition: all 0.2s;
  margin-bottom: 14px;
  cursor: pointer;
  border: none;
}

.btn-primary:hover { filter: brightness(1.08); }
.btn-primary:active { transform: scale(0.99); }

.modal-hint {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

.modal-guest-btn {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 11px;
  background: transparent;
  border: 1.5px solid #4ade80;
  border-radius: 10px;
  color: #4ade80;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
}
.modal-guest-btn:hover {
  background: rgba(74, 222, 128, 0.08);
}

/* ============ PROFILE SCREEN ============ */
.profile-screen {
  position: absolute;
  inset: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  z-index: 10;
  padding-bottom: 70px;
}

.profile-screen.hidden { display: none !important; }

.profile-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.profile-scroll::-webkit-scrollbar { display: none; }

/* Hero */
.profile-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 20px 20px;
  border-bottom: 1px solid var(--border);
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple) 0%, var(--green) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.35);
}

.profile-hero-info {
  flex: 1;
  min-width: 0;
}

.profile-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: 0.01em;
}

.profile-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

.profile-edit-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.profile-edit-btn:hover {
  border-color: var(--purple);
  color: var(--text-primary);
}

/* Sections */
.profile-section {
  padding: 20px 20px 0;
}

.profile-section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* Vibe chips */
.profile-vibes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.profile-vibe-chip {
  display: flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.22);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text-primary);
}

/* Celeb inspo grid */
.profile-celebs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
}

.profile-celebs::-webkit-scrollbar { display: none; }

.profile-celeb-card {
  flex-shrink: 0;
  width: 90px;
  cursor: pointer;
}

.profile-celeb-thumb {
  width: 90px;
  height: 110px;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  margin-bottom: 6px;
}

.profile-celeb-bg {
  width: 100%;
  height: 100%;
}

.profile-celeb-initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.profile-celeb-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-celeb-style {
  font-size: 9px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Budget slider */
.profile-budget-card {
  padding: 8px 2px 4px;
}

.budget-slider-wrap {
  position: relative;
  padding-bottom: 26px;
}

.budget-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 99px;
  outline: none;
  cursor: pointer;
  border: none;
  background: linear-gradient(to right, #4ade80 var(--pct, 25%), #1e2530 var(--pct, 25%));
}

.budget-range::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 99px;
}

.budget-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #7c3aed;
  border: 2.5px solid #0d1117;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.28);
  cursor: pointer;
  margin-top: -8.5px;
  transition: box-shadow 0.15s;
}

.budget-range::-webkit-slider-thumb:active {
  box-shadow: 0 0 0 7px rgba(124, 58, 237, 0.2);
}

.budget-range::-moz-range-track {
  height: 5px;
  border-radius: 99px;
  background: #1e2530;
}

.budget-range::-moz-range-progress {
  height: 5px;
  border-radius: 99px;
  background: #4ade80;
}

.budget-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #7c3aed;
  border: 2.5px solid #0d1117;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.28);
  cursor: pointer;
}

.budget-tier-labels {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-muted);
  pointer-events: none;
  line-height: 1.3;
}

.budget-selected-display {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding-top: 16px;
}

.budget-selected-amount {
  font-size: 22px;
  font-weight: 800;
  color: var(--green);
  letter-spacing: -0.01em;
}

.budget-selected-per-piece {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.budget-selected-tier {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Settings list */
.profile-settings-list {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
}

.profile-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}

.profile-setting-row:last-child { border-bottom: none; }
.profile-setting-row:hover { background: rgba(255,255,255,0.02); }

.profile-setting-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-setting-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.profile-setting-icon--danger { color: #f87171; border-color: rgba(248,113,113,0.2); background: rgba(248,113,113,0.06); }

.profile-setting-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.profile-setting-label--danger { color: #f87171; }

.profile-setting-value {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  font-family: 'DM Mono', monospace, monospace;
  letter-spacing: 0.02em;
}

.profile-setting-action {
  font-size: 12px;
  font-weight: 600;
  color: var(--purple);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  transition: opacity 0.15s;
}

.profile-setting-action:hover { opacity: 0.7; }

.profile-setting-row--danger { cursor: pointer; }

/* Lookin Pro Banner */
.profile-pro-banner {
  margin: 4px 20px 0;
  background: linear-gradient(135deg, rgba(124,58,237,0.15) 0%, rgba(74,222,128,0.08) 100%);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.profile-pro-banner:hover {
  border-color: rgba(124,58,237,0.5);
}

.profile-pro-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-pro-badge {
  background: linear-gradient(135deg, var(--purple) 0%, var(--green) 100%);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 4px 9px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.profile-pro-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.profile-pro-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.profile-pro-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--green);
  white-space: nowrap;
}

.profile-pro-price span {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.profile-bottom-spacer { height: 24px; }

/* ============ STORE RESULTS — MAP CONTROLS ============ */
.store-results-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.map-toggle-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--purple);
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.25);
  transition: all 0.18s ease;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.map-toggle-btn:hover {
  background: rgba(124, 58, 237, 0.18);
  border-color: rgba(124, 58, 237, 0.4);
}

.map-toggle-btn.active {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
  box-shadow: 0 2px 12px rgba(124, 58, 237, 0.35);
}

/* ============ CHUCK MAP ============ */
.chuck-map {
  height: 210px;
  flex-shrink: 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
}

/* Leaflet dark theme overrides */
.leaflet-container {
  background: #080b0f;
  font-family: 'Inter', -apple-system, sans-serif;
}

.leaflet-control-zoom {
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  overflow: hidden;
}

.leaflet-control-zoom a {
  background: var(--card) !important;
  color: var(--text-secondary) !important;
  border-color: var(--border) !important;
  width: 28px !important;
  height: 28px !important;
  line-height: 28px !important;
  font-size: 16px !important;
}

.leaflet-control-zoom a:hover {
  background: var(--card-2) !important;
  color: var(--text-primary) !important;
}

.leaflet-control-attribution {
  background: rgba(8, 11, 15, 0.75) !important;
  color: #4b5563 !important;
  font-size: 9px !important;
  padding: 2px 6px !important;
  backdrop-filter: blur(4px);
}

.leaflet-control-attribution a {
  color: #6b7280 !important;
}

.leaflet-popup-content-wrapper {
  background: #1a2332 !important;
  border: 1px solid var(--border-light) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6) !important;
  color: var(--text-primary) !important;
}

.leaflet-popup-tip-container { display: none; }

.leaflet-popup-content {
  margin: 10px 14px !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  color: var(--text-primary) !important;
}

.leaflet-popup-content b {
  color: var(--green);
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
}

.leaflet-popup-close-button {
  color: var(--text-muted) !important;
  font-size: 18px !important;
  top: 4px !important;
  right: 6px !important;
}

/* ============ MAP PINS ============ */
.lf-pin-store {
  width: 28px;
  height: 36px;
  background: var(--purple);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 2px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(124, 58, 237, 0.55);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.lf-pin-store::after {
  content: attr(data-num);
  transform: rotate(45deg);
  color: #fff;
  font-weight: 800;
  font-size: 11px;
  font-family: 'Inter', sans-serif;
  line-height: 1;
}

.lf-pin-store.active {
  background: var(--green);
  box-shadow: 0 4px 14px rgba(74, 222, 128, 0.6);
  transform: rotate(-45deg) scale(1.15);
}

.lf-pin-store.active::after {
  color: #000;
}

.lf-pin-user {
  width: 14px;
  height: 14px;
  background: var(--green);
  border-radius: 50%;
  border: 2.5px solid #080b0f;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5);
  animation: userPulse 2.2s ease-out infinite;
}

@keyframes userPulse {
  0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* Highlighted result card (from map pin tap) */
.result-card.map-highlight {
  border-color: var(--purple);
  background: rgba(124, 58, 237, 0.07);
  box-shadow: inset 3px 0 0 var(--purple);
}

/* ============ SAVED SCREEN ============ */
.saved-screen {
  position: absolute;
  inset: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  z-index: 10;
  padding-bottom: 70px;
}

.saved-screen.hidden { display: none !important; }

.saved-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.saved-scroll::-webkit-scrollbar { display: none; }

/* Sticky header */
.saved-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bg);
  padding: 22px 20px 0;
}

.saved-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}

/* Tabs */
.saved-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin: 0 -20px;
  padding: 0 20px;
}

.saved-tab {
  flex: 0 0 auto;
  padding: 10px 0;
  margin-right: 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  display: flex;
  align-items: center;
  gap: 7px;
}

.saved-tab.active {
  color: var(--green);
  border-bottom-color: var(--green);
}

.tab-pro-badge {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, var(--purple), #9333ea);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Tab pane */
.saved-pane {
  padding: 16px 20px 0;
}

/* Empty state */
.saved-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 56px 32px;
  text-align: center;
  gap: 8px;
}

.saved-empty-icon {
  font-size: 44px;
  opacity: 0.25;
  margin-bottom: 6px;
  line-height: 1;
}

.saved-empty-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
}

.saved-empty-sub {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 240px;
}

.saved-empty-btn {
  margin-top: 12px;
  padding: 10px 22px;
  background: rgba(74, 222, 128, 0.08);
  color: var(--green);
  border: 1px solid rgba(74, 222, 128, 0.22);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
}

.saved-empty-btn:active { background: rgba(74, 222, 128, 0.14); }

/* Saved store card */
.saved-card {
  display: flex;
  align-items: stretch;
  gap: 12px;
  background: #0f1318;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 13px;
  margin-bottom: 10px;
  animation: msgIn 0.24s ease both;
}

.saved-card-thumb {
  width: 50px;
  min-width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.saved-card-thumb-bg {
  position: absolute;
  inset: 0;
}

.saved-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.saved-card-store {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.saved-card-item {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.saved-card-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.saved-card-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  flex-shrink: 0;
  padding: 1px 0;
}

.btn-directions-sm {
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.2);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: background 0.15s;
}

.btn-directions-sm:active { background: rgba(74, 222, 128, 0.14); }

.btn-unsave {
  font-size: 20px;
  color: #ef4444;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  opacity: 0.85;
}

/* ── Outfit Builder ── */
.outfit-slots-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.outfit-slot {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 12px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  min-height: 110px;
  justify-content: center;
}

.outfit-slot-bg {
  position: absolute;
  inset: 0;
  opacity: 0.6;
}

.outfit-slot-emoji {
  font-size: 28px;
  position: relative;
  z-index: 1;
  opacity: 0.3;
  filter: grayscale(0.7);
}

.outfit-slot-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  position: relative;
  z-index: 1;
}

.outfit-slot-lock {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.28);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple);
  z-index: 2;
}

.outfit-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0f1318;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin-bottom: 18px;
}

.outfit-total-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.outfit-total-right {
  display: flex;
  align-items: center;
  gap: 7px;
}

.outfit-total-locked {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-muted);
  filter: blur(5px);
  user-select: none;
  letter-spacing: 0.05em;
}

.outfit-upgrade-card {
  background: linear-gradient(145deg, #111827 0%, #18102e 100%);
  border: 1px solid rgba(124, 58, 237, 0.18);
  border-radius: var(--radius-xl);
  padding: 24px 20px 22px;
  margin-bottom: 8px;
}

.upgrade-pro-badge {
  display: inline-flex;
  background: linear-gradient(135deg, var(--purple), #9333ea);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 3px 9px;
  border-radius: 4px;
  margin-bottom: 14px;
}

.upgrade-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.upgrade-features {
  list-style: none;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.upgrade-features li {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 9px;
}

.upgrade-features li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  font-size: 11px;
  flex-shrink: 0;
}

.outfit-upgrade-btn {
  width: 100%;
  padding: 15px;
  background: var(--purple);
  color: #fff;
  border-radius: var(--radius-xl);
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
  margin-bottom: 10px;
}

.outfit-upgrade-btn:active { opacity: 0.85; }

.outfit-upgrade-fine-print {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* ============ LOCATION SCREEN ============ */
.location-screen {
  position: absolute;
  inset: 0;
  bottom: 70px;
  z-index: 180;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 28px;
  overflow: hidden;
}

.location-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.location-orb-green {
  width: 340px;
  height: 340px;
  background: rgba(74, 222, 128, 0.11);
  top: -100px;
  right: -80px;
}

.location-orb-purple {
  width: 280px;
  height: 280px;
  background: rgba(124, 58, 237, 0.14);
  bottom: -80px;
  left: -70px;
}

.location-default-view,
.location-manual-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: 100%;
  max-width: 320px;
  position: relative;
  z-index: 1;
}

.location-pin-icon {
  width: 76px;
  height: 76px;
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.12), rgba(124, 58, 237, 0.12));
  border: 1px solid rgba(74, 222, 128, 0.22);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
}

.location-content {
  text-align: center;
}

.location-headline {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 38px;
  line-height: 1.05;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}

.location-headline em {
  font-style: italic;
  color: var(--green);
}

.location-sub {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.location-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.location-enable-btn {
  width: 100%;
  padding: 16px;
  background: var(--green);
  color: #080b0f;
  border-radius: var(--radius-xl);
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.01em;
  transition: opacity 0.15s, transform 0.12s;
  border: none;
  cursor: pointer;
}

.location-enable-btn:active { opacity: 0.85; transform: scale(0.98); }
.location-enable-btn:disabled { opacity: 0.55; cursor: default; }

.location-manual-btn {
  width: 100%;
  padding: 14px;
  background: transparent;
  color: var(--text-secondary);
  border-radius: var(--radius-xl);
  font-size: 14px;
  font-family: inherit;
  border: 1px solid var(--border);
  transition: border-color 0.15s, color 0.15s;
  cursor: pointer;
}

.location-manual-btn:active {
  border-color: var(--border-light);
  color: var(--text-primary);
}

.location-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.location-input {
  width: 100%;
  padding: 15px 16px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}

.location-input::placeholder { color: var(--text-muted); }
.location-input:focus { border-color: rgba(74, 222, 128, 0.4); }

.location-confirm-btn {
  width: 100%;
  padding: 15px;
  background: var(--purple);
  color: #fff;
  border-radius: var(--radius-xl);
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
}

.location-confirm-btn:active { opacity: 0.85; }

/* ============ STORE DETAIL SHEET ============ */
.store-detail-overlay {
  position: absolute;
  inset: 0;
  z-index: 220; /* above chuck-overlay (210) */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.store-detail-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.store-detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.store-detail-panel {
  position: relative;
  z-index: 1;
  background: #0f1318;
  border-top: 1px solid rgba(74, 222, 128, 0.18);
  border-radius: 24px 24px 0 0;
  transform: translateY(100%);
  transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
  overflow: hidden;
}

.store-detail-overlay.open .store-detail-panel {
  transform: translateY(0);
}

.store-detail-handle {
  width: 36px;
  height: 4px;
  background: var(--border-light);
  border-radius: 2px;
  margin: 12px auto 0;
}

.store-detail-thumb {
  position: relative;
  height: 130px;
  margin: 16px 20px 0;
  border-radius: 14px;
  overflow: hidden;
}

.store-detail-thumb-bg {
  width: 100%;
  height: 100%;
}

.store-detail-status-badge {
  position: absolute;
  top: 10px;
  left: 12px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 99px;
}

.store-detail-status-badge.open {
  background: rgba(74, 222, 128, 0.18);
  color: var(--green);
  border: 1px solid rgba(74, 222, 128, 0.35);
}

.store-detail-status-badge.closed {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.store-detail-body {
  padding: 18px 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.store-detail-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.store-detail-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.store-detail-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  flex-wrap: wrap;
}

.store-detail-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.store-detail-close:active { background: var(--border); }

.store-detail-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.store-detail-item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.store-detail-item-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--green);
}

.store-detail-tip-box {
  padding: 12px 14px;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.22);
  border-radius: var(--radius-sm);
}

.store-detail-tip-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a78bfa;
  margin-bottom: 5px;
}

.store-detail-tip-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.store-detail-top-icons {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.store-detail-heart-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 18px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.18s ease;
  cursor: pointer;
}

.store-detail-heart-btn.saved {
  background: rgba(74, 222, 128, 0.15);
  border-color: rgba(74, 222, 128, 0.45);
  color: var(--green);
}

.store-detail-btn-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.store-detail-chuck-btn {
  width: 100%;
  background: var(--green);
  color: #000;
  font-size: 15px;
  font-weight: 700;
  padding: 14px;
  border-radius: var(--radius-full);
  text-align: center;
  letter-spacing: 0.02em;
  transition: filter 0.15s ease;
  cursor: pointer;
  border: none;
}
.store-detail-chuck-btn:active { filter: brightness(0.9); }

.store-detail-website-btn,
.store-detail-directions-btn {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  padding: 13px;
  border-radius: var(--radius-full);
  text-align: center;
  letter-spacing: 0.01em;
  transition: border-color 0.15s, background 0.15s;
  cursor: pointer;
}
.store-detail-website-btn:active,
.store-detail-directions-btn:active {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.4);
}

/* ============ TRENDING OUTFITS ============ */
.trending-section-title {
  display: flex;
  align-items: center;
  gap: 6px;
}

.trending-up-icon {
  display: flex;
  align-items: center;
  color: var(--green);
  flex-shrink: 0;
}

.trending-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  margin: 0 -20px;
  padding: 0 20px 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.trending-scroll::-webkit-scrollbar { display: none; }

.trending-card {
  flex-shrink: 0;
  width: 142px;
  height: 192px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.22s ease;
  -webkit-tap-highlight-color: transparent;
}

.trending-card:active { transform: scale(0.95); }

.trending-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.trending-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.3) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
  pointer-events: none;
}

.trending-card-indicator {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 3px;
  background: rgba(74, 222, 128, 0.14);
  border: 1px solid rgba(74, 222, 128, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  padding: 3px 8px 3px 5px;
  font-size: 10px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.04em;
  pointer-events: none;
}

.trending-card-heart {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: all 0.18s ease;
  z-index: 1;
}

.trending-card-heart.saved {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.22);
  border-color: rgba(239, 68, 68, 0.45);
}

.trending-card-heart:active { transform: scale(0.86); }

.trending-card-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: 0.02em;
  margin-bottom: 3px;
}

.trending-card-cat {
  font-size: 10px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============ TRENDING STORES ============ */
.trending-store-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #0f1318;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  animation: msgIn 0.3s ease both;
  margin-bottom: 10px;
}

.trending-store-row:last-child { margin-bottom: 0; }

.trending-store-row:active {
  transform: scale(0.98);
  border-color: rgba(74, 222, 128, 0.28);
}

.trending-store-thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

.trending-store-thumb-bg {
  width: 100%;
  height: 100%;
}

.trending-store-hot-badge {
  position: absolute;
  bottom: 4px;
  right: 3px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(4px);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fb923c;
  padding: 2px 5px;
  border-radius: 4px;
  line-height: 1.35;
}

.trending-store-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trending-store-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trending-store-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-muted);
}

.trending-store-hot-label {
  font-size: 11px;
  font-weight: 600;
  color: #fb923c;
  margin-top: 2px;
}

.trending-store-open-pill {
  flex-shrink: 0;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(74, 222, 128, 0.1);
  color: var(--green);
  border: 1px solid rgba(74, 222, 128, 0.25);
}

.trending-store-open-pill.closed {
  background: rgba(107, 114, 128, 0.12);
  color: var(--text-muted);
  border-color: rgba(107, 114, 128, 0.25);
}

/* ============ UTILS ============ */
.hidden { display: none !important; }
.bottom-spacer { height: 16px; }

/* ============ DESKTOP CHROME ============ */
@media (min-width: 431px) {
  body { background: #020305; }

  .app {
    box-shadow: 0 0 80px rgba(0,0,0,0.6), 0 0 1px rgba(255,255,255,0.06);
    border-radius: 0;
  }
}
