

:root {
  --bg: #101212;
  --bg-sunken: #090A0A;
  --surface: #171A19;
  --elevated: #232625;

  --overlay: rgba(244, 246, 243, .06);
  --overlay-weak: rgba(244, 246, 243, .025);
  --backdrop: rgba(0, 0, 0, .56);

  --text: #F4F6F3;
  --text-2: rgba(244, 246, 243, .82);
  --muted: #98A29C;
  --placeholder: rgba(244, 246, 243, .46);
  --inactive: #B1B9B4;

  --border: rgba(244, 246, 243, .09);
  --border-subtle: #3F4643;
  --border-strong: #5D6863;

  --accent: #78D6CF;
  --grad: linear-gradient(135deg, #A7EEE3 0%, #3FB5B3 100%);
  --on-accent: #090A0A;
  --accent-soft-weak: rgba(120, 214, 207, .1);
  --info-border: rgba(120, 214, 207, .24);

  --ok: #65D46E;
  --warn: #FFD166;
  --danger: #FF8A80;

  --nav-icon: rgba(244, 246, 243, .56);
  --nav-hover: rgba(244, 246, 243, .045);
  --nav-active-border: rgba(120, 214, 207, .22);

  --brand: #3B82F6;
  --chat: #18D26B;

  --shadow-popover: 0 12px 32px rgba(0, 0, 0, .35);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: .16s ease;
}

* { box-sizing: border-box }
html { -webkit-text-size-adjust: 100% }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 400 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, p, ul, ol { margin: 0 }
ul, ol { padding: 0; list-style: none }
a { color: inherit; text-decoration: none }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit }
input, textarea, select { font: inherit }
.ic {
  display: inline-block; width: 24px; height: 24px; flex: none; vertical-align: middle;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
:focus-visible { outline: 2px solid rgba(120, 214, 207, .58); outline-offset: 2px }
[hidden] { display: none !important }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }


.logo { display: inline-flex; align-items: center; gap: 10px; height: 44px; min-width: 0 }
.logo__img { display: block; flex: none; width: 44px; height: 44px; object-fit: contain }
.logo span { font: 800 26px/1 var(--font); letter-spacing: .01em; text-transform: uppercase; white-space: nowrap }


.boot { min-height: 100vh; display: grid; place-items: center }
.spin {
  width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--border-subtle);
  border-top-color: var(--accent); animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg) } }
.btn__spin {
  width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor;
  border-right-color: transparent; animation: spin .7s linear infinite;
}
.loading { display: grid; place-items: center; padding: 32px 0 }


.auth { min-height: 100vh; display: flex; flex-direction: column; scrollbar-gutter: stable both-edges }
.auth__hd { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 16px 24px }
@media (min-width: 768px) { .auth__hd { border-bottom: 1px solid var(--border-strong) } }
.auth__main { flex: 1; display: grid; place-items: center; padding: 24px 16px 48px }
.auth__card { width: min(100%, 480px); padding: 36px 32px; border-radius: 24px; display: flex; flex-direction: column; gap: 18px }
@media (max-width: 480px) { .auth__card { padding: 28px 20px } }
.auth__title { font: 700 24px/1.25 var(--font); letter-spacing: -.01em }
.auth__lead { font: 500 14px/20px var(--font); color: var(--muted) }
.auth__alt { font: 500 14px/20px var(--font); color: var(--muted) }
.auth__alt a, .auth__alt button { color: var(--accent); text-decoration: underline; text-underline-offset: 2px }
.auth__rule { height: 1px; background: var(--border) }
.auth__terms { font: 500 12px/18px var(--font); color: var(--muted) }
.auth__terms a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px }
.auth__ft {
  display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; padding: 16px 24px;
  font: 500 12px/normal var(--font); color: var(--muted);
}
.auth__ft a { text-decoration: underline; text-underline-offset: 2px }
.auth__ft a:hover { color: var(--text) }


.cookiebar {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  width: min(360px, calc(100vw - 32px));
  padding: 14px 16px; border-radius: 16px;
  display: flex; flex-direction: column; gap: 10px;
  font: 500 12px/18px var(--font); color: var(--muted);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .28);
}
.cookiebar a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px }
.cookiebar__row { display: flex; justify-content: flex-end }
@media (max-width: 560px) { .cookiebar { left: 16px; right: 16px; width: auto } }

