:root {
  --header-bg-1: #60224D;
  --chat-bg: #FFF9F3;
  --bubble-bot: #ffffff;
  --bubble-user: #d9fdd3;
  --text-dark: #2a1626;
  --text-muted: #766d75;
  --accent-orange: #ff7a3d;
  --accent-orange-2: #ff3d5a;
  --avatar-bg: #e8823c;
  --online-dot: #35d16b;
  --radius-bubble: 18px;
  --font-display: "Baloo 2", "Poppins", system-ui, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --visual-top: 0px;
  --visual-height: 100dvh;
  --stable-viewport-height: 100dvh;
  --stable-viewport-bottom: 100dvh;
  --keyboard-bottom: 0px;
  /* Výchozí hodnoty musí sedět na skutečné rozměry (padding + obsah headeru
     a composeru), jinak layout po startu skočí, než je app.js přeměří. */
  --header-height: calc(58px + max(14px, env(safe-area-inset-top)));
  --composer-height: calc(44px + max(6px, env(safe-area-inset-bottom)));
  --composer-bottom-offset: 0px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
  touch-action: manipulation;
}

body,
body * {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

input,
textarea,
select {
  -webkit-user-select: text;
  user-select: text;
}

img,
a {
  -webkit-user-drag: none;
}

.adhs-container {
  font-family: var(--font-body);
}

/* ---------- ADD TO HOME SCREEN VENDOR MODAL OVERRIDE ---------- */
.adhs-container {
  height: 100dvh;
  color: var(--text-dark);
  background-color: rgba(96, 34, 77, 0);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.adhs-container.visible {
  background-color: rgba(96, 34, 77, .92);
}

.adhs-container .adhs-modal {
  top: 50%;
  width: min(382px, calc(100vw - 36px));
  max-width: none;
  max-height: calc(100dvh - 34px);
  overflow: visible;
  padding: 58px 16px 16px;
  border: 1px solid rgba(255, 255, 255, .68);
  border-radius: 24px;
  background: #FFF9F3;
  color: var(--text-dark);
  box-shadow: 0 26px 70px rgba(31, 10, 28, .42);
  line-height: 1.28;
}

.adhs-container .adhs-logo {
  top: -43px;
  width: 88px;
  height: 88px;
  padding: 5px;
  border-radius: 24px;
  background: #FFF9F3;
  box-shadow: 0 16px 32px rgba(31, 10, 28, .26);
}

.adhs-container .adhs-logo img {
  width: 78px;
  height: 78px;
  border-radius: 20px;
  display: block;
}

.adhs-container .adhs-modal .adhs-install-app,
.adhs-container.adhs-mobile .adhs-modal .adhs-install-app,
.adhs-container.adhs-desktop .adhs-modal .adhs-install-app {
  margin: 0;
  padding: 0;
  color: #60224D;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  line-height: .98;
  text-align: center;
}

.adhs-container .adhs-modal .adhs-app-name,
.adhs-container.adhs-mobile .adhs-modal .adhs-app-name,
.adhs-container.adhs-desktop .adhs-modal .adhs-app-name {
  margin: 3px auto 17px;
  color: #ff2b78;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.adhs-container .adhs-modal .adhs-app-url {
  margin: 8px 0 12px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(96, 34, 77, .08);
  color: rgba(42, 22, 38, .74);
  font-size: 15px;
  text-align: center;
  overflow-wrap: anywhere;
}

.adhs-container .adhs-modal .adhs-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.adhs-container .adhs-modal .adhs-list .adhs-list-item {
  align-items: flex-start;
  gap: 9px;
  margin: 0;
  padding: 9px 10px;
  border: 1px solid rgba(96, 34, 77, .08);
  border-radius: 16px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 1px 2px rgba(43, 10, 40, .05);
}

.adhs-container .adhs-modal .adhs-list .adhs-list-item .adhs-number-container,
.adhs-container.adhs-mobile .adhs-modal .adhs-list .adhs-list-item .adhs-number-container,
.adhs-container.adhs-desktop .adhs-modal .adhs-list .adhs-list-item .adhs-number-container {
  margin: 0;
  flex: 0 0 auto;
}

.adhs-container .adhs-modal .adhs-list .adhs-list-item .adhs-circle {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #60224D;
  box-shadow: 0 0 0 4px rgba(96, 34, 77, .08);
}

.adhs-container .adhs-modal .adhs-list .adhs-list-item .adhs-number {
  padding: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 28px;
  text-align: center;
}

.adhs-container .adhs-modal .adhs-list .adhs-list-item .adhs-instruction {
  min-width: 0;
  color: #3a2634;
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.35;
}

.adhs-container.adhs-mobile
  .adhs-modal
  .adhs-list
  .adhs-list-item
  .adhs-instruction:has(.adhs-list-button) {
  padding-top: 0;
}

.adhs-container .adhs-modal .adhs-list .adhs-list-item .adhs-list-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 1px 3px 1px 0;
  padding: 3px 8px;
  border: 1px solid rgba(96, 34, 77, .12);
  border-radius: 999px;
  background: #FFF9F3;
  color: #60224D;
  box-shadow: none;
  vertical-align: middle;
}

.adhs-container .adhs-modal .adhs-list .adhs-list-item .adhs-list-button .adhs-list-button-text {
  top: 0;
  color: inherit;
  font-size: 13px;
  font-weight: 800;
}

.adhs-container .adhs-modal .adhs-list .adhs-list-item .adhs-list-button .adhs-list-button-image-only,
.adhs-container .adhs-modal .adhs-list .adhs-list-item .adhs-list-button .adhs-list-button-image-left,
.adhs-container .adhs-modal .adhs-list .adhs-list-item .adhs-list-button .adhs-list-button-image-right {
  top: 0;
  max-height: 18px;
  margin: 0;
}

/* vendor :has() pravidlo vraci pilulku s ikonou na inline-block (baseline),
   ikona pak sedi vyse nez na stredu — vynutit flex centrovani */
.adhs-container .adhs-modal .adhs-list .adhs-list-item .adhs-list-button:has(.adhs-list-button-image-only) {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
}

.adhs-container .adhs-modal .adhs-list .adhs-list-item .adhs-list-button .adhs-list-button-image-only {
  display: block;
}

.adhs-container .adhs-modal .adhs-list .adhs-list-item .adhs-list-button img[src$="down-arrow.png"] {
  width: 16px;
  height: 16px;
  object-fit: contain;
  opacity: .72;
}

.adhs-container .adhs-modal .adhs-blurb,
.adhs-container.adhs-mobile .adhs-modal .adhs-blurb {
  display: none;
}

.adhs-container .adhs-modal .adhs-list .adhs-emphasis,
.adhs-container.adhs-inappbrowser-openinsystembrowser .adhs-modal .adhs-list .adhs-emphasis,
.adhs-container.adhs-inappbrowser-openinsafari .adhs-modal .adhs-list .adhs-emphasis {
  display: inline;
  width: auto;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #60224D;
  box-shadow: none;
  font-size: inherit;
  font-weight: 800;
  line-height: inherit;
}

.adhs-container .adhs-modal .adhs-button-container {
  gap: 8px;
  margin-top: 14px;
}

.adhs-container .adhs-modal .adhs-button {
  flex: 1 1 0;
  min-height: 46px;
  padding: 11px 12px;
  border: none;
  border-radius: 15px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
}

.adhs-container .adhs-modal .adhs-button-cancel {
  background: rgba(96, 34, 77, .08);
  color: #60224D;
}

.adhs-container .adhs-modal .adhs-button-install {
  background: #ff2b78;
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 43, 120, .28);
}

.adhs-container .adhs-bouncing-arrow {
  filter: drop-shadow(0 8px 14px rgba(31, 10, 28, .28));
}

[hidden] { display: none !important; }

html, body {
  height: 100vh;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--chat-bg);
  font-family: var(--font-body);
  -webkit-tap-highlight-color: transparent;
}

html.is-profile-open,
html.is-profile-open body {
  background: #f4f2f3;
}

.app {
  /* .app samo NIKDY nescrolluje — jediná scrollovací oblast v appce je .chat-body. */
  height: 100dvh;
  display: flex;
  flex-direction: column;
  max-width: 560px;
  margin: 0 auto;
  background: var(--chat-bg);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.install-gate {
  display: none;
}

html.requires-install,
html.requires-install body {
  background: #60224D;
}

html.requires-install .app {
  display: none;
}

html.requires-install .install-gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: clamp(44px, 6vh, 78px) 24px 0;
  background: #60224D;
  color-scheme: light;
}

html.requires-install .install-gate > * {
  flex-shrink: 0;
}

.install-gate__avatar {
  position: relative;
  width: clamp(96px, 25vw, 130px);
  height: clamp(96px, 25vw, 130px);
  margin: clamp(4px, 1vh, 12px) 0 clamp(28px, 4.2vh, 46px);
}

.install-gate__avatar img {
  width: 100%;
  height: 100%;
  border-radius: 0%;
  object-fit: cover;
  
}

.install-gate__hero {
  width: min(420px, 88vw);
  aspect-ratio: 1170 / 599;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 18px 44px rgba(31, 10, 28, .34);
  margin-bottom: 2em;
}

.install-gate__title {
  margin: 0 0 clamp(10px, 1.8vh, 18px);
  max-width: min(720px, 94vw);
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(42px, 11.4vw, 76px);
  font-weight: 800;
  line-height: .95;
  text-align: center;
  text-shadow: 0 4px 18px rgba(0, 0, 0, .28);
}

.install-gate__subtitle {
  margin: 0 0 clamp(22px, 3.6vh, 38px);
  max-width: min(400px, 80vw);
  color: rgba(255, 255, 255, 1);
  font-size: clamp(16px, 4.2vw, 19px);
  line-height: 1.45;
  text-align: center;
}

.install-gate__title span {
  display: block;
}

