/* ============================================================
   DINING CONCIERGE — app.css
   Design: Dark luxury editorial, amber-gold on deep warm black
============================================================ */

/* ─────────────────────────────────────────────────────────
   DESIGN TOKENS
───────────────────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg:            #131008;
  --surface:       #1C1710;
  --card:          #231E14;
  --card-hover:    #2A2419;

  /* Gold palette */
  --gold:          #C9A96E;
  --gold-light:    #E2C98A;
  --gold-dim:      rgba(201, 169, 110, 0.12);
  --gold-glow:     rgba(201, 169, 110, 0.25);
  --gold-border:   rgba(201, 169, 110, 0.35);

  /* Text */
  --text:          #EDE5D0;
  --text-dim:      rgba(237, 229, 208, 0.50);
  --text-faint:    rgba(237, 229, 208, 0.24);
  --cream:         #F0E8D6;

  /* Borders */
  --border:        rgba(237, 229, 208, 0.10);
  --border-mid:    rgba(237, 229, 208, 0.18);

  /* Semantic */
  --green:         #5B9A72;
  --user-bg:       #C9A96E;
  --user-text:     #131008;
  --bot-bg:        #231E14;

  /* Motion */
  --ease:          cubic-bezier(0.4, 0, 0.2, 1);
  --spring:        cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast:      150ms;
  --dur-base:      220ms;
  --dur-slow:      380ms;
}

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

html,
body {
  height: 100%;
  background: var(--bg);
  font-family: 'DM Mono', monospace;
  font-size: 15px; /* Increased from 14px */
  color: var(--text);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: fixed;
  width: 100%;
  margin: 0;
  padding: 0;
  -webkit-overflow-scrolling: touch;
}

button {
  font-family: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

textarea {
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

/* ─────────────────────────────────────────────────────────
   AMBIENT BACKGROUND LAYERS
───────────────────────────────────────────────────────── */
.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 55% at 15%  0%,  rgba(201, 169, 110, 0.07) 0%, transparent 65%),
    radial-gradient(ellipse 50% 70% at 85% 95%,  rgba(201, 169, 110, 0.05) 0%, transparent 55%),
    radial-gradient(ellipse 40% 30% at 50% 50%,  rgba(201, 169, 110, 0.03) 0%, transparent 70%);
}

.bg-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
}

/* ─────────────────────────────────────────────────────────
   SHELL — the main column
───────────────────────────────────────────────────────── */
.shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-width: 740px;
  margin: 0 auto;
}

/* ─────────────────────────────────────────────────────────
   HEADER
───────────────────────────────────────────────────────── */
.header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px 16px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(to bottom, rgba(19, 16, 8, 0.95), rgba(19, 16, 8, 0.70));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: slideDown var(--dur-slow) var(--ease) both;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

/* Icon medallion */
.brand-icon {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold-dim);
  border: 1.5px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

/* Pulsing outer ring */
.brand-icon::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid var(--gold-border);
  opacity: 0;
  animation: ringPulse 3s ease-in-out 2s infinite;
}

.brand-text {
  line-height: 1.25;
}

.brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 21px;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 0.03em;
}

.brand-tagline {
  font-size: 9.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Online badge */
.online-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 9.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.02);
}

.online-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: dotPulse 2.4s ease-in-out infinite;
}

