:root {
  --bg: #14040c;
  --text: #fff3f6;
  --muted: #e3b5c4;
  --glass: rgba(255, 255, 255, 0.07);
  --glass-strong: rgba(255, 255, 255, 0.12);
  --stroke: rgba(255, 255, 255, 0.16);
  --accent-1: #ff5c8a;
  --accent-2: #ffd3a8;
  --accent-3: #b0124f;
  --grad: linear-gradient(120deg, var(--accent-1), var(--accent-2));
  --radius: 24px;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- animated background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.bg span {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  animation: drift 22s ease-in-out infinite alternate;
}
.bg span:nth-child(1) { width: 46vmax; height: 46vmax; background: var(--accent-3); top: -15vmax; left: -12vmax; }
.bg span:nth-child(2) { width: 40vmax; height: 40vmax; background: var(--accent-1); bottom: -14vmax; right: -10vmax; animation-delay: -7s; }
.bg span:nth-child(3) { width: 28vmax; height: 28vmax; background: var(--accent-2); top: 40%; left: 45%; opacity: 0.3; animation-delay: -13s; }
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 28px 28px;
}

@keyframes drift {
  to { transform: translate(6vmax, 5vmax) scale(1.15); }
}

/* ---------- layout ---------- */
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }

/* ---------- hero ---------- */
header.hero { text-align: center; padding: 72px 0 40px; }

.eyebrow {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 800;
  line-height: 1;
  margin: 22px 0 14px;
  background: linear-gradient(120deg, #fff 10%, var(--accent-1) 45%, var(--accent-2) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 8px 30px rgba(255, 92, 138, 0.35));
}

.hero p { color: var(--muted); font-size: 1.1rem; }

.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.badge {
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 0.9rem;
}
.badge.hot { background: var(--grad); border: none; color: #1a0f1f; font-weight: 700; box-shadow: 0 8px 28px rgba(255, 92, 138, 0.4); }

/* ---------- category nav ---------- */
nav.chips {
  position: sticky;
  top: 12px;
  z-index: 10;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  width: fit-content;
  max-width: calc(100% - 24px);
  margin: 0 auto 36px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(40, 8, 24, 0.6);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}
nav.chips::-webkit-scrollbar { display: none; }
nav.chips a {
  flex: none;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: background 0.2s, color 0.2s;
}
nav.chips a:hover, nav.chips a:focus-visible { background: var(--glass-strong); color: #fff; outline: none; }

/* ---------- sections & cards ---------- */
.section-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 8px 0 20px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: 0.02em;
}
.section-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--stroke), transparent); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.card {
  position: relative;
  padding: 28px 26px 18px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255,255,255,0.13), rgba(255,255,255,0.04));
  border: 1px solid var(--stroke);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
/* glossy sheen */
.card::before {
  content: "";
  position: absolute;
  top: -60%;
  left: -40%;
  width: 60%;
  height: 220%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.14), transparent);
  transform: rotate(18deg) translateX(-160%);
  transition: transform 0.9s ease;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 211, 168, 0.55);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 211, 168, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.card:hover::before { transform: rotate(18deg) translateX(520%); }

