/* ============================================================
   Classic-Invest — оформление

   Структура и приём (все цвета — в одном блоке :root, дальше
   по файлу только имена) взяты у SWAMP Wrap Bridge. Изменён
   только сам блок цветов: акцент сдвинут холоднее, в синеву,
   чтобы интерфейс стейк-сервиса отличался от моста, оставаясь
   узнаваемо той же экосистемой.
   ============================================================ */

:root {

  /* ── 1. ФОН ──────────────────────────────────────────────── */
  --bg:            #0d1116;
  --surface:       #141a22;
  --surface-2:     #1b222c;
  --surface-3:     #252e3a;

  /* ── 2. ЛИНИИ ────────────────────────────────────────────── */
  --line:          #232c38;
  --line-2:        #2f3a48;
  --line-soft:     #1a212a;

  /* ── 3. ТЕКСТ ────────────────────────────────────────────── */
  --text:          #c7ccd2;
  --text-bright:   #e3e8ee;
  --text-muted:    #929aa2;
  --text-dim:      #616a72;
  --text-faint:    #4b535c;

  /* ── 4. АКЦЕНТ — холоднее моста (#5f9ea0), сдвинут в синеву ── */
  --accent:        #3d8fb0;
  --accent-hover:  #4fa3c4;
  --accent-press:  #327692;
  --accent-link:   #6bb6d1;
  --accent-soft:   #9ecfe0;
  --accent-wash:   #10232c;
  --accent-wash-2: #14303c;
  --on-accent:     #0d1116;

  --logo-color:    #cfe4ee;

  /* ── 5. ЦВЕТ КАК ЯЗЫК — то же значение, что и на мосту,
     менять нельзя без разбора (см. комментарий в style.css моста) ── */
  --hold-line:     #8a7433; --hold-text: #e6cf8a; --hold-mark: #c9a94a;
  --hold-bg:       #241f10; --hold-glow: 201, 169, 74;

  --work-line:     #5c7635; --work-text: #cfe0a4; --work-mark: #9dbe5c;
  --work-bg:       #1a2212; --work-glow: 157, 190, 92;

  --done-line:     #2c5138; --done-text: #a7d8b4; --done-fill: #3f9d5c;
  --done-bg:       #14261a;

  --stop-line:     #5a2a2a; --stop-text: #f0a0a0; --stop-mark: #8a3030;
  --stop-bg:       #2a1414;

  --warn-text:     #c9a94a;

  /* ── 6. РАЗМЕРЫ ──────────────────────────────────────────── */
  --backing-size:  20px;
  --radius:        14px;
  --radius-sm:     10px;
  --radius-xs:     8px;
  --page-width:    680px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100vh; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

a { color: var(--accent-link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Шапка ───────────────────────────────────────────────── */

.header-wrap {
  position: sticky; top: 0; z-index: 200;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 20px; position: relative; gap: 12px;
}
.header-left  { display: flex; align-items: center; gap: 12px; }
.header-right { display: flex; align-items: center; gap: 10px; }

.header-logo-img  { width: 40px; height: 40px; border-radius: var(--radius-xs);
                    object-fit: contain; display: block; }
.header-logo-link { display: flex; align-items: center; line-height: 0; }
.header-logo-link:hover { opacity: .85; }
/* Название — в две строки (Swampcoin / Classic Invest), чтобы не
   забирать ширину шапки на узких экранах. Высота обеих строк вместе
   близка к прежней однострочной надписи, но по горизонтали компактнее. */
.header-logo-text {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  line-height: 1.15; white-space: nowrap;
}
.header-logo-line1 {
  font-size: 10px; font-weight: 500; color: var(--text-muted);
  letter-spacing: .5px; text-transform: uppercase; text-align: center;
}
.header-logo-line2 {
  font-size: 15px; font-weight: 700; color: var(--logo-color);
  letter-spacing: .3px; text-align: center;
}

.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-dim); font-size: 13px; white-space: nowrap;
}
.back-link:hover { color: var(--accent-soft); text-decoration: none; }
.back-arrow { font-size: 15px; line-height: 1; }

/* Выход в экосистему. Овальная окантовка, серая и еле заметная. */
.eco-pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 5px 14px; border-radius: 20px;
  border: 1px solid var(--line); background: transparent;
  color: var(--text-muted); font-size: 12px; font-weight: 500;
  white-space: nowrap; transition: all .18s;
}
.eco-pill:hover { border-color: var(--line-2); color: var(--text); text-decoration: none; }

