/* INFLULAND v3 — původní styly app.influland.cz (1:1): společné. Generováno ze šablon původní aplikace. */
/* ==== home.css ==== */
   * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui,
        sans-serif;
    }

    body {
      -webkit-font-smoothing: antialiased;
      background: #05040a;
      color: #fff;
      display: flex;
      justify-content: center;
      align-items: center;
      min-height: 100dvh;
      padding:0;

 

    }
    button {border: 0;}

    .app {
      width: 100%;
      max-width: 430px;
      padding: 0 13px;
      height: 100dvh;

      background: #0c0913;
      /*border-radius: 32px;*/
      overflow: hidden;
      display: flex;
      flex-direction: column;
      position: relative;
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
    }
    /* iOS Safari (a iOS WebView/Chrome) */
@supports (-webkit-touch-callout: none) {
  .app {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* HEADER */

.app-header {
  padding: 20px 24px 10px 0;
  flex-shrink: 0;
  position: relative;
}

/* místo flex -> grid */
.header-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto; /* back | title | action | notif */
  align-items: center;
  column-gap: 10px;
  position: relative;
  width: 100%;
}

/* back */
.back-btn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  outline: none;
  background: rgba(15, 12, 27, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f5f2ff;
  cursor: pointer;
  font-size: 18px;
  transform: translateX(-4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
  overflow: hidden;
  flex-shrink: 0;
}

.back-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

/* title fakt vlevo */
.header-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.5px;

  justify-self: start;
  text-align: left;
  margin: 0;

  min-width: 0;            /* umožní ellipsis v gridu */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* header save action (for Basic profile screen) */
.header-action {
  display: none;
  border: none;
  background: transparent;
  outline: none;
  cursor: pointer;
  color: #4ce0b2;
  font-size: 18px;
  font-weight: 700;
  padding: 6px 6px;
  flex-shrink: 0;

  justify-self: end;
}

.header-action.visible {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* bell in top-right */
.header-notif-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: none;
  outline: none;
  background: rgba(15, 12, 27, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: absolute;
      right: -20px;
  /*overflow: hidden;*/
  flex-shrink: 0;

  justify-self: end;
}

.header-notif-btn img {
  width: 18px;
  height: 18px;
  display: block;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
}

.header-notif-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #ff3863;
  color: #fff;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* (volitelné) když back není visible, nechceme zbytečně "rezervovat" místo? */
/* Nechávám vypnuté, protože back tlačítko má opacity 0 a zachová layout stabilní */

.back-btn:not(.visible) {
  display: none;
}


    /* MAIN CONTAINER */

    .app-main {
      position: relative;
      flex: 1;
      padding: 8px 16px 0;
      overflow: hidden;
    }

    .screen {
      position: absolute;
      inset: 0;
      padding-bottom: 12px;
      overflow-y: auto;
      opacity: 0;
      transform: translateX(12px);
      pointer-events: none;
      transition: opacity 260ms ease, transform 260ms ease;
    }

    .screen.active {
      opacity: 1;
      transform: translateX(0);
      pointer-events: auto;
    }

    .screen::-webkit-scrollbar {
      width: 0;
      height: 0;
    }

    /* HOME – vyhledávání & řazení */

    .search-bar {
      margin-top: 4px;
      background: #171421;
      border-radius: 18px;
      padding: 10px 14px;
      display: flex;
      align-items: center;
      gap: 8px;
      color: #7b748f;
      font-size: 14px;
    }

    .search-bar input {
      border: none;
      background: transparent;
      outline: none;
      width: 100%;
      color: #f5f5ff;
      font-size: 14px;
    }

    .search-icon {
      width: 18px;
      height: 18px;
      border-radius: 50%;
      border: 1px solid #3c364e;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 11px;
      overflow: hidden;
    }

    .sort-row {
      margin-top: 10px;
      background: #171421;
      border-radius: 18px;
      padding: 8px 14px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 13px;
      color: #b4a9d0;
      gap: 10px;
    }

    .sort-label {
      opacity: 0.7;
      white-space: nowrap;
    }

    .sort-row select {
      flex: 1;
      border-radius: 14px;
      border: none;
      outline: none;
      background: #221d31;
      color: #f5f2ff;
      padding: 6px 10px;
  font-size: 14px;
  appearance: none;
  position: relative;
  -webkit-appearance: none;
  -moz-appearance: none;
    }

    .sort-wrapper {
      position: relative;
      flex: 1;
    }

    .sort-wrapper::after {
      content: "▾";
      position: absolute;
      right: 8px;
      top: 50%;
      transform: translateY(-50%);
      font-size: 10px;
      opacity: 0.7;
      pointer-events: none;
    }

    /* GRID INFLUENCERŮ */

    .grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;
      margin-top: 14px;
      padding-bottom: 80px;
    }

    .card {
      position: relative;
      border-radius: 20px;
      overflow: hidden;
      background: #201c2b;
      box-shadow: 0 6px 14px rgba(0, 0, 0, 0.65);
      cursor: pointer;
      transition: transform 160ms ease, box-shadow 160ms ease;
    }

    .card:hover {
      transform: translateY(-4px);
      box-shadow: 0 10px 22px rgba(0, 0, 0, 0.75);
    }

    .card-photo {
      position: relative;
      height: 200px;
      background-size: cover;
      background-position: center;
    }
    .card-photo-img {
        position: absolute;
        width: 100%;
        height: 100%;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        object-fit: cover;
        display: block;

    }

    .card-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(
        to top,
        rgba(5, 4, 10, 0.95),
        rgba(5, 4, 10, 0.1)
      );
    }

    .card-content {
      position: absolute;
      inset: 0;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      padding: 14px 12px;
      z-index: 1;
    }

    .card-name {
      font-size: 18px;
      font-weight: 700;
      margin-bottom: 10px;
      text-shadow: 0 3px 8px rgba(0, 0, 0, 0.8);
    }

    .stats-row {
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
    }

    .stat-pill {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      background: rgba(9, 7, 19, 0.3);
      padding: 2px 8px;
      border-radius: 999px;
      font-size: 11px;
      color: #f3ecff;
    }

    .pill-icon {
      width: 16px;
      height: 16px;
    }

    .heart-btn {
      position: absolute;
      top: 10px;
      right: 10px;
      width: 34px;
      height: 34px;
      border-radius: 999px;
      border: none;
      outline: none;
      background: rgba(0, 0, 0, 0.35);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: transform 120ms ease, background 120ms ease;
      z-index: 2;
      overflow: hidden;
    }

    .heart-btn img,
    .heart-btn span {
      width: 18px;
      height: 18px;
      display: block;
      filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
      transition: opacity 120ms ease;
    }

    .heart-btn.active {
      background: rgba(121, 200, 215, 0.25);
      transform: scale(1.02);
    }

    /* SEZNAMY */

    .list {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-top: 16px;
      padding-bottom: 80px;
    }

    .list-section-title {
      font-size: 16px;
      font-weight: 600;
      margin-top: 6px;
      opacity: 0.8;
    }

    .list-item {
      /*background: #171421;
      border-radius: 16px;*/
      border-bottom: solid 1px #25202a;
      padding: 12px 14px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      /*box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);*/
      cursor: pointer;
      gap: 12px;
      color:white;
      text-decoration: none;
    }

    .list-left {
      display: flex;
      flex-direction: column;
      gap: 2px;
      flex: 1;
      min-width: 0;
    }

    .list-title {
      font-size: 15px;
      font-weight: 600;
    }

    .list-sub {
      font-size: 12px;
      opacity: 0.7;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 100%;
    }

    .badge {
      font-size: 11px;
      padding: 3px 8px;
      border-radius: 999px;
      background: rgba(76, 224, 178, 0.1);
      color: #4ce0b2;
      border: 1px solid rgba(76, 224, 178, 0.5);
      white-space: nowrap;
    }

    .notification-dot {
      width: 10px;
      height: 10px;
      border-radius: 999px;
      background: #ff3863;
      box-shadow: 0 0 0 6px rgba(255, 56, 99, 0.28);
      flex-shrink: 0;
    }

    .toggle {
      width: 44px;
      height: 24px;
      border-radius: 999px;
      background: #31293f;
      padding: 3px;
      display: flex;
      align-items: center;
      cursor: pointer;
      transition: background 160ms ease;
      flex-shrink: 0;
    }

    .toggle-knob {
      width: 18px;
      height: 18px;
      border-radius: 999px;
      background: #a6a1b9;
      transform: translateX(0);
      transition: transform 160ms ease, background 160ms ease;
    }

    .toggle.active {
      background: #77c5d3;
    }

    .toggle.active .toggle-knob {
      transform: translateX(18px);
      background: #ffffff;
    }

    .profile-header {
      margin-top: 8px;
      margin-bottom: 12px;
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .profile-name {
      font-weight: 600;
      font-size: 14px;
      opacity: 0.9;
    }

    .profile-business {
      font-size: 22px;
      font-weight: 800;
    }

    .profile-location {

    }

    .profile-row-title {
      font-size: 13px;
      opacity: 0.7;
      margin: 12px 2px 4px;
    }

    .list-arrow {
      width: 16px;
      height: 16px;
      opacity: 0.5;
      margin-left: 10px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .empty-state {
      margin-top: 40px;
      text-align: center;
      opacity: 0.7;
      font-size: 14px;
    }

    /* profile item icon */
    .list-leading {
      width: 26px;
      height: 26px;
      flex-shrink: 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      opacity: 0.95;
    }

    .list-leading img {
      width: 18px;
      height: 18px;
      display: block;
      object-fit: contain;
    }

    /* BASIC PROFILE (form like screenshot) */

    .basic-wrap {
      padding-bottom: 110px;
    }

    .photo-card {
      margin-top: 8px;
      position: relative;
    }

    .photo-card img {
      width: 100%;
      height: 220px;
      object-fit: cover;
      display: block;
      filter: saturate(0.95) contrast(1.05);
    }

    .photo-edit-btn {
      position: absolute;
      left: 50%;
      bottom: -18px;
      transform: translateX(-50%);
      width: 48px;
      height: 48px;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,0.15);
      background: rgba(23, 20, 33, 0.92);
      box-shadow: 0 10px 22px rgba(0,0,0,0.55);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }

    .photo-edit-btn img {
      width: 18px;
      height: 18px;
      display: block;
      object-fit: contain;
    }

    .field-label {
      margin-top: 26px;
      font-size: 14px;
      font-weight: 400;
      letter-spacing: 0.2px;
    }

    .field-box {
      margin-top: 10px;
      background: rgba(90, 85, 110, 0.35);
      border: 1px solid rgba(255,255,255,0.12);
      border-radius: 18px;
      padding: 14px 16px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
    }
    .field-box input, .field-box select {
      border: none;
      outline: none;
      background:transparent;
      color: #f5f2ff;
      font-size: 16px;
      width: 100%;
    }



    .field-box select option {
       background:#05040a;
      color: #f5f2ff;
    }

    .field-value {
      font-size: 22px;
      opacity: 0.95;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 92%;
    }

    .field-chevron {
      width: 18px;
      height: 18px;
      opacity: 0.55;
      flex-shrink: 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      margin-left: 10px;
    }

    .save-big {
      margin-top: 20px;
      width: 100%;
      border-radius: 999px;
      border: none;
      outline: none;
      padding: 18px 16px;
      font-size: 22px;
      font-weight: 800;
      background: rgba(76, 224, 178, 0.95);
      color: #05040a;
      cursor: pointer;
      box-shadow: 0 14px 28px rgba(76, 224, 178, 0.22);
    }

    /* MESSAGES */
    .chat-wrap {
      display: flex;
      flex-direction: column;
      height: calc(100dvh - 260px);
      min-height: 420px;
      padding-bottom: 12px;
    }

    .chat-header {
      background: #171421;
      border-radius: 16px;
      padding: 12px 14px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
      margin-top: 10px;
      gap: 12px;
    }

    .chat-peer {
      display: flex;
      flex-direction: column;
      gap: 2px;
      min-width: 0;
      flex: 1;
    }

    .chat-peer-name {
      font-size: 15px;
      font-weight: 700;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .chat-peer-sub {
      font-size: 12px;
      opacity: 0.7;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .chat-thread {
      margin-top: 12px;
      background: rgba(15, 12, 27, 0.55);
      border: 1px solid rgba(255,255,255,0.06);
      border-radius: 18px;
      padding: 12px;
      flex: 1;
      overflow-y: auto;
    }

    .chat-thread::-webkit-scrollbar {
      width: 0;
      height: 0;
    }

    .msg-row {
      display: flex;
      margin: 8px 0;
    }

    .msg-bubble {
      max-width: 78%;
      padding: 10px 12px;
      border-radius: 16px;
      font-size: 13px;
      line-height: 1.35;
     /* box-shadow: 0 6px 14px rgba(0,0,0,0.35);
      border: 1px solid rgba(255,255,255,0.06);*/
    }

    .msg-row.me {
      justify-content: flex-end;
    }

    .msg-row.me .msg-bubble {
      background: rgb(42 38 53);
      color: #eaffff;
    }

    .msg-row.them {
      justify-content: flex-start;
    }

    .msg-row.request {
     /* justify-content: center;*/
    }

    .msg-row.them .msg-bubble {
      background: rgba(23, 20, 33, 0.95);
      color: #f5f2ff;
    }

    .msg-meta {
      font-size: 10px;
      opacity: 0.6;
      margin-top: 6px;
    }

    .chat-inputbar {
      margin-top: 12px;
      display: flex;
      gap: 10px;
      align-items: center;
      background: #171421;
      border-radius: 18px;
      padding: 10px 10px 10px 12px;
      box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    }

    .chat-inputbar input {
      flex: 1;
      border: none;
      outline: none;
      background: transparent;
      color: #f5f5ff;
      font-size: 14px;
    }

    .chat-send {
      width: 40px;
      height: 40px;
      border-radius: 14px;
      border: none;
      outline: none;
      cursor: pointer;
      background: rgba(37, 199, 237, 0.18);
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }

    .chat-send img {
      width: 18px;
      height: 18px;
      display: block;
    }

    /* DETAIL BOTTOM SHEET */

    .detail-overlay {
      position: absolute;
      inset: 0;
      background: rgba(0, 0, 0, 0.6);
      opacity: 0;
      pointer-events: none;
      transition: opacity 220ms ease;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      z-index: 20;
    }

    .detail-overlay.visible {
      opacity: 1;
      pointer-events: auto;
    }

    .detail-sheet {
      background: #05040a;
      border-radius: 26px 26px 0 0;
      overflow: hidden;
      transform: translateY(100%);
      transition: transform 260ms ease;
      max-height: 90%;
      display: flex;
      flex-direction: column;
    }

    .detail-overlay.visible .detail-sheet {
      transform: translateY(0);
    }

    .detail-photo-wrap {
      position: relative;
    }

    .detail-photo {
      width: 100%;
      height: 320px;
      object-fit: cover;
    }

    .detail-handle {
      position: absolute;
      left: 50%;
      top: 10px;
      transform: translateX(-50%);
      width: 60px;
      height: 4px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.7);
    }

    .detail-heart,
    .detail-more {
      position: absolute;
      top: 16px;
      width: 38px;
      height: 38px;
      border-radius: 999px;
      background: rgba(0, 0, 0, 0.35);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      border: none;
      outline: none;
      color: #fff;
      font-size: 18px;
      overflow: hidden;
    }

    .detail-heart {
      left: 16px;
    }

    .detail-more {
      right: 16px;
    }

    .detail-more-wrap {
      position: absolute;
      top: 16px;
      right: 16px;
    }
    .detail-more-wrap .detail-more {
      position: relative;
      top: unset;
      right: unset;
    }
    .detail-more-menu {
      display: none;
      position: absolute;
      top: calc(100% + 6px);
      right: 0;
      background: #0c1014;
      border-radius: 12px;
      padding: 6px 0;
      min-width: 190px;
      box-shadow: 0 8px 24px rgba(0,0,0,0.5);
      z-index: 99;
      overflow: hidden;
    }
    .detail-more-menu.open {
      display: block;
    }
    .detail-more-item {
      display: flex;
      align-items: center;
      width: 100%;
      padding: 11px 16px;
      background: none;
      border: none;
      color: rgba(255,255,255,0.85);
      font-size: 13px;
      font-weight: 600;
      text-align: left;
      cursor: pointer;
      gap: 10px;
      transition: background 100ms ease;
    }
    .detail-more-item:hover {
      background: rgba(255,255,255,0.07);
    }
    .detail-more-item--danger {
      color: #f87171;
    }

    .detail-heart.active {
      background: rgba(121, 200, 215, 0.25);
    }

    .detail-heart img,
    .detail-more img {
      width: 18px;
      height: 18px;
      display: block;
    }

    .detail-body {
      padding: 18px 18px 26px;
      overflow-y: auto;
    }

    .detail-name {
      font-size: 24px;
      font-weight: 800;
      margin-bottom: 16px;
    }

    .detail-desc {
      font-size: 14px;
      color: rgba(255,255,255,0.6);
      line-height: 1.5;
      margin-bottom: 16px;
    }

    .detail-stats {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      margin-bottom: 22px;
    }

    a.detail-stat-pill {
      flex: 1;
      min-width: 120px;
      background: #171421;
      border-radius: 16px;
      padding: 10px 12px;
      display: flex;
      flex-direction: column;
      gap: 4px;
      color:#fff;
        text-decoration: none;
    }

    a.detail-stat-pill .detail-stat-title {
      font-size: 13px;
      opacity: 0.8;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    a.detail-stat-pill .detail-stat-value {
      font-size: 14px;
      font-weight: 600;
      color: #4ce0b2;
    }

    .cta-btn {
      margin-top: 8px;
      width: 100%;
      border-radius: 999px;
      border: none;
      outline: none;
      padding: 14px 16px;
      font-size: 16px;
      font-weight: 600;
      background: #25c7ed;
      color: #05040a;
      cursor: pointer;
     /* box-shadow: 0 10px 22px rgba(0, 192, 255, 0.55);*/
    }

.detail-sub{
  margin-top: 6px;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
}

.detail-coop{
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.detail-coop-label{
  color: rgba(255,255,255,0.55);
  font-size: 12px;
  letter-spacing: .2px;
}

.detail-coop-icons{
  display:flex;
  align-items:center;
  gap:10px;
}
.offer-cover .detail-coop-icons{
    position: absolute;
    z-index: 1;
    top: 12px;
    right: 12px;
}
.offer-cover .detail-coop-icons .detail-coop-ico{
    width:32px;
    height:32px;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.40);
}

.offer-body a {
  color: white;
  text-decoration: underline;
}
.card-photo .detail-coop-ico{
  z-index:1;
  margin-top: 8px;
}


.detail-coop-ico{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}

.detail-address{
  margin-top: 10px;
  display:flex;
  align-items:center;
  gap:10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color:#fff;
  font-size: 14px;
}

.detail-address span{
  color: rgba(255,255,255,0.85);
}
.detail-location{
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.06);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.detail-location-left{
  display:flex;
  align-items:flex-start;
  gap:12px;
  min-width:0;
}

.detail-location-text{
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:0;
}

.detail-location-address{
  color:#fff;
  font-size:15px;
  font-weight:600;
  line-height:1.25;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.detail-location-distance{
  color:#4fd1e3;
  font-size:13px;
  font-weight:500;
}

.detail-location-copy{
  flex-shrink:0;
  width:36px;
  height:36px;
  border-radius:12px;
  border:none;
  background: rgba(255,255,255,0.08);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

.detail-location-copy:active{
  transform: scale(0.96);
}


    /* TAB BAR */

    .tab-bar {
      flex-shrink: 0;
     /* border-top: 1px solid rgba(255, 255, 255, 0.04);
      background: radial-gradient(
        circle at top,
        rgba(255, 255, 255, 0.06),
        rgba(3, 2, 8, 0.96)
      );*/
      padding: 8px 0 18px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .tab-btn {
      flex: 1;
      border: none;
      background: transparent;
      outline: none;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 2px;
      color: #fff;
      font-size: 11px;
      cursor: pointer;
      padding: 4px 0;
      position: relative;
    }

    .tab-btn span.icon {
      width: 26px;
      height: 26px;
      border-radius: 9px;
      background: transparent;
      display: flex;
      align-items: center;
      justify-content: center;
      /*margin-bottom: 1px;*/
      transition: background 180ms ease, transform 180ms ease;
      overflow: hidden;
    }

    .tab-btn span.icon img {
      width: 16px;
      height: 16px;
      display: block;
      filter: brightness(0) invert(1);
    }

    /* ACTIVE TAB: only icon+text turquoise, no turquoise icon background */
    .tab-btn.active span.icon {
      background: transparent;
      transform: translateY(-2px);
    }

    .tab-btn.active {
      color: #79c8d7;
      font-weight: 600;
    }

 .tab-btn.active .icon img {
    filter: brightness(0) saturate(100%)
            invert(74%)
            sepia(23%)
            saturate(632%)
            hue-rotate(140deg)
            brightness(92%)
            contrast(90%);
}

    .tab-badge {
      position: absolute;
      top: 0;
      right: 24%;
      min-width: 16px;
      height: 16px;
      border-radius: 999px;
      background: #ff3863;
      color: #fff;
      font-size: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0 4px;
    }

    /* UNIVERSAL ICON IMG */
    .app-icon-img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: block;
    }

    .icon-16 { width: 16px; height: 16px; }
    .icon-18 { width: 18px; height: 18px; }
    .icon-20 { width: 20px; height: 20px; }
    .icon-22 { width: 22px; height: 22px; }
    .icon-24 { width: 24px; height: 24px; }

.filter-row{
  display:flex;
  gap:10px;
  overflow-x:auto;
  padding:8px 0 14px;
  scrollbar-width:none;
  flex-wrap: wrap;;
}
.filter-row::-webkit-scrollbar{ display:none; }

.filter-chip{
  display:flex;
  align-items:center;
  gap:6px;
  padding:10px 14px;
  border-radius:999px;
  background:rgba(255,255,255,0.08);
  color:#fff;
  font-size:14px;
  border:1px solid rgba(255,255,255,0.12);
  white-space:nowrap;
  cursor:pointer;
  transition: background .2s ease, border .2s ease, opacity .2s ease;
}
.filter-chip:hover{
  background:rgba(255,255,255,0.12);
  border-color:rgba(255,255,255,0.18);
}
.filter-chip .chevron{ font-size:12px; opacity:.7; }
.filter-chip.active{
  background: linear-gradient(135deg, #5ce1e6, #3b82f6);
  color:#000;
  border-color:transparent;
}
.filter-chip.disabled{
  opacity:.45;
  cursor:not-allowed;
}

/* panel */
.filter-panel{
  display:none;
  margin:0 0 10px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,0.10);
  background:rgba(10,10,18,0.92);
  backdrop-filter: blur(10px);
  overflow:hidden;
}
.filter-panel.open{ display:block; }

.filter-panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 14px;
  border-bottom:1px solid rgba(255,255,255,0.08);
}
.filter-panel-title{ color:#fff; font-size:14px; font-weight:700; }

.filter-close{
  background:transparent;
  border:0;
  color:rgba(255,255,255,0.7);
  font-size:16px;
  cursor:pointer;
  padding:6px 8px;
  border-radius:10px;
}
.filter-close:hover{ background:rgba(255,255,255,0.08); }

.filter-panel-body{ padding:12px 12px 10px; }
.filter-search-wrap{ margin-bottom:10px; }
.filter-search{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.10);
  background:rgba(255,255,255,0.06);
  color:#fff;
  outline:none;
}
.filter-search::placeholder{ color:rgba(255,255,255,0.45); }

.filter-list{
  display:flex;
  flex-direction:column;
  gap:6px;
  max-height:320px;
  overflow:auto;
  padding-right:2px;
}
.filter-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  border-radius:14px;
  cursor:pointer;
  border:1px solid rgba(255,255,255,0.08);
  background:rgba(255,255,255,0.04);
  transition:background .15s ease, border .15s ease;
}
.filter-item:hover{
  background:rgba(255,255,255,0.08);
  border-color:rgba(255,255,255,0.14);
}
.filter-item .label{ color:#fff; font-size:14px; }
.filter-item .tick{ opacity:0; color:#5ce1e6; font-weight:900; }
.filter-item.selected .tick{ opacity:1; }

.filter-panel-foot{
  display:flex;
  gap:10px;
  padding:12px;
  border-top:1px solid rgba(255,255,255,0.08);
}
.filter-btn{
  flex:1;
  border:0;
  border-radius:14px;
  padding:10px 12px;
  cursor:pointer;
  font-weight:700;
  background: linear-gradient(135deg, #5ce1e6, #3b82f6);
  color:#000;
}
.filter-btn.ghost{
  background:rgba(255,255,255,0.08);
  color:#fff;
  border:1px solid rgba(255,255,255,0.10);
}


  /* ===== PROFIL HEADER scoped jen pro #screen-profile ===== */
  #screen-profile .profile-header{
    position: relative;
    overflow: hidden;
    border-radius: 0;
    padding-bottom: 18px;
  }

  #screen-profile .profile-img{
    position: relative;
    width: 100%;
    height: 280px;            /* desktop default */
    overflow: hidden;
    border-radius: 0;
    background: rgba(255,255,255,0.06);
  }

  #screen-profile .profile-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
  }

  #screen-profile .profile-img::after{
    content:"";
    position:absolute;
    left:0; right:0; bottom:0;
    height: 78%;
    pointer-events:none;
    background: linear-gradient(
      to bottom,
      rgba(5,5,10,0) 0%,
      rgba(5,5,10,0.35) 30%,
      rgba(5,5,10,0.75) 60%,
      rgba(5,5,10,0.92) 78%,
      rgba(5,5,10,1) 100%
    );
  }

  #screen-profile .profile-name,
  #screen-profile .profile-business,
  #screen-profile .profile-location{
    position: absolute;
    left: 16px;
    right: 16px;
    z-index: 2;
    color: #fff;
  }

  #screen-profile .profile-name{
    bottom: 62px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: .2px;
    margin: 0;
    padding: 0;
  }

  #screen-profile .profile-stats{
    position: absolute;
    bottom: 33px;
    left: 16px;
    z-index: 2;
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    display: flex;
    align-items: center;
    gap: 4px;
  }

  #screen-profile .profile-stats img{
    vertical-align: middle;
    margin-right: 3px;
  }

  #screen-profile .profile-business{
    display: none;
  }

  #screen-profile .profile-location{
    display: none;
  }


