:root {
  --bg1: #5f2a88;
  --bg2: #6a2a92;
  --card: rgba(255, 255, 255, 0.14);
  --card2: rgba(255, 255, 255, 0.12);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.75);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}
* {
  box-sizing: border-box;
}

html.donate,
body.donate {
  margin: 0 !important;
  padding: 0 !important;
}

body.donate {
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  color: var(--text);
  background: #fff; /* white page background */
  min-height: 100svh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0; /* remove all default padding */
}

/* dark mode for donate page */
body.donate.dark {
  background: #18181b; /* dark background instead of purple */
}
body.donate.dark .page-frame {
  background:
    radial-gradient(1200px 800px at 70% 15%, rgba(0, 0, 0, 0.2), transparent 55%),
    radial-gradient(900px 700px at 15% 60%, rgba(0, 0, 0, 0.3), transparent 50%),
    linear-gradient(180deg, #1f1f1f, #111);
}
body.donate.dark .top-header .header-top-right .header-link {
  color: #e7ecff !important; /* make icons light */
}
body.donate.dark .top-header .header-top-right .header-link:hover {
  color: var(--accent, #ff7f27) !important;
}

body.donate main {
  padding-top: 0; /* remove extra space under header */
}

body.donate {
  padding-bottom: 0; /* remove space below footer */
}

/* make the white page-frame transparent on donate page so cards sit on purple background
   and keep it centered with a reasonable max width */
body.donate .page-frame {
  /* purple gradient container background, with glow shadow like homepage */
  background:
    radial-gradient(1200px 800px at 70% 15%, rgba(255, 255, 255, 0.1), transparent 55%),
    radial-gradient(900px 700px at 15% 60%, rgba(0, 0, 0, 0.18), transparent 50%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  margin: 0 auto !important;
  max-width: 1200px; /* same as .container on homepage */
  width: 100%;
  padding: 0; /* remove default page-frame padding if any */
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
}

/* dark variant similar to global page-frame dark style */
body.donate.dark .page-frame {
  background: var(--primary-gray);
  box-shadow: 0 0 2.5em 0.5em rgba(0, 0, 0, 0.7);
  border-radius: 4px;
}

.wrap {
  width: min(760px, 100%);
  position: relative;
  margin: 0 auto; /* center horizontally */
  background: inherit; /* match body color */
}

.top {
  text-align: center;
  margin: 60px auto 16px; /* push section farther down from header */
}
.top h1 {
  font-size: clamp(22px, 3.3vw, 30px);
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: 0.2px;
  text-align: center;
}
.top .brand {
  font-size: 16px;
  letter-spacing: 0.6px;
  opacity: 0.85;
}
.divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
  margin: 16px auto 18px;
  width: min(640px, 92%);
  border-radius: 99px;
}

/* floating emoji bubbles */
/* keep site header/nav legible when donate theme is active */
/* only darken the small header icons (language/login) on donate page */
body.donate .top-header .header-top-right .header-link {
  color: #111 !important;
}
body.donate .top-header .header-top-right .header-link:hover {
  color: var(--accent, #ff7f27) !important;
}
/* keep nav buttons readable (light text) */
body.donate .top-header .header-nav .button {
  color: #f9fafb !important;
}
body.donate .top-header .header-nav .button:hover {
  color: var(--accent, #ff7f27) !important;
}

.bubble {
  position: absolute;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  user-select: none;
  pointer-events: none;
  font-size: 24px;
  opacity: 0.95;

  transform: translateY(670px);
}
.b1 {
  left: 50px;
  top: 120px;
}
.b2 {
  right: 50px;
  top: 130px;
}
.b3 {
  left: 50px;
  top: 380px;
  width: 50px;
  height: 50px;
  font-size: 22px;
}
.b4 {
  right: 50px;
  top: 380px;
  width: 50px;
  height: 50px;
  font-size: 22px;
}

.qr-stage {
  display: flex;
  justify-content: center;
  margin: 8px 0 18px;
}

/* white plate with thick border (like in the screenshot) */
.qr-plate {
  background: #fff;
  border-radius: 22px;
  padding: 18px;
  border: 10px solid #111;
  box-shadow: var(--shadow);
  width: min(420px, 92%);
  position: relative;
}
.qr-plate::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 30px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  pointer-events: none;
}
.qr {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.card {
  margin: 0 auto;
  width: min(680px, 100%);
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  padding: 18px 18px 16px;
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
}
.card h2 {
  margin: 0 0 12px;
  text-align: center;
  font-size: 18px;
  letter-spacing: 0.2px;
}
.card p {
  margin: 0 0 10px;
  text-align: center;
  color: var(--muted);
  line-height: 1.45;
}
.list {
  margin: 14px 0 10px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.item {
  width: min(560px, 100%);
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 10px 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.92);
}
.item .emo {
  font-size: 20px;
  line-height: 1.1;
  margin-top: 1px;
}
.item .txt {
  font-size: 15px;
  line-height: 1.35;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 14px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.12);
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
  transition:
    transform 0.12s ease,
    background 0.12s ease;
  cursor: pointer;
}
.btn:hover {
  transform: translateY(-1px);
  background: rgba(0, 0, 0, 0.18);
}
.btn:active {
  transform: translateY(0px);
}

.small {
  margin-top: 12px;
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
}
.mono {
  margin-top: 18px;
  text-align: center;
  opacity: 0.9;
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 28px;
}
.mono small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  opacity: 0.75;
  margin-top: 2px;
  letter-spacing: 0.8px;
}

/* ===== Base for animated icons ===== */
.icon {
  display: inline-block;
  line-height: 1;
  transform-origin: center;
}

/* ✨ сияние + “искры” */
.fx-stars {
  position: relative;
  animation: stars-twinkle 1.35s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.35));
}
.fx-stars::after {
  content: '✦';
  position: absolute;
  left: 60%;
  top: -35%;
  opacity: 0;
  animation: stars-spark 1.35s ease-in-out infinite;
}
@keyframes stars-twinkle {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.18);
    opacity: 1;
  }
}
@keyframes stars-spark {
  0% {
    transform: translate(0, 0) scale(0.6);
    opacity: 0;
  }
  35% {
    opacity: 0.95;
  }
  70% {
    transform: translate(10px, -10px) scale(1.1);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

/* 🛰️ спутник летит по дуге */
.fx-sat {
  animation: sat-orbit 4.6s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.18));
}
@keyframes sat-orbit {
  0% {
    transform: translate(0, 0) rotate(-8deg);
  }
  25% {
    transform: translate(10px, -6px) rotate(6deg);
  }
  50% {
    transform: translate(0, -10px) rotate(-2deg);
  }
  75% {
    transform: translate(-10px, -4px) rotate(6deg);
  }
  100% {
    transform: translate(0, 0) rotate(-8deg);
  }
}