.nav-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  padding: 5px 12px; border-radius: 20px;
  border: 1px solid var(--line-2); background: var(--surface-2);
  color: var(--text-muted); font-size: 12px; font-weight: 500;
  cursor: pointer; white-space: nowrap; transition: all .18s;
  font-family: inherit; text-align: center;
}
.nav-pill:hover { border-color: var(--accent); color: var(--accent-soft); background: var(--accent-wash); }

/* ── Основа страницы ─────────────────────────────────────── */

.container { max-width: var(--page-width); margin: 0 auto; padding: 24px 16px 40px; }

.page-title { font-size: 22px; font-weight: 600; color: var(--text-bright);
              margin-bottom: 6px; text-align: center; }
.page-sub   { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; text-align: center; }
.guarantee-highlight { color: var(--accent-soft); font-weight: 700; }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px; margin-bottom: 16px;
}
.card-title { font-size: 15px; font-weight: 600; color: var(--text-bright);
              margin-bottom: 14px; text-align: center; }

/* ── Спокойные сообщения ─────────────────────────────────── */

.notice {
  border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 16px;
  font-size: 14px; text-align: center;
}
.notice-quiet { background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text-muted); }
.notice-info  { background: var(--accent-wash); border: 1px solid var(--accent); color: var(--accent-soft); }
.notice-stop  { background: var(--stop-bg); border: 1px solid var(--stop-line); color: var(--stop-text); }
.notice-done  { background: var(--done-bg); border: 1px solid var(--done-line); color: var(--done-text); }
/* Предупреждение — не отказ и не ошибка, тот же жёлто-коричневый язык,
   что и "ждём" на шаге заявки (--hold-*). Не красный: пользователь ничего
   не нарушил, ему просто нужно ещё раз попробовать/пополнить адрес. */
.notice-warn  { background: var(--hold-bg); border: 1px solid var(--hold-line); color: var(--hold-text); }
.notice-warn strong { color: var(--hold-mark); background: rgba(201,169,74,.15);
                      padding: 1px 6px; border-radius: 4px; }

/* Крупное отображение адреса, который сейчас регистрируется — для
   справки над блоком с суммой/адресом для отправки. */
.reg-address-highlight { text-align: center; margin-bottom: 16px; }
.reg-address-highlight .label { font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.reg-address-highlight .value {
  font-family: ui-monospace, Menlo, monospace; font-size: 19px; font-weight: 700;
  color: var(--done-text); word-break: break-all;
}

/* ── Статус заявки на регистрацию (живое обновление) ────────── */
.reg-countdown {
  font-family: ui-monospace, Menlo, monospace; font-size: 20px; font-weight: 700;
  color: var(--accent-soft); text-align: center; margin: 10px 0;
}
.reg-status-line {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 13px; color: var(--text-muted); margin-top: 10px;
}
.reg-status-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--hold-mark);
  animation: breathe-dot 1.6s ease-in-out infinite;
}
.reg-status-line.done .reg-status-dot { background: var(--done-fill); animation: none; }

.reg-done-title {
  font-size: 20px; font-weight: 700; color: var(--done-text);
  text-align: center; margin-bottom: 14px;
}
.reg-done-address {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-bottom: 14px; flex-wrap: wrap;
}
.reg-done-address .value {
  font-family: ui-monospace, Menlo, monospace; font-size: 15px;
  color: var(--text-bright); word-break: break-all;
}
.reg-done-check {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--done-fill); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}
.reg-done-note { font-size: 13px; color: var(--text-muted); text-align: center; }
.reg-status-line.expired .reg-status-dot { background: var(--stop-mark); animation: none; }
@keyframes breathe-dot {
  0%, 100% { opacity: .4; } 50% { opacity: 1; }
}
.copybox-btn {
  flex: none; background: var(--surface-3); color: var(--text);
  border: 1px solid var(--line-2); border-radius: var(--radius-xs);
  padding: 8px 14px; font-size: 13px; cursor: pointer; font-family: inherit;
}
.copybox-btn:hover { background: var(--line-2); }
.site-notice  { background: var(--accent-wash); border-bottom: 1px solid var(--line-2);
                color: var(--accent-soft); padding: 10px 20px; font-size: 14px; text-align: center; }

.notice ul { text-align: left; display: inline-block; margin: 8px auto 0; padding-left: 18px; }