.otp { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px }
.otp__cell {
  width: 100%; height: 56px; border-radius: 12px; border: 1px solid var(--border-strong);
  background: var(--bg-sunken); color: var(--text); text-align: center; font: 700 22px/1 var(--font);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.otp__cell:focus { outline: none; border-color: rgba(120, 214, 207, .58); box-shadow: 0 0 0 3px rgba(120, 214, 207, .18) }
.otp__cell--filled { border-color: var(--accent) }


.app { min-height: 100vh; scrollbar-gutter: stable both-edges }
.side { display: none }
.mhd { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 16px 24px }

.notif {
  position: relative; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border-radius: 8px; background: var(--surface); color: var(--text-2); transition: color var(--ease);
}
.notif:hover { color: var(--text) }
.notif .ic { width: 18px; height: 18px }
.notif .badge { position: absolute; top: 12px; right: 15px; width: 10px; height: 10px; border-radius: 9999px; background: var(--danger) }

.inner {
  display: flex; flex-direction: column; gap: 16px; width: 100%;
  padding: 24px 16px calc(112px + env(safe-area-inset-bottom, 0px));
}
.inner > * { min-width: 0 }
.stack { display: flex; flex-direction: column; gap: 16px; min-width: 0 }

@media (min-width: 768px) {
  .app { height: 100vh; display: grid; grid-template-columns: 280px minmax(0, 1fr) }
  .mhd { display: none }
  .side {
    display: flex; flex-direction: column; min-height: 0; overflow-y: auto; padding: 24px 16px 32px;
    background: linear-gradient(180deg, var(--accent-soft-weak) 0%, rgba(120, 214, 207, 0) 42%), var(--bg);
    border-right: 1px solid var(--border);
  }
  .main { min-height: 0; overflow: auto; scrollbar-gutter: stable both-edges }
  .inner { width: min(100%, calc(clamp(440px, 44vw, 620px) + 32px)); margin-inline: auto; padding: 32px 16px 40px }
  .notif { width: 32px; height: 32px }
  .notif .badge { top: 5px; right: 6px; width: 8px; height: 8px }
}
@media (min-width: 1024px) { .app { overflow: hidden } }
@media (min-width: 1440px) { .side { padding-inline: 24px } }

.side__hd { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px }


.acct {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 500 13px/18px var(--font); color: var(--muted);
}
.acct--side { margin: -8px 0 16px; padding: 0 16px }
.mhd__r { display: flex; align-items: center; gap: 12px; min-width: 0 }
.mhd__r .acct { max-width: 52vw }
.side .logo span { font-size: 19px }

.nav { display: flex; flex-direction: column; gap: 8px }
.nav a {
  display: flex; align-items: center; min-height: 48px; padding: 8px 16px; border-radius: 12px;
  border: 1px solid transparent; color: var(--text-2); font: 500 14px/20px var(--font);
  transition: background-color var(--ease), border-color var(--ease), color var(--ease);
}
.nav a .ic { margin-right: 8px; color: var(--nav-icon); transition: color var(--ease) }
.nav a:hover { background: var(--nav-hover); color: var(--text) }
.nav a:hover .ic { color: var(--text) }
.nav a[aria-current], .nav a[aria-current]:hover { background: var(--accent-soft-weak); border-color: var(--nav-active-border); color: var(--text) }
.nav a[aria-current] .ic { color: var(--accent) }
.side__foot { margin-top: auto; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 12px; font: 500 12px/normal var(--font); color: var(--muted) }
.side__foot a:hover { color: var(--text) }


.sh { display: flex; flex-direction: column; align-items: flex-start; gap: 8px }
.sh__title { font: 700 18px/normal var(--font); letter-spacing: -.01em }
.sh__lead { font: 500 14px/20px var(--font); color: var(--muted) }
.back { display: inline-flex; align-items: center; width: 32px; height: 32px; color: var(--muted); transition: color var(--ease) }
.back:hover { color: var(--accent) }

.uid {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%; color: var(--muted);
  transition: color var(--ease), transform .12s ease;
}
.uid:hover { color: var(--text-2) }
.uid:active { transform: translateY(1px) }
.uid span { font: 500 14px/20px var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px }
.uid .ic { width: 16px; height: 16px; opacity: .75 }
.uid:hover .ic { color: var(--accent); opacity: 1 }


.glass { background: linear-gradient(180deg, var(--overlay), var(--overlay-weak)); border: 1px solid var(--border) }
.card { padding: 16px 24px; border-radius: 24px }
.card__title { margin-bottom: 8px; font: 500 14px/20px var(--font); color: var(--muted) }
.card__text { font: 500 14px/20px var(--font); color: var(--text-2) }
.card__btn { margin-top: 16px; align-self: flex-start }
.form { display: flex; flex-direction: column; gap: 16px }
.empty { padding: 8px 0; text-align: center; font: 500 14px/20px var(--font); color: var(--placeholder) }

.conn { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 16px; padding: 16px 24px; border-radius: 24px }
.conn__title { position: relative; z-index: 1; font: 500 14px/20px var(--font) }
.conn__sum { position: relative; z-index: 1; display: flex; align-items: center; gap: 16px }
.conn__icon { width: 88px; height: 88px; color: var(--inactive); stroke-width: 1.5 }
.conn__icon--ok { color: var(--ok) }
.conn__icon--warn { color: var(--warn) }
.conn__label { font: 500 14px/20px var(--font); color: var(--muted) }
.conn__name { font: 500 18px/normal var(--font) }
.conn__hint { font: 500 14px/20px var(--font); color: var(--muted) }
.conn__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px }
.conn__actions { position: relative; z-index: 1; margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px }
@media (max-width: 767px) { .conn__actions > * { flex: 1 1 100% } }
.wm { position: absolute; pointer-events: none; z-index: 0; color: var(--brand); opacity: .08; stroke-width: 1.25 }
.conn .wm { top: 48px; right: -42px; width: 210px; height: 210px }
@media (max-width: 420px) { .conn__icon { width: 64px; height: 64px } }

