/* Cardkeep web – tmavé téma (indigo + slonová kost + zlatá), mobile-first. */

:root {
  --bg: #14102a;
  --surface: #1d1433;
  --surface-2: #271d45;
  --surface-3: #31255a;
  --text: #f3e9c6;
  --muted: #bdb39c;
  --accent: #e8ba5c;
  --accent-bright: #ffd166;
  --accent-soft: rgba(232, 186, 92, 0.14);
  --danger: #ff8a80;
  --ok: #8fd694;
  --info: #8ec5fc;
  --border: rgba(243, 233, 198, 0.14);
  --radius: 12px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --nav-h: 64px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--accent-bright); }
a:hover { color: #fff1b8; }

h1, h2, h3 { margin: 0 0 0.5em; line-height: 1.25; font-weight: 700; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 0.75em; }

:focus-visible {
  outline: 3px solid rgba(255, 209, 102, 0.65);
  outline-offset: 2px;
}

.noscript {
  padding: 24px;
  text-align: center;
}

/* --- Hlavička a navigace --- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  /* Bez backdrop-filter: vytvořil by containing block a spodní lišta (.nav,
     position: fixed) by se přilepila k hlavičce místo ke spodku okna. */
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  color: var(--accent-bright);
  text-decoration: none;
}

.brand-icon { width: 26px; height: 26px; }

.nav {
  display: flex;
  gap: 2px;
  margin-left: auto;
}

.nav:empty { display: none; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}

.nav-link:hover { color: var(--text); background: rgba(243, 233, 198, 0.06); }
.nav-link.active { color: var(--accent-bright); background: var(--accent-soft); }
.nav-link .icon { width: 22px; height: 22px; }

.auth-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav:not(:empty) + .auth-links { margin-left: 0; }

.nick {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--muted);
}

.bell:hover, .bell.active { color: var(--accent-bright); background: var(--accent-soft); }
.bell .icon { width: 24px; height: 24px; }

.bell-badge {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent-bright);
  color: #1d1433;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
}

/* Telefon: spodní lišta s hlavními položkami. */
@media (max-width: 719px) {
  .nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    justify-content: space-around;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    background: var(--surface);
    border-top: 1px solid var(--border);
    z-index: 20;
  }
  .nav-link {
    flex: 1 1 0;
    flex-direction: column;
    gap: 2px;
    padding: 6px 4px;
    border-radius: 12px;
    font-size: 0.68rem;
    font-weight: 600;
  }
  .nav-link.secondary { display: none; }
  .nick { display: none; }
  body.logged-in main { padding-bottom: calc(var(--nav-h) + 24px); }
  body.logged-in .footer { padding-bottom: calc(var(--nav-h) + 16px); }
  body.logged-in .toasts { bottom: calc(var(--nav-h) + 12px); }
}

/* Širší obrazovky: ikony pryč, jen popisky; úzké desktopy skryjí druhotné položky. */
@media (min-width: 720px) {
  .nav-link .icon { display: none; }
}

@media (min-width: 720px) and (max-width: 1023px) {
  .nav-link.secondary { display: none; }
}

/* --- Rozvržení stránky --- */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px;
  flex: 1;
}

main:focus { outline: none; }

.footer {
  padding: 24px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

.footer p { margin: 0 0 4px; }
.footer-brand { color: var(--text); font-weight: 600; }

.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin: 4px 0 16px;
}

.page-head h1 { margin: 0; }
.page-head-stack { flex-direction: column; align-items: flex-start; gap: 4px; }
.page-head-stack p { margin: 0; }

.back-link { margin: 0 0 8px; }
.back-link a { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; }

.stack { display: flex; flex-direction: column; gap: 16px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}

.card > h2:first-child { display: flex; align-items: center; gap: 8px; }

.hint { color: var(--muted); font-size: 0.85rem; }
.lead { font-size: 1.15rem; font-weight: 500; }
.lead-sm { color: var(--muted); margin: 0; }
.summary { color: var(--muted); font-size: 0.9rem; margin: 0 0 12px; }
.pre { white-space: pre-wrap; word-break: break-word; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.8em; }
.count { color: var(--muted); font-weight: 400; }

/* --- Úvodní stránka --- */

