/* Wirtualny Ksiądz Filip — motyw jasny (pergamin) i ciemny (nokturn),
   przełączany przez data-theme na <html>; rozmiar tekstu przez data-size */

:root {
  --bg: #f6f1e7;
  --bg-deep: #efe7d7;
  --pattern-ink: rgba(122, 31, 43, .045);
  --ink: #2e2418;
  --ink-soft: #6b5d4a;
  --accent: #7a1f2b;        /* bordo */
  --accent-2: #5c1620;
  --gold: #b98a2e;
  --gold-soft: #e0d3b8;
  --card: #fffdf8;
  --card-border: #eadfc8;
  --input-border: #ddd0b4;
  --user-bubble: #7a1f2b;
  --user-ink: #fdf6ec;
  --chip-bg: #efe7d7;
  --chip-ink: #7c5a17;
  --error-bg: #fbeaea;
  --error-border: #eac6c6;
  --error-ink: #7a1f1f;
  --ok-bg: #e9f3e6;
  --ok-border: #c4dcbc;
  --ok-ink: #2d5c25;
  --header-bg: rgba(255, 253, 248, .82);
  --header-border: #e2d7c2;
  --glow: radial-gradient(1200px 500px at 50% -100px, #fdf8ee 0%, var(--bg) 60%);
  --radius: 18px;
  --shadow: 0 2px 14px rgba(60, 40, 10, .10);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Source Sans 3", system-ui, sans-serif;
  --fs: 15.5px;             /* bazowy rozmiar tekstu rozmowy */
}

:root[data-size="lg"] { --fs: 17.5px; }
:root[data-size="xl"] { --fs: 20px; }

:root[data-theme="dark"] {
  --bg: #201a12;
  --bg-deep: #2a231a;
  --pattern-ink: rgba(224, 197, 137, .05);
  --ink: #ede3cf;
  --ink-soft: #b3a48b;
  --accent: #9c3a46;
  --accent-2: #6e222c;
  --gold: #d3a84c;
  --gold-soft: #4a3e2b;
  --card: #2b241b;
  --card-border: #3d3425;
  --input-border: #4a3e2b;
  --user-bubble: #8a2d38;
  --user-ink: #fdf6ec;
  --chip-bg: #3a3122;
  --chip-ink: #d3a84c;
  --error-bg: #3a2323;
  --error-border: #5c3535;
  --error-ink: #eec6c6;
  --ok-bg: #23301f;
  --ok-border: #3c5434;
  --ok-ink: #b9d8ae;
  --header-bg: rgba(32, 26, 18, .85);
  --header-border: #3d3425;
  --glow: radial-gradient(1200px 500px at 50% -100px, #2a2318 0%, var(--bg) 60%);
  --shadow: 0 2px 14px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body { margin: 0; height: 100%; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath d='M28 22v12M22 28h12' stroke='%23000' stroke-opacity='.06' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E"),
    var(--glow), var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  transition: background-color .3s ease, color .3s ease;
}

:root[data-theme="dark"] body {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath d='M28 22v12M22 28h12' stroke='%23e0c589' stroke-opacity='.05' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E"),
    var(--glow), var(--bg);
}

:where(button, a, input, textarea):focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- nagłówek ---------- */
.site-header {
  border-bottom: 1px solid var(--header-border);
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

/* złota linia ozdobna pod nagłówkiem */
.site-header::after {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--accent) 50%, var(--gold) 80%, transparent);
  opacity: .55;
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; color: inherit; text-decoration: none; }

a.brand:hover .brand-text h1 { color: var(--accent); }
:root[data-theme="dark"] a.brand:hover .brand-text h1 { color: var(--gold); }

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex: none;
  box-shadow: var(--shadow);
  display: block;
}

.brand-text { min-width: 0; }

.brand-text h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.05;
  margin: 0;
  letter-spacing: .4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-text p {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--ink-soft);
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-controls { display: flex; align-items: center; gap: 8px; flex: none; flex-wrap: wrap; justify-content: flex-end; }

.lang-switch {
  display: flex;
  border: 1px solid var(--input-border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--card);
}

.lang-btn {
  border: 0;
  background: transparent;
  padding: 8px 14px;
  font: 600 13px var(--sans);
  color: var(--ink-soft);
  cursor: pointer;
}

.lang-btn.active { background: var(--accent); color: var(--user-ink); }

.icon-btn {
  border: 1px solid var(--input-border);
  background: var(--card);
  color: var(--ink-soft);
  min-width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  display: grid;
  place-items: center;
  line-height: 1;
  padding: 0 6px;
}

.icon-btn .font-plus { font-size: 11px; vertical-align: super; }

.account-btn {
  border: 1px solid var(--accent);
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  color: var(--user-ink);
  border-radius: 999px;
  padding: 9px 16px;
  font: 600 13.5px var(--sans);
  cursor: pointer;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-btn.logged {
  background: var(--card);
  color: var(--ink-soft);
  border-color: var(--input-border);
}

.premium-btn {
  border: 1px solid var(--gold);
  background: linear-gradient(145deg, var(--gold), #9a6f1e);
  color: #fff8ea;
  border-radius: 999px;
  padding: 9px 16px;
  font: 700 13.5px var(--sans);
  cursor: pointer;
  white-space: nowrap;
}

.premium-btn:hover { filter: brightness(1.08); }

/* hamburger — widoczny tylko na wąskich ekranach */
.menu-btn { display: none; font-size: 20px; }

@media (max-width: 719px) {
  .menu-btn { display: grid; }
  .header-controls { display: none; }
  .site-header.menu-open .header-controls {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    right: 10px;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .25);
    padding: 12px;
    gap: 10px;
    min-width: 210px;
    z-index: 30;
  }
  .site-header.menu-open .lang-switch { justify-content: center; }
  .site-header.menu-open .icon-btn { width: 100%; border-radius: 10px; height: 42px; }
  .site-header.menu-open .account-btn,
  .site-header.menu-open .premium-btn { max-width: none; text-align: center; padding: 11px 16px; }
}

/* ---------- czat ---------- */
.chat-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 12px calc(12px + env(safe-area-inset-bottom));
}

.chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  padding: 4px 4px 12px;
}

