/* =========================
   RESET & GLOBALS
   ========================= */

:root {
  --blue-main: #16e0ff;
  --blue-strong: #0084ff;
  --green-main: #00ff88;
  --glass-white: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(210, 235, 255, 0.55);
  --shadow-main: 0 18px 40px rgba(10, 40, 80, 0.18);
  --text-dark: #0d273a;
  --text-soft: #5c6f82;
  --radius-main: 20px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", Arial, sans-serif;
}

body {
  background: #edf3ff;
  color: var(--text-dark);
  padding-top: 100px;
}

.hidden {
  display: none !important;
}

/* =========================
   HEADER
   ========================= */

.fx-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  padding: 16px 0;
  border-bottom: 1px solid #d6e5f3;
  box-shadow: 0 8px 18px rgba(0, 50, 100, 0.1);
}

.fx-header-inner {
  width: 92%;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.fx-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}




.fx-title {
  font-size: 20px;
  font-weight: 800;
}

.fx-sub {
  font-size: 13px;
  color: var(--text-soft);
}

/* =========================
   PANELS
   ========================= */

.fx-panel {
  width: 92%;
  max-width: 960px;
  margin: 18px auto;
  padding: 22px;
  border-radius: var(--radius-main);
  background: var(--glass-white);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-main);
}

.glass {
  background: var(--glass-white);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
}

/* GIF BLOCK */
.video20 img {
  width: 100%;
  border-radius: var(--radius-main);
  box-shadow: 0 14px 26px rgba(30, 60, 120, 0.12);
}

/* =========================
   LIVE STATS
   ========================= */

.stats-block {
  padding: 18px 20px;
  margin-bottom: 20px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #d8eefa;
  box-shadow: 0 12px 26px rgba(0, 60, 120, 0.10);
}

.stats-row-main {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
}

.stats-sub {
  margin-top: 6px;
  font-size: 14px;
  color: #5c6f82;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #00c776;
  box-shadow: 0 0 8px #00ff88aa;
  animation: blink 1.4s infinite ease-in-out;
}

@keyframes blink { 50% {opacity: 0.45;} }

/* =========================
   PROFIT CHECK
   ========================= */

.profit-check {
  padding: 28px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #d8eefa;
  box-shadow: 0 18px 40px rgba(0, 80, 150, 0.12);
}

.pc-header {
  text-align: center;
  margin-bottom: 20px;
}

.pc-title {
  font-size: 24px;
  font-weight: 800;
}

.pc-sub {
  font-size: 14px;
  color: #5c6f82;
  margin-top: 4px;
}

.pc-users {
  margin-top: 8px;
  font-size: 13px;
  color: #4f6d7e;
}

.pc-dot {
  width: 10px;
  height: 10px;
  background: #00c776;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
  box-shadow: 0 0 8px #00ff88aa;
  animation: pcBlink 1.4s infinite ease-in-out;
}

@keyframes pcBlink {
  50% { opacity: 0.4; }
}

/* Start button */
.pc-start-btn {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  font-weight: 800;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  background: linear-gradient(90deg, #00ff88, #16e0ff);
  color: #003540;
  margin-top: 14px;
  box-shadow: 0 14px 28px rgba(0, 160, 200, 0.25);
  transition: 0.25s;
}

.pc-start-btn:hover {
  transform: translateY(-2px);
}

/* Steps */
.pc-step {
  opacity: 0.4;
  display: flex;
  align-items: center;
  padding: 10px 0;
  font-size: 15px;
  transition: 0.3s ease;
}

.pc-step span {
  width: 12px;
  height: 12px;
  border-radius: 50px;
  background: #cfe8ff;
  margin-right: 10px;
}

.pc-step.active {
  opacity: 1;
}

.pc-step.active span {
  background: #00e07f;
}

/* Progress */
.pc-progress-wrap {
  margin: 20px 0;
}

.pc-progress {
  width: 100%;
  height: 12px;
  background: #e4f4ff;
  border-radius: 999px;
  overflow: hidden;
}

#pc-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00ff88, #16e0ff);
  transition: width 0.4s ease-out;
}

/* Result */
.pc-goodnews {
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  color: #00c776;
  margin-bottom: 20px;
}

