/* ЕбаБанк — стили «приложения» внутри телефона */
.app {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text); font-family: var(--font-body);
  font-size: 15px; line-height: 1.35; overflow: hidden;
  transition: background .35s, color .35s;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
:where(.app) button { border: 0; background: none; padding: 0; }
:where(.app) input, :where(.app) textarea { font: inherit; color: inherit; }
.app h1, .app h2, .app h3 { font-family: var(--font); letter-spacing: -.02em; margin: 0; }

/* Статус-бар */
.statusbar {
  flex: 0 0 50px; display: flex; align-items: center; justify-content: space-between;
  padding: 8px 32px 0 40px; font-weight: 700; font-size: 15px; font-family: -apple-system, "Inter", sans-serif;
  background: var(--header-bg); color: var(--header-text); position: relative; z-index: 5;
}
.sb-right { display: flex; gap: 6px; align-items: center; }
.sb-right i { display: block; background: currentColor; }
.sig { width: 17px; height: 11px; clip-path: polygon(0 100%, 0 70%, 22% 70%, 22% 100%, 26% 100%, 26% 48%, 48% 48%, 48% 100%, 52% 100%, 52% 24%, 74% 24%, 74% 100%, 78% 100%, 78% 0, 100% 0, 100% 100%); }
.wifi { width: 15px; height: 11px; clip-path: polygon(50% 100%, 0 30%, 15% 15%, 50% 0, 85% 15%, 100% 30%); }
.bat { width: 25px; height: 12px; border-radius: 3px; position: relative; background: transparent !important; border: 1.5px solid currentColor; opacity: .9; }
.bat::after { content: ""; position: absolute; inset: 1.5px; right: 40%; background: currentColor; border-radius: 1px; }
@media (max-width: 560px) { .statusbar { display: none; } }

.views { flex: 1; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: none; position: relative; }
.views::-webkit-scrollbar { display: none; }
.view { padding: 0 16px 110px; animation: viewIn .3s ease; }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } }

/* Шапка */
.top {
  display: flex; align-items: center; gap: 10px; padding: 6px 16px 12px; margin: 0 -16px;
  background: var(--header-bg); color: var(--header-text);
}
.avatar {
  position: relative; flex: 0 0 40px; height: 40px; border-radius: 50%; background: var(--brand-grad); color: var(--on-brand) !important;
  font-weight: 800; font-family: var(--font); display: grid; place-items: center;
}
.search {
  flex: 1; height: 40px; border-radius: 14px; background: var(--surface-2); color: var(--muted);
  display: flex; align-items: center; gap: 8px; padding: 0 12px; font-size: 14px; cursor: pointer; white-space: nowrap; overflow: hidden;
}
[data-skin="vtb"] .top .search { background: rgba(255,255,255,.14); color: rgba(255,255,255,.75); }
.ico {
  position: relative; flex: 0 0 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 19px;
  background: var(--surface-2);
}
[data-skin="vtb"] .top .ico { background: rgba(255,255,255,.14); }
.badge {
  position: absolute; top: -3px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--danger); color: #fff; font: 700 11px/18px var(--font-body); text-align: center;
  box-shadow: 0 0 0 2px var(--bg); animation: pop .3s ease;
}
@keyframes pop { 50% { transform: scale(1.35); } }