/* Topbar – křížek vpravo */
.discount-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.discount-topbar-spacer {
  width: 32px;
}
.discount-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 2px;
}

/* Popis slevy */
.discount-congrats {
  text-align: center;
  padding: 0 20px 10px;
}
.discount-congrats-sub {
  font-size: 44px;
  color: #ddd;
  font-weight: 500;
  line-height: 1.0;
}

/* QR kód */
.discount-qr-wrap {
  display: flex;
  justify-content: center;
  margin: 16px auto 8px;
}
.discount-qr-img {
  width: 180px;
  height: 180px;
  border-radius: 12px;
  border: 2px solid #eee;
  display: block;
}

/* 100% s badge fajfkou */
.discount-percent-wrap {
  position: relative;
  display: inline-block;
  margin: 0 auto;
  left: 50%;
  transform: translateX(-50%);
}
.discount-percent {
  position: relative;
  z-index: 1;
}
.discount-check-badge {
position: absolute;
    top: 14px;
    left: 135px;
    width: 25px;
    height: 25px;
    background: #7bddeb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #fff;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(123, 221, 235, 0.4);
    z-index: 2;
}

/* Velký kód s kopírováním */
.discount-code-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #f4f4f4;
  border-radius: 12px;
  padding: 12px 20px;
  margin: 14px 16px 4px;
  border: 1.5px dashed #bbb;
}
.discount-code-value {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 4px;
  color: #222;
  font-family: monospace;
}
.discount-code-copy {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #555;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.discount-code-copy:active { color: #7bddeb; }
.discount-code-copied {
  text-align: center;
  font-size: 12px;
  color: #7bddeb;
  font-weight: 600;
  height: 16px;
  opacity: 0;
  transition: opacity 0.3s;
  margin-bottom: 4px;
}
.discount-code-copied.show { opacity: 1; }

/* Adresa jako odkaz */
.discount-mini-address {
  color: #7bddeb;
  text-decoration: underline;
  font-size: 13px;
  cursor: pointer;
  display: block;
}
.discount-mini-distance {
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}

/* Swiper – fixně na spodku */
.swipe-wrapper {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #000;
  padding: 12px 16px 28px;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.3);
  user-select: none;
  -webkit-user-select: none;
}

