/* ===== Leads-ai.ru — кабинет: общие стили ===== */
:root {
  --bg: #0b1020;
  --bg-soft: #111735;
  --card: #151c3f;
  --border: #26305f;
  --text: #e8ecff;
  --muted: #9aa6d4;
  --accent: #6c7bff;
  --accent-2: #39d0c2;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.6;
}
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
a { color: var(--accent-2); }

header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,16,32,.88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.logo { font-size: 22px; font-weight: 700; color: var(--text); text-decoration: none; }
.logo span { color: var(--accent-2); }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav-links a:hover { color: var(--text); }

.btn {
  display: inline-block; background: var(--accent); color: #fff; padding: 12px 26px;
  border-radius: 10px; text-decoration: none; font-weight: 600; border: none; cursor: pointer;
  font-size: 15px; transition: transform .15s, background .2s;
}
.btn:hover { background: #5b6bff; transform: translateY(-2px); }
.btn-outline { background: transparent; border: 1.5px solid var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-green { background: var(--accent-2); color: #041a17; }
.btn-green:hover { background: #2fc0b2; color: #041a17; }
.btn-gray { background: #3a4470; }
.btn-gray:hover { background: #4a5488; }

.hero { padding: 80px 0 50px; text-align: center; }
.hero h1 { font-size: 46px; line-height: 1.15; font-weight: 800; margin-bottom: 18px; }
.hero h1 span { color: var(--accent-2); }
.subtitle { font-size: 19px; color: var(--muted); max-width: 700px; margin: 0 auto; }

section { padding: 60px 0; }
.section-title { font-size: 32px; font-weight: 800; margin-bottom: 12px; }
.section-desc { color: var(--muted); font-size: 16px; margin-bottom: 36px; }
.center { text-align: center; }

/* Тарифы */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.plan { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 30px; position: relative; }
.plan.featured { border-color: var(--accent-2); box-shadow: 0 0 30px rgba(57,208,194,.15); }
.plan .badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent-2); color: #041a17; font-size: 13px; font-weight: 700; padding: 5px 14px; border-radius: 30px;
}
.plan h3 { font-size: 19px; margin-bottom: 6px; }
.plan .price { font-size: 34px; font-weight: 800; margin-bottom: 16px; }
.plan ul { list-style: none; margin-bottom: 20px; }
.plan li { padding: 7px 0 7px 26px; position: relative; color: var(--muted); font-size: 14px; border-bottom: 1px dashed var(--border); }
.plan li::before { content: '✓'; position: absolute; left: 0; color: var(--accent-2); font-weight: 700; }
.plan form { display: grid; gap: 12px; }
.plan input[type=email], .form-box input[type=text], .form-box input[type=email], .form-box input[type=password],
.form-box select, .form-box textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border);
  background: #0e1430; color: var(--text); font-size: 15px; font-family: inherit; outline: none;
}
.plan input[type=email]:focus, .form-box input:focus, .form-box select:focus, .form-box textarea:focus { border-color: var(--accent); }

/* Шаги */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { text-align: center; padding: 24px 16px; background: var(--bg-soft); border-radius: 16px; border: 1px solid var(--border); }
.step .num { width: 42px; height: 42px; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; font-weight: 800; border-radius: 50%; background: var(--accent); color: #fff; }
.step h4 { margin-bottom: 6px; font-size: 16px; }
.step p { color: var(--muted); font-size: 14px; }

/* Флеш */
.flash { padding: 14px 18px; border-radius: 12px; margin: 18px 0; font-size: 15px; }
.flash-ok { background: rgba(57,208,194,.12); border: 1px solid var(--accent-2); color: var(--accent-2); }
.flash-err { background: rgba(255,92,122,.12); border: 1px solid #ff5c7a; color: #ff8aa0; }

/* Формы кабинета */
.form-box { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 28px; max-width: 640px; }
.form-box label { display: block; font-size: 14px; color: var(--muted); margin: 14px 0 6px; }
.form-box .hint { font-size: 13px; color: var(--muted); margin-top: 4px; }
.form-row { display: grid; gap: 14px; }

/* Статусы (таймлайн) */
.timeline { position: relative; margin: 20px 0 10px; padding-left: 26px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.tl-item { position: relative; padding: 8px 0 8px 18px; color: var(--muted); font-size: 15px; }
.tl-item::before { content: ''; position: absolute; left: -24px; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.tl-item.active { color: var(--text); font-weight: 600; }
.tl-item.active::before { background: var(--accent-2); box-shadow: 0 0 0 4px rgba(57,208,194,.2); }
.tl-item .tl-date { font-size: 13px; color: var(--muted); font-weight: 400; }

/* Карточки в админке */
.card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 22px; }
.card h3 { font-size: 17px; margin-bottom: 10px; }
.grid-admin { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.badge-status { display: inline-block; padding: 4px 12px; border-radius: 30px; font-size: 13px; background: var(--bg-soft); border: 1px solid var(--border); }
.badge-status.paid { background: rgba(57,208,194,.12); border-color: var(--accent-2); color: var(--accent-2); }

/* Файлы */
.file-list { list-style: none; }
.file-list li { padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 15px; }
.file-list a { color: var(--accent-2); text-decoration: none; }

/* Таблицы админки */
.table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 14px; overflow: hidden; }
.table th, .table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
.table th { background: var(--bg-soft); color: var(--muted); font-weight: 600; }
.table tr:hover td { background: rgba(108,123,255,.06); }
.table a { color: var(--accent-2); text-decoration: none; }

footer { border-top: 1px solid var(--border); padding: 34px 0; margin-top: 40px; }
.footer-bottom { text-align: center; color: var(--muted); font-size: 13px; }

@media (max-width: 900px) {
  .plans, .steps, .grid-admin { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .nav-links { display: none; }
}