/*
 * Dateditto Response Cards v4 — Premium Editorial Theme
 * Drop this file in your project root and add:
 *   <link rel="stylesheet" href="response-cards-v4.css" />
 * AFTER your existing style.css link in index.html.
 *
 * All original class/id hooks preserved — only visuals change.
 * Color palette: White base, #E23744/#CB202D red, clean typographic rhythm.
 * Fonts: Cormorant Garamond (display) + DM Sans (body) — already loaded.
 */

/* ─── Design Tokens ──────────────────────────────────────── */
:root {
  --v4-red:        #E23744;
  --v4-red-dark:   #CB202D;
  --v4-red-soft:   rgba(226, 55, 68, 0.08);
  --v4-red-mid:    rgba(226, 55, 68, 0.18);
  --v4-ink:        #0f0f10;
  --v4-ink-2:      #2a2a2e;
  --v4-ink-3:      #52525b;
  --v4-ink-4:      #a1a1aa;
  --v4-ink-5:      #d4d4d8;
  --v4-surface:    #ffffff;
  --v4-surface-2:  #f9f9fb;
  --v4-surface-3:  #f3f3f7;
  --v4-border:     #e8e8ef;
  --v4-border-2:   rgba(226, 55, 68, 0.15);
  --v4-shadow-sm:  0 1px 4px rgba(15,15,16,0.06), 0 2px 12px rgba(15,15,16,0.04);
  --v4-shadow-md:  0 4px 16px rgba(15,15,16,0.08), 0 1px 4px rgba(15,15,16,0.04);
  --v4-shadow-lg:  0 12px 40px rgba(15,15,16,0.10), 0 2px 8px rgba(15,15,16,0.06);
  --v4-shadow-red: 0 8px 28px rgba(226,55,68,0.22);
  --v4-radius-sm:  10px;
  --v4-radius:     16px;
  --v4-radius-lg:  22px;
  --v4-radius-xl:  28px;
  --v4-font-disp:  'Cormorant Garamond', Georgia, serif;
  --v4-font-body:  'DM Sans', system-ui, sans-serif;
}

/* ─── Response Card Shell ────────────────────────────────── */
.dd-resp-teekhi {
  background: var(--v4-surface);
  border-radius: var(--v4-radius-xl);
  border: 1px solid var(--v4-border);
  box-shadow: var(--v4-shadow-lg);
  overflow: hidden;
  position: relative;
  margin-bottom: 1.5rem;
}

/* Kill dark ambient blobs */
.dd-resp-ambient { display: none !important; }

/* ─── Input Echo ─────────────────────────────────────────── */
.dd-resp-input-echo {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  padding: 10px 18px;
  background: var(--v4-surface-3);
  border-bottom: 1px solid var(--v4-border);
  font-family: var(--v4-font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--v4-ink-4);
}
.dd-resp-input-echo .dd-resp-prompt-text {
  color: var(--v4-ink-2);
  font-weight: 700;
  background: var(--v4-red-soft);
  border: 1px solid var(--v4-border-2);
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 10px;
}
.dd-resp-input-echo .dd-resp-parsed {
  color: var(--v4-red);
  font-weight: 700;
  font-size: 10px;
}

/* ─── Hero Section ───────────────────────────────────────── */
.dd-resp-hero {
  position: relative;
  height: 220px;
  overflow: hidden;
}
@media (min-width: 640px) { .dd-resp-hero { height: 260px; } }

.dd-resp-hero-image-wrap {
  position: relative;
  width: 100%;
  height: 100%;
}
.dd-resp-hero-img-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}
.dd-resp-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15,15,16,0.02) 0%,
    rgba(15,15,16,0.25) 50%,
    rgba(15,15,16,0.72) 100%
  );
}

/* Share button */
.dd-resp-hero-share {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  color: var(--v4-red);
  font-size: 13px;
  transition: transform 0.18s, box-shadow 0.18s;
  z-index: 2;
}
.dd-resp-hero-share:hover {
  transform: scale(1.08);
  box-shadow: var(--v4-shadow-red);
}

/* Hero content overlay */
.dd-resp-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.dd-resp-hero-title {
  font-family: var(--v4-font-disp);
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.15;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}
.dd-resp-hero-title em {
  font-style: italic;
  color: #ffcdd0;
}
.dd-resp-hero-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
.dd-resp-hero-badge {
  background: var(--v4-red);
  color: #fff;
  font-family: var(--v4-font-body);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 50px;
  box-shadow: var(--v4-shadow-red);
}
.dd-resp-hero-when {
  font-family: var(--v4-font-body);
  font-size: 10px;
  color: rgba(255,255,255,0.82);
  font-weight: 500;
}

