/* ЛК LumineVPN – дизайн-система redesign-2026 (канон: lk-mock.html).
   Токены и polish-база – в /static/ui/tokens.css (подключается ПЕРЕД этим файлом).
   ⚠ Селекторы читает app.js – имена классов/ID не менять. */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  /* auth-страницы: карточка по центру + мягкое сияние */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background-image:
    radial-gradient(44% 40% at 50% 8%, rgba(62,123,255,.14), transparent 65%),
    radial-gradient(36% 36% at 82% 92%, rgba(124,58,237,.10), transparent 65%);
}
/* зерно, как на лендинге */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .024;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
.mono, code { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ── Карточки ──
   .card на auth-страницах = стеклянная карточка по центру;
   в приложении (body.app) = обычная широкая карточка-поверхность. */
.card {
  position: relative; overflow: hidden;
  width: 100%; max-width: 400px;
  background: rgba(13,17,29,.72);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--hairline);
  border-radius: 26px;
  padding: 34px 30px;
  box-shadow: 0 34px 90px rgba(0,0,0,.5);
}
body.app .card {
  max-width: none;
  background: var(--surface);
  backdrop-filter: none; -webkit-backdrop-filter: none;
  border: 1px solid var(--border-card);
  border-radius: var(--r-card);
  padding: 22px 24px;
  box-shadow: none;
}
body.app .wrap .card { margin-bottom: 14px; }
/* линия-блик по верхней кромке карточек приложения */
body.app .card::after, .sub-card::after, .wide-card::after {
  content: ""; position: absolute; top: 0; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
  opacity: 0; transition: opacity .3s;
}
body.app .card:hover::after, .sub-card:hover::after { opacity: 1; }

.brand { display: flex; align-items: center; justify-content: center; gap: 9px; margin-bottom: 24px; color: inherit; text-decoration: none; }
.brand .logo { width: 27px; height: 27px; background: url("/logo.svg") center / contain no-repeat; }
.brand .name { font-weight: 700; font-size: 17px; letter-spacing: -.3px; }
a.brand:hover .name { color: var(--link-hover); }

/* Переключатель Вход / Регистрация */
.auth-tabs {
  display: flex; gap: 4px; margin-bottom: 22px;
  background: rgba(0,0,0,.3); border: 1px solid var(--hairline);
  border-radius: 13px; padding: 4px;
}
.auth-tab {
  flex: 1; text-align: center; padding: 9px 0;
  font-size: 13.5px; font-weight: 600; color: var(--muted);
  border-radius: 9px; cursor: pointer;
  transition: color .18s, background .18s;
}
.auth-tab:hover { color: var(--text); }
.auth-tab.active { background: var(--surface-2); color: var(--text); cursor: default; }

h1 { font-size: 21px; font-weight: 800; letter-spacing: -.4px; margin-bottom: 6px; text-align: center; }
.subtitle { color: var(--muted); font-size: 14px; text-align: center; margin-bottom: 24px; }

label { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); margin: 14px 0 7px; }

input[type="email"], input[type="password"], input[type="text"],
input[type="number"], textarea {
  width: 100%;
  padding: 13px 16px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-input);
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
textarea { resize: vertical; }
input:focus, textarea:focus { border-color: rgba(115,150,255,.55); box-shadow: 0 0 0 3px rgba(62,123,255,.12); }
input + input { margin-top: 10px; }

.consent { display: flex; align-items: flex-start; gap: 9px; margin-top: 16px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.consent input { margin-top: 2px; width: 15px; height: 15px; accent-color: var(--accent); flex-shrink: 0; }
.consent a { color: var(--link); }
.consent a:hover { color: var(--link-hover); }

button { font-family: inherit; }
button.primary, a.primary {
  width: 100%;
  margin-top: 22px;
  padding: 13px 24px;
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  background: var(--grad);
  border: none;
  border-radius: var(--r-pill);
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 10px 30px rgba(62,123,255,.25);
  transition: transform .18s, box-shadow .18s, opacity .18s;
}
button.primary:hover, a.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 14px 40px rgba(62,123,255,.36);
}
button.primary:active, a.primary:active { transform: translateY(0) scale(.99); }
button.primary:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.links { margin-top: 20px; text-align: center; font-size: 13px; color: var(--muted); }
.links a { color: var(--link); }
.links a:hover { color: var(--link-hover); }