/* 💡 мигание + лёгкая “пульсация света” */
.fx-bulb {
  animation: bulb-blink 2.2s ease-in-out infinite;
}
@keyframes bulb-blink {
  0%,
  12%,
  100% {
    filter: drop-shadow(0 0 0 rgba(255, 255, 180, 0));
    transform: scale(1);
    opacity: 0.85;
  }
  18% {
    filter: drop-shadow(0 0 14px rgba(255, 255, 180, 0.45));
    opacity: 1;
  }
  22% {
    filter: drop-shadow(0 0 4px rgba(255, 255, 180, 0.2));
    opacity: 0.9;
  }
  52% {
    filter: drop-shadow(0 0 18px rgba(255, 255, 180, 0.55));
    transform: scale(1.12);
    opacity: 1;
  }
  58% {
    filter: drop-shadow(0 0 2px rgba(255, 255, 180, 0.12));
    transform: scale(1.02);
    opacity: 0.9;
  }
}

/* 💲 “денежная волна” */
.fx-money {
  position: relative;
  animation: money-pop 1.9s ease-in-out infinite;
}
.fx-money::after {
  content: '💲';
  position: absolute;
  left: 110%;
  top: -10%;
  opacity: 0;
  animation: money-trail 1.9s ease-in-out infinite;
}
@keyframes money-pop {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  45% {
    transform: translateY(-4px) scale(1.12);
  }
  60% {
    transform: translateY(0) scale(1.02);
  }
}
@keyframes money-trail {
  0% {
    transform: translateX(0) translateY(0) scale(0.7);
    opacity: 0;
  }
  30% {
    opacity: 0.75;
  }
  60% {
    transform: translateX(8px) translateY(-10px) scale(1.05);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

/* 🛠️ “чинит” — стук/вибрация */
.fx-tools {
  animation: tools-hit 1.35s ease-in-out infinite;
  transform-origin: 70% 30%;
}
@keyframes tools-hit {
  0%,
  100% {
    transform: rotate(0deg) translate(0, 0);
  }
  35% {
    transform: rotate(-12deg) translate(-1px, -1px);
  }
  45% {
    transform: rotate(10deg) translate(1px, 0);
  }
  55% {
    transform: rotate(-6deg) translate(-1px, 1px);
  }
  70% {
    transform: rotate(0deg) translate(0, 0);
  }
}

/* 🍓 больше + появляется 🐹, кушает и уходит */
.fx-straw {
  position: relative;
  font-size: 1.15em; /* чуть больше */
  animation: straw-breathe 2.6s ease-in-out infinite;
}
.fx-straw::after {
  content: '🐹';
  position: absolute;
  left: 120%;
  top: -10%;
  opacity: 0;
  transform: translateX(18px) scale(0.8);
  animation: hamster-eat 6.2s ease-in-out infinite;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.25));
}
@keyframes straw-breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
  }
}
@keyframes hamster-eat {
  0% {
    opacity: 0;
    transform: translateX(26px) scale(0.85);
  }
  12% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  22% {
    transform: translateX(-4px) scale(1);
  }
  28% {
    transform: translateX(-4px) scale(1.02);
  } /* “ням” */
  34% {
    transform: translateX(-4px) scale(0.98);
  }
  42% {
    transform: translateX(-6px) scale(1.02);
  } /* “ням” */
  52% {
    opacity: 1;
    transform: translateX(6px) scale(0.95);
  } /* отходит */
  70% {
    opacity: 0;
    transform: translateX(26px) scale(0.85);
  } /* уходит */
  100% {
    opacity: 0;
    transform: translateX(26px) scale(0.85);
  }
}