/* Loading placeholder */
.tc-timeline-placeholder-loading {
  background: linear-gradient(135deg, #f3f3f7, #e8e8ef);
  height: 100%;
  position: relative;
  overflow: hidden;
}
.tc-timeline-placeholder-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(226,55,68,0.06) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: v4shimmer 1.8s ease-in-out infinite;
}
@keyframes v4shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.tc-postcard-loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.tc-postcard-loader-ring {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--v4-red), var(--v4-red-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  animation: v4pulse 2s ease-in-out infinite;
  box-shadow: 0 4px 20px rgba(226,55,68,0.35);
}
@keyframes v4pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.08); }
}
.tc-postcard-loader-text {
  font-family: var(--v4-font-body);
  font-size: 11px;
  font-weight: 700;
  color: var(--v4-red);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.tc-postcard-loader-bar {
  width: 120px;
  height: 3px;
  border-radius: 3px;
  background: rgba(226,55,68,0.12);
  overflow: hidden;
}
.tc-postcard-loader-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--v4-red), var(--v4-red-dark));
  animation: v4barrun 2s linear infinite;
}
@keyframes v4barrun {
  0%   { width: 20%; margin-left: 0; }
  50%  { width: 60%; margin-left: 20%; }
  100% { width: 20%; margin-left: 80%; }
}

/* ─── Stats Row ──────────────────────────────────────────── */
.dd-resp-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-bottom: 1px solid var(--v4-border);
  background: var(--v4-surface);
}
.dd-resp-stat-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 8px;
  border-right: 1px solid var(--v4-border);
  position: relative;
  transition: background 0.15s;
  cursor: default;
}
.dd-resp-stat-chip:last-child { border-right: none; }
.dd-resp-stat-chip:hover { background: var(--v4-red-soft); }
.dd-resp-stat-chip .val {
  font-family: var(--v4-font-disp);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--v4-ink);
  line-height: 1;
  letter-spacing: -0.02em;
}
.dd-resp-stat-chip .lbl {
  font-family: var(--v4-font-body);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--v4-ink-4);
  margin-top: 4px;
}
.dd-resp-stat-chip .dd-resp-stat-buffer {
  color: var(--v4-red);
}

/* ─── Scrollable Body ────────────────────────────────────── */
.dd-resp-scroll {
  background: var(--v4-surface-2);
}

/* ─── Section Header (Timeline, Venues, etc.) ────────────── */
.dd-teek-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 20px 12px;
  background: var(--v4-surface);
  border-bottom: 1px solid var(--v4-border);
}
.dd-teek-section-header h3 {
  font-family: var(--v4-font-disp);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--v4-ink);
  margin: 0;
  letter-spacing: -0.01em;
  flex: 1;
}
.dd-teek-tag {
  font-family: var(--v4-font-body);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--v4-ink-4);
  background: var(--v4-surface-3);
  border: 1px solid var(--v4-border);
  padding: 3px 8px;
  border-radius: 50px;
}
.dd-teek-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  background: var(--v4-red-soft);
  border: 1px solid var(--v4-border-2);
}
.dd-teek-icon-gold { background: rgba(251,191,36,0.10); border-color: rgba(251,191,36,0.2); }
.dd-teek-icon-rose { background: var(--v4-red-soft); border-color: var(--v4-border-2); }

/* ─── Timeline Section ───────────────────────────────────── */
.dd-teek-timeline-section {
  background: var(--v4-surface);
  border-bottom: 1px solid var(--v4-border);
}

.dd-teek-timeline {
  padding: 4px 20px 20px;
  position: relative;
}
/* Vertical red line */
.dd-teek-timeline::before {
  content: '';
  position: absolute;
  left: 33px;
  top: 12px;
  bottom: 12px;
  width: 1.5px;
  background: linear-gradient(to bottom, var(--v4-red) 0%, rgba(226,55,68,0.12) 100%);
}

.dd-teek-timeline-item {
  display: grid;
  grid-template-columns: 52px 14px 1fr;
  gap: 0 10px;
  align-items: start;
  padding: 14px 0;
  position: relative;
}

/* Time column */
.dd-teek-tl-time {
  font-family: var(--v4-font-disp);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--v4-ink-3);
  text-align: right;
  line-height: 1.3;
  padding-top: 2px;
}

