@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600&display=swap');


* {
  box-sizing: border-box;
  font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont;
}
body {
  margin: 0;
 background-image: url('https://ygsva.io/wp-content/uploads/2026/02/background.png'); /* <-- твоята снимка */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.chat-wrapper {
  position: relative;
  width: 420px;
  height: 600px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}

.chat-header{
  padding:16px;
  border-bottom:1px solid #eee;

  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:10px;
}

#headerActions{
  display:none;
  align-items:center;
  gap:10px;
  flex-shrink:0;
}

.brand{
  font-weight:600;
  font-size:16px;
}

/* десните бутони (Share + X) */
#headerActions{
  display:none;          /* показва се само при embed=1 + mobile чрез JS */
  align-items:center;
  gap:10px;
}

.chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  
  background-image: url('https://ygsva.io/wp-content/uploads/2026/01/8c98994518b575bfd8c949e91d20548b.jpg'); /* WhatsApp pattern */
  background-repeat: repeat;
  background-size: 680px 680px; /* контролираш „чертите“ */
  background-position: center;
}

.message {
  margin-bottom: 12px;
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 18px;
}

.message a {
  color: #4f46e5;
  text-decoration: underline;
  font-weight: 500;
}


.message.bot {
  background: #f1f1f1;
  color: #111;
  margin-right: auto;
  font-size: 18px;
}

.message.user {
  background: #4f46e5;
  color: #fff;
  margin-left: auto;
  font-size: 17px;
}


.message.system {
  background: #f1f1f1;
  color: #333;
}

.chat-input {
  display: flex;
  border-top: 1px solid #eee;
   overflow-x: hidden; /* ✅ край на страничното избутване */
}

@media (min-width: 769px) {
  .chat-input {
    gap: 3px; /* разстояние между микрофона и стрелката */
    padding: 0px;
  }
}

.chat-input input {
  flex: 1;
  min-width: 0; /* ✅ КРАЙ НА СТРАНИЧНИЯ СКРОЛ */
  border: none;
  padding: 14px;
  font-size: 16px;
}

.chat-input input:focus {
  outline: none;
}

.chat-input button {
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  padding: 0;
  margin: 0;

  background: #4f46e5;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  appearance: none;
  -webkit-tap-highlight-color: transparent;
}



/* === MOBILE FULLSCREEN CHAT === */
@media (max-width: 768px) {

  body {
    margin: 0;
    padding: 0;
    background: #f5f5f7;
  }

  .chat-wrapper {
    width: 100vw;
    height: 100dvh; /* важно за mobile browsers */
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
  }

  .chat-header {
    border-radius: 0;
    padding: 14px 16px;
    font-size: 16px;
  }

  .chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
     background-image: url('https://ygsva.io/wp-content/uploads/2026/01/8c98994518b575bfd8c949e91d20548b.jpg');
  background-repeat: repeat;
  background-size: 680px 680px; /* контролираш гъстотата */
  background-position: center;
  }

  /* === Mobile: move Share button to top-right === */
  #btnShare {
    bottom: auto !important;
    top: 14px;
    right: 14px;
    z-index: 1200;
  }

  #sharePopup {
    bottom: auto !important;
    top: 70px;
    right: 14px;
  }

  .chat-input {
    padding: 12px;
    gap: 8px;
  }

  .chat-input input {
    font-size: 16px; /* важно – да не zoom-ва iOS */
    padding: 12px 14px;
  }

  .send-btn {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
  
  .message {
  max-width: 80%;
  margin-bottom: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 16px;
}

.message.user {
  background: #4f46e5;
  color: #fff;
  margin-left: auto;
}

.message.bot {
  background: #f1f1f1;
  color: #111;
  margin-right: auto;
}

.product-card {
  background: #f5f5f5;
  border-radius: 10px;
  padding: 10px;
  margin: 10px 0;
  display: flex;
  gap: 10px;
  align-items: center;
}

.product-card img {
  width: 60px;
  height: 60px;
  border-radius: 6px;
}
}
/* ======================
   PRODUCT LIST (GLOBAL)
====================== */
.product-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 12px 0;
}

/* ======================
   PRODUCT CARD (GLOBAL)
====================== */
.product-card {
  background: #f7f7f9;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid #eee;
}

.product-card img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-info h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.product-info .price {
  font-size: 15px;
  font-weight: 600;
  color: #111;
}

.product-info a {
  font-size: 15px;
  color: #4f46e5;
  text-decoration: none;
}

/* ======================
   PRODUCT CARD – MOBILE ONLY
====================== */
@media (max-width: 768px) {

  .product-card {
    background: #f7f7f9;
    border-radius: 14px;
    padding: 14px;
    display: flex;
    gap: 12px;
    align-items: center;
    border: 1px solid #e6e6eb;
  }

  .product-card img {
    width: 64px;
    height: 64px;
    border-radius: 10px;
  }

  .product-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
  }

  .product-info h4 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
  }

  .product-info .price {
    font-size: 15px;
    font-weight: 600;
    color: #111;
  }