.greet { padding: 4px 2px 14px; }
.greet h2 { font-size: 22px; }
.greet small { display: block; color: var(--muted); margin-top: 3px; font-size: 13px; }
[data-skin="vtb"] .greet { background: var(--header-bg); color: #fff; margin: 0 -16px; padding: 4px 18px 18px; border-radius: 0 0 24px 24px; }
[data-skin="vtb"] .greet small { color: rgba(255,255,255,.7); }

/* Сторис */
.stories { display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 4px 16px 14px; scrollbar-width: none; }
.stories::-webkit-scrollbar { display: none; }
[data-skin="vtb"] .stories { padding-top: 14px; }
.story {
  flex: 0 0 76px; height: 96px; border-radius: 18px; padding: 3px; background: var(--brand-grad); position: relative; cursor: pointer;
  transition: transform .15s;
}
.story:active { transform: scale(.95); }
.story.seen { background: var(--line); }
.story > div {
  height: 100%; border-radius: 15px; border: 2px solid var(--bg); display: flex; flex-direction: column; justify-content: space-between;
  padding: 7px 7px 6px; color: #fff; font-size: 11px; font-weight: 700; line-height: 1.15;
}
.story > div.dark-text { color: #3A1424; }
.story span { font-size: 26px; }
.story .new { position: absolute; top: -4px; right: -4px; background: var(--danger); color: #fff; font-size: 9px; font-weight: 800; border-radius: 6px; padding: 2px 5px; }

/* Карточки */
.card { background: var(--surface); border-radius: var(--r-l); padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow); position: relative; }
.card h3 { font-size: 16px; }
.card .sub { color: var(--muted); font-size: 13px; margin-top: 3px; }
.row { display: flex; align-items: center; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.tag { display: inline-block; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 8px; background: var(--danger); color: #fff; letter-spacing: .02em; }
.tag.soft { background: var(--brand-soft); color: var(--brand); }
[data-skin="tbank"] .tag.soft { color: #333; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 20px;
  border-radius: var(--r-m); background: var(--brand); color: var(--on-brand) !important; font-weight: 700; font-size: 15px;
  transition: transform .12s, filter .2s; cursor: pointer; text-align: center;
}
.btn:active { transform: scale(.97); }
.btn:hover { filter: brightness(1.05); }
.btn.grad { background: var(--brand-grad); }
.btn.block { width: 100%; }
.btn.ghost { background: var(--surface-2); color: var(--text) !important; }
.btn.small { height: 36px; padding: 0 14px; font-size: 13px; border-radius: var(--r-s); }
.btn.white { background: #fff; color: #111 !important; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.link-no { display: block; margin: 12px auto 0; color: var(--muted); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; opacity: .8; cursor: pointer; }

/* Предодобренный кредит */
.preapproved { background: var(--brand-grad); color: var(--on-brand); overflow: hidden; }
.preapproved .sub { color: inherit; opacity: .85; }
.preapproved .big { font-family: var(--font); font-size: 32px; font-weight: 800; letter-spacing: -.03em; margin: 6px 0 2px; }
.preapproved .timer { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 12px; background: rgba(0,0,0,.18); padding: 3px 8px; border-radius: 8px; }
.preapproved .btn { background: #fff; color: #111 !important; margin-top: 12px; }
.preapproved .deco { position: absolute; right: -10px; top: -6px; font-size: 92px; transform: rotate(-12deg); opacity: .9; pointer-events: none; }

/* Счёт */
.account .acc-ico { width: 44px; height: 30px; border-radius: 6px; background: var(--brand-grad); position: relative; }
.account .acc-ico::after { content: ""; position: absolute; left: 6px; bottom: 6px; width: 10px; height: 7px; border-radius: 2px; background: rgba(255,255,255,.8); }
.balance { font-family: var(--font); font-size: 24px; font-weight: 800; letter-spacing: -.02em; display: flex; align-items: center; gap: 8px; }
.balance .mask { letter-spacing: .1em; color: var(--muted); }
.show-bal { font-size: 12px; font-weight: 700; color: var(--brand); padding: 6px 10px; border-radius: 10px; background: var(--brand-soft); cursor: pointer; }
[data-skin="tbank"] .show-bal { color: #333; }
.acc-foot { display: flex; gap: 8px; margin-top: 12px; }
.acc-foot .pill { font-size: 12px; padding: 6px 10px; border-radius: 10px; background: var(--surface-2); color: var(--muted); }

/* Быстрые действия */
.qa { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px 12px; padding: 4px 16px 6px; scrollbar-width: none; }
.qa::-webkit-scrollbar { display: none; }
.qa-item { flex: 0 0 auto; width: 76px; display: grid; justify-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; text-align: center; line-height: 1.15; cursor: pointer; }
.qa-item .qi {
  width: 58px; height: 58px; border-radius: 20px; display: grid; place-items: center; font-size: 26px;
  background: var(--surface); box-shadow: var(--shadow); position: relative;
}
.qa-item.hot .qi { background: var(--brand-grad); }
.qa-item.tiny { width: 50px; opacity: .55; font-size: 9px; }
.qa-item.tiny .qi { width: 34px; height: 34px; border-radius: 10px; font-size: 15px; box-shadow: none; background: var(--surface-2); filter: grayscale(1); }
.qa-item .badge { top: -4px; right: -4px; }

/* Ленивые баннеры (layout shift) */
.lazy { overflow: hidden; animation: grow .35s cubic-bezier(.2,.8,.2,1); }
@keyframes grow { from { max-height: 0; opacity: 0; margin-bottom: 0; } to { max-height: 200px; opacity: 1; } }
.banner {
  border-radius: var(--r-l); padding: 16px; color: #fff; display: flex; align-items: center; gap: 12px; margin-bottom: 12px; cursor: pointer;
  position: relative; overflow: hidden;
}
.banner b { font-family: var(--font); font-size: 15px; display: block; }
.banner small { opacity: .85; font-size: 12px; display: block; margin-top: 2px; }
.banner .be { font-size: 40px; }
.banner .x { position: absolute; top: 6px; right: 8px; font-size: 12px; opacity: .45; width: 16px; height: 16px; }

/* Карусель промо */
.carousel { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; margin: 0 -16px 12px; padding: 0 16px; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.promo {
  flex: 0 0 82%; height: 150px; border-radius: var(--r-l); padding: 16px; color: #fff; scroll-snap-align: start;
  display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; cursor: pointer;
}
.promo b { font-family: var(--font); font-size: 18px; line-height: 1.15; max-width: 75%; }
.promo .pe { position: absolute; right: 10px; bottom: 6px; font-size: 64px; }
.promo small { font-size: 9px; opacity: .7; max-width: 70%; }
.dots { display: flex; gap: 5px; justify-content: center; margin: -4px 0 14px; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line); transition: width .3s; }
.dots i.on { width: 18px; background: var(--brand); }
[data-skin="tbank"] .dots i.on { background: #333; }

/* Виджеты */
.sec-title { display: flex; align-items: baseline; justify-content: space-between; margin: 18px 2px 10px; }
.sec-title h3 { font-size: 18px; }
.sec-title a, .sec-title button { font-size: 13px; color: var(--muted); cursor: pointer; text-decoration: none; }
.shame { display: flex; gap: 12px; align-items: center; }
.donut { width: 64px; height: 64px; border-radius: 50%; flex: 0 0 64px; background: conic-gradient(var(--danger) 0 66%, var(--brand) 66% 86%, var(--line) 86%); display: grid; place-items: center; }
.donut::after { content: "34"; width: 46px; height: 46px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-family: var(--font); font-weight: 800; font-size: 15px; color: var(--danger); }
.cb-remind { border: 2px dashed var(--danger); animation: wiggle 3s ease infinite; }
@keyframes wiggle { 0%, 90%, 100% { transform: none; } 92% { transform: rotate(-1deg); } 94% { transform: rotate(1deg); } 96% { transform: rotate(-1deg); } }
.feed { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.feed .card { margin: 0; padding: 0; overflow: hidden; cursor: pointer; }
.feed .fi { height: 90px; display: grid; place-items: center; font-size: 40px; }
.feed .ft { padding: 10px 12px 12px; font-size: 13px; font-weight: 700; line-height: 1.25; }
.feed .ft small { display: block; color: var(--muted); font-weight: 500; margin-top: 4px; font-size: 11px; }
.more-widgets { width: 100%; padding: 14px; border-radius: var(--r-m); background: var(--surface-2); color: var(--muted); font-size: 13px; font-weight: 600; margin: 4px 0 12px; cursor: pointer; }
.rate-widget .blur { filter: blur(6px); }
.lock { font-size: 12px; color: var(--muted); }
.settings-home { display: block; margin: 8px auto 0; font-size: 13px; color: var(--muted); padding: 10px; }

/* Списки */
.list { background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 12px; }
.li { display: flex; align-items: center; gap: 12px; padding: 13px 16px; cursor: pointer; position: relative; }
.li + .li::before { content: ""; position: absolute; top: 0; left: 64px; right: 0; height: 1px; background: var(--line); }
.li .le { flex: 0 0 38px; height: 38px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; font-size: 19px; }
.li .lt { flex: 1; min-width: 0; font-weight: 600; font-size: 14.5px; }
.li .lt small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; margin-top: 2px; }
.li .chev { color: var(--muted); }
.li.faint { opacity: .5; }

/* Сетка сервисов */
.grid-svc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 6px; }
.svc { display: grid; justify-items: center; gap: 5px; font-size: 11px; font-weight: 600; text-align: center; line-height: 1.15; cursor: pointer; }
.svc .si { width: 56px; height: 56px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); display: grid; place-items: center; font-size: 26px; position: relative; }
.svc .si .tag { position: absolute; top: -6px; right: -10px; font-size: 8px; padding: 2px 4px; }

/* Таббар */
.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; justify-content: space-around;
  padding: 8px 6px 26px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
}
@media (max-width: 560px) { .tabbar { padding-bottom: max(10px, env(safe-area-inset-bottom)); } }
.tab { flex: 1; display: grid; justify-items: center; gap: 3px; font-size: 10.5px; font-weight: 600; color: var(--muted); position: relative; cursor: pointer; transition: color .2s; }
.tab svg { width: 26px; height: 26px; }
.tab.on { color: var(--tab-active); }
.tab .badge { top: -4px; right: calc(50% - 22px); }
.tabbar.shuffling .tab { animation: shuffle .6s ease; }
@keyframes shuffle { 30% { transform: translateY(-14px) rotate(-8deg); } 60% { transform: translateY(4px) rotate(5deg); } }

/* Пуши */
.pushes { position: absolute; top: 46px; left: 8px; right: 8px; z-index: 60; display: grid; gap: 6px; pointer-events: none; }
@media (max-width: 560px) { .pushes { top: 6px; } }
.push {
  pointer-events: auto; display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border-radius: 20px;
  background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(22px) saturate(1.6); color: var(--text);
  box-shadow: 0 10px 30px rgba(0,0,0,.18); cursor: pointer; animation: pushIn .45s cubic-bezier(.2,1.2,.3,1);
}
.push.out { animation: pushOut .3s ease forwards; }
@keyframes pushIn { from { transform: translateY(-120%); opacity: 0; } }
@keyframes pushOut { to { transform: translateY(-120%); opacity: 0; } }
.push .pi { flex: 0 0 38px; height: 38px; border-radius: 10px; background: var(--brand-grad); display: grid; place-items: center; font-size: 19px; }
.push.sms .pi { background: #34C759; }
.push .pt { flex: 1; min-width: 0; font-size: 13px; line-height: 1.3; }
.push .pt b { display: flex; justify-content: space-between; font-size: 13px; }
.push .pt b span { font-weight: 400; color: var(--muted); font-size: 11px; }
.push .pt div { color: var(--text); opacity: .85; }

/* Оверлеи */
.layer { position: absolute; inset: 0; z-index: 50; pointer-events: none; }
.ov { position: absolute; inset: 0; isolation: isolate; pointer-events: auto; display: flex; align-items: center; justify-content: center; padding: 20px; }
.ov-back { position: absolute; inset: 0; background: rgba(8, 6, 20, .55); backdrop-filter: blur(3px); opacity: 0; transition: opacity .25s; }
.ov.in .ov-back { opacity: 1; }
.ov-card {
  position: relative; width: 100%; max-height: 100%; overflow-y: auto; scrollbar-width: none; background: var(--surface); color: var(--text);
  border-radius: 28px; padding: 24px 20px 20px; text-align: center; box-shadow: 0 30px 60px rgba(0,0,0,.3);
  transform: scale(.9); opacity: 0; transition: transform .3s cubic-bezier(.2,1.3,.3,1), opacity .2s;
}
.ov.in .ov-card { transform: none; opacity: 1; }
.ov.out .ov-card { transform: scale(.94); opacity: 0; }
.ov.out .ov-back { opacity: 0; }
.ov-card h2 { font-size: 21px; line-height: 1.2; margin-bottom: 8px; }
.ov-card p { color: var(--muted); font-size: 14px; line-height: 1.45; margin: 0 0 16px; }
.ov-card .hero { font-size: 64px; line-height: 1; margin: 4px 0 12px; }
.ov-card .btn + .btn { margin-top: 8px; }
.ov-card .fine { font-size: 9.5px; color: var(--muted); opacity: .8; margin-top: 14px; line-height: 1.35; text-align: left; }

/* Нижний лист */
.ov.sheet { align-items: flex-end; padding: 0; }
.ov.sheet .ov-card { border-radius: 28px 28px 0 0; transform: translateY(100%); text-align: left; padding: 10px 18px 30px; max-height: 92%; }
.ov.sheet.in .ov-card { transform: none; transition: transform .38s cubic-bezier(.2,.9,.25,1); }
.ov.sheet.out .ov-card { transform: translateY(100%); opacity: 1; }
.grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 12px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; padding-right: 40px; }
.sheet-head h2 { font-size: 20px; margin: 0; }
.step { font-size: 12px; color: var(--muted); font-weight: 600; }

/* Полноэкранный */
.ov.full { padding: 0; }
.ov.full .ov-card { border-radius: 0; height: 100%; max-height: none; display: flex; flex-direction: column; justify-content: center; padding: 70px 24px 40px; }

/* Крестик */
.xbtn {
  position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); color: var(--muted); font-size: 15px; z-index: 3; cursor: pointer; transition: top .25s, right .25s, left .25s, opacity .3s;
}
.xbtn.tiny { width: 18px; height: 18px; font-size: 10px; opacity: .35; background: rgba(0,0,0,.2); color: #fff; }
.xbtn.wait { pointer-events: none; }
.xbtn.wait span { font-size: 10px; font-weight: 800; }
.ov.full .xbtn { top: 54px; }
@media (max-width: 560px) { .ov.full .xbtn { top: 14px; } }

/* Полноэкранная реклама */
/* не «adfull»: в EasyList есть generic-правило ##.adfull, и блокировщики рекламы прятали карточку, оставляя один блюр */
.offer-full { background: var(--brand-grad) !important; color: var(--on-brand) !important; }
.offer-full h2 { font-size: 30px; }
.offer-full p { color: inherit !important; opacity: .85; }
.offer-full .fomo { display: inline-flex; gap: 4px; margin: 6px auto 18px; font-family: var(--font); font-variant-numeric: tabular-nums; }
.offer-full .fomo b { background: rgba(0,0,0,.2); border-radius: 8px; padding: 6px 8px; font-size: 20px; min-width: 40px; }
.offer-full .btn { background: #fff; color: #111 !important; }
.offer-full .link-no { color: inherit; opacity: .55; }
.offer-full .fine { color: inherit; opacity: .55; }

/* Сторис-вьюер */
.story-view { position: absolute; inset: 0; color: #fff; display: flex; flex-direction: column; padding: 56px 18px 30px; }
@media (max-width: 560px) { .story-view { padding-top: 14px; } }
.story-view.dark-text { color: #3A1424; }
.sv-bars { display: flex; gap: 4px; }
.sv-bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.35); overflow: hidden; }
.dark-text .sv-bars i { background: rgba(0,0,0,.15); }
.sv-bars i b { display: block; height: 100%; width: 0; background: currentColor; }
.sv-bars i.done b { width: 100%; }
.sv-head { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-weight: 700; font-size: 14px; }
.sv-head .avatar { flex-basis: 32px; height: 32px; font-size: 14px; }
.sv-head small { opacity: .7; font-weight: 500; }
.sv-head .sv-x { margin-left: auto; font-size: 26px; line-height: 1; opacity: .9; cursor: pointer; padding: 4px; }
.sv-body { flex: 1; display: flex; flex-direction: column; justify-content: center; text-align: center; animation: viewIn .35s ease; }
.sv-body .se { font-size: 96px; line-height: 1; margin-bottom: 20px; font-family: var(--font); font-weight: 900; }
.sv-body h2 { font-size: 28px; margin-bottom: 10px; color: inherit; }
.sv-body p { font-size: 16px; opacity: .9; line-height: 1.45; margin: 0; }
.sv-tap { position: absolute; top: 100px; bottom: 110px; width: 40%; z-index: 2; }
.sv-tap.l { left: 0; } .sv-tap.r { right: 0; width: 60%; }
.sv-cta { position: relative; z-index: 3; }
.sv-nope { position: absolute; left: 0; right: 0; bottom: 120px; text-align: center; z-index: 4; font-weight: 700; font-size: 14px; animation: pop .4s ease; }

/* Формы */
.field { display: block; margin-bottom: 12px; }
.field span { display: block; font-size: 12px; color: var(--muted); margin: 0 0 6px 4px; font-weight: 600; }
.field input, .field textarea {
  width: 100%; border: 2px solid transparent; outline: none; background: var(--surface-2); border-radius: var(--r-m); padding: 14px 16px; font-size: 17px; font-weight: 600;
  user-select: text; transition: border-color .2s;
}
.field input:focus, .field textarea:focus { border-color: var(--brand); }
.field textarea { font-size: 14px; font-weight: 500; min-height: 90px; resize: none; }
.contacts { display: flex; gap: 10px; overflow-x: auto; margin: 0 -18px 14px; padding: 0 18px; scrollbar-width: none; }
.contact { flex: 0 0 72px; display: grid; justify-items: center; gap: 6px; font-size: 11px; text-align: center; cursor: pointer; }
.contact .avatar { width: 52px; height: 52px; flex-basis: 52px; font-size: 22px; }
.contact.sel .avatar { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--brand); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.chip { padding: 8px 12px; border-radius: 12px; background: var(--surface-2); font-size: 13px; font-weight: 600; cursor: pointer; }
.chip.hot { background: var(--brand-soft); color: var(--brand); }
[data-skin="tbank"] .chip.hot { color: #333; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 14px; }
.check input { appearance: none; flex: 0 0 22px; height: 22px; border-radius: 7px; border: 2px solid var(--muted); margin: 0; display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: var(--brand); border-color: var(--brand); }
.check input:checked::after { content: "✓"; color: var(--on-brand); font-size: 13px; font-weight: 900; }
.check small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.check .price { margin-left: auto; font-weight: 700; white-space: nowrap; }
.sum { display: flex; justify-content: space-between; padding: 10px 2px; font-size: 14px; }
.sum.total { font-weight: 800; font-size: 17px; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px; }
.fee-note { font-size: 12px; background: var(--brand-soft); color: var(--text); padding: 10px 12px; border-radius: 12px; margin: 10px 0 14px; }
.quiz-q { font-weight: 700; font-size: 16px; margin: 6px 0 12px; }
.opts { display: grid; gap: 8px; margin-bottom: 8px; }
.opt { padding: 13px 14px; border-radius: 14px; background: var(--surface-2); font-weight: 600; text-align: left; cursor: pointer; transition: background .15s; }
.opt:hover { background: var(--brand-soft); }
.progress { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; margin: 12px 0; }
.progress i { display: block; height: 100%; width: 0; background: var(--brand-grad); transition: width .3s linear; }
.code { display: flex; gap: 10px; justify-content: center; margin: 10px 0 18px; }
.code input { width: 52px; height: 60px; text-align: center; font-size: 26px; font-weight: 800; border-radius: 14px; border: 2px solid var(--line); background: var(--surface-2); outline: none; user-select: text; }
.code input:focus { border-color: var(--brand); }

/* Видео-реклама */
.video { height: 200px; border-radius: 20px; background: linear-gradient(120deg, #111, #333); position: relative; overflow: hidden; display: grid; place-items: center; color: #fff; margin-bottom: 14px; }
.video::before { content: ""; position: absolute; inset: -50%; background: conic-gradient(from 0deg, transparent, rgba(255,255,255,.15), transparent 30%); animation: spin 3s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.video .vt { position: relative; font-family: var(--font); font-weight: 800; font-size: 22px; padding: 0 20px; text-align: center; animation: viewIn .4s ease; }
.video .vc { position: absolute; top: 10px; right: 12px; font-size: 12px; background: rgba(0,0,0,.5); padding: 4px 8px; border-radius: 8px; font-variant-numeric: tabular-nums; }
.video .vbar { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--brand-2); width: 0; transition: width 1s linear; }

/* Заставка и PIN */
.splash { position: absolute; inset: 0; z-index: 80; background: var(--brand-grad); color: var(--on-brand); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; transition: opacity .4s; }
.splash .slogo { width: 96px; height: 96px; border-radius: 30px; background: rgba(255,255,255,.18); display: grid; place-items: center; font: 900 54px/1 "Unbounded", sans-serif; animation: breathe 1.4s ease infinite; }
@keyframes breathe { 50% { transform: scale(1.08); } }
.splash .sname { font: 700 22px "Unbounded", sans-serif; }
.splash .sload { width: 180px; text-align: center; font-size: 12px; opacity: .85; min-height: 32px; }
.splash .sbar { width: 180px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.25); overflow: hidden; }
.splash .sbar i { display: block; height: 100%; width: 0; background: currentColor; transition: width .25s; }
.pin { position: absolute; inset: 0; z-index: 45; background: var(--bg); display: flex; flex-direction: column; align-items: center; padding: 90px 30px 40px; }
@media (max-width: 560px) { .pin { padding-top: 50px; } }
.pin h2 { font-size: 20px; margin: 16px 0 4px; }
.pin .pdots { display: flex; gap: 16px; margin: 26px 0 30px; }
.pin .pdots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--muted); transition: background .15s; }
.pin .pdots i.f { background: var(--brand); border-color: var(--brand); }
[data-skin="tbank"] .pin .pdots i.f { background: #333; border-color: #333; }
.pin .pad { display: grid; grid-template-columns: repeat(3, 72px); gap: 16px 26px; }
.pin .pad button { width: 72px; height: 72px; border-radius: 50%; background: var(--surface); font-size: 28px; font-weight: 500; box-shadow: var(--shadow); color: var(--text); }
.pin .pad button:active { background: var(--brand-soft); }
.pin .pad button.empty { visibility: hidden; }
.pin .pad button.fn { background: none; box-shadow: none; font-size: 14px; color: var(--muted); }
.pin .pad-ad { margin-top: 20px; font-size: 12px; color: var(--muted); text-align: center; }

/* Звонок */
.call { position: absolute; inset: 0; background: linear-gradient(180deg, #2C2C34, #121216); color: #fff; display: flex; flex-direction: column; align-items: center; padding: 100px 24px 60px; text-align: center; }
.call .cname { font-size: 30px; font-weight: 500; margin-top: 18px; }
.call .cnum { opacity: .65; margin-top: 4px; }
.call .cspam { margin-top: 10px; font-size: 12px; background: rgba(255,59,48,.2); color: #FF8A80; padding: 4px 10px; border-radius: 8px; }
.call .cava { width: 96px; height: 96px; border-radius: 50%; background: var(--brand-grad); display: grid; place-items: center; font: 900 44px "Unbounded", sans-serif; animation: ring 1s ease infinite; }
@keyframes ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.4); } 70% { box-shadow: 0 0 0 26px rgba(255,255,255,0); } }
.call .cbtns { margin-top: auto; display: flex; justify-content: space-between; width: 100%; padding: 0 20px; }
.call .cb { display: grid; justify-items: center; gap: 8px; font-size: 13px; cursor: pointer; color: #fff; }
.call .cb i { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; font-style: normal; }
.call .cb.dec i { background: #FF3B30; transform: rotate(135deg); }
.call .cb.acc i { background: #34C759; animation: breathe 1s ease infinite; }
.call .transcript { width: 100%; text-align: left; display: grid; gap: 8px; margin-top: 24px; max-height: 300px; overflow-y: auto; }
.call .transcript div { background: rgba(255,255,255,.1); border-radius: 14px 14px 14px 4px; padding: 10px 12px; font-size: 14px; animation: viewIn .3s ease; }
.call .transcript div.me { background: #34C759; border-radius: 14px 14px 4px 14px; justify-self: end; }

/* Чат */
.chat { display: flex; flex-direction: column; min-height: 100%; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 6px 0 12px; position: sticky; top: 0; background: var(--bg); z-index: 2; }
.chat-head .avatar { flex-basis: 40px; font-size: 20px; }
.chat-head b { display: block; font-family: var(--font); font-size: 15px; }
.chat-head small { color: var(--muted); font-size: 12px; }
.msgs { display: flex; flex-direction: column; gap: 8px; padding-bottom: 130px; }
.msg { max-width: 82%; padding: 10px 13px; border-radius: 18px 18px 18px 6px; background: var(--surface); box-shadow: var(--shadow); font-size: 14px; line-height: 1.4; animation: viewIn .25s ease; align-self: flex-start; white-space: pre-line; }
.msg.me { align-self: flex-end; background: var(--brand); color: var(--on-brand); border-radius: 18px 18px 6px 18px; }
.msg.sys { align-self: center; background: none; box-shadow: none; color: var(--muted); font-size: 12px; text-align: center; }
.msg .qr { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.msg .qr button { padding: 7px 10px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-size: 12.5px; font-weight: 700; cursor: pointer; }
[data-skin="tbank"] .msg .qr button { color: #333; }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: tdot 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes tdot { 50% { transform: translateY(-4px); opacity: .4; } }
.composer { position: absolute; left: 0; right: 0; bottom: 78px; z-index: 9; display: flex; gap: 8px; padding: 8px 12px; background: var(--bg); }
@media (max-width: 560px) { .composer { bottom: 64px; } }
.composer input { flex: 1; height: 44px; border-radius: 22px; border: 0; outline: none; background: var(--surface); padding: 0 16px; box-shadow: var(--shadow); user-select: text; }
.composer button { width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-size: 18px; }

/* Игры */
.pond { height: 260px; border-radius: var(--r-l); background: linear-gradient(180deg, #7FD7FF, #2D8FE0); position: relative; overflow: hidden; margin-bottom: 12px; cursor: crosshair; }
.pond .fish { position: absolute; font-size: 34px; transition: left 2.5s ease-in-out, top 2.5s ease-in-out; cursor: pointer; }
.pond .fish.flip { transform: scaleX(-1); }
.pond .coin { position: absolute; font-weight: 800; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.4); animation: rise 1s ease forwards; pointer-events: none; font-size: 13px; }
@keyframes rise { to { transform: translateY(-50px); opacity: 0; } }
.pond-hud { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 8px; }
.words { display: grid; gap: 6px; justify-content: center; margin: 12px 0; }
.wrow { display: flex; gap: 6px; }
.wrow i { width: 44px; height: 44px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 20px; text-transform: uppercase; }
.wrow i.g { background: #6AAA64; color: #fff; } .wrow i.y { background: #C9B458; color: #fff; } .wrow i.n { background: #787C7E; color: #fff; }
.cats { display: grid; gap: 8px; }
.cat { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-m); background: var(--surface); box-shadow: var(--shadow); cursor: pointer; border: 2px solid transparent; transition: border-color .15s; }
.cat.sel { border-color: var(--brand); }
.cat .ce { font-size: 26px; }
.cat .ct { flex: 1; font-weight: 600; font-size: 14px; }
.cat .cv { font-family: var(--font); font-weight: 800; color: var(--brand); }
[data-skin="tbank"] .cat .cv { color: #333; }
.ach { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ach div { background: var(--surface); border-radius: var(--r-m); padding: 12px 6px; text-align: center; font-size: 11px; font-weight: 600; box-shadow: var(--shadow); }
.ach div span { display: block; font-size: 28px; margin-bottom: 4px; }
.ach div.locked { opacity: .4; filter: grayscale(1); }
.level { height: 10px; border-radius: 5px; background: var(--surface-2); overflow: hidden; margin: 10px 0 6px; }
.level i { display: block; height: 100%; width: 3%; background: var(--brand-grad); }
.stars { display: flex; gap: 6px; justify-content: center; font-size: 36px; margin: 6px 0 14px; }
.stars span { cursor: pointer; filter: grayscale(1); opacity: .4; transition: .15s; }
.stars span.on { filter: none; opacity: 1; }
.nps { display: grid; grid-template-columns: repeat(11, 1fr); gap: 3px; margin: 10px 0 6px; }
.nps button { height: 34px; border-radius: 8px; background: var(--surface-2); font-weight: 700; font-size: 13px; cursor: pointer; }
.nps button:hover { background: var(--brand); color: var(--on-brand); }
.nps-legend { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-bottom: 14px; }
.toggle { appearance: none; width: 50px; height: 30px; border-radius: 15px; background: var(--line); position: relative; cursor: pointer; transition: background .2s; flex: 0 0 50px; margin: 0; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.2); transition: left .2s; }
.toggle:checked { background: var(--ok); }
.toggle:checked::after { left: 23px; }
.mascot { position: absolute; right: 14px; bottom: 96px; z-index: 20; display: flex; align-items: flex-end; gap: 6px; pointer-events: auto; cursor: pointer; animation: viewIn .4s ease; }
.mascot .mb { background: var(--surface); color: var(--text); border-radius: 16px 16px 4px 16px; padding: 8px 11px; font-size: 12.5px; max-width: 200px; box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.mascot .mf { font-size: 44px; animation: breathe 1.6s ease infinite; }

/* Конфетти */
.confetti { position: absolute; inset: 0; pointer-events: none; z-index: 90; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 8px; height: 14px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(950px) rotate(720deg); } }

.shake { animation: shake .4s ease; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

.empty-state { text-align: center; color: var(--muted); padding: 30px 10px; font-size: 14px; }
.empty-state div { font-size: 48px; margin-bottom: 8px; }

/* Системные запросы доступа: рисует «телефон», а не банк, поэтому вне скинов */
.ov.sysperm .ov-back { background: rgba(0,0,0,.4); backdrop-filter: none; }
.ov.sysperm .ov-card {
  width: 280px; padding: 0; border-radius: 16px; overflow: hidden; background: rgba(242,242,247,.96); color: #000;
  backdrop-filter: blur(24px) saturate(1.8); font-family: -apple-system, "Inter", sans-serif; box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
.sp-body { padding: 20px 16px 16px; }
.sp-ico { width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 13px; background: var(--brand-grad); display: grid; place-items: center; font-size: 28px; }
.ov.sysperm h3 { font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; margin: 0 0 6px; }
.ov.sysperm .sp-body p { color: #3c3c43; font-size: 12.5px; line-height: 1.38; margin: 0; }
.sp-btns button { display: block; width: 100%; padding: 12px 10px; border-top: 1px solid rgba(60,60,67,.24) !important; color: #0A7AFF; font-size: 16px; line-height: 1.2; cursor: pointer; }
.sp-btns button.b { font-weight: 600; }
.sp-btns button.off { color: rgba(60,60,67,.3); text-decoration: line-through; pointer-events: none; }
.sp-btns button:active { background: rgba(0,0,0,.06); }
.sp-map { position: relative; height: 96px; margin-top: 12px; border-radius: 10px; overflow: hidden;
  background: linear-gradient(90deg, rgba(0,0,0,.05) 1px, transparent 1px) 0 0 / 22px 22px, linear-gradient(rgba(0,0,0,.05) 1px, transparent 1px) 0 0 / 22px 22px, #E5EFD9; }
.sp-map i { position: absolute; left: calc(50% - 13px); top: 20px; font-style: normal; font-size: 26px; animation: breathe 1.2s ease infinite; }
.sp-map span { position: absolute; left: 8px; bottom: 6px; font-size: 11px; background: rgba(255,255,255,.85); padding: 2px 7px; border-radius: 6px; }

/* Карта «вы здесь» */
.geomap { position: relative; height: 170px; margin: 4px 0 14px; border-radius: var(--r-l); overflow: hidden;
  background: linear-gradient(90deg, transparent 47%, rgba(255,255,255,.7) 47% 53%, transparent 53%), linear-gradient(transparent 60%, rgba(255,255,255,.7) 60% 66%, transparent 66%), #DDEBD3; }
.geomap i { position: absolute; margin: -14px 0 0 -11px; font-style: normal; font-size: 22px; animation: viewIn .4s ease backwards; }
.geomap .me { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); font-size: 30px; }
.geomap .me::after { content: ""; position: absolute; left: 50%; top: 100%; width: 90px; height: 90px; margin: -45px 0 0 -45px; border-radius: 50%; background: rgba(10,122,255,.15); animation: ring 1.6s ease infinite; z-index: -1; }

/* Сканер семейной биометрии */
.scan { display: flex; flex-direction: column; align-items: center; text-align: center; }
.scan .frame { position: relative; width: 190px; height: 190px; border-radius: 40px; display: grid; place-items: center; font-size: 96px; margin-bottom: 20px; overflow: hidden;
  background: radial-gradient(circle, rgba(255,255,255,.08), transparent 70%); outline: 3px dashed rgba(255,255,255,.35); outline-offset: -10px; }
.scan .frame .beam { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: #2BFF88; box-shadow: 0 0 14px #2BFF88; opacity: 0; }
.scan .frame.on { outline-color: #2BFF88; }
.scan .frame.on .beam { opacity: 1; animation: beam 1.1s linear; }
@keyframes beam { from { top: 0; } to { top: 100%; } }
.scan .step { color: rgba(255,255,255,.55); margin-bottom: 6px; }
.scan p { color: rgba(255,255,255,.7) !important; min-height: 40px; }
.scan .progress { width: 100%; background: rgba(255,255,255,.12); }

/* Подслушивание */
.listen { display: grid; gap: 6px; text-align: left; min-height: 60px; }
.listen div { background: var(--surface-2); border-radius: 12px; padding: 8px 11px; font-size: 13px; animation: viewIn .3s ease; }
.listen i { display: block; color: var(--muted); }
.listen b { font-size: 12.5px; }

/* Ставка по пульсу */
.pulse { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 16px; }
.pulse div { background: var(--surface-2); border-radius: var(--r-m); padding: 12px 6px; }
.pulse b { display: block; font-family: var(--font); font-size: 30px; font-variant-numeric: tabular-nums; }
.pulse div:first-child b { color: var(--danger); animation: breathe .7s ease infinite; }
.pulse small { color: var(--muted); font-size: 12px; }