/* Hlavní obsah – padding dole aby nebyl schován pod swiperem */
#discount-success-view {
  padding-bottom: 130px;
}

.swipe-track {
  position: relative;
  height: 56px;
  background: #1e1e1e;
  border-radius: 28px;
  overflow: hidden;
  border: 2px solid #444;
  display: flex;
  align-items: center;
}
.swipe-thumb {
  position: absolute;
  left: 4px;
  top: 4px;
  width: 48px;
  height: 44px;
  background: #7bddeb;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  z-index: 2;
  transition: background 0.2s;
  touch-action: none;
}
.swipe-thumb.swiped {
  background: #5bc8d8;
}
.swipe-arrow {
  color: #fff;
  font-size: 22px;
  line-height: 1;
}
.swipe-label {
  width: 100%;
  text-align: center;
  color: #ccc;
  font-size: 14px;
  font-weight: 600;
  pointer-events: none;
  padding-left: 56px;
  padding-right: 12px;
  transition: opacity 0.3s;
}
.swipe-hint {
  text-align: center;
  color: #aaa;
  font-size: 13px;
  margin-top: 10px;
  margin-bottom: 0;
  padding: 0;
  line-height: 1.5;
}
.inactive-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  padding: 2rem;
  box-sizing: border-box;
  z-index: 999;
}
.inactive-card {
  position: relative;  /* ← přidej toto */
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  padding: 3rem 2.5rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
}