.product-info .desc {
    display: block;
    font-size: 15px;
    color: #555;
    line-height: 1.4;
    margin: 4px 0 6px;
  }

  .product-info a {
    margin-top: 6px;
    align-self: flex-start;
    background: #4f46e5;
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
  }
}

  /* 🔘 BUTTON вместо линк – САМО MOBILE */
  .product-info a {
    margin-top: 6px;
    align-self: flex-start;
    background: #4f46e5;
    color: #fff;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
  }

/* === All events table – column alignment fix === */
table {
    table-layout: fixed;
    width: 100%;
}

th, td {
    padding: 8px 10px;
    vertical-align: top;
}

/* Date */
th:nth-child(1),
td:nth-child(1) { width: 140px; }

/* Client */
th:nth-child(2),
td:nth-child(2) { width: 110px; }

/* Event */
th:nth-child(3),
td:nth-child(3) { width: 90px; }

/* Language */
th:nth-child(4),
td:nth-child(4) { width: 90px; }

/* Social */
th:nth-child(5),
td:nth-child(5) { width: 110px; }

/* IP */
th:nth-child(6),
td:nth-child(6) { width: 120px; }

/* User Agent */
th:nth-child(7),
td:nth-child(7) {
    width: 360px;
    max-width: 360px;
    word-break: break-word;
    white-space: normal;
    line-height: 1.35;
}

/* ======================
   SKELETON UI
====================== */
.skeleton-card {
  animation: pulse 1.2s infinite ease-in-out;
}

.skeleton-img {
  width: 100%;
  height: 70px;
  background: #e5e7eb;
  border-radius: 8px;
}

.skeleton-line {
  height: 12px;
  background: #e5e7eb;
  border-radius: 4px;
  margin-top: 8px;
}

.skeleton-line.title { width: 80%; }
.skeleton-line.price { width: 40%; }

.skeleton-btn {
  height: 32px;
  width: 60%;
  background: #e5e7eb;
  border-radius: 8px;
  margin-top: 10px;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.4; }
  100% { opacity: 1; }
}

/* ======================
   SCROLL HINT
====================== */

.scroll-hint {
  position: absolute;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 16px;
  color: rgba(0,0,0,0.45);
  animation: hint 1.8s ease-in-out;
  pointer-events: none;
  z-index: 10;
}

@keyframes hint {
  0%   { opacity: 0; transform: translate(-50%, 6px); }
  50%  { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -6px); }
}
@media (min-width: 769px) {
  .scroll-hint {
    display: none;
  }
}
/* === HIDE SCROLL HINT ON DESKTOP === */
@media (min-width: 769px) {
  .scroll-hint {
    display: none !important;
  }
}

.promo-card {
  background: #ffffff;              /* ← КРИТИЧНО за mobile */
  border-radius: 14px;
  padding: 14px;
  margin: 10px 8px;                  /* ← mobile-friendly */
  font-family: 'Montserrat', sans-serif;

  /* визуален lift */
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  border-left: 3px solid #6a3df0;    /* GPT Seller accent */
}

/* MOBILE FIX (задължително) */
@media (max-width: 768px) {
  .promo-card {
    background: #ffffff;             /* force bg */
    margin-left: 12px;
    margin-right: 12px;
  }
}


/* 🎁 Заглавие */
.promo-title {
  font-size: 18px;       /* ⬅ увеличи от тук */
  font-weight: 700;
  margin-bottom: 6px;
  color: #6a35ff;
}

/* Основен текст */
.promo-text {
  font-size: 16px;       /* ⬅ основен текст */
  line-height: 1.45;
  color: #333;
}

/* Таймер */
.promo-timer {
  font-size: 15px;       /* ⬅ по-малък, secondary */
  color: #888;
  margin-top: 6px;
}

@media (max-width: 480px) {
  .promo-title {
    font-size: 17px;
  }

  .promo-text {
    font-size: 16px;
  }

  .promo-timer {
    font-size: 15px;
  }
}

/* =========================
   HEADER ACTIONS (CTA icons)
   phone / email / share / close
========================= */
.chat-header{
  display:flex;
  align-items:center;
}

#headerActions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  margin-left:auto;
}

#headerActions button{
  width:42px;
  height:42px;
  padding:0;
  border:0 !important;
  outline:0 !important;
  border-radius:50%;
  background:#fff;
  box-shadow:0 2px 6px rgba(0,0,0,0.15);
  cursor:pointer;

  display:flex;
  align-items:center;
  justify-content:center;

  line-height:1;
}

#headerActions button svg{
  width:22px;
  height:22px;
  display:block;
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
}

#langBadge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 8px;
  border-radius:999px;
  background:rgba(79,70,229,.10);
  color:#3a33b5;
  font-weight:700;
  font-size:12px;
  user-select:none;
}

/* X само при embed=1 */
body[data-embed="0"] #btnCloseTop{
  display:none !important;
}


