/* Design system v1 — AiPostify (фаза 1.7) */
:root {
  color-scheme: light dark;
}

:root,
[data-theme="light"] {
  --bg: #f8fafc;
  --bg-elevated: #ffffff;
  --card: #ffffff;
  --card-border: #e2e8f0;
  --text: #0f172a;
  --text-muted: #64748b;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: #dbeafe;
  --success: #16a34a;
  --warning: #ca8a04;
  --danger: #dc2626;
  --boost: #0ea5e9;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgb(15 23 42 / 8%);
  --font: system-ui, "Segoe UI", Roboto, sans-serif;
  --focus-ring: 0 0 0 3px rgb(37 99 235 / 35%);
  --header-height: 3.25rem;
}

[data-theme="dark"] {
  --bg: #0f172a;
  --bg-elevated: #1e293b;
  --card: #1e293b;
  --card-border: #334155;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --accent: #3b82f6;
  --accent-hover: #60a5fa;
  --accent-soft: #1e3a5f;
  --shadow: 0 1px 3px rgb(0 0 0 / 35%);
  --focus-ring: 0 0 0 3px rgb(59 130 246 / 45%);
}

/* Алиасы для существующих стилей MVP */
:root,
[data-theme="light"],
[data-theme="dark"] {
  --muted: var(--text-muted);
  --border: var(--card-border);
}

* { box-sizing: border-box; }

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

/* Skip link — первый фокус для клавиатуры */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--card-border);
  box-shadow: var(--shadow);
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.65rem 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
  min-height: var(--header-height);
}

.header .header-nav {
  flex: 1;
  justify-content: flex-end;
}

.logo {
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-nav {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  flex-wrap: wrap;
}

.header-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.925rem;
}
.header-nav a:hover { color: var(--text); }

/* Балансы ₽ и Буст в шапке (фаза 2.13) */
.header-balances {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.header-balance {
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.header-balance-rub {
  color: var(--success);
}
.header-balance-rub:hover {
  filter: brightness(1.08);
}
.header-balance-boost {
  color: var(--boost);
}
.header-balance-boost:hover {
  filter: brightness(1.08);
}
.header-balance-sep {
  color: var(--text-muted);
  font-weight: 400;
  user-select: none;
}
.tabular-nums {
  font-variant-numeric: tabular-nums;
}

.theme-toggle,
.nav-toggle {
  border: 1px solid var(--card-border);
  background: var(--card);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: inherit;
}

.nav-toggle { display: none; }

@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; }
  .header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--card-border);
    box-shadow: var(--shadow);
  }
  .header-nav.is-open { display: flex; }
  .site-header { position: relative; }
  .header { flex-wrap: wrap; }
}

.container { max-width: 960px; margin: 0 auto; padding: 1.5rem; }
.footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  border-top: 1px solid var(--card-border);
  margin-top: auto;
}

.hero { text-align: center; padding: 3rem 1rem; }
.hero h1 { font-size: 2rem; margin-bottom: 0.5rem; font-weight: 600; }

.btn,
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  font-size: 0.9rem;
  font-family: inherit;
}
.btn:hover,
.btn-primary:hover { background: var(--accent-hover); }
.btn:disabled,
.btn-primary:disabled { opacity: 0.5; pointer-events: none; }

.btn.secondary,
.btn-secondary {
  background: var(--card);
  border: 1px solid var(--card-border);
  color: var(--text);
}
.btn-ghost {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
}
.btn-boost {
  background: var(--boost);
  color: #fff;
}
.btn.danger { background: var(--danger); }
.btn.small { padding: 0.25rem 0.5rem; font-size: 0.8rem; }

.form label { display: block; margin-bottom: 1rem; }
.form input, .form select, .form textarea {
  display: block;
  width: 100%;
  max-width: 480px;
  margin-top: 0.25rem;
  padding: 0.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 4px;
}

/* Регистрация / вход — карточка по центру (фаза 2.6) */
.auth-page {
  display: flex;
  justify-content: center;
  padding: 1.5rem 1rem 3rem;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow);
}
.auth-title {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
}
.auth-lead {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}
.auth-trial-banner {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.4;
}
.auth-ref-warn {
  margin: 0 0 0.75rem;
  color: var(--warning);
  font-size: 0.9rem;
}
.auth-form .form-field {
  display: block;
  margin-bottom: 1rem;
}
.auth-form .form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}
.auth-form input {
  max-width: none;
  border-radius: var(--radius-sm);
  border-color: var(--card-border);
}
.auth-form .input-readonly {
  background: var(--bg);
  color: var(--text-muted);
  cursor: not-allowed;
}
.auth-form .field-hint {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.auth-form .field-error {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: var(--danger);
}
.auth-captcha {
  margin: 0.25rem 0 1rem;
  padding: 0.85rem 0.9rem;
  background: var(--bg);
  border: 1px dashed var(--card-border);
  border-radius: var(--radius-sm);
}
.auth-captcha-label {
  margin-bottom: 0.15rem;
}
.auth-captcha-hint {
  margin: 0 0 0.5rem;
}
.auth-captcha-widget {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 4rem;
  padding: 0.35rem 0;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.auth-captcha-widget .cf-turnstile {
  width: 100%;
  max-width: 100%;
}
.auth-captcha-error {
  display: block;
  margin-top: 0.5rem;
  text-align: center;
}
.auth-submit { width: 100%; margin-top: 0.25rem; }
.auth-footer-link {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Вход — карточка в стиле smmbox (отдельная страница /auth/login) */
.auth-body .container {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}
.auth-page--login {
  min-height: calc(100vh - var(--header-height) - 6rem);
  align-items: flex-start;
  padding-top: 2rem;
}
.auth-card--login {
  max-width: 400px;
  padding: 2rem 1.75rem 1.5rem;
  text-align: center;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgb(15 23 42 / 10%);
}
.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.auth-brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
}
.auth-brand-name {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.auth-login-title {
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.auth-login-sub {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.auth-inline-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.auth-inline-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}
.auth-login-form {
  text-align: left;
}
.auth-field {
  display: block;
  margin-bottom: 0.65rem;
}
.auth-field input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid transparent;
  font-size: 1rem;
  line-height: 1.25;
}
.auth-field--filled input {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
}
.auth-field--filled input::placeholder {
  color: var(--text-muted);
}
.auth-field--filled input:focus {
  border-color: var(--accent);
  background: var(--card);
}
.auth-login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.35rem 0 1rem;
  font-size: 0.875rem;
}
.auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  color: var(--text);
  user-select: none;
}
.auth-remember input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--accent);
}
.auth-forgot {
  color: var(--accent);
  font-size: 0.875rem;
}
.auth-forgot--soon {
  color: var(--text-muted);
  cursor: default;
}
.auth-login-submit {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
}
.auth-register-btn {
  display: block;
  width: 100%;
  margin-top: 0.65rem;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  color: var(--accent);
  background: var(--card);
  border: 2px solid var(--accent);
  border-radius: var(--radius-sm);
  box-sizing: border-box;
}
.auth-register-btn:hover {
  background: var(--accent-soft);
  color: var(--accent-hover);
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.35rem 0 1rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--card-border);
}
.auth-social {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
}
.auth-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
}
.auth-social-btn:not(:disabled):hover {
  transform: translateY(-1px);
}
.auth-social-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.auth-social-btn--vk {
  background: #0077ff;
  color: #fff;
}
.auth-social-btn--google {
  background: var(--card);
  border: 1px solid var(--card-border);
}
.auth-social-btn--telegram {
  background: #2aabee;
  color: #fff;
}
.auth-social-more {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
}
.auth-social-more-link {
  color: var(--text-muted);
  cursor: default;
}
.auth-terms {
  margin: 1.25rem 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--text-muted);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Dashboard — главная ЛК (фаза 2.23) */