.manage {
  position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden;
  padding: 14px 40px 14px 16px; border-radius: 12px; background: var(--grad); color: var(--on-accent);
  font: 700 14px/20px var(--font); min-height: 48px;
}
.manage span { flex: 1 1 auto; text-align: center }
.manage .ic { position: absolute; right: 16px; top: 50%; transform: translateY(-50%) }
@media (min-width: 768px) { .manage { min-width: clamp(240px, 50%, 420px) } }

.block { display: flex; flex-direction: column; gap: 8px; width: 100% }
.hint { font: 500 14px/20px var(--font); color: var(--muted) }
.lcard { width: 100%; padding: 8px; border-radius: 24px }
.litem {
  position: relative; display: flex; align-items: center; width: 100%; min-height: 48px; padding: 8px 16px;
  border-radius: 12px; border: 1px solid transparent; color: var(--text-2); text-align: left; transition: color var(--ease);
}
a.litem:hover, button.litem:hover { color: var(--text) }
.litem:not(:last-child)::after { content: ""; position: absolute; left: 48px; right: 16px; bottom: -1px; height: 1px; background: var(--border) }
.litem > .ic:first-child { margin-right: 8px; color: var(--muted); transition: color var(--ease) }
a.litem:hover > .ic:first-child, button.litem:hover > .ic:first-child { color: var(--accent) }
.litem__t { flex: 1 1 auto; min-width: 0; font: 500 14px/20px var(--font); overflow: hidden; text-overflow: ellipsis }
.litem__t small { display: block; font: 500 12px/normal var(--font); color: var(--muted); overflow: hidden; text-overflow: ellipsis }
.litem__s { flex: 0 1 auto; min-width: 0; margin-left: 12px; font: 500 14px/20px var(--font); color: var(--muted); text-align: right; overflow-wrap: anywhere }
.litem__a { width: 18px; height: 18px; margin-left: 8px; color: var(--muted); transition: color var(--ease), transform var(--ease) }
a.litem:hover .litem__a, button.litem:hover .litem__a { color: var(--accent); transform: translateX(2px) }
.litem .pill, .litem > .btn { margin-left: 8px }
.litem--danger, .litem--danger > .ic:first-child { color: var(--danger) !important }