.msg { margin-top: 16px; font-size: 13.5px; text-align: center; min-height: 18px; line-height: 1.5; }
.msg.error, .msg.err { color: var(--bad); }
.msg.ok { color: var(--ok); }

.hidden { display: none; }

button.ghost {
  padding: 8px 16px; font-size: 13px; font-weight: 500; color: var(--muted);
  background: transparent; border: 1px solid var(--hairline); border-radius: var(--r-pill);
  cursor: pointer; transition: color .18s, border-color .18s;
}
button.ghost:hover { color: var(--text); border-color: rgba(255,255,255,.18); }
button.ghost.danger { color: var(--bad); border-color: rgba(251,113,133,.22); }
button.ghost.danger:hover { color: var(--bad); border-color: rgba(251,113,133,.4); background: rgba(251,113,133,.06); }
button.ghost.danger:disabled { opacity: .5; cursor: not-allowed; }

/* ═══════════════════════════════════════════════════════════════════════
   Страницы приложения (body.app)
   ═══════════════════════════════════════════════════════════════════════ */
body.app {
  display: block;
  padding: 0;
  background-image:
    radial-gradient(40% 30% at 50% 0%, rgba(62,123,255,.07), transparent 65%);
}

.appbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 12px;
  height: 60px;
  padding: 0 max(20px, calc((100% - 840px) / 2));
  background: rgba(5,7,13,.72);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--hairline);
}
.appbar .brand { margin-bottom: 0; }
.appbar .brand .logo { width: 22px; height: 22px; }
.appbar .brand .name { font-size: 15px; }
.appbar .spacer { flex: 1; }
.appbar .me-email {
  font-size: 13px; color: var(--muted);
  max-width: 42vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.appnav {
  display: flex; gap: 6px;
  padding: 16px max(20px, calc((100% - 840px) / 2)) 0;
  overflow-x: auto;
}
.appnav a {
  padding: 9px 18px; font-size: 13.5px; font-weight: 600; color: var(--muted);
  white-space: nowrap; border-radius: var(--r-pill);
  border: 1px solid transparent;
  transition: color .18s, background .18s, border-color .18s;
}
.appnav a:hover { color: var(--text); }
.appnav a.active { color: var(--text); background: var(--surface-2); border-color: var(--hairline); }

.wrap {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 24px 20px 90px;
}

.page-head { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.page-head h1 { text-align: left; margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.6px; }
.page-head .spacer { flex: 1; }

.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); font-size: 13.5px; margin-bottom: 18px;
  transition: color .18s;
}
.back-link:hover { color: var(--text); }

.section { margin-top: 24px; }
.section-label {
  font-size: 11px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 1.6px; margin-bottom: 12px;
}

.muted { color: var(--muted); }
.center { text-align: center; }

/* ── Кнопки (app-контекст) ── */
button.primary.wide, a.primary.wide {
  display: inline-flex; align-items: center; justify-content: center;
  width: auto; margin-top: 0; padding: 12px 24px;
}
button.secondary, a.secondary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; font-size: 14px; font-weight: 600; color: var(--text);
  background: var(--surface-2); border: none; border-radius: var(--r-pill); cursor: pointer;
  transition: background .18s, transform .18s;
}
button.secondary:hover, a.secondary:hover { background: rgba(255,255,255,.09); transform: translateY(-1px); }
button.secondary:active, a.secondary:active { transform: translateY(0); }
button.secondary:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* ── Список подписок ── */
.sub-list { display: grid; gap: 14px; }
.sub-card {
  position: relative; overflow: hidden;
  display: block; color: inherit;
  background: var(--surface); border: 1px solid var(--border-card);
  border-radius: var(--r-card); padding: 22px 24px; cursor: pointer;
  transition: border-color .22s, transform .22s;
}
.sub-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.sub-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.sub-name { font-weight: 700; font-size: 16px; letter-spacing: -.2px; }
.sub-id {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--muted); background: var(--surface-2);
  padding: 3px 9px; border-radius: 7px;
}

