:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #000000;
  color: #f4f7fb;
  --accent: #34d399;
  --accent-soft: #6ee7b7;
  --accent-glow: rgba(52, 211, 153, .12);
  --muted: #7a8a9e;
  --border: rgba(255, 255, 255, .08);
  --surface: rgba(18, 18, 18, .95);
  --surface-hover: rgba(30, 30, 30, .95);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #000000;
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(52, 211, 153, .06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(34, 180, 120, .04) 0%, transparent 50%);
}

/* ===== Card ===== */
.card {
  position: relative;
  z-index: 1;
  width: min(100%, 540px);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  padding: 36px 36px 40px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .03),
    0 40px 100px rgba(0, 0, 0, .6),
    0 0 80px rgba(52, 211, 153, .03);
  backdrop-filter: blur(24px);
  transition: box-shadow .3s ease;
  animation: card-in .7s cubic-bezier(.22, 1, .36, 1) both;
}
.card:hover {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .05),
    0 40px 100px rgba(0, 0, 0, .6),
    0 0 120px rgba(52, 211, 153, .06);
}

/* ===== Background FX: летящие точки (canvas #particles) ===== */
.particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ===== Каскадное появление карточки ===== */
@keyframes card-in {
  from { opacity: 0; transform: translateY(22px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.card > * { animation: rise .6s cubic-bezier(.22, 1, .36, 1) both; }
.card > .brand { animation-delay: .08s; }
.card > h1 { animation-delay: .14s; }
.card > .subtitle { animation-delay: .18s; }
.card > .qr-view,
.card > .transfer-view { animation-delay: .26s; }
.card > .site-footer { animation-delay: .34s; }

/* ===== Акцентный градиент на заголовке ===== */
.card h1 {
  background: linear-gradient(115deg, #f4f7fb 35%, var(--accent-soft) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== Иконка в зоне загрузки ===== */
/* Без какого-либо движения: ни анимаций, ни сдвига иконки при наведении. */
.dz-ico {
  justify-self: center;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--accent-soft);
}
.dz-ico svg { width: 22px; height: 22px; }

/* ===== Уважение к reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  .card,
  .card > * {
    animation: none !important;
  }
}

/* ===== Brand ===== */
.brand {
  text-decoration: none;
  margin-bottom: 16px;
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.brand span {
  font-size: 18px;
  color: var(--accent-soft);
  opacity: .7;
  line-height: 1;
  transform: translateY(-2px);
}

/* ===== Typography ===== */
h1 {
  margin: 0 0 10px;
  font-size: clamp(24px, 5vw, 30px);
  font-weight: 700;
  letter-spacing: -.03em;
  color: #eef2f7;
}
.subtitle, .hint {
  color: var(--muted);
  line-height: 1.55;
}
.subtitle {
  margin: 0 auto 24px;
  max-width: 380px;
  font-size: 15px;
}

/* ===== QR View ===== */
.qr-view {
  min-height: 320px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 17px;
  color: var(--muted);
}
.qr-view img {
  width: min(260px, 78vw);
  padding: 14px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, .4),
    0 0 60px rgba(52, 211, 153, .08);
  transition: transform .2s ease;
}
.qr-view p { margin: 0; font-size: 14px; }

/* ===== Loader ===== */
.loader {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, .08);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hidden { display: none !important; }

/* ===== Status ===== */
.status {
  margin: 18px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.status.connected {
  color: #34d399;
}

/* ===== Drop Zone ===== */
.drop-zone {
  min-height: 180px;
  margin-top: 24px;
  display: grid;
  place-content: center;
  gap: 8px;
  border: 1.5px dashed rgba(255, 255, 255, .12);
  border-radius: 16px;
  color: #e0e0e0;
  cursor: pointer;
  background: rgba(255, 255, 255, .02);
  transition: all .25s ease;
}
.drop-zone:hover,
.drop-zone.over {
  border-color: var(--accent);
  background: var(--accent-glow);
  box-shadow: 0 0 40px rgba(52, 211, 153, .08);
}
.drop-zone:hover strong,
.drop-zone.over strong {
  color: var(--accent);
}
.drop-zone strong {
  font-size: 16px;
  font-weight: 600;
  transition: color .25s ease;
}
/* Нижняя надпись «или нажмите для выбора» приклеена к верхней строке:
   блок остаётся под верхним текстом, но наследует его цвет (включая
   акцент при наведении), размер и жирность. */
.drop-zone strong .sub {
  display: block;
}
.drop-zone input { display: none; }
.drop-zone .hint {
  margin: 2px 0 0;
  font-size: 12px;
  opacity: .5;
}

/* ===== Chat / File List ===== */
.transfer-view {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.chat {
  position: relative;
  /* Список тянется по фактическому числу файлов: без минимальной высоты окно
     не раздувается «на 3–4 файла», когда файл один. Прокрутка появляется,
     только когда контент упирается в max-height карточки. */
  flex: 0 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin: 18px 0 0;
  text-align: left;
}
/* Плавное растворение списка у краёв: маска делает сами буквы прозрачными
   у границы, поэтому контент не просвечивает через полупрозрачный слой. */
.chat.has-scroll .file-list {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}

.file-list {
  flex: 0 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 14px 4px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(52, 211, 153, .25) transparent;
}
.file-list::-webkit-scrollbar { width: 6px; }
.file-list::-webkit-scrollbar-track { background: transparent; }
.file-list::-webkit-scrollbar-thumb { background: rgba(52, 211, 153, .25); border-radius: 3px; }

.file-item {
  margin: 8px 0;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #d0d8e4;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  animation: file-in .25s ease-out;
  transition: background .2s ease;
}
.file-item:hover {
  background: rgba(255, 255, 255, .06);
}
/* Файл скачивается кликом по любому месту карточки — курсор-рука. */
.file-item.downloadable {
  cursor: pointer;
}
.file-item::before {
  content: '✓';
  order: 3;
  flex: 0 0 auto;
  margin-left: auto;
  color: #34d399;
  font-weight: 700;
}
.file-item.pending::before {
  content: '';
  width: 16px;
  height: 16px;
  background: var(--muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8v8M8 12l4 4 4-4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8v8M8 12l4 4 4-4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.file-item.sending::before {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, .15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.file-item.downloaded::before {
  content: '✓';
  color: #34d399;
}
@keyframes file-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.file-item.error {
  color: #f87171;
  border-color: rgba(248, 113, 113, .2);
  background: rgba(248, 113, 113, .08);
}
/* Восклицательный знак в треугольнике вместо крестика-«закрыть». */
.file-item.error::before {
  content: '';
  width: 16px;
  height: 16px;
  background: #f87171;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'/%3E%3Cline x1='12' y1='9' x2='12' y2='13'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'/%3E%3Cline x1='12' y1='9' x2='12' y2='13'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ===== Thumbnails ===== */
.file-thumb {
  order: 1;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.file-thumb.photo img {
  display: block;
  max-width: 56px;
  max-height: 56px;
  width: auto;
  height: auto;
  border-radius: 8px;
}
.file-thumb.icon {
  gap: 2px;
  color: var(--accent-soft);
}
.file-thumb.icon svg {
  width: 32px;
  height: 32px;
  opacity: .85;
}
.file-thumb.icon .ext {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .06em;
}
.file-body {
  order: 2;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}
.file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-item a.file-name {
  color: var(--accent-soft);
  text-decoration: none;
  font-weight: 600;
  transition: color .2s ease;
}
.file-item a.file-name:hover {
  color: #ffffff;
  text-decoration: underline;
}
.file-meta {
  display: flex;
  gap: 10px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
}
.file-item.error .file-meta {
  color: #f87171;
}

/* ===== Button ===== */
.button {
  border: 0;
  border-radius: 12px;
  padding: 12px 20px;
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  background: linear-gradient(135deg, rgba(52, 211, 153, .2), rgba(34, 180, 120, .15));
  border: 1px solid rgba(52, 211, 153, .2);
  cursor: pointer;
  transition: all .2s ease;
}
.button:hover {
  background: linear-gradient(135deg, rgba(52, 211, 153, .3), rgba(34, 180, 120, .25));
  border-color: rgba(52, 211, 153, .35);
  box-shadow: 0 0 20px rgba(52, 211, 153, .1);
}

/* ===== Hint ===== */
.hint {
  margin: 24px 0 0;
  font-size: 12px;
  opacity: .6;
}

/* ===== Site footer ===== */
.site-footer {
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--muted);
  font-size: 11px;
}
.site-footer a { color: var(--accent-soft); text-decoration: none; }
.site-footer a:hover { color: #ffffff; }

/* ===== About page: полноэкранный лендинг без ограничивающей карточки ===== */
body.about-page {
  display: block;
  min-height: 100vh;
  padding: 0;
  background-image:
    radial-gradient(ellipse 60% 45% at 12% -5%, rgba(52, 211, 153, .1) 0%, transparent 60%),
    radial-gradient(ellipse 45% 35% at 92% 12%, rgba(34, 180, 120, .06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 50% 115%, rgba(52, 211, 153, .07) 0%, transparent 60%);
}
html { scroll-behavior: smooth; }
#how { scroll-margin-top: 90px; }

.about-wrap { width: min(100% - 48px, 1100px); margin-inline: auto; }

/* ── Nav ── */
.about-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, .7);
  backdrop-filter: blur(18px);
}
.about-nav .brand { white-space: nowrap; }
.about-nav .brand { margin: 0; }
.nav-cta {
  padding: 11px 18px;
  border-radius: 11px;
  color: #06120d;
  background: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.nav-cta:hover {
  background: var(--accent-soft);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(52, 211, 153, .28);
}

/* ── Hero ── */
.hero { padding: clamp(64px, 11vh, 120px) 0 clamp(40px, 7vh, 80px); max-width: 820px; }
.kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  font-size: clamp(38px, 6.5vw, 68px);
  line-height: 1.02;
  letter-spacing: -.05em;
  color: #eef2f7;
}
.hero h1 em { color: var(--accent-soft); font-style: normal; }
.hero .lead {
  margin: 24px 0 0;
  max-width: 640px;
  color: #a6b3c1;
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.65;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin: 46px 0 0;
  padding: 0;
  border-top: 1px solid var(--border);
}
.hero-facts li { flex: 1 1 auto; padding: 20px 24px 0 0; display: grid; gap: 4px; }
.hero-facts li + li { border-left: 1px solid var(--border); padding-left: 24px; }
.hero-facts strong { color: var(--accent-soft); font-size: 22px; letter-spacing: -.02em; }
.hero-facts span { color: var(--muted); font-size: 12px; }

/* ── Sections ── */
.section { padding: clamp(36px, 6vh, 64px) 0; }
.section h2 {
  margin: 0 0 32px;
  font-size: clamp(26px, 4vw, 36px);
  letter-spacing: -.03em;
  color: #eef2f7;
}

/* ── Steps ── */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
}
.steps li {
  padding: 26px 24px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 18px;
  background: rgba(255, 255, 255, .025);
}
.step-num {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #06120d;
  background: var(--accent);
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(52, 211, 153, .25);
}
.steps h3 { margin: 20px 0 8px; color: #eef2f7; font-size: 17px; }
.steps p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

/* ── Features ── */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature-card {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 18px;
  background: rgba(255, 255, 255, .025);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.feature-card:hover {
  border-color: rgba(52, 211, 153, .3);
  background: rgba(52, 211, 153, .05);
  transform: translateY(-3px);
}
.feature-ico {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(52, 211, 153, .25);
  border-radius: 12px;
  background: rgba(52, 211, 153, .08);
  color: var(--accent-soft);
  font-size: 19px;
}
.feature-card h3 { margin: 18px 0 8px; color: #eef2f7; font-size: 16px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

/* ── Privacy checklist ── */
.check-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 32px;
  margin: 0;
  padding: 0;
}
.check-list li {
  position: relative;
  padding-left: 30px;
  color: #a6b3c1;
  font-size: 14px;
  line-height: 1.6;
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 800;
}

/* ── FAQ ── */
.faq details {
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 14px;
  background: rgba(255, 255, 255, .02);
}
.faq details + details { margin-top: 10px; }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0;
  cursor: pointer;
  color: #eef2f7;
  font-size: 15px;
  font-weight: 600;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 22px; font-weight: 700; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.65; }

/* ── Final CTA ── */
.final-cta {
  margin-top: clamp(24px, 5vh, 48px);
  padding: clamp(36px, 6vw, 64px) 24px;
  text-align: center;
  border: 1px solid rgba(52, 211, 153, .25);
  border-radius: 28px;
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(52, 211, 153, .12) 0%, transparent 70%),
    rgba(255, 255, 255, .02);
  box-shadow: 0 0 90px rgba(52, 211, 153, .06);
}
.final-cta h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 4vw, 32px);
  letter-spacing: -.03em;
  color: #eef2f7;
}
.final-cta p { margin: 0 auto 28px; max-width: 460px; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* ── Buttons ── */
.about-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 12px;
  color: #06120d;
  background: var(--accent);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(52, 211, 153, .2);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.about-button span { font-size: 16px; }
.about-button:hover {
  background: var(--accent-soft);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(52, 211, 153, .3);
}
.about-button.big { padding: 16px 30px; font-size: 15px; border-radius: 13px; }
.ghost-button {
  display: inline-flex;
  align-items: center;
  padding: 14px 22px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: #d0d8e4;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.ghost-button:hover {
  color: #ffffff;
  border-color: rgba(52, 211, 153, .4);
  background: rgba(52, 211, 153, .06);
}

/* ── Footer ── */
.about-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: clamp(40px, 8vh, 72px);
  padding: 26px 0 36px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
}
.about-footer a { color: var(--accent-soft); text-decoration: none; }
.about-footer a:hover { color: #ffffff; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .steps, .feature-grid { grid-template-columns: 1fr; }
  .check-list { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .about-wrap { width: min(100% - 32px, 1100px); }
  .about-nav { padding: 14px 16px; width: 100vw; margin-left: calc(50% - 50vw); }
  .about-nav .brand { font-size: 10px; letter-spacing: .16em; }
  .about-button span { display: none; }
  .hero-facts { flex-direction: column; }
  .hero-facts li { padding: 14px 0 0; }
  .hero-facts li + li { border-left: 0; border-top: 1px solid var(--border); padding-left: 0; margin-top: 14px; }
}

/* ===== Modal: подтверждение повторного скачивания ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(8px);
  animation: fade-in .18s ease;
}
.modal {
  width: min(100%, 340px);
  padding: 26px 24px 22px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  text-align: center;
  animation: pop-in .18s ease;
}
.modal-title {
  margin: 0 0 6px;
  color: #eef2f7;
  font-size: 16px;
  font-weight: 700;
}
.modal-file {
  margin: 0 0 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 13px;
}
.modal-actions {
  display: flex;
  gap: 10px;
}
.modal-actions .button,
.modal-cancel {
  flex: 1;
  padding: 12px 16px;
}
.modal-cancel {
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  background: transparent;
  cursor: pointer;
  transition: all .2s ease;
}
.modal-cancel:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .04);
}

/* ===== Drag-to-scroll: листание чата зажатой мышью ===== */
body.dragging-scroll,
body.dragging-scroll * {
  cursor: grabbing !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop-in {
  from { opacity: 0; transform: translateY(10px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== Responsive ===== */
@media (max-width: 540px) {
  body { padding: 14px; }
  .card { padding: 28px 20px 32px; border-radius: 20px; max-height: calc(100vh - 28px); max-height: calc(100dvh - 28px); }
  .drop-zone { min-height: 150px; }
}

/* ===== About page: мобильная версия ===== */
@media (max-width: 560px) {
  body.about-page { padding: 0; }
}
