:root {
  --accent: #5b5bd6;
  --accent-2: #9f7aea;
  --accent-dark: #4747c2;
  --ink: #16162b;
  --muted: #6d7280;
  --bg: #f6f6fb;
  --card: #ffffff;
  --line: #e8e8f1;
  --glow: rgba(91, 91, 214, 0.20);
  --radius: 16px;
  --grad: linear-gradient(135deg, var(--accent), var(--accent-2));
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Manrope', -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.55;
  min-height: 100vh; display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 2rem; font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 20px; }
h3 { font-size: 1.08rem; font-weight: 700; }
code {
  background: #ececfa; color: var(--accent-dark);
  padding: 2px 7px; border-radius: 7px; font-size: 0.88em;
}
.muted { color: var(--muted); }
.center { text-align: center; }
.link { color: var(--accent); font-weight: 700; }
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- навигация: стеклянная панель ---------- */

.nav {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 12px 24px;
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(232, 232, 241, 0.8);
}
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; box-shadow: 0 4px 12px -3px var(--glow); }
.logo-word {
  font-weight: 800; font-size: 1.22rem; letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--ink), #3d3d6b);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-main { display: flex; gap: 2px; align-items: center; }
.nav-main a {
  color: var(--ink); font-weight: 600; font-size: 0.92rem;
  padding: 8px 11px; border-radius: 10px; white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.nav-main a:hover { background: #ececfa; text-decoration: none; }
.pro-badge { color: var(--accent) !important; font-weight: 800 !important; }

/* меню профиля */
.nav-menu { position: relative; }
.nav-menu summary {
  list-style: none; cursor: pointer; display: flex; align-items: center;
  position: relative; border-radius: 50%;
}
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-ava {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover; display: block;
  border: 2px solid var(--line); transition: border-color 0.15s, box-shadow 0.15s;
}
.nav-ava-letter {
  display: flex; align-items: center; justify-content: center;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 0.95rem;
  border: none;
}
.nav-menu summary:hover .nav-ava { border-color: var(--accent); box-shadow: 0 0 0 3px #ececfa; }
.nav-menu[open] summary .nav-ava { box-shadow: 0 0 0 3px #ececfa; }
.nav-dot {
  position: absolute; top: -1px; right: -1px; width: 11px; height: 11px;
  border-radius: 50%; background: #e5484d; border: 2px solid #fff;
}
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.menu-pop {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 240px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 18px 48px -12px rgba(22, 22, 43, 0.18);
  padding: 8px; z-index: 60;
  animation: menuIn 0.16s cubic-bezier(.22,.9,.3,1);
}
.menu-email {
  padding: 8px 12px 10px; font-size: 0.82rem; color: var(--muted); font-weight: 600;
  border-bottom: 1px solid var(--line); margin-bottom: 6px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.menu-item {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; border-radius: 10px; color: var(--ink);
  font-weight: 600; font-size: 0.92rem;
}
.menu-item:hover { background: #ececfa; text-decoration: none; }
.menu-item.muted { color: var(--muted); }
.menu-sep { height: 1px; background: var(--line); margin: 6px 4px; }
.only-mobile { display: none; }

@media (max-width: 760px) {
  .nav-main { display: none; }
  .nav-main.guest { display: flex; }
  .only-mobile { display: flex; }
  .menu-sep.only-mobile { display: block; }
}
.count {
  display: inline-block; min-width: 20px; padding: 1px 6px; border-radius: 10px;
  background: var(--grad); color: #fff; font-size: 0.76rem; font-weight: 800;
  text-align: center; vertical-align: 1px;
}

/* ---------- кнопки ---------- */

.btn {
  display: inline-block; background: var(--grad); color: #fff !important;
  padding: 12px 24px; border-radius: 12px; font-weight: 700; border: none;
  cursor: pointer; font-size: 1rem; font-family: inherit;
  box-shadow: 0 8px 20px -8px var(--glow);
  transition: transform 0.16s cubic-bezier(.22,.9,.3,1), box-shadow 0.16s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -8px var(--glow); text-decoration: none; }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-lg { padding: 15px 32px; font-size: 1.08rem; border-radius: 14px; }
.btn-sm { padding: 8px 15px; font-size: 0.9rem; }
.btn-block { width: 100%; }
.btn-outline {
  background: var(--card); color: var(--accent) !important;
  border: 1.5px solid var(--accent); box-shadow: none;
}
.btn-outline:hover { background: #f0f0ff; box-shadow: none; }
.btn-ghost {
  background: transparent; color: var(--ink) !important;
  border: 1.5px solid var(--line); box-shadow: none;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent) !important; box-shadow: none; }
.btn-invert { background: #fff; color: var(--accent) !important; box-shadow: 0 8px 24px rgba(0,0,0,0.18); }

/* ---------- hero ---------- */

.hero-wrap { position: relative; overflow: hidden; }
.hero-glow {
  position: absolute; inset: -30% -10% auto -10%; height: 90%;
  background:
    radial-gradient(ellipse at 25% 20%, rgba(91,91,214,0.16), transparent 55%),
    radial-gradient(ellipse at 80% 10%, rgba(159,122,234,0.16), transparent 55%);
  pointer-events: none;
}
.hero-grid {
  position: relative; max-width: 1060px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
  padding: 72px 24px 84px;
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-copy { animation: rise 0.55s cubic-bezier(.22,.9,.3,1) both; }
.hero-chip {
  display: inline-block; padding: 7px 14px; border-radius: 999px;
  background: #ececfa; color: var(--accent-dark);
  font-weight: 700; font-size: 0.86rem; margin-bottom: 18px;
}
.hero-copy h1 { font-size: 2.9rem; line-height: 1.12; margin-bottom: 18px; }
.hero-sub { font-size: 1.12rem; color: var(--muted); margin-bottom: 26px; max-width: 46ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 16px; font-size: 0.92rem; }

/* макет карточки в hero */
@keyframes floaty { 0%, 100% { transform: rotate(2.5deg) translateY(0); } 50% { transform: rotate(2.5deg) translateY(-12px); } }
.mock-card {
  position: relative; display: block; width: 300px; justify-self: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 24px;
  overflow: visible; text-decoration: none; color: var(--ink);
  box-shadow: 0 24px 60px -18px rgba(91, 91, 214, 0.35);
  animation: rise 0.55s 0.12s both, floaty 7s ease-in-out 0.7s infinite;
}
.mock-card:hover { text-decoration: none; }
@keyframes coverPan { 0% { background-position: 0% 50%; } 100% { background-position: 100% 50%; } }
.mock-cover {
  height: 92px; border-radius: 24px 24px 0 0;
  background: linear-gradient(115deg, #ec5f9b, #f0a058, #f06292, #ec5f9b);
  background-size: 240% 240%;
  animation: coverPan 12s ease-in-out infinite alternate;
}
.mock-body { padding: 0 20px 20px; text-align: center; }
.mock-ava {
  width: 64px; height: 64px; border-radius: 50%; margin: -32px auto 8px;
  background: linear-gradient(135deg, #d6538b, #f0a058); color: #fff;
  border: 3px solid #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 800; box-shadow: 0 8px 20px -6px rgba(214,83,139,0.5);
}
.mock-name { font-weight: 800; font-size: 1.05rem; }
.mock-prof { color: var(--muted); font-size: 0.82rem; margin-bottom: 12px; }
.mock-row {
  display: flex; justify-content: space-between; gap: 8px;
  border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 12px; font-size: 0.84rem; margin-bottom: 7px; text-align: left;
}
.mock-row b { color: #d6538b; white-space: nowrap; }
.mock-btn {
  margin-top: 10px; padding: 11px; border-radius: 11px;
  background: linear-gradient(135deg, #d6538b, #f0a058); color: #fff;
  font-weight: 800; font-size: 0.9rem;
}
@keyframes toastIn { 0%, 25% { opacity: 0; transform: translateY(10px) scale(0.9); } 40%, 100% { opacity: 1; transform: none; } }
.mock-toast {
  position: absolute; right: -26px; bottom: 74px;
  background: #16162b; color: #fff; font-size: 0.8rem; font-weight: 700;
  padding: 10px 14px; border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,0.28);
  animation: toastIn 6s ease-in-out 1s infinite;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding: 48px 20px 64px; text-align: center; }
  .hero-copy h1 { font-size: 2.1rem; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .mock-toast { right: 0; }
}

/* ---------- секции ---------- */

.section { max-width: 1020px; width: 100%; margin: 0 auto; padding: 44px 24px; }
.section h2 { text-align: center; }
.cards3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.cards4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.cards2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; max-width: 760px; margin: 0 auto; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
.card h3 { margin-bottom: 8px; }
.card.feature, .card.mini-feature, .card.example {
  transition: transform 0.18s cubic-bezier(.22,.9,.3,1), box-shadow 0.18s, border-color 0.18s;
}
.card.feature:hover, .card.mini-feature:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  box-shadow: 0 16px 36px -16px var(--glow);
}
.step {
  width: 38px; height: 38px; border-radius: 12px; background: var(--grad); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 14px;
  box-shadow: 0 6px 14px -4px var(--glow);
}
.mini-feature { padding: 20px; }
.mf-icon { font-size: 1.6rem; display: block; margin-bottom: 10px; }
.mini-feature p { color: var(--muted); font-size: 0.9rem; }

/* примеры страниц */
.card.example { display: block; color: inherit; padding: 14px 14px 18px; }
.card.example:hover {
  text-decoration: none; transform: translateY(-4px);
  box-shadow: 0 18px 40px -16px var(--glow);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
}
.ex-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 14px; }
.ex-thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.ex-meta { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; padding: 0 6px; }
.ex-meta h3 { margin-bottom: 0; font-size: 1rem; }
.ex-meta p { font-size: 0.85rem; }
.card.example .link { padding: 0 6px; font-size: 0.92rem; }
.avatar-circle {
  width: 46px; height: 46px; flex: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; font-weight: 800; color: #fff; background: var(--grad);
}
.avatar-circle.theme-dark { background: linear-gradient(135deg, #23233a, #4b4b7a); }
.avatar-circle.theme-rose { background: linear-gradient(135deg, #d6538b, #f0a058); }
.avatar-circle.theme-mint { background: linear-gradient(135deg, #2fa98c, #57c7e3); }

/* тарифы */
.price-card { position: relative; }
.price-card ul { list-style: none; margin: 16px 0 20px; }
.price-card li { padding: 6px 0 6px 28px; position: relative; }
.price-card li::before {
  content: "✓"; position: absolute; left: 0;
  width: 20px; height: 20px; border-radius: 7px; text-align: center; line-height: 20px;
  background: #ececfa; color: var(--accent); font-weight: 800; font-size: 0.8rem; top: 8px;
}
.price { font-size: 2.3rem; font-weight: 800; margin: 8px 0; letter-spacing: -0.02em; }
.price span { font-size: 0.95rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.featured {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    var(--grad) border-box;
  box-shadow: 0 18px 48px -16px var(--glow);
}
.save-tag {
  position: absolute; top: -13px; right: 20px;
  background: var(--grad); color: #fff;
  font-size: 0.78rem; font-weight: 800; padding: 4px 12px; border-radius: 999px;
  box-shadow: 0 6px 14px -4px var(--glow);
}

/* faq */
.faq { max-width: 720px; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 20px; margin-bottom: 10px;
  transition: border-color 0.15s;
}
.faq details[open] { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { margin-top: 10px; color: var(--muted); }

/* финальный CTA */
.cta-final { padding: 30px 24px 70px; width: 100%; max-width: 1020px; margin: 0 auto; }
.cta-panel {
  text-align: center; padding: 52px 28px; border-radius: 26px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2), var(--accent));
  background-size: 220% 220%;
  animation: coverPan 12s ease-in-out infinite alternate;
  color: #fff; box-shadow: 0 24px 60px -20px rgba(91,91,214,0.5);
}
.cta-panel h2 { color: #fff; margin-bottom: 8px; }
.cta-panel p { opacity: 0.85; margin-bottom: 22px; font-weight: 600; }

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line); padding: 28px 24px; text-align: center;
  color: var(--muted); font-size: 0.9rem; margin-top: auto; background: var(--card);
}
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 8px; }
.footer-brand .logo-mark { width: 24px; height: 24px; }
.footer-fine { margin-top: 6px; font-size: 0.82rem; }

/* ---------- auth ---------- */

.auth-wrap { display: flex; justify-content: center; padding: 60px 24px; }
.auth-card { width: 100%; max-width: 400px; box-shadow: 0 18px 48px -20px var(--glow); }
.auth-card h1 { font-size: 1.5rem; margin-bottom: 18px; }

/* ---------- формы ---------- */

label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 14px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input:not([type]), textarea, select {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 11px;
  font-size: 1rem; font-family: inherit; font-weight: 500; margin-top: 5px;
  background: var(--card); color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}
input[type=file] { margin-top: 6px; font-size: 0.9rem; }
.hint { font-weight: 500; color: var(--muted); font-size: 0.85rem; margin-top: 4px; display: block; }
.alert { padding: 13px 17px; border-radius: 12px; margin-bottom: 16px; font-size: 0.95rem; font-weight: 500; }
.alert-error { background: #fdecec; color: #b3261e; }
.alert-ok { background: #e8f7ee; color: #1a7f4b; }

/* баннеры статуса подписки */
.banner { padding: 13px 18px; border-radius: 13px; margin-bottom: 18px; font-size: 0.96rem; font-weight: 500; }
.banner-ok { background: #e8f7ee; color: #14532d; }
.banner-trial { background: #ececfa; color: #312e81; }
.banner-warn { background: #fdecec; color: #7f1d1d; }
.banner a { font-weight: 700; }

/* ---------- кабинет ---------- */

.container { max-width: 880px; width: 100%; margin: 0 auto; padding: 36px 24px; }
.container.narrow { max-width: 580px; }
.dash-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.dash-form .card { margin-bottom: 20px; }
.dash-form .card h3 { margin-bottom: 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 600px) { .grid2 { grid-template-columns: 1fr; } }
.svc-row { display: grid; grid-template-columns: 2fr 1fr 2fr auto; gap: 10px; margin-bottom: 10px; }
@media (max-width: 600px) { .svc-row { grid-template-columns: 1fr; } }
.svc-del { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 1rem; }
.svc-del:hover { color: #b3261e; }
.thumb-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.thumb { width: 80px; height: 80px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); display: block; }
.thumb-round { border-radius: 50%; }
.thumb-wide { width: 160px; }
.thumb-wrap { position: relative; display: inline-block; }
.thumb-del {
  position: absolute; top: -6px; right: -6px; width: 22px; height: 22px;
  border-radius: 50%; border: none; background: #16162b; color: #fff;
  font-size: 0.75rem; line-height: 1; cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.thumb-del:hover { background: #b3261e; }

/* оформление: пресеты обложки и темы */
.preset-picker { display: flex; gap: 10px; flex-wrap: wrap; }
.preset-opt { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; margin-bottom: 0; }
.preset-opt input { accent-color: var(--accent); }
.preset-swatch {
  display: inline-flex; align-items: center; justify-content: center;
  width: 74px; height: 40px; border-radius: 11px; border: 1px solid var(--line);
  font-size: 0.72rem; color: var(--muted); background: #fff; font-weight: 600;
}
.preset-g1 { background: linear-gradient(120deg, #5b5bd6, #9f7aea); }
.preset-g2 { background: linear-gradient(120deg, #ec5f9b, #f0a058); }
.preset-g3 { background: linear-gradient(120deg, #2fa98c, #7ed0b0); }
.preset-g4 { background: linear-gradient(120deg, #23233a, #4b4b7a); }
.theme-picker { display: flex; gap: 18px; flex-wrap: wrap; }
.theme-opt { display: flex; align-items: center; gap: 8px; cursor: pointer; margin-bottom: 0; }
.theme-opt input { accent-color: var(--accent); }
.swatch { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); display: inline-block; }
.swatch.theme-light { background: linear-gradient(135deg, #fff 50%, #ececfa 50%); }
.swatch.theme-dark { background: #23233a; }
.swatch.theme-rose { background: linear-gradient(135deg, #d6538b, #f0a058); }
.swatch.theme-mint { background: linear-gradient(135deg, #2fa98c, #57c7e3); }
.pro-tag { font-size: 0.7rem; font-weight: 800; color: var(--accent); background: #ececfa; padding: 2px 6px; border-radius: 6px; }

/* онлайн-запись: расписание */
.toggle-line { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 16px; }
.toggle-line input { width: 18px; height: 18px; accent-color: var(--accent); }
.sched { margin-top: 6px; }
.sched-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.sched-day { display: flex; align-items: center; gap: 8px; width: 150px; margin-bottom: 0; font-weight: 600; }
.sched-day input { accent-color: var(--accent); }
.sched-row input[type=time] { width: 112px; margin-top: 0; padding: 7px 10px; }

/* записи клиентов */
.sec-title { font-size: 1.12rem; font-weight: 800; margin: 22px 0 12px; }
.bk-card { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 10px; padding: 16px 20px; }
.bk-new { border-left: 4px solid var(--accent); box-shadow: 0 8px 24px -14px var(--glow); }
.bk-past { opacity: 0.72; }
.bk-when { font-size: 1.02rem; }
.bk-side { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.bk-status { font-size: 0.8rem; font-weight: 800; padding: 3px 10px; border-radius: 10px; white-space: nowrap; }
.st-new { background: #ececfa; color: var(--accent); }
.st-ok { background: #e8f7ee; color: #1a7f4b; }
.st-cancel { background: #f4f4f5; color: var(--muted); }
@media (max-width: 600px) { .bk-card { flex-direction: column; align-items: flex-start; } .bk-side { justify-content: flex-start; } }

/* уведомления */
.channel-list { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.channel-opt { display: flex; align-items: center; gap: 10px; margin-bottom: 0; font-weight: 500; }
.channel-opt input { accent-color: var(--accent); }
.channel-soon { color: var(--muted); }
.soon-tag { font-size: 0.72rem; font-weight: 800; color: var(--muted); background: #f0f0f4; padding: 2px 8px; border-radius: 8px; }
.channel-detail { margin-left: 26px; }
.btn-row { margin-top: 12px; }
.feed-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.feed-head h3 { margin-bottom: 0; }
.ntf { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.ntf:first-of-type { border-top: none; }
.ntf-unread { background: #fafaff; margin: 0 -12px; padding: 12px; border-radius: 12px; }
.ntf-icon { font-size: 1.2rem; }

/* подписка */
.save-card-line { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 500; color: var(--muted); margin-bottom: 12px; }
.save-card-line input[type=checkbox] { width: 16px; height: 16px; flex: none; accent-color: var(--accent); margin-top: 0; }
.save-card-line input[type=email] { flex: 1; margin-top: 0; padding: 8px 12px; font-size: 0.92rem; }
.plain-list { list-style: none; }
.plain-list li { padding: 7px 0 7px 22px; position: relative; color: var(--muted); }
.plain-list li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }

/* статистика */
.stat { text-align: center; }
.stat-num {
  font-size: 2.4rem; font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- админ-панель ---------- */

.container.wide { max-width: 1120px; }
.admin-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.admin-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-tabs a {
  padding: 9px 16px; border-radius: 11px; font-weight: 700; font-size: 0.93rem;
  color: var(--ink); border: 1px solid var(--line); background: var(--card);
}
.admin-tabs a:hover { text-decoration: none; border-color: var(--accent); color: var(--accent); }
.admin-tabs a.on { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 6px 16px -6px var(--glow); }

.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 16px; }
.stat.sm { padding: 16px; }
.stat.sm .stat-num { font-size: 1.6rem; }
.admin-cols { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 18px; align-items: start; }
@media (max-width: 800px) { .admin-cols { grid-template-columns: 1fr; } }

.table-card { padding: 8px 12px; overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.admin-table td { padding: 10px 10px; border-top: 1px solid var(--line); vertical-align: top; }
.admin-table tr:first-child td { border-top: none; }
.admin-table tr.th td { font-weight: 800; color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; }
.nowrap { white-space: nowrap; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 0.78rem; }
.u-mail { font-weight: 700; }
.u-actions { max-width: 240px; }
.inline-form { display: inline-block; margin: 0 6px 4px 0; }
.inline-form select { width: auto; padding: 5px 8px; margin-top: 0; font-size: 0.84rem; }
.mini-link {
  background: none; border: none; color: var(--accent); font-weight: 600; cursor: pointer;
  font-size: 0.84rem; font-family: inherit; padding: 2px 0;
}
.mini-link:hover { text-decoration: underline; }
.mini-link.danger { color: #b3261e; }
.st-u-trial { background: #ececfa; color: var(--accent); }
.st-u-paid { background: #e8f7ee; color: #1a7f4b; }
.st-u-paused { background: #fdecec; color: #b3261e; }
.st-u-demo { background: #f4f4f5; color: var(--muted); }
.ev { font-size: 0.78rem; font-weight: 700; padding: 2px 8px; border-radius: 8px; background: #ececfa; color: var(--accent-dark); }
.admin-filter { padding: 14px 18px; margin-bottom: 14px; }
.filter-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filter-form input[type=text] { flex: 1; min-width: 220px; margin-top: 0; }
.filter-form select { width: auto; margin-top: 0; }

/* аккаунт: строки логин/e-mail */
.acc-line { display: flex; gap: 14px; padding: 4px 0; align-items: baseline; }
.acc-line > span:first-child { width: 70px; flex: none; font-size: 0.88rem; }

/* соцвход и настройки аккаунта */
.social-divider {
  display: flex; align-items: center; gap: 12px; margin: 18px 0 14px;
  color: var(--muted); font-size: 0.85rem; font-weight: 600;
}
.social-divider::before, .social-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
/* соц-кнопки: круглые иконки по центру */
.social-row { display: flex; gap: 16px; justify-content: center; margin-bottom: 14px; }
.soc-circle {
  width: 52px; height: 52px; border-radius: 50%; border: none; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff !important; cursor: pointer; text-decoration: none;
  transition: filter 0.15s, transform 0.15s, box-shadow 0.15s;
}
.soc-circle svg { width: 28px; height: 28px; }
.soc-circle:hover { filter: brightness(1.08); transform: translateY(-2px); text-decoration: none; }
.soc-circle:active { transform: none; }
.tg-pill { background: #2aabee; box-shadow: 0 8px 18px -6px rgba(42, 171, 238, 0.55); }
.vk-pill { background: #07f; box-shadow: 0 8px 18px -6px rgba(0, 119, 255, 0.5); }
.social-links-list { display: flex; flex-direction: column; gap: 10px; }
.social-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.social-line > span:first-child { font-weight: 700; width: 100px; }
.danger-card { border-color: #f3c2c2; }
.danger-btn { color: #b3261e !important; border-color: #b3261e; }
.danger-btn:hover { background: #fdecec; }

/* плашка «вошли как пользователь» */
.imp-bar {
  background: #16162b; color: #e8e8f6; font-size: 0.88rem; font-weight: 600;
  padding: 9px 16px; text-align: center; display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap;
}
.imp-bar .mini-link { color: #a8a8f0; }

@media (max-width: 640px) {
  .nav { padding: 10px 14px; }
  .nav-main.guest a { padding: 7px 9px; font-size: 0.88rem; }
  .section { padding: 34px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
