/* ===========================================================
   ikigAI АвтоДиректолог — Mini App
   Биржевая палитра (trading-terminal aesthetic)
   =========================================================== */

:root {
  /* Базовые цвета — тёмная биржевая тема */
  --bg:            #0B0E11;   /* почти чёрный фон */
  --bg-elevated:   #151A1F;   /* приподнятые карточки */
  --bg-card:       #1B2128;   /* карточки */
  --bg-card-hover: #222A33;
  --border:        #2A323C;   /* тонкие границы */

  /* Акценты */
  --accent:        #0ECB81;   /* биржевой зелёный (рост / деньги) */
  --accent-dim:    #0a9e64;
  --accent-glow:   rgba(14, 203, 129, 0.18);
  --danger:        #F6465D;   /* красный (как «падение») */
  --gold:          #F0B90B;   /* золото-акцент */

  /* Текст */
  --text:          #EAECEF;   /* основной */
  --text-muted:    #848E9C;   /* приглушённый */
  --text-dim:      #5E6673;   /* совсем тусклый */

  /* Размеры */
  --radius:        16px;
  --radius-sm:     12px;
  --gap:           14px;

  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Roboto',
          'Helvetica Neue', Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- Корневой контейнер приложения ---- */
#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* ---- Экран (общий) ---- */
.screen {
  display: none;
  flex-direction: column;
  flex: 1;
  padding: 24px 20px 110px;
  animation: fadeIn 0.32s ease;
}
.screen.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   WELCOME SCREEN
   ========================================================= */

/* Брендовая шапка */
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 30px;
}
.brand__logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), #07a866);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 17px;
  color: #04130C;
  box-shadow: 0 0 18px var(--accent-glow);
}
.brand__name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.brand__name b {
  color: var(--accent);
  font-weight: 700;
}

/* Главный экран приветствия */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hero__badge {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(14,203,129,0.25);
  padding: 5px 11px;
  border-radius: 100px;
  margin-bottom: 18px;
  letter-spacing: 0.3px;
}

.hero__title {
  font-size: 27px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin-bottom: 10px;
}
.hero__title .accent {
  color: var(--accent);
}

.hero__subtitle {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Карточка "что делает система" */
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px 8px;
  margin-bottom: 18px;
}
.feature-card__head {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 14px;
}
.feature-list {
  list-style: none;
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}
.feature-item:last-child {
  border-bottom: none;
}
.feature-item__icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 9px;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.feature-item__text {
  font-size: 14.5px;
  padding-top: 5px;
  color: var(--text);
}

/* Плашка "без опыта / без директолога" */
.hero__tagline {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 8px;
}
.tag {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 6px 11px;
  border-radius: 100px;
}
.tag::before {
  content: "✓ ";
  color: var(--accent);
  font-weight: 700;
}

/* =========================================================
   НИЖНЯЯ ПАНЕЛЬ С КНОПКОЙ (фиксированная)
   ========================================================= */
.bottom-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 480px;
  padding: 14px 20px calc(18px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 62%, transparent);
  z-index: 20;
}

/* Основная кнопка (CTA) */
.btn {
  width: 100%;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  padding: 16px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:active {
  transform: scale(0.985);
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: #04130C;
  box-shadow: 0 6px 24px var(--accent-glow);
}
.btn--primary:active {
  box-shadow: 0 3px 14px var(--accent-glow);
}

.btn--secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* Группа кнопок */
.btn-row {
  display: flex;
  gap: 10px;
}
.btn-row .btn {
  flex: 1;
}
.btn + .btn {
  margin-top: 10px;
}

/* =========================================================
   ЭКРАН 1: КАНАЛ — ввод ссылки
   ========================================================= */
.screen__title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}
.screen__subtitle {
  font-size: 14.5px;
  color: var(--text-muted);
  margin-bottom: 22px;
}

/* Поле ввода */
.input-wrap {
  position: relative;
  margin-bottom: 14px;
}
.input {
  width: 100%;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  padding: 15px 16px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.input::placeholder { color: var(--text-dim); }
.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.input--error {
  border-color: var(--danger);
}

/* Подсказка с примерами */
.examples {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
}
.examples__label {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.examples__item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 0;
  font-size: 14px;
  color: var(--text-muted);
}
.examples__item code {
  font-family: 'SF Mono', ui-monospace, Menlo, monospace;
  font-size: 13px;
  color: var(--text);
  background: var(--bg-card);
  padding: 2px 7px;
  border-radius: 6px;
}
.examples__platform {
  font-size: 16px;
}

.field-error {
  font-size: 13px;
  color: var(--danger);
  margin-top: 8px;
  display: none;
}
.field-error.visible { display: block; }

/* =========================================================
   ЭКРАН: ЛОАДЕР АНАЛИЗА
   ========================================================= */
.loader-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 60px;
}
.spinner {
  width: 56px;
  height: 56px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
  margin-bottom: 22px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loader-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 22px;
}
.loader-steps {
  list-style: none;
  text-align: left;
}
.loader-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-dim);
  padding: 6px 0;
  transition: color 0.3s ease;
}
.loader-step__dot {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
}
.loader-step.done {
  color: var(--text);
}
.loader-step.done .loader-step__dot {
  background: var(--accent);
  border-color: var(--accent);
  color: #04130C;
}
.loader-step.active {
  color: var(--accent);
}

