:root {
  --header-bg-1: #60224D;
  --chat-bg: #FFF9F3;
  --bubble-bot: #ffffff;
  --bubble-user: #d9fdd3;
  --text-dark: #2a1626;
  --text-muted: #948a93;
  --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;
  --header-height: 80px;
  --composer-height: 72px;
  --composer-bottom-offset: 0px;
  color-scheme: light;
}

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

.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: 12px;
  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;
}

.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 {
  margin: 13px 0 0;
  padding: 11px 12px;
  border-radius: 15px;
  background: rgba(96, 34, 77, .08);
  color: #4b3946;
  font-size: 12.5px;
  line-height: 1.38;
  text-align: center;
}

.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: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--chat-bg);
  font-family: var(--font-body);
  -webkit-tap-highlight-color: transparent;
}

html.is-splashing,
html.is-splashing body {
  background: var(--header-bg-1);
}

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

/* ---------- SPLASH SCREEN ---------- */
.splash {
  position: absolute;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: var(--header-bg-1);
  transition: opacity .4s ease;
}
.splash--hidden {
  opacity: 0;
  pointer-events: none;
}
.splash__hero {
  width: 42vw;
  max-width: 190px;
  min-width: 120px;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.25));
}
.splash__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: #fff;
  margin-top: -4px;
}
.splash__logo {
  position: absolute;
  bottom: max(36px, calc(env(safe-area-inset-bottom) + 24px));
  width: 128px;
  opacity: .95;
}

.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;
}

html.is-splashing .app {
  background: var(--header-bg-1);
}

.install-gate {
  display: none;
}

html.requires-install,
html.requires-install body {
  background: var(--header-bg-1);
}

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: var(--header-bg-1);
}

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__qr-text {
  color: rgba(255, 255, 255, .9);
  font-size: 15px;
  line-height: 1.45;
  text-align: center;
}

.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--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: #fff;
  margin-top: 1px;
}
.chat-header__status--online,
.chat-header__status--connecting,
.chat-header__status--offline {
  color: #fff;
}

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

.chat-header__menu-btn {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #fff;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.chat-header__menu-btn span {
  width: 17px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.chat-header__menu-btn:active {
  background: transparent;
  transform: scale(.97);
}

.header-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  min-width: 210px;
  padding: 6px;
  border: 1px solid rgba(96, 34, 77, .10);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(31, 10, 28, .22);
}

.header-menu::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 13px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-left: 1px solid rgba(96, 34, 77, .10);
  border-top: 1px solid rgba(96, 34, 77, .10);
  transform: rotate(45deg);
}

.header-menu__item {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 38px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.header-menu__item:active {
  background: rgba(96, 34, 77, .06);
}

.header-menu__badge {
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #16a34a;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  font-size: 12px;
  line-height: 1;
}

.chat-header__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 7px 9px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 8px;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
}

.chat-header__action:active {
  background: rgba(255,255,255,.22);
  transform: scale(.97);
}

.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;
}

.date-divider {
  align-self: center;
  background: rgba(0,0,0,.06);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 999px;
  margin: 6px 0 10px;
}

.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; }

.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;
}

.row--user {
  position: relative;
}

.row--user.row--has-reaction {
  margin-bottom: 20px;
}

.reaction-chip {
  position: absolute;
  right: 28px;
  bottom: -18px;
  min-width: 46px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  line-height: 1;
  background: #fff;
  border-radius: 999px;
  padding: 2px 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,.18);
}

/* 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__footer {
  padding: 0 14px 8px;
  font-size: 12px;
  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-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,
.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--subscribed:active,
.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-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: 12.5px;
  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;
}
.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: 36px; height: 36px;
  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;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px max(12px, env(safe-area-inset-bottom));
  background: var(--chat-bg);
  box-shadow: 0 -1px 0 rgba(0,0,0,.06), 0 -6px 16px rgba(43,10,40,.05);
  z-index: 2;
}

.composer__input {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid #d8d2cc;
  outline: none;
  background: #fff;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 16px;
  color: var(--text-dark);
  font-family: inherit;
  box-shadow: none;
}
.composer__input::placeholder { color: #a89fa6; }

.composer__send {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-orange-2));
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(255,61,90,.35);
}
.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);
  z-index: 10;
}
.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: 11;
  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__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: 13px; 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__title {
  font-weight: 700;
  font-size: 16px;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.modal__message {
  font-size: 14px;
  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--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;
}

/* ---------- 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);
}

/* ---------- ONBOARDING MIGRACE Z WHATSAPPU ---------- */
.onboarding-backdrop {
  position: absolute;
  inset: 0;
  z-index: 45;
  background: rgba(31, 10, 28, .48);
  backdrop-filter: blur(5px);
}

.onboarding {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 46;
  width: min(392px, calc(100% - 32px));
  transform: translate(-50%, -50%);
  background: #FFF9F3;
  color: #35142d;
  border-radius: 22px;
  padding: 72px 20px 18px;
  text-align: center;
  box-shadow: 0 24px 70px rgba(28, 6, 25, .34);
}

.onboarding__mascot {
  position: absolute;
  left: 50%;
  top: -58px;
  width: 116px;
  height: 116px;
  object-fit: contain;
  transform: translateX(-50%);
  filter: drop-shadow(0 12px 18px rgba(43, 10, 40, .22));
}

