/* Чёрный список Sea of Thieves RU — тёмная морская тема */
:root {
  /* «Пламя Афины» — чёрно-зелёный призрачный огонь (выбор владельца 13.10.2026) */
  --bg: #08120e;
  --bg-glow: #10382a;
  --bg2: #0c1b15;
  --panel: #0e201a;
  --line: #1d3b2f;
  --text: #d9ead9;
  --dim: #83a892;
  --gold: #35d0a0;
  --gold2: #5ee6b8;
  --red: #e05555;
  --green: #4caf7d;
  --topbar-bg: rgba(6, 14, 11, .85);
  --nav-hover-bg: #12271f;
  --input-bg: #0a1712;
  --code-bg: #06100c;
  --th-bg: #0c1d17;
  --row-line: #163025;
  --row-hover: #10241c;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: radial-gradient(1200px 600px at 50% -100px, var(--bg-glow) 0%, var(--bg) 55%) fixed, var(--bg);
  color: var(--text);
  font: 15px/1.55 "Segoe UI", Roboto, Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--gold2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 28px; margin: 0 0 12px; color: var(--gold2); }
h2 { font-size: 19px; margin: 0 0 10px; color: var(--text); }
code { background: var(--code-bg); padding: 1px 6px; border-radius: 4px; font-size: 13px; }