/* Статус-бейджи с точкой (эмодзи запрещены) */
.badge {
  margin-left: auto; display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; padding: 5px 13px;
  border-radius: var(--r-pill); white-space: nowrap;
}
.badge i { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.badge.active { color: var(--ok); background: rgba(74,222,128,.08); border: 1px solid rgba(74,222,128,.22); }
.badge.active i { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.badge.trial { color: #7CA2FF; background: rgba(115,150,255,.08); border: 1px solid rgba(115,150,255,.25); }
.badge.trial i { background: #7CA2FF; box-shadow: 0 0 8px #7CA2FF; }
.badge.expired { color: var(--bad); background: rgba(251,113,133,.07); border: 1px solid rgba(251,113,133,.22); }
.badge.expired i { background: var(--bad); }

/* ── Прогресс-бары трафика ── */
.meter { margin-top: 12px; }
.meter-top {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12.5px; color: var(--muted); margin-bottom: 7px;
}
.meter-top b { color: var(--text); font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; }
.meter-track { height: 6px; background: rgba(255,255,255,.06); border-radius: 99px; overflow: hidden; }
.meter-fill { height: 100%; border-radius: 99px; background: var(--grad); transition: width .5s ease; }
.meter-fill.warn { background: linear-gradient(90deg, #FBBF24, #F97316); }
.meter-fill.full { background: linear-gradient(90deg, #FB7185, #E11D48); }

.sub-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 16px; font-size: 13px; color: var(--muted);
}
.sub-foot .chevron { color: var(--link); font-weight: 500; transition: transform .18s; }
.sub-card:hover .chevron { transform: translateX(3px); }

.empty {
  text-align: center; padding: 44px 20px;
  background: var(--surface); border: 1px dashed rgba(255,255,255,.12); border-radius: var(--r-card);
}
.empty p { color: var(--muted); margin-bottom: 18px; font-size: 14.5px; line-height: 1.6; }
.empty-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty-actions > * { min-width: 240px; margin-top: 0; }

/* ── Карточка ключа ── */
.wide-card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border-card);
  border-radius: var(--r-card); padding: 22px 24px;
}
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; font-size: 13.5px; }
.kv + .kv { border-top: 1px solid var(--hairline); }
.kv .k { color: var(--muted); }
.kv .v { font-weight: 600; text-align: right; }

.copybox {
  display: flex; gap: 10px; align-items: center;
  background: rgba(0,0,0,.32); border: 1px solid var(--hairline);
  border-radius: var(--r-input); padding: 13px 15px;
}
.copybox code { flex: 1; font-size: 12.5px; word-break: break-all; color: var(--text-2); }
.copybox button {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; font-size: 12.5px; font-weight: 600; color: var(--text);
  background: var(--surface-2); border: none; border-radius: 9px; cursor: pointer;
  transition: background .18s;
}
.copybox button:hover { background: rgba(255,255,255,.1); }
.copybox button svg { width: 13px; height: 13px; stroke: currentColor; stroke-width: 2; fill: none; }

.steps-mini { display: grid; gap: 10px; }
.sm-step { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--text-2); line-height: 1.5; }
.sm-step i {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; margin-top: 1px;
  background: var(--surface-2); border: 1px solid var(--hairline);
  color: #7CA2FF; font-style: normal; font-weight: 700; font-size: 11px;
  display: flex; align-items: center; justify-content: center;
}
.sm-step b { color: var(--text); }

.qr-wrap { text-align: center; margin: 20px 0 6px; }
.qr-wrap img {
  width: 180px; height: 180px; border-radius: 18px;
  background: #fff; padding: 10px; box-shadow: 0 16px 44px rgba(0,0,0,.4);
}

.actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.actions > * { flex: 1; min-width: 150px; }

/* ── Покупка: планы, тарифы, промо, шлюзы ── */
.pills {
  display: inline-flex; background: var(--surface-2);
  border-radius: var(--r-pill); padding: 3px; gap: 0;
}
.pill {
  padding: 9px 22px; border-radius: var(--r-pill); font-size: 13px; font-weight: 600;
  color: var(--muted); cursor: pointer; border: none; background: transparent;
  transition: color .18s, background .18s;
}
.pill.active { background: var(--text); color: #05070D; }

.tariff-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .tariff-grid { grid-template-columns: repeat(3, 1fr); } }
.tariff {
  position: relative; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border-card); border-radius: 18px;
  padding: 18px; transition: border-color .2s, background .2s, box-shadow .2s;
}
.tariff:hover { border-color: var(--border-hover); }
.tariff.sel {
  border-color: rgba(115,150,255,.55);
  background: linear-gradient(180deg, rgba(62,123,255,.12), var(--surface) 60%);
  box-shadow: 0 14px 40px rgba(30,60,160,.2);
}
.tariff .t-dur { font-weight: 600; font-size: 12.5px; color: var(--muted); }
.tariff .t-price { font-size: 26px; font-weight: 800; letter-spacing: -1px; margin-top: 8px; font-variant-numeric: tabular-nums; }
.tariff .t-price .cur { font-size: 14px; font-weight: 600; color: var(--muted); }
.tariff .t-old { text-decoration: line-through; color: var(--muted); font-size: 13px; font-weight: 500; }
.tariff .t-sub { font-size: 11.5px; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.tariff .t-disc {
  position: absolute; top: 14px; right: 14px;
  font-size: 10.5px; font-weight: 700; color: var(--ok);
  background: rgba(74,222,128,.1); border: 1px solid rgba(74,222,128,.25);
  padding: 2px 8px; border-radius: var(--r-pill);
}

.promo-toggle { color: var(--link); cursor: pointer; font-size: 13px; font-weight: 500; display: inline-block; margin-top: 4px; transition: color .18s; }
.promo-toggle:hover { color: var(--link-hover); }
.promo-row { display: flex; gap: 8px; margin-top: 10px; }
.promo-row input { flex: 1; }
.promo-row button { flex-shrink: 0; margin: 0; padding: 12px 18px; }
.promo-applied {
  display: flex; align-items: center; gap: 8px; margin-top: 10px;
  font-size: 13.5px; color: var(--ok);
}
.promo-applied .rm { margin-left: auto; color: var(--muted); cursor: pointer; text-decoration: underline; }

.summary {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 18px 22px; margin-top: 22px;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 16px;
}
.summary .s-label { color: var(--muted); font-size: 14px; }
.summary .s-total { font-size: 26px; font-weight: 800; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.summary .s-total .cur { font-size: 15px; }

.gw-list { display: grid; gap: 10px; }
.gw {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 15px 18px; font-size: 14.5px; font-weight: 600; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-card); border-radius: 15px; cursor: pointer;
  transition: border-color .2s, transform .2s;
}
.gw:hover:not(:disabled) { border-color: var(--border-hover); transform: translateY(-1px); }
.gw:disabled { opacity: .38; cursor: not-allowed; transform: none; }
.gw .gw-ico {
  width: 38px; height: 38px; border-radius: 11px; background: var(--surface-2);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.gw .gw-ico svg { width: 18px; height: 18px; stroke: #9FB4E8; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.gw .gw-sub { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--muted); }

/* топап-опции */
.topup-list { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 500px) { .topup-list { grid-template-columns: repeat(3, 1fr); } }
.topup {
  cursor: pointer; text-align: center; padding: 14px 10px;
  background: var(--surface); border: 1px solid var(--border-card); border-radius: 14px;
  transition: border-color .2s, background .2s;
}
.topup:hover { border-color: var(--border-hover); }
.topup.sel {
  border-color: rgba(115,150,255,.55);
  background: linear-gradient(180deg, rgba(62,123,255,.12), var(--surface) 60%);
}
.topup .tu-gb { font-weight: 700; font-size: 14px; }
.topup .tu-price { font-size: 17px; font-weight: 800; margin-top: 6px; font-variant-numeric: tabular-nums; }

/* ── Страница статуса оплаты ── */
.pay-box { text-align: center; padding: 30px 24px; }
.pay-emoji { display: flex; justify-content: center; }
.pay-emoji svg { width: 54px; height: 54px; }
.pay-title { font-size: 20px; font-weight: 800; letter-spacing: -.3px; margin: 16px 0 8px; }
.pay-hint { color: var(--muted); font-size: 14px; line-height: 1.55; }
.spinner {
  width: 46px; height: 46px; margin: 8px auto 20px;
  border: 3px solid var(--hairline); border-top-color: var(--accent);
  border-radius: 50%; animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Тост ── */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
  background: rgba(13,17,29,.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-pill);
  padding: 10px 20px; font-size: 13.5px; color: var(--text);
  box-shadow: 0 16px 50px rgba(0,0,0,.6); opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.loading { text-align: center; color: var(--muted); padding: 40px 0; font-size: 14px; }

/* ── Чат поддержки ── */
#chat-box {
  display: flex; flex-direction: column; gap: 10px;
  max-height: 55vh; overflow-y: auto;
  margin: 14px 0; padding: 4px 14px 4px 4px;
}
#chat-box::-webkit-scrollbar { width: 6px; }
#chat-box::-webkit-scrollbar-thumb { background: rgba(255,255,255,.08); border: none; }
#chat-box::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.16); }
.bubble {
  max-width: 78%; padding: 12px 16px; border-radius: 18px;
  font-size: 13.5px; line-height: 1.55;
}
.bubble.me {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(62,123,255,.2), rgba(124,58,237,.16));
  border: 1px solid rgba(115,150,255,.3);
  border-bottom-right-radius: 6px;
}
.bubble.op {
  align-self: flex-start;
  background: var(--surface-2); border: 1px solid var(--hairline);
  border-bottom-left-radius: 6px;
}
.bubble .b-who { font-size: 11px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.bubble .b-text { white-space: pre-wrap; word-break: break-word; color: var(--text); }

/* Вложения в чате */
.b-img { display: block; max-width: 100%; max-height: 280px; border-radius: 10px; margin: 4px 0; }
.b-file { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0; color: var(--link); font-weight: 500; }
.b-file svg { width: 13px; height: 13px; stroke: currentColor; stroke-width: 2; fill: none; }

@media (prefers-reduced-motion: reduce) {
  .spinner { animation: none; }
  .sub-card:hover, .gw:hover, button.secondary:hover, button.primary:hover { transform: none; }
}

/* ── Сессии (точки-статусы) ── */
.s-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--muted); margin-right: 8px; vertical-align: 1px; flex-shrink: 0;
}
.s-dot.on { background: var(--ok); box-shadow: 0 0 8px var(--ok); }

/* Статусы выплат в истории */
.st-paid { color: var(--ok); }
.st-pend { color: var(--warn); }
.st-rej { color: var(--muted); }

/* ── Telegram Login Widget + привязка аккаунта ── */
.tg-widget-box { display: flex; flex-direction: column; align-items: center; }
.tg-widget-box:empty { display: none; }
/* Виджет-iframe light-only: без явной color-scheme браузер в тёмной теме
   считает схемы «страница dark / iframe light» разными и подкладывает под
   кросс-доменный iframe НЕПРОЗРАЧНЫЙ серый холст (квадрат за кнопкой). */
.tg-widget-box iframe { color-scheme: light; background: transparent; border: 0; }
.or-divider {
  display: flex; align-items: center; gap: 12px; width: 100%;
  margin: 18px 0 14px; color: var(--muted); font-size: 12.5px;
}
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: var(--hairline); }
.tg-link-card { margin-top: 20px; }
.tg-link-card h2 { font-size: 16px; font-weight: 700; letter-spacing: -.2px; margin: 0 0 6px; text-align: left; }
.tg-link-card .hint { color: var(--muted); font-size: 13.5px; margin: 0 0 14px; line-height: 1.5; }
#tg-link-widget { display: flex; justify-content: center; margin-bottom: 8px; }
.merge-list { list-style: none; padding: 0; margin: 4px 0 16px; }
.merge-list li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--hairline); font-size: 13.5px;
}
.merge-list li:last-child { border-bottom: none; }
.merge-list li span { color: var(--muted); }
.merge-note {
  margin: 6px 0 14px; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-input);
}
.merge-note p { color: var(--muted); font-size: 13px; margin: 0 0 8px; line-height: 1.5; }
.merge-note .merge-list { margin: 0; }