.legal { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; padding: 2px 8px 0; font: 500 12px/normal var(--font); color: var(--muted) }
.legal a:hover { color: var(--text) }
.legal i { font-style: normal; color: var(--border-subtle) }

.info {
  position: relative; display: flex; align-items: flex-start; gap: 8px; padding: 16px; border-radius: 12px;
  border: 1px solid var(--info-border); background: var(--accent-soft-weak);
}
.info .ic { flex: 0 0 24px; color: var(--accent) }
.info p { flex: 1; font: 500 14px/20px var(--font) }
.info--sm { padding: 12px }
.info--warn { border-color: rgba(255, 209, 102, .28); background: rgba(255, 209, 102, .08) }
.info--warn .ic { color: var(--warn) }
.info--danger { border-color: rgba(255, 138, 128, .28); background: rgba(255, 138, 128, .08) }
.info--danger .ic { color: var(--danger) }


.tabs { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) }
.tab {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 16px 8px;
  border-radius: 8px; background: var(--surface); color: var(--text); font: 500 14px/20px var(--font);
}
.tab[aria-selected="true"] { background: var(--grad); color: var(--on-accent) }
.tab .ic { width: 18px; height: 18px }
.tabs--3 { grid-template-columns: repeat(3, minmax(0, 1fr)) }
@media (max-width: 420px) { .tabs--3 .tab { padding: 14px 4px; font-size: 13px } .tabs--3 .tab .ic { display: none } }
.tier-note { text-align: center; font: 500 14px/20px var(--font); color: var(--muted) }

.plans { display: grid; grid-template-columns: 1fr; gap: 16px }
.plan {
  position: relative; display: block; width: 100%; overflow: hidden; isolation: isolate; padding: 16px;
  border-radius: 12px; background: var(--surface); color: var(--text); text-align: left; cursor: pointer;
  transition: border-color .12s ease, background .12s ease;
}
.plan .wm { top: -10px; right: 0; width: 150px; height: 150px }
@media (min-width: 768px) {
  .plan { border: 1px solid var(--border-strong) }
  .plan:hover { border-color: var(--accent) }
}
.plan__top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 24px }
.plan__period { display: inline-flex; align-items: center; gap: 8px; font: 700 14px/20px var(--font) }
.plan__period .ic { color: var(--brand) }
.plan__meta { position: relative; z-index: 1; display: block; margin-top: 8px }
.plan__cap { display: block; font: 500 14px/20px var(--font); color: var(--muted) }
.plan__pm { display: block; font: 500 36px/normal var(--font); color: var(--accent) }
.plan__pm--single { color: var(--text) }
.plan__cur { font: 700 18px/normal var(--font); margin-left: 4px }
.plan__pay { display: block; font: 500 14px/20px var(--font); margin-bottom: 2px }
.plan__pay b { font-weight: 700 }

.perks__title { font: 500 14px/20px var(--font); color: var(--muted); margin-bottom: 12px }
.perks { display: grid; grid-template-columns: 1fr; gap: 8px }
@media (min-width: 640px) { .perks { grid-template-columns: 1fr 1fr } }
.perk { display: grid; grid-template-columns: 28px 1fr; gap: 8px; align-items: start; padding: 16px; border-radius: 12px }
.perk .ic { color: var(--accent) }
.perk b { display: block; font: 700 14px/20px var(--font) }
.perk span { display: block; margin-top: 2px; font: 500 14px/20px var(--font); color: var(--muted) }
@media (max-width: 639px) {
  .perks { grid-template-columns: 1fr 1fr }
  .perk { grid-template-columns: 1fr; padding: 12px }
  .perk b { font-size: 13px; line-height: 18px }
  .perk span { display: none }
}


.faq { background: var(--surface); border-radius: 12px; padding: 16px }
.faq__lead { font: 700 14px/20px var(--font); color: var(--placeholder); margin-bottom: 16px }
.acc { display: grid; gap: 8px }
.acc details { border: 1px solid var(--border-strong); border-radius: 12px; overflow: hidden; background: var(--bg) }
.acc summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px; cursor: pointer;
  list-style: none; font: 700 14px/20px var(--font);
}
.acc summary::-webkit-details-marker { display: none }
.acc .chev { width: 14px; height: 14px; transition: transform .15s ease }
.acc details[open] .chev { transform: rotate(90deg) }
.acc .ans { padding: 16px; border-top: 1px solid var(--border-subtle); font: 500 14px/20px var(--font); color: var(--placeholder) }