.install-gate__title-accent {
  color: #ff3d5a;
}

.install-gate__btn {
  border: none;
  border-radius: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3vw, 24px);
  background: linear-gradient(135deg, #44EA62 0%, #23D94D 52%, #14C93D 100%);
  color: #fff;
  width: min(620px, 86vw);
  min-height: clamp(60px, 8vh, 84px);
  padding: 15px clamp(20px, 5vw, 42px);
  font: inherit;
  font-size: clamp(21px, 4.4vw, 36px);
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 9px 0 rgba(9, 106, 36, .58), 0 22px 42px rgba(0, 0, 0, .28);
}

.install-gate__btn span {
  white-space: nowrap;
}

.install-gate__btn-icon {
  flex: 0 0 auto;
  width: clamp(28px, 5vw, 44px);
  height: clamp(28px, 5vw, 44px);
}

.install-gate__btn:active {
  transform: translateY(3px);
  box-shadow: 0 6px 0 rgba(9, 106, 36, .58), 0 16px 34px rgba(0, 0, 0, .26);
}

.install-gate__trust {
  margin-top: 14px;
  color: rgba(255, 255, 255, .72);
  font-size: 13.5px;
  line-height: 1.4;
  text-align: center;
  letter-spacing: .01em;
}

.install-gate__hint {
  width: min(540px, 86vw);
  margin-top: 22px;
  color: rgba(255, 255, 255, .86);
  font-size: 15px;
  line-height: 1.45;
  text-align: center;
}

.install-gate__hint b {
  color: #fff;
}

.install-gate__phone {
  width: min(620px, 88vw);
  max-width: none;
  margin-top: clamp(8px, 1.6vh, 18px);
  pointer-events: none;
}

.install-gate__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  text-align: center;
  margin: 0 0 clamp(26px, 4.4vh, 48px);
}

.install-gate__success-check {
  width: clamp(74px, 12vh, 96px);
  height: clamp(74px, 12vh, 96px);
  border-radius: 50%;
  background: #22c55e;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 32px rgba(10, 60, 30, .45);
  animation: install-gate-pop .45s cubic-bezier(.2, 1.4, .4, 1) both;
}

.install-gate__success-check svg {
  width: 52%;
  height: 52%;
  color: #fff;
}

.install-gate__success-title {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(30px, 7vw, 44px);
  font-weight: 800;
  line-height: 1;
}

.install-gate__success-text {
  margin-top: 10px;
  max-width: min(360px, 84vw);
  color: rgba(255, 255, 255, .9);
  font-size: 16px;
  line-height: 1.45;
}

@keyframes install-gate-pop {
  from { transform: scale(.35); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.install-gate__qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 0 0 clamp(24px, 4vh, 40px);
}

.install-gate__qr-box {
  width: min(230px, 56vw);
  aspect-ratio: 1;
  background: #fff;
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .3);
}

.install-gate__qr-box svg {
  display: block;
  width: 100%;
  height: 100%;
}

.install-gate__continue {
  margin-top: 5px;
  border: none;
  background: none;
  padding: 8px 12px;
  color: rgba(255, 255, 255, .72);
  font: inherit;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.install-gate__continue:hover {
  color: #fff;
}

.install-gate--desktop .install-gate__phone {
  display: none;
}

.install-gate--desktop .install-gate__btn {
  display: none;
}

.install-gate--desktop .install-gate__title-accent,
.install-gate--value .install-gate__title-accent {
  color: #23D94D;
}

.install-gate--success .install-gate__title,
.install-gate--success .install-gate__subtitle,
.install-gate--success .install-gate__trust {
  display: none;
}

/* ---------- HEADER ---------- */
.chat-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: max(14px, env(safe-area-inset-top)) 16px 14px;
  background: var(--header-bg-1);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
  z-index: 5;
}

.chat-header__identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.chat-header__identity:active { opacity: .8; }