.card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  border-radius: 16px;
  background: var(--grad);
  box-shadow: 0 8px 22px rgba(255, 92, 138, 0.4), inset 0 1px 0 rgba(255,255,255,0.5);
}
.card h3 { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.2; }
.card .tag { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

.items { list-style: none; }
.items li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.items .name { font-weight: 500; }
.items .dots { flex: 1; border-bottom: 1px dotted rgba(255, 255, 255, 0.22); transform: translateY(-4px); min-width: 12px; }
.items .price { font-weight: 700; color: var(--accent-2); font-variant-numeric: tabular-nums; }
.items .price::before { content: "₹"; font-weight: 400; opacity: 0.7; margin-right: 2px; }

/* veg / non-veg marker */
.dot {
  flex: none;
  align-self: center;
  width: 12px;
  height: 12px;
  border: 1.5px solid;
  border-radius: 3px;
  display: grid;
  place-items: center;
}
.dot::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.dot.veg { color: #4ade80; }
.dot.nonveg { color: #ff5a5f; }

/* ---------- footer ---------- */
footer { text-align: center; padding: 32px 0 64px; }
.discount {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.discount b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.thanks { margin-top: 28px; font-family: var(--font-display); font-style: italic; font-size: clamp(1.4rem, 3vw, 2rem); color: var(--accent-1); }

/* ---------- entrance animation ---------- */
@media (prefers-reduced-motion: no-preference) {
  .card, .hero > * { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .grid .card:nth-child(2) { animation-delay: 0.08s; }
  .grid .card:nth-child(3) { animation-delay: 0.16s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

@media (prefers-reduced-motion: reduce) {
  .bg span { animation: none; }
  .card, .card::before { transition: none; }
}

@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr; }
  header.hero { padding-top: 48px; }
}

/* ---------- Stacy mascot ---------- */
.stacy {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}
.stacy img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 6px rgba(255, 92, 138, 0.25);
  background: var(--glass);
}
.stacy .bubble {
  position: relative;
  margin-bottom: 30px;
  padding: 10px 18px;
  border-radius: 18px;
  background: linear-gradient(160deg, #fff, #ffe9f1);
  color: #3b1a2c;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  transform-origin: right bottom;
  animation: pop 0.6s 1.2s cubic-bezier(0.3, 1.6, 0.5, 1) both, bob 3.2s 2s ease-in-out infinite;
}
/* tail pointing at the avatar */
.stacy .bubble::after {
  content: "";
  position: absolute;
  right: -8px;
  bottom: 10px;
  border: 8px solid transparent;
  border-left-color: #ffe9f1;
  border-right: 0;
}
@keyframes pop { from { opacity: 0; transform: scale(0.3); } }
@keyframes bob { 50% { transform: translateY(-5px); } }

@media (prefers-reduced-motion: reduce) {
  .stacy .bubble { animation: none; }
}
@media (max-width: 520px) {
  .stacy { right: 12px; bottom: 12px; }
  .stacy img { width: 56px; height: 56px; }
  .stacy .bubble { margin-bottom: 20px; padding: 8px 14px; font-size: 0.9rem; }
}

.stacy img { object-fit: cover; object-position: 50% 30%; }

/* ---------- romantic background ---------- */
body {
  background:
    radial-gradient(ellipse at 20% 0%, #5a0f33 0%, transparent 55%),
    radial-gradient(ellipse at 85% 100%, #7a1442 0%, transparent 50%),
    linear-gradient(180deg, #1c0610 0%, #14040c 100%);
  background-attachment: fixed;
}
.bg::after {
  /* soft bokeh lights instead of the dot grid */
  background-image:
    radial-gradient(circle at 12% 22%, rgba(255, 211, 168, 0.22) 0 14px, transparent 15px),
    radial-gradient(circle at 78% 14%, rgba(255, 140, 170, 0.20) 0 22px, transparent 23px),
    radial-gradient(circle at 90% 58%, rgba(255, 211, 168, 0.16) 0 10px, transparent 11px),
    radial-gradient(circle at 6% 72%, rgba(255, 140, 170, 0.18) 0 26px, transparent 27px),
    radial-gradient(circle at 48% 90%, rgba(255, 211, 168, 0.15) 0 16px, transparent 17px),
    radial-gradient(circle at 62% 38%, rgba(255, 140, 170, 0.10) 0 12px, transparent 13px);
  background-size: auto;
  filter: blur(2px);
}
.bg i {
  position: absolute;
  bottom: -60px;
  left: var(--x);
  font-style: normal;
  font-size: var(--s);
  color: var(--c, #ff5c8a);
  opacity: 0;
  text-shadow: 0 0 18px currentColor;
  animation: float var(--t) linear var(--d) infinite;
}
@keyframes float {
  0%   { transform: translate(0, 0) rotate(-12deg); opacity: 0; }
  10%  { opacity: 0.55; }
  50%  { transform: translate(24px, -55vh) rotate(10deg); }
  90%  { opacity: 0.4; }
  100% { transform: translate(-14px, -118vh) rotate(-8deg); opacity: 0; }
}
.hero h1 { filter: drop-shadow(0 8px 34px rgba(255, 60, 110, 0.5)); }
@media (prefers-reduced-motion: reduce) { .bg i { animation: none; opacity: 0.25; bottom: auto; top: var(--y, 40%); } }

/* ---------- whiter frosted cards ---------- */
.card {
  color: #3a1426;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(255, 238, 244, 0.84));
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 22px 55px rgba(20, 0, 10, 0.45), 0 0 0 1px rgba(255, 92, 138, 0.12), inset 0 1px 0 #fff;
}
.card::before { background: linear-gradient(100deg, transparent, rgba(255, 92, 138, 0.14), transparent); }
.card:hover {
  border-color: rgba(255, 92, 138, 0.6);
  box-shadow: 0 30px 65px rgba(20, 0, 10, 0.5), 0 0 0 2px rgba(255, 92, 138, 0.25), inset 0 1px 0 #fff;
}
.card h3 { color: #4a1230; }
.card .tag { color: #a45d79; }
.items li { border-top-color: rgba(120, 30, 70, 0.12); }
.items .dots { border-bottom-color: rgba(120, 30, 70, 0.28); }
.items .price { color: #c2185b; }
.dot.veg { color: #1fa855; }
.dot.nonveg { color: #e03449; }

/* ---------- image slider ---------- */
.slider {
  position: relative;
  margin: 0 auto 40px;
  max-width: 980px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 30px 70px rgba(20, 0, 10, 0.55), 0 0 0 6px rgba(255, 255, 255, 0.08);
  background: #2a0a1a;
  outline-offset: 4px;
}
.slider .track { display: flex; transition: transform 0.7s cubic-bezier(0.65, 0, 0.25, 1); }
.slider .slide {
  position: relative;
  flex: 0 0 100%;
  aspect-ratio: 16 / 7;
  min-height: 220px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #b0124f, #ff8fab 60%, #ffd3a8);
  font-size: 5rem;
}
.slider .slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.slider .slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(30, 0, 14, 0.82) 0%, rgba(30, 0, 14, 0.15) 55%, transparent 100%);
}
.slider .caption {
  position: absolute;
  z-index: 1;
  left: 0; right: 0; bottom: 0;
  padding: 24px 28px 30px;
  text-align: left;
  font-size: 1rem;
}
.slider .caption h4 { font-family: var(--font-display); font-size: clamp(1.4rem, 3.4vw, 2.2rem); line-height: 1.15; color: #fff; }
.slider .caption p { color: #ffe1ea; margin-top: 4px; }
.slider .caption .from {
  display: inline-block;
  margin-top: 10px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--grad);
  color: #3a0a20;
  font-weight: 700;
  font-size: 0.85rem;
}
.slider .arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 46px; height: 46px;
  transform: translateY(-50%);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.slider .arrow:hover, .slider .arrow:focus-visible { background: rgba(255, 255, 255, 0.4); transform: translateY(-50%) scale(1.08); outline: none; }
.slider .prev { left: 16px; }
.slider .next { right: 16px; }
.slider .dots-nav { position: absolute; z-index: 2; right: 24px; bottom: 24px; display: flex; gap: 8px; }
.slider .dots-nav button {
  width: 10px; height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width 0.3s, background 0.3s;
}
.slider .dots-nav button[aria-current="true"] { width: 28px; background: #fff; }
@media (max-width: 620px) {
  .slider .slide { aspect-ratio: 4 / 3; }
  .slider .caption { padding: 16px 18px 24px; }
  .slider .arrow { width: 38px; height: 38px; }
  .slider .dots-nav { right: 16px; bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) { .slider .track { transition: none; } }

.credit { margin-top: 18px; font-size: 0.8rem; color: var(--muted); }
.credit a { color: var(--accent-2); }

/* ---------- romantic dates slider ---------- */
#dates { max-width: 980px; margin: 0 auto 20px; }
.slider-romance { margin-top: 0; border-color: rgba(255, 179, 198, 0.8); box-shadow: 0 30px 70px rgba(20, 0, 10, 0.55), 0 0 40px rgba(255, 92, 138, 0.35), 0 0 0 6px rgba(255, 143, 171, 0.18); }
.slider-romance .slide::after { background: linear-gradient(0deg, rgba(120, 10, 55, 0.85) 0%, rgba(120, 10, 55, 0.12) 55%, transparent 100%); }
.slider-romance .caption .from { background: #fff; color: #b0124f; }

/* ---------- owner photo + cafe header ---------- */
.owner {
  width: 150px;
  height: 150px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.9);
  background: linear-gradient(135deg, #b0124f, #ff5c8a 60%, #ffd3a8);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 8px rgba(255, 92, 138, 0.28), 0 0 50px rgba(255, 92, 138, 0.55), 0 18px 40px rgba(0, 0, 0, 0.5);
}
.hero .eyebrow { margin-top: 4px; }
.hero h1 { margin: 6px 0 12px; }
@media (max-width: 520px) { .owner { width: 120px; height: 120px; } }

/* ---------- dish thumbnails ---------- */
.items li { align-items: center; }
.items .thumb {
  flex: none;
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffd3e0, #ffe9f1);
  box-shadow: 0 4px 10px rgba(120, 20, 60, 0.28), 0 0 0 2px #fff;
  transition: transform 0.25s ease;
}
.items li:hover .thumb { transform: scale(1.12) rotate(-3deg); }
.items .dots { transform: none; align-self: center; }

/* ---------- floating hearts (moved out of inline styles for CSP) ---------- */
.bg i:nth-child(4) { --x:43%; --s:18px; --t:22s; --d:-20s; --y:16%; --c:#ff5c8a }
.bg i:nth-child(5) { --x:70%; --s:17px; --t:21s; --d:-18s; --y:17%; --c:#ffb3c6 }
.bg i:nth-child(6) { --x:29%; --s:15px; --t:17s; --d:-13s; --y:63%; --c:#ff5c8a }
.bg i:nth-child(7) { --x:32%; --s:16px; --t:24s; --d:-13s; --y:17%; --c:#ffb3c6 }
.bg i:nth-child(8) { --x:17%; --s:21px; --t:26s; --d:-20s; --y:84%; --c:#ff5c8a }
.bg i:nth-child(9) { --x:75%; --s:32px; --t:22s; --d:-1s; --y:38%; --c:#ff5c8a }
.bg i:nth-child(10) { --x:73%; --s:18px; --t:20s; --d:-13s; --y:28%; --c:#ffb3c6 }
.bg i:nth-child(11) { --x:17%; --s:32px; --t:20s; --d:-17s; --y:33%; --c:#ff5c8a }
.bg i:nth-child(12) { --x:76%; --s:32px; --t:26s; --d:-6s; --y:57%; --c:#ff5c8a }
.bg i:nth-child(13) { --x:72%; --s:36px; --t:17s; --d:-18s; --y:17%; --c:#ffb3c6 }
.bg i:nth-child(14) { --x:28%; --s:29px; --t:26s; --d:-17s; --y:64%; --c:#ffd3a8 }
.bg i:nth-child(15) { --x:61%; --s:32px; --t:30s; --d:-14s; --y:56%; --c:#ffd3a8 }
.bg i:nth-child(16) { --x:33%; --s:19px; --t:27s; --d:-24s; --y:41%; --c:#ff5c8a }
.bg i:nth-child(17) { --x:75%; --s:23px; --t:24s; --d:-15s; --y:53%; --c:#e63971 }
.bg i:nth-child(18) { --x:38%; --s:33px; --t:17s; --d:-3s; --y:75%; --c:#e63971 }
.bg i:nth-child(19) { --x:23%; --s:38px; --t:21s; --d:-4s; --y:72%; --c:#e63971 }

/* ---------- Stacy is now a button that opens the chat ---------- */
.stacy { pointer-events: auto; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit; }
.stacy:focus-visible { outline: 3px solid #fff; outline-offset: 6px; border-radius: 999px; }
.stacy img { transition: transform 0.25s ease; }
.stacy:hover img { transform: scale(1.07) rotate(-4deg); }
.stacy[aria-expanded="true"] .bubble { display: none; }

/* ---------- chat popup ---------- */
.chat {
  position: fixed;
  right: 20px;
  bottom: 112px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  width: min(370px, calc(100vw - 24px));
  height: min(520px, calc(100vh - 140px));
  border-radius: 24px;
  overflow: hidden;
  color: #3a1426;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.97), rgba(255, 238, 244, 0.93));
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 30px 70px rgba(20, 0, 10, 0.6), 0 0 0 1px rgba(255, 92, 138, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: chat-in 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
  transform-origin: bottom right;
}
.chat[hidden] { display: none; }
@keyframes chat-in { from { opacity: 0; transform: translateY(14px) scale(0.92); } }
.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  color: #fff;
  background: linear-gradient(120deg, #b0124f, #ff5c8a);
}
.chat-head img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; }
.chat-head div { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.chat-head span { font-size: 0.78rem; opacity: 0.9; }
.chat-close {
  width: 32px; height: 32px;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.chat-close:hover, .chat-close:focus-visible { background: rgba(255, 255, 255, 0.4); outline: none; }
.chat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 18px; font-size: 0.92rem; line-height: 1.45; }
.msg p + p { margin-top: 4px; }
.msg.bot { align-self: flex-start; background: #fff; border: 1px solid #ffd3e0; border-bottom-left-radius: 6px; box-shadow: 0 4px 12px rgba(176, 18, 79, 0.08); }
.msg.me { align-self: flex-end; color: #fff; background: linear-gradient(120deg, #e63971, #ff5c8a); border-bottom-right-radius: 6px; }
.msg.typing { color: #a45d79; letter-spacing: 0.2em; animation: blink 1s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.35; } }
.chat-chips { display: flex; gap: 8px; padding: 4px 14px 10px; overflow-x: auto; scrollbar-width: none; }
.chat-chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid #ffb3c6;
  background: #fff;
  color: #b0124f;
  font: inherit; font-size: 0.82rem; font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.chip:hover, .chip:focus-visible { background: #b0124f; color: #fff; outline: none; }
.chat-form { display: flex; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid #ffd3e0; background: rgba(255, 255, 255, 0.7); }
.chat-input {
  flex: 1; min-width: 0;
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid #ffb3c6;
  background: #fff;
  color: #3a1426;
  font: inherit; font-size: 0.92rem;
}
.chat-input:focus { outline: 2px solid #ff5c8a; outline-offset: 1px; }
.chat-send {
  width: 44px; height: 44px; flex: none;
  border: 0; border-radius: 50%;
  background: linear-gradient(120deg, #e63971, #ff5c8a);
  color: #fff; font-size: 1.1rem; cursor: pointer;
  box-shadow: 0 6px 16px rgba(230, 57, 113, 0.4);
}
.chat-send:hover, .chat-send:focus-visible { filter: brightness(1.08); outline: none; }
@media (max-width: 520px) { .chat { right: 12px; bottom: 90px; height: min(500px, calc(100vh - 110px)); } }
@media (prefers-reduced-motion: reduce) { .chat, .msg.typing { animation: none; } .stacy img { transition: none; } }

/* logo badge (monogram) in the header */
.owner::after {
  content: "S";
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 4.2rem;
  line-height: 1;
  color: #fff;
  text-shadow: 0 4px 14px rgba(90, 0, 40, 0.5);
}
@media (max-width: 520px) { .owner::after { font-size: 3.3rem; } }
