:root {
  --bg-1: #1b1035;
  --bg-2: #2c1250;
  --accent: #ff5fa2;
  --accent-2: #7b61ff;
  --accent-grad: linear-gradient(135deg, #ff5fa2 0%, #7b61ff 100%);
  --card-bg: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.14);
  --text-main: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.65);
  --danger: #ff6b6b;
  --success: #37e6a4;
  --radius: 20px;
  --transition: 0.4s cubic-bezier(0.22, 1, 0.36, 1);

  /* intl-tel-input dark theme overrides */
  --iti-hover-color: rgba(255, 255, 255, 0.08);
  --iti-border-color: rgba(255, 255, 255, 0.14);
  --iti-country-selector-bg: #241247;
  --iti-icon-color: rgba(255, 255, 255, 0.65);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background: radial-gradient(circle at 20% 20%, var(--bg-2), var(--bg-1) 60%);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
}

.bg-dots {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.14) 1px,
    transparent 1px
  );
  background-size: 28px 28px;
  mask-image: radial-gradient(
    circle at 50% 40%,
    rgba(0, 0, 0, 0.7),
    transparent 75%
  );
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-glow span {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  animation: float 14s ease-in-out infinite;
}

.bg-glow span:nth-child(1) {
  width: 320px;
  height: 320px;
  background: var(--accent);
  top: -80px;
  left: -80px;
  animation-delay: 0s;
}

.bg-glow span:nth-child(2) {
  width: 260px;
  height: 260px;
  background: var(--accent-2);
  bottom: -60px;
  right: -60px;
  animation-delay: 3s;
}

.bg-glow span:nth-child(3) {
  width: 200px;
  height: 200px;
  background: #37e6a4;
  bottom: 30%;
  left: 60%;
  animation-delay: 6s;
  opacity: 0.18;
}

.bg-glow span:nth-child(4) {
  width: 180px;
  height: 180px;
  background: #ffd166;
  top: 15%;
  right: 8%;
  animation-delay: 2s;
  opacity: 0.14;
}

.bg-glow span:nth-child(5) {
  width: 150px;
  height: 150px;
  background: var(--accent-2);
  top: 55%;
  left: 4%;
  animation-delay: 5s;
  opacity: 0.16;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -30px) scale(1.08); }
}

.bg-sparkle {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-sparkle span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  animation: twinkle 5s ease-in-out infinite;
}

.bg-sparkle span:nth-child(1) { top: 12%; left: 18%; animation-delay: 0s; }
.bg-sparkle span:nth-child(2) { top: 22%; left: 78%; animation-delay: 1.1s; }
.bg-sparkle span:nth-child(3) { top: 68%; left: 85%; animation-delay: 2.2s; }
.bg-sparkle span:nth-child(4) { top: 78%; left: 14%; animation-delay: 3.1s; }
.bg-sparkle span:nth-child(5) { top: 42%; left: 92%; animation-delay: 1.8s; }
.bg-sparkle span:nth-child(6) { top: 8%; left: 50%; animation-delay: 2.8s; }

@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.6); }
  50% { opacity: 0.8; transform: scale(1.3); }
}

.quiz-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
}

.quiz-shell::before {
  content: "";
  position: absolute;
  inset: -8px;
  z-index: -1;
  border-radius: calc(var(--radius) + 8px);
  background: conic-gradient(
    from 0deg,
    var(--accent),
    var(--accent-2),
    #37e6a4,
    var(--accent)
  );
  filter: blur(16px);
  opacity: 0.35;
  animation: spin-aura 10s linear infinite;
}

@keyframes spin-aura {
  to {
    transform: rotate(360deg);
  }
}

.quiz-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 32px 28px 28px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  animation: card-in 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.quiz-card::before,
.quiz-card::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

.quiz-card::before {
  top: -60px;
  right: -60px;
  background: radial-gradient(
    circle,
    rgba(255, 95, 162, 0.35),
    transparent 70%
  );
}

.quiz-card::after {
  bottom: -70px;
  left: -50px;
  background: radial-gradient(
    circle,
    rgba(123, 97, 255, 0.3),
    transparent 70%
  );
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.progress-track {
  position: relative;
  height: 6px;
  width: 100%;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 26px;
  flex-shrink: 0;
}

.progress-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: var(--accent-grad);
  border-radius: 999px;
  transition: width var(--transition);
  overflow: hidden;
}

.progress-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.45),
    transparent
  );
  transform: translateX(-100%);
  animation: shimmer 1.8s ease-in-out infinite;
}

@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

.step-counter {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
  flex-shrink: 0;
}

.steps-viewport {
  position: relative;
  flex: 1;
}