/* 🫙 “наполнение монетками” */
.fx-jar {
  position: relative;
}
.fx-jar::after {
  content: '🪙🪙🪙';
  position: absolute;
  left: 0.05em;
  top: -0.9em;
  opacity: 0;
  font-size: 0.7em;
  animation: jar-coins 2.2s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.18));
}
@keyframes jar-coins {
  0% {
    transform: translateY(0) scale(0.9);
    opacity: 0;
  }
  18% {
    opacity: 0.9;
  }
  50% {
    transform: translateY(10px) scale(1);
    opacity: 0.95;
  }
  70% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

/* ====== Card flip (💳) ====== */
.card-flip {
  width: min(520px, 92vw);
  margin: 12px auto 0;
  perspective: 1100px;
}
.card-inner {
  position: relative;
  width: 100%;
  height: 140px;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.card-flip:hover .card-inner {
  transform: rotateY(180deg);
}
.card-face {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 18px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;

  /* помогает убрать “призрак” текста в некоторых браузерах */
  transform: translateZ(0);
}
.card-front .card-ico {
  font-size: 26px;
  margin-bottom: 6px;
  transform: rotateY(0deg);
}
.card-title {
  font-weight: 800;
  letter-spacing: 0.2px;
}
.card-hint {
  opacity: 0.75;
  font-size: 13px;
  margin-top: 6px;
}

.card-back {
  transform: rotateY(180deg);
  gap: 10px;
}
.card-back-title {
  opacity: 0.8;
  font-size: 12px;
  letter-spacing: 0.3px;
}
.card-number {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
  font-size: 18px;
  letter-spacing: 1px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== Tooltip for copy buttons ===== */
.copy-btn {
  position: relative;
}
.copy-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(6px);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 12px;
  letter-spacing: 0.2px;
  background: rgba(20, 10, 40, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
  transition: 0.18s ease;
}
.copy-btn:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Toast (всплывашка “Скопировано”) */
.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(14px);
  opacity: 0;
  z-index: 9999;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(20, 10, 40, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(10px);
  font-weight: 700;
  letter-spacing: 0.2px;
  transition: 0.22s ease;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* 1) Кнопка не растягивается */
.donate-actions .donate-btn {
  width: fit-content; /* ширина по контенту */
  max-width: 100%;
}

/* 2) Компактные размеры */
.donate-actions .donate-btn {
  padding: 10px 14px;
  min-height: 40px;
  font-size: 13px;
  border-radius: 14px;
  line-height: 1;
  gap: 10px;
  white-space: nowrap; /* чтобы не переносилась строка */
}

.donate-actions .donate-btn .icon {
  font-size: 16px;
  transform: translateY(1px);
}

/* БАНКА С МОНЕТАМИ */

/* ===== Layout рядом с кнопкой ===== */
.donate-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

/* ===== Jar widget ===== */
.jar-widget {
  margin-left: 5px;
  width: 110px;
  height: 78px;
  display: grid;
  opacity: 0.95;
}

.jar-jar {
  position: relative;
  width: 96px;
  height: 64px;
  border-radius: 18px 18px 22px 22px;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

/* “стекло” бликом */
.jar-glass {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.08) 22%,
    rgba(255, 255, 255, 0.02) 45%,
    rgba(255, 255, 255, 0.1) 70%,
    rgba(255, 255, 255, 0.02) 100%
  );
  opacity: 0.55;
  pointer-events: none;
}

/* Горлышко банки (слой сверху, чтобы монетки “ныряли”) */
.jar-mouth {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 6px;
  height: 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.18);
  pointer-events: none;
  z-index: 6;
}

/* Заполнение (прогресс) */
.jar-liquid {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  height: calc(var(--fill, 0.1) * 100%);
  border-radius: 12px;
  background: linear-gradient(
    to top,
    rgba(255, 208, 60, 0.55),
    rgba(255, 228, 120, 0.35),
    rgba(255, 255, 255, 0.12)
  );
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.12);
  transition: height 0.28s ease;
  z-index: 2;
}