.topbar {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  padding: 12px 22px;
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
  flex-wrap: wrap;
}
.brand { color: var(--text); font-size: 16px; white-space: nowrap; display: flex; align-items: center; gap: 9px; }
.brand:hover { text-decoration: none; }
.brand-logo { width: 30px; height: 30px; border-radius: 50%; display: block; }
.brand-sub { color: var(--dim); font-size: 13px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.auth { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 10px; }
@media (max-width: 760px) {
  .auth { position: static; transform: none; }
}
.lookup-status { font-size: 12.5px; color: var(--dim); min-height: 18px; }
.nav-link { color: var(--dim); padding: 6px 10px; border-radius: 8px; }
.nav-link:hover { color: var(--text); text-decoration: none; background: var(--nav-hover-bg); }
.nav-link.active { color: var(--gold2); background: var(--nav-hover-bg); }
.who { color: var(--dim); font-size: 13px; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.container { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 26px 22px 40px; }
/* Центрирование главной: блок героя ровно по середине экрана */
.container-center { display: flex; align-items: center; justify-content: center; }
.container-center .d2 { flex: 1; }
.footer { text-align: center; color: #55708a; font-size: 12px; padding: 18px; border-top: 1px solid var(--line); }

/* Кнопки */
.btn {
  display: inline-block; border: 1px solid var(--line); border-radius: 9px;
  padding: 9px 16px; font-size: 14px; cursor: pointer; color: var(--text);
  background: var(--bg2); transition: filter .15s;
}
.btn:hover { filter: brightness(1.2); text-decoration: none; }
.btn-lg { font-size: 17px; padding: 13px 26px; }
.btn-sm { padding: 4px 9px; font-size: 13px; }
.btn-discord { background: #5865f2; border-color: #5865f2; color: #fff; font-weight: 600; }
.btn-primary { background: var(--gold); border-color: var(--gold); color: #1a1206; font-weight: 600; }
.btn-danger { background: #6e2424; border-color: #8c3030; color: #ffd9d9; }
.btn-ghost { background: transparent; }
.inline { display: inline; }

/* Главная */
.fineprint { color: #55708a; font-size: 12px; }

/* Панели и формы */
.page.narrow { max-width: 720px; margin: 0 auto; }
.page h1 { text-align: center; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin: 14px 0; }
.panel.warn { border-color: #6e5a24; background: #241f10; }
.panel.ok { border-color: #2c5e42; background: #10241a; }
.page-head { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; position: relative; }
.page-tools { display: flex; gap: 8px; position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
.dim { color: var(--dim); }
.center { text-align: center; }

.search { display: flex; gap: 8px; margin: 12px 0; max-width: 560px; }
.input {
  width: 100%; background: var(--input-bg); border: 1px solid var(--line); color: var(--text);
  border-radius: 9px; padding: 9px 12px; font-size: 14px;
}
.input:focus { outline: none; border-color: var(--gold); }
select.input { width: auto; min-width: 140px; }
input[type="date"].input { color-scheme: dark; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.form-grid label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--dim); }
.form-grid .span2 { grid-column: span 2; }
.form-grid .checkbox { flex-direction: row; align-items: center; gap: 8px; font-size: 14px; color: var(--text); }

/* Таблицы */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; margin-top: 10px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th {
  text-align: left; padding: 10px 12px; color: var(--dim); font-weight: 600; font-size: 12px;
  text-transform: uppercase; letter-spacing: .04em;
  background: var(--th-bg); border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.tbl td { padding: 9px 12px; border-bottom: 1px solid var(--row-line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: var(--row-hover); }
.row-archived td { opacity: .55; }
.nick { font-weight: 600; }
.uid, a.uid { color: #55708a; font-size: 11px; margin-left: 6px; text-decoration: none; }
a.uid:hover { text-decoration: underline; }

/* Xbox-ник: колонка под самый длинный ник, без переносов */
.xbox { white-space: nowrap; }

/* Причина: обрезка до 2 строк + «показать полностью» */
.reason-cell { max-width: 360px; overflow-wrap: anywhere; }
.reason-text {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.reason-text.open { display: block; -webkit-line-clamp: unset; overflow: visible; }
.reason-toggle {
  display: block; background: none; border: none; padding: 4px 0 0;
  color: var(--gold2); font-size: 12px; cursor: pointer; text-align: left; font-family: inherit;
}
.reason-toggle:hover { text-decoration: underline; }
.reason-toggle[hidden] { display: none; }

/* IP: колонка узкая, длинные адреса обрезаются и раскрываются по клику */
.ip-cell { font-family: Consolas, monospace; font-size: 13px; max-width: 190px; }
.ip-text {
  display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ip-text.open {
  white-space: normal; overflow: visible; text-overflow: unset; overflow-wrap: anywhere;
}
.actions-cell { white-space: nowrap; }

/* IP-чипы в профиле */
.ip-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ip-chip {
  font-family: Consolas, monospace; font-size: 13px;
  padding: 4px 10px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--input-bg); white-space: nowrap;
}

.badge {
  display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 12px; white-space: nowrap;
}
.badge-red { background: #471d1d; color: #ff9c9c; border: 1px solid #7a3535; }
.badge-gold { background: #3a2f10; color: var(--gold2); border: 1px solid #6e5a24; }
.badge-gray { background: #1c2938; color: var(--dim); border: 1px solid var(--line); }
.badge-dim { background: transparent; color: var(--dim); border: 1px dashed var(--line); }
.badge-ok { background: #15301f; color: #7ee2a8; border: 1px solid #2c5e42; }

/* Чипы-фильтры и под-навигация админки */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.chip {
  padding: 5px 13px; border: 1px solid var(--line); border-radius: 20px;
  font-size: 13px; color: var(--dim); background: transparent; white-space: nowrap;
}
.chip:hover { color: var(--text); text-decoration: none; border-color: var(--gold); }
.chip.on { color: #1a1206; background: var(--gold); border-color: var(--gold); font-weight: 600; }

/* Сортируемые заголовки таблиц */
.tbl th a { color: inherit; text-decoration: none; }
.tbl th a:hover { color: var(--gold2); text-decoration: none; }
.tbl th .dir { color: var(--gold2); }

/* Ссылка-IP в ячейке и чипы-ссылки на межаккаунтный поиск */
.ip-cell a.ip-text { color: inherit; }
.ip-cell a.ip-text:hover { color: var(--gold2); text-decoration: none; }
.ip-chip-link { color: var(--text); }
.ip-chip-link:hover { color: var(--gold2); text-decoration: none; border-color: var(--gold); }
.row-link { white-space: nowrap; }
.mono { font-family: Consolas, monospace; font-size: 0.85em; }
.nowrap { white-space: nowrap; }

/* Альты: сетка карточек групп аккаунтов с общими IP */
.alt-grid {
  display: grid; gap: 12px; margin-top: 12px;
  grid-template-columns: repeat(auto-fill, minmax(430px, 1fr));
  align-items: start;
}
.alt-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px;
}
.alt-card-wide { grid-column: 1 / -1; }
.alt-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; font-size: 13px; color: var(--dim); }
.alt-head b { color: var(--gold2); font-size: 15px; }
.alt-sep { color: var(--line); }
.alt-flag { margin-left: auto; }
.alt-clean { font-size: 12px; }
.alt-users { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.alt-user {
  display: inline-flex; align-items: center; gap: 7px; max-width: 230px;
  padding: 3px 11px 3px 4px; border-radius: 999px;
  background: var(--row-hover); border: 1px solid var(--line);
  font-size: 12.5px; color: var(--text);
}
.alt-user:hover { text-decoration: none; border-color: var(--gold); color: var(--gold2); }
.alt-ava {
  width: 20px; height: 20px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; line-height: 1; color: #07130d;
}
.alt-ava-0 { background-color: #35d0a0; }
.alt-ava-1 { background-color: #5aa7e6; }
.alt-ava-2 { background-color: #e0a83c; }
.alt-ava-3 { background-color: #d97fb8; }
.alt-ava-4 { background-color: #8fc861; }
.alt-ava-5 { background-color: #d97b5a; }
.alt-ava-6 { background-color: #a98fe0; }
.alt-ava-7 { background-color: #4fc3b0; }
.alt-user span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alt-user-bl { border-color: #7a3535; background: rgba(224, 85, 85, .08); }
.alt-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex: none; }
.alt-ips { display: flex; flex-wrap: wrap; gap: 6px; }
.alt-ips .ip-chip { font-size: 11px; padding: 2px 8px; border-radius: 6px; }

/* Карточка записи: быстрые действия и заметки */
.rec-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.note { border-bottom: 1px solid var(--row-line); padding: 8px 0; }
.note:last-of-type { border-bottom: none; }
.note-head { font-size: 12px; color: var(--dim); margin-bottom: 2px; }
.note-form { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; }
.note-form textarea { min-height: 52px; resize: vertical; }
.me-status-detail { margin-top: 6px; color: var(--text); font-size: 14px; }
.record-reason { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Пагинация и поиск */
.pager { display: flex; align-items: center; gap: 12px; justify-content: center; margin: 16px 0 4px; }
.pager-info { color: var(--dim); font-size: 13px; }

/* Админка */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 14px 0; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; text-align: center; }
.stat b { display: block; font-size: 24px; color: var(--gold2); }
.stat span { color: var(--dim); font-size: 12px; }

/* Профиль */
.me-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.me-nick { font-size: 19px; font-weight: 700; }
.avatar { border-radius: 50%; background: var(--input-bg); }
.avatar-sm { vertical-align: middle; margin-right: 6px; }
.kv { width: 100%; border-collapse: collapse; }
.kv td { padding: 8px 6px; border-bottom: 1px solid var(--row-line); vertical-align: top; }
.kv td:first-child { color: var(--dim); width: 240px; }

@media (max-width: 700px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span2 { grid-column: span 1; }
}

/* ===== Главная «Стекло и золото» (финальный дизайн) ===== */

/* Общие премиум-примитивы */
.lg-serif { font-family: Georgia, "Palatino Linotype", "Book Antiqua", "Times New Roman", serif; font-weight: 400; }
.lg-gold-text {
  background: linear-gradient(105deg, #b8912f 0%, #f7ecc8 48%, #caa54a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lg-eyebrow {
  font-size: 11px; letter-spacing: .38em; text-transform: uppercase;
  color: var(--gold2); opacity: .8; margin: 0 0 20px; text-indent: .38em;
}
.lg-glass {
  text-align: left;
  background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  border: 1px solid rgba(94, 230, 184, .2);
  border-radius: 16px; padding: 20px 22px;
  backdrop-filter: blur(10px);
  transition: transform .3s, border-color .3s;
}
.lg-glass:hover { transform: translateY(-4px); border-color: rgba(94, 230, 184, .45); }
.lg-glass h3 { margin: 0 0 6px; font-size: 15px; color: var(--text); }
.lg-glass p { margin: 0; font-size: 13px; color: var(--dim); line-height: 1.55; }

@keyframes lgFadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes lgHalo { 0%, 100% { opacity: .5; transform: scale(1); } 50% { opacity: .95; transform: scale(1.09); } }
@keyframes lgSheen { 0%, 55% { transform: translateX(-140%) skewX(-18deg); } 85%, 100% { transform: translateX(260%) skewX(-18deg); } }
.lg-a { animation: lgFadeUp .8s ease both; }
.lg-d1 { animation-delay: .1s; }
.lg-d2 { animation-delay: .2s; }
.lg-d3 { animation-delay: .3s; }
.lg-d4 { animation-delay: .45s; }
.lg-d5 { animation-delay: .6s; }

.d2-btn {
  position: relative; overflow: hidden;
  padding: 15px 46px; font-size: 16px; border-radius: 14px;
  box-shadow: 0 14px 38px rgba(28, 45, 88, .45);
}
.d2-btn::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 64px;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .35), transparent);
  animation: lgSheen 4.5s ease-in-out infinite;
}

/* 2 — «Стекло и золото» */
.d2 {
  position: relative; width: 100%;
  min-height: calc(100vh - 150px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 46px 20px; border-radius: 26px; overflow: hidden;
}
.d2::before, .d2::after { content: ''; position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.d2::before {
  width: 640px; height: 640px; left: -180px; top: -220px;
  background: radial-gradient(circle, rgba(53, 208, 160, .26), transparent 65%);
  animation: lgHalo 9s ease-in-out infinite;
}
.d2::after {
  width: 560px; height: 560px; right: -160px; bottom: -200px;
  background: radial-gradient(circle, rgba(94, 230, 184, .15), transparent 65%);
  animation: lgHalo 12s ease-in-out infinite reverse;
}
.d2-frame { position: absolute; inset: 14px; border: 1px solid rgba(94, 230, 184, .18); border-radius: 20px; pointer-events: none; }
.d2-frame::before { content: ''; position: absolute; inset: 6px; border: 1px solid rgba(94, 230, 184, .09); border-radius: 15px; }
.d2-inner { position: relative; max-width: 700px; display: flex; flex-direction: column; align-items: center; }
.d2-logo { position: relative; width: 112px; height: 112px; margin-bottom: 28px; }
.d2-logo img { width: 100%; height: 100%; border-radius: 50%; display: block; box-shadow: 0 18px 50px rgba(0, 0, 0, .5); }
.d2-halo { position: absolute; inset: -36px; border-radius: 50%; background: radial-gradient(circle, rgba(53, 208, 160, .32), transparent 70%); animation: lgHalo 5s ease-in-out infinite; }
.d2-title { font-size: 58px; margin: 0 0 12px; letter-spacing: .02em; }
.d2-lead { color: var(--dim); font-size: 16px; margin: 0 0 36px; max-width: 470px; }
.d2-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; margin-bottom: 36px; }

@media (max-width: 860px) {
  .d2-title { font-size: 40px; }
  .d2-cards { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .lg-a, .d2::before, .d2::after, .d2-halo, .d2-btn::after { animation: none !important; }
}
