/* Дизайн под референсы Pacifica: тёмный сине-чёрный фон + размытые бирюзово-синие
   свечения, стеклянные карточки. Всё self-contained (без внешних картинок). */
:root {
  --bg: #05080f;
  --surface: rgba(255, 255, 255, 0.035);
  --surface2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border2: rgba(255, 255, 255, 0.16);
  --text: #eaf1f8;
  --muted: #93a1b3;
  --dim: #5f6b7d;
  --cyan: #38c6e4;
  --cyan-soft: rgba(56, 198, 228, 0.14);
  --green: #26d07c;
  --red: #f05a5f;
  --amber: #e6b23c;
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--text);
  font: 15px/1.6 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
}

/* Фон: глубокая база + размытые светящиеся дуги */
/* Плавный переход: тёмный слева → мягкий бирюзовый справа */
.bg { position: fixed; inset: 0; z-index: -1; background:
  radial-gradient(1600px 1400px at 100% 44%, rgba(64, 196, 226, 0.48), rgba(34, 132, 172, 0.22) 32%, transparent 62%),
  linear-gradient(95deg, #04070e 0%, #050b13 46%, #061821 100%);
}

.wrap { max-width: 820px; margin: 0 auto; padding: 48px 20px 80px; position: relative; }

/* Шапка/герой */
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.01em; }
.brand .mark { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, var(--cyan), #2b7fd0); flex: none; }
h1 { font-size: 34px; font-weight: 700; letter-spacing: -0.025em; margin: 22px 0 10px; line-height: 1.1; }
.lead { color: var(--muted); font-size: 17px; margin: 0 0 26px; max-width: 620px; }

/* Стеклянные секции/карточки */
.glass {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.section { margin: 26px 0; }
.sec-title { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); margin: 0 0 12px; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; border: 0;
  border-radius: 12px; font-size: 15px; font-weight: 600; padding: 13px 22px; text-decoration: none;
}
.btn-primary { background: linear-gradient(135deg, var(--cyan), #2b83d4); color: #04121a; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-secondary { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border2); color: var(--text); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--cyan); }
.btn:disabled { opacity: 0.5; cursor: default; }

/* Типы кошельков (methodology) */
.types { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.type { padding: 16px 18px; }
.type .n { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.type .n .d { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.type p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }

.note { padding: 16px 18px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.note b { color: var(--text); font-weight: 600; }

/* Поиск (analyzer) */
.search { display: flex; gap: 10px; margin: 8px 0 22px; }
.search input {
  flex: 1; background: rgba(255,255,255,0.04); border: 1px solid var(--border2); border-radius: 12px;
  color: var(--text); padding: 13px 15px; font-size: 14px; outline: none; font-family: ui-monospace, monospace;
}
.search input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px var(--cyan-soft); }
.status { color: var(--muted); font-size: 14px; min-height: 20px; margin-bottom: 10px; }
.status.err { color: var(--red); }

/* Карточка результата */
.card { display: flex; flex-direction: column; gap: 16px; }
.verdict, .metric, .info, .chart-box {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.addr { font-size: 16px; font-weight: 600; font-family: ui-monospace, monospace; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 11px; border-radius: 20px; }
.badge.type { background: var(--surface2); color: var(--muted); }
.badge.dormant { background: rgba(230,178,60,0.14); color: var(--amber); }
.badge.active { background: rgba(38,208,124,0.14); color: var(--green); }
.badge.super { background: var(--cyan-soft); color: var(--cyan); }
.dot { width: 7px; height: 7px; border-radius: 50%; }

.verdict { padding: 18px 20px; }
.verdict .lbl { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: var(--cyan); margin-bottom: 9px; }
.verdict p { margin: 0; font-size: 16.5px; line-height: 1.62; }

.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 11px; }
.metric { padding: 13px 15px; }
.metric .k { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.metric .v { font-size: 23px; font-weight: 700; letter-spacing: -0.02em; }
.pos { color: var(--green); } .neg { color: var(--red); }
.flows { color: var(--muted); font-size: 13.5px; margin: 10px 0 0; }
.flows b { color: var(--text); font-weight: 600; }

.chart-box { padding: 16px; }
.chart-wrap { position: relative; height: 185px; }

.cards2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.info { padding: 15px 17px; }
.info h3 { margin: 0 0 11px; font-size: 14px; font-weight: 600; }
.row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 14px; border-bottom: 1px solid var(--border); }
.row:last-child { border-bottom: 0; }
.row .k { color: var(--muted); } .row .v { font-weight: 600; text-align: right; }

.warn { background: rgba(230,178,60,0.1); color: var(--amber); border-radius: var(--radius); padding: 12px 15px; font-size: 14px; }

/* Модалка обратной связи (всплывающее окно) */
.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center;
  background: rgba(3, 6, 12, 0.74); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); padding: 20px; }
.modal[hidden] { display: none; }
.modal-card { position: relative; width: 100%; max-width: 520px; padding: 24px; }
.modal-card h3 { margin: 0 0 6px; font-size: 18px; font-weight: 600; }
.modal-sub { margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.modal-x { position: absolute; top: 10px; right: 14px; background: none; border: 0; color: var(--muted);
  font-size: 24px; line-height: 1; cursor: pointer; }
.modal-x:hover { color: var(--text); }
.modal form { display: flex; flex-direction: column; gap: 10px; }
.modal textarea, .modal input {
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border2); border-radius: 10px;
  color: var(--text); padding: 10px 12px; font: inherit; outline: none; resize: vertical;
}
.modal textarea:focus, .modal input:focus { border-color: var(--cyan); }
.fb-row { display: flex; align-items: center; gap: 12px; }
.fb-status { color: var(--muted); font-size: 13.5px; }

.foot { margin-top: 44px; color: var(--dim); font-size: 12.5px; }
.foot a, a.link { color: var(--cyan); text-decoration: none; }
.foot a:hover, a.link:hover { text-decoration: underline; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