.hero {
  padding: 32px 0 24px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.hero-title { font-size: 2.4rem; color: var(--accent-bright); margin-bottom: 8px; }
.hero-text { color: var(--muted); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 20px 0 32px;
}

.android-card { max-width: 640px; margin: 0 auto; }
.android-version { margin-bottom: 8px; }
.changelog { color: var(--muted); font-size: 0.9rem; }

/* --- Tlačítka --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 8px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #1d1433;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}

.btn:hover { background: var(--accent-bright); color: #1d1433; }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn .icon { width: 18px; height: 18px; }

.btn-outline { background: transparent; color: var(--accent-bright); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent-soft); color: var(--accent-bright); }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: rgba(243, 233, 198, 0.06); color: var(--text); }

.btn-danger { background: transparent; color: var(--danger); border-color: rgba(255, 138, 128, 0.5); }
.btn-danger:hover { background: rgba(255, 138, 128, 0.12); color: var(--danger); }

.btn-sm { min-height: 36px; padding: 4px 12px; font-size: 0.875rem; }
.btn-block { width: 100%; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.icon-btn:hover { background: rgba(243, 233, 198, 0.08); color: var(--text); }
.icon-btn .icon { width: 22px; height: 22px; }

.actions, .dialog-actions, .link-list, .inline-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.dialog-actions { margin: 12px 0 0; }
.actions .hint { flex-basis: 100%; margin: 0; }
.inline-actions { gap: 6px; }

/* --- Formuláře --- */

.form-card { max-width: 440px; margin: 0 auto; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 0.875rem; color: var(--muted); font-weight: 600; }
.field .hint { margin: 0; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }

input, select, textarea {
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  min-height: 44px;
  width: 100%;
}

textarea { resize: vertical; }

input[type="checkbox"], input[type="radio"] {
  width: 20px;
  height: 20px;
  min-height: 0;
  margin: 0;
  accent-color: var(--accent);
  flex: none;
}

input[type="file"] { padding: 8px; }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 186, 92, 0.25);
}

input:disabled { opacity: 0.5; }

input::placeholder, textarea::placeholder { color: rgba(189, 179, 156, 0.6); }

.input-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.input-qty { width: 84px; min-height: 38px; padding: 6px 8px; }

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  cursor: pointer;
}

.fieldset { border: 1px solid var(--border); border-radius: 10px; padding: 8px 14px 0; margin: 0 0 14px; }
.fieldset legend { color: var(--muted); font-size: 0.875rem; font-weight: 600; padding: 0 6px; }

.form-error { color: var(--danger); margin: 0 0 12px; font-weight: 500; }
.form-foot { margin: 16px 0 0; text-align: center; color: var(--muted); }

.inline-form { display: flex; align-items: flex-end; gap: 10px; }
.inline-form .field { flex: 1; margin: 0; }
.add-form { margin-bottom: 16px; }

.segmented {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.segmented button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  padding: 8px 16px;
  min-height: 42px;
  cursor: pointer;
}

.segmented button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-bright); }

/* --- Lišta nad mřížkou --- */

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.search-wrap {
  position: relative;
  flex: 1 1 220px;
}

.search-wrap .icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.search-wrap input { padding-left: 40px; }

.toolbar select { width: auto; min-width: 150px; }