.inactive-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.inactive-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.6rem;
  line-height: 1.3;
}

.inactive-subtitle {
  font-size: 0.95rem;
  color: #6b7280;
  margin: 0 0 2rem;
  line-height: 1.6;
}

.inactive-btn {
  display: inline-block;
  background: #4f46e5;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  text-decoration: none;
}

.inactive-btn:hover {
  background: #4338ca;
}

.inactive-btn:active {
  transform: scale(0.97);
}
.inactive-check { padding: 40px 0 0 0; }
.inactive-check a {color: #6e6e6e;}
.inactive-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: #111827;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  font-size: 1.1rem;
  line-height: 1;
  transition: background 0.15s;
}
.inactive-close:hover { background: #374151; }

.inactive-external-icon {
  vertical-align: middle;
  margin-left: 6px;
  margin-bottom: 2px;
}

.inactive-confirm-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.inactive-confirm-box {
  background: #fff;
  border-radius: 12px;
  padding: 1.75rem 2rem;
  max-width: 320px;
  width: 90%;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.inactive-confirm-text {
  font-size: 0.95rem;
  color: #374151;
  margin: 0 0 1.5rem;
  line-height: 1.5;
}
.inactive-confirm-btns {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}
.inactive-confirm-ok {
  background: #4f46e5;
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 0.85rem 2.1rem;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.inactive-confirm-ok:hover { background: #4338ca; }
.inactive-confirm-cancel {
  background: #f3f4f6;
  color: #374151;
  border: none;
  border-radius: 7px;
  padding: 0.85rem 2.1rem;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.inactive-confirm-cancel:hover { background: #e5e7eb; }


  @media (max-width: 420px){
    #screen-profile .profile-img{ height: 250px; }
    #screen-profile .profile-name{ bottom: 86px; font-size: 13px; }
    #screen-profile .profile-business{ bottom: 56px; font-size: 30px; }
    #screen-profile .profile-location{ bottom: 16px; font-size: 12.5px; padding: 9px 12px; }
  }

  /* ===== Skutečný přepínač (checkbox) – sjednoceno pro profil + notifikace ===== */
  #screen-profile .toggle-input,
  #screen-profile-notif-settings .toggle-input{
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
  }

  #screen-profile .toggle,
  #screen-profile-notif-settings .toggle{
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: 52px;
    height: 30px;
    border-radius: 999px;
    padding: 3px;
    cursor: pointer;
    user-select: none;
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.12);
  }

  #screen-profile .toggle .toggle-knob,
  #screen-profile-notif-settings .toggle .toggle-knob{
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: rgba(255,255,255,0.92);
    transform: translateX(0);
    transition: transform .18s ease, background .18s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,.25);
  }

  /* Zapnuto */
  #screen-profile .toggle-input:checked + .toggle,
  #screen-profile-notif-settings .toggle-input:checked + .toggle{
    background: #7bddeb;
    border-color: #7bddeb;
  }

  #screen-profile .toggle-input:checked + .toggle .toggle-knob,
  #screen-profile-notif-settings .toggle-input:checked + .toggle .toggle-knob{
    transform: translateX(22px);
    background: rgba(255,255,255,0.98);
  }

  /* Fokus pro klávesnici */
  #screen-profile .toggle-input:focus-visible + .toggle,
  #screen-profile-notif-settings .toggle-input:focus-visible + .toggle{
    box-shadow: 0 0 0 3px rgba(93,233,255,0.25);
  }

    @media (max-height: 740px) {
      .card-photo { height: 180px; }
      .chat-wrap { min-height: 380px; }
      .photo-card img { height: 190px; }
      .field-label { font-size: 20px; }
      .field-box input, .field-value { font-size: 20px; }
      .save-big { font-size: 20px; }
    }

/* ===== btn-save — duplicate of .ud-empty__btn, full-width block ===== */
.btn-save {
  display: block;
  width: 100%;
  margin-top: 18px;
  padding: 12px 28px;
  border-radius: 50px;
  background: #7bddeb;
  color: #000;
  font-size: 15px;
  font-weight: 700;
  border: none;
  outline: none;
  cursor: pointer;
  transition: opacity 0.15s;
  box-sizing: border-box;
  text-align: center;
}
.btn-save:active { opacity: 0.75; }
/* ==== influland.offer.css ==== */
 /* ============ SCROLL LOCK ============ */
  body.discount-lock{
    overflow: hidden !important;
    height: 100%;
    touch-action: none;
  }

  /* ============ OVERLAY + SHEET ============ */
  .discount-overlay{
    position: fixed;
    inset: 0;
    display: none;
    align-items: flex-end;
    justify-content: center;
    z-index: 999999;
    background: #05040a; /* neprůhledné - žádný scroll pod tím */
  }
  .discount-overlay.visible{ display:flex; }
  /* FULLSCREEN POPUP – always from top, no container offset */
#discount-overlay.discount-overlay{
  position: fixed;
  inset: 0;                 /* top:0 right:0 bottom:0 left:0 */
  display: none;
  align-items: stretch;     /* full height */
  justify-content: stretch; /* full width */
  z-index: 999999;
  background: #05040a;      /* neprůhledné */
}

#discount-overlay.discount-overlay.visible{
  display: flex;
}

