/* Tema CatyAI Beauty Advisor — „light luxury” din logo: fond roz-șampanie deschis, text prună,
   accente roz pudrat și auriu-roz; antetul rămâne prună ca semnătură a mărcii. */
:root {
  --ivory: #fcf4f2;
  --paper: #ffffff;
  --blush: #f8e7ea;
  --blush-deep: #ebc6d1;
  --ink: #3a1428;
  --ink-soft: #6c4758;
  --ink-faint: #a68897;
  --red: #b8436f;
  --red-deep: #8f2a55;
  --gold: #a9784a;
  --line: rgba(58, 20, 40, 0.11);
  --plum: #2e0b1e;
  --rose-grad: linear-gradient(135deg, #f3b5c9 0%, #dc7fa1 55%, #c2648a 100%);
  --gold-grad: linear-gradient(135deg, #f5d7b5 0%, #d3a06c 100%);
  --shadow-card: 0 1px 0 rgba(58, 20, 40, 0.04), 0 12px 28px -16px rgba(120, 40, 80, 0.35);
  color-scheme: light;
}

body {
  background:
    radial-gradient(110% 55% at 80% -10%, rgba(232, 150, 182, 0.30) 0%, transparent 60%),
    radial-gradient(90% 45% at 0% 105%, rgba(230, 190, 150, 0.22) 0%, transparent 60%),
    var(--ivory);
  background-attachment: fixed;
}
:focus-visible { outline-color: var(--red); }

/* antet prună */
.topbar { background: linear-gradient(180deg, #2e0b1e, #3e1229); border-bottom: 0; color: #f6e7dd; box-shadow: 0 8px 24px -16px rgba(46, 11, 30, 0.6); }
.topbar .icon-btn { color: #f6e7dd; }
.topbar .icon-btn:hover { background: rgba(255, 255, 255, 0.1); }
.brand { flex-direction: row; gap: 10px; }
.brand-mark { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgba(230, 189, 144, 0.6), 0 0 16px rgba(236, 147, 178, 0.35); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font: 400 1.15rem var(--serif); letter-spacing: 0.01em; }
.brand-name em { font-style: normal; background: var(--rose-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.topbar .brand-name em { background: linear-gradient(135deg, #f8c6d6, #e891b2); -webkit-background-clip: text; background-clip: text; }
.brand-sub { font-size: 0.6rem; letter-spacing: 0.32em; text-transform: uppercase; color: #e6bd90; }

/* bun venit */
.welcome { text-align: center; padding: 3vh 4px 12px; }
.hero-logo {
  display: block; width: min(64vw, 280px); height: auto; margin: 0 auto 6px; border-radius: 28px;
  box-shadow: 0 28px 50px -26px rgba(120, 30, 70, 0.6);
  animation: rise 900ms var(--ease) both;
}
.welcome .eyebrow { color: var(--gold); }
.welcome h1 { margin-top: 14px; color: var(--ink); }
.welcome h1 em { font-style: italic; background: var(--rose-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { margin-left: auto; margin-right: auto; }
.starters { text-align: left; }
.starter { background: rgba(255, 255, 255, 0.85); border-color: var(--line); }
.starter:hover { border-color: var(--blush-deep); }
.starter:nth-child(4) { background: linear-gradient(135deg, #3e1229, #6a2346); color: #fbe9ee; border-color: transparent; }
.starter:nth-child(4) b { color: #fbe9ee; }
.starter:nth-child(4) span { color: #f2b9cc; }

/* mesaje */
.msg.user .bubble { background: var(--rose-grad); color: #2e0b1e; }
.msg.user .photo { border-color: #fff; }
.msg.bot .bubble li::marker { color: var(--red); }
.msg.bot .bubble strong { color: var(--red-deep); }
.typing i { background: var(--blush-deep); }
.expert { background: rgba(184, 67, 111, 0.1); color: var(--red-deep); }
.expert.skincare { background: #e6f0e8; color: #3d6248; }
.expert.colorimetry { background: #f6ebdc; color: #8a5c2c; }

/* răspunsuri rapide */
.quick-q { color: var(--ink-soft); }
.chip { border-color: rgba(58, 20, 40, 0.35); color: var(--ink); background: rgba(255, 255, 255, 0.6); }
.chip:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip[aria-pressed="true"] { background: var(--rose-grad); border-color: transparent; color: #2e0b1e; }

/* compunere */
.composer { background: linear-gradient(to top, var(--ivory) 70%, transparent); }
.composer-row { background: #fff; border-color: var(--line); }
.composer-row:focus-within { border-color: var(--blush-deep); box-shadow: 0 0 0 3px rgba(184, 67, 111, 0.12), var(--shadow-card); }
.send { background: var(--rose-grad); color: #2e0b1e; }
.send:hover:not(:disabled) { background: linear-gradient(135deg, #3e1229, #6a2346); color: #fff; }
.send:disabled { background: var(--blush); color: var(--ink-faint); }
.attach-preview .remove { background: var(--ink); color: #fff; }
.fineprint a { color: var(--red-deep); }

/* sertar */
.drawer { background: #fff; }
.drawer-new { background: var(--blush); border-color: var(--blush-deep); color: var(--ink); }
.drawer-title { color: var(--ink); }
.switch input { accent-color: var(--red); }
.danger { color: var(--red-deep); }

/* skilluri: paletă, ingrediente, siguranță */
.palette-card, .ingredients-card {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 16px 16px 14px; box-shadow: var(--shadow-card);
}
.card-kicker { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.palette-card h3, .ingredients-card h3 { font: 400 1.25rem/1.2 var(--serif); margin: 4px 0 10px; }
.card-sub { margin: 10px 0 6px; font-size: 0.78rem; color: var(--ink-soft); }
.card-note { margin: 10px 0 0; font-size: 0.74rem; color: var(--ink-faint); }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 8px; }
.swatch { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.swatch-dot { width: 46px; height: 46px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(58, 20, 40, 0.15), 0 6px 14px -8px rgba(58, 20, 40, 0.5); }
.swatches.avoid .swatch-dot { position: relative; opacity: 0.75; }
.swatches.avoid .swatch-dot::after { content: ''; position: absolute; inset: 50% -4px auto; height: 2px; background: var(--ink); transform: rotate(-35deg); }
.swatch-name { font-size: 0.74rem; color: var(--ink); line-height: 1.2; }
.swatch-use { font-size: 0.66rem; color: var(--ink-faint); }
.ingredients-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ingredients-card li { font-size: 0.86rem; padding: 6px 10px; border-radius: 10px; background: var(--ivory); }
.ingredients-card li.flag { border-left: 3px solid var(--red); }
.ingredients-card li.free { border-left: 3px solid #6aa880; }
.ingredients-card li.ok, .ingredients-card li.info { color: var(--ink-soft); }
.safety-card { border-radius: 16px; padding: 12px 14px; background: #fdf0f4; border: 1px solid #ebc6d1; }
.safety-card strong { display: block; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red-deep); }
.safety-card p { margin: 4px 0 0; font-size: 0.92rem; }
.safety-card.urgent { background: #fdecec; border-color: #e58b8b; }
.safety-card.urgent strong { color: #b42323; }
