/* ==========================================================
   МАРКЕТИНГОВІ ФІШКИ (FOMO / залишок товару / відгуки)
   Підключено додатково до premium.css.
   Класи унікальні, щоб не конфліктувати з основними стилями.
   ========================================================== */
:root {
  --mk-theme: #ff5f1f;
  --mk-gradient: linear-gradient(180deg, #ff5f1f 0%, #d9381e 100%);
  --mk-glow: rgba(255, 95, 31, 0.5);
  --mk-red: #ff3b30;
  --mk-green: #00e676;
  --mk-card-bg: rgba(24, 24, 27, 0.85);
  --mk-card-border: rgba(255, 255, 255, 0.1);
}

/* ============================= */
/* FOMO-ПОВІДОМЛЕННЯ             */
/* ============================= */
.fomo-toast {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%) translateY(-160%);
  background: linear-gradient(135deg, rgba(30, 30, 35, 0.95), rgba(10, 10, 15, 0.98));
  backdrop-filter: blur(24px) saturate(120%);
  -webkit-backdrop-filter: blur(24px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.7),
    inset 0 1px 1px rgba(255, 255, 255, 0.12);
  border-radius: 50px;
  padding: 7px 16px 7px 7px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10000;
  width: auto;
  max-width: min(94vw, 410px);
  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: linear-gradient(135deg, #ff5f1f, #d9381e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
  box-shadow: 0 0 12px var(--mk-glow);
}

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

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

.fomo-desc {
  font-size: 11px;
  font-weight: 600;
  color: #bbb;
  line-height: 1.2;
}

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

/* ============================= */
/* БЛОК ВИСОКОГО ПОПИТУ (залишок)*/
/* ============================= */
.stock-strip {
  padding: 20px 18px;
  background: #0d0e11;
}
.stock-strip--order {
  background: transparent;
  padding: 0 18px 30px;
}

.demand-struct {
  background: linear-gradient(90deg, rgba(255, 95, 31, 0.14), rgba(255, 95, 31, 0.04));
  border: 1px solid rgba(255, 95, 31, 0.6);
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

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

.fire-emoji {
  font-size: 24px;
  display: inline-block;
  animation: firePulse 1.5s infinite ease-in-out;
  filter: drop-shadow(0 0 8px rgba(255, 59, 48, 0.8));
}

@keyframes firePulse {
  0%   { transform: scale(1);    filter: drop-shadow(0 0 6px rgba(255, 59, 48, 0.6)); }
  50%  { transform: scale(1.18); filter: drop-shadow(0 0 16px rgba(255, 59, 48, 1)); }
  100% { transform: scale(1);    filter: drop-shadow(0 0 6px rgba(255, 59, 48, 0.6)); }
}

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

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

.ds-desc {
  font-size: 12px;
  color: #bbb;
  line-height: 1.4;
}

.ds-highlight {
  color: #000;
  font-weight: 900;
  background: var(--mk-theme);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 13px;
}

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

.ds-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff3b30, #ff9f0a);
  border-radius: 10px;
  transition: width 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 0 14px var(--mk-glow);
}

/* ============================= */
/* СЕКЦІЯ ВІДГУКІВ               */
/* ============================= */
.marketing-reviews {
  padding: 30px 18px;
  background: #0d0e11;
  color: #fff;
}

.main-style-heading {
  font-family: "Unbounded", "Manrope", sans-serif;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  background: linear-gradient(180deg, #fff 40%, #888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Блок довіри Google Shopping */
.trust-dashboard {
  background: linear-gradient(135deg, rgba(30, 30, 35, 0.9), rgba(10, 10, 15, 0.95));
  border: 1px solid var(--mk-card-border);
  border-radius: 22px;
  padding: 18px;
  margin-bottom: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.td-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

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

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

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

.g-name {
  font-weight: 800;
  font-size: 15px;
  color: #fff;
  line-height: 1;
}

.g-status {
  font-size: 10px;
  color: #999;
  text-transform: uppercase;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

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

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

.td-score {
  font-size: 30px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.td-max {
  font-size: 12px;
  color: #555;
  font-weight: 500;
  display: block;
  margin-top: 2px;
}

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

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

.td-bar-fill {
  height: 100%;
  width: 94%;
  background: var(--mk-green);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.4);
}

.td-stats {
  font-size: 11px;
  color: #777;
  display: flex;
  justify-content: space-between;
  font-weight: 500;
}

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

/* Кнопка написати відгук */
.write-review-btn {
  border: 1px solid var(--mk-theme);
  background: rgba(255, 95, 31, 0.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 15px;
  border-radius: 16px;
  margin-bottom: 18px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 0 18px rgba(255, 95, 31, 0.1);
}

.write-review-btn:hover {
  background: rgba(255, 95, 31, 0.25);
  box-shadow: 0 0 25px rgba(255, 95, 31, 0.25);
  transform: translateY(-1px);
}

.write-review-btn:active {
  background: var(--mk-theme);
  color: #000;
  transform: scale(0.97);
}

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

#review-form-wrap.open {
  max-height: 640px;
  border: 1px solid var(--mk-theme);
  padding: 20px;
  margin-bottom: 22px;
  box-shadow: 0 0 30px rgba(255, 95, 31, 0.15);
}

.rf-title {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
  text-align: center;
}

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

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

.star-s.selected {
  color: #ffd700;
  transform: scale(1.12);
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
}

.rf-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px 14px;
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  margin-bottom: 10px;
  font-family: inherit;
  display: block;
  resize: none;
  transition: border-color 0.2s;
}

.rf-input::placeholder { color: #555; }

.rf-input:focus {
  border-color: var(--mk-theme);
  outline: none;
  background: rgba(255, 95, 31, 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 5px 20px rgba(255, 95, 31, 0.35);
  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.97); }

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

.adv-review-card {
  background: rgba(20, 20, 25, 0.8);
  border: 1px solid var(--mk-card-border);
  border-radius: 18px;
  padding: 15px;
  animation: slideInTop 0.55s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

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

@keyframes flashGreen {
  0%   { border-color: #00e676; box-shadow: 0 0 25px rgba(0, 230, 118, 0.35); }
  100% { border-color: var(--mk-card-border); box-shadow: none; }
}

.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;
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

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

.ar-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
  line-height: 1.2;
}

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

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

.ar-verified.user-badge {
  color: #fff;
  background: rgba(255, 95, 31, 0.2);
  border-color: rgba(255, 95, 31, 0.4);
}

.ar-content { padding: 0; }

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

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

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

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

.reaction-btn {
  background: transparent;
  border: none;
  color: #666;
  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: #ccc; }
.reaction-btn:active { transform: scale(0.9); }
.reaction-btn.active-like   { color: var(--mk-theme); }
.reaction-btn.active-dislike { color: var(--mk-red); }

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