/* Sheet = full screen (no border, no rounded corners) */
#discount-overlay .discount-sheet{
  width: 100%;
  height: 100%;
  max-height: 100dvh;
  border-radius: 0;
  border: none;
  box-shadow: none;
  background: rgba(20,16,28,1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Pokud používáš safe-area spacer, může zůstat,
   ale když chceš úplně čistý fullscreen, můžeš ho vypnout */
#discount-overlay .discount-safe-area{
  height: 0;
}


  .discount-sheet{
    width: min(640px, 100%);
    border-top-left-radius: 22px;
    border-top-right-radius: 22px;
    background: rgba(20,16,28,1);
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 -18px 60px rgba(0,0,0,.65);
    overflow: hidden;

    max-height: 92vh;
    display:flex;
    flex-direction:column;
  }

  .discount-safe-area{ height: 12px; }

  /* ============ TOPBAR ============ */
  .discount-topbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding: 14px 14px;
    flex-shrink:0;
  }
  .discount-title{
    font-size: 18px;
    font-weight: 800;
    color:#fff;
    letter-spacing: .2px;
  }
  .discount-close{
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.92);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
  }
  .discount-topbar-spacer{ width: 38px; }

  /* ============ BODY ============ */
  .discount-view{
    padding: 6px 14px 18px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }

  .discount-hint{
    text-align: center;
    color: rgba(255, 255, 255, 0.68);
    font-size: 17px;
    line-height: 1.35;
    padding: 16px 8px 24px;
    font-weight: bold;
  }

  .discount-section-title{
    margin-top: 14px;
    margin-bottom: 10px;
    text-align:center;
    font-size: 13px;
    letter-spacing: .12em;
    font-weight: 800;
    color: rgba(255,255,255,0.55);
  }

  .discount-divider{
    margin: 14px 0;
    height: 1px;
    background: rgba(255,255,255,0.08);
  }

  .discount-inputrow{ margin-bottom: 10px; }

  .discount-pill{
    display:flex;
    align-items:center;
    gap: 12px;
    padding: 14px 14px;
    border-radius: 18px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
  }
  .discount-pill-text{
    color:#fff;
    font-weight: 800;
    font-size: 18px;
  }
  .discount-box{
    color: rgba(255,255,255,0.85);
    font-weight: 800;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    /*background: rgba(0,0,0,0.22);
    border: 1px solid rgba(255,255,255,0.10);*/
    white-space:nowrap;
  }
  .discount-input{
    flex:1;
    min-width: 0;
    border:none;
    outline:none;
    background: transparent;
    color:#fff;
    font-weight: 700;
    font-size: 16px;
  }
  .discount-input::placeholder{ color: rgba(255,255,255,0.35); }

  .discount-copy{
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(0,0,0,0.18);
    color: rgba(255,255,255,0.9);
    cursor:pointer;
    font-weight: 900;
  }

  /* ============ CHOICES (radio style) ============ */
  .discount-choice{
    width:100%;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap: 12px;
    padding: 18px 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    cursor:pointer;
    margin-bottom: 10px;
    color:#fff;
  }
  .discount-choice-left{
    display:flex;
    align-items:center;
    gap: 12px;
  }
.discount-choice-ico{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  /*background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.10);*/
  overflow: hidden; /* důležité pro img */
}

