:root {
  --bg: #f4f8fb;
  --surface: #ffffff;
  --ink: #102231;
  --muted: #566c7d;
  --primary: #195b87;
  --primary-dark: #0f3956;
  --primary-soft: #e6f1f8;
  --accent: #2980b9;
  --accent-soft: #e1effa;
  --ok: #20895e;
  --warn: #c98a12;
  --danger: #c0392b;
  --danger-soft: #fdecea;
  --border: #dbe7ef;
  --radius: 16px;
  --shadow: 0 8px 30px rgba(16, 34, 49, 0.08);
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}
a { color: var(--primary); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
.container { width: min(1100px, 92%); margin: 0 auto; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.center { text-align: center; }
.hidden { display: none !important; }

/* ---------- Butoane ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  border: 0; border-radius: 999px; padding: 0.8em 1.5em;
  font: inherit; font-weight: 700; cursor: pointer; text-decoration: none;
  transition: transform 0.1s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(31, 92, 102, 0.25); }
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover:not(:disabled) { filter: brightness(0.95); }
.btn-ghost { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-ghost:hover { background: var(--primary-soft); }
.btn-light { background: var(--primary-soft); color: var(--primary); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 0.45em 1em; font-size: 0.9rem; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; color: var(--primary); font: inherit; cursor: pointer; text-decoration: underline; padding: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding: 0.75em 0; gap: 1em; flex-wrap: wrap; }
.logo { font-weight: 800; font-size: 1.4rem; color: var(--primary); text-decoration: none; display: flex; align-items: center; gap: 0.45em; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 1.1rem; }
.nav { display: flex; gap: 0.9em; align-items: center; flex-wrap: wrap; }
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  padding: 0.35em 0.7em;
  border-radius: 999px;
  transition: all 0.15s ease;
  font-size: 0.95rem;
}
.nav a:hover { color: var(--primary); background: var(--primary-soft); }
.nav a.active { color: var(--primary-dark); background: var(--primary-soft); box-shadow: inset 0 0 0 1.5px #b9d8f7; }
@media (max-width: 760px) {
  .site-header .container { justify-content: center; padding: 0.6em 0; }
  .nav { justify-content: center; gap: 0.45em; width: 100%; }
  .nav a { font-size: 0.85rem; padding: 0.3em 0.6em; }
}

/* ---------- Hero ---------- */
.hero { padding: 5em 0 4em; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3em; align-items: center; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; gap: 1em; flex-wrap: wrap; margin: 1.5em 0 1em; }
.hero-card { background: var(--surface); border-radius: 24px; padding: 2em; box-shadow: var(--shadow); }
.hero-card .bubble { margin-bottom: 0.8em; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding-top: 3em; } }

.status-pill {
  display: inline-flex; align-items: center; gap: 0.5em;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 0.35em 0.9em; font-weight: 700; font-size: 0.92rem;
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--warn); }
.dot.on { background: var(--ok); box-shadow: 0 0 0 4px rgba(46, 139, 87, 0.18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(46, 139, 87, 0.05); } }

/* ---------- Secțiuni ---------- */
section { padding: 4em 0; }
section.alt { background: var(--surface); }
.section-title { text-align: center; max-width: 40em; margin: 0 auto 2.5em; }
.section-title h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5em; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2em; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6em; }
section.alt .card { background: var(--bg); }
.card .icon { font-size: 2rem; margin-bottom: 0.3em; }
.step-num { width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 800; margin-bottom: 0.7em; }

/* ---------- Prețuri ---------- */
.price-card { display: flex; flex-direction: column; text-align: center; position: relative; }
.price-card.featured { border: 2px solid var(--primary); box-shadow: var(--shadow); }
.price-card .tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: 0.8rem; font-weight: 800; padding: 0.2em 0.9em; border-radius: 999px; white-space: nowrap; }
.price { font-size: 2.2rem; font-weight: 800; color: var(--primary); margin: 0.2em 0 0; }
.price small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.price-eur { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.8em; }
.price-card p { flex: 1; }