/* ако някой SVG има вграден кръг (circle) -> махаме го (това маха “черния борд”) */
#headerActions button svg circle{
  display:none !important;
}

#btnCloseTop{
  font-size:22px;
  line-height:1;
}
/* === SAFE PATCH: unify mic/send with header action style === */
#micBtn,
#sendBtn {
  width: 42px !important;
  height: 42px !important;
  border: none !important;
  border-radius: 50% !important;
  background: #fff !important;
  color: #7917ea !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
  cursor: pointer;
  flex-shrink: 0;
}

#micBtn:hover,
#sendBtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.18) !important;
}

/* keeps spacing clean on desktop/mobile */
.chat-input {
  gap: 8px;
  padding: 8px 10px;
}
/* По-големи и съразмерни mic/send бутони + иконки */
#micBtn,
#sendBtn {
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  background: #fff !important;
  color: #7917ea !important;
  border: none !important;
  box-shadow: 0 2px 6px rgba(0,0,0,.15) !important;
  line-height: 1 !important;
  font-size: 20px !important;   /* по-голям символ вътре */
  padding: 0 !important;
}

/* Стрелката да е визуално по-голяма и центрирана */
#sendBtn {
  font-size: 22px !important;
  font-weight: 700 !important;
}

/* Микрофонът също една идея по-ясен */
#micBtn {
  font-size: 20px !important;
}
/* ===== MOBILE FIX: X button always visible ===== */
@media (max-width: 768px) {
  .chat-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 10px;
    overflow: hidden;         /* без хоризонтален скрол */
  }

  .brand{
    min-width: 0;             /* позволява свиване */
    flex: 1 1 auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;  /* OmniAI... ако няма място */
    font-size: 15px;
  }

  #headerActions{
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    flex: 0 0 auto;
  }

  #headerActions button{
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }

  #headerActions button svg{
    width: 20px;
    height: 20px;
  }
}
/* === Services cards CTA (NoLimitNet) === */
.card-cta-row{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:10px;
}

.btn-pill{
  height:36px;
  padding:0 14px;
  border:none;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  cursor:pointer;
  font-weight:600;
  font-size:14px;
  line-height:1;
  transition:all .18s ease;
  box-shadow:0 2px 6px rgba(0,0,0,.12);
}

.btn-pill:hover{
  transform:translateY(-1px);
  box-shadow:0 4px 10px rgba(0,0,0,.16);
}

/* като header бутоните отгоре (бяло + лилава иконка/текст) */
.btn-ghost{
  background:#fff;
  color:#7917ea;
  border:1px solid rgba(121,23,234,.18);
}

/* основен CTA (URL) */
.btn-primary{
  background:#4f46e5;
  color:#fff;
}

/* optional: ако искаш иконка style spacing */
.btn-pill i, .btn-pill svg{
  margin-right:6px;
}
/* CTA URL button (Open offer) -> red, same style as other pills */
.btn.btn-pill.btn-primary{
  background: #ef4444 !important;      /* red */
  color: #fff !important;
  border: 1px solid #ef4444 !important;
  box-shadow: 0 2px 6px rgba(239,68,68,.28) !important;
}

.btn.btn-pill.btn-primary:hover{
  background: #dc2626 !important;      /* darker red on hover */
  border-color: #dc2626 !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.btn.btn-pill.btn-primary:active{
  transform: translateY(0);
}
/* редът с бутоните да не чупи на нов ред */
.card-cta-row{
  display:flex !important;
  gap:8px !important;
  flex-wrap:nowrap !important;
  align-items:center !important;
}

/* всички pill бутони еднакви по форма/височина */
.btn.btn-pill{
  height:34px !important;
  padding:0 14px !important;
  border-radius:999px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  white-space:nowrap !important;
  font-weight:600 !important;
  line-height:1 !important;
}

/* червеният URL бутон – същата форма като другите */
.btn.btn-pill.btn-primary{
  background:#ef4444 !important;
  color:#fff !important;
  border:1px solid #ef4444 !important;
  box-shadow:0 2px 6px rgba(239,68,68,.25) !important;
}

.btn.btn-pill.btn-primary:hover{
  background:#dc2626 !important;
  border-color:#dc2626 !important;
}

/* CTA URL бутон в service cards */
.card-cta-row .btn-pill.btn-primary{
  background: #ef4444 !important;   /* червен */
  color: #fff !important;
  border: 1px solid #ef4444 !important;
  border-radius: 999px !important;  /* същия овал */
  height: 36px !important;
  padding: 0 14px !important;
  font-weight: 700 !important;
  line-height: 36px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2px 6px rgba(0,0,0,.12) !important;
}

.card-cta-row .btn-pill.btn-primary:hover{
  filter: brightness(.96);
}
.card-cta-row .btn-pill.btn-primary{
  position: relative;
  top: -2px;                      /* пробвай -1px / -2px / -3px */
}

.message {
  overflow: hidden;
  box-sizing: border-box;
}

.message .chat-link {
  display: block;
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.35;
}