.dashboard-page h1 { margin-top: 0; }
.dashboard-lead {
  color: var(--text-muted);
  margin: 0.25rem 0 0;
}
.dashboard-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.dashboard-section-title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 600;
}
.dashboard-attention {
  margin-bottom: 1.5rem;
  padding: 1rem 1.1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.dashboard-attention-icon {
  margin-right: 0.35rem;
}
.dashboard-attention-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.dashboard-attention-item {
  margin: 0.35rem 0;
  font-size: 0.95rem;
}
.dashboard-attention-item a {
  color: var(--text);
  text-decoration: none;
}
.dashboard-attention-item a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.dashboard-attention-error a {
  color: var(--danger, #c0392b);
}
.dashboard-attention-warn {
  color: var(--text);
}
.dashboard-kpi {
  margin-bottom: 1.75rem;
}
.dashboard-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.75rem;
}
.dashboard-kpi-card {
  padding: 0.85rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.dashboard-kpi-value {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.1;
}
.dashboard-kpi-label {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.dashboard-kpi-hint {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.dashboard-summary {
  margin-bottom: 1.75rem;
}
.dashboard-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 0.65rem 1rem;
  margin: 0;
}
.dashboard-summary-item {
  margin: 0;
  padding: 0.65rem 0.85rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.dashboard-summary-label {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}
.dashboard-summary-value {
  margin: 0.25rem 0 0;
  font-size: 1.05rem;
  font-weight: 600;
}
.dashboard-summary-value a {
  color: var(--text);
  text-decoration: none;
}
.dashboard-summary-value a:hover {
  color: var(--accent);
}
.dashboard-slot-metrics {
  margin: 0.35rem 0 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.dashboard-slots {
  margin-bottom: 1.5rem;
}
.dashboard-slots-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.dashboard-slots-all {
  font-size: 0.9rem;
}
.dashboard-slot-cards {
  margin-top: 0;
}
.dashboard-slot-card h3 {
  font-size: 1rem;
}
.dashboard-empty-slots {
  margin: 0 0 1rem;
}
.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
/* Ваше время на главной (фаза 2.12) */
.dashboard-user-time {
  padding: 0.85rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  max-width: 16rem;
  flex-shrink: 0;
}
.dashboard-user-time-label {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.dashboard-user-time-value {
  margin: 0;
  font-size: 1.35rem;
}
.dashboard-user-time-date {
  display: block;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 0.2rem;
}
.dashboard-user-time-tz {
  margin: 0.5rem 0 0;
}
.slot-schedule-tz-hint {
  margin: 0 0 0.75rem;
  max-width: 40rem;
}
.window-msk-hint {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 400;
  margin-left: 0.35rem;
}

/* Мастер онбординга (фаза 2.19–2.20) */
.onboarding-wizard-page {
  display: flex;
  justify-content: center;
  padding: 1.5rem 1rem 3rem;
}
.onboarding-wizard-card {
  width: 100%;
  max-width: 560px;
}
.onboarding-wizard-progress {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.onboarding-wizard-bar {
  display: flex;
  gap: 0.35rem;
  margin: 0 0 1.25rem;
}
.onboarding-wizard-dot {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
}
.onboarding-wizard-dot.is-done {
  background: var(--accent);
}
.onboarding-wizard-dot.is-current {
  background: var(--boost);
}
.onboarding-step-heading {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}
.onboarding-status-ok {
  color: var(--success);
  margin: 0.5rem 0;
}
.onboarding-status-warn {
  color: #fcd34d;
  margin: 0.5rem 0;
}
.onboarding-bot-name {
  font-weight: 600;
  font-size: 1.1rem;
}
.onboarding-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.onboarding-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.35rem 0;
}
.onboarding-checklist .is-ok {
  color: var(--success);
}
.onboarding-checklist .is-pending {
  color: var(--text-muted);
}
.onboarding-check-icon {
  width: 1.25rem;
  flex-shrink: 0;
}
.onboarding-wizard-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.onboarding-skip-form {
  margin-left: auto;
}

/* Мастер A: бот платформы в канале (фаза 4.10 v2) */
.platform-wizard-page {
  display: flex;
  justify-content: center;
  padding: 1.5rem 1rem 3rem;
}
.platform-wizard-card {
  width: 100%;
  max-width: 560px;
}
.platform-wizard-progress {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.platform-wizard-bar {
  display: flex;
  gap: 0.35rem;
  margin: 0 0 1rem;
}
.platform-wizard-dot {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
}
.platform-wizard-dot.is-done {
  background: var(--accent);
}
.platform-wizard-dot.is-current {
  background: var(--boost);
}
.platform-wizard-body {
  margin: 0 0 0.75rem;
  line-height: 1.5;
}
.platform-wizard-bot {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 1rem;
}
.platform-wizard-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.platform-wizard-back-link {
  margin-left: auto;
}
.platform-bot-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Модалка ЛК — удаление бота (фаза 4.5 v2) */
.lk-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.lk-modal.is-open {
  display: flex;
}
.lk-modal[hidden] {
  display: none !important;
}
body.lk-modal-open {
  overflow: hidden;
}
.lk-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(15 23 42 / 55%);
}
.lk-modal__panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0;
  z-index: 1;
}
.lk-modal__title {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
}
.lk-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.bot-delete-slots-list {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}
.bot-delete-slots-list a {
  color: var(--accent);
}

/* Профиль (фаза 2.11) — та же карточка, что auth */
.profile-page {
  display: flex;
  justify-content: center;
  padding: 1.5rem 1rem 3rem;
}
.profile-card {
  width: 100%;
  max-width: 480px;
}
.profile-saved-msg {
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  background: rgb(22 163 74 / 12%);
  color: var(--success);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}
.profile-tz-hint {
  line-height: 1.45;
}
.profile-footer-link {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.9rem;
}
.profile-footer-link a {
  color: var(--accent);
}

/* История баланса: вкладки ₽ | Буст (фаза 2.15) */
.balance-history-page {
  max-width: 960px;
  margin: 0 auto;
}
.balance-history-lead {
  color: var(--text-muted);
  margin: 0 0 1rem;
}
.balance-history-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0 0 1rem;
  border-bottom: 1px solid var(--border);
}
.balance-history-tab {
  padding: 0.45rem 0.85rem;
  color: var(--muted);
  text-decoration: none;
  border-radius: 6px 6px 0 0;
  font-size: 0.95rem;
}
.balance-history-tab:hover {
  color: var(--text);
  background: #1e293b;
}
.balance-history-tab.active {
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  border-bottom-color: var(--card);
  margin-bottom: -1px;
}
.balance-history-panel {
  margin-top: 0.5rem;
}
.balance-history-balance {
  margin: 0 0 0.75rem;
}
.balance-history-boost-amount {
  color: var(--boost);
}
.balance-history-boost-hint {
  margin: 0 0 1rem;
  max-width: 42rem;
}
.balance-history-actions {
  margin: 0 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.balance-history-amount-boost {
  color: var(--boost);
  font-weight: 600;
}

/* Демо-пополнение (фаза 2.16) */
.demo-topup-page {
  display: flex;
  justify-content: center;
  padding: 1.5rem 1rem 3rem;
}
.demo-topup-card {
  width: 100%;
  max-width: 440px;
}
.demo-topup-balance {
  margin: 0 0 1rem;
}
.demo-topup-limits {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  background: rgb(15 23 42 / 40%);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.demo-topup-limits div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
}
.demo-topup-limits dt {
  color: var(--text-muted);
  margin: 0;
}
.demo-topup-limits dd {
  margin: 0;
  font-weight: 600;
}
.demo-topup-remaining {
  color: var(--success);
}
.demo-topup-env-hint code {
  font-size: 0.85em;
}
.demo-topup-disabled-msg {
  padding: 0.75rem 1rem;
  background: rgb(127 29 29 / 15%);
  border-radius: var(--radius-sm);
  color: #fca5a5;
  margin: 0 0 1rem;
}
.demo-topup-error {
  margin: 0 0 1rem;
}
.demo-topup-footer-link {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.9rem;
}
.demo-topup-footer-link a {
  color: var(--accent);
}

/* Пополнение ЮKassa (фаза 11.3 v2) */
.yookassa-topup-page {
  display: flex;
  justify-content: center;
  padding: 1.5rem 1rem 3rem;
}
.yookassa-topup-card {
  width: 100%;
  max-width: 440px;
}
.yookassa-topup-balance {
  margin: 0 0 1rem;
}
.yookassa-topup-need {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  background: rgb(202 138 4 / 12%);
  border: 1px solid rgb(202 138 4 / 35%);
  border-radius: var(--radius-sm);
}
.yookassa-topup-need-title {
  margin: 0 0 0.35rem;
  font-weight: 600;
  color: var(--warning);
}
.yookassa-topup-need p {
  margin: 0 0 0.35rem;
}
.yookassa-topup-need p:last-child {
  margin-bottom: 0;
}
.yookassa-topup-disabled-msg {
  padding: 0.75rem 1rem;
  background: rgb(127 29 29 / 15%);
  border-radius: var(--radius-sm);
  color: #fca5a5;
  margin: 0 0 1rem;
}
.yookassa-topup-error {
  margin: 0 0 1rem;
}
.yookassa-topup-info {
  display: grid;
  gap: 0.65rem;
  margin: 1.25rem 0 0;
  padding: 0.75rem 1rem;
  background: rgb(15 23 42 / 40%);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.yookassa-topup-info div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
}
.yookassa-topup-info dt {
  color: var(--text-muted);
  margin: 0;
}
.yookassa-topup-info dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}
.yookassa-topup-alt {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  text-align: center;
}
.yookassa-topup-alt a {
  color: var(--accent);
}
.yookassa-topup-footer-link {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.9rem;
}
.yookassa-topup-footer-link a {
  color: var(--accent);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}
.card.platform { border-color: var(--accent); }

/* Карточка «Бот AiPostify» на /bots (фаза 4.4 v2) */
.platform-bot-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.75rem;
}
.platform-bot-card__title {
  margin: 0;
  font-size: 1.125rem;
}
.platform-bot-card__username {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
}
.platform-bot-card__status {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm, 8px);
}
.platform-bot-card__status--success {
  background: color-mix(in srgb, var(--success, #16a34a) 18%, transparent);
  color: var(--success, #16a34a);
}
.platform-bot-card__status--warn {
  background: color-mix(in srgb, var(--warning, #ca8a04) 18%, transparent);
  color: var(--warning, #ca8a04);
}
.platform-bot-card__actions {
  margin: 1rem 0 0;
}

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 0.5rem; border-bottom: 1px solid var(--border); text-align: left; }

.error { color: #fca5a5; }
.success { color: #86efac; }
.hint { color: #94a3b8; }
.badge { background: #1e3a5f; color: #93c5fd; padding: 0.15rem 0.5rem; border-radius: 4px; font-size: 0.8rem; }
.preview { color: var(--muted); font-size: 0.9rem; }
.inline { display: inline; }
.banner { background: #422006; color: #fcd34d; padding: 0.75rem 1.5rem; }

/* Баннер «Сервис настраивается» — нет токена бота платформы (фаза 4.12 v2) */
.platform-setup-banner {
  background: color-mix(in srgb, var(--warning, #ca8a04) 22%, var(--bg-elevated, #fff));
  color: var(--text, #0f172a);
  border-bottom: 1px solid color-mix(in srgb, var(--warning, #ca8a04) 45%, transparent);
}
[data-theme="dark"] .platform-setup-banner {
  color: var(--text, #f1f5f9);
}
.notification-banner-link { color: #fde68a; margin-left: 1rem; }
.nav-notifications { position: relative; }
.nav-notifications-badge {
  background: #ef4444;
  color: #fff;
  font-size: 0.7rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  margin-left: 0.25rem;
}
.notification-card { margin-bottom: 1rem; padding: 1rem; border-radius: 8px; background: var(--card, #1e293b); }
.notification-card-error { border-left: 3px solid var(--danger, #dc2626); }
.notification-card-warning { border-left: 3px solid var(--warning, #ca8a04); }
.notification-card-info { border-left: 3px solid var(--card-border, #e2e8f0); }
.notification-type-badge {
  display: inline-block;
  font-size: 0.75rem;
  background: var(--bg-elevated, #334155);
  color: var(--text-muted, #94a3b8);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}
.notification-type-badge--error {
  background: color-mix(in srgb, var(--danger, #dc2626) 18%, transparent);
  color: var(--danger, #dc2626);
}
.notification-type-badge--warning {
  background: color-mix(in srgb, var(--warning, #ca8a04) 18%, transparent);
  color: var(--warning, #ca8a04);
}
.notification-type-badge--info {
  background: var(--accent-soft, #dbeafe);
  color: var(--accent, #2563eb);
}

/* Лента `/notifications` — TG-style (фаза 10.2 v2) */
.notifications-page { max-width: 42rem; }
.notifications-page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.5rem;
}
.notifications-page-lead { margin: 0.25rem 0 0; }
.notifications-retention-hint { margin: 0 0 1rem; }
.notifications-feed {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--card-border, #e2e8f0);
  border-radius: var(--radius-sm, 8px);
  background: var(--card, #fff);
  overflow: hidden;
}
.notification-feed-item {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--card-border, #e2e8f0);
}
.notification-feed-item:last-child { border-bottom: none; }
.notification-feed-item--unread {
  background: color-mix(in srgb, var(--accent, #2563eb) 8%, var(--card, #fff));
}
.notification-feed-item--error { border-left: 3px solid var(--danger, #dc2626); }
.notification-feed-item--warning { border-left: 3px solid var(--warning, #ca8a04); }
.notification-feed-item--info { border-left: 3px solid var(--card-border, #e2e8f0); }
.notification-feed-main { flex: 1 1 14rem; min-width: 0; }
.notification-feed-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.35rem;
}
.notification-feed-head .notification-type-badge { margin-bottom: 0; }
.notification-feed-time {
  font-size: 0.75rem;
  color: var(--text-muted, #64748b);
}
.notification-feed-title {
  margin: 0 0 0.25rem;
  font-weight: 600;
  font-size: 0.95rem;
}
.notification-feed-message {
  margin: 0;
  color: var(--text, #0f172a);
  font-size: 0.9rem;
  line-height: 1.45;
}
.notification-feed-link { margin: 0.5rem 0 0; font-size: 0.875rem; }
.notification-feed-actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: stretch;
}
.notifications-empty { padding: 1.25rem; text-align: center; }

/* Журнал `/audit` — TG-style (фаза 12.3 v2) */
.audit-page { max-width: 42rem; }
.audit-page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.75rem;
}
.audit-page-lead { margin: 0.25rem 0 0; }
.audit-page-limit { margin: 0; font-size: 0.8125rem; }
.audit-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}
.audit-filter-tab {
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm, 8px);
  border: 1px solid var(--card-border, #e2e8f0);
  background: var(--card, #fff);
  font-size: 0.875rem;
  text-decoration: none;
  color: var(--text, #0f172a);
}
.audit-filter-tab.active {
  border-color: var(--accent, #2563eb);
  background: var(--accent-soft, #dbeafe);
  color: var(--accent, #2563eb);
  font-weight: 600;
}
.audit-feed {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--card-border, #e2e8f0);
  border-radius: var(--radius-sm, 8px);
  background: var(--card, #fff);
  overflow: hidden;
}
.audit-feed-item {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--card-border, #e2e8f0);
}
.audit-feed-item:last-child { border-bottom: none; }
.audit-feed-item--error { border-left: 3px solid var(--danger, #dc2626); }
.audit-feed-item--warning { border-left: 3px solid var(--warning, #ca8a04); }
.audit-feed-item--info { border-left: 3px solid var(--card-border, #e2e8f0); }
.audit-feed-main { min-width: 0; }
.audit-feed-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.35rem;
}
.audit-type-badge {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.audit-type-badge--error {
  background: color-mix(in srgb, var(--danger, #dc2626) 12%, transparent);
  color: var(--danger, #dc2626);
}
.audit-type-badge--warning {
  background: color-mix(in srgb, var(--warning, #ca8a04) 12%, transparent);
  color: var(--warning, #ca8a04);
}
.audit-type-badge--info {
  background: var(--accent-soft, #dbeafe);
  color: var(--accent, #2563eb);
}
.audit-event-type-hint {
  font-size: 0.75rem;
  color: var(--text-muted, #64748b);
}
.audit-feed-time {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text-muted, #64748b);
}
.audit-feed-summary {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text, #0f172a);
}
.audit-feed-slot { margin: 0.5rem 0 0; font-size: 0.875rem; }
.audit-empty { padding: 1.25rem; text-align: center; }

/* Баннер уведомления под шапкой (фаза 10.3 v2) */
.notification-header-banner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.75rem 1rem 0.75rem 1.25rem;
  border-bottom: 1px solid var(--card-border, #e2e8f0);
}
.notification-header-banner--error {
  background: color-mix(in srgb, var(--danger, #dc2626) 12%, var(--bg-elevated, #fff));
  border-left: 4px solid var(--danger, #dc2626);
}
.notification-header-banner--warning {
  background: color-mix(in srgb, var(--warning, #ca8a04) 14%, var(--bg-elevated, #fff));
  border-left: 4px solid var(--warning, #ca8a04);
}
.notification-header-banner--info {
  background: var(--bg-elevated, #f8fafc);
  border-left: 4px solid var(--accent, #2563eb);
}
.notification-header-banner-body { flex: 1 1 auto; min-width: 0; }
.notification-header-banner-text {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
}
.notification-header-banner-links {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.notification-header-banner-link {
  color: var(--accent, #2563eb);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.notification-header-banner-dismiss { flex: 0 0 auto; margin: 0; }
.notification-header-banner-close {
  border: none;
  background: transparent;
  color: var(--text-muted, #64748b);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm, 8px);
}
.notification-header-banner-close:hover {
  background: color-mix(in srgb, var(--text-muted, #64748b) 12%, transparent);
  color: var(--text, #0f172a);
}
[data-theme="dark"] .notification-header-banner-link { color: var(--accent-hover, #60a5fa); }

.slot-error-alerts {
  background: #450a0a;
  border: 1px solid #ef4444;
  color: #fecaca;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.slot-error-alert { margin: 0.25rem 0; }
.insufficient-funds {
  background: #450a0a;
  border: 1px solid #ef4444;
  color: #fecaca;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.insufficient-funds a { color: #fca5a5; }

/* Нехватка Буст — пригласи друзей (фаза 2.18) */
.insufficient-boost-page {
  display: flex;
  justify-content: center;
  padding: 1.5rem 1rem 3rem;
}
.insufficient-boost-card {
  width: 100%;
  max-width: 520px;
}
.insufficient-boost-lead {
  margin: 0 0 1rem;
  line-height: 1.5;
}
.insufficient-boost-missing {
  color: var(--boost);
}
.insufficient-boost-invite {
  padding: 1rem;
  margin: 0 0 1.25rem;
  background: rgb(14 165 233 / 10%);
  border: 1px solid rgb(14 165 233 / 35%);
  border-radius: var(--radius-sm);
}
.insufficient-boost-invite-title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--boost);
}
.insufficient-boost-code {
  margin: 0.75rem 0 0;
}
.insufficient-boost-link-wrap {
  margin: 1rem 0 0;
}
.insufficient-boost-copy-hint {
  margin: 0.75rem 0 0;
  word-break: break-all;
}
.insufficient-boost-url {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85em;
}
.insufficient-boost-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Реферальная программа /referral (фаза 2.27) */
.referral-page {
  display: flex;
  justify-content: center;
  padding: 1.5rem 1rem 3rem;
}
.referral-card {
  width: 100%;
  max-width: 640px;
}
.referral-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: 0.65rem;
  margin: 0 0 1.25rem;
}
.referral-stat {
  padding: 0.75rem 0.85rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
}
.referral-stat-value {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--boost);
}
.referral-stat-label {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.referral-section-title {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  font-weight: 600;
}
.referral-invite,
.referral-rules,
.referral-referred,
.referral-bonuses {
  margin: 0 0 1.25rem;
}
.referral-code-line {
  margin: 0 0 0.75rem;
}
.referral-link-wrap {
  margin: 0.5rem 0 0;
}
.referral-url-hint {
  word-break: break-all;
}
.referral-invite-url {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85em;
}
.referral-rules-list {
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.55;
}
.referral-rules-list li {
  margin: 0.35rem 0;
}
.referral-referred-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.referral-referred-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}
.referral-referred-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.referral-bonus-table {
  font-size: 0.9rem;
}
.referral-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.unread { border-left: 3px solid var(--accent); }

/* Карточки слотов на /slots (шаг 6.8, dashboard-style — 6.8 v2) */
.slots-list-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.slots-list-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.slot-card--attention {
  border-left: 3px solid #f59e0b;
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.15);
}
.slot-card-attention {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #f59e0b;
}
.slot-card-days-badge {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  white-space: nowrap;
}
/* Счётчик периода на карточке слота (фаза 10.4 v2) */
.slot-period-expiry-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  white-space: normal;
  max-width: 11rem;
  line-height: 1.25;
}
.slot-period-counter {
  margin: 0.15rem 0 0.35rem;
  padding: 0.35rem 0.55rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
}
.slot-period-counter--normal {
  background: var(--accent-soft);
  color: var(--accent);
}
.slot-period-counter--warning {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border-left: 3px solid #f59e0b;
}
.slot-period-counter--critical {
  background: rgba(220, 38, 38, 0.1);
  color: var(--danger);
  border-left: 3px solid var(--danger);
}
.slot-card-metrics {
  margin: 0.25rem 0 0.35rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.slot-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.5rem;
}
.slot-card-extend-form { margin: 0; }
.slot-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.slot-card-header h3 { margin: 0; font-size: 1.05rem; }
.slot-status-badge {
  font-size: 0.75rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  white-space: nowrap;
  background: #334155;
  color: #e2e8f0;
}
.slot-card.slot-status-active .slot-status-badge { background: #14532d; color: #bbf7d0; }
.slot-card.slot-status-setup .slot-status-badge { background: #1e3a5f; color: #93c5fd; }
.slot-card.slot-status-pause .slot-status-badge { background: #451a03; color: #fdba74; }
.slot-channel { color: var(--muted); margin: 0 0 0.5rem; font-size: 0.95rem; }
.slot-period { margin: 0 0 0.75rem; font-size: 0.9rem; }
.slot-period-trial { color: #93c5fd; font-weight: 500; }
/* Метка пробного периода (шаг 6.17, v2 — блок + progressbar) */
.trial-label-block {
  margin: 0.35rem 0 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.trial-label-block--active {
  border-color: rgba(147, 197, 253, 0.45);
  background: rgba(147, 197, 253, 0.08);
}
.trial-label-block--pending {
  border-color: rgba(165, 180, 252, 0.4);
  background: rgba(165, 180, 252, 0.06);
  border-style: dashed;
}
.trial-label-block--blocked {
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.08);
}
.trial-label-block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
  margin-bottom: 0.4rem;
}
.trial-label-kind-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #93c5fd;
}
.trial-label-block--blocked .trial-label-kind-badge { color: #fde68a; }
.trial-badge-inline { margin-left: 0; }
.trial-label-progress {
  height: 0.3rem;
  margin-bottom: 0.45rem;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}
.trial-label-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #60a5fa, #93c5fd);
}
.trial-period-label {
  margin: 0;
  padding: 0;
  border-radius: 0;
  font-size: 0.95rem;
  font-weight: 500;
  background: transparent;
  border: none;
}
.trial-period-active { color: #93c5fd; }
.trial-period-pending { color: #a5b4fc; }
.trial-period-blocked {
  color: #fde68a;
  font-weight: 500;
}
.trial-badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1e3a5f;
  background: #93c5fd;
}
.trial-badge-card {
  margin-left: 0;
  margin-right: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  max-width: 100%;
  white-space: normal;
  line-height: 1.3;
}
.slot-card-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  justify-content: flex-end;
}
/* Запрет генерации до запуска / в паузе (шаг 6.18, v2 — бейдж и CTA) */
.generation-block {
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
}
.generation-block--ok {
  border-color: rgba(74, 222, 128, 0.35);
}
.generation-block--setup {
  border-color: rgba(147, 197, 253, 0.4);
  background: rgba(147, 197, 253, 0.06);
}
.generation-block--pause {
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.06);
}
/* Пауза из-за сбоя API-ключа (фаза 8.15 v2) */
.generation-block--bad_key {
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(248, 113, 113, 0.06);
}
.generation-gate-badge--bad_key {
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.5);
}
.drafts-generation-blocked {
  margin: 0.75rem 0 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(248, 113, 113, 0.35);
  border-radius: var(--radius);
  background: rgba(248, 113, 113, 0.05);
}
.generation-block--inactive {
  border-color: var(--border);
  background: rgba(127, 127, 127, 0.08);
}
.generation-block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.65rem;
}
.generation-block h2 { margin: 0; font-size: 1.1rem; }
.generation-gate-badge {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: 4px;
}
.generation-gate-badge--setup {
  color: #93c5fd;
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.35);
}
.generation-gate-badge--pause {
  color: #fde68a;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
}
.generation-gate-badge--inactive {
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.generation-blocked-wrap {
  padding: 0.5rem 0 0;
}
.generation-blocked {
  margin: 0 0 0.5rem;
  color: #fbbf24;
  font-weight: 500;
}
.generation-block-hint { color: var(--muted); margin-bottom: 0.5rem; }
.generation-block-cta { margin: 0.35rem 0 0; }
/* Последняя генерация на странице слота (фаза 8.12 v2) */
.slot-last-generation {
  margin: 0.75rem 0 1rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  border: 1px solid var(--border);
  background: var(--card-bg, rgba(255, 255, 255, 0.03));
}
.slot-last-generation--success {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.06);
}
.slot-last-generation--error {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.06);
}
.slot-last-generation-line {
  margin: 0;
}
.slot-last-generation-summary {
  margin: 0.35rem 0 0;
}
.generation-gen-error { margin-bottom: 0.5rem; }
.generation-form { margin-top: 0.25rem; }
.slot-period-pause { color: #fca5a5; }
.slot-card-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.5rem; }
.slot-extend-form { margin-top: 0.25rem; }
/* Промо пробного периода на /slots (фаза 6.9 v2) */
.slot-trial-promo-banner {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.45;
}
.slot-trial-promo-headline {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1rem;
}
.slot-trial-promo-detail {
  margin: 0 0 0.35rem;
  color: var(--text);
}
.slot-trial-promo-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.slot-trial-promo-note--warn { color: var(--warning); }
.slot-reserve-summary { color: #93c5fd; font-size: 0.95rem; margin: 0.5rem 0 1rem; }
.slot-extend-block { margin: 0.75rem 0 1rem; padding: 0.75rem; border: 1px solid var(--border); border-radius: 6px; }

/* Модалка продления слота (фаза 6.10 v2) */
.slot-extend-modal__balances {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 0.75rem 0;
  font-size: 0.9rem;
}
.slot-extend-modal__balances dt {
  margin: 0;
  color: var(--text-muted);
  font-weight: 500;
}
.slot-extend-modal__balances dd {
  margin: 0.15rem 0 0;
  font-weight: 600;
}
.slot-extend-modal__price { margin: 0 0 0.75rem; }
.slot-extend-modal__options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.slot-extend-pay-form { margin: 0; }
.slot-extend-modal__boost-hint { margin-top: 0.25rem; font-size: 0.85rem; }

/* Вкладки настроек слота (шаг 6.11, mobile scroll — 6.11 v2) */
.slot-tabs-scroll {
  margin: 0 0 1rem;
  border-bottom: 1px solid var(--border);
}
.slot-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0;
  padding: 0 0 0.5rem;
}
.slot-tab-link {
  padding: 0.45rem 0.75rem;
  color: var(--muted);
  text-decoration: none;
  border-radius: 4px 4px 0 0;
  font-size: 0.9rem;
  white-space: nowrap;
}
.slot-tab-link:hover { color: var(--text); background: #1e293b; }
.slot-tab-link.active {
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  border-bottom-color: var(--card);
  margin-bottom: -1px;
}
.slot-tab-panel {
  scroll-margin-top: 1rem;
}
.slot-tab-panel:target {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}
.launch-check-configure { flex-shrink: 0; }
@media (max-width: 720px) {
  .slot-tabs-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .slot-tabs {
    flex-wrap: nowrap;
    min-width: min-content;
    padding-right: 0.5rem;
  }
  .slot-tab-link { flex-shrink: 0; }
  .launch-check-item {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}

/* Источники слота — TG-style список (фаза 6.3 v2) */
.slot-sources-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.slot-sources-title { margin: 0; font-size: 1.1rem; }
.slot-sources-counter {
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
}
.slot-sources-hint { margin: 0 0 0.75rem; }
.slot-sources-banner,
.slot-sources-limit-banner { margin-bottom: 0.75rem; }
.slot-sources-empty {
  margin: 0.5rem 0 1rem;
  padding: 0.75rem 1rem;
  border: 1px dashed var(--card-border);
  border-radius: var(--radius-sm);
}
.slot-source-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.slot-source-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.slot-source-card__main {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  min-width: 0;
  flex: 1;
}
.slot-source-priority {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}
.slot-source-card__body { min-width: 0; flex: 1; }
.slot-source-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.2rem;
}
.slot-source-type-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
}
.slot-source-priority-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.slot-source-card__url {
  display: block;
  font-size: 0.9rem;
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.slot-source-card__url:hover { color: var(--accent); text-decoration: underline; }
.slot-source-card__actions {
  display: flex;
  flex-shrink: 0;
  gap: 0.25rem;
}
.slot-source-action-form { margin: 0; }
.btn.icon-btn {
  min-width: 2rem;
  padding: 0.35rem 0.5rem;
  line-height: 1;
}
.slot-sources-add-form { margin-top: 0.5rem; }
.slot-sources-dnd-hint { margin: 0 0 0.5rem; font-size: 0.9rem; }
.slot-source-drag-handle {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: grab;
  padding: 0.15rem 0.25rem;
  font-size: 1rem;
  line-height: 1;
}
.slot-source-drag-handle:active { cursor: grabbing; }
.slot-source-card.is-dragging {
  opacity: 0.55;
  border-color: var(--accent);
}
.slot-source-card.is-drag-over {
  outline: 2px dashed var(--accent);
  outline-offset: 2px;
}
.slot-source-tier-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
}
.slot-source-tier-badge--priority {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid transparent;
}
.slot-source-tier-badge--auxiliary {
  background: var(--bg);
  color: var(--text-muted);
  border: 1px solid var(--card-border);
}
.slot-source-card--auxiliary .slot-source-priority {
  background: var(--bg);
  color: var(--text-muted);
  border: 1px solid var(--card-border);
}
.slot-source-tier-toggle { white-space: nowrap; }

/* Вкладка «Стиль» — подсказки-примеры (фаза 6.4 v2) */
.slot-style-intro { margin: 0 0 1rem; }
/* Вкладка LLM — текст: ключ из копилки (фаза 6.5 v2) */
.slot-llm-text-intro { margin: 0 0 0.5rem; }
.slot-llm-copilka-link { margin: 0 0 1rem; font-size: 0.95rem; }
.slot-llm-text-block { margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border);
}
.llm-keys-counter {
  margin-left: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
}
.llm-key-field .form-label { display: flex; align-items: center; flex-wrap: wrap; gap: 0.25rem; }
.llm-key-add-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 0.5rem; }
/* ИИ-картинка опционально + чеклист 4+1 (фаза 6.6 v2) */
.slot-llm-image-intro { margin: 0 0 0.5rem; }
.slot-llm-image-hint { margin: 0 0 1rem; }
.llm-optional-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-sm);
  background: var(--surface-elevated);
  color: var(--text-muted);
  vertical-align: middle;
}
.launch-checklist-progress-all { font-size: 0.9rem; margin-left: 0.35rem; }
.launch-check-item--optional .launch-check-label { color: var(--text-muted); }
.launch-check-optional-note {
  display: block;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 0.15rem;
}
/* Вкладка «Расписание» — превью постов в неделю (фаза 6.7 v2) */
.slot-schedule-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.slot-schedule-title { margin: 0; }
.slot-schedule-windows-counter {
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
}
.slot-schedule-weekly-preview {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}
.slot-schedule-preview-hint { margin: 0 0 0.75rem; }
/* Редактор окон публикации (фаза 9.6 v2) */
.slot-schedule-limit-banner { margin-bottom: 0.75rem; }
.slot-schedule-empty {
  margin: 0.5rem 0 1rem;
  padding: 0.75rem 1rem;
  border: 1px dashed var(--card-border);
  border-radius: var(--radius-sm);
}
.slot-window-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.slot-window-card {
  padding: 0.75rem 0.85rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.slot-window-card__head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}
.slot-window-order {
  flex-shrink: 0;
  width: 1.6rem;
  height: 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}
.slot-window-card__time { flex: 1; min-width: 0; }
.slot-window-time {
  font-size: 1.15rem;
  font-weight: 600;
}
.slot-window-delete-form { margin: 0; }
.slot-window-style-form { margin: 0; }
.slot-schedule-apply-all {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
}
.slot-schedule-apply-all__title,
.slot-schedule-add-form__title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
}
.slot-schedule-add-form {
  padding: 0.85rem 1rem;
}
.slot-tab-panel[data-tab="style"] .form-field { margin-bottom: 1rem; }
.slot-tab-panel[data-tab="style"] textarea::placeholder,
.slot-tab-panel[data-tab="style"] input::placeholder {
  color: var(--text-muted);
  opacity: 0.85;
}
.slot-tab-panel { display: none; margin-bottom: 1rem; }
.slot-tab-panel.is-active { display: block; }
.slot-channel-verify-form .field-error {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: var(--danger);
}
.slot-channel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.slot-settings-form .slot-tab-panel { display: none; }
.slot-settings-form .slot-tab-panel.is-active { display: block; }
.slot-settings-save { margin-top: 1rem; }

/* Вкладки черновиков: ожидание / опубликованные (шаг 7.3) */
.drafts-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 1rem 0;
  border-bottom: 1px solid var(--border);
}

/* Баннер сбоя автопоста на странице черновиков (фаза 7.3 v2) */
.drafts-autopost-failure-banner {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--warning);
  background: rgb(202 138 4 / 12%);
  color: var(--text);
}
.drafts-autopost-failure-banner__title {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--warning);
}
.drafts-autopost-failure-banner__text {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.drafts-tab-link {
  padding: 0.45rem 0.75rem;
  color: var(--muted);
  text-decoration: none;
  border-radius: 6px 6px 0 0;
}
.drafts-tab-link:hover { color: var(--text); background: #1e293b; }
.drafts-tab-link.active {
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  border-bottom-color: var(--card);
  margin-bottom: -1px;
}
.drafts-tab-panel { display: none; margin-bottom: 1.5rem; }
.drafts-tab-panel.is-active { display: block; }
.drafts-tab-title { margin-top: 0; font-size: 1.1rem; }
.drafts-empty { color: var(--muted); }

/* Хлебные крошки и сводка страницы черновиков (фаза 7.5 v2) */
.lk-breadcrumbs { margin-bottom: 0.75rem; }
.lk-breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.lk-breadcrumbs-item { display: inline-flex; align-items: center; gap: 0.35rem; }
.lk-breadcrumbs-item:not(:last-child)::after {
  content: "→";
  color: var(--text-muted);
  pointer-events: none;
}
.lk-breadcrumbs-item a {
  color: var(--accent);
  text-decoration: none;
}
.lk-breadcrumbs-item a:hover { text-decoration: underline; }
.lk-breadcrumbs-item.is-current a {
  color: var(--text);
  font-weight: 600;
  pointer-events: auto;
}
.drafts-slot-subtitle {
  margin: -0.35rem 0 0.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.drafts-total-generated {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

/* TG-layout карточки: миниатюра слева (фаза 7.5 v2) */
.draft-card-tg-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.draft-card-tg-main {
  flex: 1;
  min-width: 0;
}
.draft-card-thumb-side {
  width: 72px;
  height: 72px;
  min-width: 72px;
  max-height: none;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}
/* Источник на карточке черновика (фаза 8.16 v2) */
.draft-card-source {
  margin: 0.5rem 0 0.75rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  background: var(--bg);
}
.draft-card-source__label {
  margin: 0 0 0.2rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.draft-card-source__title {
  margin: 0 0 0.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
}
.draft-card-source__url {
  display: inline-block;
  max-width: 100%;
  font-size: 0.8125rem;
  color: var(--accent);
  text-decoration: none;
  word-break: break-all;
}
.draft-card-source__url:hover { text-decoration: underline; }
.draft-card-source__actions { margin: 0.35rem 0 0; }
.draft-card-source-link { font-size: 0.875rem; }

/* TTL «Удалится через N дн.» на карточке (фаза 7.4 v2) */
.draft-card-ttl {
  margin: 0.35rem 0 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Карточки черновиков: превью, дата, номер (шаг 7.5) */
.draft-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.draft-card-title {
  margin: 0;
  font-size: 1.05rem;
}
.draft-card-thumb {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
}
.draft-card-preview {
  margin: 0;
  color: var(--text);
  line-height: 1.45;
  white-space: pre-wrap;
}
.draft-card-full {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.45;
}
.draft-card-meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.draft-card-meta time { font-style: normal; }
/* Модель LLM на карточке черновика (фаза 8.4 v2) */
.draft-card-model {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}
/* Сбой ИИ-картинки: CTA на карточке (фаза 8.5 v2) */
.draft-image-fail {
  margin: 0.75rem 0;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: var(--surface-muted, #f4f6f9);
  border: 1px solid var(--border, #e2e8f0);
}
.draft-image-fail-intro {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
}
.draft-image-fail-detail {
  margin: 0 0 0.5rem;
}
.draft-image-fail-form {
  margin: 0 0 0.35rem;
}
/* Ссылка «Дополнения» при лимите квоты (фаза 8.7 v2) */
.slot-quota-addons-banner {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}
.slot-quota-addons-link {
  font-weight: 600;
  margin-left: 0.25rem;
}
.slot-quota-addons-inline {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
}
/* Баннер «Квота обновилась» после полуночи МСК (фаза 8.8 v2) */
.slot-quota-refresh-banner {
  margin: 0.5rem 0 0;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.08);
  color: var(--text);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
}
.slot-quota-refresh-banner strong {
  font-weight: 600;
}
.slot-quota-reset-hint {
  margin: 0.35rem 0 0;
}
/* Модалка подтверждения генерации (фаза 8.9 v2) */
.slot-generate-confirm-message {
  margin: 0.5rem 0;
  font-size: 1rem;
}
.drafts-generate-bar {
  margin: 0.75rem 0 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}
.drafts-generate-bar .hint {
  margin: 0;
}
.extras-placeholder-card,
.extras-shop-card {
  max-width: 36rem;
  margin: 2rem auto;
}
/* Магазин «Дополнения» (фаза 8.14 v2) */
.extras-shop-subtitle {
  margin: 1.25rem 0 0.5rem;
  font-size: 1rem;
}
.extras-shop-limits {
  margin: 0.25rem 0;
}
.extras-shop-active-list {
  margin: 0.5rem 0 0 1.1rem;
  padding: 0;
  font-size: 0.875rem;
  color: var(--muted);
}
.extras-shop-balances {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
  margin: 1rem 0;
  font-size: 0.9rem;
}
.extras-shop-balances dt {
  color: var(--muted);
  font-size: 0.8rem;
}
.extras-shop-pay {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.75rem;
}
.extras-shop-pay-form {
  margin: 0;
}
.draft-card-link { margin: 0; }
.draft-card-badge { align-self: flex-start; }
.draft-card-regen { margin-top: 0.25rem; }
.draft-confirm-form { margin: 0; }
.draft-confirm-btn { width: 100%; }
.draft-confirm-blocked { margin: 0; font-size: 0.9rem; }

/* Модалка «Подтвердить» (фаза 7.6 v2, HTMX TG-preview — 7.15 v2) */
.draft-confirm-modal-tg-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 0 0 1rem;
}
.draft-confirm-modal-thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.draft-confirm-modal-preview {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  white-space: pre-wrap;
  line-height: 1.45;
  max-height: 12rem;
  overflow-y: auto;
}
.draft-stopword-highlight {
  background: #fef08a;
  color: inherit;
  padding: 0 0.1em;
  border-radius: 2px;
}
[data-theme="dark"] .draft-stopword-highlight {
  background: #854d0e;
  color: #fef08a;
}
.draft-confirm-stopwords {
  margin: 0 0 1rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: #fef9c3;
  border: 1px solid #ca8a04;
  color: #713f12;
}
[data-theme="dark"] .draft-confirm-stopwords {
  background: #422006;
  border-color: #ca8a04;
  color: #fde68a;
}
.draft-confirm-stopwords-title {
  margin: 0 0 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
}
.draft-confirm-stopwords-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0 0 0.35rem;
  padding: 0;
}
.draft-stopword-tag {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: #fde047;
  color: #713f12;
  font-size: 0.85rem;
  font-weight: 600;
}
[data-theme="dark"] .draft-stopword-tag {
  background: #854d0e;
  color: #fef08a;
}
.draft-confirm-stopwords-hint { margin: 0; font-size: 0.85rem; }
.draft-confirm-modal-form { margin: 0; }

.draft-confirm-form { margin: 0; }
.slot-quota-counters { margin: 0.5rem 0; font-size: 0.95rem; color: var(--text); font-weight: 500; }
.slot-quota-msk { margin: -0.25rem 0 0.75rem; font-size: 0.85rem; }
.slot-quota-limit { color: #c44; }

/* Шапка слота с квотами X/5, Y/2 (фаза 7.14 v2) */
.slot-page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--card-border, #e2e8f0);
}
.slot-page-header-main { flex: 1 1 12rem; min-width: 0; }
.slot-page-header-main h1 { margin: 0 0 0.25rem; }
.slot-page-header-meta { margin: 0; color: var(--text-muted, #64748b); font-size: 0.95rem; }
.slot-page-header-quotas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: stretch;
  flex: 0 1 auto;
}
.slot-quota-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 5.5rem;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius, 8px);
  border: 1px solid var(--card-border, #e2e8f0);
  background: var(--card, #fff);
  font-size: 0.85rem;
  line-height: 1.2;
}
.slot-quota-badge-value { font-weight: 600; font-size: 1rem; color: var(--text); }
.slot-quota-badge-label { font-size: 0.75rem; color: var(--text-muted, #64748b); text-align: center; }
.slot-quota-badge-exhausted {
  border-color: #fca5a5;
  background: #fef2f2;
}
.slot-quota-badge-exhausted .slot-quota-badge-value { color: #b91c1c; }
.slot-page-header-msk {
  flex: 1 0 100%;
  margin: -0.25rem 0 0;
  font-size: 0.8rem;
}
@media (max-width: 640px) {
  .slot-page-header-quotas { width: 100%; }
  .slot-quota-badge { flex: 1 1 calc(50% - 0.25rem); }
}
.draft-regen-comment { width: 100%; margin-bottom: 0.35rem; }
.draft-regen-limit { margin: 0; font-size: 0.9rem; }

/* Модалка перегенерации (фаза 7.7 v2) */
.draft-regen-modal-hint { margin: 0 0 0.75rem; }
.draft-regen-modal-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}
.draft-regen-modal-textarea {
  width: 100%;
  min-height: 6rem;
  font: inherit;
  line-height: 1.45;
  resize: vertical;
}
.draft-regen-modal-form { margin: 0; }

/* Модалка редактора: upload + TG-preview (фаза 7.8 v2) */
.draft-editor-modal-panel {
  max-width: 36rem;
  width: min(96vw, 36rem);
}
.draft-editor-modal-hint { margin: 0 0 0.75rem; }
.draft-editor-modal-post { margin: 0 0 0.35rem; }
.draft-editor-modal-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 0;
}
.draft-editor-modal-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.95rem;
}
.draft-editor-modal-textarea {
  width: 100%;
  font: inherit;
  line-height: 1.45;
  resize: vertical;
}
.draft-editor-modal-file { font: inherit; }
.draft-editor-modal-file-hint { margin-top: 0.25rem; }
.draft-editor-modal-clear {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}
.draft-editor-tg-block { margin-bottom: 0.5rem; }
.draft-editor-tg-label {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}
.draft-editor-tg-preview {
  background: #17212b;
  border-radius: 12px;
  padding: 0.75rem;
  border: 1px solid #2b3945;
}
.draft-editor-tg-img {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.65rem;
}
.draft-editor-tg-img--empty,
.draft-editor-tg-img[hidden] {
  display: none;
}
.draft-editor-tg-text {
  color: #f5f5f5;
  white-space: pre-wrap;
  line-height: 1.45;
  word-break: break-word;
  font-size: 0.95rem;
}

/* Генерация: polling HTMX (шаг 7.9; v2 — спиннер + 5 сек) */
.draft-generating-banner {
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  background: #1e3a5f;
  border: 1px solid #2563eb;
  color: #bfdbfe;
  font-size: 0.95rem;
}
.draft-generating-banner-title {
  margin: 0 0 0.5rem;
  font-weight: 600;
}
/* Степпер RSS → Текст → Картинка → Готово (фаза 8.10 v2) */
.draft-gen-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.draft-gen-step {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: #64748b;
}
.draft-gen-step-marker {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #334155;
  flex-shrink: 0;
}
.draft-gen-step--active {
  color: #93c5fd;
  font-weight: 600;
}
.draft-gen-step--active .draft-gen-step-marker {
  background: #60a5fa;
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.35);
}
.draft-gen-step--done {
  color: #86efac;
}
.draft-gen-step--done .draft-gen-step-marker {
  background: #22c55e;
}
.draft-card-generating {
  border-color: #2563eb;
  opacity: 0.95;
}
.draft-generating-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0.35rem 0;
}
.draft-generating-spinner {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid #334155;
  border-top-color: #60a5fa;
  border-radius: 50%;
  animation: draft-generating-spin 0.85s linear infinite;
}
@keyframes draft-generating-spin {
  to { transform: rotate(360deg); }
}
/* Дисклеймер перед первой публикацией (шаг 7.10) */
.draft-disclaimer { max-width: 40rem; }
.draft-disclaimer-title { margin-top: 0; }
.draft-disclaimer-intro { margin-bottom: 1rem; }
.draft-disclaimer-list {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  line-height: 1.5;
}
.draft-disclaimer-footer { margin-bottom: 1.25rem; }
.draft-disclaimer-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}
.draft-disclaimer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Баннер дисклеймера на странице черновиков (фаза 7.10 v2) */
.draft-disclaimer-banner {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: #422006;
  border: 1px solid #b45309;
  color: #fde68a;
}
.draft-disclaimer-banner-text {
  margin: 0 0 0.65rem;
  line-height: 1.45;
}
.draft-disclaimer-banner-link {
  margin-top: 0.15rem;
}
.draft-disclaimer-confirm-link {
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.draft-generating-status {
  margin: 0;
  font-weight: 600;
  color: #93c5fd;
}

/* Редактор черновика: текст + картинка (шаг 7.8) */
.draft-editor { max-width: 42rem; }
.draft-editor-title { margin-top: 0; }
.draft-editor-hint { margin-bottom: 1rem; }
.draft-editor-form { display: flex; flex-direction: column; gap: 1rem; }
.draft-editor-label { display: flex; flex-direction: column; gap: 0.35rem; }
.draft-editor-text { width: 100%; font: inherit; line-height: 1.45; }
.draft-editor-image-block {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  margin: 0;
}
.draft-editor-image-block legend { padding: 0 0.35rem; }
.draft-editor-figure { margin: 0 0 1rem; }
.draft-editor-preview-img {
  max-width: 100%;
  max-height: 240px;
  border-radius: 6px;
  border: 1px solid var(--border);
}
.draft-editor-image-input { width: 100%; }
.draft-editor-clear {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.95rem;
}
.draft-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.draft-card-published .draft-card-full { flex: 1; }
.draft-published-header { margin-bottom: 0.35rem; }
.draft-published-number {
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.draft-published-date { margin-bottom: 0.75rem; }
.draft-published-tg-cta {
  margin: 0 0 0.85rem;
  text-decoration: none;
  display: inline-block;
}
.draft-published-body { margin-bottom: 0.75rem; }
.draft-published-details {
  border: none;
  margin: 0;
  padding: 0;
}
.draft-published-details-summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.draft-published-details-summary::-webkit-details-marker {
  display: none;
}
.draft-published-preview {
  color: var(--muted);
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}
.draft-published-expand-label {
  color: #60a5fa;
  font-weight: 600;
  font-size: 0.9rem;
}
.draft-published-details[open] .draft-published-preview {
  display: none;
}
.draft-published-details[open] .draft-published-expand-label {
  display: none;
}
.draft-published-text {
  white-space: pre-wrap;
  line-height: 1.5;
  word-break: break-word;
  margin-top: 0.5rem;
}
.draft-published-no-link { margin: 0 0 0.75rem; }

/* Режим публикации: карточки confirm / auto (шаг 6.12, v2) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.slot-publication-picker-intro { margin-bottom: 0.75rem; }
.publication-mode-picker {
  border: none;
  margin: 0 0 0.75rem;
  padding: 0;
}
.publication-mode-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .publication-mode-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.pub-mode-card {
  display: block;
  padding: 0.85rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: var(--card);
  transition: border-color 0.15s ease;
}
.pub-mode-card:hover { border-color: #475569; }
.pub-mode-card.is-selected { border-color: var(--accent); }
.pub-mode-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.pub-mode-title { display: block; font-weight: 600; margin-bottom: 0.25rem; }
.pub-mode-desc {
  display: block;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}
.pub-mode-outcome {
  display: block;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text);
}
.pub-mode-outcome strong { color: var(--accent); font-weight: 600; }
.pub-mode-risk-line {
  margin: 0 0 1rem;
  padding: 0.5rem 0.65rem;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text-muted);
}
.pub-mode-risky.is-selected { border-color: #b45309; }

/* Режим без внешних источников (шаг 6.13, toggle + textarea — 6.13 v2) */
.no-external-block {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
}
.no-external-block.is-active,
.no-external-block:has(.no-external-switch-input:checked) {
  border-color: var(--accent);
  border-style: solid;
}
.no-external-block-intro { margin: 0 0 0.65rem; }
.no-external-switch {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  margin-bottom: 0.35rem;
}
.no-external-switch-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.no-external-switch-ui {
  width: 2.5rem;
  height: 1.35rem;
  border-radius: 999px;
  background: #334155;
  position: relative;
  flex-shrink: 0;
  transition: background 0.15s ease;
}
.no-external-switch-ui::after {
  content: "";
  position: absolute;
  top: 0.15rem;
  left: 0.15rem;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: #f8fafc;
  transition: transform 0.15s ease;
}
.no-external-switch-input:checked + .no-external-switch-ui {
  background: var(--accent);
}
.no-external-switch-input:checked + .no-external-switch-ui::after {
  transform: translateX(1.15rem);
}
.no-external-switch-text { font-weight: 600; font-size: 0.95rem; }
.no-external-mode-hint { margin: 0 0 0.5rem; }
.no-external-manual-wrap {
  display: none;
  margin-top: 0.5rem;
}
.no-external-block.is-active .no-external-manual-wrap,
.no-external-block:has(.no-external-switch-input:checked) .no-external-manual-wrap {
  display: block;
}
.no-external-disabled-hint {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.no-external-block.is-active .no-external-disabled-hint,
.no-external-block:has(.no-external-switch-input:checked) .no-external-disabled-hint {
  display: none;
}
.no-external-manual-field textarea {
  width: 100%;
  min-height: 6rem;
}
.no-external-char-counter {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: right;
}

/* Чеклист перед «Запуск» (шаг 6.14, v2 — progressbar) */
.launch-checklist-block {
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
}
.launch-checklist-progress-wrap { margin: 0 0 0.85rem; }
.launch-checklist-progress { margin: 0 0 0.45rem; color: var(--muted); }
.launch-checklist-progress-label { margin-right: 0.15rem; }
.launch-checklist-progress-value { color: var(--text); }
.launch-checklist-progress-bar {
  height: 0.35rem;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}
.launch-checklist-progress-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4ade80, #86efac);
  transition: width 0.25s ease;
}
.launch-checklist-error { margin: 0 0 0.75rem; }
.launch-check-optional-badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 4px;
}
.launch-checklist-hint { margin-top: 0.5rem; }
.launch-checklist { list-style: none; margin: 0 0 1rem; padding: 0; }
.launch-check-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}
.launch-check-item:last-child { border-bottom: none; }
.launch-check-item.is-done .launch-check-label { color: #86efac; }
.launch-check-item.is-pending .launch-check-label { color: var(--text); }
.launch-check-icon { width: 1.25rem; font-weight: 700; }
.launch-check-item.is-done .launch-check-icon { color: #86efac; }
.launch-check-item.is-pending .launch-check-icon { color: var(--muted); }
.launch-form { margin-top: 0.75rem; }
.launch-form .btn:disabled { opacity: 0.45; cursor: not-allowed; }
/* Кнопка «Запуск»: trial / reserve (шаг 6.15, v2 — бейдж и подпись кнопки) */
.launch-preview-card {
  margin: 0.75rem 0;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
}
.launch-preview-card--trial {
  border-color: rgba(74, 222, 128, 0.45);
  background: rgba(74, 222, 128, 0.08);
}
.launch-preview-card--reserve {
  border-color: rgba(96, 165, 250, 0.45);
  background: rgba(96, 165, 250, 0.08);
}
.launch-preview-card--no_days {
  border-color: rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.06);
}
.launch-mode-badge {
  display: inline-block;
  margin-bottom: 0.45rem;
  padding: 0.15rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: 4px;
}
.launch-mode-badge--trial {
  color: #86efac;
  background: rgba(74, 222, 128, 0.15);
  border: 1px solid rgba(74, 222, 128, 0.35);
}
.launch-mode-badge--reserve {
  color: #93c5fd;
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.35);
}
.launch-preview {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.45;
}
.launch-btn {
  font-weight: 600;
  min-width: 12rem;
}
.launch-btn--trial:not(:disabled) {
  background: linear-gradient(180deg, #4ade80, #22c55e);
  border-color: #16a34a;
  color: #052e16;
}
.launch-btn--reserve:not(:disabled) {
  background: linear-gradient(180deg, #60a5fa, #3b82f6);
  border-color: #2563eb;
  color: #eff6ff;
}
.launch-success { font-weight: 500; }
.launch-billing-warn { color: #fbbf24; }
.launch-ready-hint { color: #86efac; }
/* Пауза при истечении периода (шаг 6.16, v2 — бейдж trial/period/bad_key) */
.slot-pause-banner {
  margin: 1rem 0 1.25rem;
  padding: 1rem 1.25rem;
  border: 1px solid #7f1d1d;
  border-radius: 8px;
  background: rgba(127, 29, 29, 0.2);
}
.slot-pause-banner--trial {
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.08);
}
.slot-pause-banner--period {
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(127, 29, 29, 0.22);
}
.slot-pause-banner--bad_key {
  border-color: rgba(251, 146, 60, 0.5);
  background: rgba(124, 45, 18, 0.2);
}
.slot-pause-banner-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
}
.slot-pause-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: 4px;
}
.slot-pause-badge--trial {
  color: #fde68a;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.35);
}
.slot-pause-badge--period {
  color: #fca5a5;
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
}
.slot-pause-badge--bad_key {
  color: #fdba74;
  background: rgba(251, 146, 60, 0.12);
  border: 1px solid rgba(251, 146, 60, 0.35);
}
.slot-pause-period-end { font-size: 0.85rem; }
.slot-pause-title { margin: 0 0 0.5rem; color: #fca5a5; font-size: 1.1rem; }
.slot-pause-banner--trial .slot-pause-title { color: #fde68a; }
.slot-pause-message { margin: 0 0 0.65rem; color: var(--text); line-height: 1.45; }
.slot-pause-still-list {
  margin: 0 0 0.65rem;
  padding-left: 1.15rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.slot-pause-still-list li { margin: 0.2rem 0; }
.slot-pause-settings-hint { color: var(--muted); }
.slot-pause-extend-cta { color: #fbbf24; font-weight: 500; }
.slot-pause-extend-link { margin-top: 0.35rem; }
.slot-status-text { text-transform: capitalize; }
.steps { line-height: 2; }

/* Landing / (фаза 1.8) */
.landing { max-width: 720px; margin: 0 auto; }
.landing-hero {
  text-align: center;
  padding: 2.5rem 0 2rem;
}
.landing-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.landing-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
}
.landing-lead {
  margin: 0 auto 1.5rem;
  max-width: 36rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}
.landing-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 0 0 1rem;
}
.landing-ref-warn {
  max-width: 40rem;
  margin: 0 auto 1rem;
  padding: 0.75rem 1rem;
  color: var(--warning);
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 0.9rem;
}

.landing-trial-hint {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.landing-section {
  margin: 2.5rem 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--card-border);
}
.landing-section h2 {
  margin: 0 0 1.25rem;
  font-size: 1.35rem;
  font-weight: 600;
}
.landing-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .landing-steps { grid-template-columns: 1fr 1fr; }
}
.landing-step {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
}
.landing-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}
.landing-step h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}
.landing-step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.landing-price-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
}
.landing-price-value {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.landing-price-value span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}
.landing-price-trial {
  margin: 1rem 0;
  padding: 0.75rem;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}
.landing-faq-item {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1rem;
  margin-bottom: 0.5rem;
  background: var(--card);
}
.landing-faq-item summary {
  cursor: pointer;
  font-weight: 600;
}
.landing-faq-item p {
  margin: 0.5rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}
