/* ============================================================
   FugaFik — минимализм в духе invogram / Google
   Монохром, типографика, без лишних эффектов
   ============================================================ */

:root {
  --bg: #0f1011;
  --surface: #17171a;
  --surface-hover: #1b1b1f;
  --text: #f4f4f5;
  --soft: #c2c2c8;
  --muted: #8a8a92;
  --faint: #57575f;
  --line: #232327;
  --line-hover: #3b3b42;
  --r: 16px;
  --green: #1db954;
  --red: #ff6b81;
  --accent: #e8e8ea;
  --font-display: 'Bricolage Grotesque', 'Golos Text', sans-serif;
  --font-body: 'Golos Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

::selection { background: var(--text); color: var(--bg); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

.mono { font-family: var(--font-mono); font-size: 0.85em; letter-spacing: 0.01em; }

/* SVG-иконки интерфейса */
.ui-ic { display: inline-block; vertical-align: middle; flex-shrink: 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 12px;
  padding: 11px 20px; font-size: 14.5px; font-weight: 500;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: var(--soft); }
.btn-gradient { background: var(--text); color: var(--bg); }
.btn-gradient:hover { background: var(--soft); }
.btn-ghost { background: transparent; color: var(--soft); border-color: var(--line-hover); }
.btn-ghost:hover { background: rgba(255,255,255,0.04); border-color: var(--muted); color: var(--text); }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: 13px; }
.btn-sm { padding: 8px 15px; font-size: 13.5px; border-radius: 10px; }
.btn-block { width: 100%; }

/* ---------- верхняя панель (плавающая таблетка) ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 16px 16px 0;
  pointer-events: none;
}
.topbar-inner {
  pointer-events: auto;
  display: flex; align-items: center; justify-content: space-between;
  max-width: 960px; margin: 0 auto;
  height: 56px; padding: 0 8px 0 18px;
  background: rgba(23, 23, 26, 0.72);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--text); color: var(--bg); font-size: 15px; font-weight: 700;
}
.brand-name { letter-spacing: -0.02em; }
.topnav { display: flex; align-items: center; gap: 6px; }
.navlink { color: var(--muted); font-size: 14.5px; padding: 8px 12px; border-radius: 9px; transition: color .2s; }
.navlink:hover { color: var(--text); }
.navlink.active { color: var(--text); background: rgba(255,255,255,0.05); }
.inline { display: inline; }

/* ---------- hero (лендинг) ---------- */
.hero { padding: 96px 0 72px; }
.hero-inner { text-align: center; max-width: 760px; margin: 0 auto; }
.hero-eyebrow {
  display: inline-block; margin-bottom: 24px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: lowercase;
  color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  font-weight: 600; line-height: 1.04; letter-spacing: -0.03em;
  text-wrap: balance;
}
.hero-title .grad { color: var(--soft); }
.hero-sub { color: var(--soft); font-size: 17px; margin: 22px auto 34px; max-width: 560px; text-wrap: pretty; }

.claim {
  display: flex; align-items: center; max-width: 460px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--line-hover);
  border-radius: 13px; padding: 6px; gap: 6px; transition: border-color .2s;
}
.claim:focus-within { border-color: var(--muted); }
.claim-prefix { color: var(--muted); padding-left: 13px; font-size: 14.5px; }
.claim input {
  flex: 1; background: transparent; border: 0; outline: none;
  color: var(--text); font-size: 15px; padding: 10px 4px; min-width: 0;
}
.claim-status { min-height: 22px; margin-top: 10px; font-size: 14px; }
.claim-status.ok { color: var(--green); }
.claim-status.bad { color: var(--red); }

.hero-actions { display: flex; gap: 14px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }

/* ---------- статистика ---------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-inner { display: flex; justify-content: center; gap: 64px; padding: 40px 24px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-num { display: block; font-family: var(--font-display); font-size: 34px; font-weight: 600; letter-spacing: -0.02em; }
.stat-label { color: var(--muted); font-size: 14px; }

/* ---------- секции ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { font-family: var(--font-display); font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 500; letter-spacing: -0.02em; text-align: center; }
.section-sub { color: var(--muted); text-align: center; margin: 14px auto 48px; max-width: 560px; font-size: 16px; }
.section-sub code, .auth-sub code { background: var(--surface); border: 1px solid var(--line); padding: 2px 7px; border-radius: 6px; font-size: 0.9em; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .2s ease, background .2s ease; }
.card:hover { border-color: var(--line-hover); }

/* ---------- фичи ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 26px; }
.feature-ic { display: inline-flex; color: var(--soft); margin-bottom: 16px; }
.feature h3 { font-family: var(--font-display); font-size: 17px; font-weight: 500; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 14.5px; }

/* ---------- тарифы ---------- */
.pricing { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 760px; margin: 0 auto; }
.price { padding: 32px; position: relative; }
.price.card-featured { border-color: var(--line-hover); }
.price-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--text); color: var(--bg); font-size: 12px; font-weight: 600; padding: 4px 14px; border-radius: 999px;
}
.price h3 { font-family: var(--font-display); font-size: 20px; font-weight: 500; margin-bottom: 6px; }
.price-num { font-family: var(--font-display); font-size: 42px; font-weight: 600; letter-spacing: -0.02em; }
.price-period { color: var(--muted); font-size: 14px; display: block; margin-bottom: 20px; }
.price-list { list-style: none; margin: 0 0 24px; }
.price-list li { padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14.5px; }
.price-list li::before { content: '✓ '; color: var(--green); font-weight: 700; }

/* ---------- faq ---------- */
.faq { max-width: 720px; margin: 0 auto; display: grid; gap: 10px; }
.faq-item summary { cursor: pointer; padding: 20px 24px; font-weight: 500; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::after { content: '+'; font-family: var(--font-mono); font-size: 20px; color: var(--muted); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 24px 20px; color: var(--muted); }

/* ---------- подвал ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0 16px; overflow: hidden; text-align: center; }
.footer-giant {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(64px, 17vw, 230px);
  line-height: 0.78;
  letter-spacing: -0.04em;
  color: var(--soft);
  user-select: none;
  transform: translateY(0.14em);
}

/* ---------- auth ---------- */
.page-auth { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 24px; }
.auth-wrap { width: 100%; max-width: 420px; }
.auth-card { padding: 40px 36px; }
.brand-center { justify-content: center; font-size: 22px; margin-bottom: 24px; }
.auth-title { font-family: var(--font-display); font-size: 26px; text-align: center; margin-bottom: 8px; letter-spacing: -0.02em; font-weight: 600; }
.auth-sub { color: var(--muted); text-align: center; margin-bottom: 28px; font-size: 15px; }
.auth-alt { text-align: center; color: var(--muted); font-size: 14px; margin-top: 20px; }
.auth-alt a { color: var(--text); border-bottom: 1px solid var(--line-hover); }
.auth-alt a:hover { border-bottom-color: var(--text); }
.auth-card.center { text-align: center; }
.err-code { font-family: var(--font-display); font-size: 44px; margin-bottom: 8px; }

/* ---------- формы ---------- */
.form { display: grid; gap: 16px; }
.form-row { display: flex; gap: 14px; }
.form-row .field { flex: 1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.grow { flex: 1; }
.field-label { font-size: 13px; font-weight: 500; color: var(--muted); }
.field-hint { font-size: 12px; color: var(--faint); }
.field input, .field select, .field textarea {
  background: var(--bg); border: 1px solid var(--line-hover);
  border-radius: 10px; padding: 11px 14px; color: var(--text); font-size: 15px;
  outline: none; transition: border-color .15s; width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--muted); }
.field input[type="color"] { padding: 4px; height: 44px; cursor: pointer; }
.field input[type="range"] { padding: 0; height: auto; }
.field input[type="file"] { padding: 9px; }
.field-prefix {
  display: flex; align-items: center; background: var(--bg);
  border: 1px solid var(--line-hover); border-radius: 10px; overflow: hidden;
}
.field-prefix span { color: var(--muted); padding: 0 0 0 14px; font-size: 15px; white-space: nowrap; }
.field-prefix input { border: 0; box-shadow: none; background: transparent; }
.checks { flex-direction: row; flex-wrap: wrap; gap: 16px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--soft); cursor: pointer; }
.check input { accent-color: var(--text); width: 17px; height: 17px; }