.modal[hidden] { display: none }
.ov {
  position: fixed; inset: 0; z-index: 1000; background: var(--backdrop);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); animation: fade .12s ease-out;
}
.mdl {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 1001;
  display: grid; grid-template-rows: auto 1fr auto; width: min(92vw, 520px); max-height: 86dvh; overflow: hidden;
  background: var(--bg); color: var(--text); border: 1px solid var(--border-subtle); border-radius: 12px;
  box-shadow: var(--shadow-popover); animation: fade .12s ease-out;
}
.mdl--wide { width: min(92vw, 720px) }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
.mdl__hd { padding: 16px 44px 8px 24px; border-bottom: 1px solid var(--overlay) }
.mdl__title { font: 700 14px/20px var(--font) }
.mdl__desc { margin-top: 8px; font: 500 14px/20px var(--font); color: var(--placeholder) }
.mdl__x {
  position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 28px; height: 28px;
  border-radius: 9999px; color: var(--placeholder);
}
.mdl__x:hover { background: var(--elevated); color: var(--text) }
.mdl__x .ic { width: 16px; height: 16px }
.mdl__body { padding: 16px 24px; overflow: auto; min-height: 0; display: flex; flex-direction: column; gap: 12px }
.mdl__ft { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; padding: 16px 24px; border-top: 1px solid var(--overlay) }
.mdl__ft > .btn { flex: 1 1 140px }
.mlist { display: flex; flex-direction: column; gap: 4px }
.mlist .tick { width: 18px; height: 18px; margin-left: 8px; color: var(--accent) }

.notes { display: grid; gap: 8px }
.note {
  position: relative; display: flex; align-items: flex-start; gap: 8px; padding: 16px 16px 26px; border-radius: 12px;
  border: 1px solid var(--info-border); background: var(--accent-soft-weak);
}
.note .ic { flex: 0 0 24px; color: var(--accent) }
.note p { flex: 1; font: 500 14px/20px var(--font); white-space: pre-line; overflow-wrap: anywhere }
.note time { position: absolute; bottom: 5px; right: 10px; font: 500 12px/normal var(--font); color: var(--muted) }
.note--unread { border-color: rgba(120, 214, 207, .5) }


.abar { display: none }
@media (max-width: 767px) {
  .abar {
    --pad: 8px; --gap: 6px; --n: 4; --i: 0; position: fixed; z-index: 995;
    left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px));
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    display: flex; align-items: center; justify-content: space-between; gap: var(--gap); padding: var(--pad);
    border-radius: 9999px; overflow: hidden; isolation: isolate;
    background: linear-gradient(180deg, rgba(244, 246, 243, .028) 0%, rgba(244, 246, 243, .008) 42%, rgba(0, 0, 0, .045) 100%), rgba(9, 10, 10, .48);
    border: 1px solid rgba(244, 246, 243, .07);
    box-shadow: inset 0 1px 0 rgba(244, 246, 243, .045), inset 0 -1px 0 rgba(0, 0, 0, .24), 0 14px 38px rgba(0, 0, 0, .36);
    -webkit-backdrop-filter: blur(6px) saturate(62%) brightness(.68) contrast(.9);
    backdrop-filter: blur(6px) saturate(62%) brightness(.68) contrast(.9);
  }
  .abar__ind {
    position: absolute; z-index: 2; top: var(--pad); left: var(--pad); bottom: var(--pad); pointer-events: none;
    width: calc((100% - var(--pad) * 2 - var(--gap) * (var(--n) - 1)) / var(--n)); border-radius: 9999px;
    background: linear-gradient(180deg, rgba(244, 246, 243, .055) 0%, rgba(244, 246, 243, .012) 100%), var(--accent-soft-weak);
    border: 1px solid var(--nav-active-border);
    transform: translateX(calc(var(--i) * (100% + var(--gap)))); transition: transform .28s cubic-bezier(.22, 1, .36, 1);
  }
  .abar[data-i="1"] { --i: 1 } .abar[data-i="2"] { --i: 2 } .abar[data-i="3"] { --i: 3 }
  .abar a {
    position: relative; z-index: 3; flex: 1 1 0; min-width: 0; height: 48px; display: inline-flex; align-items: center;
    justify-content: center; border-radius: 9999px; color: var(--nav-icon); transition: color .18s ease, transform .12s ease;
  }
  .abar a:active { transform: scale(.96) }
  .abar a[aria-current] { color: var(--accent) }
  .abar .ic { width: 22px; height: 22px }
}