/* Контейнер монет (внутри банки) */
.jar-coins {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

/* Монетка */
.jar-coins .coin {
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, -10px);
  transform: translate(-50%, 0) rotate(0deg) scale(1);
  opacity: 0;
  font-size: 15px;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.25));
  animation: jar-coin-fall var(--dur, 700ms) cubic-bezier(0.18, 0.8, 0.22, 1) forwards;
}

@keyframes jar-coin-fall {
  0% {
    opacity: 0;
    transform: translate(-50%, -10px) rotate(-20deg) scale(0.95);
  }
  10% {
    opacity: 1;
  }
  70% {
    opacity: 1;
    transform: translate(-50%, var(--drop, 40px)) rotate(160deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, calc(var(--drop, 40px) + 12px)) rotate(240deg) scale(0.96);
  }
}

.jar-label {
  margin-top: 6px;
  font-size: 11px;
  opacity: 0.75;
  letter-spacing: 0.2px;
}

/* ЖИВАЯ АНИМАЦИЯ ВСЕЙ КНОПКИ */
.donate-actions .donate-btn {
  /* размеры оставляем твои */
  width: fit-content;
  max-width: 100%;
  padding: 10px 14px;
  min-height: 40px;
  font-size: 13px;
  border-radius: 14px;
  line-height: 1;
  gap: 10px;
  white-space: nowrap;

  /* основа */
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.96);
  text-decoration: none;

  /* анимируем САМ фон */
  background: linear-gradient(
    120deg,
    rgba(165, 107, 255, 0.35),
    rgba(255, 159, 67, 0.28),
    rgba(165, 107, 255, 0.35)
  );
  background-size: 220% 220%;

  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.26),
    0 0 0 rgba(165, 107, 255, 0);

  animation:
    donateGradient 4.2s ease-in-out infinite,
    donateGlow 2.4s ease-in-out infinite;
  transition:
    transform 0.12s ease,
    filter 0.12s ease;
}