/* ---------- уведомления ---------- */
.alert { padding: 14px 16px; border-radius: 12px; font-size: 14.5px; margin-bottom: 20px; }
.alert-error { background: rgba(255, 107, 129, 0.08); border: 1px solid rgba(255, 107, 129, 0.35); color: #ffb3bc; }
.alert-error ul { margin-left: 18px; }
.alert-success { background: rgba(29, 185, 84, 0.08); border: 1px solid rgba(29, 185, 84, 0.3); color: #8ae0a8; }

/* ---------- дашборд ---------- */
.dash-layout { display: flex; min-height: 100vh; }
.dash-side {
  width: 236px; flex-shrink: 0; padding: 22px 14px;
  border-right: 1px solid var(--line); background: var(--surface);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.dash-side .brand { padding: 0 10px 20px; }
.dash-nav { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.dnav {
  display: flex; align-items: center; gap: 11px; padding: 11px 14px; border-radius: 10px; color: var(--muted);
  font-size: 14.5px; transition: background .15s, color .15s; background: transparent; border: 0; text-align: left; width: 100%;
}
.dnav .ui-ic { color: var(--faint); transition: color .15s; }
.dnav:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.dnav:hover .ui-ic { color: var(--text); }
.dnav.active { color: var(--text); background: rgba(255,255,255,0.06); }
.dnav.active .ui-ic { color: var(--text); }
.dash-side-bottom { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 3px; }
.dnav-logout { color: var(--red); }

.dash-main { flex: 1; padding: 32px 40px; max-width: 1120px; }
.dash-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 8px; }
.dash-head h1 { font-family: var(--font-display); font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.dash-hint { color: var(--muted); font-size: 14px; }
.dash-panel { padding: 24px; margin-bottom: 20px; }
.dash-panel-title { font-size: 15px; font-weight: 600; margin-bottom: 18px; }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.stat-card { padding: 20px; }
.sc-num { display: block; font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; word-break: break-all; }
.sc-label { color: var(--muted); font-size: 13px; }
.quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quick { display: flex; align-items: center; gap: 11px; padding: 16px; font-weight: 500; font-size: 14.5px; transition: border-color .15s, background .15s; }
.quick .ui-ic { color: var(--soft); }
.quick:hover { border-color: var(--line-hover); background: var(--surface-hover); }
.empty { color: var(--muted); padding: 12px 0; }

/* список элементов (ссылки/секции) */
.item-list { display: grid; gap: 10px; }
.item {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
}
.item-off { opacity: 0.45; }
.item-ic { width: 40px; height: 40px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--soft); }
.item-ic .ic { width: 20px; height: 20px; fill: var(--text); }
.item-body { flex: 1; min-width: 0; }
.item-title { font-weight: 500; font-size: 15px; }
.item-url { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-tag { font-size: 11px; color: var(--muted); border: 1px solid var(--line); padding: 3px 9px; border-radius: 999px; flex-shrink: 0; text-transform: uppercase; letter-spacing: 0.06em; }
.item-actions { display: flex; gap: 4px; }
.mini {
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font-size: 14px; display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, border-color .15s;
}
.mini:hover { background: var(--surface-hover); border-color: var(--line-hover); }
.mini-danger:hover { background: rgba(255, 107, 129, 0.15); border-color: rgba(255, 107, 129, 0.4); }

/* редактор строк (секции: список / музыка) */
.row-editor { display: flex; gap: 8px; margin-bottom: 8px; }
.row-editor input { flex: 1; width: auto; min-width: 0; }
.row-del {
  width: 42px; height: 44px; border-radius: 10px; flex-shrink: 0;
  border: 1px solid var(--line); background: var(--surface); color: var(--red); font-size: 18px;
  transition: background .15s, border-color .15s;
}
.row-del:hover { background: rgba(255, 107, 129, 0.15); border-color: rgba(255, 107, 129, 0.4); }

/* кнопка загрузки аудио */
.track-upload {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 12px; border-radius: 10px; flex-shrink: 0; cursor: pointer;
  border: 1px dashed var(--line-hover); color: var(--muted); font-size: 13px; white-space: nowrap;
  transition: color .15s, border-color .15s;
}
.track-upload:hover { color: var(--text); border-color: var(--muted); }
.track-upload.uploaded { color: var(--green); border-color: rgba(29, 185, 84, 0.4); }

/* внешний вид: две колонки */
.appearance-layout { display: grid; grid-template-columns: 1fr 400px; gap: 20px; align-items: start; }
.appearance-form { margin-bottom: 0; }
.appearance-preview .dash-panel-title { text-align: center; }
.preview-box { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }

/* настройки */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.avatar-row { display: flex; gap: 16px; align-items: center; }
.mini-preview { border-radius: var(--r); overflow: hidden; }
.preview-box .profile-stage, .mini-preview .profile-stage { min-height: 0; padding: 32px 20px; }

/* ============================================================
   Публичный профиль (стиль invogram)
   ============================================================ */
.profile-stage {
  --accent: #e8e8ea;
  --radius: 16px;
  --font: 'Golos Text', system-ui, sans-serif;
  --font-head: 'Bricolage Grotesque', 'Golos Text', sans-serif;
  --pf-text: #f4f4f5;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--pf-text);
  padding: 40px 0 0;
}
.profile-shell { max-width: 860px; margin: 0 auto; padding: 0 28px 48px; }

/* полупрозрачная карточка за контентом (как на guns.lol) */
.profile-stage[data-card="on"] .profile-shell {
  background: rgba(23, 23, 26, 0.55);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 36px 36px;
  margin: 0 auto 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.pf-header {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 56px;
}
.pf-logo { color: var(--pf-text); font-size: 15px; font-weight: 500; border-bottom: 1px solid transparent; padding-bottom: 1px; transition: border-color .3s; }
.pf-logo:hover { border-bottom-color: currentColor; }
.pf-nav { display: flex; gap: 20px; }
.pf-nav a { color: var(--muted); font-size: 14px; border-bottom: 1px solid transparent; padding-bottom: 1px; transition: color .3s, border-color .3s; }
.pf-nav a:hover { color: var(--text); border-bottom-color: currentColor; }

.pf-hero { margin-bottom: 48px; }
.pf-hero-top { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.pf-avatar {
  width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--accent);
  background: var(--surface); display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--soft); object-fit: cover; overflow: hidden; flex-shrink: 0;
}
.pf-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pf-avatar-fallback { font-family: var(--font-mono); font-size: 1rem; }
.pf-avatar.sm { width: 52px; height: 52px; }
.pf-who { color: var(--muted); font-size: 13.5px; display: flex; align-items: center; gap: 8px; }

.pf-title {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 8vw, 4.6rem);
  font-weight: 600; line-height: 1.04; letter-spacing: -0.03em;
  margin-bottom: 12px; text-wrap: balance;
}
.pf-handle { color: var(--muted); font-family: var(--font-mono); font-size: 14px; margin-bottom: 18px; }
.pf-badge {
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 18px; padding: 3px 12px; border-radius: 999px; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.06em; border: 1px solid var(--line);
}
.badge-verified { color: var(--green); border-color: rgba(29,185,84,0.35); background: rgba(29,185,84,0.07); }
.badge-premium { color: var(--text); border-color: var(--line-hover); background: var(--surface); }
.badge-ic { display: inline-flex; }

.pf-bio { color: var(--soft); font-size: 16.5px; max-width: 560px; white-space: pre-wrap; min-height: 1.6em; margin-bottom: 26px; }
.pf-bio.typewriter::after {
  content: ''; display: inline-block; width: 2px; height: 1em;
  background: var(--accent); margin-left: 3px; vertical-align: -2px;
  animation: blink 1.1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.pf-socials { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 6px; }
.pf-social {
  display: flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 14px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--muted); font-size: 13.5px;
  transition: background .2s, border-color .2s, color .2s;
}
.pf-social:hover { background: var(--surface-hover); border-color: var(--accent); color: var(--text); }
.pf-social:hover .ic { fill: var(--accent); }
.pf-social-icon { width: 40px; padding: 0; justify-content: center; }
.pf-social .ic { width: 17px; height: 17px; fill: currentColor; }

.pf-section { padding: 48px 0 8px; }
.pf-section-head { margin-bottom: 24px; }
.pf-label {
  display: block; color: var(--accent); font-family: var(--font-mono);
  font-size: 11px; text-transform: lowercase; letter-spacing: 0.14em; margin-bottom: 8px;
}
.pf-section-title {
  font-family: var(--font-head); font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 500; letter-spacing: -0.02em; line-height: 1.15;
}

.pf-links { display: grid; gap: 10px; }
.pf-row {
  display: block; padding: 20px 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--pf-text);
  transition: background .2s, border-color .2s;
}
.pf-row:hover { background: var(--surface-hover); border-color: var(--line-hover); }
.pf-row-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.pf-row-name { font-family: var(--font-head); font-size: 1.1rem; font-weight: 500; letter-spacing: -0.01em; }
.pf-row-arrow { color: var(--muted); display: inline-flex; align-items: center; transition: color .2s; }
.pf-row:hover .pf-row-arrow { color: var(--accent); }
.pf-row-meta { display: block; margin-top: 5px; color: var(--faint); font-family: var(--font-mono); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pf-row.btn-style-solid { background: var(--accent); border-color: var(--accent); color: #101114; }
.pf-row.btn-style-solid:hover { filter: brightness(1.08); background: var(--accent); border-color: var(--accent); }
.pf-row.btn-style-solid .pf-row-meta { color: rgba(16,17,20,0.62); }
.pf-row.btn-style-solid .pf-row-arrow { color: rgba(16,17,20,0.72); }
.pf-row.btn-style-outline { background: transparent; border-color: var(--accent); }
.pf-row.btn-style-outline:hover { background: rgba(255,255,255,0.06); border-color: var(--accent); }
.pf-row.btn-style-glass { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.pf-row.btn-style-glass:hover { background: rgba(255,255,255,0.12); }

.pf-section-text { color: var(--muted); font-size: 15px; white-space: pre-wrap; max-width: 640px; }
.pf-section-list { list-style: none; display: grid; gap: 10px; }
.pf-section-list li { display: block; }
.pf-section-list:not(.pf-music) a,
.pf-section-list:not(.pf-music) span {
  display: block; padding: 16px 20px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--pf-text); transition: background .2s, border-color .2s;
}
.pf-section-list:not(.pf-music) a:hover { background: var(--surface-hover); border-color: var(--line-hover); }

/* музыка — треки */
.pf-music { gap: 8px; }
.pf-music .pf-track {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 16px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.pf-music .pf-track-ic { color: var(--accent); display: inline-flex; flex-shrink: 0; }
.pf-music .pf-track-body { display: flex; flex-direction: column; min-width: 0; }
.pf-music .pf-track-name { color: var(--pf-text); font-weight: 500; font-size: 15px; }
.pf-music .pf-track-artist { color: var(--muted); font-size: 13px; }
.pf-music .pf-track.has-audio { flex-wrap: wrap; }
.pf-music .pf-track audio { flex-basis: 100%; height: 40px; margin-top: 8px; border-radius: 10px; }

.profile-stage[data-glow="on"] .pf-avatar { box-shadow: 0 0 24px -4px var(--accent); }
.profile-stage[data-glow="on"] .pf-row,
.profile-stage[data-glow="on"] .pf-social,
.profile-stage[data-glow="on"] .pf-section-list a,
.profile-stage[data-glow="on"] .pf-section-list span {
  box-shadow: 0 0 26px -6px var(--accent);
}
.profile-stage[data-blur="on"] .pf-row,
.profile-stage[data-blur="on"] .pf-social {
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}

.pf-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 24px; margin-top: 40px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 13.5px;
}
.pf-brand { color: var(--pf-text); font-weight: 500; }
.pf-build { color: var(--faint); font-size: 12px; letter-spacing: 0.06em; }
.pf-views { color: var(--faint); }
.pf-edit {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; color: var(--muted); font-size: 13.5px;
  padding: 9px 14px; border-radius: 10px; border: 1px dashed var(--line-hover);
  transition: color .2s, border-color .2s;
}
.pf-edit:hover { color: var(--text); border-color: var(--muted); }

.pulse-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #e8e8ea; flex-shrink: 0;
}

/* ============================================================
   Анимации ника
   ============================================================ */
.pf-title.anim-rainbow {
  background: linear-gradient(90deg, #ff6ec4, #7873f5, #4adede, #ff6ec4);
  background-size: 300% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: nick-rainbow 6s linear infinite;
}
@keyframes nick-rainbow { 0% { background-position: 0% 50%; } 100% { background-position: 300% 50%; } }

.pf-title.anim-glitch { animation: nick-glitch 3s infinite steps(1); }
@keyframes nick-glitch {
  0%, 88%, 100% { text-shadow: none; transform: none; }
  90% { text-shadow: 2px 0 #ff6ec4, -2px 0 #4adede; transform: translateX(-1px); }
  92% { text-shadow: -2px 0 #ff6ec4, 2px 0 #4adede; transform: translateX(1px); }
  94% { text-shadow: 1px 0 #4adede, -1px 0 #ff6ec4; transform: translateX(-1px); }
  96% { text-shadow: -1px 0 #ff6ec4, 1px 0 #4adede; transform: none; }
}

.pf-title.anim-flicker { animation: nick-flicker 2.6s linear infinite; }
@keyframes nick-flicker {
  0%, 100% { opacity: 1; }
  41% { opacity: 1; } 42% { opacity: 0.35; } 43% { opacity: 1; }
  78% { opacity: 1; } 79% { opacity: 0.55; } 80% { opacity: 1; }
}

.pf-title.anim-wave .char {
  display: inline-block;
  animation: nick-wave 1.4s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.07s);
}
@keyframes nick-wave { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.pf-title.anim-explode .char {
  display: inline-block;
  animation: nick-explode 0.7s cubic-bezier(.18, .89, .32, 1.28) both;
  animation-delay: calc(var(--i) * 0.04s);
}
@keyframes nick-explode {
  0% { opacity: 0; transform: translate(var(--dx, 0), var(--dy, 0)) scale(0.2) rotate(var(--rot, 0deg)); }
  100% { opacity: 1; transform: none; }
}

.pf-title.anim-matrix { color: #00ff9c; text-shadow: 0 0 8px rgba(0, 255, 156, 0.55); }
.pf-title.anim-matrix .mchar { display: inline-block; }

/* неон — мерцающая неоновая подсветка акцентным цветом */
.pf-title.anim-neon { animation: nick-neon 1.8s infinite; }
@keyframes nick-neon {
  0%, 18%, 20%, 22%, 24%, 26%, 58%, 60%, 62%, 64%, 100% {
    text-shadow: 0 0 5px var(--accent), 0 0 12px var(--accent), 0 0 26px var(--accent), 0 0 52px var(--accent);
  }
  19%, 21%, 23%, 25%, 59%, 61%, 63% { text-shadow: none; }
}

/* блик — полоса света пробегает по тексту */
.pf-title.anim-shine {
  background: linear-gradient(110deg, var(--pf-text) 32%, #ffffff 50%, var(--pf-text) 68%);
  background-size: 240% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: nick-shine 2.6s ease-in-out infinite;
}
@keyframes nick-shine { 0% { background-position: 220% 0; } 100% { background-position: -40% 0; } }

/* пульс — мягкое пульсирующее свечение */
.pf-title.anim-pulse { animation: nick-pulse 2s ease-in-out infinite; }
@keyframes nick-pulse {
  0%, 100% { text-shadow: 0 0 4px var(--accent), 0 0 14px transparent; }
  50% { text-shadow: 0 0 8px var(--accent), 0 0 30px var(--accent); }
}

/* огонь — пламенный градиент с мерцанием */
.pf-title.anim-fire {
  background: linear-gradient(180deg, #ffeb3b 0%, #ff9800 45%, #ff3d00 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: nick-fire 1.1s ease-in-out infinite;
}
@keyframes nick-fire {
  0%, 100% { filter: brightness(1) drop-shadow(0 0 6px rgba(255, 120, 0, 0.6)); }
  50% { filter: brightness(1.3) drop-shadow(0 0 14px rgba(255, 120, 0, 0.9)); }
}

/* печатается — имя набирается с курсором */
.pf-title.anim-type::after {
  content: ''; display: inline-block; width: 2px; height: 0.85em;
  background: var(--accent); margin-left: 4px; vertical-align: -3px;
  animation: blink 1s step-end infinite;
}

/* падение — буквы падают сверху с отскоком */
.pf-title.anim-drop .char {
  display: inline-block;
  animation: nick-drop 0.6s cubic-bezier(.2, .7, .3, 1.25) both;
  animation-delay: calc(var(--i) * 0.05s);
}
@keyframes nick-drop { 0% { opacity: 0; transform: translateY(-70px) scale(0.6); } 100% { opacity: 1; transform: none; } }

/* переворот — буквы разворачиваются в 3D */
.pf-title.anim-flip { perspective: 700px; }
.pf-title.anim-flip .char {
  display: inline-block; transform-origin: 50% 100%;
  animation: nick-flip 0.7s cubic-bezier(.2, .8, .3, 1) both;
  animation-delay: calc(var(--i) * 0.05s);
}
@keyframes nick-flip { 0% { opacity: 0; transform: rotateX(-95deg); } 100% { opacity: 1; transform: none; } }

/* размытие — буквы проявляются из blur */
.pf-title.anim-blurin .char {
  display: inline-block;
  animation: nick-blurin 0.7s ease-out both;
  animation-delay: calc(var(--i) * 0.04s);
}
@keyframes nick-blurin { 0% { opacity: 0; filter: blur(14px); transform: scale(1.4); } 100% { opacity: 1; filter: blur(0); transform: none; } }

/* центрированный профиль (опция) */
.profile-stage.layout-center .pf-hero { text-align: center; }
.profile-stage.layout-center .pf-hero-top { justify-content: center; }
.profile-stage.layout-center .pf-bio { margin-left: auto; margin-right: auto; }
.profile-stage.layout-center .pf-socials { justify-content: center; }
.profile-stage.layout-center .pf-section-head { text-align: center; }
.profile-stage.layout-center .pf-section-text { margin-left: auto; margin-right: auto; }
.profile-stage.layout-center .pf-row { text-align: left; }
.profile-stage.layout-center .pf-section-list { text-align: left; }

/* ---------- адаптивность ---------- */
@media (max-width: 900px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: 1fr; }
  .dash-grid, .appearance-layout, .settings-grid { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .dash-side { width: 72px; padding: 16px 10px; }
  .dash-side .brand-name { display: none; }
  .dash-side .brand { justify-content: center; }
  .dnav span { display: none; }
  .dash-side .dnav { justify-content: center; }
}
@media (max-width: 640px) {
  .features { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .form-row { flex-direction: column; }
  .wrap { padding: 0 16px; }

  /* крупные зоны нажатия + без авто-зума iOS */
  input, select, textarea { font-size: 16px !important; }
  .btn { min-height: 46px; padding: 11px 18px; }

  /* hero */
  .hero { padding: 72px 0 48px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .claim { width: 100%; }

  /* --- нижняя навигация (как в приложении) --- */
  .dash-layout { flex-direction: column; }
  .dash-side {
    position: fixed; bottom: 0; left: 0; right: 0; top: auto;
    width: 100%; height: 64px; padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    flex-direction: row; align-items: stretch;
    background: rgba(23, 23, 26, 0.92);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--line); border-right: 0;
    z-index: 100;
  }
  .dash-side .brand { display: none; }
  .dash-nav { flex: 1; flex-direction: row; justify-content: space-around; gap: 2px; }
  .dash-nav .dnav {
    flex: 1; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; padding: 4px 2px; border-radius: 10px; width: auto;
  }
  .dash-nav .dnav span { display: block; font-size: 10px; line-height: 1; white-space: nowrap; }
  .dash-nav .dnav .ui-ic { width: 22px; height: 22px; }
  .dash-side-bottom { display: none; }
  .dash-main { padding: 20px 16px calc(90px + env(safe-area-inset-bottom)); }

  /* профиль */
  .profile-stage { padding: 24px 0 0; }
  .profile-shell { padding: 0 16px 36px; }
  .profile-stage[data-card="on"] .profile-shell { margin: 8px; padding: 26px 18px; }
  .pf-header { margin-bottom: 36px; padding-bottom: 14px; }
  .pf-nav { gap: 14px; overflow-x: auto; }
  .pf-title { font-size: clamp(2.1rem, 11vw, 3rem); }
  .pf-bio { font-size: 15px; }
  .pf-row { padding: 15px 16px; }
  .pf-row-top { flex-direction: column; align-items: flex-start; gap: 4px; }
  .pf-footer { flex-wrap: wrap; gap: 6px 14px; }
  .pf-section { padding: 36px 0 8px; }

  /* верхняя плавающая таблетка */
  .topbar { padding: 10px 10px 0; }
  .topbar-inner { height: 52px; padding: 0 8px 0 14px; }
  .topbar .brand-name { display: none; }
  .topbar .btn-sm { padding: 7px 12px; font-size: 12.5px; min-height: 38px; }
}
