/* ─── Phone Mockup (Inline, no overlay) ──────────────── */
.phone-mockup {
  width: 280px;
  background: #000;
  border-radius: 36px;
  padding: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.phone-screen {
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  min-height: 440px;
  display: flex;
  flex-direction: column;
}

/* ─── Phone Status Bar ───────────────────────────────── */
.phone-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px 6px;
  font-size: 0.68rem;
  font-weight: 600;
  color: #1a1a2e;
}

.phone-statusbar-icons {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ─── Message Header ─────────────────────────────────── */
.phone-msg-header {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 6px 16px 12px;
  border-bottom: 1px solid #f0f0f0;
}

.phone-msg-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.phone-msg-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
}

.phone-msg-number {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 1px;
}

/* ─── Message Bubbles ────────────────────────────────── */
.phone-msg-body {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 200px;
}

.msg-bubble {
  max-width: 88%;
  padding: 9px 12px;
  border-radius: 16px;
  font-size: 0.75rem;
  line-height: 1.45;
  word-break: break-word;
  white-space: pre-wrap;
}

.msg-bubble.sent {
  align-self: flex-end;
  background: #007aff;
  color: #fff;
  border-bottom-right-radius: 5px;
}

.msg-timestamp {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 4px;
}

/* ─── Message Segments Info ──────────────────────────── */
.msg-segments {
  text-align: center;
  padding: 8px 12px;
  font-size: 0.62rem;
  color: var(--text-muted);
  border-top: 1px solid #f0f0f0;
}

.msg-segments strong {
  color: var(--text);
}

/* ─── Preview Empty State ────────────────────────────── */
.preview-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 780px) {
  .phone-mockup {
    width: 260px;
  }

  .phone-screen {
    min-height: 360px;
  }
}