.donate-actions .donate-btn:hover {
  transform: translateY(-1px) scale(1.01);
  filter: brightness(1.06);
}

.donate-actions .donate-btn:active {
  transform: translateY(0) scale(0.98);
}

/* перелив */
@keyframes donateGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* “дыхание” свечения */
@keyframes donateGlow {
  0%,
  100% {
    box-shadow:
      0 12px 26px rgba(0, 0, 0, 0.26),
      0 0 12px rgba(165, 107, 255, 0.22),
      0 0 0 rgba(255, 159, 67, 0);
  }
  50% {
    box-shadow:
      0 16px 36px rgba(0, 0, 0, 0.32),
      0 0 20px rgba(255, 159, 67, 0.32),
      0 0 14px rgba(165, 107, 255, 0.25);
  }
}

/* Банка: на мобилке не показывать контекст-меню, не выделять */

.jar-widget,
.jar-jar,
.jar-coins,
.jar-mouth,
.jar-glass {
  -webkit-touch-callout: none; /* iOS/Chrome sometimes */
  -webkit-user-select: none;
  user-select: none;
}

.jar-jar {
  cursor: pointer;
  touch-action: manipulation; /* чтобы тап был тапом */
}

/* на всякий случай — убираем меню по долгому тапу именно на банке */
.jar-jar {
  -webkit-tap-highlight-color: transparent;
}

/* MOBILE ADAPTIVE */

/* По умолчанию (ПК): "Наведи — ..." */
.card-flip .card-hint::before {
  content: 'Наведи — чтобы посмотреть номер';
}

/* Мобилка/тач: "Нажми — ..." */
@media (hover: none), (pointer: coarse), (max-width: 640px) {
  .card-flip .card-hint::before {
    content: 'Нажми — чтобы посмотреть номер';
  }
}

/* Скрываем исходный текст внутри элемента, чтобы не было дубля */
.card-flip .card-hint {
  font-size: 0;
}
.card-flip .card-hint::before {
  font-size: 13px; /* верни размер, какой тебе нужен */
}

/* Банку снизу */

@media (max-width: 640px) {
  .donate-actions {
    flex-direction: column;
    gap: 10px;
  }
  .jar-widget {
    margin-left: 0;
  }
}

/* ===== MOBILE FIX ===== */

@media (max-width: 520px) {
  .card-flip {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .card-inner {
    width: 100% !important;
  }

  .card-face {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* на всякий случай — убрать любые min-width */

.card-flip,
.card-inner,
.card-face {
  min-width: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
  .jar-fill {
    transition: none;
  }
  .jar-mask .coin {
    animation: none;
    opacity: 1;
  }
}

/* mobile spacing tweaks */

@media (max-width: 420px) {
  .qr-plate {
    padding: 14px;
    border-width: 8px;
  }
  .bubble {
    display: none;
  } /* чтобы не мешали на маленьких экранах */
  .card {
    padding: 16px 14px 14px;
  }
}