/* ---------- Sesiune suspendată ---------- */
.suspended-box { display: grid; grid-template-columns: 1fr auto; gap: 2em; align-items: center; background: linear-gradient(135deg, var(--accent-soft), #fff); border: 1px solid #f3d3c8; border-radius: 24px; padding: 2.2em; }
.counter { text-align: center; }
.counter .num { font-size: 3.4rem; font-weight: 800; color: var(--accent); line-height: 1; }
@media (max-width: 700px) { .suspended-box { grid-template-columns: 1fr; text-align: center; } }

/* ---------- Disclaimer ---------- */
.notice { background: var(--primary-soft); border-left: 5px solid var(--primary); border-radius: 12px; padding: 1.2em 1.4em; }
.notice.danger { background: var(--danger-soft); border-left-color: var(--danger); }
.notice.warn { background: #fff6e0; border-left-color: var(--warn); }

/* ---------- Footer și bara de urgență ---------- */
footer { padding: 3em 0 2em; color: var(--muted); font-size: 0.92rem; border-top: 1px solid var(--border); }
.emergency-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  background: var(--ink); color: #fff; font-size: 0.88rem;
  display: flex; justify-content: center; gap: 1.6em; flex-wrap: wrap; padding: 0.55em 1em;
}
.emergency-bar strong { color: #ffd5c8; }
.emergency-bar a { color: #fff; text-decoration: none; }

/* ---------- Fluxul aplicației (overlay) ---------- */
.app-overlay { position: fixed; inset: 0; z-index: 40; background: var(--bg); overflow-y: auto; padding-bottom: 70px; }
.app-top { display: flex; align-items: center; justify-content: space-between; padding: 1em 4%; border-bottom: 1px solid var(--border); background: var(--surface); position: sticky; top: 0; z-index: 2; }
.app-body { width: min(720px, 92%); margin: 2em auto; }
.panel { background: var(--surface); border-radius: 24px; padding: 2em; box-shadow: var(--shadow); }
.panel h2 { font-size: 1.6rem; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1em; margin-top: 1.2em; }
@media (max-width: 560px) { .choice-grid { grid-template-columns: 1fr; } }
.choice {
  text-align: left; background: var(--bg); border: 2px solid var(--border); border-radius: var(--radius);
  padding: 1.3em; cursor: pointer; font: inherit; color: inherit; transition: border-color 0.2s, transform 0.1s;
}
.choice:hover:not(:disabled) { border-color: var(--primary); }
.choice:disabled { opacity: 0.55; cursor: not-allowed; }
.choice .icon { font-size: 1.8rem; }
.choice strong { display: block; font-size: 1.1rem; margin: 0.2em 0; }

.code-box { font-family: ui-monospace, Consolas, monospace; font-size: 1.6rem; font-weight: 800; letter-spacing: 0.08em; background: var(--primary-soft); color: var(--primary-dark); border-radius: 12px; padding: 0.6em; text-align: center; margin: 0.5em 0; user-select: all; }
.nickname { font-weight: 800; color: var(--primary); }
input[type="text"], textarea, select {
  width: 100%; font: inherit; padding: 0.8em 1em; border: 2px solid var(--border); border-radius: 12px; background: #fff; color: var(--ink);
}
input[type="text"]:focus, textarea:focus, select:focus { outline: none; border-color: var(--primary); }
label { font-weight: 700; display: block; margin-bottom: 0.4em; }
.field { margin-bottom: 1em; }
.check { display: flex; gap: 0.6em; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 0.35em; }
.row { display: flex; gap: 0.8em; flex-wrap: wrap; align-items: center; }
.row.end { justify-content: flex-end; }
.spacer { height: 1em; }

.pay-option { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.sim-tag { font-size: 0.75rem; background: #fff6e0; color: #8a5d00; border-radius: 6px; padding: 0.1em 0.5em; font-weight: 700; }

/* ---------- Chat ---------- */
.chat { display: flex; flex-direction: column; height: calc(100vh - 190px); min-height: 420px; background: var(--surface); border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; }
.chat-head { padding: 1em 1.3em; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 1em; }
.chat-messages { flex: 1; overflow-y: auto; padding: 1.2em; display: flex; flex-direction: column; gap: 0.6em; background: #fbfaf8; }
.chat-input { display: flex; gap: 0.6em; padding: 0.8em; border-top: 1px solid var(--border); }
.chat-input textarea { resize: none; height: 52px; }
.bubble { max-width: 80%; padding: 0.7em 1em; border-radius: 18px; white-space: pre-wrap; word-wrap: break-word; }
.bubble .meta { display: block; font-size: 0.72rem; opacity: 0.7; margin-top: 0.2em; }
.bubble.me { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.bubble.them { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.bubble.system { align-self: center; background: transparent; color: var(--muted); font-size: 0.88rem; text-align: center; max-width: 92%; }
.bubble.expert { align-self: flex-start; background: #fff8e6; border: 1px solid #f0d9a0; border-bottom-left-radius: 4px; }
.bubble.expert .who { font-weight: 800; color: #8a5d00; font-size: 0.85rem; display: block; margin-bottom: 0.2em; }
.crisis-banner { background: var(--danger-soft); color: #7d1f15; border-bottom: 1px solid #f5c6c0; padding: 0.8em 1.2em; font-size: 0.95rem; }
.crisis-banner a { color: #7d1f15; font-weight: 800; }

/* ---------- Programare apel ---------- */
.days { display: flex; gap: 0.5em; overflow-x: auto; padding-bottom: 0.5em; }
.day-btn { flex: 0 0 auto; min-width: 74px; border: 2px solid var(--border); background: var(--bg); border-radius: 12px; padding: 0.5em; cursor: pointer; font: inherit; text-align: center; color: inherit; }
.day-btn.active { border-color: var(--primary); background: var(--primary-soft); }
.day-btn .d { font-weight: 800; font-size: 1.1rem; display: block; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 0.6em; margin-top: 1em; }
.slot { border: 2px solid var(--border); background: #fff; border-radius: 10px; padding: 0.6em; cursor: pointer; font: inherit; font-weight: 700; color: inherit; }
.slot:hover:not(:disabled) { border-color: var(--primary); }
.slot.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.slot:disabled { text-decoration: line-through; opacity: 0.45; cursor: not-allowed; }

.list-item { display: flex; justify-content: space-between; align-items: center; gap: 1em; padding: 0.8em 1em; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 0.6em; background: var(--bg); }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 70px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 0.7em 1.3em; border-radius: 999px; z-index: 100; font-weight: 600; box-shadow: var(--shadow); animation: fadein 0.2s; }
@keyframes fadein { from { opacity: 0; transform: translate(-50%, 10px); } }

/* ---------- Panou operator ---------- */
.op-layout { display: grid; grid-template-columns: 330px 1fr; height: calc(100vh - 62px - 46px); }
@media (max-width: 860px) { .op-layout { grid-template-columns: 1fr; height: auto; } }
.op-sidebar { border-right: 1px solid var(--border); background: var(--surface); overflow-y: auto; }
.op-main { overflow-y: auto; padding: 1.2em; }
.op-tabs { display: flex; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.op-tab { flex: 1; padding: 0.8em 0.4em; border: 0; background: none; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; font-size: 0.9rem; }
.op-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.conv-item { padding: 0.9em 1em; border-bottom: 1px solid var(--border); cursor: pointer; }
.conv-item:hover { background: var(--bg); }
.conv-item.active { background: var(--primary-soft); }
.conv-item.crisis { border-left: 5px solid var(--danger); }
.conv-item .top { display: flex; justify-content: space-between; gap: 0.5em; align-items: center; }
.conv-item .preview { color: var(--muted); font-size: 0.88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge { display: inline-block; font-size: 0.72rem; font-weight: 800; padding: 0.1em 0.55em; border-radius: 999px; background: var(--border); color: var(--ink); margin-left: 0.25em; white-space: nowrap; }
.badge.wait { background: #fff1cc; color: #8a5d00; }
.badge.active { background: #d8f0e2; color: #1d6b40; }
.badge.closed { background: #eee; color: #777; }
.badge.crisis { background: var(--danger); color: #fff; }
.badge.minor { background: #6c5ce7; color: #fff; }
.badge.count { background: var(--accent); color: #fff; }
.op-chat { height: calc(100vh - 62px - 46px - 2.4em); min-height: 480px; }
.quick-replies { display: flex; gap: 0.5em; flex-wrap: wrap; padding: 0.6em 0.8em 0; }
.stat { text-align: center; }
.stat .num { font-size: 2rem; font-weight: 800; color: var(--primary); }
.switch { display: inline-flex; align-items: center; gap: 0.6em; cursor: pointer; font-weight: 700; }
.switch input { display: none; }
.switch .track { width: 46px; height: 26px; border-radius: 999px; background: #ccc; position: relative; transition: background 0.2s; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left 0.2s; }
.switch input:checked + .track { background: var(--ok); }
.switch input:checked + .track::after { left: 23px; }
.empty { text-align: center; color: var(--muted); padding: 3em 1em; }

/* ---------- Imagini Brand & Iconițe UI (Fără fundal alb, 100% transparente) ---------- */
.logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  filter: drop-shadow(0 2px 5px rgba(25, 91, 135, 0.22));
}
.card-icon-img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  margin-bottom: 0.6em;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  filter: drop-shadow(0 3px 6px rgba(25, 91, 135, 0.16));
}
.hero-banner-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
  border: 1px solid var(--border);
}
.hero-banner-img { width: 100%; height: 220px; object-fit: cover; object-position: right center; display: block; }
.hero-banner-chat { padding: 1.4em 1.6em; background: var(--surface); }

/* ---------- Widget Live Chat Flotant (stil Tidio) ---------- */
.br-widget-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 0.7em;
}
.br-widget-greeting {
  background: var(--surface);
  color: var(--ink);
  padding: 0.75em 1.1em;
  border-radius: 18px 18px 4px 18px;
  box-shadow: 0 10px 28px rgba(16, 34, 49, 0.16);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  max-width: 250px;
  line-height: 1.35;
  cursor: pointer;
  position: relative;
}
.br-widget-greeting-close {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.75rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.br-widget-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(145deg, #0d263b, #195b87);
  color: #fff;
  box-shadow: 0 10px 26px rgba(25, 91, 135, 0.38);
  cursor: pointer;
  display: grid;
  place-items: center;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.br-widget-btn:hover { transform: scale(1.06); box-shadow: 0 14px 32px rgba(25, 91, 135, 0.48); }
.br-widget-btn img { width: 44px; height: 44px; object-fit: contain; background: transparent; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25)); }
.br-widget-online-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--ok);
  border: 2.5px solid #fff;
}
.br-widget-unread {
  position: absolute;
  top: -4px;
  left: -4px;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border: 2px solid #fff;
}

.br-chat-drawer {
  position: fixed;
  right: 24px;
  bottom: 100px;
  width: min(395px, calc(100vw - 28px));
  height: min(580px, calc(100vh - 125px));
  background: var(--surface);
  border-radius: 22px;
  box-shadow: 0 18px 48px rgba(16, 34, 49, 0.24);
  border: 1px solid var(--border);
  z-index: 95;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: brSlideUp 0.22s ease;
}
@keyframes brSlideUp {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.br-drawer-head {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 0.95em 1.15em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7em;
}
.br-drawer-head-left { display: flex; align-items: center; gap: 0.7em; }
.br-drawer-head-left img { width: 40px; height: 40px; object-fit: contain; background: transparent; padding: 0; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25)); }
.br-drawer-title { font-weight: 800; font-size: 1rem; line-height: 1.2; }
.br-drawer-sub { font-size: 0.78rem; opacity: 0.88; display: flex; align-items: center; gap: 0.4em; }
.br-timer-pill {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  border-radius: 999px;
  padding: 0.2em 0.65em;
  font-size: 0.78rem;
  font-weight: 800;
  font-family: ui-monospace, Consolas, monospace;
  white-space: nowrap;
}
.br-drawer-bar {
  background: var(--primary-soft);
  padding: 0.45em 0.9em;
  font-size: 0.76rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 0.35em;
}
.br-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1em;
  background: #f9fbfd;
  display: flex;
  flex-direction: column;
  gap: 0.55em;
}
.br-drawer-foot {
  padding: 0.65em;
  border-top: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  gap: 0.5em;
  align-items: center;
}
.br-drawer-foot input {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 0.65em 1em;
  font: inherit;
  font-size: 0.92rem;
}
.br-drawer-foot input:focus { outline: none; border-color: var(--primary); }
.br-send-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1rem;
}

/* ---------- Bife Citit / Trimis & Indicator "Scrie acum..." ---------- */
.msg-read-status {
  display: inline-flex;
  align-items: center;
  gap: 0.2em;
  margin-left: 0.35em;
  font-weight: 700;
}
.msg-read-status.read {
  color: #7ef4ff;
}
.bubble.them .msg-read-status.read {
  color: var(--primary);
}
.typing-pill {
  align-self: flex-start;
  background: #eef5fb;
  color: var(--primary-dark);
  border: 1px solid var(--border);
  border-radius: 16px 16px 16px 4px;
  padding: 0.45em 0.9em;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  animation: brFadeIn 0.2s ease;
}
.typing-dots {
  display: inline-flex;
  gap: 3px;
  align-items: center;
}
.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: brBounce 1.2s infinite ease-in-out;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes brBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.45; }
  40% { transform: translateY(-4px); opacity: 1; }
}
@keyframes brFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Etichete de stare la intrarea în chat (Mood Tags) ---------- */
.br-mood-box {
  background: #f0f6fc;
  border: 1px dashed var(--border);
  border-radius: 14px;
  padding: 0.7em 0.8em;
  margin-top: 0.25em;
}
.br-mood-title {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 0.45em;
}
.br-mood-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38em;
}
.br-mood-pill {
  background: #fff;
  color: var(--primary-dark);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.34em 0.72em;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}
.br-mood-pill:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* ---------- Buton Microfon Vertical & Bară Înregistrare Vocală cu Pauză ---------- */
.br-mic-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid #cbe0f5;
  background: linear-gradient(145deg, #f0f7ff 0%, #e1effe 100%);
  color: var(--primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(26, 95, 156, 0.1);
  padding: 0;
}
.br-mic-circle:hover {
  background: linear-gradient(145deg, #e0f0ff 0%, #cce4fd 100%);
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(26, 95, 156, 0.18);
}
.br-mic-circle svg {
  width: 20px;
  height: 20px;
  display: block;
}

.br-voice-rec-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45em;
  width: 100%;
  background: #f0f7ff;
  border: 1.5px solid #b9d8f7;
  border-radius: 999px;
  padding: 0.3em 0.45em 0.3em 0.6em;
  animation: brFadeIn 0.18s ease;
}
.br-voice-rec-bar.paused {
  background: #fffbeb;
  border-color: #fde68a;
}
.br-rec-status {
  display: flex;
  align-items: center;
  gap: 0.45em;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--primary-dark);
  min-width: 0;
  flex: 1;
}
.br-rec-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #dc2626;
  flex-shrink: 0;
  animation: brBlinkDot 1s infinite ease-in-out;
}
.br-voice-rec-bar.paused .br-rec-dot {
  background: #d97706;
  animation: none;
}
@keyframes brBlinkDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}
.br-wave-bars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 16px;
}
.br-wave-bars span {
  width: 3px;
  height: 12px;
  border-radius: 99px;
  background: var(--primary);
  animation: brWaveAnim 0.9s infinite ease-in-out;
}
.br-wave-bars span:nth-child(2) { animation-delay: 0.15s; height: 16px; }
.br-wave-bars span:nth-child(3) { animation-delay: 0.3s; height: 10px; }
.br-wave-bars span:nth-child(4) { animation-delay: 0.45s; height: 14px; }
.br-voice-rec-bar.paused .br-wave-bars span {
  animation: none;
  height: 4px;
  opacity: 0.45;
}
@keyframes brWaveAnim {
  0%, 100% { transform: scaleY(0.45); }
  50% { transform: scaleY(1); }
}
.br-rec-pause-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.28em;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--primary-dark);
  border-radius: 999px;
  padding: 0.32em 0.7em;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.br-rec-pause-btn:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.br-rec-cancel-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #fecaca;
  background: #fff5f5;
  color: #dc2626;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
  padding: 0;
}
.br-rec-cancel-btn:hover {
  background: #fee2e2;
}
.br-voice-audio {
  width: 215px;
  max-width: 100%;
  height: 34px;
  margin-top: 0.35em;
  border-radius: 999px;
  display: block;
}
.br-voice-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-weight: 700;
}
.br-voice-label svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* ---------- Pagini Dedicate (Page Hero, FAQ Accordion, Footer Nav) ---------- */
.page-hero {
  background: linear-gradient(135deg, #0f3956 0%, #195b87 60%, #1f78b4 100%);
  color: #fff;
  padding: 3.6em 0 3.2em;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin-bottom: 0.35em;
}
.page-hero p {
  font-size: 1.12rem;
  opacity: 0.92;
  max-width: 42em;
  margin: 0 auto;
}
.page-hero .badge-pill {
  display: inline-block;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  padding: 0.28em 0.85em;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 0.9em;
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.85em;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.1em 1.35em;
  box-shadow: var(--shadow);
}
.faq-item summary {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--primary-dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "＋";
  font-weight: 800;
  color: var(--primary);
  font-size: 1.2rem;
}
.faq-item[open] summary::after {
  content: "－";
}
.faq-item .faq-ans {
  margin-top: 0.75em;
  padding-top: 0.75em;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.2em;
  flex-wrap: wrap;
  margin: 0.7em 0;
}
.footer-links a {
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
}
.footer-links a:hover {
  text-decoration: underline;
}