/* ── Поля и кнопки ───────────────────────────────────────── */

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.form-hint { font-size: 12px; color: var(--text-dim); margin-top: 5px; }
.form-hint-center { text-align: center; }

.form-input, .form-select {
  width: 100%; padding: 12px 14px;
  background: var(--surface-2); border: 1px solid var(--line-2);
  border-radius: var(--radius-xs);
  color: var(--text-bright); font-size: 15px; outline: none;
  font-family: inherit; transition: border .2s;
}
.form-input:focus, .form-select:focus { border-color: var(--accent); }

.captcha-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.captcha-row .h-captcha { flex: none; }

/* ── Калькулятор дохода — сумма слева, доход справа крупно зелёным ── */
.calc-row { display: flex; gap: 16px; margin-bottom: 16px; }
.calc-col { flex: 1; min-width: 0; }
.calc-col label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.calc-income-value {
  font-family: ui-monospace, Menlo, monospace; font-size: 26px; font-weight: 700;
  color: var(--done-text); padding: 12px 14px; background: var(--surface-2);
  border: 1px solid var(--line-2); border-radius: var(--radius-xs);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.calc-rate-hint { font-size: 12px; color: var(--text-dim); margin-top: 5px; }

.calc-slider {
  width: 100%; -webkit-appearance: none; appearance: none;
  height: 6px; border-radius: 3px; background: var(--surface-3);
  outline: none; margin: 8px 0 4px;
}
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); cursor: pointer; border: 2px solid var(--on-accent);
}
.calc-slider::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); cursor: pointer; border: 2px solid var(--on-accent);
}
/* Метки под ползунком — не flex space-between: при разной длине текста
   ("10" короче "300 000") это визуально смещает среднюю метку от
   истинного центра дорожки. Вместо этого — абсолютное позиционирование:
   средняя метка ставится ровно на 50% с компенсацией собственной ширины
   (translateX(-50%)), так её центр всегда совпадает с центром дорожки,
   где и стоит ручка при среднем значении. */
.calc-slider-labels {
  position: relative;
  height: 14px;
  font-size: 11px;
  color: var(--text-dim);
}
.calc-slider-labels span:nth-child(1) { position: absolute; left: 0; }
.calc-slider-labels span:nth-child(2) { position: absolute; left: 50%; transform: translateX(-50%); }
.calc-slider-labels span:nth-child(3) { position: absolute; right: 0; }

@media (max-width: 480px) {
  .calc-row { flex-direction: column; }
  .calc-income-value { font-size: 22px; }
}

.btn-primary {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; background: var(--accent); color: var(--on-accent); border: none;
  border-radius: var(--radius-sm); padding: 14px 24px; font-size: 16px;
  font-weight: 600; cursor: pointer; font-family: inherit;
  text-align: center; line-height: 1.3; transition: background .2s;
}
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn-primary:active:not(:disabled) { background: var(--accent-press); }
.btn-primary:disabled { background: var(--surface-3); color: var(--text-dim); cursor: not-allowed; }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--surface-3); color: var(--text); border: 1px solid var(--line-2);
  border-radius: var(--radius-xs); padding: 10px 18px; font-size: 14px;
  cursor: pointer; font-family: inherit; text-align: center; line-height: 1.3;
}
.btn-secondary:hover { background: var(--line-2); }

.btn-outline {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; background: transparent; color: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm); padding: 14px 24px; font-size: 16px;
  font-weight: 600; cursor: pointer; font-family: inherit;
  text-align: center; line-height: 1.3; transition: background .2s;
}
.btn-outline:hover:not(:disabled) { background: var(--accent-wash); }
.btn-outline:disabled { border-color: var(--line-2); color: var(--text-dim); cursor: not-allowed; }

/* ── Длинные строки: адреса и хеши ───────────────────────── */

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px; word-break: break-all; overflow-wrap: anywhere;
  line-height: 1.5; text-align: left;
}

.copybox {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--surface-2); border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); padding: 14px;
}
.copybox .mono { flex: 1; min-width: 0; color: var(--text-bright); }
.copybox button { flex: none; }

/* ── Строки «имя — значение» ─────────────────────────────── */

.row {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px;
}
.row:last-child { border-bottom: none; }
.row .k { color: var(--text-muted); white-space: nowrap; }
.row .v { color: var(--text-bright); text-align: right; word-break: break-all;
          overflow-wrap: anywhere; min-width: 0; }