/* ─────────────────────────────────────────────────────────
   QUICK REPLY BUTTONS
   Context-aware pill buttons shown below each bot message.
   Wrap onto multiple rows for large option sets (cuisines).
───────────────────────────────────────────────────────── */
.quick-replies {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.qr-title {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
  margin-bottom: 2px;
}

/* The pill buttons scroll horizontally on mobile,
   wrap on desktop */
.quick-replies .qr-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* We don't use .qr-row in markup — pills are direct children
   so we target them directly */
.quick-replies .qr-btn {
  padding: 5px 12px;
  border: 1px solid var(--border-mid);
  border-radius: 20px;
  background: transparent;
  color: var(--text-dim);
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition:
    border-color var(--dur-base) var(--ease),
    color        var(--dur-base) var(--ease),
    background   var(--dur-base) var(--ease),
    transform    var(--dur-fast) var(--ease);
  animation: fadeIn 0.25s ease both;
}

/* Stagger the pill animations */
.quick-replies .qr-btn:nth-child(1)  { animation-delay: 0.03s; }
.quick-replies .qr-btn:nth-child(2)  { animation-delay: 0.06s; }
.quick-replies .qr-btn:nth-child(3)  { animation-delay: 0.09s; }
.quick-replies .qr-btn:nth-child(4)  { animation-delay: 0.12s; }
.quick-replies .qr-btn:nth-child(5)  { animation-delay: 0.15s; }
.quick-replies .qr-btn:nth-child(6)  { animation-delay: 0.18s; }
.quick-replies .qr-btn:nth-child(7)  { animation-delay: 0.21s; }
.quick-replies .qr-btn:nth-child(8)  { animation-delay: 0.24s; }
.quick-replies .qr-btn:nth-child(9)  { animation-delay: 0.27s; }
.quick-replies .qr-btn:nth-child(10) { animation-delay: 0.30s; }
.quick-replies .qr-btn:nth-child(11) { animation-delay: 0.33s; }
.quick-replies .qr-btn:nth-child(12) { animation-delay: 0.36s; }

.quick-replies .qr-btn:hover {
  border-color: var(--gold-border);
  color: var(--gold-light);
  background: var(--gold-dim);
  transform: translateY(-1px);
}

.quick-replies .qr-btn:active {
  transform: scale(0.95);
}

/* Repeat-search buttons (Same / Different) get more prominence */
.quick-replies .qr-btn[data-msg="Same"] {
  border-color: rgba(91, 154, 114, 0.4);
  color: rgba(91, 154, 114, 0.9);
}

.quick-replies .qr-btn[data-msg="Same"]:hover {
  background: rgba(91, 154, 114, 0.12);
  border-color: rgba(91, 154, 114, 0.7);
  color: #7BC49A;
}

/* ─────────────────────────────────────────────────────────
   MESSAGES WRAPPER + FADE MASK
───────────────────────────────────────────────────────── */
.messages-wrap {
  flex: 1 1 auto;
  position: relative;
  overflow: hidden;
}

/* Bottom fade so last message doesn't get clipped hard */
.messages-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 52px;
  background: linear-gradient(to top, var(--bg), transparent);
  pointer-events: none;
  z-index: 2;
}

.messages-area {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 26px 28px 44px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-mid) transparent;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.messages-area::-webkit-scrollbar {
  width: 3px;
}

.messages-area::-webkit-scrollbar-thumb {
  background: var(--border-mid);
  border-radius: 2px;
}

/* ─────────────────────────────────────────────────────────
   EMPTY STATE
───────────────────────────────────────────────────────── */
.empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  gap: 14px;
  min-height: 280px;
  animation: fadeIn 0.9s ease both;
}

.empty-glyph {
  font-family: 'Cormorant Garamond', serif;
  font-size: 54px;
  color: var(--gold);
  opacity: 0.28;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -2px;
}

.empty-ornament {
  font-size: 13px;
  letter-spacing: 10px;
  color: var(--gold);
  opacity: 0.20;
}

.empty-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 300;
  font-style: italic;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.empty-body {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  line-height: 2;
}

/* (empty-prompts removed — quick replies now appear inline after each bot message) */

/* ─────────────────────────────────────────────────────────
   DAY SEPARATOR
───────────────────────────────────────────────────────── */
.day-sep {
  display: flex;
  align-items: center;
  gap: 14px;
  animation: fadeIn 0.4s ease both;
}

.day-sep::before,
.day-sep::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.day-sep span {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
}

/* ─────────────────────────────────────────────────────────
   MESSAGE ROWS
───────────────────────────────────────────────────────── */
.msg-row {
  display: flex;
  gap: 11px;
  align-items: flex-end;
  animation: msgSlideIn var(--dur-base) var(--spring) both;
}

.msg-row.user {
  flex-direction: row-reverse;
  animation-name: msgSlideInRight;
}

/* Avatar bubble */
.msg-avatar {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border-mid);
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  margin-bottom: 2px;
}

.msg-row.user .msg-avatar {
  background: var(--gold-dim);
  border-color: var(--gold-border);
}