.discount-choice-icon-img{
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}
  .discount-choice-text{
    font-size: 18px;
    font-weight: 800;
  }
  .discount-choice-check{
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display:flex;
    align-items:center;
    justify-content:center;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.65);
    font-weight: 900;
  }
  .discount-choice.active{
    border-color: rgba(37,199,237,0.55);
    box-shadow: 0 0 0 2px rgba(37,199,237,0.15) inset;
  }
  .discount-choice.active .discount-choice-check{
    background: #25c7ed;
    color: #05040a;
    border-color: rgba(255,255,255,0.0);
  }

  /* ============ UPLOAD ============ */
  .discount-upload{
    margin-top: 10px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    height: 280px;
    border-radius: 22px;
    background: rgba(255,255,255,0.06);
    border: 1px dashed rgba(255,255,255,0.18);
    cursor:pointer;
    user-select:none;
  }
  .discount-upload-ico{ font-size: 28px; opacity: .85; margin-bottom: 10px; }
  .discount-upload-title{
    font-size: 18px;
    font-weight: 800;
    color: rgba(255,255,255,0.92);
  }
  .discount-upload-sub{
    margin-top: 6px;
    font-size: 13px;
    color: rgba(255,255,255,0.55);
  }
  .discount-upload-file{
    margin-top: 10px;
    font-size: 13px;
    color: rgba(255,255,255,0.78);
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(0,0,0,0.18);
    border: 1px solid rgba(255,255,255,0.10);
    max-width: 92%;
    overflow:hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* ============ UGC TOGGLE ============ */
  .ugc-toggle{
    margin-top: 12px;
    width:100%;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap: 12px;
    padding: 16px 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    cursor:pointer;
    color:#fff;
  }
  .ugc-toggle-left{
    display:flex;
    flex-direction:column;
    gap: 2px;
    text-align:left;
  }
  .ugc-toggle-title{
    font-size: 16px;
    font-weight: 900;
  }
  .ugc-toggle-sub{
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    font-weight: 700;
  }
  .ugc-switch{
    width: 52px;
    height: 30px;
    border-radius: 999px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.12);
    position: relative;
    flex-shrink:0;
  }
  .ugc-switch::after{
    content:"";
    position:absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: rgba(255,255,255,0.70);
    transition: transform .18s ease, background .18s ease;
  }
  .ugc-toggle.active{
    border-color: rgba(37,199,237,0.55);
    box-shadow: 0 0 0 2px rgba(37,199,237,0.15) inset;
  }
  .ugc-toggle.active .ugc-switch{
    background: rgba(37,199,237,0.25);
    border-color: rgba(37,199,237,0.55);
  }
  .ugc-toggle.active .ugc-switch::after{
    transform: translateX(22px);
    background: #25c7ed;
  }

  .ugc-block{
    margin-top: 10px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.10);
  }

  .ugc-upload{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    height: 170px;
    border-radius: 18px;
    background: rgba(0,0,0,0.18);
    border: 1px dashed rgba(255,255,255,0.18);
    cursor:pointer;
    user-select:none;
  }
  .ugc-upload-title{
    font-size: 18px;
    font-weight: 900;
    color:#fff;
  }
  .ugc-upload-sub{
    margin-top: 6px;
    font-size: 13px;
    color: rgba(255,255,255,0.55);
  }
  .ugc-upload-file{
    margin-top: 10px;
    font-size: 13px;
    color: rgba(255,255,255,0.78);
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(0,0,0,0.18);
    border: 1px solid rgba(255,255,255,0.10);
    max-width: 92%;
    overflow:hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .ugc-info{
    margin-top: 12px;
    color: rgba(255,255,255,0.70);
    font-size: 13px;
    line-height: 1.35;
  }

  .ugc-price-pill{
    margin-top: 10px;
    display:inline-block;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(37,199,237,0.18);
    border: 1px solid rgba(37,199,237,0.35);
    color: rgba(255,255,255,0.92);
    font-weight: 800;
    font-size: 13px;
  }
  .ugc-price-pill strong{
    color:#fff;
    font-weight: 900;
  }

  /* ============ INFO ============ */
  .discount-info{
    margin-top: 12px;
    display:flex;
    gap: 12px;
    align-items:flex-start;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
  }
  .discount-info-ico{
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display:flex;
    align-items:center;
    justify-content:center;
    background: rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.9);
    font-weight: 900;
    flex-shrink:0;
  }
  .discount-info-text{
    color: rgba(255,255,255,0.65);
    font-size: 13px;
    line-height: 1.35;
  }

  /* ============ CTA ============ */
  .discount-cta{
    margin-top: 18px;
    width: 100%;
    border-radius: 999px;
    border: none;
    outline: none;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 600;
    background: #25c7ed;
    color: #05040a;
    cursor: pointer;
  }
  .discount-cta:active{ transform: translateY(1px); }

  .discount-footnote{
    margin-top: 10px;
    color: rgba(255,120,120,0.95);
    font-weight: 700;
    font-size: 13px;
    text-align:center;
  }

  /* ============ SUCCESS ============ */
  .discount-success-icon{
    width: 86px;
    height: 86px;
    border-radius: 999px;
    margin: 10px auto 14px;
    display:flex;
    align-items:center;
    justify-content:center;
    border: 3px solid rgba(37,199,237,0.9);
    color: rgba(37,199,237,0.95);
    font-size: 40px;
    font-weight: 900;
  }
  .discount-percent{
    text-align:center;
    font-size: 42px;
    font-weight: 900;
    color:#fff;
    letter-spacing: .6px;
    margin-bottom: 6px;
  }
  .discount-success-text{
    text-align:center;
    font-size: 15px;
    color: rgba(255,255,255,0.65);
    line-height: 1.35;
    margin-bottom: 16px;
  }

  .discount-získáváte-label{
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 24px;
    margin-bottom: 4px;
  }

  /* === SUCCESS VIEW === */
  #discount-success-view{
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 16px 32px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
  }
  #discount-success-view > *{
    width: 100%;
    max-width: 480px;
    box-sizing: border-box;
  }
  #discount-success-view .discount-topbar{
    max-width: 100%;
    justify-content: center;
    position: relative;
    padding: 14px 52px;
  }
  #discount-success-view .discount-close{
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
  }
  #discount-success-view .discount-title{
    text-align: center;
  }
  #discount-success-view .discount-qr-wrap{
    display: flex;
    justify-content: center;
    margin: 16px 0 10px;
  }
  #discount-success-view .discount-percent-wrap{
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 14px;
    position: static !important;
    left: auto !important;
    transform: none !important;
    text-align: center;
    margin: 8px auto;
    padding: 0;
  }
  .discount-check-svg{
    flex-shrink: 0;
    display: block;
    margin-top: -3px;
  }
  #discount-success-view .discount-percent{
    line-height: 1;
    font-size: 60px;
  }
  #discount-success-view .discount-code-block{
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 14px 0 4px;
  }

  /* Název dealu */
  .discount-congrats{
    width: 100%;
    max-width: 480px;
    padding: 10px 0 0;
    box-sizing: border-box;
  }
  .discount-congrats-sub{
    text-align: center;
    font-size: 30px;
    font-weight: 700;
    color: rgba(255,255,255,0.90);
    line-height: 1.25;
  }

  .discount-mini-card{
    display:flex;
    align-items:center;
    gap: 12px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    margin-bottom: 10px;
    text-align: left;
  }
  .discount-mini-img{
    width: 54px;
    height: 54px;
    border-radius: 14px;
    object-fit: cover;
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.10);
    flex-shrink:0;
  }
  .discount-mini-body{
    flex: 1;
    min-width: 0;
    text-align: left;
  }
  .discount-mini-title{
    font-weight: 900;
    color:#fff;
    font-size: 16px;
    line-height: 1.1;
  }
  .discount-mini-sub{
    margin-top: 4px;
    color: rgba(255,255,255,0.55);
    font-size: 13px;
    display: block;
  }
  /* Foto produktu při uplatnění na dálku */
  .discount-offer-photo-wrap{
    display: flex;
    justify-content: center;
    margin: 16px 0 10px;
  }
  .discount-offer-photo{
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.10);
  }

  /* Booking URL button — stejný styl jako .offer-cta */
  .discount-booking-btn{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 24px;
    padding: 14px 16px;
    border-radius: 999px;
    border: none;
    background: #25c7ed;
    color: #05040a;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
  }
  .discount-booking-btn:active{
    transform: translateY(1px);
  }

  .screen-offer .offer-page{    height: 100dvh;
    display: flex;
    flex-direction: column;
}

 .screen-offer .offer-titlebar{
    display:flex;
    flex-direction:column;
    gap:6px;
    margin-bottom: 12px;
  }

 .screen-offer .offer-company{
    font-size: 18px;
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    letter-spacing: .2px;
  }

 .screen-offer .offer-sub,.screen-offer .offer-show-more {
    font-size: 13px;
    line-height: 1.2;
    color: rgba(255,255,255,0.70);
  }

  /* ✅ vždy 1 karta na řádek */
 .screen-offer .offer-list{
    display:grid;
    grid-template-columns: 1fr;
    gap:12px;
  }

 .screen-offer .offer-card{
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 16px;
    overflow:hidden;
    background: rgba(255,255,255,0.04);
  }

  /* ✅ vyšší obrázky */
 .screen-offer .offer-cover{
    position:relative;
    height: 210px;
    background: rgba(255,255,255,0.06);
    overflow:hidden;
  }

 .screen-offer .offer-img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transform: scale(1.02);
  }

 .screen-offer .offer-cover:after{
    content:"";
    position:absolute;
    inset:0;
    background: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,.12) 60%, rgba(0,0,0,0));
    pointer-events:none;
  }

 .screen-offer .offer-badge{
    position:absolute;
    left:10px;
    top:10px;
    z-index:2;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    color:#fff;
    background: rgba(131,64,238,0.95);
    border: 1px solid rgba(255,255,255,0.14);
    backdrop-filter: blur(8px);
  }

  /* ❌ štítek vpravo pryč */
 .screen-offer .offer-tag{ display:none; }

 .screen-offer .offer-cover-text{
    position:absolute;
    left:12px;
    right:12px;
    bottom:12px;
    z-index:2;
  }

 .screen-offer .offer-name{
    font-size: 16px;
    font-weight: 900;
    color:#fff;
    line-height: 1.18;
    text-shadow: 0 8px 24px rgba(0,0,0,.35);
    display:-webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow:hidden;
  }

 .screen-offer .offer-body{
    padding: 12px;
    display:flex;
    flex-direction:column;
    gap:10px;
  }

 .screen-offer .offer-prices{
    display:flex;
    flex-direction:column;
    gap:4px;
    min-width:0;
  }

 .screen-offer .offer-price-line{
    display:flex;
    align-items:baseline;
    gap:8px;
    flex-wrap:wrap;
  }

 .screen-offer .offer-new{
    font-size: 15px;
    font-weight: 900;
    color:#fff;
    white-space:nowrap;
  }

 .screen-offer .offer-old{
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,0.55);
    text-decoration: line-through;
    font-weight: 600;
    white-space:nowrap;
  }

  /* ✅ změněný text */
 .screen-offer .offer-note{
    font-size: 12px;
    color: rgba(255,255,255,0.75);
    white-space: nowrap;
    overflow:hidden;
    text-overflow: ellipsis;
  }
   .screen-offer .offer-note-full{
       white-space: normal;
    overflow:visible;
    text-overflow:unset;
    }
  .screen-offer .offer-company-desc-name {
    font-size: 15px;
    font-weight: 700;
    color: rgba(255,255,255,0.95);
    margin: 0 0 10px 0;
  }

  /* ✅ tlačítko ve stylu cta-btn */
 .screen-offer .offer-cta{
    margin-top: 8px;
    width: 100%;
    border-radius: 999px;
    border: none;
    outline: none;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 600;
    background: #25c7ed;
    color: #05040a;
    cursor: pointer;
  }

 .screen-offer .offer-cta:active{
    transform: translateY(1px);
  }

 .screen-offer .offer-detail-template[hidden]{
    display:none !important;
  }

  body.offer-detail-lock{
    overflow: hidden !important;
    height: 100%;
    touch-action: none;
  }

  .offer-detail-overlay{
    position: fixed;
    inset: 0;
    display: none;
    align-items: flex-start;
    justify-content: center;
    z-index: 999999;
    background: #05040a;
  }

  .offer-detail-overlay.visible{
    display:flex;
  }

  .offer-detail-sheet{

    max-width: 430px;

    border-radius: 16px;
    background: #05040a;
    overflow: hidden;
    box-shadow: none;
   
  }

  .offer-detail-overlay.visible .offer-detail-sheet{
    transform: translateY(0);
  }



    .offer-detail-overlay .app-header{
 margin: 0 13px;
  
    }


  .offer-detail-title{
    flex: 1;
    text-align: center;
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    letter-spacing: .2px;
  }


  .offer-detail-body{
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-top: 12px;

      margin: 0 13px;
  }


  .offer-detail-body .offer-cover{
    height: 260px;
  }

  /* Portrait obrázek v detailu — přirozená výška, plná šířka */
  .offer-detail-body .offer-cover--portrait {
    height: auto;
  }
  .offer-detail-body .offer-cover--portrait .offer-img {
    height: auto;
    object-fit: fill;
    transform: none;
  }

  .offer-detail-body .offer-name{
    display:block;
    overflow:visible;
    line-clamp: unset;
    -webkit-line-clamp: unset;
    -webkit-box-orient: initial;
  }

  .offer-detail-body .offer-body, .offer-detail-body .offer-buttons{
    padding: 16px;
    gap: 12px;
  
  }

  .offer-detail-body .offer-prices{
    gap: 8px;
  }

  .offer-detail-body .offer-new{
    font-size: 18px;
  }

  .offer-detail-body .offer-old{
    font-size: 14px;
  }

  .offer-detail-body .offer-note{
    font-size: 14px;
    line-height: 1.45;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

/* ===== Swiper — přepsat home.css fixed positioning ===== */
#discount-success-view .swipe-wrapper,
.swipe-wrapper {
  position: static !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  z-index: auto !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 16px 0 0 !important;
  margin-top: 40px;
  width: 100%;
  box-sizing: border-box;
}
/* Zrušit kompenzační padding-bottom z home.css */
#discount-success-view {
  padding-bottom: 32px !important;
}

  .discount-seller-note{
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    line-height: 1.55;
    text-align: center;
    margin-top: 16px;
    margin-bottom: 0;
    padding: 0;
  }
  .discount-seller-note strong{
    color: rgba(255,255,255,0.7);
    font-weight: 700;
  }

