body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  background: #f7faff;
  color: #1a2b3a;
}
.navbar {
  background: #f5faff;
  border-bottom: 1px solid #ddeafc;
  box-shadow: 0 1px 4px #d4e8ff33;
  padding: 8px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar-inner {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  flex-wrap: wrap;
}
.navbar a {
  color: #3177c9;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05em;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.2s;
}
.navbar a.active,
.navbar a:hover {
  background: #e4effd;
  color: #225a99;
  font-weight: 700;
}
.logo {
  font-weight: 700;
  font-size: 1.28em;
  color: #225a99;
  letter-spacing: -1px;
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}
.logo img {
  width: 28px; height: 28px;
  filter: drop-shadow(0 1px 2px #d6e3ff);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-user {
  font-weight: 600;
  color: #333;
  margin: 0 8px;
  background: #f0f6ff;
  border-radius: 7px;
  padding: 6px 12px;
}

/* --- Контейнеры --- */
.container {
  max-width: 920px;
  margin: 40px auto;
  padding: 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 32px #3177c933;
}
h1, h2 {
  text-align: center;
  color: #3177c9;
  margin-bottom: 20px;
}
.btn {
  background: #3177c9;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 0.92em;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s;
  display: inline-block;
}
.btn:hover {
  background: #265ea8;
}
.btn-secondary {
  background: #2e9f65;
}
.btn-secondary:hover {
  background: #248054;
}
.arrow-up {
  color: green;
  font-weight: bold;
  margin-left: 4px;
}
.arrow-down {
  color: red;
  font-weight: bold;
  margin-left: 4px;
}

/* --- Таблицы --- */
.table-scroll {
  width: 100%;
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px; /* чтобы не схлопывалась на мобилках */
  background: #fff;
}
th, td {
  padding: 14px 10px;
  text-align: center;
  border-bottom: 1px solid #e3eaf5;
  font-size: 0.96em;
}
th {
  background: #f0f6ff;
  color: #2c5d91;
  font-weight: 600;
}
tr:hover {
  background: #f9fbff;
}

/* --- Адаптивность --- */
@media (max-width: 900px) {
  .container { padding: 6vw 3vw 24px 3vw; }
}
@media (max-width: 720px) {
  .navbar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 6px;
    border-top: 1px solid #ddeafc;
    border-bottom: 1px solid #ddeafc;
  }
  .nav-links a,
  .nav-user {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border-bottom: 1px solid #ddeafc;
    text-align: left;
  }
  .nav-links a:last-child {
    border-bottom: none;
  }
  .container {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 5vw;
  }
  table, th, td {
    font-size: 0.9em;
  }
  .btn {
    padding: 6px 10px;
    font-size: 0.88em;
  }
}
@media (max-width: 600px) {
  .table-scroll { margin: 0 -3vw; }
  table { min-width: 480px; font-size: 0.98em; }
  th, td { padding: 11px 8px; }
}
@media (max-width: 480px) {
  .container {
    padding: 4vw 3vw;
  }
  .nav-links a, .nav-user {
    padding: 12px 14px;
    font-size: 1em;
  }
  th, td {
    padding: 10px 8px;
  }
  .btn {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }
}




/* Общий фон с лёгким шахматным паттерном */
.learning-page {
  background: #f7faff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80" fill="%23e0e7ff"><text x="0" y="15">♞</text></svg>') repeat;
  padding: 20px;
  border-radius: 16px;
}

#video-btn,
#video-btn-mobile {
  margin-bottom: 14px; /* отступ вниз */
}


/* Заголовки */
.learning-page h1 {
  text-align: center;
  color: #3177c9;
  margin-bottom: 10px;
}
.learning-page .subtitle {
  text-align: center;
  font-size: 1.1em;
  color: #555;
  margin-bottom: 30px;
}

/* Блоки */
.learning-page .block {
  background: linear-gradient(145deg, #ffffff, #f1f5ff);
  border-radius: 20px;
  box-shadow: 0 6px 24px #c2dffc44;
  padding: 28px;
  margin-bottom: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.learning-page .block:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px #a5c7ff66;
}

/* Иконки в круге */
.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #3177c9;
  color: white;
  font-size: 1.2em;
  margin-right: 8px;
}
.icon-circle.gold {
  background: #d4af37;
  color: white;
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #3177c9;
  color: #fff;
  padding: 12px 22px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 16px;
  transition: background 0.2s ease, transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 12px #3177c988;
}
.btn:hover {
  background: #265ea8;
  box-shadow: 0 6px 16px #3177c9aa;
}
.btn-pulse {
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(49, 119, 201, 0.7); }
  70% { box-shadow: 0 0 0 12px rgba(49, 119, 201, 0); }
  100% { box-shadow: 0 0 0 0 rgba(49, 119, 201, 0); }
}
.chess-icon {
  display: inline-block;
  transition: transform 0.3s ease;
}
.btn:hover .chess-icon {
  animation: bounceIcon 0.6s ease;
}
@keyframes bounceIcon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Видео блок */
#video-container {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: max-height 0.6s ease, opacity 0.6s ease, transform 0.6s ease;
}
#video-container.video-visible {
  max-height: 1000px;
  opacity: 1;
  transform: translateY(0);
}
#video-container video {
  max-width: 720px; /* ограничиваем ширину */
  width: 100%;
  margin: 0 auto;
  display: block;
}