/* Dot node */
.dd-teek-tl-node {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 5px;
  position: relative;
  z-index: 1;
}
.dd-teek-tl-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--v4-surface);
  border: 2.5px solid var(--v4-red);
  transition: transform 0.2s, background 0.2s;
}
.dd-teek-timeline-item.active .dd-teek-tl-dot {
  background: var(--v4-red);
  box-shadow: 0 0 0 4px rgba(226,55,68,0.15);
}
.dd-teek-timeline-item.rose .dd-teek-tl-dot { border-color: #f43f5e; background: #f43f5e; }
.dd-teek-timeline-item.lav .dd-teek-tl-dot  { border-color: #8b5cf6; background: #8b5cf6; }
.dd-teek-timeline-item.mint .dd-teek-tl-dot { border-color: #10b981; background: #10b981; }

/* Card */
.dd-teek-tl-card {
  background: var(--v4-surface);
  border: 1px solid var(--v4-border);
  border-radius: var(--v4-radius);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
  box-shadow: var(--v4-shadow-sm);
}
.dd-teek-tl-card:hover {
  border-color: var(--v4-border-2);
  box-shadow: var(--v4-shadow-md);
  transform: translateY(-1px);
}
.dd-teek-tl-card.dd-teek-expanded {
  border-color: var(--v4-border-2);
  box-shadow: var(--v4-shadow-md);
}
.dd-teek-tl-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
}
.dd-teek-tl-card-left { flex: 1; min-width: 0; }
.dd-teek-tl-phase {
  font-family: var(--v4-font-body);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--v4-red);
  margin-bottom: 2px;
}
.dd-teek-tl-title {
  font-family: var(--v4-font-disp);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--v4-ink);
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.dd-teek-tl-desc {
  font-family: var(--v4-font-body);
  font-size: 11px;
  color: var(--v4-ink-3);
  margin-top: 3px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dd-teek-tl-card.dd-teek-expanded .dd-teek-tl-desc {
  display: none;
}
.dd-teek-tl-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}
.dd-teek-tl-cost {
  font-family: var(--v4-font-disp);
  font-size: 1rem;
  font-weight: 600;
  color: var(--v4-red);
}
.dd-teek-tl-duration {
  font-family: var(--v4-font-body);
  font-size: 9px;
  color: var(--v4-ink-4);
  font-weight: 600;
}
.dd-teek-tl-expand {
  font-size: 14px;
  color: var(--v4-ink-4);
  margin-top: 4px;
  transition: transform 0.25s;
  line-height: 1;
}
.dd-teek-tl-card.dd-teek-expanded .dd-teek-tl-expand {
  transform: rotate(180deg);
}

/* Expanded body */
.dd-teek-tl-expanded-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.dd-teek-tl-card.dd-teek-expanded .dd-teek-tl-expanded-body {
  max-height: 600px;
}
.dd-teek-tl-note {
  padding: 0 14px 14px;
  font-family: var(--v4-font-body);
  font-size: 12px;
  color: var(--v4-ink-2);
  line-height: 1.6;
  border-top: 1px solid var(--v4-border);
  padding-top: 12px;
}
.dd-teek-tl-link {
  color: var(--v4-red);
  font-weight: 600;
  text-decoration: none;
}
.dd-teek-tl-link:hover { text-decoration: underline; }

.dd-teek-venue-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 14px 0;
}
.dd-teek-venue-pill {
  font-family: var(--v4-font-body);
  font-size: 10px;
  font-weight: 600;
  color: var(--v4-ink-2);
  background: var(--v4-surface-3);
  border: 1px solid var(--v4-border);
  padding: 3px 9px;
  border-radius: 50px;
  white-space: nowrap;
}
.dd-teek-rating { color: var(--v4-red); font-weight: 700; }