/* Result cards */
.pc-cards {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.pc-card {
  flex: 1;
  background: #f7fbff;
  border: 1px solid #d9eaf6;
  padding: 16px;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 10px 20px rgba(10, 70, 120, 0.08);
}

.pc-card-title {
  font-size: 13px;
  color: #5a6e82;
}

.pc-card-value {
  margin-top: 6px;
  font-size: 19px;
  font-weight: 800;
}

.pc-card-value.safe { color: #00c776; }
.pc-card-value.plan { color: #0084ff; }
.pc-card-value.profit { color: #003a4d; }

/* Next Step */
.next-btn {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 800;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #00ff88, #16e0ff);
  color: #053046;
  cursor: pointer;
  transition: 0.25s;
}

.next-btn:hover {
  transform: translateY(-2px);
}

/* NAME PANEL */
#namePanel {
  text-align: center;
  padding: 30px 20px;
  margin-bottom: 20px;
}

#userNameInput {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #cfe2f3;
  margin-top: 12px;
  font-size: 16px;
  outline: none;
}

.name-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

/* QUIZ */
#quizPanel {
  width: 92%;
  max-width: 480px;
  margin: 32px auto;
  border-radius: 22px;
  padding: 22px;
  background: #ffffff;
  border: 1px solid #dce9f5;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.quiz-header {
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 16px;
}

.quiz-q {
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 18px;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-options button {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #d6e8f8;
  background: #f4fbff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s;
}

.quiz-options button:hover {
  background: #e9f6ff;
}

.quiz-options button.correct {
  background: #00e07f;
  color: white;
  border-color: #00c26b;
  box-shadow: 0 10px 22px rgba(0, 200, 130, 0.25);
}

.quiz-progress {
  height: 10px;
  background: #e0efff;
  border-radius: 999px;
  margin: 18px 0;
  overflow: hidden;
}

#progressFill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00ff88, #16e0ff);
  transition: width 0.35s ease-out;
}

.quiz-step {
  text-align: center;
  font-size: 13px;
  color: #6b7e8e;
}

/* FINAL VIDEO */
#finalVideoPanel {
  width: 92%;
  max-width: 960px;
  margin: 30px auto;
  padding: 22px;
  border-radius: var(--radius-main);
  background: var(--glass-white);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-main);
}

.video-wrap {
  position: relative;
}

video {
  width: 100%;
  border-radius: var(--radius-main);
  background: black;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-overlay.hidden { display: none; }

.play-overlay img {
  width: 80px;
  height: 80px;
}

.final-btn {
  margin: 22px auto 0;
  display: block;
  width: 100%;
  max-width: 300px;
  padding: 14px 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, #00ff88, #16e0ff, #0084ff);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(0, 160, 180, 0.25);
  transition: 0.25s;
}

.final-btn:hover {
  transform: translateY(-2px);
}

/* MOBILE */
@media (max-width: 720px) {
  .pc-cards { flex-direction: column; }
  #quizPanel { padding: 18px; }
  .quiz-header { font-size: 20px; }
  .quiz-q { font-size: 16px; }
  .quiz-options button { padding: 12px; font-size: 14px; }
  .final-btn { max-width: 260px; }
}

#namePanel {
  text-align: center;
  padding: 40px 26px !important;
}

#userNameInput {
  margin-bottom: 22px !important; /* добавляем отступ */
}

#saveNameBtn {
  margin-top: 10px !important;  
}
.flag-emoji {
  font-size: 48px;
  display: inline-block;
  animation: waveFlag 2s ease-in-out infinite;
  transform-origin: center;
}

.logo-img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 12px 65px rgba(0, 120, 255, 0.35);
}

#finalVideoBtn {
  background: none;
  outline: none;
  border: none;
  cursor: pointer;
}

.reviews {
  width: 92%;
  max-width: 960px;
  margin: 20px auto;
  padding: 20px;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #dceefa;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.reviews-inner {
  position: relative;
  width: 100%;
  height: 140px;
}

.review-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  font-size: 17px;
  text-align: center;
  padding: 10px;
  color: #003a4d;
  line-height: 1.4em;
  font-weight: 600;
}

.review-item.active {
  opacity: 1;
}

.reviews-carousel {
  margin: 25px auto;
  overflow: hidden;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #dceefa;
  box-shadow: 0 14px 30px rgba(0,0,0,0.08);
  padding: 0;

  /* 🔥 скрываем ДО начала видео */
  display: none;
}

.reviews-wrapper {
  display: flex;
  flex-wrap: nowrap;
  transition: transform 0.6s ease;
  width: 100%;
}

.review-slide {
  flex: 0 0 100%;
  width: 100%;
  padding: 20px 22px;
  box-sizing: border-box;

  background: #ffffff;
  border: 1px solid #d6eefa;
  border-radius: 16px;

  display: flex;
  flex-direction: column;
  gap: 8px;
}



.review-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 8px;
}

.review-name {
  font-size: 16px;
  font-weight: 700;
  color: #003a4d;
}

.review-city {
  font-size: 13px;
  color: #607580;
}

.review-text {
  margin-top: 8px;
  font-size: 15px;
  color: #003a4d;
  line-height: 1.35em;
}

/* === Pulse animation for Play Button === */
#finalVideoBtn img {
  animation: pulsePlay 1.6s infinite ease-in-out;
  transform-origin: center;
}

@keyframes pulsePlay {
  0% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.18); opacity: 1; }
  100% { transform: scale(1); opacity: 0.9; }
}