.bot-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  max-width: 86%;
  align-self: flex-start;
}

.bot-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex: none;
  box-shadow: var(--shadow);
}

.msg {
  padding: 12px 16px;
  border-radius: var(--radius);
  line-height: 1.55;
  font-size: var(--fs);
  white-space: pre-wrap;
  overflow-wrap: break-word;
  animation: rise .25s ease;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

.msg.user {
  align-self: flex-end;
  max-width: 86%;
  background: linear-gradient(150deg, var(--user-bubble), var(--accent-2));
  color: var(--user-ink);
  border-bottom-right-radius: 6px;
}

.msg.bot {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-bottom-left-radius: 6px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.msg.bot .bot-name {
  display: block;
  font-family: var(--serif);
  font-weight: 700;
  font-size: calc(var(--fs) - .5px);
  color: var(--accent);
  margin-bottom: 4px;
}

:root[data-theme="dark"] .msg.bot .bot-name { color: var(--gold); }

.msg.bot .citations {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--gold-soft);
  font-size: 12.5px;
  color: var(--ink-soft);
}

.msg.bot .citations span,
.msg.bot .citations .citation-chip {
  display: inline-block;
  background: var(--chip-bg);
  border: 1px solid var(--gold-soft);
  border-radius: 999px;
  padding: 4px 12px;
  margin: 2px 4px 2px 0;
  color: var(--chip-ink);
  font-weight: 600;
  font-size: 12.5px;
  font-family: var(--sans);
}

.msg.bot .citations .citation-chip {
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: transform .12s ease, background .12s ease;
}

.msg.bot .citations .citation-chip:hover {
  background: var(--gold-soft);
  transform: translateY(-1px);
}

.msg.error {
  align-self: center;
  max-width: 86%;
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  color: var(--error-ink);
  font-size: calc(var(--fs) - 1.5px);
}

/* wskaźnik oczekiwania: Filip „myśli na głos" */
.typing {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 13px 17px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  border-bottom-left-radius: 6px;
  box-shadow: var(--shadow);
}

.typing-avatar { animation: breathe 2.6s ease-in-out infinite; }

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.07); }
}

.typing-text {
  font-size: calc(var(--fs) - 1px);
  font-style: italic;
  color: var(--ink-soft);
  transition: opacity .25s ease;
}

.typing-text.fade-out { opacity: 0; }

.typing-dots { display: inline-flex; gap: 5px; }

.typing-dots i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  animation: blink 1.2s infinite;
}
.typing-dots i:nth-child(2) { animation-delay: .2s; }
.typing-dots i:nth-child(3) { animation-delay: .4s; }

@keyframes blink {
  0%, 70%, 100% { opacity: .25; }
  35% { opacity: 1; }
}

/* ---------- formularz pytania ---------- */
.ask-form {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--input-border);
  border-radius: 24px;
  padding: 8px 8px 8px 18px;
  box-shadow: var(--shadow);
}

#website { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