/* ─── Venue Cards ────────────────────────────────────────── */
.dd-teek-venues-section {
  background: var(--v4-surface);
  border-bottom: 1px solid var(--v4-border);
}
.dd-teek-venue-cards-scroll {
  display: flex;
  gap: 12px;
  padding: 14px 20px 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.dd-teek-venue-cards-scroll::-webkit-scrollbar { display: none; }

.dd-teek-venue-card {
  flex: 0 0 160px;
  border-radius: var(--v4-radius);
  overflow: hidden;
  border: 2px solid var(--v4-border);
  background: var(--v4-surface);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  box-shadow: var(--v4-shadow-sm);
}
.dd-teek-venue-card:hover { transform: translateY(-2px); box-shadow: var(--v4-shadow-md); }
.dd-teek-venue-card.selected {
  border-color: var(--v4-red);
  box-shadow: 0 0 0 3px rgba(226,55,68,0.12), var(--v4-shadow-md);
}

.dd-teek-venue-img-wrap {
  height: 100px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fde8ea, #fdf2f2);
}
.dd-teek-venue-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
.dd-teek-venue-card:hover .dd-teek-venue-img-wrap img { transform: scale(1.04); }
.dd-teek-venue-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,15,16,0.4) 0%, transparent 60%);
}
.dd-teek-venue-vibe {
  position: absolute;
  bottom: 7px;
  left: 8px;
  font-family: var(--v4-font-body);
  font-size: 8.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.dd-teek-venue-body {
  padding: 10px 10px 11px;
}
.dd-teek-venue-name {
  font-family: var(--v4-font-disp);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--v4-ink);
  line-height: 1.25;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.dd-teek-venue-cuisine {
  font-family: var(--v4-font-body);
  font-size: 10px;
  color: var(--v4-ink-3);
  margin-top: 3px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.dd-teek-venue-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 7px;
}
.dd-teek-venue-rating {
  font-family: var(--v4-font-body);
  font-size: 10px;
  font-weight: 700;
  color: #f59e0b;
}
.dd-teek-venue-price {
  font-family: var(--v4-font-body);
  font-size: 10px;
  font-weight: 700;
  color: var(--v4-red);
}

/* ─── Plan Text (typewriter area) ────────────────────────── */
.dd-teek-plan-extras {
  background: var(--v4-surface);
  border-top: 1px solid var(--v4-border);
  border-bottom: 1px solid var(--v4-border);
}
.dd-plan-text.response-text {
  padding: 18px 20px;
  font-family: var(--v4-font-body);
  font-size: 13px;
  color: var(--v4-ink-2);
  line-height: 1.7;
  min-height: 32px;
}

/* Rich text formatting inside response */
.response-text .dd-rt-h2,
.response-text .dd-rt-h3 {
  font-family: var(--v4-font-disp);
  color: var(--v4-ink);
  margin: 16px 0 6px;
}
.response-text .dd-rt-h2 { font-size: 1.15rem; font-weight: 600; }
.response-text .dd-rt-h3 { font-size: 1rem; font-weight: 600; color: var(--v4-red); }
.response-text .dd-rt-bold { font-weight: 700; color: var(--v4-ink); }
.response-text .dd-rt-link { color: var(--v4-red); font-weight: 600; text-decoration: none; }
.response-text .dd-rt-link:hover { text-decoration: underline; }
.response-text .dd-rt-bullet {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 4px 0;
  font-size: 13px;
}
.response-text .dd-rt-bullet-dot {
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  background: var(--v4-red);
  border-radius: 50%;
  margin-top: 7px;
}
.response-text .dd-rt-numbered {
  display: flex;
  gap: 10px;
  margin: 4px 0;
}
.response-text .dd-rt-num {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--v4-red-soft);
  border: 1px solid var(--v4-border-2);
  color: var(--v4-red);
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.response-text .dd-plan-hr {
  border-color: var(--v4-border);
  margin: 14px 0;
}

/* Phase cards inside response text */
.response-text .dd-phase-card {
  background: var(--v4-surface);
  border: 1px solid var(--v4-border);
  border-radius: var(--v4-radius);
  padding: 14px;
  margin: 10px 0;
  position: relative;
  overflow: hidden;
  box-shadow: var(--v4-shadow-sm);
}
.response-text .dd-phase-accent-strip {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--v4-red);
  border-radius: 3px 0 0 3px;
}
.response-text .dd-phase-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.response-text .dd-phase-step-num {
  width: 22px;
  height: 22px;
  background: var(--v4-red);
  color: #fff;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.response-text .dd-phase-icon-circle {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.response-text .dd-phase-label {
  font-family: var(--v4-font-body);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--v4-red);
}
.response-text .dd-phase-time {
  font-family: var(--v4-font-body);
  font-size: 10px;
  color: var(--v4-ink-4);
  font-weight: 600;
  margin-left: auto;
}
.response-text .dd-phase-share {
  background: none;
  border: none;
  color: var(--v4-ink-4);
  cursor: pointer;
  padding: 4px;
  font-size: 12px;
  transition: color 0.15s;
}
.response-text .dd-phase-share:hover { color: var(--v4-red); }
.response-text .dd-phase-body {
  font-family: var(--v4-font-body);
  font-size: 12px;
  color: var(--v4-ink-2);
  line-height: 1.6;
  padding-left: 4px;
}
.response-text .dd-phase-row {
  display: flex;
  gap: 6px;
  margin: 3px 0;
}
.response-text .dd-phase-label-text { font-weight: 700; color: var(--v4-ink); }

/* Timeline block */
.response-text .tc-timeline-block {
  background: var(--v4-surface-3);
  border: 1px solid var(--v4-border);
  border-radius: var(--v4-radius);
  padding: 12px 14px;
  margin: 10px 0;
}