/* ---------- MY_PROFILE ---------- */
.profile-deltas {
  margin: 28px 0 24px 0;
}
.profile-deltas-title {
  font-weight: 600;
  color: #3177c9;
  margin-bottom: 12px;
}
.profile-deltas-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96em;
}
.profile-deltas-table th {
  padding: 10px;
  border: 1px solid #dbe8f7;
  background: #f0f6ff;
  color: #2c5d91;
}
.profile-deltas-table td {
  padding: 10px;
  text-align: center;
  border: 1px solid #dbe8f7;
}
.profile-deltas-table td.green { color: green; }
.profile-deltas-table td.red { color: red; }
.profile-deltas-table td.blue { color: #3177c9; }

.btn-group {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 22px 0;
}
.switch-btn {
  padding: 12px 26px;
  border: none;
  border-radius: 11px;
  background: #e0ebfb;
  color: #3177c9;
  font-size: 1.03em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.switch-btn.active {
  background: #3177c9;
  color: #fff;
  box-shadow: 0 3px 10px #3177c944;
}

.profile-img {
  display: block;
  margin: 0 auto 20px auto;
  max-width: 480px;
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 3px 18px #a0b4da1f;
}

.empty-msg {
  text-align: center;
  color: #888;
  font-size: 1.03em;
  margin-top: 26px;
}

.profile-section { display: none; }
.profile-section.active { display: block; }

.scale-block {
  margin: 22px auto 28px auto;
  max-width: 480px;
  padding: 0 10px;
}
.scale-label {
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 1em;
}
.scale-desc {
  font-size: 0.92em;
  color: #444;
  margin: 3px 0 8px 0;
}
.scale-bar-outer {
  background: #e3edf8;
  border-radius: 7px;
  height: 14px;
  position: relative;
  width: 100%;
}
.scale-bar-fill {
  height: 100%;
  border-radius: 7px;
  transition: width .6s;
}
.scale-percent {
  font-size: 0.94em;
  font-weight: 500;
  color: #3177c9;
  margin-top: 3px;
  text-align: right;
}
.green { background: linear-gradient(90deg,#31d46e 0%,#b1e3ff 100%); }
.blue { background: linear-gradient(90deg,#4cafff 0%,#b1e3ff 100%); }
.orange { background: linear-gradient(90deg,#ffe157 0%, #fd9906 90%); }
.red { background: linear-gradient(90deg,#ff4d7e 0%,#fd9906 100%); }

/* ---------- HISTORY PAGE ---------- */
.history-container {
  max-width: 920px;
  margin: 40px auto;
  padding: 0 16px;
}

.history-container h1 {
  color: #3177c9;
  font-size: 1.6em;
  margin-bottom: 20px;
  text-align: center;
}

.table-scroll {
  overflow-x: auto;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

.history-table th,
.history-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e8f0fb;
  text-align: left;
}

.history-table th {
  background: #f0f6ff;
  color: #2c5d91;
  font-weight: 600;
}

.history-table tr:last-child td {
  border-bottom: none;
}

.history-table .btn {
  display: inline-block;
  background: #3177c9;
  color: #fff;
  padding: 8px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.95em;
  font-weight: 500;
  transition: background 0.2s ease, transform 0.15s ease;
}

.history-table .btn:hover {
  background: #265ea8;
  transform: translateY(-1px);
}

/* --- Глобальный лоадер --- */
#global-loader {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.96);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  font-family: 'Segoe UI', Arial, sans-serif;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#global-loader.active {
  opacity: 1;
  pointer-events: auto;
}

.loading-animation span {
  display: inline-block;
  font-size: 2.4em;
  margin: 0 4px;
  animation: bounce 1s infinite;
}
.loading-animation span:nth-child(2) { animation-delay: 0.1s; }
.loading-animation span:nth-child(3) { animation-delay: 0.2s; }
.loading-animation span:nth-child(4) { animation-delay: 0.3s; }
.loading-animation span:nth-child(5) { animation-delay: 0.4s; }

.loading-text {
  margin-top: 14px;
  font-size: 1.15em;
  color: #3177c9;
  font-weight: 500;
}

@keyframes bounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-12px); }
}


/* ==== COMPARE WOW v3 ==== */

/* Контейнер */
.compare-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
}

/* Заголовок */
.compare-container h1 {
    text-align: center;
    font-size: 1.9em;
    font-weight: 700;
    color: #1d5bbf;
    margin-bottom: 8px;
    text-shadow: 0 2px 6px rgba(29,91,191,0.1);
}

/* Подзаголовок */
.result-header {
    text-align: center;
    font-size: 1em;
    margin-bottom: 16px;
    color: #555;
}

/* Кнопки режимов */
.ai-btn {
    border: none;
    padding: 10px 18px;
    margin: 0 4px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 600;
    transition: all 0.25s ease;
    background: linear-gradient(145deg, #f1f4ff, #e1e6f9);
    box-shadow: 2px 2px 6px rgba(0,0,0,0.08),
                -2px -2px 6px rgba(255,255,255,0.9);
}
.ai-btn:hover {
    transform: translateY(-1px);
}
.ai-btn.active {
    background: linear-gradient(145deg, #3177c9, #255ba0);
    color: white;
}
.ai-btn.love.active {
    background: linear-gradient(145deg, #d61e4d, #b9143d);
}
.ai-btn.team.active {
    background: linear-gradient(145deg, #31d46e, #1f8a53);
}

/* Бейдж совместимости */
.compat-badge {
    background: white;
    padding: 20px;
    border-radius: 14px;
    margin: 20px 0;
    font-size: 1.2em;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    animation: pulseGlow 2.5s infinite;
}
.compat-badge span {
    font-size: 1.4em;
    display: block;
    margin-top: 4px;
}
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0px rgba(49,119,201,0.3); }
    50% { box-shadow: 0 0 15px rgba(49,119,201,0.3); }
}

/* Карточка шкалы */
.scale-bar-block {
    background: white;
    padding: 14px 16px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
    margin-bottom: 12px;
    animation: fadeInUp 0.6s ease forwards;
}
.scale-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    margin-bottom: 8px;
    color: #222;
}
.scale-label {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Прогресс бар */
.scale-bar-outer {
    background: #edf2f7;
    border-radius: 30px;
    height: 14px;
    overflow: hidden;
}
.scale-bar-fill {
    height: 100%;
    border-radius: 30px;
    animation: fillBar 1.2s ease forwards;
}
@keyframes fillBar {
    from { width: 0; }
}
.scale-bar-fill.green { background: linear-gradient(90deg, #43e97b, #38f9d7); }
.scale-bar-fill.blue { background: linear-gradient(90deg, #4facfe, #00f2fe); }
.scale-bar-fill.orange { background: linear-gradient(90deg, #f7971e, #ffd200); }
.scale-bar-fill.red { background: linear-gradient(90deg, #ff5f6d, #ffc371); }

.scale-percent {
    font-size: 0.9em;
    font-weight: 500;
    color: #3177c9;
}

/* Подсказки */
.scale-info {
    position: relative;
    cursor: pointer;
}
.scale-info:hover::after {
    content: attr(title);
    position: absolute;
    top: 22px;
    left: 0;
    background: rgba(34,34,34,0.9);
    backdrop-filter: blur(4px);
    color: white;
    font-size: 0.8em;
    padding: 6px 8px;
    border-radius: 6px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

/* GPT блок */
.gpt-card {
    background: #f8faff;
    padding: 14px;
    border-radius: 10px;
    margin-top: 14px;
    font-size: 0.95em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.gpt-card.advice {
    background: #f9fff8;
}

/* Анимации */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Подсказка при наведении на название шкалы */
.scale-label[title] {
    position: relative;
    cursor: help;
}
.scale-label[title]:hover::after {
    content: attr(title);
    position: absolute;
    left: 0;
    bottom: 125%;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 6px 10px;
    font-size: 0.85em;
    border-radius: 8px;
    white-space: normal;
    max-width: 280px;
    line-height: 1.3em;
    box-shadow: 0 3px 10px rgba(0,0,0,0.25);
    opacity: 1;
    transform: translateY(-2px);
    pointer-events: none;
    animation: fadeInTooltip 0.2s ease forwards;
    z-index: 10;
}
@keyframes fadeInTooltip {
    from { opacity: 0; transform: translateY(0px); }
    to { opacity: 1; transform: translateY(-2px); }
}

/* График */
.graph-wrapper {
    text-align: center;
    margin: 18px 0 32px 0;
}
.graph-wrapper img {
    max-width: 100%;
    height: auto;
    display: inline-block;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.graph-legend {
    color: #888;
    font-size: 0.92em;
    margin-top: 6px;
    text-align: center;
}

/* Мобильная версия — центрирование графика */
@media (max-width: 600px) {
    .graph-wrapper img {
        width: 100%;
        max-width: 380px;
    }
}

.compare-container form {
    margin: 0 6px; /* горизонтальный отступ между кнопками */
}

/* График на компьютере — уменьшить */
@media (min-width: 1024px) {
    .graph-wrapper img {
        max-width: 600px; /* вместо почти полной ширины */
    }
}

/* История анализов */
.history-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.history-container h1 {
  text-align: center;
  color: #3177c9;
  font-size: 1.8em;
  margin-bottom: 24px;
  font-weight: 700;
}

.history-card {
  background: #fff;
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 18px;
  box-shadow: 0 4px 14px rgba(49, 119, 201, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.history-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(49, 119, 201, 0.12);
}

.history-label {
  font-weight: 600;
  font-size: 0.95em;
  margin-bottom: 2px;
  color: #3177c9;
}

.history-value {
  font-size: 0.95em;
  margin-bottom: 8px;
}

.history-btn {
  display: block;
  width: 100%;
  box-sizing: border-box; /* чтобы учитывался padding карточки */
  padding: 10px 18px;
  background: linear-gradient(135deg, #4da3ff, #3177c9);
  color: #fff;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s ease, transform 0.1s ease;
  margin-top: 10px;
}

.history-btn:hover {
  background: linear-gradient(135deg, #5bb0ff, #3c83d1);
  transform: translateY(-1px);
}


@media (max-width: 600px) {
  .history-container {
    padding: 12px;
  }
  .history-btn {
    font-size: 0.95em;
    padding: 10px;
  }
}

.history-container {
  max-width: 700px;
  margin: auto;
  padding: 15px;
}

.history-item {
  background: #fff;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.history-date, .history-opponent {
  font-size: 0.95em;
  color: #333;
  margin: 3px 0;
}

.history-item .btn {
  margin-top: 5px;
}

/* ===== Чеклист Mentor AI ===== */
.checklist {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.check-item {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: 0 4px 10px rgba(49, 119, 201, 0.08);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.check-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(49, 119, 201, 0.15);
}

.check-box {
  width: 22px;
  height: 22px;
  border: 2px solid #3177c9;
  border-radius: 4px;
  margin-right: 12px;
  position: relative;
  flex-shrink: 0;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.check-item.checked .check-box {
  background: #3177c9;
  border-color: #3177c9;
}

.check-item.checked .check-box::after {
  content: '✔';
  position: absolute;
  color: white;
  font-size: 14px;
  left: 4px;
  top: -1px;
}

.check-text {
  flex: 1;
  font-size: 1em;
  color: #333;
}

/* Анимация "улетания" */
.fly-away {
  animation: flyUp 0.6s forwards;
}

@keyframes flyUp {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(-30px); opacity: 0; }
}

.checklist a {
  color: #3177c9;
  text-decoration: underline;
}
.checklist code {
  background: #eef4ff;
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 0.9em;
}

.pay-page {
  max-width: 900px;
  margin: auto;
  padding: 20px;
}

.pay-hero {
  text-align: center;
  margin-bottom: 40px;
}
.pay-hero h1 {
  font-size: 2em;
  color: #3177c9;
}
.pay-hero .subtitle {
  font-size: 1.1em;
  margin-bottom: 20px;
}
.btn-pay-big {
  display: inline-block;
  padding: 14px 28px;
  font-size: 1.2em;
  background: #3177c9;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.2s ease;
  border: none;
  cursor: pointer;
}
.btn-pay-big:hover {
  background: #225a99;
}
.small {
  font-size: 0.85em;
  color: #777;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.feature-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  text-align: center;
}
.feature-card .icon {
  font-size: 2em;
  margin-bottom: 10px;
}
.pay-now ul {
  list-style: none;
  padding: 0;
}
.pay-now li {
  padding: 8px 0;
  font-size: 1.05em;
}

/* === Стратегический советник === */

/* Основные отступы и фон */
.container {
    max-width: 1100px;
}

.card {
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.card-header {
    font-weight: bold;
}

.card ul {
    padding-left: 1.2rem;
}

/* Цветовые состояния */
.text-success {
    color: #28a745 !important;
}

.text-danger {
    color: #dc3545 !important;
}

.bg-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

.bg-secondary {
    background: linear-gradient(135deg, #6c757d, #495057);
}

.bg-info {
    background: linear-gradient(135deg, #17a2b8, #117a8b);
}

/* Кнопки */
.btn-success {
    background: #28a745;
    border: none;
}
.btn-success:hover {
    background: #218838;
}

/* Графики */
canvas {
    max-height: 300px;
}

/* Рекомендации */
.card.border-info {
    border: 2px solid #17a2b8;
}

/* Адаптивность */
@media (max-width: 768px) {
    .row {
        flex-direction: column;
    }
    canvas {
        max-width: 100%;
    }
}

/* Страница советника */
.page-title {
    font-size: 2.4rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 25px;
}

.info-card {
    background: linear-gradient(145deg, #ffffff, #f1f5ff);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.legend-item {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend-color {
    width: 16px;
    height: 16px;
    display: inline-block;
    border-radius: 4px;
}

.legend-color.my-style { background-color: rgba(54, 162, 235, 0.6); }
.legend-color.opp-style { background-color: rgba(255, 159, 64, 0.6); }

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 20px;
}

.chart-card {
    background: #fff;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.07);
    transition: transform 0.3s ease;
}
.chart-card:hover {
    transform: translateY(-5px);
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.recommendation-card {
    background: linear-gradient(145deg, #ffffff, #f8fbff);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}
.recommendation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.insight-card {
    background: #fff;
    border-radius: 15px;
    padding: 18px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}
.insight-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}
.insight-header {
    display: flex;
    align-items: center;
    gap: 8px;
}
.insight-icon {
    font-size: 1.6rem;
}
.insight-icon[data-rank="king"] { color: #ff3b3b; }
.insight-icon[data-rank="queen"] { color: #ff7b00; }
.insight-icon[data-rank="rook"] { color: #f1c40f; }
.insight-icon[data-rank="bishop"] { color: #3498db; }
.insight-icon[data-rank="knight"] { color: #8e44ad; }
.insight-icon[data-rank="pawn"] { color: #2ecc71; }
.main-insight {
    font-size: 1rem;
    font-weight: bold;
    margin: 12px 0;
    color: #333;
}
.mini-chart {
    background: #f0f0f0;
    height: 6px;
    border-radius: 4px;
    margin: 10px 0;
    overflow: hidden;
}
.chart-bar {
    height: 6px;
    background: linear-gradient(90deg, #4facfe, #00f2fe);
}
.secondary-advice {
    margin: 0;
    padding-left: 15px;
}
.secondary-advice li {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.recommendation-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.recommendation-icon {
    font-size: 1.4rem;
}

.recommendation-icon:nth-child(1) { color: #e74c3c; } /* Король */
.recommendation-icon:nth-child(2) { color: #e67e22; } /* Ферзь */
.recommendation-icon:nth-child(3) { color: #f1c40f; } /* Ладья */
.recommendation-icon:nth-child(4) { color: #3498db; } /* Слон */
.recommendation-icon:nth-child(5) { color: #8e44ad; } /* Конь */
.recommendation-icon:nth-child(6) { color: #2ecc71; } /* Пешка */


.reflection-section {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.09);
  margin-top: 20px;
}

.reflection-section h2 {
    color: var(--primary-color, #3177c9);
    margin-bottom: 10px;
}

.reflection-section textarea {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.btn-reflection {
    background: var(--primary-color, #3177c9);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
}

.btn-reflection:hover {
    background: var(--primary-hover, #255c99);
}

.gpt-advice {
    white-space: pre-wrap; /* сохраняет отступы и переносы GPT */
    line-height: 1.6;
    font-family: 'Georgia', serif;
    background: #fdf6e3;
    padding: 18px;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.reflection-section,
.plan-section {
    margin-top: 40px;
}

.plan-section h3,
.advisor-block h3 {
    margin-top: 0;       /* убираем лишний отступ сверху */
    margin-bottom: 8px;  /* уменьшаем расстояние до текста */
}

.plan-section form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.plan-section textarea {
    width: 100%;
    box-sizing: border-box; /* чтобы padding не раздувал */
    padding: 10px 14px;
    border: 1px solid #cdd9ed;
    border-radius: 8px;
    background-color: #fff;
    font-size: 14px;
    resize: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.plan-section textarea:focus {
    border-color: #3177c9;
    box-shadow: 0 0 0 3px rgba(49,119,201,0.2);
    outline: none;
}

.plan-section button {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 18px;
    background: #3177c9;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s, transform 0.1s;
}

.plan-section button:hover {
    background: #245d97;
}

.clear-btn {
    flex: 1;
    padding: 13px 0;
    border: none;
    border-radius: 10px;
    background: #3177c9;
    color: #fff;
    font-size: 1.08em;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.18s;
}

.clear-btn:hover {
    background: #255fa3;
}

.demo-banner {
    display: flex;
    flex-wrap: wrap; /* разрешаем перенос */
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: linear-gradient(90deg, #3177c9, #00b3ff);
    color: white;
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 1.05em;
}

.demo-banner strong {
    display: inline-block;
    font-weight: bold;
}

.demo-banner a {
    background: white;
    color: #3177c9;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap; /* чтобы текст кнопки не ломался */
}

.demo-banner a:hover {
    background: #e4effd;
}

/* Адаптация под мобильные */
@media (max-width: 600px) {
    .demo-banner {
        flex-direction: row; /* оставляем горизонтально */
        flex-wrap: wrap;     /* но можно переносить на вторую строку при нехватке места */
    }
    .demo-banner a {
        width: auto; /* кнопка не растягивается */
    }
}

.profile-container { background: #fff; padding: 20px; border-radius: 14px; box-shadow: 0 6px 18px rgba(0,0,0,0.05); }
.profile-title { text-align: center; margin-bottom: 18px; color: #3177c9; font-size: 1.6em; }

.profile-tabs { display: flex; gap: 8px; margin-bottom: 20px; justify-content: center; }
.tab-btn { padding: 8px 16px; border: none; background: #e4effd; border-radius: 8px; cursor: pointer; transition: background 0.2s; }
.tab-btn.active { background: #3177c9; color: #fff; }

.tab-content { display: none; }
.tab-content.active { display: block; animation: fadein 0.3s ease-in-out; }
@keyframes fadein { from { opacity:0; } to { opacity:1; } }

.scale-block { margin-top: 15px; }
.scale-label { margin: 8px 0 4px; font-weight: bold; }
.scale-bar-outer { background: #dce6f7; height: 14px; border-radius: 10px; overflow: hidden; }
.scale-bar-fill { height: 100%; transition: width 1s ease-out; }
.red { background: #e74c3c; } .orange { background: #f39c12; } .blue { background: #3498db; } .green { background: #27ae60; }
.scale-percent { font-size: 0.85em; margin-bottom: 6px; }

.progress-block { margin-bottom: 20px; }
.progress-title { font-weight: bold; margin-bottom: 6px; }
.progress-bar-outer { background: #dce6f7; height: 16px; border-radius: 10px; overflow: hidden; }
.progress-bar-fill { background: #3177c9; height: 100%; transition: width 1.5s ease-out; }
.progress-percent { font-weight: bold; margin-top: 4px; }

.reflection-comment { background: #f5faff; padding: 12px; border-radius: 10px; margin-bottom: 20px; font-size: 0.95em; }
.heatmap-title { font-weight: bold; margin-bottom: 8px; }
.heatmap-container { display: grid; grid-template-columns: repeat(14, 14px); gap: 2px; }
.heatmap-cell { width: 14px; height: 14px; background: #dce6f7; border-radius: 2px; }
.heatmap-cell[data-count="1"] { background: #a9c6f3; }
.heatmap-cell[data-count="2"] { background: #6f9ee9; }
.heatmap-cell[data-count="3"] { background: #3177c9; }

/* ===== Подсказки для шкал ===== */
.scale-label {
  position: relative;
  cursor: help;
}
.scale-label:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 0;
  top: 120%;
  background: rgba(49,119,201,0.95);
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.85em;
  white-space: nowrap;
  z-index: 100;
}
@media (hover: none) {
  .scale-label:hover::after { display: none; }
}

/* ===== Карточка рефлексии ===== */
.reflection-card {
  background: #f5faff;
  border-left: 5px solid #3177c9;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
  animation: fadeInUp 0.4s ease-out;
}
.reflection-icon {
  font-size: 1.4em;
  margin-bottom: 4px;
}
.reflection-title {
  font-weight: bold;
  margin-bottom: 6px;
  font-size: 1.05em;
}
.reflection-text {
  font-size: 0.95em;
  line-height: 1.4em;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Прогресс-бар роста ===== */
.progress-block {
  margin-bottom: 20px;
}
.progress-title {
  font-weight: bold;
  margin-bottom: 6px;
}
.progress-bar-outer {
  background: #dce6f7;
  height: 16px;
  border-radius: 10px;
  overflow: hidden;
}
.progress-bar-fill {
  background: linear-gradient(90deg, #3177c9, #4fa9f0);
  height: 100%;
  transition: width 1.5s ease-out;
}
.progress-percent {
  font-weight: bold;
  margin-top: 4px;
}

.growth-card {
  background: #f8fbff;
  border: 1px solid #d6e6f7;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(49,119,201,0.1);
  animation: fadeInUp 0.4s ease-out;
}

.growth-title {
  font-weight: bold;
  font-size: 1.1em;
  margin-bottom: 8px;
  color: #3177c9;
}

.growth-bar {
  background: #e1ecfa;
  border-radius: 10px;
  overflow: hidden;
  height: 18px;
  margin: 0 auto;
}

.growth-fill {
  height: 100%;
  background: linear-gradient(90deg, #3177c9, #4fa9f0);
  transition: width 1.5s ease-out;
}

.growth-value {
  font-size: 1.4em;
  font-weight: bold;
  color: #3177c9;
  margin-top: 6px;
}

.growth-subtext {
  font-size: 0.85em;
  color: #555;
  margin-top: 2px;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}


.reflection-history-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.reflection-history-list li {
  padding: 4px 0;
  border-bottom: 1px solid #eee;
}

.reflection-history-list li:last-child {
  border-bottom: none;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.history-info {
    font-size: 0.95em;
    color: #333;
}

.history-actions {
    display: flex;
    gap: 8px;
}

.btn {
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
}

.btn-primary {
    background-color: #3177c9;
    color: white;
}

.btn-strategy {
    background-color: #28a745;
    color: white;
}

.btn-strategy:hover {
    background-color: #218838;
}

.btn-danger {
    background-color: #c93131;
    color: white;
}

.btn-danger:hover {
    background-color: #a62828;
}

.btn-strategy-premium {
    background: linear-gradient(180deg, #ffffff 0%, #f0f0f0 100%);
    color: #111;
    font-weight: 600;
    font-size: 0.95em;
    padding: 6px 12px;
    border-radius: 6px; /* квадратная форма */
    border: 1px solid #ccc;
    letter-spacing: 0.3px;
    transition: all 0.25s ease;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.8),
        inset 0 -1px 2px rgba(0,0,0,0.1),
        0 2px 4px rgba(0,0,0,0.06);
}

.btn-strategy-premium:hover {
    background: linear-gradient(180deg, #f8f8f8 0%, #eaeaea 100%);
    border-color: #bbb;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.9),
        inset 0 -1px 2px rgba(0,0,0,0.12),
        0 3px 6px rgba(0,0,0,0.1);
}

.btn-strategy-premium:active {
    background: linear-gradient(180deg, #e6e6e6 0%, #dcdcdc 100%);
    box-shadow:
        inset 0 2px 3px rgba(0,0,0,0.15);
}

.swal2-container {
    z-index: 999999 !important;
}

.mentor-icon {
    display: inline-block;
    font-size: 2em;
    color: #3177c9;
    animation: mentor-spin 3s infinite linear;
    margin-bottom: 5px;
}

@keyframes mentor-spin {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(10deg); }
    100% { transform: rotate(0deg); }
}

.mentor-popup {
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(49, 119, 201, 0.4);
}

.mentor-title {
    font-size: 1.4em !important;
}

.mentor-subtitle {
    color: #ccc;
    font-size: 0.95em;
}
.mentor-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.mentor-icon {
    font-size: 2.4em;
    color: #3177c9;
    animation: mentor-bounce 1s ease-in-out infinite;
    text-shadow: 0 0 8px rgba(49, 119, 201, 0.7), 0 0 16px rgba(49, 119, 201, 0.5);
    transform-origin: center bottom;
}

@keyframes mentor-bounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-4px) rotate(2deg); }
}

.mentor-walk-text {
    opacity: 0;
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 6px;
    color: #fff;
    text-shadow: 0 0 8px #3177c9;
    max-width: 90%;
    transform: translateY(10px) scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.mentor-walk-text.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}


.mentor-text {
    font-size: 1.2em;
    margin-top: 6px;
    color: #f0f0f0;
}

.mentor-icon.fly-away {
    animation: mentor-prep 0.25s ease-in-out forwards, mentor-fly 1.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.25s forwards;
}

@keyframes mentor-prep {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(4px) scale(0.98); }
}

@keyframes mentor-fly {
    0% { transform: translateY(4px) scale(0.98) rotate(0deg); opacity: 1; }
    60% { transform: translateY(-60px) scale(1.05) rotate(10deg); opacity: 1; }
    100% { transform: translateY(-150px) scale(0.8) rotate(-15deg); opacity: 0; }
}

/* 📱 Адаптив для маленьких экранов */
@media (max-width: 480px) {
    .mentor-icon {
        font-size: 1.8em;
    }
    .mentor-walk-text {
        font-size: 1em;
        max-width: 95%;
    }
    .mentor-text {
        font-size: 1.1em;
    }
}

.mentor-title-tight {
    margin-bottom: 6px !important; /* меньше отступа */
}

.mentor-html-tight {
    margin-top: 0 !important;
}

/* Десктоп */
.tooltip {
  position: relative;
  cursor: help;
}
.tooltip .tooltip-text {
  visibility: hidden;
  opacity: 0;
  background: #1a1a1a;
  color: #fff;
  padding: 8px 10px;
  border-radius: 8px;
  position: absolute;
  z-index: 1000;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  max-width: 280px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  font-size: 0.92em;
  line-height: 1.3em;
  transition: opacity 0.25s ease-in-out;
}
.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* Мобильная версия */
@media (max-width: 700px) {
  .tooltip .tooltip-text {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    color: #fff;
    padding: 10px 14px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    font-size: 0.95em;
    box-shadow: 0 4px 18px rgba(0,0,0,0.3);
  }
}


/* Кнопка заключения */
.conclusion-btn {
    background: linear-gradient(95deg, #3177c9, #4ac6ee);
    color: #fff;
    border: none;
    padding: 12px 22px;
    font-size: 1.05em;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}
.conclusion-btn:hover {
    background: linear-gradient(95deg, #4ac6ee, #3177c9);
    transform: translateY(-2px);
}


.beginners-special .special-block {
    background: #ffffff; /* Светлый фон */
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: center;
    color: #000; /* Читаемый текст */
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.beginners-special .special-block h2 {
    margin-bottom: 10px;
    color: #3177c9; /* Цвет заголовков в стиле PSYCHESS */
}

.big-btn {
    display: inline-block;
    padding: 14px 22px;
    font-size: 16px;
    border-radius: 8px;
    margin-top: 12px;
    text-decoration: none;
    font-weight: bold;
}

.gold-btn {
    background: #d4af37;
    color: #000;
}

.blue-btn {
    background: #3177c9;
    color: #fff;
}

.big-btn:hover {
    opacity: 0.9;
}

/* ===== Шахматные свидания (Mentor AI + Romance) ===== */
body.dating-page {
    background: linear-gradient(135deg, #f7faff, #fff0f5);
}

/* Карточки участников */
.profiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.profile-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.profile-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.08);
}
.profile-card .role {
    font-size: 34px;
    margin-bottom: 6px;
}
.name-age {
    font-weight: bold;
    font-size: 17px;
    color: #222;
    margin-bottom: 8px;
}
.desc {
    font-size: 14px;
    color: #555;
    margin-bottom: 14px;
}

/* ❤️ Кнопка лайка */
.like-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    font-size: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
.like-btn:hover {
    transform: scale(1.2);
}
.like-btn.liked {
    color: #e63946;
    animation: pulse 0.4s ease;
}
@keyframes pulse {
    0% { transform: scale(1); }
    30% { transform: scale(1.4); }
    60% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Кнопки фильтра */
.filter-btn {
    background: #3177c9;
    border: none;
    padding: 7px 14px;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    margin-left: 4px;
    transition: background 0.2s ease;
}
.filter-btn:hover {
    background: #255fa8;
}

/* Приглашение и форма */
.invite-box, .form-box {
    background: #fff;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Dating Pages — Mentor AI + Romance ===== */
body.dating-page {
    background: linear-gradient(135deg, #f7faff 0%, #fff0f5 100%);
}

/* Контейнер */
.dating-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Кнопки */
.btn-mai {
    display: inline-block;
    padding: 10px 18px;
    background: #3177c9;
    color: #fff;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}
.btn-mai:hover {
    background: #255fa8;
    transform: translateY(-1px);
}
.btn-gold {
    background: #d4af37;
    color: #000;
}
.btn-gold:hover {
    background: #c19b2d;
}

/* Фильтры */
.filter-btn {
    background: #f2f6fb;
    border: 1px solid #cbd6e2;
    color: #3177c9;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    margin: 4px 2px;
    transition: all 0.2s ease;
}
.filter-btn:hover {
    background: #3177c9;
    color: #fff;
}

/* Карточки профиля */
.profiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.profile-card {
    background: #fff;
    border-radius: 14px;
    padding: 18px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}
.profile-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.07);
}
.profile-card .role {
    font-size: 34px;
}
.name-age {
    font-weight: bold;
    font-size: 17px;
    margin: 8px 0;
}
.desc {
    font-size: 14px;
    color: #555;
    margin-bottom: 14px;
}

/* Лайк */
.like-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.like-btn:hover {
    transform: scale(1.2);
}
.like-btn.liked {
    color: #e63946;
    animation: pulse 0.4s ease;
}
.like-count {
    display: block;
    font-size: 13px;
    color: #888;
    margin-top: 4px;
}
@keyframes pulse {
    0% { transform: scale(1); }
    30% { transform: scale(1.4); }
    60% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Формы */
.form-box {
    background: #fff;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    max-width: 600px;
    margin: 0 auto;
}
.form-box label {
    display: block;
    font-weight: 500;
    margin-top: 12px;
}
.form-box input, .form-box select, .form-box textarea {
    width: 100%;
    padding: 8px;
    margin-top: 4px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.profile-card.highlight {
    border: 2px solid #ff80ab;
}

.btn-profile {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #3177c9, #255fa8);
    color: #fff !important;
    font-weight: 500;
    font-size: 14px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(49, 119, 201, 0.4);
    transition: all 0.2s ease;
}
.btn-profile:hover {
    background: linear-gradient(135deg, #3a86e9, #2e6dc1);
    box-shadow: 0 6px 18px rgba(49, 119, 201, 0.5);
    transform: translateY(-1px);
}
.btn-profile:active {
    transform: translateY(0);
}

/* Пузырёк на ❤️ */
.like-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.like-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #e63946;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    line-height: 1;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Анимация сердечек */
.heart-fly {
    position: absolute;
    font-size: 14px;
    animation: flyUp 1s ease forwards;
    pointer-events: none;
}
@keyframes flyUp {
    0% { opacity: 1; transform: translateY(0) scale(1); }
    60% { opacity: 0.7; transform: translateY(-20px) scale(1.3); }
    100% { opacity: 0; transform: translateY(-40px) scale(1); }
}


/* Блоки */
.role-balance-count {
    font-size: 16px;
    margin-top: 6px;
}
.role-balance-note {
    font-size: 14px;
    color: #666;
}
.empty-list {
    text-align: center;
    color: #777;
}

/* Карточки участников */
.profile-card {
    background: white;
    border-radius: 12px;
    padding: 14px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(49, 119, 201, 0.1);
    margin-bottom: 12px;
    transition: transform 0.2s ease-in-out;
}
.profile-card:hover {
    transform: scale(1.03);
}
.role {
    font-size: 26px;
}
.name-age {
    font-weight: bold;
}
.status-text {
    font-size: 12px;
    margin-top: 4px;
}

/* Цвета ролей */
.role-king .role { color: #2a5db0; }
.role-queen .role { color: #b52cb5; }

/* Цвета статусов */
.status-waiting .status-text { color: #777; }
.status-ready .status-text { color: #1a7c1a; }
.status-playing .status-text { color: #d35400; }

/* Мобильная адаптация */
@media (max-width: 600px) {
    .profiles {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .profile-card {
        font-size: 0.9em;
        padding: 10px;
    }
}

.notification-block {
    background: #fff5d1;
    padding: 14px 18px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    margin-bottom: 18px;
    animation: fadeIn 0.4s ease;
}
.notification-block .notif {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.notif-actions {
    display: flex;
    gap: 10px;
}
.accept-btn { background: #4caf50; color: white; }
.decline-btn { background: #f44336; color: white; }
.go-btn { background: #3177c9; color: white; text-decoration: none; padding: 8px 14px; border-radius: 8px; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 🔔 Глобальное уведомление */
.notification-block {
    position: fixed;
    bottom: 22px;
    right: 22px;
    max-width: 340px;
    background: #fff5d1;
    padding: 14px 16px;
    border-radius: 14px;
    box-shadow: 0 5px 16px rgba(0,0,0,0.18);
    font-size: 0.96em;
    z-index: 3000;
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.notification-actions {
    margin-top: 8px;
    display: flex;
    gap: 10px;
}

.notification-actions button {
    flex: 1;
    padding: 8px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s ease;
}

.notification-accept {
    background: #4caf50;
    color: white;
}

.notification-accept:hover {
    background: #43a047;
}

.notification-decline {
    background: #f44336;
    color: white;
}

.notification-decline:hover {
    background: #d32f2f;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

#global-notification {
    z-index: 10001;
}


.dating-container {
    max-width: 720px;
    margin: auto;
    padding: 24px;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

/* ====== Заголовок ====== */
.title {
    text-align: center;
    margin-bottom: 8px;
    font-size: 2.4em;
    font-weight: 800;
    background: linear-gradient(135deg, #3177c9, #ff78b9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    text-align: center;
    margin-bottom: 28px;
    color: #555;
    font-size: 1.1em;
}

/* ====== Карточки секретов ====== */
.secret-card {
    background: linear-gradient(180deg, rgba(49,119,201,0.25), rgba(255,120,185,0.25));
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.secret-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 26px rgba(0,0,0,0.1);
}

/* ====== Поля внутри карточек ====== */
.secret-card .form-control,
.secret-card .styled-select,
.secret-card textarea {
    display: block;
    width: 100%;
    margin: 0;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    font-size: 1em;
    background: #fdfcfb; /* светлый цвет для контраста */
    color: #3a2f28;
    box-shadow: inset 0 1px 4px rgba(0,0,0,0.04);
    box-sizing: border-box;
}

/* ====== При фокусе ====== */
.secret-card .form-control:focus,
.secret-card .styled-select:focus,
.secret-card textarea:focus {
    outline: none;
    background: #fff;
    border-color: rgba(133,94,66,0.4);
    box-shadow: 0 0 0 3px rgba(133,94,66,0.15);
}

/* ====== Select стрелка ====== */
.secret-card .styled-select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23855E42' height='20' width='20' viewBox='0 0 20 20'><path d='M5.5 7.5a1 1 0 011.5 0L10 10.5l3-3a1 1 0 111.5 1.5l-4 4a1 1 0 01-1.5 0l-4-4a1 1 0 010-1.5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    cursor: pointer;
}

/* ====== Кнопка ====== */
.submit-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.15em;
    background: linear-gradient(135deg, #3177c9, #ff78b9);
    color: #fff;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 14px rgba(49,119,201,0.25), 0 0 12px rgba(255,120,185,0.3);
}

.submit-btn:hover {
    background: linear-gradient(135deg, #255e9b, #e95a9c);
    box-shadow: 0 6px 18px rgba(37,94,155,0.35), 0 0 14px rgba(233,90,156,0.4);
    transform: translateY(-1px);
}

/* ====== Мобильная адаптация ====== */
@media (max-width: 768px) {
    .dating-container {
        padding: 18px;
    }
    .title {
        font-size: 2em;
    }
    .form-control, .styled-select {
        font-size: 1.05em;
        padding: 14px;
    }
    .submit-btn {
        font-size: 1.1em;
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .dating-container {
        padding: 14px;
    }
    .title {
        font-size: 1.8em;
    }
    .form-control, .styled-select {
        font-size: 1em;
    }
    .secret-card {
        padding: 16px;
    }
}

/* ===== Dating Pages — яркий стиль ===== */
body.dating-page {
    background: linear-gradient(135deg, rgba(49,119,201,0.15), rgba(255,120,185,0.15));
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

/* Контейнер */
.dating-container {
    max-width: 1100px;
    margin: auto;
    padding: 20px;
}

/* Заголовки */
.dating-container h1,
.dating-container h2 {
    text-align: center;
    font-weight: 800;
    background: linear-gradient(135deg, #3177c9, #ff78b9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

/* Таблицы */
.table-wrapper {
    background: #fff;
    border-radius: 16px;
    overflow-x: auto;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    margin-bottom: 20px;
}

.table-wrapper table {
    width: 100%;
    border-collapse: collapse;
}

.table-wrapper thead {
    background: linear-gradient(135deg, rgba(49,119,201,0.3), rgba(255,120,185,0.3));
    color: #222;
}

.table-wrapper th,
.table-wrapper td {
    padding: 14px;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.table-wrapper tbody tr:hover {
    background: rgba(49,119,201,0.05);
}


/* Уведомления */
.notification-block {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
    border-left: 6px solid #3177c9;
}

.notification-block h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-weight: 700;
}

/* ===== Адаптив ===== */
@media (max-width: 768px) {
    .btn {
        display: block;
        width: 100%;
        margin-top: 8px;
        text-align: center;
    }
    .table-wrapper th,
    .table-wrapper td {
        padding: 10px;
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {
    .dating-container {
        padding: 14px;
    }
    .dating-container h1,
    .dating-container h2 {
        font-size: 1.5em;
    }
}


/* ===== Кнопки для Dating Waiting & Instructions (кроме Принять/Отклонить) ===== */
body.dating-page .dating-action-btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3177c9, #ff78b9);
    color: #fff !important;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(49,119,201,0.25);
    border: none;
    cursor: pointer;
    text-align: center;
    min-width: 140px;
}

body.dating-page .dating-action-btn:hover {
    background: linear-gradient(135deg, #255e9b, #e95a9c);
    box-shadow: 0 6px 16px rgba(37,94,155,0.3);
    transform: translateY(-1px);
}

/* Дополнительные варианты для разных действий */
body.dating-page .btn-finish {
    background: linear-gradient(135deg, #ff9800, #ff78b9);
}
body.dating-page .btn-finish:hover {
    background: linear-gradient(135deg, #e07c00, #e95a9c);
}

body.dating-page .btn-back {
    background: linear-gradient(135deg, #777, #aaa);
}
body.dating-page .btn-back:hover {
    background: linear-gradient(135deg, #555, #999);
}

body.dating-page .btn-edit {
    background: linear-gradient(135deg, #3bb273, #ff78b9);
}
body.dating-page .btn-edit:hover {
    background: linear-gradient(135deg, #2a8b57, #e95a9c);
}

/* ===== Мобильная адаптация ===== */
@media (max-width: 768px) {
    body.dating-page .dating-action-btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
}

/* ===== Форма сохранения результата ===== */
.result-form {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    max-width: 500px;
    margin: 0 auto;
}

/* Группы полей */
.result-form .form-group {
    margin-bottom: 18px;
}

.result-form .form-label {
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
    color: #333;
}

/* Селекты */
.result-form .form-select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(49,119,201,0.3);
    background: linear-gradient(135deg, rgba(49,119,201,0.07), rgba(255,120,185,0.07));
    color: #222;
    font-size: 1em;
    appearance: none;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.25s ease;
}

.result-form .form-select:focus {
    outline: none;
    background: linear-gradient(135deg, rgba(49,119,201,0.12), rgba(255,120,185,0.12));
    border-color: rgba(49,119,201,0.6);
    box-shadow: 0 0 0 3px rgba(49,119,201,0.15);
}

/* Кнопка "Сохранить результат" */
.btn-save-result {
    background: linear-gradient(135deg, #3177c9, #ff78b9) !important;
    color: #fff !important;
    font-weight: 600;
    padding: 12px 18px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(49,119,201,0.25);
    transition: all 0.3s ease;
}

.btn-save-result:hover {
    background: linear-gradient(135deg, #255e9b, #e95a9c) !important;
    box-shadow: 0 6px 16px rgba(37,94,155,0.3);
    transform: translateY(-1px);
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .result-form {
        padding: 16px;
    }
    .btn-save-result {
        display: block;
        width: 100%;
        margin-top: 10px;
    }
}

/* Центрирование кнопки в форме ввода результата */
.result-form .form-actions {
    text-align: center;
}

.result-form .form-actions .dating-action-btn {
    display: inline-block; /* чтобы кнопка не растягивалась */
}

/* Контейнер верхних кнопок */
.result-top-buttons {
    display: flex;
    justify-content: center; /* центрирование */
    gap: 12px; /* расстояние между кнопками */
    margin-bottom: 20px;
    flex-wrap: wrap; /* чтобы на мобильных переносились */
}

/* Кнопки внутри */
.result-top-buttons .dating-action-btn {
    min-width: 150px;
    text-align: center;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .result-top-buttons {
        flex-direction: column;
        align-items: center;
    }
    .result-top-buttons .dating-action-btn {
        width: 100%;
        max-width: 300px;
    }
}

/* === Dating Instructions Page === */
body.dating-instructions {
    background: linear-gradient(135deg, rgba(49,119,201,0.08), rgba(255,120,185,0.08));
}

.dating-container {
    max-width: 1000px;
    margin: auto;
    padding: 20px;
}

/* 🔔 Уведомление */
.dating-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 14px 18px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    z-index: 9999;
    display: none;
    max-width: 90%;
    text-align: center;
}

.notif-actions {
    margin-top: 8px;
}

.dating-btn {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.accept-btn {
    background: linear-gradient(135deg, #3bb273, #ff78b9);
    color: #fff;
}
.decline-btn {
    background: linear-gradient(135deg, #d64545, #ff78b9);
    color: #fff;
}
.dating-btn:hover {
    opacity: 0.9;
}

/* 📋 Таблица участников */
.participants-table {
    width: 100%;
    border-collapse: collapse;
}
.participants-table th, .participants-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    text-align: center;
}
.participants-table thead {
    background: linear-gradient(135deg, #3177c9, #ff78b9);
    color: white;
}

/* 📱 Мобильная адаптация */
@media (max-width: 768px) {
    .participants-table, .participants-table thead, .participants-table tbody, .participants-table th, .participants-table td, .participants-table tr {
        display: block;
        width: 100%;
    }
    .participants-table thead tr {
        display: none;
    }
    .participants-table tr {
        margin-bottom: 15px;
        border: 1px solid rgba(0,0,0,0.1);
        border-radius: 8px;
        background: #fff;
        box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    }
    .participants-table td {
        padding: 10px;
        text-align: right;
        position: relative;
    }
    .participants-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        font-weight: 600;
        color: #333;
    }
}

/* 💬 Модалка */
.chess-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.chess-modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

/* === Learning Page styles (from inline to external) === */
.learning-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 24px;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    font-family: 'Segoe UI', sans-serif;
}
.learning-title {
    text-align: center;
    font-size: 1.9em;
    font-weight: 700;
    margin-bottom: 14px;
    color: #3177c9;
}
.learning-title span {
    color: #4ac6ee;
}
.learning-intro {
    font-size: 1.05em;
    margin-bottom: 24px;
    color: #444;
    text-align: center;
}
.progress-wrap {
    height: 8px;
    background: #eee;
    border-radius: 4px;
    margin-bottom: 20px;
}
#progress-bar {
    height: 8px;
    width: 0%;
    background: linear-gradient(90deg, #4ac6ee, #3177c9);
    border-radius: 4px;
    transition: width 0.4s ease;
}
.learning-steps {
    list-style: none;
    padding: 0;
    margin: 0;
}
.learning-steps li {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.step-header {
    font-weight: 600;
    font-size: 1.1em;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.step-icon {
    font-size: 1.2em;
    margin-right: 8px;
}
.check-btn {
    background: #ddd;
    border: none;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.3s ease, transform 0.2s ease;
}
.check-btn:hover {
    background: #ccc;
}
.check-btn.completed {
    background: #4caf50;
    color: #fff;
    animation: pulseScale 0.4s ease;
}
.mentor-tip {
    font-size: 0.9em;
    color: #3177c9;
    padding-left: 22px;
    border-left: 3px solid #4ac6ee;
    margin-top: 4px;
}
.pgn-instruction {
    font-size: 0.9em;
    background: #eef6ff;
    border-radius: 8px;
    padding: 10px;
    margin: 10px 0;
}
.free-link {
    display: inline-block;
    background: linear-gradient(95deg, #3177c9, #4ac6ee);
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s ease;
}
.free-link:hover {
    background: linear-gradient(95deg, #4ac6ee, #3177c9);
}
.pro-tips {
    margin-top: 28px;
    background: #f0f7ff;
    border-radius: 12px;
    padding: 16px;
}
.pro-tips h2 {
    margin-top: 0;
    color: #3177c9;
}
.pro-tips ul {
    margin: 0;
    padding-left: 20px;
}
.pro-tips li {
    margin-bottom: 6px;
    font-size: 0.95em;
}
.learning-btn-container {
    text-align: center;
    margin: 20px 0;
}
.btn-learning-start {
    background: #3177c9;
    color: #fff;
    padding: 12px 20px;
    font-size: 1.05em;
    border-radius: 8px;
    border: none;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(49,119,201,0.35);
}
.btn-learning-start:hover {
    background: #225a99;
    box-shadow: 0 6px 16px rgba(49,119,201,0.5);
    transform: translateY(-2px);
}
.learning-cta {
    margin-top: 40px;
    background: linear-gradient(135deg, #f1f8ff, #e7efff);
    padding: 24px 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.04);
}
.learning-cta h2 {
    margin-top: 0;
    font-size: 1.6em;
    color: #225a99;
}
.learning-cta p {
    font-size: 1.05em;
    color: #444;
    margin: 12px 0 18px 0;
}
.learning-cta .small-text {
    font-size: 0.8em;
    color: #666;
    margin-top: 8px;
}
/* Pulse scale animation for check buttons */
@keyframes pulseScale {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* === Pay Page enhancements === */
.pro-accent {
    color: #d4af37;
}
.pay-hero {
    background: linear-gradient(145deg, #f0f6ff, #e9f1ff);
    border-radius: 16px;
    padding: 40px 20px;
    box-shadow: 0 8px 24px rgba(49,119,201,0.1);
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}
.pay-hero::before {
    content: "♞♛♚";
    position: absolute;
    opacity: 0.05;
    font-size: 160px;
    top: -30px;
    right: -20px;
    white-space: nowrap;
    color: #3177c9;
}
.pay-hero h1 {
    font-size: 2.4em;
    margin-bottom: 12px;
    color: #225a99;
}
.pay-hero .subtitle {
    font-size: 1.15em;
    margin-bottom: 24px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    color: #555;
}
.offer-badge {
    display: inline-block;
    background: #ffb347;
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255,179,71,0.4);
    margin-bottom: 14px;
    animation: badgePulse 2s infinite;
}
@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
/* Reuse existing pulse animation for larger pay button */
.btn-pay-big.btn-pulse {
    animation: pulse 1.6s infinite;
}
.pay-highlights {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}
.highlight-card {
    background: #ffffff;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    text-align: center;
    flex: 1 1 240px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
.highlight-icon {
    font-size: 2.2em;
    display: block;
    margin-bottom: 8px;
    color: #3177c9;
}
.highlight-card p {
    margin: 0;
    font-size: 0.98em;
    color: #333;
}
.pay-now ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}
.pay-now li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 1.05em;
    border-bottom: 1px solid #edf3ff;
}
.pay-now li:last-child {
    border-bottom: none;
}
.pay-now li b {
    font-size: 1.4em;
    color: #3177c9;
    width: 26px;
}
/* Responsive adjustment for graph images */
@media (max-width: 600px) {
    .graph-wrapper img {
        width: 100%;
        max-width: 380px;
    }
}