.row .v.num { font-family: ui-monospace, Menlo, monospace; }
.rate-up { color: var(--done-text); }

/* ── Обеспечение / показатели банка ──────────────────────── */

.backing { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.backing-cell {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 14px; text-align: center;
}
.backing-label { font-size: 12px; color: var(--text-muted); margin-bottom: 5px; }
.backing-value {
  font-family: ui-monospace, Menlo, monospace;
  font-size: var(--backing-size); color: var(--text-bright); word-break: break-all;
}
.backing-ok   { color: var(--done-text); }
.backing-warn { color: var(--hold-text); }
.backing-note { font-size: 12px; color: var(--text-dim); margin-top: 12px; text-align: center; }

/* ── Крупные кнопки выбора режима ────────────────────────── */

.big-choice { display: grid; grid-template-columns: 3fr 1fr; gap: 14px; margin: 24px 0; }
.big-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: var(--surface-2); border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 22px 20px; color: var(--text); text-align: center;
  transition: border-color .18s, background .18s, transform .1s;
}
.big-btn-title-sm { font-size: 13px; font-weight: 600; color: var(--text-bright); line-height: 1.35; }
.big-btn:hover { border-color: var(--accent); background: var(--accent-wash);
                 text-decoration: none; transform: translateY(-2px); }
.big-btn-title { font-size: 19px; font-weight: 700; color: var(--text-bright); }
.big-btn-text  { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.big-btn-go    { margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--accent-soft); }

/* ── Ход заявки / шаги (тот же язык состояний, что и на мосту) ── */

.steps { list-style: none; }
.step { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.step:last-child { border-bottom: none; }

.step-mark {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--line-2); display: flex; align-items: center;
  justify-content: center; font-size: 13px; color: var(--text-dim);
  transition: background-color 1.4s ease, border-color 1.4s ease, color 1.4s ease;
}
.step-body { flex: 1; min-width: 0; }
.step-name { color: var(--text-muted); font-size: 14px; transition: color 1.4s ease; }
.step-note { font-size: 12px; color: var(--text-dim); margin-top: 3px; }
.step-state { display: inline-block; font-size: 11px; margin-left: 8px; vertical-align: 1px; }

.step.hold .step-mark  { border-color: var(--hold-line); color: var(--hold-mark); background: var(--hold-bg); }
.step.hold .step-name  { color: var(--hold-text); font-weight: 600; }
.step.hold .step-state { color: var(--hold-mark); }

.step.active .step-mark  { border-color: var(--work-line); color: var(--work-mark); background: var(--work-bg); }
.step.active .step-name  { color: var(--work-text); font-weight: 600; }
.step.active .step-state { color: var(--work-mark); }

.step.done .step-mark { background: var(--done-fill); border-color: var(--done-fill); color: var(--bg); }
.step.done .step-name { color: var(--done-text); }

.step.stop .step-mark  { border-color: var(--stop-mark); color: var(--stop-text); background: var(--stop-bg); }
.step.stop .step-name  { color: var(--stop-text); font-weight: 600; }
.step.stop .step-state { color: var(--stop-text); }

.step.active .step-mark { animation: breathe 2.2s ease-in-out infinite; }
@keyframes breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--work-glow), .35); }
  50%      { box-shadow: 0 0 0 6px rgba(var(--work-glow), 0); }
}
@media (prefers-reduced-motion: reduce) { .step.active .step-mark { animation: none; } }

.bar { height: 6px; background: var(--surface-3); border-radius: 3px; margin-top: 9px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 3px; background: var(--work-mark);
            transition: width .9s ease, background-color 1.4s ease; }
.step.hold .bar-fill { background: var(--hold-mark); }
.step.done .bar-fill { background: var(--done-fill); }

/* ── Всплывающее окно ────────────────────────────────────── */

.modal {
  display: none; position: fixed; inset: 0; z-index: 400;
  background: rgba(0,0,0,.7); padding: 20px; overflow-y: auto;
}
.modal.open { display: flex; align-items: flex-start; justify-content: center; }
.modal-box {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px; max-width: 560px; width: 100%; margin: auto; position: relative;
}
.modal-box h2 { font-size: 19px; color: var(--text-bright); margin-bottom: 12px; text-align: center; }
.modal-box p  { font-size: 14px; margin-bottom: 12px; text-align: left; }
.modal-close {
  position: absolute; top: 12px; right: 14px;
  background: none; border: none; color: var(--text-dim);
  font-size: 26px; cursor: pointer; line-height: 1;
}
.modal-close:hover { color: var(--text); }