/* Restaurant card */
.response-text .dd-resto-card {
  background: var(--v4-surface);
  border: 1px solid var(--v4-border);
  border-radius: var(--v4-radius);
  overflow: hidden;
  margin: 10px 0;
  box-shadow: var(--v4-shadow-sm);
}
.response-text .dd-resto-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--v4-border);
  background: var(--v4-surface-3);
}
.response-text .dd-resto-header-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--v4-red-soft);
  border: 1px solid var(--v4-border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--v4-red);
  font-size: 12px;
}
.response-text .dd-resto-header-title {
  font-family: var(--v4-font-disp);
  font-size: 1rem;
  font-weight: 600;
  color: var(--v4-ink);
}
.response-text .dd-resto-header-sub {
  font-family: var(--v4-font-body);
  font-size: 10px;
  color: var(--v4-ink-4);
  font-weight: 500;
}
.response-text .dd-resto-list { padding: 6px 0; }
.response-text .dd-resto-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--v4-border);
  text-decoration: none;
  transition: background 0.15s;
}
.response-text .dd-resto-item:last-child { border-bottom: none; }
.response-text .dd-resto-item:hover { background: var(--v4-red-soft); }
.response-text .dd-resto-emoji { font-size: 18px; flex-shrink: 0; }
.response-text .dd-resto-info { flex: 1; min-width: 0; }
.response-text .dd-resto-name {
  font-family: var(--v4-font-body);
  font-size: 12px;
  font-weight: 700;
  color: var(--v4-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.response-text .dd-resto-desc {
  font-size: 10px;
  color: var(--v4-ink-4);
}
.response-text .dd-resto-badge {
  font-size: 9px;
  font-weight: 700;
  color: #16a34a;
  background: rgba(22,163,74,0.08);
  border: 1px solid rgba(22,163,74,0.2);
  border-radius: 50px;
  padding: 2px 7px;
  white-space: nowrap;
  flex-shrink: 0;
}
.response-text .dd-resto-arrow { color: var(--v4-ink-4); font-size: 9px; }

/* Date tip card */
.response-text .dd-date-tip-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 1px solid rgba(251,191,36,0.25);
  border-radius: var(--v4-radius);
  padding: 12px 14px;
  margin: 10px 0;
}
.response-text .dd-date-tip-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(251,191,36,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d97706;
  font-size: 13px;
  flex-shrink: 0;
}
.response-text .dd-date-tip-label {
  font-family: var(--v4-font-body);
  font-size: 11px;
  font-weight: 800;
  color: #92400e;
  display: block;
}
.response-text .dd-date-tip-text {
  font-size: 11px;
  color: #78350f;
  line-height: 1.5;
  display: block;
  margin-top: 2px;
}

/* Plan B */
.response-text .tc-phase-planb,
.response-text .tc-phase-planb-standalone {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: var(--v4-radius);
  padding: 12px 14px;
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.response-text .tc-phase-planb-title {
  font-family: var(--v4-font-body);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #15803d;
}
.response-text .tc-phase-planb-body {
  font-size: 11.5px;
  color: #166534;
  line-height: 1.55;
}

/* Tip box (💡) */
.response-text .tc-tip-box {
  background: #fffbeb;
  border-color: rgba(251,191,36,0.3) !important;
}

/* ─── Info Row (Traffic + Budget) ────────────────────────── */
.dd-resp-info-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--v4-border);
  background: var(--v4-surface);
}
@media (max-width: 480px) {
  .dd-resp-info-row { grid-template-columns: 1fr; }
}
.dd-resp-info-card {
  padding: 18px 20px;
  border-right: 1px solid var(--v4-border);
  background: var(--v4-surface);
}
.dd-resp-info-card:last-child { border-right: none; }
.dd-resp-info-card-title {
  font-family: var(--v4-font-disp);
  font-size: 1rem;
  font-weight: 600;
  color: var(--v4-ink);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

/* Traffic */
.dd-resp-traffic-route,
.dd-teek-traffic-route {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.dd-resp-traffic-from,
.dd-resp-traffic-to {
  font-family: var(--v4-font-body);
  font-size: 10px;
  font-weight: 700;
  color: var(--v4-ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70px;
}
.dd-resp-traffic-line-wrap,
.dd-teek-traffic-line-outer {
  flex: 1;
  height: 2px;
  background: var(--v4-border);
  border-radius: 2px;
  position: relative;
  display: flex;
  align-items: center;
}
.dd-resp-traffic-line {
  height: 100%;
  width: 60%;
  background: linear-gradient(90deg, var(--v4-red), var(--v4-red-dark));
  border-radius: 2px;
  animation: trafficflow 2.5s ease-in-out infinite;
}
@keyframes trafficflow {
  0%   { width: 30%; margin-left: 0; }
  50%  { width: 60%; margin-left: 20%; }
  100% { width: 30%; margin-left: 70%; }
}
.dd-teek-traffic-mid {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.dd-teek-traffic-mid span {
  font-size: 8px;
  font-weight: 700;
  color: var(--v4-ink-4);
  white-space: nowrap;
}
.dd-teek-traffic-stat-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}
.dd-teek-traffic-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.dd-teek-ts-v {
  font-family: var(--v4-font-disp);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--v4-ink);
  line-height: 1;
}
.dd-teek-ts-u {
  font-family: var(--v4-font-body);
  font-size: 9px;
  color: var(--v4-ink-4);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.dd-resp-traffic-tip {
  font-size: 10px;
  color: var(--v4-ink-4);
  font-weight: 500;
  margin-bottom: 8px;
  font-family: var(--v4-font-body);
}
.dd-resp-traffic-grid-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  font-size: 9.5px;
  color: var(--v4-ink-3);
  font-family: var(--v4-font-body);
  margin-bottom: 8px;
}
.dd-resp-traffic-grid-mini strong { color: var(--v4-ink); font-weight: 700; }
.dd-teek-traffic-status {
  display: flex;
  align-items: center;
  gap: 7px;
}
.dd-teek-status-badge {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 9px;
  border-radius: 50px;
  flex-shrink: 0;
}
.dd-teek-status-clear   { background: rgba(22,163,74,0.10); color: #15803d; border: 1px solid rgba(22,163,74,0.2); }
.dd-teek-status-moderate{ background: rgba(251,191,36,0.12); color: #b45309; border: 1px solid rgba(251,191,36,0.25); }
.dd-teek-status-busy    { background: rgba(226,55,68,0.08); color: var(--v4-red); border: 1px solid var(--v4-border-2); }

/* Budget */
.dd-resp-budget-bars { margin-bottom: 12px; }
.dd-resp-budget-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.dd-resp-budget-label {
  font-family: var(--v4-font-body);
  font-size: 10px;
  font-weight: 600;
  color: var(--v4-ink-3);
  width: 58px;
  flex-shrink: 0;
}
.dd-resp-budget-bar-wrap {
  flex: 1;
  height: 5px;
  background: var(--v4-surface-3);
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid var(--v4-border);
}
.dd-resp-budget-bar-fill {
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--v4-red), var(--v4-red-dark));
  width: 0;
  transition: width 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.dd-resp-budget-bar-fill--on { width: var(--bar-w, 50%) !important; }
.dd-resp-bf-rose  { background: linear-gradient(90deg, #f43f5e, #e11d48); }
.dd-resp-bf-mint  { background: linear-gradient(90deg, #10b981, #059669); }
.dd-resp-bf-gold  { background: linear-gradient(90deg, #f59e0b, #d97706); }
.dd-resp-budget-amt {
  font-family: var(--v4-font-body);
  font-size: 10px;
  font-weight: 700;
  color: var(--v4-ink-2);
  width: 36px;
  text-align: right;
  flex-shrink: 0;
}
.dd-resp-budget-total {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--v4-border);
  font-family: var(--v4-font-body);
  font-size: 11px;
  color: var(--v4-ink-3);
}
.dd-resp-budget-total strong {
  font-family: var(--v4-font-disp);
  font-size: 1.1rem;
  color: var(--v4-ink);
  font-weight: 600;
  margin-left: auto;
}
.dd-resp-budget-saved {
  background: rgba(22,163,74,0.1);
  color: #16a34a;
  border: 1px solid rgba(22,163,74,0.2);
  font-size: 9px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 50px;
}

/* ─── Weather Strip ──────────────────────────────────────── */
.dd-resp-weather-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 20px;
  background: var(--v4-surface-3);
  border-top: 1px solid var(--v4-border);
  border-bottom: 1px solid var(--v4-border);
}
.dd-resp-weather-icon { font-size: 22px; flex-shrink: 0; }
.dd-resp-weather-main { display: flex; align-items: baseline; gap: 6px; }
.dd-resp-weather-temp {
  font-family: var(--v4-font-disp);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--v4-ink);
  line-height: 1;
}
.dd-resp-weather-desc {
  font-family: var(--v4-font-body);
  font-size: 10px;
  color: var(--v4-ink-3);
  font-weight: 500;
}
.dd-resp-weather-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  flex: 1;
}
.dd-resp-weather-tag {
  font-family: var(--v4-font-body);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 50px;
  background: var(--v4-surface);
  border: 1px solid var(--v4-border);
  color: var(--v4-ink-3);
  white-space: nowrap;
}
.dd-resp-weather-tag--good { color: #16a34a; border-color: rgba(22,163,74,0.2); background: rgba(22,163,74,0.06); }
.dd-resp-weather-tag--warn { color: #b45309; border-color: rgba(251,191,36,0.25); background: rgba(251,191,36,0.08); }
.dd-resp-weather-advice {
  width: 100%;
  font-family: var(--v4-font-body);
  font-size: 11px;
  color: var(--v4-ink-3);
  font-style: italic;
}

/* ─── CTA Section ────────────────────────────────────────── */
.dd-resp-cta-section {
  padding: 16px 20px;
  background: var(--v4-surface);
  border-top: 1px solid var(--v4-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dd-resp-cta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.dd-resp-cta-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 11px 8px;
  background: var(--v4-surface-3);
  border: 1px solid var(--v4-border);
  border-radius: var(--v4-radius);
  font-family: var(--v4-font-body);
  font-size: 10px;
  font-weight: 700;
  color: var(--v4-ink-2);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
  text-align: center;
  line-height: 1.3;
}
.dd-resp-cta-btn:hover { border-color: var(--v4-border-2); background: var(--v4-red-soft); transform: translateY(-1px); }
.dd-resp-cta-btn:active { transform: scale(0.97); }
.dd-resp-cta-btn .ico { font-size: 18px; }

/* Primary CTA */
.dd-resp-cta-primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--v4-red), var(--v4-red-dark));
  border: none;
  border-radius: var(--v4-radius);
  cursor: pointer;
  box-shadow: var(--v4-shadow-red);
  transition: opacity 0.2s, transform 0.15s;
}
.dd-resp-cta-primary:hover { opacity: 0.93; transform: translateY(-1px); }
.dd-resp-cta-primary:active { transform: scale(0.98); }
.dd-resp-cta-primary-left { text-align: left; }
.dd-resp-cta-primary-label {
  font-family: var(--v4-font-body);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.75);
  display: block;
  margin-bottom: 2px;
}
.dd-resp-cta-primary-text {
  font-family: var(--v4-font-disp);
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  display: block;
}
.dd-resp-cta-primary-arrow { font-size: 20px; }

/* ─── Bottom Row (Feedback) ──────────────────────────────── */
.dd-resp-bottom-row {
  padding: 12px 20px;
  background: var(--v4-surface-2);
  border-top: 1px solid var(--v4-border);
}
.dd-feedback-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dd-feedback-label {
  font-family: var(--v4-font-body);
  font-size: 11px;
  color: var(--v4-ink-4);
  font-weight: 500;
  flex: 1;
}
.dd-feedback-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--v4-border);
  background: var(--v4-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
  color: var(--v4-ink-4);
}
.dd-feedback-btn:hover { transform: scale(1.1); }
.dd-fb-up:hover   { border-color: #16a34a; color: #16a34a; background: rgba(22,163,74,0.08); }
.dd-fb-down:hover { border-color: var(--v4-red); color: var(--v4-red); background: var(--v4-red-soft); }
.dd-fb-save:hover { border-color: #ca8a04; color: #ca8a04; background: rgba(234,179,8,0.12); }

/* ─── Follow-up / Ask Next ───────────────────────────────── */
.dd-ask-next-box {
  background: var(--v4-surface);
  border: 1px solid var(--v4-border);
  border-radius: var(--v4-radius);
  padding: 14px;
  margin: 10px 0;
}
.dd-ask-next-box--alt {
  background: var(--v4-surface-2);
  border: none;
  padding: 14px 20px;
}
.dd-ask-next-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--v4-font-body);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--v4-ink-4);
  margin-bottom: 10px;
}
.dd-ask-next-header i { color: var(--v4-red); }
.dd-ask-next-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.dd-ask-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 50px;
  font-family: var(--v4-font-body);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  border: 1.5px solid var(--v4-border);
  background: var(--v4-surface);
  color: var(--v4-ink-2);
  line-height: 1.2;
}
.dd-ask-chip:hover { border-color: var(--v4-border-2); background: var(--v4-red-soft); color: var(--v4-red); }
.dd-ask-chip:active { transform: scale(0.96); }
.dd-ask-chip--primary {
  background: var(--v4-red);
  color: #fff;
  border-color: var(--v4-red);
}
.dd-ask-chip--primary:hover { background: var(--v4-red-dark); color: #fff; }
.dd-ask-chip--secondary {
  background: var(--v4-surface);
  color: var(--v4-ink-2);
}

/* ─── Conversation Guide ─────────────────────────────────── */
.dd-convo-guide {
  background: var(--v4-surface);
  border: 1px solid var(--v4-border);
  border-radius: var(--v4-radius);
  overflow: hidden;
  margin: 10px 0;
}
.dd-convo-guide-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--v4-surface-3);
  border-bottom: 1px solid var(--v4-border);
}
.dd-convo-guide-icon {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, var(--v4-red), var(--v4-red-dark));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  flex-shrink: 0;
}
.dd-convo-guide-title {
  font-family: var(--v4-font-disp);
  font-size: 1rem;
  font-weight: 600;
  color: var(--v4-ink);
}
.dd-convo-guide-sub {
  font-size: 10px;
  color: var(--v4-ink-4);
  font-family: var(--v4-font-body);
  display: block;
  margin-top: 1px;
}
.dd-convo-mood {
  padding: 9px 14px;
  font-size: 11px;
  color: var(--v4-ink-3);
  font-style: italic;
  background: rgba(226,55,68,0.04);
  border-bottom: 1px solid var(--v4-border);
  font-family: var(--v4-font-body);
}
.dd-convo-section { padding: 10px 14px; border-bottom: 1px solid var(--v4-border); }
.dd-convo-section:last-child { border-bottom: none; }
.dd-convo-section-label {
  font-family: var(--v4-font-body);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--v4-red);
  margin-bottom: 7px;
}
.dd-convo-icebreaker {
  display: flex;
  gap: 7px;
  margin-bottom: 5px;
  font-size: 12px;
  color: var(--v4-ink-2);
  font-family: var(--v4-font-body);
}
.dd-convo-bullet { color: var(--v4-red); flex-shrink: 0; }
.dd-convo-deep {
  font-size: 12px;
  color: var(--v4-ink);
  font-weight: 600;
  font-style: italic;
  font-family: var(--v4-font-disp);
}
.dd-convo-avoid {
  padding: 10px 14px;
  background: rgba(239,68,68,0.04);
}
.dd-convo-avoid-label {
  font-family: var(--v4-font-body);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--v4-red-dark);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.dd-convo-avoid-text {
  font-size: 11px;
  color: var(--v4-ink-3);
  font-family: var(--v4-font-body);
}