/* ===== New Window Popup (nwp) — sdílená komponenta ===== */
.nwp-overlay { display:none; position:fixed; inset:0; z-index:9999999; background:rgba(0,0,0,0.7); backdrop-filter:blur(4px); align-items:center; justify-content:center; }
.nwp-overlay.active { display:flex; }
.nwp-box { background:#13132a; border:1px solid rgba(255,255,255,0.12); border-radius:18px; padding:32px 28px; max-width:320px; width:90%; text-align:center; }
.nwp-text { font-size:15px; color:rgba(255,255,255,0.75); margin:0 0 24px; line-height:1.5; }
.nwp-actions { display:flex; gap:10px; justify-content:center; }
.nwp-cancel { padding:10px 22px; border-radius:10px; border:1px solid rgba(255,255,255,0.14); background:transparent; color:rgba(255,255,255,0.6); font-size:13px; font-weight:600; cursor:pointer; }
.nwp-confirm { padding:10px 22px; border-radius:10px; border:none; background:#fff; color:#000; font-size:13px; font-weight:700; cursor:pointer; }

/* ===== System alert (toast) ===== */
.system-alert { position:fixed; top:24px; left:50%; transform:translateX(-50%) translateY(-80px); background:#7bddeb; color:#000; font-size:15px; font-weight:700; padding:14px 24px; border-radius:14px; z-index:99999999; opacity:0; transition:opacity 0.3s, transform 0.3s; pointer-events:none; white-space:nowrap; max-width:calc(100vw - 32px); box-sizing:border-box; white-space:normal; text-align:center; }
.system-alert.visible { opacity:1; transform:translateX(-50%) translateY(0); }

/* ===== Barter block alert (modal) ===== */
#barter-block-alert { position:fixed; inset:0; z-index:99999999; display:flex; align-items:flex-end; justify-content:center; pointer-events:none; opacity:0; transition:opacity 0.25s; }
#barter-block-alert.bba-visible { opacity:1; pointer-events:auto; }
#barter-block-alert .bba-backdrop { position:absolute; inset:0; background:rgba(0,0,0,0.6); }
#barter-block-alert .bba-box { position:relative; width:100%; max-width:480px; background:#1a1925; border-radius:20px 20px 0 0; padding:28px 24px 36px; text-align:center; transform:translateY(100%); transition:transform 0.3s cubic-bezier(0.34,1.1,0.64,1); }
#barter-block-alert.bba-visible .bba-box { transform:translateY(0); }
#barter-block-alert .bba-msg { font-size:15px; color:rgba(255,255,255,0.85); line-height:1.55; margin:0 0 22px; }
#barter-block-alert .bba-btn { display:block; width:100%; padding:14px 0; border-radius:50px; background:#7bddeb; color:#000; font-size:15px; font-weight:700; border:none; cursor:pointer; transition:opacity 0.15s; }
#barter-block-alert .bba-btn:active { opacity:0.75; }

/* ==== company.messages.php #0 ==== */
  :root{
    --bg:#0f1115;
    --card:#151924;
    --fg:#e7eaf1;
    --muted:rgba(231,234,241,.65);
    --line:rgba(231,234,241,.10);
    --accent:#5cbbe3;
  }

  /* ===== Chat header avatar (větší + kulatý) ===== */
  #chat-avatar{
    width:42px !important;
    height:42px !important;
    border-radius:50% !important;
    object-fit:cover !important;
  }

  /* ===== Bublina: relativní kvůli ikonám ===== */
  .msg-bubble{ position:relative; }

  /* ===== Reply tlačítko ===== */
  .msg-reply-btn{
    position:absolute;
    /*width:30px;
    height:30px;*/
    border-radius:999px;
    background:rgba(255,255,255,.1);
    /*border:1px solid rgba(0,0,0,.12);*/
    display:inline-flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    user-select:none;
    padding:0;
    z-index:50; /* nad videem */
    pointer-events:auto;
  }
  .msg-reply-btn svg{ width:16px; height:16px; }

  .msg-delete-x{
    position:absolute;
    right:-3px;
    top:-13px;
    width:22px;
    height:22px;
    border-radius:999px;
    background:rgba(255,255,255,.85);
    border:1px solid rgba(0,0,0,.12);
    display:inline-flex;
    align-items:center;
    justify-content:center;
    color:#111 !important;
    font-size:14px;
    font-weight:900;
    line-height:1;
    padding:0;
    cursor:pointer;
    z-index:60;
  }

  /* pozice dle typu zprávy */
  .msg-reply--bottom-right{ right:8px; bottom:8px; }
  .msg-reply--top-right{ right:8px; top:8px; }

  /* ===== Video/IMG ===== */
  .msg-inline-img{
    width:100%;
    height:auto;
    max-height:75dvh;
    border-radius:12px;
    margin-bottom:8px;
    margin-top:8px;
    cursor:pointer;
    display:block;
    object-fit:contain;
  }
  .msg-inline-video{
    width:100%;
    aspect-ratio:9 / 16;
    max-height:75dvh;
    border-radius:12px;
    margin-bottom:8px;
    margin-top:8px;
    display:block;
    background:#000;
    outline:none;
    object-fit:contain;
  }

  /* ===== Fullscreen overlay ===== */
  #fs-overlay{
    position:fixed;
    top:0; left:0; width:100%; height:100%;
    background:rgba(0,0,0,.9);
    display:none;
    align-items:center;
    justify-content:center;
    z-index:10000;
    cursor:zoom-out;
  }
  #fs-overlay img{ max-width:95%; max-height:95%; border-radius:5px; }

  /* ===== Nabídka: Koupit + minimalistický křížek (overlay) ===== */
  .msg-btn-offer{
    display:block;
    background-color:var(--accent);
    color:#000 !important;
    text-decoration:none;
    padding:12px;
    border-radius:25px;
    text-align:center;
    font-weight:700;
    font-size:14px;
    cursor:pointer;
    user-select:none;
    border:none;
    margin-top:10px; /* ✅ požadavek */
  }
  .msg-btn-offer--muted{
    background:rgba(255,255,255,.14) !important;
    color:#fff !important;
  }

  .msg-actions{
    position:relative;
    margin-top:0;
  }
  .msg-actions .msg-btn-offer{
    width:100%;
    margin-top:10px; /* jistota, i kdyby byl render jinak */
  }

  .msg-btn-reject{
    position:absolute;
    right:8px;
    top:50%;
    transform:translateY(-50%);
    width:22px;
    height:22px;
    border-radius:999px;
    background:rgba(255,255,255,.85);
    border:1px solid rgba(0,0,0,.12);
    display:inline-flex;
    align-items:center;
    justify-content:center;
    color:#111 !important;
    font-size:14px;
    font-weight:900;
    line-height:1;
    padding:0;
    cursor:pointer;
    z-index:60;
  }

  /* Odmítnuto stav (text pod tlačítkem + křížek skrytý) */
  .offer-rejected-note{
    margin-top:8px;
    font-size:12.5px;
    color:rgba(231,234,241,.75);
    display:flex;
    align-items:center;
    gap:8px;
  }
  .offer-rejected-note .x{
    width:18px;
    height:18px;
    border-radius:999px;
    border:1px solid var(--line);
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-weight:900;
    line-height:1;
    color:rgba(231,234,241,.85);
    cursor:pointer;
    user-select:none;
  }

  /* ===== Composer (tmavý) ===== */
  .chat-composer{
    position:fixed;
    left:0; right:0; bottom:0;
    z-index:1000;
    background:var(--bg);
    border-top:1px solid var(--line);
    padding:10px 12px;
    box-sizing:border-box;
  }

  /* Citace nad polem (text only) */
  .composer-reply{ display:none; margin-bottom:10px; }
  .composer-reply .reply-card{
    background:rgba(21,25,36,.9);
    border:1px solid var(--line);
    border-radius:14px;
    padding:10px 12px;
    display:flex;
    align-items:center;
    gap:10px;
  }
  .reply-strip{
    width:3px;
    align-self:stretch;
    border-radius:99px;
    background:rgba(92,187,227,.9);
  }
  .reply-meta{ flex:1; min-width:0; }
  .reply-snippet{
    font-size:13px;
    color:var(--fg);
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    opacity:.9;
  }
  .reply-cancel{
    width:30px;
    height:30px;
    border-radius:999px;
    background:rgba(255,255,255,.10);
    border:1px solid var(--line);
    cursor:pointer;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:0;
    color:var(--fg);
    font-weight:900;
    line-height:1;
  }

  .composer-attachment{
    display:none;
    margin-bottom:10px;
  }
  .composer-attachment-card{
    background:rgba(21,25,36,.9);
    border:1px solid var(--line);
    border-radius:14px;
    padding:8px 12px;
    display:flex;
    align-items:center;
    gap:10px;
  }
  .composer-attachment-name{
    flex:1;
    min-width:0;
    font-size:13px;
    color:var(--fg);
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    opacity:.92;
  }
  .composer-attachment-remove{
    width:28px;
    height:28px;
    border-radius:999px;
    background:rgba(255,255,255,.10);
    border:1px solid var(--line);
    cursor:pointer;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:0;
    color:var(--fg);
    font-weight:900;
    line-height:1;
  }

  .composer-offer-draft{
    display:none;
    margin-bottom:10px;
  }
  .composer-offer-draft-card{
    background:rgba(21,25,36,.9);
    border:1px solid var(--line);
    border-radius:14px;
    padding:8px 12px;
    display:flex;
    align-items:center;
    gap:10px;
  }
  .composer-offer-draft-meta{
    flex:1;
    min-width:0;
  }
  .composer-offer-draft-title{
    font-size:13px;
    font-weight:700;
    color:var(--fg);
    margin-bottom:6px;
  }
  .composer-offer-draft-input{
    width:100%;
    border:1px solid var(--line);
    background:rgba(255,255,255,.04);
    color:var(--fg);
    border-radius:10px;
    height:34px;
    padding:0 10px;
    box-sizing:border-box;
    outline:none;
    font-size:14px;
  }
  .composer-offer-draft-input::placeholder{ color:rgba(231,234,241,.55); }
  .composer-offer-draft-cancel{
    width:28px;
    height:28px;
    border-radius:999px;
    background:rgba(255,255,255,.10);
    border:1px solid var(--line);
    cursor:pointer;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:0;
    color:var(--fg);
    font-weight:900;
    line-height:1;
    flex:0 0 auto;
  }

  .composer-file-input{ display:none; }

  .composer-plus-wrap{ position:relative; }
  .composer-plus-menu{
    position:absolute;
    left:0;
    bottom:52px;
    min-width:170px;
    background:rgba(21,25,36,.98);
    border:1px solid var(--line);
    border-radius:12px;
    box-shadow:0 10px 28px rgba(0,0,0,.35);
    padding:6px;
    display:none;
    z-index:1200;
  }
  .composer-plus-menu.open{ display:block; }
  .composer-plus-menu button{
    width:100%;
    border:none;
    background:transparent;
    color:var(--fg);
    text-align:left;
    padding:9px 10px;
    border-radius:8px;
    cursor:pointer;
    font-size:13px;
    font-weight:600;
  }
  .composer-plus-menu button:hover{
    background:rgba(255,255,255,.08);
  }

  .msg-attachment{
    display:block;
    margin-top:8px;
    padding:10px 12px;
    border-radius:12px;
    border:1px solid var(--line);
    color:var(--fg) !important;
    text-decoration:none !important;
    font-weight:600;
    word-break:break-all;
    background:rgba(255,255,255,.04);
  }

  /* řádek: + | textarea | send */
  .composer-row{
    display:flex;
    align-items:flex-end;
    gap:10px;
  }

  /* PLUS bez kolečka */
  .composer-plus{
    width:auto;
    height:44px;
    padding:0 4px 0 2px;
    border:none;
    background:transparent;
    color:var(--fg);
    font-size:30px;
    line-height:44px;
    cursor:pointer;
    user-select:none;
  }

  .composer-input{
    flex:1;
    min-width:0;
    background:rgba(21,25,36,.95);
    border:1px solid var(--line);
    border-radius:18px;
    padding:10px 12px;
    box-sizing:border-box;
  }

  /* Textarea: 1..6 řádků, tmavé */
  .composer-textarea{
    width:100%;
    resize:none;
    border:none;
    outline:none;
    background:transparent;
    color:var(--fg);
    font-size:16px;
    line-height:22px;
    padding:0;
    margin:0;
    min-height:22px;
    max-height:132px;
    overflow-y:auto;
  }
  .composer-textarea::placeholder{ color:rgba(231,234,241,.55); }

  /* Odeslat: kolečko + modrá ikonka */
  .composer-send{
    width:44px;
    height:44px;
    border-radius:999px;
    background:rgba(255,255,255,.06);
    border:1px solid var(--line);
    cursor:pointer;
    display:inline-flex;
    align-items:center;
    justify-content:center;
  }
  .composer-send svg{
    width:20px;
    height:20px;
    fill:var(--accent);
  }

  /* Chat layout */
  .chat-thread{
    overflow-y:auto;
    height:calc(100dvh - 140px);
    padding-bottom:120px;
  }
  .chat-wrap{ height:100%; display:flex; flex-direction:column; }

  /* ===== Výpis zpráv: avatary, arrow, unread tečka + bold ===== */
  #messages-list .list-item{ position:relative; }

  #messages-list .list-leading{
    width:46px;
    height:46px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
        background: #4fcdde;
    border-radius: 50%;
  }
  #messages-list .list-leading img{
    width:46px !important;
    height:46px !important;
    border-radius:50% !important;
    object-fit:cover !important;
  }

  .msg-text {margin-bottom:15px;}
  /* Iniciály místo chybějícího obrázku */
  .avatar-initials {
    width:100%;
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:15px;
    font-weight:700;
    color:#fff;
    border-radius:50%;
    letter-spacing:0.5px;
    text-transform:uppercase;
    user-select:none;
  }

  /* jméno + náhled bold jen když unread */
  #messages-list .list-title,
  #messages-list .list-sub{ font-weight:500; }

  #messages-list .list-item.is-unread .list-title,
  #messages-list .list-item.is-unread .list-sub{
    font-weight:800;
  }

  /* modrá kulička místo "Nové" */
  .unread-dot{
    width:8px;
    height:8px;
    border-radius:999px;
    background:var(--accent);
    display:inline-block;
    margin-left:10px;
    flex:0 0 auto;
  }

  .alert-dot{
    width:8px;
    height:8px;
    border-radius:999px;
    background:#ff5a5a;
    display:inline-block;
    margin-left:10px;
    flex:0 0 auto;
  }

  #messages-list .list-arrow img{
    width:18px;
    height:18px;
    opacity:.85;
  }

  /* Štítek pro nabídku */
  .badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:6px 10px;
    border-radius:999px;
    font-size:12px;
    font-weight:700;
    background:rgba(92,187,227,.18);
    color:var(--fg);
    border:1px solid rgba(92,187,227,.22);
  }
  .msg-bubble quote{
    display:block;
    margin:10px 0 0 0;
    padding-left:10px;
    border-left:3px solid rgba(92,187,227,.9);
    color:rgba(231,234,241,.70);
    font-size:12.5px;
    line-height:1.25;
    text-decoration:none!important;
  }
    .msg-bubble a   {
      text-decoration:none!important;
    }

    .msg-btn-offer--muted {
  background: rgba(255,255,255,.14) !important;
  color: #fff !important;
}