#question {
  flex: 1;
  border: 0;
  outline: none;
  resize: none;
  background: transparent;
  font: 400 var(--fs)/1.5 var(--sans);
  color: var(--ink);
  max-height: 130px;
  padding: 6px 0;
}

#question::placeholder { color: var(--ink-soft); opacity: .8; }

#send-btn {
  flex: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  color: #f4e3b8;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform .15s ease, opacity .15s ease;
}

#send-btn:hover { transform: scale(1.06); }
#send-btn:disabled { opacity: .45; cursor: default; transform: none; }

.under-form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.chat-tools { display: flex; gap: 2px 8px; flex-wrap: wrap; }

/* ---------- wyskakujące okno ze źródłem ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 20, 10, .55);
  backdrop-filter: blur(3px);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 50;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 75vh;
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
  padding: 22px 24px;
  animation: rise .2s ease;
}

.modal-card h3 {
  font-family: var(--serif);
  font-size: 23px;
  color: var(--accent);
  margin: 0 44px 10px 0;
}

:root[data-theme="dark"] .modal-card h3 { color: var(--gold); }

.modal-text {
  margin: 0;
  font-size: var(--fs);
  line-height: 1.65;
  white-space: pre-wrap;
}

.modal-note { margin: 12px 0 0; }
.muted { color: var(--ink-soft); font-size: calc(var(--fs) - 2px); }

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--input-border);
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink-soft);
  font-size: 17px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.modal-close:hover { color: var(--accent); border-color: var(--accent); }
:root[data-theme="dark"] .modal-close:hover { color: var(--gold); border-color: var(--gold); }

.disclaimer {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--ink-soft);
}

.text-btn {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font: 600 12.5px var(--sans);
  cursor: pointer;
  padding: 8px 6px;
  border-radius: 8px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-btn:hover { color: var(--accent); }
:root[data-theme="dark"] .text-btn:hover { color: var(--gold); }

/* ---------- panel konta ---------- */
.auth-wrap {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  padding: 28px 14px calc(24px + env(safe-area-inset-bottom));
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 24px;
  text-align: center;
  animation: rise .25s ease;
}

.auth-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  box-shadow: var(--shadow);
}

.auth-card h2 {
  font-family: var(--serif);
  font-size: 27px;
  margin: 10px 0 6px;
}

.auth-note {
  margin: 0 0 16px;
  font-size: calc(var(--fs) - 1px);
  color: var(--ink-soft);
  line-height: 1.5;
}

.auth-tabs {
  display: flex;
  border: 1px solid var(--input-border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 18px;
}

.auth-tab {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 11px 6px;
  font: 600 13.5px var(--sans);
  color: var(--ink-soft);
  cursor: pointer;
}

.auth-tab.active { background: var(--accent); color: var(--user-ink); }

.auth-form { display: flex; flex-direction: column; gap: 14px; text-align: left; }

.field { display: flex; flex-direction: column; gap: 5px; }

.field span { font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }

.field input {
  border: 1px solid var(--input-border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--fs) var(--sans);
  padding: 13px 14px;
  outline: none;
}

.field input:focus { border-color: var(--gold); }

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.45;
}

.check input { width: 20px; height: 20px; flex: none; margin-top: 1px; accent-color: var(--accent); }

.check a { color: var(--accent); }
:root[data-theme="dark"] .check a { color: var(--gold); }