/* Content column */
.msg-content {
  max-width: 72%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.msg-row.user .msg-content {
  align-items: flex-end;
}

/* Sender label (bot side only) */
.msg-sender {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 0 3px;
}

/* Bubbles */
.bubble {
  padding: 11px 16px;
  font-size: 13.5px;
  line-height: 1.65;
  word-break: break-word;
  letter-spacing: 0.008em;
}

.bubble-bot {
  background: var(--bot-bg);
  border: 1px solid var(--border);
  border-radius: 3px 16px 16px 16px;
  color: var(--text);
}

.bubble-user {
  background: var(--user-bg);
  color: var(--user-text);
  border-radius: 16px 3px 16px 16px;
  font-weight: 400;
}

/* Timestamp */
.msg-time {
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  padding: 0 3px;
}

/* ─────────────────────────────────────────────────────────
   TYPING INDICATOR
───────────────────────────────────────────────────────── */
.typing-row {
  display: flex;
  gap: 11px;
  align-items: flex-end;
  animation: fadeIn 0.3s ease both;
}

.typing-bubble {
  background: var(--bot-bg);
  border: 1px solid var(--border);
  border-radius: 3px 16px 16px 16px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.td {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.4;
  animation: tdBounce 1.3s ease infinite;
}

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

/* ─────────────────────────────────────────────────────────
   CONFIRMATION CARD
   (shown below bot bubble when request is confirmed)
───────────────────────────────────────────────────────── */
.confirm-card {
  margin-top: 8px;
  padding: 14px 16px;
  border: 1px solid var(--gold-border);
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(201, 169, 110, 0.08) 0%,
    rgba(201, 169, 110, 0.02) 100%
  );
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.85;
  letter-spacing: 0.02em;
  animation: fadeIn 0.4s 0.2s ease both;
  opacity: 0;
  animation-fill-mode: forwards;
}

.confirm-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}

/* ─────────────────────────────────────────────────────────
   INPUT ZONE
───────────────────────────────────────────────────────── */
.input-zone {
  flex: 0 0 auto;
  padding: 14px 28px 22px;
  border-top: 1px solid var(--border);
  background: linear-gradient(to top, rgba(19, 16, 8, 0.97), rgba(19, 16, 8, 0.72));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: slideUp var(--dur-slow) var(--ease) 100ms both;
}

/* Textarea + send button wrapper */
.input-box {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--border-mid);
  border-radius: 18px;
  padding: 11px 11px 11px 18px;
  transition:
    border-color var(--dur-base) var(--ease),
    box-shadow   var(--dur-base) var(--ease);
}

.input-box:focus-within {
  border-color: var(--gold-border);
  box-shadow: 0 0 0 3px var(--gold-dim);
}

.msg-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  color: var(--text);
  font-size: 13px;
  line-height: 1.55;
  min-height: 21px;
  max-height: 130px;
  overflow-y: auto;
  scrollbar-width: none;
}

.msg-input::-webkit-scrollbar {
  display: none;
}

.msg-input::placeholder {
  color: var(--text-faint);
}

/* Send button */
.send-btn {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--gold);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  transition:
    background  var(--dur-base) var(--ease),
    transform   var(--dur-fast) var(--ease),
    opacity     var(--dur-base) var(--ease);
}

.send-btn:hover  { background: var(--gold-light); transform: scale(1.06); }
.send-btn:active { transform: scale(0.94); }

.send-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

/* Footer hint row */
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 9px;
  padding: 0 2px;
}

.footer-hint {
  font-size: 9.5px; /* Increased from 9px */
  letter-spacing: 0.07em;
  color: var(--text-dim); /* Changed from --text-faint to --text-dim for more brightness */
  font-weight: 400;
}

.clear-btn {
  background: none;
  border: none;
  font-size: 9.5px; /* Increased from 9px */
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-dim); /* Changed from --text-faint for more brightness */
  padding: 0;
  transition: color var(--dur-base) var(--ease);
  font-weight: 400;
}

.clear-btn:hover {
  color: var(--text);
}

/* ─────────────────────────────────────────────────────────
   KEYFRAME ANIMATIONS
───────────────────────────────────────────────────────── */
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes msgSlideIn {
  from { opacity: 0; transform: translateX(-10px) scale(0.97); }
  to   { opacity: 1; transform: translateX(0)     scale(1);    }
}