/* ==== company.messages.php #1 ==== */
  .msg-bubble-system {
    background:rgba(255,255,255,.03);/*border:1px solid rgba(255,255,255,.14);*/margin-top:10px;border-radius:18px;padding:16px 16px 14px;margin-bottom:10px;font-size:14px;color:rgba(255,255,255,.92);text-align:center;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);box-shadow:0 16px 40px rgba(0,0,0,.28);
    margin-bottom:12px; margin-top:4px;line-height:1.35;font-weight:700;letter-spacing:.2px;
  }

/* ==== company.messages.part2.php #0 ==== */
  .msg-bubble-system {
    background:rgba(255,255,255,.03);/*border:1px solid rgba(255,255,255,.14);*/margin-top:10px;border-radius:18px;padding:16px 16px 14px;margin-bottom:10px;font-size:14px;color:rgba(255,255,255,.92);text-align:center;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);box-shadow:0 16px 40px rgba(0,0,0,.28);
    margin-bottom:12px; margin-top:4px;line-height:1.35;font-weight:700;letter-spacing:.2px;
  }

/* ==== deals.php #0 ==== */
  .deals-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 48px 0;
  }
  .deals-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(255,255,255,0.15);
    border-top-color: #5cbbe3;
    border-radius: 50%;
    animation: deals-spin 0.7s linear infinite;
  }
  @keyframes deals-spin {
    to { transform: rotate(360deg); }
  }
  /* Label nad kartou s názvem podniku */
  .offer-company-label {
    display: none;
  }
  /* Skrytá karta při filtrování */
  .offer-card-preview.deal-hidden {
    display: none !important;
  }
  /* Notice nad tlačítkem "Mám zájem o spolupráci" */
  .deal-approval-notice {
    text-align: center;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    margin: 0 0 8px;
    padding: 0;
  }
  /* Hláška o omezení výpisu */
  .deals-limit-notice {
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    padding: 20px 24px 32px;
    line-height: 1.5;
  }

/* ==== company.offer.result.php #0 ==== */
#discount-reservation-view {
  padding-bottom: 0;
}
.res-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 8px 12px 0;
}
.res-topbar-spacer { flex: 1; }
.res-header {
  padding: 10px 20px 16px;
}
.res-title {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}
.res-subtitle {
  font-size: 12px;
  font-weight: 600;
  color: #aaa;
  letter-spacing: 1px;
}
.res-list {
  padding: 0 14px 110px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.res-slot-date {
  font-size: 13px;
  color: #666;
  white-space: nowrap;
}
.res-day-block {
  background: #1a1a1a;
  border-radius: 16px;
  padding: 14px 14px 12px;
}
.res-day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.res-day-name {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}
.res-day-date {
  font-size: 13px;
  color: #666;
}
.res-slot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #2a2a2a;
  border-radius: 12px;
  padding: 12px 14px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.15s;
}
.res-slot.selected {
  border-color: #7bddeb;
}
.res-slot.res-slot-closed {
  cursor: default;
  opacity: 0.5;
  pointer-events: none;
}
.res-slot-time {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}
.res-clock {
  color: #666;
  flex-shrink: 0;
}
.res-slot-avail {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}
.res-dot {
  width: 9px;
  height: 9px;
  background: #7bddeb;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.res-dot-yellow {
  background: #f5a623;
}
.res-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #000;
  padding: 12px 16px 30px;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.4);
}
.res-confirm-btn {
  display: block;
  width: 100%;
  padding: 17px;
  background: #7bddeb;
  color: #000;
  font-size: 17px;
  font-weight: 700;
  border: none;
  border-radius: 28px;
  cursor: pointer;
  letter-spacing: 0.2px;
}
.res-confirm-btn:active {
  background: #5bc8d8;
}