.avatar {
  position: relative;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--avatar-bg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.chat-header__text { min-width: 0; }

.chat-header__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-header__status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: #C6AABD;
  margin-top: 1px;
}
.chat-header__status::before {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--status-dot, #f59e0b);
  box-shadow: 0 0 0 0 var(--status-dot, #f59e0b);
  animation: header-status-pulse 1.5s ease-out infinite;
}
.chat-header__status--online { --status-dot: #35d16b; }
.chat-header__status--connecting { --status-dot: #f59e0b; }
.chat-header__status--offline { --status-dot: #ef4444; }

@keyframes header-status-pulse {
  0% { transform: scale(.92); box-shadow: 0 0 0 0 var(--status-dot); }
  55% { transform: scale(1); box-shadow: 0 0 0 5px transparent; }
  100% { transform: scale(.92); box-shadow: 0 0 0 5px transparent; }
}

.chat-header__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.chat-header__icon-btn {
  position: relative;
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
}

.chat-header__icon-btn svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chat-header__icon-btn:active {
  transform: scale(.97);
}

.chat-header__badge {
  position: absolute;
  top: -3px;
  right: -5px;
  min-width: 17px;
  height: 17px;
  border: 2px solid var(--header-bg-1);
  border-radius: 999px;
  background: #16a34a;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.chat-header__install {
  flex: 0 0 auto;
  border: none;
  border-radius: 999px;
  background: #FFF9F3;
  color: #60224D;
  padding: 8px 12px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(31, 10, 28, .16);
}

.chat-header__install:active {
  transform: scale(.97);
}

/* ---------- CHAT BODY ---------- */
.chat-body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--chat-bg) url("assets/pattern2.png") center top / cover no-repeat;
}

.system-note {
  align-self: center;
  max-width: 84%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: #e3f6df;
  color: #3a3a3a;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  padding: 10px 16px;
  border-radius: 10px;
  margin: 0 0 14px;
  box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.system-note__btn {
  border: none;
  background: #fff;
  color: #2f8a3e;
  font-weight: 700;
  font-size: 12.5px;
  font-family: inherit;
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.system-note__btn:active { background: #f1f1f1; }

.row {
  display: flex;
  width: 100%;
  margin: 2px 0;
}
.row--bot { justify-content: flex-start; }
.row--user { justify-content: flex-end; }
.row--shareable {
  align-items: center;
  gap: 9px;
}

.discount-share {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #FDF6EC;
  border-radius: 50%;
  background: var(--bubble-bot);
  color: #5b5b5b;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.discount-share svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.discount-share:active {
  background: rgba(0, 0, 0, .04);
  transform: scale(.96);
}
.discount-share:focus-visible {
  outline: 3px solid rgba(96, 34, 77, .22);
  outline-offset: 2px;
}
html[data-theme="dark"] .discount-share {
  border-color: #070305;
  background: var(--bubble-bot);
  color: #d8d8d8;
}
html[data-theme="dark"] .discount-share:active {
  background: rgba(255, 255, 255, .08);
}

/* ---------- SDÍLENÍ SLEVY: vlastní slide-up dialog ---------- */
html.share-sheet-open,
html.share-sheet-open body {
  overflow: hidden;
  overscroll-behavior: none;
}

.share-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  background: rgba(18, 12, 17, 0);
  visibility: hidden;
  transition: background .25s ease, visibility .25s ease;
}

.share-sheet-backdrop--open {
  visibility: visible;
  background: rgba(18, 12, 17, .58);
}

.share-sheet {
  width: min(100%, 600px);
  max-height: min(92dvh, 900px);
  padding: 8px 20px calc(16px + env(safe-area-inset-bottom));
  overflow: auto;
  overscroll-behavior: contain;
  border-radius: 28px 28px 0 0;
  background: #fffdfa;
  color: #251c24;
  box-shadow: 0 -14px 48px rgba(40, 16, 34, .22);
  transform: translateY(102%);
  transition: transform .28s cubic-bezier(.22, .8, .25, 1);
  -webkit-overflow-scrolling: touch;
}

.share-sheet-backdrop--open .share-sheet {
  transform: translateY(0);
}

.share-sheet__handle {
  width: 48px;
  height: 5px;
  margin: 1px auto 3px;
  border-radius: 999px;
  background: #d8dbe3;
  touch-action: none;
  cursor: grab;
}

.share-sheet__header {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.share-sheet__title {
  margin: 0;
  text-align: center;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 800;
}

.share-sheet__preview-wrap {
  display: flex;
  justify-content: center;
  margin: 4px auto 18px;
}

.share-sheet__preview {
  width: min(100%, 430px, 52dvh);
  aspect-ratio: 1;
  display: block;
  object-fit: contain;
  border-radius: 18px;
  background: #16071d;
  box-shadow: 0 8px 26px rgba(37, 12, 31, .14);
}

.share-sheet__actions {
  display: grid;
  grid-template-columns: repeat(5, minmax(58px, 1fr));
  gap: 6px;
  padding: 2px 0 4px;
}

.share-sheet__action {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 4px 1px 6px;
  border: 0;
  background: transparent;
  color: #554b56;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.share-sheet__action-icon {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #702452;
  color: #fff;
  box-shadow: 0 4px 13px rgba(80, 27, 62, .17);
  transition: transform .15s ease, filter .15s ease;
}

.share-sheet__action:active .share-sheet__action-icon {
  transform: scale(.94);
  filter: brightness(.92);
}

.share-sheet__action:disabled {
  opacity: .6;
}

.share-sheet__action-icon img {
  width: 27px;
  height: 27px;
  display: block;
  filter: brightness(0) invert(1);
}

.share-sheet__action--whatsapp .share-sheet__action-icon {
  background: #20b85a;
}

.share-sheet__action--instagram .share-sheet__action-icon {
  background: linear-gradient(145deg, #6748d7 5%, #c52b94 48%, #f57a3a 100%);
}

.share-sheet__action--more .share-sheet__action-icon {
  background: #f1eef2;
  color: #302831;
  box-shadow: none;
}

.share-sheet__action--more .share-sheet__action-icon img {
  filter: none;
}

.share-sheet__action-label {
  max-width: 100%;
  min-height: 30px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 650;
  text-align: center;
  overflow-wrap: anywhere;
}

.share-sheet__status {
  min-height: 22px;
  padding-top: 3px;
  color: #6f3159;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 650;
  text-align: center;
}

.share-sheet__status--error {
  color: #b22d3d;
}

html[data-theme="dark"] .share-sheet-backdrop--open {
  background: rgba(0, 0, 0, .72);
}

html[data-theme="dark"] .share-sheet {
  background: #211820;
  color: #fff9fd;
  box-shadow: 0 -18px 52px rgba(0, 0, 0, .48);
}

html[data-theme="dark"] .share-sheet__handle {
  background: #655b65;
}

html[data-theme="dark"] .share-sheet__action--more .share-sheet__action-icon {
  background: #392e38;
  color: #f6eef4;
}

html[data-theme="dark"] .share-sheet__action {
  color: #d8ced7;
}

html[data-theme="dark"] .share-sheet__action--more .share-sheet__action-icon img {
  filter: brightness(0) invert(1);
}

html[data-theme="dark"] .share-sheet__preview {
  box-shadow: 0 10px 30px rgba(0, 0, 0, .38);
}

html[data-theme="dark"] .share-sheet__status {
  color: #f3a9d1;
}

html[data-theme="dark"] .share-sheet__status--error {
  color: #ff9ca9;
}

@media (max-width: 390px) {
  .share-sheet { padding-inline: 14px; }
  .share-sheet__actions { gap: 2px; }
  .share-sheet__action-icon { width: 50px; height: 50px; }
  .share-sheet__action-label { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .share-sheet-backdrop,
  .share-sheet,
  .share-sheet__action-icon {
    transition: none;
  }
}

.bubble {
  max-width: 78%;
  padding: 10px 13px;
  border-radius: var(--radius-bubble);
  font-size: 15px;
  line-height: 1.4;
  color: var(--text-dark);
  box-shadow: 0 1px 1px rgba(0,0,0,.04);
  white-space: pre-wrap;
  word-wrap: break-word;
}

.bubble code,
.buttons-block__body code,
.cta-block__body code,
.coupon-cards-block__intro code,
.coupon-card__text code,
.coupon-card__code code {
  display: inline-block;
  background: #eceff1;
  color: #3b4a54;
  padding: 1px 8px;
  border-radius: 8px;
  font: inherit;
  line-height: 1.2;
  white-space: nowrap;
}
.copyable-code {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  vertical-align: middle;
  white-space: nowrap;
  background: #eceff1;
  color: #3b4a54;
  padding: 1px 8px 1px 6px;
  border-radius: 8px;
  line-height: 1.2;
}
.copyable-code code {
  background: transparent;
  color: inherit;
  padding: 0;
  border-radius: 0;
  cursor: pointer;
}
.inline-code-copy {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: #5b6870;
  padding: 0;
  cursor: pointer;
  font: inherit;
}
.inline-code-copy:active,
.inline-code-copy--done {
  color: #23812d;
}
.inline-code-copy svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.row--bot .bubble {
  background: var(--bubble-bot);
  border-bottom-left-radius: 4px;
}
.row--user .bubble {
  background: var(--bubble-user);
  border-bottom-right-radius: 4px;
}

.bubble--image { padding: 4px; overflow: hidden; }
.bubble--image img {
  display: block;
  width: 100%;
  max-width: 260px;
  border-radius: 14px;
  cursor: zoom-in;
}
.bubble--image img:active { opacity: .92; }
.bubble--image .bubble__caption {
  padding: 8px 8px 4px;
  font-size: 14px;
}
.loyalty-card__media {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(0, 0, 0, .05);
}
.loyalty-card__media img {
  transition: opacity .2s ease, transform .28s ease;
}
.loyalty-card__media--loading img {
  opacity: .42;
  transform: scale(.985);
}
.loyalty-card__media--changed img {
  animation: loyalty-card-change .34s ease both;
}
.loyalty-card__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(42, 22, 38, .42);
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease;
}
.loyalty-card__media--loading .loyalty-card__overlay {
  opacity: 1;
}
.loyalty-card__overlay-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.loyalty-card__overlay-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: loyalty-card-spin .8s linear infinite;
}
.loyalty-card__overlay-icon svg.loyalty-card__sync-icon,
.loyalty-card__switch svg.loyalty-card__sync-icon {
  fill: currentColor;
  stroke: currentColor;
  stroke-width: .25px;
  stroke-linejoin: round;
  paint-order: stroke fill;
}
.cta-block__btn.loyalty-card__switch {
  width: calc(100% - 12px);
  margin: 10px 6px 6px;
  cursor: pointer;
  font-family: var(--font-body);
}
.loyalty-card__switch:disabled {
  cursor: default;
  opacity: .62;
}
.loyalty-card__switch[aria-busy="true"] .cta-block__btn-icon {
  animation: loyalty-card-spin .8s linear infinite;
}
@keyframes loyalty-card-spin {
  to { transform: rotate(360deg); }
}
@keyframes loyalty-card-change {
  0% { opacity: .35; transform: scale(.985); }
  100% { opacity: 1; transform: scale(1); }
}

.row--user,
.row--bot {
  position: relative;
}

.row--user.row--has-reaction,
.row--bot.row--has-reaction {
  margin-bottom: 13px;
}

/* reakce na zprávy Chrochtíka sedí u levého okraje bubliny */
.row--bot .reaction-chip {
  left: 6px;
  right: auto;
}

.reaction-chip {
  position: absolute;
  right: 6px;
  bottom: -13px;
  min-width: 29px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  background: #fff;
  border: 1px solid #FDF6EC;
  border-radius: 999px;
  padding: 0 5px;
  box-shadow: none;
}

.reaction-chip--pop {
  transform-origin: center;
  animation: reaction-pop 260ms cubic-bezier(.2, .9, .3, 1.25) both;
}

@keyframes reaction-pop {
  0% { opacity: .35; transform: scale(.55); }
  55% { opacity: 1; transform: scale(1.16); }
  78% { transform: scale(.94); }
  100% { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .reaction-chip--pop { animation: none; }
  .loyalty-card__media img { transition: none; }
  .loyalty-card__overlay-icon svg,
  .loyalty-card__switch[aria-busy="true"] .cta-block__btn-icon,
  .loyalty-card__media--changed img { animation: none; }
}

/* ---------- DLOUHÉ PODRŽENÍ ZPRÁVY: reakce + přeposlat ---------- */
/* dlouhé podržení nesmí spustit výběr textu ani iOS callout — kódy mají
   vlastní copy tlačítka, výběr textu v chatu nepotřebujeme */
.chat-body .row {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.msg-menu {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(42, 22, 38, .30);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.msg-menu[hidden] { display: none; }

.msg-menu__stack {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.msg-menu__reactions {
  display: inline-flex;
  gap: 2px;
  margin-bottom: 8px;
  padding: 4px 6px;
  background: #fff;
  border: 1px solid #FDF6EC;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(42, 22, 38, .25);
  transform-origin: bottom left;
  animation: msg-menu-pop 220ms cubic-bezier(.2, .9, .3, 1.2) both;
}

.msg-menu__reaction {
  border: none;
  background: transparent;
  font-size: 23px;
  line-height: 1;
  padding: 6px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform .12s ease;
  -webkit-tap-highlight-color: transparent;
}
.msg-menu__reaction:active { transform: scale(1.3) translateY(-2px); }

.msg-menu__clone {
  margin: 0;
  pointer-events: none;
  max-height: calc(100dvh - 170px);
  overflow: hidden;
  border-radius: var(--radius-bubble);
}
.msg-menu__clone .bubble,
.msg-menu__clone .cta-block,
.msg-menu__clone .coupon-cards-block {
  box-shadow: 0 12px 34px rgba(42, 22, 38, .30);
}

.msg-menu__forward {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 10px 16px;
  border: 1px solid #FDF6EC;
  border-radius: 999px;
  background: #fff;
  color: var(--text-dark);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(42, 22, 38, .25);
  cursor: pointer;
  transform-origin: top left;
  animation: msg-menu-pop 220ms cubic-bezier(.2, .9, .3, 1.2) both;
  -webkit-tap-highlight-color: transparent;
}
.msg-menu__forward[hidden] { display: none; }
.msg-menu__forward:active { transform: scale(.96); }
.msg-menu__forward svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

@keyframes msg-menu-pop {
  0% { opacity: 0; transform: scale(.6); }
  70% { opacity: 1; transform: scale(1.06); }
  100% { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .msg-menu__reactions,
  .msg-menu__forward { animation: none; }
}

/* Quick-reply buttons block (WhatsApp button message) */
.buttons-block {
  display: flex;
  flex-direction: column;
  background: var(--bubble-bot);
  border-radius: var(--radius-bubble);
  border-bottom-left-radius: 4px;
  overflow: hidden;
  max-width: 78%;
  box-shadow: 0 1px 1px rgba(0,0,0,.04);
}
.buttons-block__body {
  padding: 11px 14px 4px;
  font-size: 15px;
  line-height: 1.4;
  white-space: pre-wrap;
}
.buttons-block__body--vote-prompt {
  font-weight: 800;
}
.buttons-block__footer {
  padding: 0 14px 8px;
  font-size: 15px;
  color: var(--text-muted);
}
.buttons-block__btn {
  border: none;
  border-top: 1px solid rgba(0,0,0,.08);
  background: transparent;
  color: var(--accent-orange-2);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 14px;
  text-align: center;
  cursor: pointer;
  font-family: inherit;
}
.buttons-block__btn:active { background: rgba(0,0,0,.04); }
.buttons-block__btn:disabled { color: var(--text-muted); cursor: default; }
.buttons-block--quick {
  padding-bottom: 4px;
}
.buttons-block--quick .buttons-block__body {
  padding-bottom: 10px;
}
.buttons-block--quick .buttons-block__footer {
  padding-bottom: 10px;
}
.buttons-block__btn--quick {
  margin: 0 10px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(96, 34, 77, .18);
  border-radius: 9px;
  background: #fff;
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 800;
  min-height: 34px;
  padding: 7px 9px;
  text-align: center;
}
.buttons-block__btn--quick:active {
  background: rgba(96, 34, 77, .05);
}
.buttons-block__btn--quick:disabled {
  background: #fff;
  color: var(--text-muted);
  opacity: .7;
}
.buttons-block__btn--vote-yes {
  border-color: rgba(64, 190, 70, .42);
  background: #f2fff1;
  color: #2f7835;
}
.buttons-block__btn--vote-yes:active {
  background: #e6fbe4;
}
.buttons-block__btn--vote-yes:disabled {
  background: #eef8ec;
  color: #2f7835;
  opacity: 1;
}
.buttons-block__btn--vote-no {
  border-color: rgba(181, 43, 61, .34);
  background: #fff1f3;
  color: #b52b3d;
}
.buttons-block__btn--vote-no:active {
  background: #ffe2e8;
}
.buttons-block__btn-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}
.buttons-block__btn-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.buttons-block__btn-text {
  min-width: 0;
}

/* CTA link bubble */
.cta-block {
  display: flex;
  flex-direction: column;
  background: var(--bubble-bot);
  border-radius: var(--radius-bubble);
  border-bottom-left-radius: 4px;
  overflow: hidden;
  max-width: 78%;
  box-shadow: 0 1px 1px rgba(0,0,0,.04);
}
.cta-block__body {
  padding: 11px 14px;
  font-size: 15px;
  line-height: 1.4;
  white-space: pre-wrap;
}
.cta-block__btn {
  margin: 0 10px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  text-decoration: none;
  color: #23812d;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .2px;
  min-height: 34px;
  padding: 7px 9px;
  border: 1.5px solid rgba(64, 190, 70, .42);
  border-radius: 9px;
  background: #f2fff1;
  box-shadow: none;
}
.cta-block__btn:active {
  background: #e6fbe4;
}
.cta-block__btn--subscribed {
  background: #eef8ec;
  border-color: rgba(64, 190, 70, .32);
  color: #2f7835;
  cursor: pointer;
}
.cta-block__btn--subscribed:active {
  background: #e6fbe4;
}
.cta-block__btn[aria-disabled="true"] {
  background: #eef8ec;
  border-color: rgba(64, 190, 70, .32);
  color: #2f7835;
  cursor: default;
  pointer-events: none;
}
.cta-block__btn[aria-disabled="true"]:active {
  background: #eef8ec;
}
.cta-block__btn--copy-code {
  justify-content: center;
  text-align: center;
  border-radius: 9px;
  min-height: 34px;
  padding-top: 7px;
  padding-bottom: 7px;
}
.cta-block__btn--copy-code .cta-block__btn-icon {
  width: 17px;
  height: 17px;
  flex-basis: 17px;
}
.cta-block__actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 10px 10px;
}
.cta-block__actions .cta-block__btn {
  margin: 0;
}
.cta-block__btn-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cta-block__btn-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cta-block__btn-text {
  white-space: nowrap;
}

.coupon-cards-block {
  display: flex;
  flex-direction: column;
  max-width: 82%;
  background: var(--bubble-bot);
  border-radius: var(--radius-bubble);
  border-bottom-left-radius: 4px;
  padding: 11px 14px 12px;
  box-shadow: 0 1px 1px rgba(0,0,0,.04);
}
.coupon-cards-block__intro {
  padding: 0 0 2px;
  font-size: 15px;
  line-height: 1.4;
  white-space: pre-wrap;
}
.coupon-card {
  border-top: 1px solid rgba(0,0,0,.08);
  margin-top: 12px;
  padding-top: 12px;
}
.coupon-cards-block__intro + .coupon-card {
  border-top: 0;
}
.coupon-card__text {
  color: var(--text-dark);
  font-size: 15px;
  line-height: 1.4;
  white-space: pre-wrap;
}
.coupon-card__title {
  color: var(--text-dark);
  font-weight: 800;
  font-size: 15px;
  line-height: 1.25;
}
.coupon-card__code {
  margin-top: 6px;
  color: var(--text-dark);
  font-size: 14.5px;
}
.coupon-card__code code {
  display: inline-block;
  background: #eceff1;
  color: #3b4a54;
  padding: 1px 8px;
  border-radius: 8px;
  font: inherit;
  line-height: 1.2;
  white-space: nowrap;
}
.coupon-card__meta {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.35;
}
.coupon-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}
.coupon-card__copy,
.coupon-card__conditions {
  flex: 1 1 auto;
}
.coupon-card__copy {
  margin: 0;
  min-height: 34px;
  padding: 7px 9px;
  font-size: 14px;
  border-radius: 9px;
  gap: 7px;
}
.coupon-card__copy .cta-block__btn-icon {
  width: 17px;
  height: 17px;
  flex-basis: 17px;
}

/* Jednotny vzhled vsech zelenych chatovych akci. */
.buttons-block__btn--vote-yes,
.cta-block__btn,
.coupon-card__copy {
  min-height: 34px;
  padding: 7px 9px;
  border: 1.5px solid rgba(64, 190, 70, .42);
  border-radius: 9px;
  background: #f2fff1;
  color: #23812d;
  gap: 7px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .2px;
}
.buttons-block__btn--vote-yes .buttons-block__btn-icon,
.cta-block__btn .cta-block__btn-icon {
  width: 17px;
  height: 17px;
  flex-basis: 17px;
}
.coupon-card__conditions,
.cta-block__conditions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(96, 34, 77, .18);
  border-radius: 9px;
  background: #fff;
  color: var(--text-dark);
  padding: 7px 9px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  min-height: 34px;
}
.cond-btn__icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}
.cond-btn__icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.coupon-card__conditions:active,
.cta-block__conditions:active {
  background: rgba(96, 34, 77, .05);
}

/* Typing indicator */
.typing-bubble {
  background: var(--bubble-bot);
  border-radius: var(--radius-bubble);
  border-bottom-left-radius: 4px;
  padding: 12px 16px;
  display: inline-flex;
  gap: 4px;
  align-items: center;
  width: fit-content;
}
.typing-bubble span {
  width: 7px; height: 7px; border-radius: 50%;
  background: #c9c0c7;
  animation: bounce 1.1s infinite ease-in-out;
}
.typing-bubble span:nth-child(2) { animation-delay: .15s; }
.typing-bubble span:nth-child(3) { animation-delay: .3s; }
@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .5; }
  30% { transform: translateY(-5px); opacity: 1; }
}

.scroll-to-bottom {
  position: absolute;
  right: 16px;
  bottom: calc(var(--composer-height, 72px) + 12px);
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #fff;
  color: var(--text-dark);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
  font-size: 16px;
  z-index: 4;
}

/* ---------- COMPOSER ---------- */
.composer {
  flex: 0 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px max(6px, env(safe-area-inset-bottom));
  background: var(--chat-bg);
  box-shadow: none;
  z-index: 2;
}

.composer__add {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 0;
  border: none;
  background: transparent;
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  box-shadow: none;
}

.composer__add svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
}

.composer__add:active {
  transform: scale(.95);
}

.composer__input-wrap {
  flex: 1 1 auto;
  min-width: 0;
  height: 36px;
  position: relative;
  border-radius: 999px;
  background: #fff;
}

.composer__autocomplete {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  box-sizing: border-box;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 16px;
  color: #111;
  font-family: inherit;
  font-size: 16px;
  line-height: normal;
  white-space: pre;
  pointer-events: none;
  visibility: hidden;
}

.composer__input-wrap--suggesting .composer__autocomplete {
  visibility: visible;
}

.composer__autocomplete-suffix {
  color: #777;
}

.composer__input {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 36px;
  box-sizing: border-box;
  border: 1px solid #c5c5c5;
  outline: none;
  background: #fff;
  border-radius: 999px;
  padding: 0 16px;
  font-size: 16px;
  color: #111;
  font-family: inherit;
  box-shadow: none;
}
.composer__input-wrap--suggesting .composer__input {
  background: transparent;
  color: transparent;
  -webkit-text-fill-color: transparent;
  caret-color: #111;
}
.composer__input::placeholder { color: #a89fa6; }

.composer__send {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: #16ad62;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: none;
}
.composer__send svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.composer__send:active { transform: scale(.95); }

.keyboard-spacer {
  display: none;
}

/* ---------- BOTTOM SHEET (list messages) ---------- */
.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.4);
  /* nad fullscreen pohledy (profil 20, formulare 22-24), at jde sheet otevrit i z profilu */
  z-index: 27;
}
.sheet {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 10px 16px max(16px, env(safe-area-inset-bottom));
  z-index: 28;
  max-height: 70%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -6px 24px rgba(0,0,0,.2);
}
.sheet__handle {
  width: 40px; height: 4px;
  border-radius: 999px;
  background: rgba(0,0,0,.15);
  align-self: center;
  margin-bottom: 12px;
}
.sheet__title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 8px;
  color: var(--text-dark);
}
.sheet--centered-title .sheet__title { text-align: center; }
.sheet--vote-codes .sheet__title {
  text-align: center;
}
.sheet__rows {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.sheet__row {
  text-align: left;
  border: none;
  background: transparent;
  padding: 12px 4px;
  border-bottom: 1px solid rgba(0,0,0,.06);
  font-family: inherit;
  cursor: pointer;
}
.sheet__row-title { font-weight: 600; font-size: 14.5px; color: var(--text-dark); }
.sheet__row-desc { font-size: 15px; color: var(--text-muted); margin-top: 2px; }
.sheet__cancel {
  margin-top: 10px;
  border: none;
  background: rgba(0,0,0,.05);
  padding: 12px;
  border-radius: 12px;
  font-weight: 700;
  font-family: inherit;
  color: var(--text-dark);
  cursor: pointer;
}

@media (min-width: 561px) {
  .app { border-radius: 20px; margin: 16px auto; height: calc(100dvh - 32px); box-shadow: 0 10px 40px rgba(0,0,0,.15); }
}

/* ---------- COPY CONFIRM (potvrzení zkopírování) ---------- */
.copy-confirm-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .5);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.copy-confirm-overlay.show {
  opacity: 1;
  pointer-events: auto;
}
.copy-confirm-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 32px;
  border-radius: 20px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  box-shadow: 0 20px 60px rgba(16, 185, 129, .4);
  transform: scale(.8);
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
}
.copy-confirm-overlay.show .copy-confirm-box {
  transform: scale(1);
}
.checkmark-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  animation: copy-confirm-pulse .6s ease;
}
@keyframes copy-confirm-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}
.checkmark-icon {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}
.copy-confirm-overlay.show .checkmark-icon {
  animation: copy-confirm-draw .5s ease .1s forwards;
}
@keyframes copy-confirm-draw {
  to { stroke-dashoffset: 0; }
}
.confirm-text { font-size: 20px; font-weight: 800; letter-spacing: .3px; }
.confirm-subtext { font-size: 14px; font-weight: 600; opacity: .9; }