/* =========================================================
   ЭКРАН: ПОДТВЕРЖДЕНИЕ ТЕМАТИКИ
   ========================================================= */
.result-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  margin-bottom: 18px;
}
.result-card__label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 14px;
}
.result-card__emoji {
  font-size: 44px;
  margin-bottom: 10px;
}
.result-card__value {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.3px;
}
.confirm-question {
  text-align: center;
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

/* =========================================================
   ЭКРАН: РУЧНОЙ ВЫБОР ТЕМАТИКИ — сетка карточек
   ========================================================= */
.topic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.topic-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}
.topic-card:active {
  transform: scale(0.97);
}
.topic-card.selected {
  border-color: var(--accent);
  background: var(--accent-glow);
}
.topic-card__emoji {
  font-size: 26px;
}
.topic-card__name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

/* =========================================================
   ЭКРАН: ТЕМАТИКА НЕДОСТУПНА
   ========================================================= */
.empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 60px;
}
.empty-state__emoji {
  font-size: 56px;
  margin-bottom: 16px;
}
.empty-state__title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
}
.empty-state__text {
  font-size: 14.5px;
  color: var(--text-muted);
  max-width: 300px;
}

/* Bottom bar — спрятанный по умолчанию, показывается роутером */
.bottom-bar { display: none; }
.bottom-bar.active { display: block; }

/* Информационная плашка (например «канал закрытый») */
.info-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  background: rgba(240, 185, 11, 0.10);
  border: 1px solid rgba(240, 185, 11, 0.30);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.45;
}
.info-note__icon { font-size: 15px; flex-shrink: 0; }

/* =========================================================
   ЭКРАН GEO
   ========================================================= */
.result-card__note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Подсказка с лампочкой */
.hint {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-muted);
  padding: 0 4px;
}
.hint__icon { flex-shrink: 0; }

/* Список вариантов гео */
.geo-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.geo-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 15px 16px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}
.geo-item:active {
  transform: scale(0.98);
}
.geo-item.selected {
  border-color: var(--accent);
  background: var(--accent-glow);
}
.geo-item__emoji {
  font-size: 22px;
  flex-shrink: 0;
}
.geo-item__body {
  flex: 1;
}
.geo-item__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.geo-item__type {
  font-size: 12.5px;
  color: var(--text-dim);
  margin-top: 1px;
}
.geo-item__arrow {
  color: var(--text-dim);
  font-size: 18px;
}

/* =========================================================
   ЭКРАН ЦА
   ========================================================= */
/* Карточка рекомендации (пол + возраст) */
.reco-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 18px;
  margin-bottom: 16px;
}
.reco-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}
.reco-row:last-child { border-bottom: none; }
.reco-row__emoji { font-size: 26px; flex-shrink: 0; }
.reco-row__label {
  font-size: 11.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 2px;
}
.reco-row__value {
  font-size: 17px;
  font-weight: 700;
  color: var(--accent);
}

/* Чекбокс-строка */
.check-row {
  display: flex;
  align-items: center;
  gap: 13px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 15px 16px;
  cursor: pointer;
  margin-bottom: 10px;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}