/* ── Подвал ──────────────────────────────────────────────── */

.footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 40px; padding: 26px 16px; }
.footer-inner { max-width: var(--page-width); margin: 0 auto; text-align: center; }

.footer-social { display: flex; justify-content: center; gap: 14px; margin-bottom: 18px; }
.footer-social img { width: 32px; height: 32px; opacity: .75; transition: opacity .2s; }
.footer-social a:hover img { opacity: 1; }

.footer-text  { font-size: 12px; color: var(--text-dim); line-height: 1.6; }
.footer-links { margin-top: 12px; font-size: 13px; }
.footer-links a { margin: 0 8px; color: var(--text-muted); }
.footer-copy  { margin-top: 14px; font-size: 12px; color: var(--text-faint); }

/* ── Узкий экран ─────────────────────────────────────────── */

@media (max-width: 700px) {
  .header { padding: 12px 16px; }
  .header-logo-line1 { font-size: 9px; }
  .header-logo-line2 { font-size: 13px; }
  .header-right { gap: 8px; }
  .back-link { font-size: 12px; }
}

@media (max-width: 480px) {
  body { font-size: 14px; }
  .container { padding: 18px 12px 32px; }
  .card { padding: 16px; border-radius: 12px; }

  .backing { grid-template-columns: 1fr; }

  .big-choice { grid-template-columns: 1fr; }
  .big-btn { padding: 18px 16px; }

  .row { flex-direction: column; gap: 3px; }
  .row .v { text-align: left; }

  .copybox { flex-direction: column; }
  .copybox button { width: 100%; }

  /* На главной название сервиса прячем — остаётся только значок,
     иначе на узких экранах шапка переламывается на две строки. */
  .header-logo-text { display: none; }
  .back-link { font-size: 0; gap: 0; }
  .back-arrow { font-size: 18px; }
  .eco-pill { padding: 5px 10px; font-size: 11px; }
  .mono { font-size: 12px; }
}

/* Пустая строка не занимает места. */
.sign-out:empty, .form-hint:empty, .step-note:empty { display: none; }

/* ── Текстовые страницы: «Условия», «Конфиденциальность»,
   «Как это работает» ─────────────────────────────────────── */

.legal-updated {
  text-align: center; font-size: 12px; color: var(--text-dim);
  margin-bottom: 20px;
}
.legal-card { text-align: left; }
.legal-card h2 {
  font-size: 16px; font-weight: 600; color: var(--text-bright);
  margin: 22px 0 10px;
}
.legal-card h2:first-child { margin-top: 0; }
.legal-card p {
  font-size: 14px; line-height: 1.6; margin-bottom: 12px;
}
.legal-card ul, .legal-card ol {
  font-size: 14px; line-height: 1.6; margin: 0 0 12px 20px;
}
.legal-card li { margin-bottom: 6px; }
.legal-card a { color: var(--accent-link); }

/* ── Переключатель языка (шапка) — структура и классы как на мосту ── */

.lang-switcher { position: relative; }
.lang-switcher-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  padding: 5px 12px; border-radius: 20px;
  border: 1px solid var(--line-2); background: var(--surface-2);
  color: var(--text); font-size: 13px; cursor: pointer;
  font-family: inherit; white-space: nowrap; text-align: center;
}
.lang-switcher-btn:hover { border-color: var(--accent); }
.lang-dropdown {
  display: none; position: absolute; top: calc(100% + 6px); right: 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 6px; min-width: 210px; max-height: 60vh; overflow-y: auto;
  z-index: 300; box-shadow: 0 8px 24px rgba(0,0,0,.5);
}
.lang-dropdown.open { display: block; }
.lang-item {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px; border-radius: 6px;
  color: var(--text); font-size: 14px;
}
.lang-item:hover { background: var(--surface-3); text-decoration: none; }
.lang-item.active { background: var(--accent-wash); color: var(--accent-soft); }
.lang-flag { font-size: 18px; line-height: 1; }

/* RTL (арабский, персидский) — выпадающий список открывается влево,
   чтобы не вылезать за левый край экрана у прижатой к левому краю кнопки. */
[dir="rtl"] .lang-dropdown { right: auto; left: 0; }

@media (max-width: 480px) {
  .lang-switcher-btn { padding: 5px 9px; font-size: 12px; }
}