/* ---------- MODAL (potvrzení / hledání) ---------- */
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 30;
}
.modal {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(320px, calc(100% - 48px));
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  z-index: 31;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
}
.modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-dark);
  font: 300 28px/32px Arial, sans-serif;
  cursor: pointer;
}
.modal__close:active { background: rgba(0, 0, 0, .05); }
.modal__title {
  font-weight: 700;
  font-size: 16px;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.modal__message {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.4;
}
.modal__steps {
  margin: 0;
  padding-left: 22px;
  text-align: left;
  color: var(--text-dark);
  font-size: 14px;
  line-height: 1.5;
}
.modal__steps li:not(:last-child) { margin-bottom: 10px; }
.modal__steps b { color: var(--accent-orange-2); }
.modal__input {
  width: 100%;
  margin-top: 12px;
  border: none;
  outline: none;
  background: rgba(0,0,0,.05);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text-dark);
}
.modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}
.modal__btn {
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
}
.modal__btn--ghost { background: rgba(0,0,0,.05); color: var(--text-dark); }
.modal__btn--primary { background: var(--accent-orange-2); color: #fff; }

/* vycentrovaná varianta (info / podmínky) */
.modal--centered { text-align: center; }
.modal--centered .modal__actions { justify-content: center; }
.modal--centered .modal__btn--primary {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid rgba(64, 190, 70, .42);
  border-radius: 9px;
  background: #f2fff1;
  color: #23812d;
  font-weight: 800;
  letter-spacing: .2px;
}
.modal--centered .modal__btn--primary:active { background: #e6fbe4; }
.modal--info .modal__message {
  color: var(--text-muted);
  font-size: 15px;
}
.modal--profile-info {
  width: min(360px, calc(100% - 40px));
}
.modal--profile-info .modal__message {
  white-space: pre-line;
}
.modal--profile-info .modal__btn--primary {
  min-width: 96px;
}
.modal--conditions .modal__btn--primary {
  width: auto;
  min-width: 132px;
  padding: 10px 18px;
  border-color: rgba(224, 51, 78, .28);
  background: #fff0f3;
  color: #e0334e;
}
.modal--conditions .modal__btn--primary:active {
  background: #ffe1e7;
}

/* Detail kódu otevřený z tlačítka Info. */
.modal--discount-detail {
  width: min(320px, calc(100% - 40px));
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  text-align: center;
}
.modal--discount-detail .modal__title {
  min-height: 52px;
  margin: 0;
  padding: 16px 46px 11px;
  font-size: 16px;
  line-height: 22px;
}
.modal--discount-detail .modal__close {
  top: 9px;
  right: 10px;
  width: 30px;
  height: 30px;
  font-size: 24px;
  line-height: 28px;
}
.modal--discount-detail .modal__message {
  padding: 0 20px 13px;
}
.discount-detail__conditions {
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.45;
  text-align: center;
}
.discount-detail__code {
  display: flex;
  width: min(100%, 240px);
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 9px;
  font-family: inherit;
  margin: 0 auto 8px;
  background: #f0f2f3;
  color: #26333a;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .35px;
}
.discount-detail__copy {
  width: min(100%, 240px);
  margin: 0 auto;
}
.modal--discount-detail .modal__actions {
  justify-content: center;
  margin: 0;
  padding: 6px 16px 8px;
  border-top: 1px solid rgba(0, 0, 0, .08);
}
.modal--discount-detail .modal__btn--primary {
  width: auto;
  min-width: 90px;
  padding: 7px 14px;
  border: 0;
  background: transparent;
  color: #e0334e;
  font-size: 14px;
}
.modal--discount-detail .modal__btn--primary:active { background: rgba(224, 51, 78, .06); }

/* ---------- IMAGE LIGHTBOX ---------- */
.image-lightbox {
  position: absolute;
  inset: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: max(18px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom));
  background: rgba(0,0,0,.88);
}
.image-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 82%;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
}
.image-lightbox__caption {
  max-width: min(100%, 420px);
  color: #fff;
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
  white-space: pre-wrap;
}
.image-lightbox__close {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  color: #fff;
  font: inherit;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}