.auth-error, .auth-ok {
  margin: 0;
  padding: 11px 13px;
  border-radius: 10px;
  font-size: 13.5px;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

.auth-error { background: var(--error-bg); border: 1px solid var(--error-border); color: var(--error-ink); }
.auth-ok { background: var(--ok-bg); border: 1px solid var(--ok-border); color: var(--ok-ink); }

.auth-submit {
  border: 0;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  color: var(--user-ink);
  font: 700 16px var(--sans);
  padding: 14px;
  cursor: pointer;
  transition: transform .15s ease;
}

.auth-submit:hover { transform: translateY(-1px); }

.auth-back { margin-top: 14px; }

/* ---------- Premium: plany ---------- */
.premium-card { max-width: 780px; }

.free-note { margin: 0 0 16px; }

.plan-features {
  list-style: none;
  padding: 0;
  margin: 4px 0 14px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.plan-features li {
  font-size: 13px;
  color: var(--ink-soft);
  padding-left: 20px;
  position: relative;
  line-height: 1.4;
}

.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

.currency-switch {
  display: inline-flex;
  border: 1px solid var(--input-border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg);
  margin-bottom: 16px;
}

.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

@media (max-width: 520px) { .plans { grid-template-columns: 1fr; } }

.plan {
  position: relative;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  background: var(--bg);
  padding: 18px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.plan-best { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }

.plan-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #fff8ea;
  font: 700 11.5px var(--sans);
  border-radius: 999px;
  padding: 3px 12px;
  white-space: nowrap;
}

.plan h3 { font-family: var(--serif); font-size: 21px; margin: 0; }

.plan-price { margin: 0; }
.plan-price b { font-size: 30px; color: var(--accent); }
:root[data-theme="dark"] .plan-price b { color: var(--gold); }
.plan-price span { color: var(--ink-soft); font-size: 13.5px; margin-left: 4px; }

.plan-alt { margin: 0 0 8px; font-size: 12.5px; color: var(--ink-soft); }

.plan .auth-submit { margin-top: auto; padding: 12px; font-size: 15px; }

.premium-legal { margin: 10px 0 0; }

/* ---------- stopka ---------- */
.site-footer {
  border-top: 1px solid var(--header-border);
  background: var(--header-bg);
  margin-top: auto;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 8px 22px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
}

:root[data-theme="dark"] .footer-links a { color: var(--gold); }
.footer-links a:hover { text-decoration: underline; }

.footer-company {
  margin: 0 0 3px;
  font-size: 12px;
  color: var(--ink-soft);
}

.footer-company a { color: inherit; }

.footer-note {
  margin: 0;
  font-size: 11.5px;
  color: var(--ink-soft);
  opacity: .8;
}

/* ---------- strony prawne ---------- */
.legal-wrap {
  flex: 1;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 22px 16px 40px;
}

.legal-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.legal-tab {
  border: 1px solid var(--input-border);
  background: var(--card);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 11px 18px;
  font: 600 14px var(--sans);
  cursor: pointer;
}

.legal-tab.active { background: var(--accent); border-color: var(--accent); color: var(--user-ink); }

.legal-section {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 26px 30px;
  line-height: 1.65;
  font-size: var(--fs);
}

.legal-section h2 {
  font-family: var(--serif);
  font-size: 29px;
  margin: 0 0 4px;
}

.legal-section h3 {
  font-family: var(--serif);
  font-size: 21px;
  margin: 22px 0 6px;
  color: var(--accent);
}

:root[data-theme="dark"] .legal-section h3 { color: var(--gold); }

.legal-section p, .legal-section li { color: var(--ink); }
.legal-section .muted { color: var(--ink-soft); font-size: calc(var(--fs) - 1.5px); }
.legal-section ul { padding-left: 22px; }
.legal-section a { color: var(--accent); }
:root[data-theme="dark"] .legal-section a { color: var(--gold); }

.badge-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.badge-list li {
  background: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 12px 14px;
}
.badge-list li strong { color: var(--accent); }
:root[data-theme="dark"] .badge-list li strong { color: var(--gold); }

.back-link { display: inline-block; margin-bottom: 16px; color: var(--accent); font-weight: 600; text-decoration: none; }
:root[data-theme="dark"] .back-link { color: var(--gold); }

/* ---------- ekrany: tablet i komputer ---------- */
@media (min-width: 720px) {
  .header-inner, .chat-wrap, .footer-inner { max-width: 1000px; }
  .msg { padding: 14px 18px; }
  .bot-row { max-width: 78%; }
  .msg.user { max-width: 78%; }
  .bot-avatar { width: 52px; height: 52px; }
}

@media (min-width: 1100px) {
  .header-inner, .chat-wrap, .footer-inner { max-width: 1080px; }
  .bot-row { max-width: 70%; gap: 14px; }
  .msg.user { max-width: 70%; }
  .chat { gap: 16px; }
  .bot-avatar { width: 68px; height: 68px; border: 2px solid var(--gold-soft); }
  .brand-mark { width: 58px; height: 58px; }
}

@media (max-width: 560px) {
  .brand-text h1 { font-size: 18px; }
  .brand-text p { display: none; }
  .brand-mark { width: 44px; height: 44px; }
  .bot-row { max-width: 94%; }
  .msg.user, .msg.error { max-width: 92%; }
  .bot-avatar { width: 32px; height: 32px; }
  .account-btn { max-width: 130px; padding: 9px 12px; }
  .legal-section { padding: 20px 16px 24px; }
}

/* ---------- pasek „potwierdź adres e-mail" ---------- */
.verify-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 12px;
  margin: 10px 0 2px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--chip-bg);
  border: 1px solid var(--gold-soft);
  color: var(--chip-ink);
  font-size: .93rem;
  text-align: center;
}
.verify-banner[hidden] { display: none !important; }
.verify-banner .text-btn {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
}
