:root {
  --bg: #EEF2FF;
  --white: #FFFFFF;
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --text-dark: #111827;
  --text-mid: #374151;
  --text-gray: #6B7280;
  --text-light: #9CA3AF;
  --border: #E5E7EB;
  --input-bg: #F9FAFB;
  --green: #10B981;
  --orange: #F97316;
  --shadow: 0 1px 3px rgba(0,0,0,0.10), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 18px;
  --radius-xl: 24px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: #CBD5E1;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Phone Frame ── */
.phone {
  max-width: 390px;
  margin: 0 auto;
  background: var(--bg);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.screen-content {
  padding: 0 0 100px;
}

/* ── Typography ── */
h1 { font-size: 28px; font-weight: 700; color: var(--text-dark); }
h2 { font-size: 22px; font-weight: 700; color: var(--text-dark); }
h3 { font-size: 18px; font-weight: 600; color: var(--text-dark); }
p  { font-size: 15px; color: var(--text-gray); line-height: 1.5; }

/* ── App Header ── */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.app-header .logo-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}
.header-title {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
}
.header-title .back-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.header-title h2 { font-size: 18px; }

/* ── Bottom Navigation ── */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 390px;
  background: var(--white);
  border-top: 1px solid var(--border);
  display: flex;
  padding: 10px 0 16px;
  z-index: 100;
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-gray);
  cursor: pointer;
  text-decoration: none;
}
.nav-item.active { color: var(--primary); }
.nav-icon { font-size: 20px; }