.subnav {
  display: flex;
  gap: 4px;
  margin: 0 0 14px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.subnav a {
  padding: 8px 14px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.subnav a.active { color: var(--accent-bright); border-bottom-color: var(--accent-bright); }

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 16px 0;
}

.pager:empty { display: none; }
.pager-info { color: var(--muted); font-size: 0.9rem; }

/* --- Mřížka karet --- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 16px; }
}

.grid > .empty { grid-column: 1 / -1; }

.more { display: flex; margin: 16px auto; }

.tile {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.12s, border-color 0.12s;
}

.tile:hover, .tile:focus-visible { border-color: var(--accent); transform: translateY(-2px); }

.tile-img {
  position: relative;
  aspect-ratio: 63 / 88;
  background: var(--surface-2);
}

.tile-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tile-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 100%;
  padding: 10px;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  border: 2px dashed var(--border);
  border-radius: 8px;
  margin: 6px;
  height: calc(100% - 12px);
}

.tile-placeholder small { font-family: ui-monospace, Menlo, Consolas, monospace; opacity: 0.7; }
.tile-placeholder-lg { aspect-ratio: 63 / 88; }

.qty {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(20, 16, 42, 0.88);
  color: var(--accent-bright);
  font-size: 0.8rem;
  font-weight: 800;
}

.tile-body { display: flex; flex-direction: column; gap: 4px; padding: 8px 10px 10px; }

.tile-name {
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tile-set { color: var(--muted); font-size: 0.75rem; letter-spacing: 0.04em; }
.tile-price { color: var(--accent-bright); font-size: 0.85rem; font-weight: 600; }

.badges { display: flex; flex-wrap: wrap; gap: 4px; }

.badge {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.5;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge-foil { background: linear-gradient(90deg, #f6d365, #8ec5fc, #e0c3fc); color: #1d1433; border-color: transparent; font-weight: 800; }
.badge-etched { background: linear-gradient(90deg, #d9d3c3, #8a7f6a); color: #1d1433; border-color: transparent; font-weight: 800; }
.badge-deck { color: var(--accent-bright); border-color: rgba(232, 186, 92, 0.4); }
.badge-trade { color: var(--info); border-color: rgba(142, 197, 252, 0.4); }
.badge-admin { margin-left: 8px; color: var(--accent-bright); border-color: rgba(232, 186, 92, 0.4); vertical-align: middle; }
.badge-verified { color: var(--ok); border-color: rgba(143, 214, 148, 0.4); vertical-align: middle; }
.badge-unverified { color: var(--danger); border-color: rgba(255, 138, 128, 0.4); vertical-align: middle; }
.email-verify { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 8px; }
.email-verify .hint { margin: 0; }
.form-ok { color: var(--ok); margin: 0 0 12px; font-weight: 500; }
.admin-mail { margin-bottom: 24px; }
.admin-mail .card { max-width: 640px; }

/* --- Seznamy a řádky --- */

.list { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.list-compact { gap: 6px; }
.list-host { min-height: 80px; }

.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
}

.row-link { cursor: pointer; transition: border-color 0.12s; }
.row-link:hover, .row-link:focus-visible { border-color: var(--accent); color: inherit; }

.row-main { flex: 1 1 200px; min-width: 0; }
.row-title { font-weight: 600; }
.row-sub { color: var(--muted); font-size: 0.85rem; }
.row-desc { white-space: pre-wrap; }
.row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
.row-chevron { color: var(--muted); font-size: 1.4rem; line-height: 1; }

.code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  color: var(--accent-bright);
}

.invite-used .code, .invite-revoked .code, .invite-expired .code { color: var(--muted); text-decoration: line-through; }

.status { font-weight: 600; }
.status-active, .status-accepted, .status-completed { color: var(--ok); }
.status-used, .status-sold, .status-shipped { color: var(--info); }
.status-revoked, .status-expired, .status-cancelled, .status-declined { color: var(--danger); }
.status-pending, .status-countered, .status-reserved { color: var(--accent-bright); }

.friends-section { margin-bottom: 20px; }

/* Souhrn položky (náhled + text) v řádcích trhu a výběru. */
/* V řádku (flex-direction: row) se roztáhne; ve sloupci (.listing-main) má jen výšku obsahu. */
.item-summary { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 auto; }
.row > .item-summary { flex-basis: 220px; }
.item-thumb { flex: none; width: 52px; }
.item-thumb .tile-img { border-radius: 6px; overflow: hidden; }
.item-thumb .tile-placeholder { font-size: 0.55rem; margin: 2px; height: calc(100% - 4px); padding: 4px; }
.item-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }

.listing-main { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.listing-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; margin-left: auto; }
.listing-price { color: var(--accent-bright); font-weight: 700; }
.listing-side .row-actions { margin-left: 0; justify-content: flex-end; }

.row-offer.is-my-turn { border-color: rgba(232, 186, 92, 0.5); }
.my-turn { color: var(--accent-bright); font-size: 0.8rem; font-weight: 700; }

.row-notif { position: relative; padding-left: 28px; }
.row-notif .dot { position: absolute; left: 12px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: transparent; }
.row-notif.is-unread .dot { background: var(--accent-bright); }
.row-notif.is-unread .row-title { color: var(--accent-bright); }