.image-lightbox__close:active {
  background: rgba(255,255,255,.26);
}

/* ---------- FORMULÁŘE PRO PŘIDÁNÍ KÓDU / KARTY ---------- */
.contrib-view {
  position: fixed;
  top: var(--visual-top, 0px);
  left: 0;
  right: 0;
  bottom: auto;
  height: var(--visual-height, 100dvh);
  min-height: 0;
  z-index: 22;
  background: #f4f2f3;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.32,.72,0,1);
  pointer-events: none;
}

/* Přidávací formulář zůstává při otevření klávesnice statický. Ostatní
   fullscreen přehledy mohou dál sledovat visualViewport. */
#contribView {
  top: 0;
  height: 100vh;
}

/* iOS lišta nad klávesnicí používá průhledný blur a jinak přes ni prosvítá
   chat ležící pod fullscreen formulářem. Tato vrstva jej během modálu zakryje. */
html.is-contrib-open .app::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 21;
  background: #f4f2f3;
  pointer-events: none;
}

.contrib-view--open {
  transform: translateX(0);
  pointer-events: auto;
}
.contrib-view__topbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: max(14px, env(safe-area-inset-top)) 8px 14px;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.contrib-view__back {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.contrib-view__back:active { background: rgba(0,0,0,.06); }
.contrib-view__topbar-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--text-dark);
}
.contrib-view__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding: 18px 16px max(48px, calc(env(safe-area-inset-bottom) + 28px));
}
.contrib-tabs {
  position: relative;
  isolation: isolate;
  width: min(100%, 460px);
  margin: 0 auto 12px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(96, 34, 77, .08);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.contrib-tabs::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 12px) / 2);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(43,10,40,.08);
  transform: translateX(0);
  transition: transform 240ms cubic-bezier(.22, 1, .36, 1);
  pointer-events: none;
}
.contrib-tabs--card-active::before {
  transform: translateX(calc(100% + 4px));
}
.contrib-tabs__btn {
  position: relative;
  z-index: 1;
  min-width: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  padding: 10px 12px;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  line-height: 1.1;
  cursor: pointer;
}
.contrib-tabs__btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 61, 90, .18);
}
.contrib-tabs__btn--active {
  background: transparent;
  color: var(--text-dark);
}
.contrib-tabs__btn:active {
  transform: scale(.99);
}
.contrib-tabs__icon {
  color: currentColor;
}
.contrib-form {
  width: min(100%, 460px);
  margin: 0 auto;
  padding: 18px 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(43,10,40,.06);
}
.contrib-form--enter-next {
  animation: contrib-form-enter-next 240ms cubic-bezier(.22, 1, .36, 1) both;
}
.contrib-form--enter-previous {
  animation: contrib-form-enter-previous 240ms cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes contrib-form-enter-next {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
@keyframes contrib-form-enter-previous {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}
.contrib-form h2 {
  margin: 0 0 16px;
  color: var(--text-dark);
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.1;
  text-align: center;
}
.contrib-form__intro {
  margin: -6px 0 16px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.45;
  text-align: center;
}
.contrib-form label,
.contrib-form__field {
  display: block;
  margin-bottom: 15px;
  color: var(--text-dark);
  font-size: 13.5px;
  font-weight: 700;
}
.contrib-form input:not([type="checkbox"]),
.contrib-form select {
  width: 100%;
  margin-top: 7px;
  padding: 12px 12px;
  border: 1.5px solid rgba(96, 34, 77, .16);
  border-radius: 12px;
  background: #fff;
  color: var(--text-dark);
  font: inherit;
  font-size: 15px;
}

.contrib-form input::placeholder {
  font-weight: 400;
}
.contrib-form select,
.contrib-form input[type="file"] {
  font-weight: 400;
}
.contrib-form select:invalid {
  color: var(--text-muted);
}
.contrib-form__file-field {
  color: var(--text-muted) !important;
  font-weight: 400 !important;
}
.contrib-form__file-title {
  display: block;
  color: var(--text-dark);
  font-weight: 700;
}
.contrib-form input[type="file"] {
  padding: 10px;
}
.contrib-form input:focus,
.contrib-form select:focus {
  outline: none;
  border-color: var(--accent-orange-2);
  box-shadow: 0 0 0 3px rgba(255, 61, 90, .12);
}
.contrib-form__discount-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  margin-top: 7px;
}
.contrib-form__discount-row > input[type="number"] {
  flex: 1 1 auto;
  min-width: 0;
  margin-top: 0;
}
.contrib-form__discount-row > select {
  flex: 0 0 86px;
  margin-top: 0;
}
.contrib-form__conditions-row > select {
  flex: 1 1 auto;
}
.contrib-form__min-wrap {
  flex: 0 0 112px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.contrib-form__min-wrap input {
  margin-top: 0 !important;
}
.contrib-form__min-wrap span {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 800;
}
.contrib-form__note-wrap {
  margin-top: 10px;
}
.contrib-form__note-label {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 700;
}
.contrib-form__help {
  margin: -8px 0 15px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.4;
}
.contrib-form__consent {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-muted) !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.45;
}
.contrib-form__consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #16a34a;
}
.contrib-form__link {
  display: inline;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-dark);
  font: inherit;
  font-weight: 400;
  text-decoration: underline;
  cursor: pointer;
}
.contrib-form__turnstile {
  min-height: 70px;
  margin: 8px 0 4px;
  display: flex;
  justify-content: center;
}
.contrib-form__status {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff0f3;
  color: #e0334e;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}
.contrib-form__status--ok {
  background: #e9fbe8;
  color: #23812d;
}
.contrib-form__status--neutral {
  background: #f4f2f3;
  color: var(--text-muted);
}
.contrib-form__submit {
  width: 100%;
  border: none;
  border-radius: 12px;
  background: #16a34a;
  color: #fff;
  padding: 13px 16px;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}
.contrib-form__submit {
  margin-top: 14px;
}
.contrib-form__submit:active {
  transform: scale(.99);
}
.contrib-form__submit:disabled {
  opacity: .62;
  cursor: not-allowed;
  transform: none;
}

.alerts-view {
  z-index: 23;
}

.alerts-panel {
  width: min(100%, 460px);
  margin: 0 auto;
  padding: 18px 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(43,10,40,.06);
}

.alerts-panel h2 {
  margin: 0 0 8px;
  color: var(--text-dark);
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.1;
  text-align: center;
}

.alerts-panel__intro {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.45;
  text-align: center;
}

.alerts-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.alerts-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 50px;
  padding: 10px 10px 10px 12px;
  border: 1px solid rgba(96, 34, 77, .10);
  border-radius: 10px;
  background: #fff;
}