@keyframes msgSlideInRight {
  from { opacity: 0; transform: translateX(10px)  scale(0.97); }
  to   { opacity: 1; transform: translateX(0)     scale(1);    }
}

@keyframes tdBounce {
  0%, 60%, 100% { transform: translateY(0);    opacity: 0.40; }
  30%            { transform: translateY(-5px); opacity: 1.00; }
}

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

@keyframes ringPulse {
  0%   { transform: scale(1);    opacity: 0.55; }
  70%  { transform: scale(1.38); opacity: 0;    }
  100% { transform: scale(1.38); opacity: 0;    }
}

/* ─────────────────────────────────────────────────────────
   INTERACTIVE PICKERS (Date, Time, Party Size)
───────────────────────────────────────────────────────── */
.picker-container {
  margin-top: 10px;
  padding: 16px;
  border: 1px solid var(--gold-border);
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(201, 169, 110, 0.08) 0%,
    rgba(201, 169, 110, 0.02) 100%
  );
  animation: fadeIn 0.3s ease both;
}

.picker-title {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  font-weight: 500;
}

/* Date Picker Calendar */
.date-picker {
  display: grid;
  gap: 8px;
}

.date-picker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.date-picker-month {
  font-size: 13px;
  color: var(--gold-light);
  font-weight: 500;
}

.date-picker-nav {
  background: none;
  border: 1px solid var(--border-mid);
  border-radius: 6px;
  color: var(--text-dim);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all var(--dur-base) var(--ease);
}

.date-picker-nav:hover {
  border-color: var(--gold-border);
  color: var(--gold-light);
  background: var(--gold-dim);
}

.date-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.date-grid-header {
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-align: center;
  padding: 6px 0;
}

.date-cell {
  aspect-ratio: 1;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--text-dim);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur-fast) var(--ease);
  cursor: pointer;
}

.date-cell:hover:not(.date-cell-disabled):not(.date-cell-empty) {
  border-color: var(--gold-border);
  background: var(--gold-dim);
  color: var(--gold-light);
  transform: scale(1.05);
}

.date-cell.date-cell-today {
  border-color: var(--gold-border);
  color: var(--gold);
}

.date-cell.date-cell-selected {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
  font-weight: 600;
}

.date-cell.date-cell-disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.date-cell.date-cell-empty {
  border: none;
  cursor: default;
}

/* Time Picker Clock */
.time-picker {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.time-display {
  text-align: center;
  font-size: 28px;
  font-weight: 600;
  color: var(--gold-light);
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.05em;
  padding: 8px;
}

.time-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.time-control-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.time-control-label {
  font-size: 9px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: center;
}

.time-control-btns {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.time-btn {
  background: var(--card);
  border: 1px solid var(--border-mid);
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 20px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur-base) var(--ease);
  cursor: pointer;
}

.time-btn:hover {
  border-color: var(--gold-border);
  background: var(--gold-dim);
  color: var(--gold-light);
  transform: scale(1.05);
}

.time-btn:active {
  transform: scale(0.95);
}

.time-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 4px;
}

.time-preset-btn {
  padding: 8px 4px;
  border: 1px solid var(--border-mid);
  border-radius: 8px;
  background: transparent;
  color: var(--text-dim);
  font-size: 11px;
  transition: all var(--dur-base) var(--ease);
  cursor: pointer;
  white-space: nowrap;
}

.time-preset-btn:hover {
  border-color: var(--gold-border);
  background: var(--gold-dim);
  color: var(--gold-light);
}

.time-preset-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
  font-weight: 600;
}

/* Party Size Dropdown */
.party-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.party-btn {
  padding: 12px 8px;
  border: 1px solid var(--border-mid);
  border-radius: 10px;
  background: transparent;
  color: var(--text-dim);
  font-size: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all var(--dur-base) var(--ease);
  cursor: pointer;
}

.party-btn-icon {
  font-size: 18px;
}

.party-btn-label {
  font-size: 12px;
  font-weight: 500;
}

.party-btn:hover {
  border-color: var(--gold-border);
  background: var(--gold-dim);
  color: var(--gold-light);
  transform: translateY(-2px);
}

.party-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
  font-weight: 600;
}

.party-btn:active {
  transform: scale(0.95);
}

