/* ============================================================= */
/*  МАРКЕТИНГ-ФІШКИ (світла тема під сайт)                        */
/*  Блок високого попиту · Відгуки · FOMO-повідомлення           */
/* ============================================================= */
:root {
  --mk-accent: #1257d6;
  --mk-accent-dark: #0b43ac;
  --mk-gradient: linear-gradient(180deg, #1257d6 0%, #0b43ac 100%);
  --mk-glow: rgba(18, 87, 214, 0.28);
  --mk-red: #e23b2e;
  --mk-green: #17a34a;
  --mk-ink: #15171b;
  --mk-muted: #626873;
  --mk-line: #dfe3e9;
  --mk-surface: #f3f5f8;
  --mk-paper: #ffffff;
}

/* ============================= */
/* БЛОК ВИСОКОГО ПОПИТУ          */
/* ============================= */
.demand-struct {
  background: linear-gradient(90deg, rgba(18, 87, 214, 0.08), rgba(18, 87, 214, 0.02));
  border: 1px solid rgba(18, 87, 214, 0.35);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 22px;
}

.demand-struct .ds-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.demand-struct .ds-icon {
  width: 30px;
  text-align: center;
  flex-shrink: 0;
}

.demand-struct .fire-emoji {
  font-size: 24px;
  display: inline-block;
  animation: mkFirePulse 1.5s infinite ease-in-out;
  filter: drop-shadow(0 0 6px rgba(226, 59, 46, 0.55));
}

@keyframes mkFirePulse {
  0%   { transform: scale(1);    filter: drop-shadow(0 0 4px rgba(226, 59, 46, 0.45)); }
  50%  { transform: scale(1.18); filter: drop-shadow(0 0 12px rgba(226, 59, 46, 0.9)); }
  100% { transform: scale(1);    filter: drop-shadow(0 0 4px rgba(226, 59, 46, 0.45)); }
}

.demand-struct .ds-text-col { flex: 1; }

.demand-struct .ds-title {
  color: var(--mk-accent);
  font-weight: 900;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 3px;
}

.demand-struct .ds-desc {
  font-size: 13px;
  color: var(--mk-muted);
  line-height: 1.4;
}

.demand-struct .ds-highlight {
  color: #fff;
  font-weight: 900;
  background: var(--mk-accent);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 13px;
}

.demand-struct .ds-track {
  width: 100%;
  height: 8px;
  background: rgba(21, 23, 27, 0.08);
  border-radius: 10px;
  overflow: hidden;
}

.demand-struct .ds-fill {
  height: 100%;
  background: linear-gradient(90deg, #e23b2e, #ff8a3d);
  border-radius: 10px;
  transition: width 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 0 10px rgba(226, 59, 46, 0.35);
}

/* ============================= */
/* СЕКЦІЯ ВІДГУКІВ               */
/* ============================= */
.reviews_section {
  padding-block: var(--section-space, 88px);
  background: var(--mk-surface);
}

.reviews_inner {
  max-width: 560px;
  margin-inline: auto;
}

/* Блок довіри Google Shopping */
.trust-dashboard {
  background: var(--mk-paper);
  border: 1px solid var(--mk-line);
  border-radius: 20px;
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: 0 12px 34px rgba(21, 23, 27, 0.08);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.trust-dashboard .td-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--mk-line);
}

.trust-dashboard .google-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.trust-dashboard .g-logo-svg {
  width: 36px;
  height: 36px;
  min-width: 36px;
}

.trust-dashboard .g-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.trust-dashboard .g-name {
  font-weight: 800;
  font-size: 15px;
  color: var(--mk-ink);
  line-height: 1;
}

.trust-dashboard .g-status {
  font-size: 10px;
  color: var(--mk-muted);
  text-transform: uppercase;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.trust-dashboard .g-check {
  color: var(--mk-green);
  font-size: 11px;
  font-weight: 900;
}

.trust-dashboard .td-rating-box { text-align: right; }

.trust-dashboard .td-score {
  font-size: 30px;
  font-weight: 900;
  color: var(--mk-ink);
  line-height: 1;
}

.trust-dashboard .td-max {
  font-size: 12px;
  color: var(--mk-muted);
  font-weight: 500;
  display: block;
  margin-top: 2px;
}

.trust-dashboard .td-bottom-row {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.trust-dashboard .td-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(21, 23, 27, 0.08);
  border-radius: 10px;
  overflow: hidden;
}

.trust-dashboard .td-bar-fill {
  height: 100%;
  width: 94%;
  background: var(--mk-green);
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(23, 163, 74, 0.3);
}

.trust-dashboard .td-stats {
  font-size: 11px;
  color: var(--mk-muted);
  display: flex;
  justify-content: space-between;
  font-weight: 500;
}

.trust-dashboard .td-green {
  color: var(--mk-green);
  font-weight: 700;
}

/* Кнопка написати відгук */
.write-review-btn {
  border: 1px solid var(--mk-accent);
  background: rgba(18, 87, 214, 0.06);
  color: var(--mk-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 15px;
  border-radius: 14px;
  margin-bottom: 18px;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.write-review-btn:hover {
  background: rgba(18, 87, 214, 0.12);
  transform: translateY(-1px);
}

.write-review-btn:active {
  background: var(--mk-accent);
  color: #fff;
  transform: scale(0.98);
}

/* Форма відгуку */
#review-form-wrap {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s ease;
  background: var(--mk-paper);
  border-radius: 18px;
  margin-bottom: 10px;
}

#review-form-wrap.open {
  max-height: 660px;
  border: 1px solid var(--mk-line);
  padding: 20px;
  margin-bottom: 22px;
  box-shadow: 0 12px 30px rgba(21, 23, 27, 0.08);
}

.rf-title {
  color: var(--mk-ink);
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 14px;
  text-align: center;
}

.star-select {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}

.star-s {
  font-size: 30px;
  color: #d3d8e0;
  cursor: pointer;
  transition: color 0.15s, transform 0.15s;
  user-select: none;
  line-height: 1;
}

.star-s.selected {
  color: #f6b100;
  transform: scale(1.12);
}

.rf-input {
  width: 100%;
  background: var(--mk-surface);
  border: 1px solid var(--mk-line);
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--mk-ink);
  font-size: 14px;
  margin-bottom: 10px;
  font-family: inherit;
  display: block;
  resize: none;
  transition: border-color 0.2s, background 0.2s;
}

.rf-input::placeholder { color: #9aa2ae; }

.rf-input:focus {
  border-color: var(--mk-accent);
  outline: none;
  background: rgba(18, 87, 214, 0.04);
}

.rf-submit {
  background: var(--mk-gradient);
  color: #fff;
  font-weight: 800;
  border: none;
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  box-shadow: 0 8px 20px rgba(18, 87, 214, 0.28);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: opacity 0.2s, transform 0.1s;
}

.rf-submit:hover { opacity: 0.92; }
.rf-submit:active { transform: scale(0.98); }

/* Список відгуків */
.reviews-feed {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.adv-review-card {
  background: var(--mk-paper);
  border: 1px solid var(--mk-line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(21, 23, 27, 0.05);
  animation: mkSlideInTop 0.55s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes mkSlideInTop {
  from { opacity: 0; transform: translateY(-22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.new-review-highlight-green {
  animation: mkSlideInTop 0.55s cubic-bezier(0.175, 0.885, 0.32, 1.275),
             mkFlashAccent 2.5s ease-out 0.2s forwards;
}

@keyframes mkFlashAccent {
  0%   { border-color: var(--mk-accent); box-shadow: 0 0 20px rgba(18, 87, 214, 0.28); }
  100% { border-color: var(--mk-line); box-shadow: 0 8px 24px rgba(21, 23, 27, 0.05); }
}

.ar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 11px;
}

.ar-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(21, 23, 27, 0.18);
  flex-shrink: 0;
}

.ar-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.ar-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--mk-ink);
  margin-bottom: 3px;
  line-height: 1.2;
}

.ar-stars {
  color: #f6b100;
  font-size: 13px;
  letter-spacing: 1px;
  line-height: 1;
}

.ar-verified {
  margin-left: auto;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--mk-green);
  display: flex;
  align-items: center;
  gap: 3px;
  background: rgba(23, 163, 74, 0.1);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(23, 163, 74, 0.2);
  white-space: nowrap;
  flex-shrink: 0;
}

.ar-verified.user-badge {
  color: var(--mk-accent);
  background: rgba(18, 87, 214, 0.1);
  border-color: rgba(18, 87, 214, 0.25);
}

.ar-content { padding: 0; }

.ar-text {
  font-size: 13px;
  line-height: 1.55;
  color: #4a505a;
  margin: 0;
}

.ar-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--mk-line);
}

.ar-date {
  font-size: 10px;
  color: #9aa2ae;
  font-weight: 500;
}

.ar-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}