.alerts-item__text {
  min-width: 0;
}

.alerts-item__name {
  color: var(--text-dark);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alerts-item__remove {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 7px 9px;
  border: 1.5px solid rgba(181, 43, 61, .34);
  border-radius: 9px;
  background: #fff1f3;
  color: #b52b3d;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .2px;
  cursor: pointer;
}

.alerts-item__remove:active {
  background: #ffe2e8;
  transform: scale(.98);
}

.alerts-item__remove:disabled {
  opacity: .62;
  cursor: default;
  transform: none;
}

.alerts-empty {
  padding: 18px 12px;
  border-radius: 10px;
  background: #f7f4f6;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.cards-view {
  z-index: 24;
}

.cards-panel {
  width: min(100%, 460px);
  margin: 0 auto;
  padding: 18px 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(43,10,40,.06);
}

.cards-panel h2 {
  margin: 0 0 8px;
  color: var(--text-dark);
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.1;
  text-align: center;
}

.cards-panel__intro {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.45;
  text-align: center;
}

.cards-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.user-card-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(96, 34, 77, .10);
  border-radius: 10px;
  background: #fff;
}

.user-card-item__image {
  width: 72px;
  aspect-ratio: 1;
  border-radius: 9px;
  overflow: hidden;
  background: #f7f4f6;
  border: 1px solid rgba(96, 34, 77, .08);
}