/* ─── Quick Picks Bar ────────────────────────────────────── */
.dd-quick-picks-bar {
  background: var(--v4-surface);
  border: 1px solid var(--v4-border);
  border-radius: var(--v4-radius-lg);
  padding: 14px 16px 16px;
  margin-bottom: 16px;
  box-shadow: var(--v4-shadow-sm);
}
.dd-qp-header {
  font-family: var(--v4-font-body);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--v4-red);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.dd-qp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.dd-qp-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px;
  background: var(--v4-surface-2);
  border: 1.5px solid var(--v4-border);
  border-radius: var(--v4-radius);
  cursor: pointer;
  transition: all 0.18s;
}
.dd-qp-card:hover { border-color: var(--v4-border-2); background: var(--v4-red-soft); transform: translateY(-2px); }
.dd-qp-card:active { transform: scale(0.95); }
.dd-qp-emoji { font-size: 20px; }
.dd-qp-title {
  font-family: var(--v4-font-body);
  font-size: 10px;
  font-weight: 700;
  color: var(--v4-ink-2);
  text-align: center;
  line-height: 1.2;
}
.dd-qp-price {
  font-family: var(--v4-font-body);
  font-size: 9px;
  font-weight: 600;
  color: var(--v4-red);
}
.dd-qp-hint {
  font-size: 10px;
  color: var(--v4-ink-4);
  text-align: center;
  margin-top: 10px;
  margin-bottom: 0;
  font-family: var(--v4-font-body);
}