.picker-results { max-height: 360px; overflow: auto; }
.picker-title { margin-top: 12px; }
.row-pick.is-chosen { opacity: 0.6; }
.picker-host { margin-bottom: 12px; }

.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.timeline li { padding: 10px 12px; border-left: 3px solid var(--border); background: var(--surface-2); border-radius: 0 10px 10px 0; }
.timeline li.mine { border-left-color: var(--accent); }
.timeline-head { margin-bottom: 2px; }
.timeline-msg { margin: 6px 0 0; color: var(--muted); }

.counter-form { margin-top: 12px; }

/* --- Vlastnosti (dl) --- */

.props {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 14px;
  margin: 0 0 12px;
}

.props dt { color: var(--muted); font-size: 0.85rem; }
.props dd { margin: 0; min-width: 0; word-break: break-word; }
.props-compact { gap: 2px 14px; }

/* --- Tabulky --- */

.table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 0.9rem; }
.table th, .table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table th { color: var(--muted); font-weight: 600; font-size: 0.8rem; }
.table tr.is-blocked td { opacity: 0.6; }

@media (max-width: 719px) {
  .table thead { display: none; }
  .table tr { display: block; padding: 8px 0; border-bottom: 1px solid var(--border); }
  .table td { display: flex; gap: 10px; border: 0; padding: 4px 0; }
  .table td::before { content: attr(data-label); flex: 0 0 96px; color: var(--muted); font-size: 0.8rem; }
}

.status-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-bottom: 24px; }
.stat-card .props { margin-bottom: 0; }

/* --- Dialogy --- */

dialog {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0;
  width: min(96vw, 720px);
  max-height: 92vh;
  overflow: auto;
  box-shadow: var(--shadow);
}

dialog.dialog-wide, dialog.card-dialog { width: min(96vw, 900px); }

dialog::backdrop { background: rgba(8, 5, 20, 0.75); backdrop-filter: blur(3px); }

.dialog-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 12px 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.dialog-title { flex: 1; margin: 0; font-size: 1.15rem; }
.dialog-content { padding: 16px 18px; }

.dialog-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 16px 18px;
}

.dialog-content > .dialog-body { padding: 0; }

@media (min-width: 640px) {
  .dialog-body { grid-template-columns: minmax(220px, 300px) 1fr; }
}

.dialog-img img { display: block; width: 100%; height: auto; aspect-ratio: 63 / 88; border-radius: 4.5% / 3.5%; background: var(--surface-2); }
.dialog-img .img-back { margin-top: 10px; }
.dialog-info { min-width: 0; }
.dialog-section { margin: 14px 0 6px; color: var(--accent-bright); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.dialog-section:first-child { margin-top: 0; }
.oracle { white-space: pre-wrap; color: var(--muted); font-size: 0.9rem; }

/* --- Stavy: načítání, prázdno, chyba --- */

.loading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 0;
  color: var(--muted);
}

.spinner {
  width: 22px;
  height: 22px;
  flex: none;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.empty {
  padding: 40px 16px;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: 14px;
  color: var(--muted);
}

.empty-title { font-weight: 700; color: var(--text); font-size: 1.05rem; margin-bottom: 4px; }
.empty-text { margin: 0; }

.error-box {
  padding: 14px 16px;
  border: 1px solid rgba(255, 138, 128, 0.5);
  border-radius: 12px;
  background: rgba(255, 138, 128, 0.08);
  color: var(--text);
}

.error-box p { margin: 0 0 10px; }

/* --- Oznámení (toasty) --- */

.toasts {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(92vw, 440px);
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--info);
  background: #2a2050;
  color: var(--text);
  box-shadow: var(--shadow);
  animation: toast-in 0.2s ease-out;
  cursor: pointer;
}

.toast-ok { border-left-color: var(--ok); }
.toast-error { border-left-color: var(--danger); }
.toast-out { opacity: 0; transition: opacity 0.2s; }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Zhodnocení od nákupu */
.gain-up { color: #7bd88f; font-weight: 600; }
.gain-down { color: #ff8a80; font-weight: 600; }


/* Hromadné akce nad nabídkami */
.bulk-bar { align-items: center; gap: 12px; flex-wrap: wrap; }
.bulk-bar .count { flex: 1; color: var(--muted); font-size: 0.9rem; }

/* Hledám (poptávky karet) */
.status-fulfilled { color: var(--ok); }