.reaction-btn {
  background: transparent;
  border: none;
  color: var(--mk-muted);
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s, transform 0.15s;
  font-family: inherit;
  font-weight: 600;
  padding: 3px 0;
}

.reaction-btn:hover { color: var(--mk-ink); }
.reaction-btn:active { transform: scale(0.9); }
.reaction-btn.active-like    { color: var(--mk-accent); }
.reaction-btn.active-dislike { color: var(--mk-red); }

/* ============================= */
/* FOMO-ПОВІДОМЛЕННЯ             */
/* ============================= */
.fomo-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-160%);
  background: var(--mk-paper);
  border: 1px solid var(--mk-line);
  box-shadow: 0 18px 40px rgba(21, 23, 27, 0.18);
  border-radius: 50px;
  padding: 7px 16px 7px 7px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10000;
  width: auto;
  max-width: 94%;
  min-width: 280px;
  transition:
    transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.45s ease;
  opacity: 0;
  pointer-events: none;
}

.fomo-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.fomo-icon {
  width: 40px;
  height: 40px;
  background: var(--mk-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(18, 87, 214, 0.35);
}

.fomo-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.fomo-title {
  font-size: 13px;
  font-weight: 900;
  color: var(--mk-ink);
  margin-bottom: 2px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fomo-desc {
  font-size: 11px;
  font-weight: 600;
  color: var(--mk-muted);
  line-height: 1.2;
}

.fomo-time {
  font-size: 10px;
  color: var(--mk-accent);
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .fomo-toast { min-width: 240px; max-width: 96%; }
}