.user-card-item__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-card-item__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.user-card-item__top {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.user-card-item__title {
  min-width: 0;
  flex: 1 1 auto;
  color: var(--text-dark);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-card-item__status {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.user-card-item__status--pending {
  background: #fff8db;
  color: #8a6400;
}

.user-card-item__status--approved {
  background: #e9fbe8;
  color: #23812d;
}

.user-card-item__status--rejected {
  background: #fff0f3;
  color: #b52b3d;
}

.user-card-item__sub {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.user-card-item__actions {
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
}

.user-card-item__delete {
  border: none;
  border-radius: 8px;
  background: #fff0f3;
  color: #b52b3d;
  padding: 7px 10px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
}

.user-card-item__delete:active {
  background: #ffe2e8;
  transform: scale(.98);
}

.user-card-item__delete:disabled {
  opacity: .62;
  cursor: default;
  transform: none;
}

.cards-empty,
.cards-status {
  padding: 18px 12px;
  border-radius: 10px;
  background: #f7f4f6;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.cards-status {
  margin-top: 10px;
}

.cards-status--error {
  background: #fff0f3;
  color: #b52b3d;
}

.cards-status--ok {
  background: #e9fbe8;
  color: #23812d;
}

@media (max-width: 390px) {
  .contrib-form__discount-row {
    flex-wrap: wrap;
  }
  .contrib-form__discount-row--amount {
    flex-wrap: nowrap;
  }
  .contrib-form__discount-row > select,
  .contrib-form__min-wrap {
    flex: 1 1 100%;
  }
  .contrib-form__discount-row--amount > select {
    flex: 0 0 86px;
  }
}

/* ---------- PROFIL (Informace o firmě) ---------- */
.profile {
  position: fixed;
  top: var(--visual-top, 0px);
  left: 0;
  right: 0;
  bottom: auto;
  height: var(--visual-height, 100dvh);
  min-height: 0;
  z-index: 20;
  background: #f4f2f3;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.32,.72,0,1);
  pointer-events: none;
}
.profile--open {
  transform: translateX(0);
  pointer-events: auto;
}

.profile__topbar {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: max(14px, env(safe-area-inset-top)) 8px 14px;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.profile__back {
  position: absolute;
  left: 8px;
  flex: 0 0 auto;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.profile__back:active { background: rgba(0,0,0,.06); }
.profile__topbar-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--text-dark);
}

.profile__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  background: #f4f2f3;
  padding: 28px 20px max(48px, calc(env(safe-area-inset-bottom) + 28px));
}

.profile__avatar-wrap {
  width: 144px;
  height: 144px;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--avatar-bg);
  box-shadow: 0 4px 16px rgba(43,10,40,.15);
}
.profile__avatar { width: 100%; height: 100%; object-fit: cover; display: block; }

.profile__name {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  color: var(--text-dark);
  margin-bottom: 14px;
}

.profile__share-wrap {
  width: min(100%, 460px);
  margin: 0 auto 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Bublina nad tlacitkem — pop pri kazdem otevreni profilu, pak jemne pluje. */
.profile__share-bubble {
  position: relative;
  margin-bottom: 12px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #009A32;
  color: #FFF064;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  box-shadow: 0 3px 12px rgba(0, 122, 38, .24);
}
.profile__share-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 10px;
  height: 10px;
  background: inherit;
  border-radius: 2px;
  transform: translateX(-50%) rotate(45deg);
}
.profile__share-bubble--pop {
  animation: share-bubble-pop .45s cubic-bezier(.34, 1.56, .64, 1) both,
             share-bubble-float 3.2s ease-in-out .45s infinite;
}
@keyframes share-bubble-pop {
  0% { opacity: 0; transform: scale(.6) translateY(8px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes share-bubble-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.profile__share-banner {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 15px 18px;
  border: none;
  border-radius: 14px;
  background: #FF7900;
  color: #fff;
  display: block;
  text-align: center;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(255, 121, 0, .24);
  transition: transform .18s ease;
}
.profile__share-banner:active { transform: scale(.97); }

/* Lesk projizdejici pres tlacitko — drzi ho "zive". */
.profile__share-banner::after {
  content: "";
  position: absolute;
  top: 0;
  left: -70%;
  width: 45%;
  height: 100%;
  background: linear-gradient(105deg, rgba(255,255,255,0), rgba(255,255,255,.18), rgba(255,255,255,0));
  transform: skewX(-22deg);
  animation: share-sweep 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes share-sweep {
  0%, 60% { left: -70%; }
  90%, 100% { left: 140%; }
}

.profile__share-banner-text {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
}

.profile__card {
  width: min(100%, 460px);
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  margin: 0 auto 16px;
  box-shadow: 0 1px 2px rgba(43,10,40,.06);
}

.profile__row {
  display: block;
  width: 100%;
  padding: 13px 16px;
  border-top: 1px solid rgba(0,0,0,.06);
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--text-dark);
  text-decoration: none;
  background: transparent;
  border-left: none; border-right: none; border-bottom: none;
  text-align: left;
  font-family: inherit;
}
.profile__card .profile__row:first-child { border-top: none; }

.profile__row--label {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: 6px;
}
.profile__row--link { color: var(--accent-orange-2); font-weight: 600; }

.profile__row--social {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.profile__social-icon {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: #1877f2;
  color: #fff;
  font-weight: 800;
  font-style: normal;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.profile__social-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.profile__social-icon--web {
  background: #008069;
}
.profile__social-icon--ig {
  background: radial-gradient(circle at 30% 110%, #fdf497, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}
.profile__social-icon--theme {
  background: #60224D;
}
.profile__social-icon--ig svg circle:last-child {
  fill: currentColor;
  stroke: none;
}
.profile__row-title { font-weight: 600; }
.profile__row-sub { color: var(--text-muted); font-size: 15px; margin-top: 1px; }

.profile__row--danger {
  color: #e0334e;
  font-weight: 600;
  cursor: pointer;
}

/* ---------- PROFIL: sekce pod share buttonem ---------- */
.profile__section {
  width: min(100%, 460px);
  margin: 0 auto 18px;
}
.profile__section[hidden] { display: none; }
.profile__section .profile__card {
  width: 100%;
  margin: 0;
}
.profile__section-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 4px 7px;
}
.profile__section--danger {
  margin-top: 30px;
  margin-bottom: 0;
}

.profile__row--social[hidden] { display: none; }
.profile__row--social .profile__row-title {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}
.profile__row-value {
  flex: 0 0 auto;
  color: var(--text-muted);
  font-size: 13.5px;
}
.profile__chevron {
  flex: 0 0 auto;
  display: flex;
  color: rgba(43, 10, 40, .32);
}
.profile__chevron svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile__social-icon--problem { background: #FAEEDA; color: #B26A00; }
.profile__social-icon--privacy { background: #E1F5EE; color: #087A5A; }
.profile__social-icon--danger {
  background: #FBE9EC;
  color: #e0334e;
}

@media (max-width: 560px) {
  html {
    width: 100%;
    height: 100vh;
    overflow: hidden;
  }

  body {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
  }

  .app {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    height: 100vh;
    margin: 0;
    border-radius: 0;
    display: block;
    overflow: hidden;
  }

  .chat-header {
    position: fixed !important;
    top: var(--visual-top, 0px) !important;
    left: 0;
    right: 0;
    z-index: 10;
    transform: translateZ(0);
    gap: 8px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .chat-header__actions {
    gap: 5px;
  }

  .chat-body {
    position: fixed;
    top: calc(var(--visual-top, 0px) + var(--header-height, 80px));
    left: 0;
    right: 0;
    bottom: auto;
    height: calc(var(--visual-height, 100dvh) - var(--header-height, 80px) - var(--composer-height, 72px) - var(--composer-bottom-offset, 0px));
    flex: none;
    min-height: 0;
    padding: 16px 12px 8px !important;
    overflow-y: auto;
    z-index: 1;
  }

  .composer {
    position: fixed !important;
    top: calc(var(--stable-viewport-bottom, 100dvh) - var(--composer-height, 72px));
    left: 0;
    right: 0;
    bottom: auto !important;
    z-index: 10;
    transform: translate3d(0, calc(-1 * var(--keyboard-bottom, 0px)), 0);
    will-change: transform;
    transition: transform .16s cubic-bezier(.22, .61, .36, 1);
  }

  .is-standalone:not(.is-keyboard-open) {
    --composer-bottom-offset: 0px;
  }

  /* S black-translucent musí klidový shell vycházet z 100vh, ne z kratšího
     visualViewportu, který iOS posouvá za stavový řádek. */
  .is-ios.is-standalone:not(.is-keyboard-open) .chat-body {
    height: calc(100vh - var(--header-height, 80px) - var(--composer-height, 72px));
  }

  .is-ios.is-standalone:not(.is-keyboard-open) .composer {
    top: calc(100vh - var(--composer-height, 72px));
    transform: none;
  }

  /* Nad klavesnici neni domovska lista videt - rezerva na ni je mrtve misto */
  .is-keyboard-open .composer {
    padding-bottom: 6px;
  }

  .scroll-to-bottom {
    position: fixed;
    top: calc(var(--visual-top, 0px) + var(--visual-height, 100dvh) - var(--composer-height, 72px) - var(--composer-bottom-offset, 0px) - 48px);
    bottom: auto;
    z-index: 12;
  }
}

/* ---------- DARK MODE (rizeno pres html[data-theme="dark"], nastavuje app.js) ---------- */
html[data-theme="dark"] {
  --header-bg-1: #121413;
  --chat-bg: #0B141A;
  --bubble-bot: #242626;
  --bubble-user: #005C4B;
  --text-dark: #E9EDEF;
  --text-muted: #A6B0B7;
  --accent-orange: #25C164;
  --accent-orange-2: #25C164;
  color-scheme: dark;
}

html[data-theme="dark"],
html[data-theme="dark"] body {
  background: var(--header-bg-1);
}

html[data-theme="dark"].requires-install,
html[data-theme="dark"].requires-install body {
  background: #60224D;
}

/* bublina uzivatele je tmave zelena — text musi zustat svetly */
html[data-theme="dark"] .row--user .bubble {
  color: #E9EDEF;
}

html[data-theme="dark"] .chat-header__status--online {
  color: var(--text-muted);
}

html[data-theme="dark"].is-profile-open,
html[data-theme="dark"].is-profile-open body,
html[data-theme="dark"].is-contrib-open .app::after,
html[data-theme="dark"] .profile,
html[data-theme="dark"] .profile__scroll,
html[data-theme="dark"] .contrib-view,
html[data-theme="dark"] .contrib-view__scroll,
html[data-theme="dark"] .cards-view,
html[data-theme="dark"] .alerts-view {
  background: #101010;
}

html[data-theme="dark"].is-contrib-open .app::after,
html[data-theme="dark"] #contribView,
html[data-theme="dark"] #contribView .contrib-view__scroll {
  background: #101010;
}

/* pattern ztlumit tmavym prekrytim, jinak na tmave sviti */
html[data-theme="dark"] .chat-body {
  background: var(--chat-bg);
  background-image: url("assets/pattern_dark.png");
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
}

html[data-theme="dark"] .contrib-form__file-title {
  color: #fff;
}

html[data-theme="dark"] .reaction-picker {
  background: #242626;
  border-color: #070305;
  color: var(--text-muted);
}

html[data-theme="dark"] .reaction-chip {
  background: #242626;
  border-color: #070305;
}

html[data-theme="dark"] .msg-menu {
  background: rgba(0, 0, 0, .45);
}
html[data-theme="dark"] .msg-menu__reactions,
html[data-theme="dark"] .msg-menu__forward {
  background: #242626;
  border-color: #070305;
  color: #E9EDEF;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}

html[data-theme="dark"] .system-note {
  background: #182E25;
  color: #D9FDD3;
}
html[data-theme="dark"] .system-note__btn {
  background: transparent;
  color: #25C164;
}
html[data-theme="dark"] .system-note__btn:active { background: transparent; }

html[data-theme="dark"] .bubble code,
html[data-theme="dark"] .buttons-block__body code,
html[data-theme="dark"] .cta-block__body code,
html[data-theme="dark"] .coupon-cards-block__intro code,
html[data-theme="dark"] .coupon-card__text code,
html[data-theme="dark"] .coupon-card__code code,
html[data-theme="dark"] .copyable-code {
  background: #1D1E1E;
  color: #B6B7B7;
}
html[data-theme="dark"] .inline-code-copy { color: #B6B7B7; }

html[data-theme="dark"] .buttons-block__btn { border-top-color: rgba(255, 255, 255, .08); }
html[data-theme="dark"] .buttons-block__btn:active { background: rgba(255, 255, 255, .05); }

html[data-theme="dark"] .buttons-block__btn--quick {
  background: transparent;
  border-color: #453A4D;
}
html[data-theme="dark"] .buttons-block__btn--quick:active { background: transparent; }
html[data-theme="dark"] .buttons-block__btn--quick:disabled { background: transparent; }

html[data-theme="dark"] .buttons-block__btn--vote-yes {
  background: transparent;
  border-color: rgba(37, 193, 100, .45);
  color: #25C164;
}
html[data-theme="dark"] .buttons-block__btn--vote-yes:active { background: transparent; }
html[data-theme="dark"] .buttons-block__btn--vote-yes:disabled {
  background: transparent;
  border-color: rgba(37, 193, 100, .45);
  color: #25C164;
  opacity: 1;
}

html[data-theme="dark"] .buttons-block__btn--vote-no {
  background: transparent;
  border-color: rgba(255, 61, 90, .45);
  color: #FF3D5A;
}
html[data-theme="dark"] .buttons-block__btn--vote-no:active { background: transparent; }
html[data-theme="dark"] .buttons-block__btn--vote-no:disabled {
  background: transparent;
  border-color: rgba(255, 61, 90, .45);
  color: #FF3D5A;
  opacity: 1;
}

html[data-theme="dark"] .buttons-block__btn--list {
  border-color: rgba(255, 255, 255, .16);
}

html[data-theme="dark"] .cta-block__btn {
  background: transparent;
  border-color: rgba(37, 193, 100, .45);
  color: #25C164;
}
html[data-theme="dark"] .cta-block__btn:active { background: transparent; }
html[data-theme="dark"] .cta-block__btn--copy-code,
html[data-theme="dark"] .coupon-card__copy,
html[data-theme="dark"] .cta-block__btn--copy-code:active,
html[data-theme="dark"] .coupon-card__copy:active {
  background: transparent;
}
html[data-theme="dark"] .cta-block__btn--subscribed,
html[data-theme="dark"] .cta-block__btn[aria-disabled="true"] {
  background: transparent;
  border-color: rgba(37, 193, 100, .32);
  color: #25C164;
}
html[data-theme="dark"] .cta-block__btn--subscribed:active,
html[data-theme="dark"] .cta-block__btn[aria-disabled="true"]:active { background: transparent; }

html[data-theme="dark"] .coupon-card { border-top-color: rgba(255, 255, 255, .08); }
html[data-theme="dark"] .coupon-card__conditions,
html[data-theme="dark"] .cta-block__conditions {
  background: transparent;
  border-color: rgba(255, 255, 255, .16);
}
html[data-theme="dark"] .coupon-card__conditions:active,
html[data-theme="dark"] .cta-block__conditions:active { background: transparent; }

html[data-theme="dark"] .typing-bubble span { background: #667781; }

html[data-theme="dark"] .scroll-to-bottom {
  background: #1D1E1E;
  color: var(--text-dark);
}

html[data-theme="dark"] .composer__add { color: var(--text-dark); }
html[data-theme="dark"] .composer {
  background: #101010;
}
html[data-theme="dark"] .composer__send {
  background: #25C164;
  color: #0B141A;
}
html[data-theme="dark"] .composer__input {
  border-color: #323232;
  background: #282828;
  color: var(--text-dark);
}
html[data-theme="dark"] .composer__input-wrap {
  background: #282828;
}
html[data-theme="dark"] .composer__autocomplete {
  color: var(--text-dark);
}
html[data-theme="dark"] .composer__autocomplete-suffix {
  color: var(--text-muted);
}
html[data-theme="dark"] .composer__input-wrap--suggesting .composer__input {
  background: transparent;
  color: transparent;
  -webkit-text-fill-color: transparent;
  caret-color: var(--text-dark);
}
html[data-theme="dark"] .composer__input::placeholder { color: var(--text-muted); }

html[data-theme="dark"] .sheet { background: #242626; }
html[data-theme="dark"] .sheet__handle { background: rgba(255, 255, 255, .18); }
html[data-theme="dark"] .sheet__row { border-bottom-color: rgba(255, 255, 255, .08); }
html[data-theme="dark"] .sheet__row:active { background: rgba(255, 255, 255, .06); }
html[data-theme="dark"] .sheet__cancel {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .16);
}

html[data-theme="dark"] .modal {
  background: #242626;
  border: 1px solid #323232;
}
html[data-theme="dark"] .modal__input {
  background: #282828;
  border: 1px solid #323232;
}
html[data-theme="dark"] .modal__btn--ghost {
  background: transparent;
  border: 1.5px solid #453A4D;
  color: var(--text-dark);
}
html[data-theme="dark"] .modal__btn--primary {
  background: transparent;
  border: 1.5px solid rgba(37, 193, 100, .58);
  color: #25C164;
}
html[data-theme="dark"] .modal__btn--primary:active { background: transparent; }
html[data-theme="dark"] .modal--info .modal__message { color: var(--text-muted); }
html[data-theme="dark"] .modal--conditions .modal__btn--primary {
  background: transparent;
  border-color: #8F2537;
  color: #FF4D67;
}
html[data-theme="dark"] .modal--conditions .modal__btn--primary:active { background: transparent; }
html[data-theme="dark"] .modal__close:active { background: rgba(255, 255, 255, .06); }
html[data-theme="dark"] .modal--discount-detail .discount-detail__code {
  background: #303333;
  color: #f0f2f2;
}
html[data-theme="dark"] .modal--discount-detail .discount-detail__conditions {
  color: var(--text-muted);
}
html[data-theme="dark"] .modal--discount-detail .modal__actions {
  border-top-color: rgba(255, 255, 255, .09);
}
html[data-theme="dark"] .modal--discount-detail .modal__btn--primary {
  border: 0;
  color: #ff5a72;
}

html[data-theme="dark"] .contrib-view__topbar,
html[data-theme="dark"] .profile__topbar {
  background: #121413;
  border-bottom-color: rgba(255, 255, 255, .08);
}
html[data-theme="dark"] .contrib-view__back:active,
html[data-theme="dark"] .profile__back:active { background: rgba(255, 255, 255, .06); }

html[data-theme="dark"] .profile__share-banner {
  background: #FF7900;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .45);
}
html[data-theme="dark"] .profile__share-bubble {
  background: #009A32;
  color: #FFF064;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .4);
}

html[data-theme="dark"] .contrib-tabs { background: #1D1E1E; }
html[data-theme="dark"] .contrib-tabs::before { background: #242626; }
html[data-theme="dark"] .contrib-tabs__btn--active {
  background: transparent;
  color: var(--text-dark);
}

@media (prefers-reduced-motion: reduce) {
  .contrib-tabs::before { transition: none; }
  .contrib-form--enter-next,
  .contrib-form--enter-previous { animation: none; }
  .profile__share-banner::after { animation: none; }
  .profile__share-bubble--pop { animation: none; }
}

html[data-theme="dark"] .contrib-form,
html[data-theme="dark"] .alerts-panel,
html[data-theme="dark"] .cards-panel {
  background: #242626;
}
html[data-theme="dark"] .contrib-form input:not([type="checkbox"]),
html[data-theme="dark"] .contrib-form select {
  background: #282828;
  border-color: #323232;
  color: var(--text-dark);
}
html[data-theme="dark"] .contrib-form input::placeholder { color: var(--text-muted); }
html[data-theme="dark"] .contrib-form select:invalid { color: var(--text-muted); }
html[data-theme="dark"] .contrib-form__status {
  background: #3B2026;
  color: #FF8A9A;
}
html[data-theme="dark"] .contrib-form__status--ok {
  background: #005C4B;
  color: #25C164;
}
html[data-theme="dark"] .contrib-form__status--neutral {
  background: #1D1E1E;
  color: var(--text-muted);
}

html[data-theme="dark"] .alerts-item,
html[data-theme="dark"] .user-card-item {
  background: #1D1E1E;
  border-color: #323232;
}
html[data-theme="dark"] .user-card-item__image {
  background: #101010;
  border-color: #323232;
}
html[data-theme="dark"] .alerts-item__remove,
html[data-theme="dark"] .user-card-item__delete {
  background: transparent;
  border: 1.5px solid rgba(255, 61, 90, .45);
  color: #FF3D5A;
}
html[data-theme="dark"] .alerts-item__remove:active,
html[data-theme="dark"] .user-card-item__delete:active { background: transparent; }
html[data-theme="dark"] .alerts-empty,
html[data-theme="dark"] .cards-empty,
html[data-theme="dark"] .cards-status {
  background: #1D1E1E;
}
html[data-theme="dark"] .cards-status--error {
  background: #3B2026;
  color: #FF8A9A;
}
html[data-theme="dark"] .cards-status--ok {
  background: #005C4B;
  color: #25C164;
}
html[data-theme="dark"] .user-card-item__status--pending {
  background: #3A311A;
  color: #E8C15A;
}
html[data-theme="dark"] .user-card-item__status--approved {
  background: #005C4B;
  color: #25C164;
}
html[data-theme="dark"] .user-card-item__status--rejected {
  background: #3B2026;
  color: #FF8A9A;
}

html[data-theme="dark"] .profile__card {
  background: #1D1E1E;
}
html[data-theme="dark"] .profile__row { border-top-color: #323232; }
html[data-theme="dark"] .profile__social-icon--problem { background: rgba(239, 159, 39, .15); color: #EF9F27; }
html[data-theme="dark"] .profile__social-icon--privacy { background: rgba(29, 158, 117, .16); color: #5DCAA5; }
html[data-theme="dark"] .profile__social-icon--danger {
  background: rgba(255, 138, 154, .14);
  color: #FF8A9A;
}
html[data-theme="dark"] .profile__chevron { color: rgba(233, 237, 239, .35); }

html[data-theme="dark"] .adhs-container .adhs-modal {
  background: linear-gradient(180deg, #272A2B 0%, #1E2021 100%);
  border-color: rgba(255, 255, 255, .09);
  color: #E9EDEF;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .6);
}
html[data-theme="dark"] .adhs-container.visible {
  background-color: rgba(8, 12, 14, .9);
}
html[data-theme="dark"] .adhs-container .adhs-logo {
  background: #272A2B;
  box-shadow: 0 16px 32px rgba(0, 0, 0, .5);
}
html[data-theme="dark"] .adhs-container .adhs-modal .adhs-install-app {
  color: #FFFFFF;
}
html[data-theme="dark"] .adhs-container .adhs-modal .adhs-app-name {
  color: #25C164;
}
html[data-theme="dark"] .adhs-container .adhs-modal .adhs-blurb {
  color: #E9EDEF;
}
html[data-theme="dark"] .adhs-container .adhs-modal .adhs-app-url {
  background: #1D1E1E;
  color: var(--text-muted);
}
html[data-theme="dark"] .adhs-container .adhs-modal .adhs-list .adhs-list-item {
  background: rgba(255, 255, 255, .055);
  border-color: rgba(255, 255, 255, .08);
  box-shadow: none;
}
/* selektor musi obsahovat .adhs-list .adhs-list-item, jinak prohraje se svetlym pravidlem vyse */
html[data-theme="dark"] .adhs-container .adhs-modal .adhs-list .adhs-list-item .adhs-instruction {
  color: #E9EDEF;
}
html[data-theme="dark"] .adhs-container .adhs-modal .adhs-list .adhs-list-item .adhs-circle {
  background: #00A884;
  box-shadow: 0 0 0 4px rgba(0, 168, 132, .16);
}
html[data-theme="dark"] .adhs-container .adhs-modal .adhs-list .adhs-list-item .adhs-number {
  color: #FFFFFF;
}
html[data-theme="dark"] .adhs-container .adhs-modal .adhs-list .adhs-list-item .adhs-list-button {
  background: rgba(255, 255, 255, .09);
  border-color: rgba(255, 255, 255, .18);
  color: #FFFFFF;
}
html[data-theme="dark"] .adhs-container .adhs-modal .adhs-list .adhs-list-item .adhs-list-button img[src$="down-arrow.png"] {
  filter: invert(1);
  opacity: .9;
}
/* SVG ikony maji cernou natvrdo — v dark rezimu invertovat na bilou */
html[data-theme="dark"] .adhs-container .adhs-modal .adhs-list .adhs-list-item .adhs-list-button img[src*="add-to-home-screen"],
html[data-theme="dark"] .adhs-container .adhs-modal .adhs-list .adhs-list-item .adhs-list-button img[src*="share-button"],
html[data-theme="dark"] .adhs-container .adhs-modal .adhs-list .adhs-list-item .adhs-list-button img[src*="more-button"],
html[data-theme="dark"] .adhs-container .adhs-modal .adhs-list .adhs-list-item .adhs-list-button img[src*="sharing-api"] {
  filter: invert(1);
}
html[data-theme="dark"] .adhs-container .adhs-modal .adhs-list .adhs-emphasis {
  color: #25C164;
}
html[data-theme="dark"] .adhs-container .adhs-modal .adhs-button-cancel {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, .18);
  color: #E9EDEF;
}
html[data-theme="dark"] .adhs-container .adhs-modal .adhs-button-install {
  background: transparent;
  border: 1.5px solid rgba(37, 193, 100, .58);
  color: #25C164;
  box-shadow: none;
}