.chat { position: fixed; right: 20px; bottom: 20px; z-index: 900 }
@media (max-width: 767px) { .chat { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); right: 16px } }
.chat__fab {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--chat); color: #FFF;
  box-shadow: 0 12px 30px -10px rgba(24, 210, 107, .55); transition: transform .15s ease;
}
.chat__fab:hover { transform: scale(1.05) }
.bubble { width: 23px; height: 19px; border-radius: 10px 10px 10px 4px; background: #FFF }
.chat__fab .ic { display: none; width: 28px; height: 28px }
.chat--open .chat__fab .bubble { display: none }
.chat--open .chat__fab .ic { display: block }
.chat__panel {
  position: absolute; right: 0; bottom: 70px; display: none; overflow: auto; width: min(400px, calc(100vw - 32px));
  max-height: min(600px, calc(100vh - 180px)); border-radius: 14px; background: #F6F7F9; color: #1D2025;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .6);
}
.chat--open .chat__panel { display: block; animation: fade .14s ease-out }
.chat__hello { padding: 32px 20px 20px }
.chat__hello h2 { font: 600 24px/1.2 var(--font); letter-spacing: -.01em }
.chat__hello p { margin-top: 8px; font: 400 16px/1.5 var(--font); color: #4A5160 }
.chat__card { margin: 0 16px 16px; padding: 18px 20px; border-radius: 10px; background: #FFF; border: 1px solid #E6E8EE }
.chat__card h3 { font: 600 15px/1.4 var(--font); margin-bottom: 6px }
.online { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between }
.online p { font: 400 14.5px/1.5 var(--font); color: #6B7280 }
.faces { display: flex; flex: none; margin-top: 8px }
.faces i {
  display: grid; place-items: center; width: 34px; height: 34px; margin-left: -9px; border-radius: 50%; border: 2px solid #FFF;
  font: 600 13px/1 var(--font); font-style: normal; color: #3B3F48;
}
.faces i:nth-child(1) { background: #CFEFE4 }
.faces i:nth-child(2) { background: #E3E0F7 }
.faces i:nth-child(3) { background: #FBE0CC }
.chat__go { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 12px; font: 600 15px/1.4 var(--font); color: #12A956 }
.chat__go:hover { color: #0C8A45 }
.chat__go .ic { width: 18px; height: 18px }
.chat__go .ic:last-child { width: 16px; height: 16px; margin-left: auto }


.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 2000; max-width: min(92vw, 480px); padding: 12px 16px; border-radius: 12px;
  background: var(--elevated); border: 1px solid var(--border-subtle); font: 500 14px/20px var(--font);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .35); opacity: 0; transform: translate(-50%, 8px); pointer-events: none;
  transition: opacity .18s ease, transform .18s ease; white-space: pre-line;
}
@media (max-width: 767px) { .toast { bottom: calc(96px + env(safe-area-inset-bottom, 0px)) } }
.toast.is-on { opacity: 1; transform: translate(-50%, 0) }
.toast--ok { border-color: rgba(101, 212, 110, .3) }
.toast--err { border-color: rgba(255, 138, 128, .3); color: var(--danger) }


.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 20px;
  border-radius: 8px; border: 1px solid transparent; font: 700 14px/20px var(--font); text-align: center;
  transition: background-color var(--ease), border-color var(--ease), color var(--ease), filter var(--ease);
}
.btn .ic { width: 18px; height: 18px }
.btn--accent { background: var(--grad); color: var(--on-accent) }
.btn--accent:hover { filter: brightness(1.04) }
.btn--ghost { border-color: var(--border-subtle); color: var(--text) }
.btn--ghost:hover { border-color: var(--border-strong); background: var(--overlay-weak) }
.btn--danger { background: rgba(255, 138, 128, .14); border-color: rgba(255, 138, 128, .3); color: var(--danger) }
.btn--danger:hover { background: rgba(255, 138, 128, .22) }
.btn--block { width: 100% }
.btn--sm { min-height: 36px; padding: 8px 12px; font-size: 13px }
.btn:disabled { background: rgba(244, 246, 243, .06); border-color: transparent; color: rgba(244, 246, 243, .38); cursor: not-allowed; filter: none }
.linkbtn { align-self: flex-start; font: 500 14px/20px var(--font); color: var(--accent); text-decoration: underline; text-underline-offset: 2px }
.linkbtn:hover { color: #A7EEE3 }
.row { display: flex; flex-wrap: wrap; gap: 8px }
.row > .btn { flex: 1 1 180px }

.bal { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; border-radius: 24px }
.bal--col { flex-direction: column; align-items: stretch }
.bal__l { font: 500 14px/20px var(--font); color: var(--muted) }
.bal__v { font: 500 24px/normal var(--font) }
.bal__h { margin-top: 4px; font: 500 12px/normal var(--font); color: var(--muted) }
.bal > .btn { flex: none }

.kv { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; font: 500 14px/20px var(--font) }
.kv + .kv { border-top: 1px solid var(--border) }
.kv > span:first-child { color: var(--muted) }
.kv b { font-weight: 500; text-align: right; overflow-wrap: anywhere }
.kv--warn b { color: var(--warn) }
.kvs .kv:first-child { padding-top: 4px }
.kvs .kv:last-child { padding-bottom: 4px }
.kv--sw { padding: 16px 0 0; border-top: 1px solid var(--border) }

.pill { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 2px 8px; border-radius: 8px; font: 500 12px/24px var(--font); white-space: nowrap }
.pill .ic { width: 14px; height: 14px }
.pill--ok { background: rgba(101, 212, 110, .14); color: var(--ok) }
.pill--warn { background: rgba(255, 209, 102, .14); color: var(--warn) }
.pill--danger { background: rgba(255, 138, 128, .14); color: var(--danger) }
.pill--muted { background: rgba(177, 185, 180, .12); color: var(--inactive) }
.pill--info { background: var(--accent-soft-weak); color: var(--accent) }

.sw { position: relative; flex: none; width: 40px; height: 24px; border-radius: 9999px; background: var(--border-subtle); transition: background-color var(--ease) }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #FFF; transition: transform .18s ease }
.sw[aria-checked="true"] { background: var(--accent) }
.sw[aria-checked="true"]::after { transform: translateX(16px) }
.sw:disabled { opacity: .5 }

.field__l { display: block; margin-bottom: 8px; font: 500 14px/20px var(--font); color: var(--muted) }
.field__h { margin-top: 8px; font: 500 12px/normal var(--font); color: var(--muted) }
.inp {
  display: block; width: 100%; min-height: 48px; padding: 12px 16px; border-radius: 8px; border: 1px solid var(--border-strong);
  background: var(--bg-sunken); color: var(--text); font: 500 14px/20px var(--font);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.inp::placeholder { color: var(--placeholder) }
.inp:hover { border-color: var(--muted) }
.inp:focus { outline: none; border-color: rgba(120, 214, 207, .58); box-shadow: 0 0 0 3px rgba(120, 214, 207, .18) }
textarea.inp { min-height: 112px; resize: vertical }
.inp[type=number] { -moz-appearance: textfield }
.inp::-webkit-outer-spin-button, .inp::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0 }

.chips { display: flex; flex-wrap: wrap; gap: 8px }
.chip { min-height: 40px; padding: 8px 16px; border-radius: 8px; background: var(--surface); font: 500 14px/20px var(--font); transition: color var(--ease), box-shadow var(--ease) }
.chip:hover { color: var(--accent) }
.chip[aria-pressed="true"] { background: var(--accent-soft-weak); color: var(--accent); box-shadow: inset 0 0 0 1px var(--nav-active-border) }

.copy {
  display: grid; grid-template-columns: minmax(0, 1fr) 20px; align-items: center; column-gap: 8px; width: 100%; min-height: 48px;
  padding: 0 16px; border-radius: 8px; background: var(--surface); text-align: left; transition: background-color .15s ease;
}
.copy:hover { background: var(--elevated) }
.copy__v { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 14px/20px var(--font) }
.copy .ic { width: 16px; height: 16px; color: var(--muted) }
.glass .copy, .glass .chip, .glass .iconbtn { background: rgba(9, 10, 10, .55) }
.glass .copy:hover, .glass .chip:hover { background: rgba(9, 10, 10, .8) }

.keyc { display: flex; flex-direction: column; gap: 16px; padding: 16px 24px; border-radius: 24px }
.keyc__hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px }
.keyc__name { margin-bottom: 8px; font: 500 18px/normal var(--font); overflow-wrap: anywhere }
.keyc__meta { display: flex; flex-wrap: wrap; gap: 8px }
.keyc__tools { display: flex; gap: 8px }
.keyc .row > .btn { flex: 0 1 auto; min-width: 180px }
@media (max-width: 767px) { .keyc .row > .btn { flex: 1 1 100% } }
.iconbtn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; background: var(--surface); color: var(--text-2); transition: color var(--ease) }
.iconbtn:hover { color: var(--accent) }
.iconbtn .ic { width: 18px; height: 18px }

.op { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 16px }
.op:not(:last-child)::after { content: ""; position: absolute; left: 64px; right: 16px; bottom: 0; height: 1px; background: var(--border) }
.op__ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9999px; background: var(--surface); color: var(--muted) }
.op__ic .ic { width: 18px; height: 18px }
.op__ic--plus { background: rgba(101, 212, 110, .14); color: var(--ok) }
.op__t { font: 500 14px/20px var(--font) }
.op__s { margin-top: 2px; font: 500 12px/normal var(--font); color: var(--muted); overflow-wrap: anywhere }
.op__a { font: 700 14px/20px var(--font); white-space: nowrap }
.op__a--plus { color: var(--ok) }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px }
.stat { padding: 16px; border-radius: 12px; background: var(--surface) }
.stat b { display: block; font: 500 20px/normal var(--font); white-space: nowrap }
.stat span { display: block; margin-top: 4px; font: 500 12px/normal var(--font); color: var(--muted) }
@media (max-width: 420px) { .stat b { font-size: 16px } .stat { padding: 12px } }

.inv { display: flex; align-items: center; justify-content: space-between; gap: 16px }

.msgs { display: flex; flex-direction: column; gap: 12px }
.msg { max-width: 88%; padding: 12px 14px; border-radius: 12px; font: 500 14px/20px var(--font); white-space: pre-line; overflow-wrap: anywhere }
.msg small { display: block; margin-bottom: 4px; font: 500 12px/normal var(--font); color: var(--muted) }
.msg--me { align-self: flex-end; background: var(--accent-soft-weak); border: 1px solid var(--info-border) }
.msg--sup { align-self: flex-start; background: var(--surface) }

.steps { display: grid; gap: 10px; counter-reset: st }
.steps li { position: relative; padding-left: 36px; min-height: 24px; font: 500 14px/24px var(--font); color: var(--text-2); counter-increment: st }
.steps li::before {
  content: counter(st); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 24px; height: 24px;
  border-radius: 50%; background: var(--accent-soft-weak); color: var(--accent); font: 700 12px/1 var(--font);
}

.fl { display: block; flex: none; width: 20px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 .5px rgba(255, 255, 255, .16) }
.litem > .fl { margin: 0 10px 0 2px }
.langbtn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--border-subtle); color: var(--text-2); font: 500 14px/20px var(--font);
  transition: color var(--ease), border-color var(--ease);
}
.langbtn:hover { color: var(--text); border-color: var(--border-strong) }
.langbtn .ic { width: 14px; height: 14px; opacity: .7 }
@media (max-width: 480px) { .langbtn__t { display: none } .auth__hd .logo span { font-size: 22px } }


.dev { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0 }
.dev + .dev { border-top: 1px solid var(--border) }
.dev__ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9999px; background: var(--surface); color: var(--muted) }
.dev__ic .ic { width: 18px; height: 18px }
.dev__t { font: 500 14px/20px var(--font); overflow-wrap: anywhere }
.dev__s { font: 500 12px/normal var(--font); color: var(--muted); overflow-wrap: anywhere }
.dev--stale .dev__t { color: var(--muted) }

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; animation: none !important }
}