/* ── Buttons ── */
.btn {
  display: block;
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-lg);
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: opacity 0.15s;
}
.btn:active { opacity: 0.85; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-outline {
  background: var(--white);
  color: var(--text-dark);
  border: 1.5px solid var(--border);
}
.btn-outline-primary {
  background: var(--white);
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-dark { background: #111827; color: var(--white); }
.btn-green { background: var(--green); color: var(--white); }
.btn-sm {
  padding: 10px 18px;
  width: auto;
  font-size: 14px;
  display: inline-block;
  border-radius: var(--radius-sm);
}

/* ── Toggle Tabs ── */
.toggle-tabs {
  display: flex;
  background: #E8ECF8;
  border-radius: var(--radius-lg);
  padding: 4px;
  margin: 20px 20px;
}
.tab-btn {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: var(--text-gray);
  transition: all 0.2s;
}
.tab-btn.active {
  background: var(--white);
  color: var(--text-dark);
  box-shadow: var(--shadow);
}

/* ── Form Fields ── */
.form-group { margin-bottom: 18px; padding: 0 20px; }
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.form-input {
  width: 100%;
  padding: 15px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--text-dark);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
}
.form-input:focus { border-color: var(--primary); }
.form-input::placeholder { color: var(--text-light); }
.form-input.filled { background: #F3F4F6; color: var(--text-gray); }

/* ── Card ── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 16px;
  margin: 0 20px;
}
.card + .card { margin-top: 12px; }

/* ── Avatar ── */
.avatar {
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--white);
  font-size: 14px;
  background: var(--border);
}
.avatar-sm  { width: 40px; height: 40px; }
.avatar-md  { width: 52px; height: 52px; }
.avatar-lg  { width: 80px; height: 80px; }
.avatar-xl  { width: 100px; height: 100px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.avatar-ag  { background: linear-gradient(135deg, #6B7280, #9CA3AF); }
.avatar-cr  { background: linear-gradient(135deg, #4B5563, #6B7280); }
.avatar-lm  { background: linear-gradient(135deg, #93C5FD, #60A5FA); }
.avatar-rl  { background: linear-gradient(135deg, #9CA3AF, #6B7280); }
.avatar-sp  { background: var(--primary); }
.avatar-mg  { background: linear-gradient(135deg, #A78BFA, #7C3AED); }
.avatar-dt  { background: linear-gradient(135deg, #FCA5A5, #EF4444); }
.avatar-sj  { background: linear-gradient(135deg, #6EE7B7, #10B981); }
.avatar-cm  { background: linear-gradient(135deg, #FCD34D, #F59E0B); }
.avatar-ju  { background: linear-gradient(135deg, #93C5FD, #3B82F6); }

.avatar-wrapper { position: relative; display: inline-block; }
.online-dot {
  position: absolute;
  bottom: 2px; right: 2px;
  width: 12px; height: 12px;
  background: var(--green);
  border-radius: 50%;
  border: 2px solid var(--white);
}
.online-dot-lg {
  width: 16px; height: 16px;
  bottom: 3px; right: 3px;
}

/* ── Status Badges ── */
.badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.badge-green  { background: var(--green); color: var(--white); }
.badge-orange { background: var(--orange); color: var(--white); }
.badge-blue   { background: var(--primary); color: var(--white); }
.badge-gray   { background: #E5E7EB; color: var(--text-gray); }

/* ── Section Header ── */
.section-label {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  padding: 20px 20px 12px;
}

/* ── Divider ── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}
.divider-section { height: 8px; background: var(--border); margin: 12px 0; }

/* ── Filter Chips ── */
.chips-row {
  display: flex;
  gap: 8px;
  padding: 12px 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
.chips-row::-webkit-scrollbar { display: none; }
.chip {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  border: 1.5px solid var(--border);
  background: var(--white);
  cursor: pointer;
  color: var(--text-mid);
}
.chip.active {
  background: var(--text-dark);
  color: var(--white);
  border-color: var(--text-dark);
}
.chip.active-blue {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ── Pro Card (list) ── */
.pro-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin: 0 20px 10px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: var(--shadow);
}
.pro-card-info { flex: 1; }
.pro-card-info .name { font-size: 16px; font-weight: 700; color: var(--text-dark); }
.pro-card-info .sub  { font-size: 13px; color: var(--text-gray); margin-top: 2px; }
.pro-card-info .meta { font-size: 13px; color: var(--text-mid); margin-top: 6px; }
.pro-card-price { font-size: 16px; font-weight: 700; color: var(--primary); white-space: nowrap; }

.pro-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pro-tag {
  background: var(--input-bg);
  color: var(--text-mid);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
}
.available-now { color: var(--orange); font-weight: 600; font-size: 13px; }

/* ── Chat ── */
.chat-msg-row { display: flex; padding: 4px 16px; }
.chat-msg-row.sent { justify-content: flex-end; }
.chat-msg-row.recv { justify-content: flex-start; }

.bubble {
  max-width: 80%;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.5;
}
.bubble.sent {
  background: var(--primary);
  color: var(--white);
  border-bottom-right-radius: 4px;
}
.bubble.recv {
  background: var(--white);
  color: var(--text-dark);
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow);
}
.bubble .time { font-size: 11px; opacity: 0.7; margin-top: 4px; text-align: right; }
.bubble.recv .time { text-align: left; color: var(--text-light); }

.chat-date {
  text-align: center;
  font-size: 13px;
  color: var(--text-light);
  padding: 12px 0 8px;
  font-weight: 500;
}
.chat-date span {
  background: #E8ECF8;
  padding: 4px 12px;
  border-radius: 20px;
}

.budget-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  padding: 14px 16px;
  margin: 4px 16px;
  max-width: 75%;
}
.budget-card .title { font-size: 13px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.budget-card .service { font-size: 13px; color: var(--text-mid); margin-bottom: 6px; }
.budget-card .price { font-size: 22px; font-weight: 800; color: var(--text-dark); margin-bottom: 12px; }
.budget-card .price.blue { color: var(--primary); }
.budget-actions { display: flex; gap: 8px; }
.budget-actions .btn { padding: 10px; font-size: 14px; }

.budget-denied-header {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--text-gray);
  margin-bottom: 8px;
}
.budget-denied .service { text-decoration: line-through; color: var(--text-light); }
.budget-denied .price { text-decoration: line-through; color: var(--text-light); font-size: 22px; font-weight: 800; }

.chat-input-bar {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%; max-width: 390px;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 100;
}
.chat-input {
  flex: 1;
  padding: 10px 16px;
  border: 1.5px solid var(--border);
  border-radius: 22px;
  font-size: 15px;
  outline: none;
  background: var(--input-bg);
}
.send-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 18px;
}
.chat-toolbar {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--border);
  background: var(--white);
}
.tool-btn {
  flex: 1; padding: 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-gray);
  border: none;
  background: transparent;
  cursor: pointer;
  border-right: 1px solid var(--border);
}
.tool-btn:last-child { border-right: none; }

/* ── Chat List ── */
.chat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
}
.chat-item-info { flex: 1; min-width: 0; }
.chat-item-name { font-size: 15px; font-weight: 600; color: var(--text-dark); }
.chat-item-preview { font-size: 13px; color: var(--text-gray); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.chat-item-time { font-size: 12px; color: var(--text-light); flex-shrink: 0; }
.unread-badge {
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  min-width: 20px;
  text-align: center;
}

/* ── Radio & Checkbox ── */
.radio-group, .check-group { padding: 0 20px; }
.radio-item, .check-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  color: var(--text-dark);
  cursor: pointer;
}
.radio-item:last-child, .check-item:last-child { border-bottom: none; }
.radio-circle {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.radio-circle.checked { border-color: var(--primary); }
.radio-circle.checked::after {
  content: '';
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--primary);
}
.checkbox {
  width: 22px; height: 22px;
  border-radius: 5px;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
}
.checkbox.checked { background: var(--primary); border-color: var(--primary); color: white; }

/* ── Slider ── */
.slider-wrapper { padding: 16px 20px; }
.slider-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.slider-label span { font-size: 17px; font-weight: 700; color: var(--text-dark); }
.slider-label .value { color: var(--primary); }
input[type=range] {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  background: linear-gradient(to right, var(--primary) 30%, var(--border) 30%);
  border-radius: 2px;
  outline: none;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--primary);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.slider-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-light); margin-top: 4px; }

/* ── Date Picker Row ── */
.date-row {
  display: flex;
  gap: 8px;
  padding: 0 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
.date-row::-webkit-scrollbar { display: none; }
.date-cell {
  min-width: 62px;
  padding: 10px 8px;
  border-radius: var(--radius);
  text-align: center;
  border: 1.5px solid var(--border);
  background: var(--white);
  cursor: pointer;
}
.date-cell.active { background: var(--primary); border-color: var(--primary); color: white; }
.date-cell .day-name { font-size: 12px; color: var(--text-gray); }
.date-cell.active .day-name { color: rgba(255,255,255,0.8); }
.date-cell .day-num { font-size: 20px; font-weight: 700; color: var(--text-dark); margin: 2px 0; }
.date-cell.active .day-num { color: white; }
.date-cell .month { font-size: 11px; color: var(--text-light); }
.date-cell.active .month { color: rgba(255,255,255,0.7); }

/* ── Time Grid ── */
.time-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 20px;
}
.time-cell {
  padding: 13px;
  border-radius: var(--radius);
  text-align: center;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-dark);
}
.time-cell.active { background: var(--primary); border-color: var(--primary); color: white; font-weight: 700; }
.time-cell.disabled { color: var(--text-light); background: #F9FAFB; }

/* ── Stepper ── */
.stepper {
  display: flex;
  align-items: center;
  gap: 16px;
}
.stepper-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: 20px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dark);
}
.stepper-val { font-size: 18px; font-weight: 700; color: var(--text-dark); }

/* ── Misc ── */
.or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  margin: 20px 0;
  color: var(--text-light);
  font-size: 13px;
}
.or-divider::before, .or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: calc(100% - 40px);
  margin: 0 20px 12px;
  padding: 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
}

.terms-text {
  font-size: 13px;
  color: var(--text-gray);
  text-align: center;
  padding: 0 20px;
  line-height: 1.6;
}
.terms-text a { color: var(--primary); text-decoration: none; }

.forgot-link {
  text-align: right;
  padding: 6px 20px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  cursor: pointer;
}

.sticky-footer {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%; max-width: 390px;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 14px 20px 28px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 12px;
}
.sticky-footer .price { font-size: 18px; font-weight: 800; color: var(--text-dark); }
.sticky-footer .price-label { font-size: 12px; color: var(--text-gray); }

.search-bar {
  margin: 12px 20px;
  padding: 13px 16px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  font-size: 15px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 10px;
}

.stats-row {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 16px 0;
  background: var(--white);
}
.stat-item {
  flex: 1;
  text-align: center;
  padding: 14px 8px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-val { font-size: 18px; font-weight: 800; color: var(--text-dark); }
.stat-lbl { font-size: 12px; color: var(--text-gray); margin-top: 2px; }

.detail-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 20px;
}
.detail-icon {
  width: 40px; height: 40px;
  background: #EEF2FF;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.detail-title { font-size: 14px; font-weight: 600; color: var(--text-dark); }
.detail-sub { font-size: 13px; color: var(--text-gray); margin-top: 2px; }

.review-card {
  margin: 0 20px 12px;
  padding: 14px;
  background: #F5F7FF;
  border-radius: var(--radius);
}
.review-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.review-initial {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #C7D2FE;
  color: #3730A3;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}
.review-name { font-size: 14px; font-weight: 600; color: var(--text-dark); }
.review-date { font-size: 12px; color: var(--text-light); }
.review-text { font-size: 14px; color: var(--text-mid); line-height: 1.5; }

/* ── Category Grid ── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 0 20px;
}
.cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.cat-icon {
  width: 70px; height: 70px;
  border-radius: 20px;
}
.cat-label { font-size: 12px; color: var(--text-dark); font-weight: 500; text-align: center; }

/* ── Toggle Switch ── */
.toggle-switch {
  width: 50px; height: 28px;
  border-radius: 14px;
  background: var(--primary);
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}
.toggle-switch::after {
  content: '';
  position: absolute;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: white;
  top: 3px; right: 3px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle-switch.off { background: var(--border); }
.toggle-switch.off::after { right: auto; left: 3px; }

.extras-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
}
.extras-label { font-size: 15px; font-weight: 500; color: var(--text-dark); }
.extras-sub { font-size: 13px; color: var(--text-gray); margin-top: 2px; }

/* ── Location Row ── */
.location-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--white);
  margin: 0 20px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  cursor: pointer;
}
.location-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: #EEF2FF;
  flex-shrink: 0;
}
.location-name { font-size: 15px; font-weight: 600; color: var(--text-dark); }
.location-addr { font-size: 13px; color: var(--text-gray); }
.location-arrow { margin-left: auto; color: var(--text-light); font-size: 18px; }

/* ── Price Range ── */
.price-range {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  margin-bottom: 20px;
}
.price-input {
  flex: 1;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--text-dark);
  background: var(--white);
  outline: none;
}
.price-range-sep { color: var(--text-light); font-size: 18px; }

/* ── Photo Upload ── */
.photo-upload {
  margin: 0 20px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  color: var(--text-gray);
  font-size: 14px;
  cursor: pointer;
  background: var(--input-bg);
}
.photo-upload .icon { font-size: 32px; margin-bottom: 8px; }

/* ── Document ── */
.doc-content { padding: 20px; }
.doc-content h1 { font-size: 24px; margin-bottom: 4px; }
.doc-content .date { font-size: 13px; color: var(--text-gray); margin-bottom: 20px; }
.doc-content h2 { font-size: 17px; margin: 20px 0 8px; }
.doc-content p { font-size: 14px; color: var(--text-mid); line-height: 1.7; margin-bottom: 10px; }
.doc-content ul { padding-left: 20px; margin-bottom: 10px; }
.doc-content li { font-size: 14px; color: var(--text-mid); line-height: 1.7; margin-bottom: 6px; }

/* ── Img bubble ── */
.img-bubble {
  max-width: 72%;
  margin: 4px 16px;
  border-radius: var(--radius);
  overflow: hidden;
  align-self: flex-end;
}
.img-placeholder {
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, #d1d5db, #9ca3af);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  border-radius: var(--radius);
}

/* ── Bottom sheet modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.bottom-sheet {
  width: 100%;
  max-width: 390px;
  background: var(--white);
  border-radius: 20px 20px 0 0;
  padding: 0 0 34px;
}
.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}
.sheet-title { font-size: 16px; font-weight: 700; }
.sheet-cancel { color: var(--primary); font-size: 16px; font-weight: 500; cursor: pointer; }

.face-id-text { text-align: center; font-size: 14px; color: var(--text-gray); padding: 16px 20px; }

/* ── Fixed utility bars (desktop: centered in phone frame) ── */
.fixed-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 390px;
  z-index: 100;
}
.fixed-bottom-bar-above {
  position: fixed;
  bottom: 62px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 390px;
  z-index: 99;
}

/* ── Mobile: fill full screen, drop phone frame ── */
@media (max-width: 480px) {
  html, body {
    background: var(--bg);
  }

  .phone {
    max-width: 100%;
  }

  /* Todos los elementos fixed pasan a cubrir el ancho real del móvil */
  .bottom-nav,
  .chat-input-bar,
  .sticky-footer,
  .fixed-bottom-bar,
  .fixed-bottom-bar-above {
    left: 0;
    transform: none;
    max-width: 100%;
    width: 100%;
  }

  .bottom-sheet {
    max-width: 100%;
  }

  /* Safe-area para muescas y barra de inicio de iPhone */
  .bottom-nav {
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
  .chat-input-bar,
  .sticky-footer,
  .fixed-bottom-bar {
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
}