.step {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(100%);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.step.active {
  position: relative;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  z-index: 2;
}

.step.leaving {
  opacity: 0;
  transform: translateX(-100%);
  z-index: 1;
}

.step-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 8px;
}

.step-subtitle {
  font-size: 14px;
  color: var(--text-dim);
  margin: 0 0 22px;
  line-height: 1.5;
}

.highlight-amount {
  color: var(--success);
  font-weight: 700;
}

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

.option-btn {
  position: relative;
  text-align: left;
  width: 100%;
  padding: 15px 18px;
  border-radius: 14px;
  border: 1.5px solid var(--card-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.15s ease;
  overflow: hidden;
  opacity: 0;
  animation: option-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--option-index, 0) * 60ms);
}

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

.option-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent-grad);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: -1;
}

.option-btn:hover {
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.option-btn:active {
  transform: scale(0.97);
}

.option-btn.selected {
  border-color: transparent;
  color: #fff;
}

.option-btn.selected::after {
  opacity: 1;
}

.option-btn span.label {
  position: relative;
  z-index: 1;
}

.country-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.country-grid .option-btn {
  font-size: 14px;
  padding: 13px 14px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--card-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.field input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.field input:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
}

.field.has-error input {
  border-color: var(--danger);
}

.field-error {
  font-size: 12px;
  color: var(--danger);
  margin-top: 6px;
  min-height: 14px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 10px 0 22px;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}

.consent input[type="checkbox"] {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  flex-shrink: 0;
  cursor: pointer;
}

.consent a {
  color: var(--text-main);
  text-decoration: underline;
}

.primary-btn {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 14px;
  background: var(--accent-grad);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-top: auto;
  transition: transform 0.15s ease, box-shadow 0.25s ease, opacity 0.2s ease;
  box-shadow: 0 14px 30px -10px rgba(255, 95, 162, 0.5);
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -10px rgba(255, 95, 162, 0.6);
}

.primary-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  margin-bottom: 16px;
  width: fit-content;
  transition: color 0.2s ease, transform 0.2s ease;
}

.back-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.back-btn:hover {
  color: var(--text-main);
}

.back-btn:hover svg {
  transform: translateX(-2px);
}

.intro-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent-grad);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 18px;
  width: fit-content;
  box-shadow: 0 4px 16px rgba(255, 95, 162, 0.35);
}

.intro-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.intro-visual {
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  color: var(--accent);
  animation: icon-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

.intro-visual svg {
  width: 100%;
  height: 100%;
}

.spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.final-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  animation: icon-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.final-icon svg {
  width: 32px;
  height: 32px;
}

.final-icon.success {
  background: rgba(55, 230, 164, 0.15);
  color: var(--success);
}

.final-icon.muted {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-dim);
}