/* ─── User chat bubble ───────────────────────────────────── */
.tc-user-msg-wrap {
  background: linear-gradient(135deg, var(--v4-red), var(--v4-red-dark)) !important;
  border-radius: 18px 18px 4px 18px !important;
  box-shadow: var(--v4-shadow-red) !important;
}

/* ─── Smart Suggest ──────────────────────────────────────── */
.tc-smart-suggest-card {
  background: var(--v4-surface) !important;
  border-color: var(--v4-border) !important;
}
.tc-smart-suggest-icon {
  background: linear-gradient(135deg, var(--v4-red), var(--v4-red-dark)) !important;
}
.tc-smart-suggest-label { color: var(--v4-ink) !important; }
.tc-smart-suggest-text  { color: var(--v4-ink-3) !important; }
.tc-smart-suggest-btn {
  background: var(--v4-red-soft) !important;
  border: 1px solid var(--v4-border-2) !important;
  color: var(--v4-red) !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
}
.tc-smart-suggest-border { border-color: var(--v4-border) !important; }

/* ─── Fade-in Animation for sections ────────────────────── */
.dd-teek-fade {
  animation: v4fadein 0.4s ease-out both;
}
@keyframes v4fadein {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Toast ──────────────────────────────────────────────── */
.dd-toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--v4-ink);
  color: #fff;
  font-family: var(--v4-font-body);
  font-size: 12px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 50px;
  box-shadow: var(--v4-shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  white-space: nowrap;
  max-width: 90vw;
  z-index: 10010;
}
.dd-toast-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─── Offline banner ─────────────────────────────────────── */
.dd-offline-banner {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9998;
  background: var(--v4-red);
  border-radius: 50px;
  box-shadow: var(--v4-shadow-red);
  max-width: 90vw;
}
.dd-offline-banner-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  color: #fff;
  font-family: var(--v4-font-body);
  font-size: 12px;
  font-weight: 600;
}
.dd-offline-banner-btn {
  background: rgba(255,255,255,0.2);
  border: none;
  border-radius: 50px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  cursor: pointer;
}
.dd-offline-banner-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  font-size: 13px;
  padding: 2px;
}