.check-row:active { transform: scale(0.99); }
.check-row.checked {
  border-color: var(--accent);
  background: var(--accent-glow);
}
.check-row__box {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 7px;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.check-row.checked .check-row__box {
  background: var(--accent);
  border-color: var(--accent);
  color: #04130C;
}
.check-row__label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

/* =========================================================
   ЭКРАН МАТЕРИАЛЫ
   ========================================================= */
.upload-zone {
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 26px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  margin-bottom: 14px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.upload-zone:active {
  background: var(--bg-card);
  border-color: var(--accent);
}
.upload-zone__icon { font-size: 30px; }
.upload-zone__text {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
}
.upload-zone__hint {
  font-size: 12.5px;
  color: var(--text-dim);
}

.file-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.file-item {
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  animation: fadeIn 0.25s ease;
}
.file-item__icon { font-size: 20px; flex-shrink: 0; }
.file-item__body { flex: 1; min-width: 0; }
.file-item__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-item__size {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 1px;
}
.file-item__remove {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 7px;
  background: var(--bg-elevated);
  border: none;
  color: var(--text-muted);
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.file-item__remove:active {
  background: var(--danger);
  color: #fff;
}

/* =========================================================
   ЭКРАН ПОРТРЕТ ЦА
   ========================================================= */
.portrait-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
}
.portrait-card__head {
  font-size: 19px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.2px;
  margin-bottom: 16px;
}
.portrait-section + .portrait-section {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.portrait-section__label {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.portrait-list { list-style: none; }
.portrait-list li {
  font-size: 14.5px;
  color: var(--text);
  padding: 4px 0 4px 18px;
  position: relative;
  line-height: 1.4;
}
.portrait-list li::before {
  content: '•';
  color: var(--accent);
  font-weight: 800;
  position: absolute;
  left: 3px;
}

/* Textarea */
.textarea {
  width: 100%;
  min-height: 120px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  padding: 14px 16px;
  resize: vertical;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.textarea::placeholder { color: var(--text-dim); }
.textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* =========================================================
   ВЫБОР РЕЖИМА (auto / manual)
   ========================================================= */
.mode-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 14px;
  transition: border-color 0.15s ease;
}
.mode-card__head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 12px;
}
.mode-card__icon { font-size: 26px; }
.mode-card__title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.2px;
}
.mode-card__body {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.mode-card__list {
  list-style: none;
  margin-bottom: 12px;
}
.mode-card__list li {
  font-size: 14px;
  color: var(--text);
  padding: 3px 0 3px 18px;
  position: relative;
  line-height: 1.4;
}
.mode-card__list li::before {
  content: '•';
  color: var(--accent);
  font-weight: 800;
  position: absolute;
  left: 4px;
}
.mode-card__footer {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.45;
}
.mode-card__cta { width: 100%; }

/* =========================================================
   БЮДЖЕТ — сегментированный переключатель
   ========================================================= */
.input--budget {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.3px;
}
.segmented {
  display: flex;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px;
  gap: 4px;
}
.seg {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  padding: 11px 10px;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.seg.active {
  background: var(--accent);
  color: #04130C;
  font-weight: 800;
}
.seg:active { transform: scale(0.985); }

/* =========================================================
   ЭКРАН «ВСЁ ГОТОВО»
   ========================================================= */
.ready-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  margin-bottom: 9px;
}
.ready-section__head {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
  font-weight: 600;
}
.ready-section__value {
  font-size: 15px;
  color: var(--text);
  font-weight: 600;
  line-height: 1.4;
}
.ready-section__list {
  list-style: none;
  margin-top: 2px;
}
.ready-section__list li {
  font-size: 14px;
  padding: 3px 0 3px 18px;
  position: relative;
  color: var(--text);
}
.ready-section__list li::before {
  content: '•';
  color: var(--accent);
  font-weight: 800;
  position: absolute;
  left: 4px;
}

/* =========================================================
   УСПЕХ — большой зелёный чек
   ========================================================= */
.success-hero {
  text-align: center;
  margin: 8px 0 22px;
}
.success-hero__check {
  width: 88px;
  height: 88px;
  margin: 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
  font-weight: 900;
  color: #04130C;
  box-shadow: 0 0 32px var(--accent-glow);
}

/* =========================================================
   РУЧНОЙ РЕЖИМ
   ========================================================= */

/* Бейдж "рекомендуем" в чекбокс-строке */
.check-row__label {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.check-row__badge {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(14,203,129,0.25);
  padding: 3px 8px;
  border-radius: 100px;
}

/* Чипсы ключевых запросов */
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 14px;
  font-size: 13.5px;
  color: var(--text);
  font-weight: 500;
}

/* Карточки объявлений */
.ad-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 15px 16px;
  margin-bottom: 10px;
}
.ad-card__num {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.ad-card__title {
  font-size: 16px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 6px;
  line-height: 1.3;
}
.ad-card__text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.45;
}

/* Сетка изображений */
.img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.img-card {
  aspect-ratio: 1 / 1;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.1s ease;
}
.img-card:active { transform: scale(0.98); }
.img-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.img-card__bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  opacity: 0.85;
}
.img-card__label {
  position: absolute;
  bottom: 6px;
  left: 8px;
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 600;
  letter-spacing: 0.3px;
  background: rgba(11,14,17,0.7);
  padding: 3px 7px;
  border-radius: 6px;
}
.img-card.selected .img-card__label {
  color: var(--accent);
  background: rgba(14,203,129,0.15);
}
.img-card__check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #04130C;
  display: none;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}
.img-card.selected .img-card__check { display: flex; }

/* =========================================================
   ВЫБОР АККАУНТА
   ========================================================= */
.account-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  cursor: pointer;
  margin-bottom: 10px;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.account-card:active { transform: scale(0.99); }
.account-card:hover { border-color: var(--accent-dim); }
.account-card__icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  display: flex; align-items: center; justify-content: center;
  color: #04130C;
  font-size: 19px;
  font-weight: 800;
}
.account-card__body { flex: 1; min-width: 0; }
.account-card__login {
  font-size: 15px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.account-card__meta {
  font-size: 12px; color: var(--text-dim);
  margin-top: 3px;
}
.account-card__arrow {
  color: var(--text-dim);
  font-size: 22px;
  flex-shrink: 0;
}