@keyframes icon-pop {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.center-text {
  text-align: center;
}

.field .iti {
  display: block;
  width: 100%;
}

.iti__country-list {
  background: var(--iti-country-selector-bg);
  color: var(--text-main);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
}

.iti__country-name,
.iti__dial-code {
  color: var(--text-main);
}

.iti__country.iti__highlight {
  background-color: var(--iti-hover-color);
}

.iti__selected-dial-code {
  color: var(--text-main);
}

.iti__search-input {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

.iti__search-input::placeholder {
  color: var(--text-dim);
}

.iti__selected-country:hover,
.iti__selected-country:focus {
  background-color: var(--iti-hover-color);
}

@media (max-width: 420px) {
  .quiz-card {
    padding: 26px 20px 22px;
    min-height: 460px;
  }
  .step-title {
    font-size: 19px;
  }
}

/* thanks.html */

.thanks-card {
  justify-content: center;
}

.deco {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.deco-star-1 { top: -10px; left: -10px; width: 34px; height: 34px; fill: rgba(255, 95, 162, 0.35); transform: rotate(-15deg); animation: spin 9s linear infinite; }
.deco-dot-1 { top: 20px; right: 14px; width: 20px; height: 20px; fill: rgba(123, 97, 255, 0.4); animation: ping 2.5s cubic-bezier(0, 0, 0.2, 1) infinite; }
.deco-star-2 { bottom: 34px; right: -14px; width: 48px; height: 48px; fill: rgba(55, 230, 164, 0.3); transform: rotate(12deg); animation: spin-rev 12s linear infinite; }
.deco-dot-2 { bottom: 14px; left: 20px; width: 14px; height: 14px; fill: rgba(123, 97, 255, 0.4); animation: pulse-opacity 2s ease-in-out infinite; }
.deco-dot-3 { top: 33%; left: 6px; width: 10px; height: 10px; fill: rgba(255, 95, 162, 0.4); animation: bounce 3s ease-in-out infinite; }
.deco-dot-4 { top: 6px; left: 50%; width: 10px; height: 10px; fill: rgba(55, 230, 164, 0.4); animation: bounce 2.4s ease-in-out infinite 0.6s; }
.deco-star-3 { bottom: 33%; right: 28px; width: 18px; height: 18px; fill: rgba(123, 97, 255, 0.35); transform: rotate(45deg); animation: spin 7s linear infinite; }

@keyframes spin-rev {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes ping {
  0% { transform: scale(1); opacity: 1; }
  75%, 100% { transform: scale(2); opacity: 0; }
}

@keyframes pulse-opacity {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.fly {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
}

.fly-plane { top: 15%; left: -10%; width: 26px; height: 26px; fill: rgba(255, 95, 162, 0.6); animation: fly-plane 6s ease-in-out infinite; }
.fly-spark-1 { top: 55%; left: -6%; width: 11px; height: 11px; fill: rgba(55, 230, 164, 0.7); animation: fly-sparkle 5s ease-in-out infinite 1.2s; }
.fly-spark-2 { top: 78%; left: -6%; width: 9px; height: 9px; fill: rgba(123, 97, 255, 0.7); animation: fly-sparkle 5s ease-in-out infinite 3s; }
.fly-spark-3 { top: 30%; left: -6%; width: 13px; height: 13px; fill: rgba(255, 95, 162, 0.7); animation: fly-sparkle-down 4.5s ease-in-out infinite 2s; }
.fly-dot { top: 65%; left: -6%; width: 7px; height: 7px; fill: rgba(55, 230, 164, 0.7); animation: fly-sparkle 4s ease-in-out infinite 0.4s; }

@keyframes fly-plane {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translate(140%, -18px) rotate(8deg); }
  90% { opacity: 1; }
  100% { transform: translate(280%, 6px) rotate(0deg); opacity: 0; }
}

@keyframes fly-sparkle {
  0% { transform: translate(0, 0) scale(0.6) rotate(0deg); opacity: 0; }
  15% { opacity: 1; }
  50% { transform: translate(160%, -12px) scale(1) rotate(180deg); }
  85% { opacity: 1; }
  100% { transform: translate(320%, 4px) scale(0.6) rotate(360deg); opacity: 0; }
}

@keyframes fly-sparkle-down {
  0% { transform: translate(0, 0) scale(0.6) rotate(0deg); opacity: 0; }
  15% { opacity: 1; }
  50% { transform: translate(150%, 20px) scale(1) rotate(-180deg); }
  85% { opacity: 1; }
  100% { transform: translate(300%, -6px) scale(0.6) rotate(-360deg); opacity: 0; }
}

.thanks-greeting {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--success);
  margin: 0 0 4px;
  min-height: 16px;
}

.thanks-heading {
  text-align: center;
  font-size: 24px;
}

.thanks-shine {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(
    90deg,
    var(--accent) 0%,
    var(--accent-2) 25%,
    var(--accent) 50%,
    var(--accent-2) 75%,
    var(--accent) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine-move 4s linear infinite;
}

@keyframes shine-move {
  to {
    background-position: -200% center;
  }
}

.thanks-shine svg {
  width: 16px;
  height: 16px;
  fill: var(--accent-2);
  animation: pulse-opacity 2s ease-in-out infinite;
}

.thanks-line {
  display: block;
  color: var(--text-main);
  margin-top: 4px;
}

.thanks-highlight {
  color: var(--success);
  animation: pulse-opacity 2s ease-in-out infinite;
}

.thanks-buttons {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
  width: 100%;
}

.thanks-btn {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border-radius: 14px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.01em;
  cursor: pointer;
  opacity: 0;
  border: none;
  animation: option-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--option-index, 0) * 120ms);
  transition: transform 0.15s ease;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.4);
}

.thanks-btn:active {
  transform: scale(0.98);
}

.thanks-btn-telegram { background: linear-gradient(to bottom, #3fa9f5, #1e88e5); }
.thanks-btn-whatsapp { background: linear-gradient(to bottom, #57d15e, #22a83f); }
.thanks-btn-facebook { background: linear-gradient(to bottom, #4267ff, #1a3fd6); }

.thanks-btn .shimmer {
  position: absolute;
  inset-block: 0;
  left: -50%;
  width: 33%;
  transform: skewX(-12deg) translateX(-150%);
  background: rgba(255, 255, 255, 0.25);
  transition: transform 0.7s ease-out;
}

.thanks-btn:hover .shimmer {
  transform: skewX(-12deg) translateX(420%);
}

.thanks-btn-icon {
  position: relative;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: icon-float 2.6s ease-in-out infinite;
}

.thanks-btn-icon svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.thanks-btn-icon .badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #bef264;
  border: 2px solid rgba(255, 255, 255, 0.9);
  animation: pulse-opacity 2s ease-in-out infinite;
}

@keyframes icon-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.thanks-btn-label {
  position: relative;
  flex: 1;
  text-align: left;
}

.thanks-btn-chevron {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: rgba(255, 255, 255, 0.85);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}

.thanks-btn:hover .thanks-btn-chevron {
  transform: translateX(3px);
}

/* site footer (Privacy Policy / Terms of Use links) */

.legal-footer {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  text-align: center;
  font-size: 11px;
  opacity: 0.7;
}

.legal-footer a {
  color: var(--text-dim);
  text-decoration: none;
}

.legal-footer a:hover {
  color: var(--text-main);
  text-decoration: underline;
}

.legal-footer .legal-sep {
  margin: 0 8px;
  color: rgba(255, 255, 255, 0.3);
}

.legal-company {
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.6;
  opacity: 0.55;
}

.legal-company a {
  color: inherit;
  text-decoration: underline;
}

.legal-footer-nav .legal-company {
  margin-top: 14px;
  text-align: left;
  opacity: 0.6;
}

/* privacy.html / terms.html standalone legal pages */

body.legal-page {
  align-items: flex-start;
  padding: 48px 24px 64px;
}

.legal-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.legal-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 40px 36px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--text-dim);
  text-decoration: none;
}

.legal-back:hover {
  color: var(--text-main);
}

.legal-content h1 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 4px;
}

.legal-content h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 28px 0 10px;
}

.legal-content h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dim);
  margin: 0 0 18px;
}