/* ─── Budget bar animation trigger ──────────────────────── */
/* Set CSS custom property per bar so the animation target is dynamic */
.dd-resp-budget-bar-fill { width: 0 !important; }
.dd-resp-budget-bar-fill--on { width: attr(style width) !important; }
/* Override: rely on inline style + class combo from JS */
.dd-resp-budget-bar-fill--on { transition: width 1.4s cubic-bezier(0.34, 1.2, 0.64, 1) !important; }

/* ─── Saved plans cards ──────────────────────────────────── */
.dd-saved-plan-card {
  background: var(--v4-surface);
  border: 1px solid var(--v4-border);
  border-radius: var(--v4-radius);
  padding: 14px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-shadow: var(--v4-shadow-sm);
}
.dd-saved-plan-card:hover {
  border-color: var(--v4-border-2);
  box-shadow: var(--v4-shadow-md);
}
.dd-saved-plan-card-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.dd-saved-plan-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--v4-red-soft);
  border: 1px solid var(--v4-border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--v4-red);
  font-size: 12px;
  flex-shrink: 0;
}
.dd-saved-plan-info { flex: 1; min-width: 0; }
.dd-saved-plan-title {
  font-family: var(--v4-font-disp);
  font-size: 1rem;
  font-weight: 600;
  color: var(--v4-ink);
}
.dd-saved-plan-meta {
  font-family: var(--v4-font-body);
  font-size: 10px;
  color: var(--v4-ink-4);
  font-weight: 500;
  margin-top: 2px;
}
.dd-saved-plan-delete {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: none;
  border: none;
  color: var(--v4-ink-4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.dd-saved-plan-delete:hover { background: rgba(226,55,68,0.1); color: var(--v4-red); }
.dd-saved-plan-preview {
  font-family: var(--v4-font-body);
  font-size: 11px;
  color: var(--v4-ink-4);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--v4-border);
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ─── Responsive tweaks ──────────────────────────────────── */
@media (max-width: 400px) {
  .dd-resp-stats-row { grid-template-columns: repeat(2, 1fr); }
  .dd-resp-stat-chip:nth-child(2) { border-right: none; }
  .dd-resp-cta-grid { grid-template-columns: 1fr 1fr; }
  .dd-qp-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── Print-friendly ─────────────────────────────────────── */
@media print {
  .dd-resp-teekhi { box-shadow: none; }
  .dd-resp-hero { height: 160px; }
  .dd-resp-cta-section,
  .dd-resp-bottom-row,
  .dd-ask-next-box { display: none; }
}