.onboarding__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(96, 34, 77, .1);
  color: #60224D;
  font-size: 12px;
  font-weight: 800;
}

.onboarding__title {
  margin: 12px 0 8px;
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1.08;
  color: #60224D;
}

.onboarding__text {
  margin: 0 auto;
  max-width: 310px;
  color: #4b3946;
  font-size: 15px;
  line-height: 1.45;
}

.onboarding__hint {
  margin: 14px auto 0;
  max-width: 310px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff;
  color: #3a2634;
  font-size: 14px;
  line-height: 1.45;
  box-shadow: 0 1px 2px rgba(43, 10, 40, .08);
}

.onboarding__hint b {
  color: #60224D;
}

.onboarding__dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin: 16px 0;
}

.onboarding__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(96, 34, 77, .22);
}

.onboarding__dot--active {
  width: 22px;
  border-radius: 999px;
  background: #60224D;
}

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

.onboarding__btn {
  border: none;
  border-radius: 15px;
  min-height: 48px;
  padding: 13px 16px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.onboarding__btn--primary {
  background: #60224D;
  color: #fff;
  box-shadow: 0 10px 24px rgba(96, 34, 77, .28);
}

.onboarding__btn--ghost {
  background: transparent;
  color: #60224D;
}

.onboarding-reminder {
  align-self: center;
  width: min(92%, 390px);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(96, 34, 77, .1);
  border-radius: 14px;
  background: rgba(255, 249, 243, .92);
  color: #4b3946;
  box-shadow: 0 2px 8px rgba(43, 10, 40, .08);
}

.onboarding-reminder__text {
  min-width: 0;
  flex: 1 1 auto;
  font-size: 12.5px;
  line-height: 1.35;
}

.onboarding-reminder__btn {
  flex: 0 0 auto;
  border: none;
  border-radius: 999px;
  background: #60224D;
  color: #fff;
  padding: 8px 11px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.onboarding-reminder__close {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(96, 34, 77, .08);
  color: #60224D;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

/* ---------- 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;
}
.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;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding: 18px 16px max(48px, calc(env(safe-area-inset-bottom) + 28px));
}
.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 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: 13px;
  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[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: 13px;
  font-weight: 800;
}
.contrib-form__note-wrap {
  margin-top: 10px;
}
.contrib-form__note-label {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}
.contrib-form__help {
  margin: -8px 0 15px;
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.4;
}
.contrib-form__consent {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-muted) !important;
  font-size: 12.5px !important;
  font-weight: 600 !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: 800;
  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: 13px;
  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__delete {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: #fff9f3;
  border: 1px solid rgba(96, 34, 77, .10);
}
.contrib-form__delete-label {
  margin-bottom: 8px;
  color: var(--text-dark);
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.35;
}
.contrib-form__delete input {
  font-size: 12px !important;
}
.contrib-form__delete button,
.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__delete button {
  margin-top: 8px;
  font-size: 13px;
  padding: 10px 12px;
}
.contrib-form__submit {
  margin-top: 14px;
}
.contrib-form__submit:active,
.contrib-form__delete button:active {
  transform: scale(.99);
}
.contrib-form__submit:disabled,
.contrib-form__delete button: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: 13px;
  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__sub {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}

.alerts-item__remove {
  flex: 0 0 auto;
  border: none;
  border-radius: 8px;
  background: #fff0f3;
  color: #b52b3d;
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  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: 14px;
  font-weight: 700;
  text-align: center;
}

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

/* ---------- 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 {
  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);
}
.profile__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;
}
.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: 128px;
  height: 128px;
  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: 20px;
  color: var(--text-dark);
  margin-bottom: 14px;
}

.profile__stat {
  width: min(240px, 100%);
  margin: 0 auto 20px;
  padding: 13px 18px;
  border-radius: 14px;
  background: #fff;
  text-align: center;
  box-shadow: 0 1px 2px rgba(43,10,40,.06);
}
.profile__stat-value {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  color: var(--accent-orange-2);
}
.profile__stat-label {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
}
.profile__stat-value--loading {
  color: var(--text-muted);
}
.profile__stat-value--error {
  color: #b8aeb6;
}

.profile__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 22px;
}
.profile__action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 96px;
  padding: 14px 8px;
  border-radius: 16px;
  border: none;
  background: #fff;
  color: var(--accent-orange-2);
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(43,10,40,.06);
}
.profile__action:active { background: rgba(0,0,0,.03); }

.profile__card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 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: 12px;
  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: 50%;
  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--ig svg circle:last-child {
  fill: currentColor;
  stroke: none;
}
.profile__row-title { font-weight: 600; }
.profile__row-sub { color: var(--text-muted); font-size: 12.5px; margin-top: 1px; }

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

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

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

  .app {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    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-header__action {
    min-height: 28px;
    padding: 6px 7px;
    font-size: 11.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(--visual-top, 0px) + var(--visual-height, 100dvh) - var(--composer-height, 72px) - var(--composer-bottom-offset, 0px));
    left: 0;
    right: 0;
    bottom: auto !important;
    z-index: 10;
  }

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

  .is-shell-animating .chat-header,
  .is-shell-animating .chat-body,
  .is-shell-animating .composer,
  .is-shell-animating .scroll-to-bottom {
    transition:
      top .24s cubic-bezier(.2, .8, .2, 1),
      height .24s cubic-bezier(.2, .8, .2, 1);
    will-change: top, height;
  }

  .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;
  }
}