.legal-content p,
.legal-content li {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-dim);
}

.legal-content strong {
  color: var(--text-main);
}

.legal-content ul {
  margin: 0 0 14px;
  padding-left: 22px;
}

.legal-content a {
  color: var(--text-main);
  text-decoration: underline;
}

.legal-content .legal-updated {
  font-size: 13px;
  color: var(--text-dim);
  margin: 0 0 24px;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 0 0 18px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
}

.legal-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 640px;
}

.legal-table th,
.legal-table td {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-dim);
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--card-border);
}

.legal-table th {
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
}

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

.legal-footer-nav {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--card-border);
  font-size: 14px;
}

/* consent__* markup pasted verbatim from the operator's official policy pages */

.legal-card .consent__title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 4px;
}

.legal-card .consent__subtitle {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dim);
  margin: 0 0 18px;
}

.legal-card .consent__section-title {
  font-size: 18px;
  font-weight: 600;
  margin: 28px 0 10px;
}

.legal-card .consent__paragraph {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-dim);
  margin: 0 0 14px;
}

.legal-card .consent__paragraph--indent {
  margin-left: 22px;
}

.legal-card .consent__list {
  margin: 0 0 14px;
  padding-left: 22px;
  list-style: none;
}

.legal-card .consent__list-item {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-dim);
}

.legal-card .consent__link {
  color: var(--text-main);
  text-decoration: underline;
}

.legal-card .consent__table-wrap {
  overflow-x: auto;
  margin: 0 0 18px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
}

.legal-card .consent__table {
  border-collapse: collapse;
  width: 100%;
  min-width: 640px;
}

.legal-card .consent__table th,
.legal-card .consent__table td {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-dim);
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--card-border);
}

.legal-card .consent__table th {
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
}

.legal-card .consent__table tr:last-child td {
  border-bottom: none;
}

.legal-card .consent__table-num {
  white-space: nowrap;
}

.legal-card .consent__back {
  margin-top: 24px;
}

.legal-card .consent__back-link {
  color: var(--text-main);
  text-decoration: underline;
  font-size: 14px;
}

@media (max-width: 520px) {
  .legal-card {
    padding: 28px 22px;
  }
}

/* cookie consent banner */

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  max-width: 640px;
  margin: 0 auto;
  padding: 16px 20px;
  background: #241247;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  box-shadow: 0 20px 44px -16px rgba(0, 0, 0, 0.6);
  animation: cookie-banner-in 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.cookie-banner-text {
  flex: 1 1 260px;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-dim);
}

.cookie-banner-text a {
  color: var(--text-main);
  text-decoration: underline;
}

.cookie-banner-accept {
  flex-shrink: 0;
  padding: 10px 22px;
  border: none;
  border-radius: 10px;
  background: var(--accent-grad);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.25s ease;
  box-shadow: 0 10px 22px -8px rgba(255, 95, 162, 0.5);
}

.cookie-banner-accept:hover {
  transform: translateY(-1px);
}

.cookie-banner-hide {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

@keyframes cookie-banner-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