.picker-confirm-btn {
  margin-top: 12px;
  width: 100%;
  padding: 10px;
  background: var(--gold);
  border: none;
  border-radius: 10px;
  color: var(--bg);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--dur-base) var(--ease);
}

.picker-confirm-btn:hover {
  background: var(--gold-light);
  transform: scale(1.02);
}

.picker-confirm-btn:active {
  transform: scale(0.98);
}

.picker-confirm-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* ─────────────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  html, body {
    font-size: 14px; /* Slightly smaller base on mobile */
  }

  .header,
  .messages-area,
  .input-zone {
    padding-left: 16px;
    padding-right: 16px;
  }

  .header {
    padding-top: 14px;
    padding-bottom: 12px;
  }

  .brand-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-tagline {
    font-size: 8.5px;
  }

  .online-badge {
    font-size: 8.5px;
    padding: 4px 10px;
  }

  .msg-content {
    max-width: 82%;
  }

  .bubble {
    padding: 10px 14px;
    font-size: 13px;
  }

  .msg-input {
    font-size: 14px;
  }

  .footer-hint {
    display: none;
  }

  .clear-btn {
    font-size: 9px;
  }

  /* Quick reply buttons - better mobile touch targets */
  .quick-replies .qr-btn {
    padding: 8px 14px;
    font-size: 12px;
    min-height: 36px; /* Better touch target */
  }

  /* Picker adjustments for mobile */
  .picker-container {
    padding: 14px;
  }

  .picker-title {
    font-size: 9px;
  }

  /* Date picker mobile optimization */
  .date-picker-month {
    font-size: 12px;
  }

  .date-picker-nav {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .date-grid-header {
    font-size: 8px;
    padding: 4px 0;
  }

  .date-cell {
    font-size: 11px;
    min-height: 36px; /* Better touch target */
  }

  /* Time picker mobile optimization */
  .time-display {
    font-size: 24px;
    padding: 6px;
  }

  .time-btn {
    font-size: 18px;
    padding: 10px;
    min-height: 42px; /* Better touch target */
  }

  .time-control-label {
    font-size: 8.5px;
  }

  .time-presets {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
    gap: 8px;
  }

  .time-preset-btn {
    padding: 10px 8px;
    font-size: 12px;
    min-height: 40px; /* Better touch target */
  }

  /* Party picker mobile optimization */
  .party-picker {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }

  .party-btn {
    padding: 10px 6px;
    min-height: 60px; /* Better touch target */
  }

  .party-btn-icon {
    font-size: 16px;
  }

  .party-btn-label {
    font-size: 11px;
  }

  /* Confirm buttons */
  .picker-confirm-btn {
    padding: 12px;
    font-size: 12px;
    min-height: 44px; /* Better touch target */
  }

  /* Empty state mobile */
  .empty-heading {
    font-size: 22px;
  }

  .empty-body {
    font-size: 12px;
  }

  /* Input zone adjustments */
  .input-zone {
    padding-bottom: 16px;
  }

  .input-box {
    padding: 10px 10px 10px 16px;
  }

  .send-btn {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}

@media (max-width: 580px) {
  .brand-tagline {
    display: none;
  }

  .msg-content {
    max-width: 86%;
  }

  /* Even more compact on very small screens */
  .picker-container {
    padding: 12px;
  }

  .date-cell {
    font-size: 10px;
  }

  .party-picker {
    grid-template-columns: repeat(4, 1fr);
  }

  .time-presets {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Landscape mobile orientation */
@media (max-width: 768px) and (orientation: landscape) {
  .messages-area {
    padding-top: 16px;
    padding-bottom: 24px;
  }

  .header {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .input-zone {
    padding-top: 10px;
    padding-bottom: 12px;
  }
}

/* Prevent zoom on input focus (iOS) */
@media (max-width: 768px) {
  select, textarea, input {
    font-size: 16px !important; /* Prevents iOS zoom */
  }
  
  .msg-input {
    font-size: 16px !important; /* Prevents iOS zoom */
  }
}

/* Touch-friendly scrollbar on mobile */
@media (hover: none) {
  .messages-area::-webkit-scrollbar {
    width: 2px;
  }
  
  .messages-area {
    scrollbar-width: thin;
  }
}