:root{
  --bg:#f2f5f7; 
  --card:#fff; 
  --text:#111; 
  --muted:#6b7280;
  --accent:#08a652; 
  --primary: #08a652;
  --line:#e5e7eb; 
  --radius:16px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bot: env(safe-area-inset-bottom, 0px);
  --deposit:#3b82f6; /* пополнение */
  --withdraw:#ef4444; /* вывод */
  --partner:#22c55e; /* партнёрский доход */
  --track:#e5e7eb;
  --ink:#0f172a;
}
/* 1) Скролл РАЗРЕШЁН, полосы скрыты глобально */
html, body {
  height: 100%;
  overflow: auto;                 /* прокрутка страницы работает */
  overscroll-behavior: none;      /* без эластичности/PTR (по желанию) */
  -webkit-overflow-scrolling: touch;
}

/* 2) Прячем полосы прокрутки во всех контейнерах */
* { 
  scrollbar-width: none;          /* Firefox */
  -ms-overflow-style: none;       /* IE/старый Edge */
}
*::-webkit-scrollbar {            /* Blink/WebKit */
  width: 0;
  height: 0;
  display: none;
}

/* 3) Запрещаем выделение/копирование и «лупы» на iOS */
html, body, #app, #root {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;

  -webkit-touch-callout: none;    /* отключает callout при лонгтапе */
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;

  /* Разрешаем пан-жесты для скролла, но без pinch-zoom */
  touch-action: pan-x pan-y;      /* не указывать pinch-zoom => он отключится */
}

/* 4) Убираем подсветку тапов и перетаскивание медиа/ссылок */
a, button, img, svg, canvas {
  -webkit-tap-highlight-color: transparent;
  -webkit-user-drag: none;
  user-drag: none;
}

/* 5) Поля ввода >=16px, чтобы iOS не делал авто-зум при фокусе */
input, textarea, select, button {
  font-size: 16px;
}

*, *::before, *::after {
  box-sizing: border-box;
}
/* 2. Remove default margin */
* {
  margin: 0;
  -webkit-tap-highlight-color: transparent; 
  user-select: none;
}
/* 3. Enable keyword animations */
@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}
body {
  /* 4. Add accessible line-height */
  line-height: 1.5;
  /* 5. Improve text rendering */
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%; 
  overscroll-behavior: none; 
}
/* 6. Improve media defaults */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}
/* 7. Inherit fonts for form controls */
input, button, textarea, select {
  font: inherit;
  font-size: 16px;
}
/* 8. Avoid text overflows */
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}
/* 9. Improve line wrapping */
p {
  text-wrap: pretty;
}
a {
  text-decoration: none;
  color: var(--text);
}
a, button, .btn { touch-action: manipulation; }
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}
/*
  10. Create a root stacking context
*/
#root, #__next {
  isolation: isolate;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}
body.modal-open {
  overflow: hidden;
}

#app {
  padding-top: var(--safe-top);
  height: calc(64px + var(--safe-bot));
}
.contents {
  margin: 0 auto;
  width: 100%;
  max-width: 760px;
}
.content-item {
  padding: 16px;
  padding-bottom: calc(70px + var(--safe-bot));
}
.content-item[hidden] {
  display:none!important;
}

/* Панель управления */

.page-title {
  position: relative;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 12px;
}
.section-title1:after {
  position: absolute;
  content: "";
  top:50%;
  left:0%;
  width: 100%;
  height: 1px;
  background: #ccc;
  z-index: 1;
}
.section-title1 span {
  display: block;
  padding: 6px 20px;
  background: var(--bg);
  z-index: 2;
}

.dashboard {}
.user-panel,
.user-inviter {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.user-data {
  display: flex;
  align-items: center;
  gap: 12px;
}
.user-avatar,
.inviter-avatar {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.user-avatar {
  outline: 4px solid rgba(238, 249, 240, 0.6);
  overflow: hidden;
}
.user-avatar img,
.inviter-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.user-info,
.inviter-info {
  line-height: 1.4;
}
.user-info big,
.inviter-info big {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.user-info span,
.inviter-info span {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: #111;
}
.user-col {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 60px;
}
.user-col:last-child {
  justify-content: end;
}
.user-col button {
  background: transparent;
  outline: none;
  border: none;
  color: var(--text);
}

/* контейнер-страницы */
/* --- БАЗА --- */
.dashboard-balance{
  position: relative;
  overflow: hidden;
  z-index: 1;
  --lava-height: 320px;         /* высота анимации сверху */
  --r1: 100,238,97;             /* зелёный */
  --r2: 50,184,211;             /* циан */
}

/* Контейнер «лавы» только сверху */
.dashboard-balance .lava-bg{
  position: absolute;
  left: 0; right: 0; top: 0;
  height: var(--lava-height);
  z-index: 0;
  pointer-events: none;
  filter: url(#goo);
  background: linear-gradient(90deg, rgb(var(--r1)), rgb(var(--r2)));
  /* плавное исчезновение вниз, если экран выше 320px */
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 80%, rgba(0,0,0,0));
          mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 80%, rgba(0,0,0,0));
}

.dashboard-balance > *:not(.lava-bg){ position: relative; z-index: 1; }
.dashboard-balance .lava-bg .blob{
  position: absolute;
  aspect-ratio: 1/1;
  border-radius: 50%;
  opacity: .85;
  /* цвет шара (переопределяется ниже) */
  --blob: 100,238,97; /* fallback: зелёный */

  /* два слоя: белый блик + цвет */
  background:
    radial-gradient(circle at 30% 30%,
      rgba(255,255,255,.45) 0%,
      rgba(255,255,255,.15) 25%,
      rgba(255,255,255,0)   70%),
    radial-gradient(circle at 50% 50%,
      rgba(var(--blob), .55) 0%,
      rgba(var(--blob), .28) 40%,
      rgba(var(--blob), 0)   70%);
  mix-blend-mode: screen;
  filter: url(#bloom);
  will-change: transform;
}

.dashboard-balance .lava-bg .blob:nth-child(1){ width: 23vmax; left:-12vmax; top:  8vmin;  animation: lava-a 16s ease-in-out infinite alternate; }
.dashboard-balance .lava-bg .blob:nth-child(2){ width: 18vmax; right:-10vmax; top: -6vmin;  animation: lava-b 21s ease-in-out infinite alternate; }
.dashboard-balance .lava-bg .blob:nth-child(3){ width: 30vmax; left:18vmax;   top:  6vmin;  animation: lava-c 24s ease-in-out infinite alternate; }
.dashboard-balance .lava-bg .blob:nth-child(4){ width: 20vmax; right:12vmax;  top: 18vmin;  animation: lava-d 28s ease-in-out infinite alternate; }

.dashboard-balance .lava-bg .blob:nth-child(1){ --blob: 100,238,97; }   /* лайм */
.dashboard-balance .lava-bg .blob:nth-child(2){ --blob: 50,184,211; }   /* циан */
.dashboard-balance .lava-bg .blob:nth-child(3){ --blob: 255,120,200; }  /* розовый */
.dashboard-balance .lava-bg .blob:nth-child(4){ --blob: 255,210,80; }   /* янтарь */

.dashboard-balance .lava-bg .sparkles{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle, rgba(255,255,255,.35) 0 1px, transparent 1.2px) 0 0/18px 18px,
    radial-gradient(circle, rgba(255,255,255,.25) 0 1px, transparent 1.2px) 9px 9px/22px 22px;
  mix-blend-mode: screen;
  opacity: .5;
  animation: twinkle 6s ease-in-out infinite alternate;
}

/* Анимации «живее» и чуть быстрее */
@keyframes lava-a{ 0%{transform:translate(0,0) scale(1)} 100%{transform:translate(34vmin,6vmin) scale(1.25)} }
@keyframes lava-b{ 0%{transform:translate(0,0) scale(1.08)} 100%{transform:translate(-28vmin,18vmin) scale(.95)} }
@keyframes lava-c{ 0%{transform:translate(0,0) scale(.95)} 100%{transform:translate(-18vmin,-14vmin) scale(1.18)} }
@keyframes lava-d{ 0%{transform:translate(0,0) scale(1.05)} 100%{transform:translate(22vmin,-12vmin) scale(.9)} }
@keyframes twinkle{ from{opacity:.35; transform:translateY(0)} to{opacity:.65; transform:translateY(-6px)} }

@media (prefers-reduced-motion: reduce){
  .dashboard-balance .lava-bg .blob,
  .dashboard-balance .lava-bg .sparkles{ animation:none; }
}




.dashboard-balance .user-balance span,
.dashboard-balance .user-balance span button,
.dashboard-balance .user-info span {
  color: #f1f1f1;
}
.dashboard-balance .user-balance big,
.dashboard-balance .user-info big,
.dashboard-balance .user-col svg {
  color: #fff;
}

.user-balance {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin: 34px 0;
  text-shadow: 0px 0px 18px rgba(0, 0, 0, .35);
}
.user-balance span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #ccc;
}
.user-balance span button {
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  outline: none;
}
.user-balance big {
  font-size: 34px;
  line-height: 38px;
  margin-top: 4px;
  vertical-align: middle;
  font-weight: 600;
  color: var(--text);
}
.user-actions {
  display: flex;
  align-items: center;
  justify-content: space-around;
}
.user-actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  background: transparent;
  border: none;
  outline: none;
}
.user-actions button i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(255, 0255, 255, .95);
  color: #08a652;
  outline: 8px solid rgba(238, 249, 240, 0.25);
  border-radius: 16px;
  border: 5px solid rgba(238, 249, 240, 0.9);
}
.user-actions button span {
  color: #fff;
  font-size: 14px;
}
.dashboard-section {
  margin: -16px;
  margin-top: 32px;
  background: var(--bg);
  padding: 16px; 
  min-height: 500px;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
}


.add-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 2px dashed #CBD5E1;
  background: #FCFCFD;
  color: #0f172a;
  cursor: pointer;
  text-align: center;
  transition: box-shadow .2s ease, transform .2s ease;
  border-radius: 16px;
}
.add-card:hover{background:#F8FAFC; border-color:#94A3B8}
.add-card:focus{outline:none; box-shadow:0 0 0 4px var(--ring)}
.add-card .add-inner{display:flex; flex-direction:column; align-items:center; gap:10px}
.add-card .add-icon{width:48px; height:48px; border-radius:14px; display:grid; place-items:center; background:#EEF2FF; color:#3730A3}
.add-card .add-title{font-weight:900; letter-spacing:.2px}
.add-card .add-sub{font-size:12px; color:var(--muted)}

.deposits-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.deposit-item{
  background: var(--card);
  color: var(--text);
  border-radius: 16px;
  padding: 14px;
  transition: box-shadow .18s ease, transform .18s ease;
}
.deposit-item_head {
  display:flex; 
  align-items:center;
  justify-content:space-between; 
  gap:12px;
}
.deposit-item_label{ 
  display:flex; 
  align-items:center; 
  gap:12px; 
  min-width:0; 
}
.deposit-item_icon{
  width:44px; 
  height:44px; 
  border-radius:12px; 
  flex:none; 
  position:relative; 
  overflow:hidden;
  background: rgb(234, 248, 234);
  color: var(--accent);
}
.deposit-item_icon::after {
  content:"$"; 
  position:absolute; 
  inset:0; 
  display:grid; 
  place-items:center;
  font-weight:800; 
  color: var(--accent);
}
.deposit-item_name big{
  display:block; 
  font-size:16px; 
  font-weight:800; 
  letter-spacing:-.01em; 
  color:var(--text);
  line-height:1.15;
}
.deposit-item_name span{
  margin-top:2px; 
  font-size:12px; 
  color:var(--muted);
}
.deposit-item_value{ 
  text-align:right; 
}
.deposit-item_value big{
  display:block; 
  font-weight:900; 
  font-size:16px; 
  letter-spacing:-.01em;
  font-variant-numeric: tabular-nums lining-nums;
}
.deposit-item_value span{
  margin-top:2px; 
  font-size:12px; 
  font-weight:700; 
  color: var(--primary);
}
.deposit-item_foot{ 
  margin-top:14px; 
  display:grid; 
  gap:10px; 
}
.deposit-item_progress{
  height:10px; 
  border-radius:999px; 
  overflow:hidden;
  background:#eef2f7; 
}
.deposit-item_progress i{
  display:block; 
  height:100%; 
  border-radius:inherit;
  background: linear-gradient(90deg, rgba(100, 238, 97, 1.0), rgba(50, 184, 211, 1.0));
  transition: width .35s ease;
}
.deposit-item_meta{
  display:flex; 
  flex-wrap:wrap; 
  justify-content: space-between;
  gap:10px 16px; 
  font-size:12px; 
  color:var(--muted);
}
.deposit-item_meta b{ 
  color:var(--text); 
}

/* extra: collapsible */
.deposit-item_extra{}
.deposit-item_extra ul{
  list-style:none; 
  margin:0; 
  padding:0;
  display:grid; 
  grid-template-columns: repeat(2, minmax(160px,1fr)); 
  gap:10px 16px;
}
.deposit-item_extra li{
  display:flex; 
  align-items:center; 
  justify-content:space-between; 
  gap:10px;
  font-size:13px; 
  color:var(--muted);
  padding:10px 12px; 
  border-radius:12px; 
  background:#f9fafb;
}
.deposit-item_extra li span{ 
  opacity:.9; 
}
.deposit-item_extra li b{ 
  color:var(--ink); 
  font-weight:800; 
  font-size: 11px;
}
.deposit-item_actions {
  margin-top:12px;
}
.deposit-item_actions .btn {
  width: 100%;
}

/* Панель управления */


/* Operations */
.oper-types {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0;
  -webkit-overflow-scrolling: touch; /* плавный скролл на iOS */
  margin-bottom: 10px;
}
.oper-types::-webkit-scrollbar {
  display: none; /* убираем скроллбар */
}
.oper-types button {
  flex: 0 0 auto;
  padding: 6px 16px;
  border-radius: 999px;
  border: none;
  background: #fff;
  color: #000;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
  outline: none;
}
.oper-types button:active {
  transform: translateY(1px);
}
.oper-types button.active {
  background: #000;
  color: #fff;
}

.oper-list {
  display: flex;
  gap: 10px;
  flex-direction: column;
}
.oper-date {
  font-size: 12px;
  letter-spacing: .08em;
  color: #b3bdc8;
  font-weight: 700;
}
.oper-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;                 /* чуть свободнее */
  height: 60px;
  background: var(--card);
  color: var(--text);
  border-radius: var(--radius);
  -webkit-tap-highlight-color: transparent;
  transition: border-color .15s ease, box-shadow .15s ease, transform .06s ease;
}
.oper-item:active { transform: scale(.996); }
.oper-data {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;                    /* чтобы работал ellipsis */
}
.oper-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgb(234, 248, 234);                /* как было */
  color: var(--accent);
  font-weight: 700;
  flex: 0 0 auto;
}
.oper-info, 
.oper-value {
  line-height: 1.45;               /* плотнее и читабельнее */
  min-width: 0;                    /* важно для обрезки текста */
}
.oper-info big,
.oper-value big {
  display: block;
  font-size: 14px;                 /* на 1px крупнее */
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap; 
  overflow: hidden; 
  text-overflow: ellipsis;
}
.oper-info span,
.oper-value span {
  display: block;
  font-size: 10px;                 /* на 2px крупнее */
  color: var(--muted);
  white-space: nowrap; 
  overflow: hidden; 
  text-overflow: ellipsis;
}
.oper-value {
  text-align: right;
  flex: 0 0 auto;
}
.oper-item.oper-item--income  .oper-value big { color: #16a34a; }
.oper-item.oper-item--outcome .oper-value big { color: #dc2626; }

.oper-loadmore-wrap {
  width: 100%;
}
.oper-loadmore-wrap button {
  width: 100%;
}

.oper-gap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.oper-details {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  line-height: 1;
}
.oper-details .oper-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  margin-top: 30px;
  margin-bottom: 8px;
  background: #fff;
}
.oper-details big {
  display: block;
  font-size: 18px;
  font-weight: bold;
}
.oper-details span {
  display: block;
  font-size: 12px;
  color: var(--text);
  opacity: .7;
}
.oper-details .oper-status {
  padding: 4px 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  background: var(--card);
  font-size: 12px;
  border-radius: 50px;
  margin: 10px 0;
}
.oper-details .oper-status svg {
  width: 16px;
  height: 16px;
}
.oper-details .oper-status.pending { color: #FFD60A; } 
.oper-details .oper-status.success { color: #34C759; }
.oper-details .oper-status.reject  { color: #FF3B30; } 

.empty-state{
  display:grid; 
  place-items:center; 
  text-align:center;
  flex-direction:column;
  gap:10px; 
  padding:28px;
  color: var(--text);
}
.empty-title{
  margin:0; font-weight:900; letter-spacing:-.01em;
  font-size: clamp(18px, 3.4vw, 20px);
}
.empty-sub{
  margin:0; color: var(--muted); font-size: 13px;
}
.empty-actions{ display:flex; gap:10px; justify-content:center; margin-top:6px; }
/* oper style */


/* Form style */
.form {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  gap: 20px;
  min-height: calc(100vh - var(--safe-bot) - 64px);
}
.form-head, .form-foot {
  display: flex;
  flex-direction: column;
}
 .form-foot .btn {
  flex: 1;
 }

.field{
  display: grid;
  gap: 8px;                   /* расстояние между label / input / hint */
  margin: 10px 0;
}
.field + .field{              /* отступ между полями */
  margin-top: 14px;
}

.field-label{
  font-size: 13px;
  line-height: 1.2;
  color: #64748b;             /* приглушённый */
  font-weight: 600;
  padding-left: 2px;
}

/* звездочка для обязательных (если нужно — добавь класс .required к label) */
.field-label.required::after{
  content: " *";
  color: #ef4444;
  font-weight: 700;
}

.field-hint{
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.3;
  color: #94a3b8;             /* подсказка светлее лейбла */
  padding-left: 2px;
}

/* состояния (опционально, если добавляешь модификаторы на .field) */
.field.is-invalid .field-label,
.field.is-invalid .field-hint{
  color: #ef4444;
}
.field.is-disabled{
  opacity: .6;
  pointer-events: none;
}


.input{
  display:flex;
  align-items:center;
  gap:.75rem;
  position:relative;
  height:52px;
  padding:0 .75rem;
  border:2px solid transparent;
  border-radius:10px;
  background:#fff;
  transition:.25s ease;
  color:#0d0c22;
}

/* подсветка рамки и тени при фокусе внутри или hover */
.input:hover,
.input:focus-within{
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--accent));
}

/* сам input — растягивается, без внутренних паддингов */
.input input{
  flex:1 1 auto;
  min-width:0;
  height:100%;
  border:0;
  outline:0;
  background:transparent;
  padding:0;               /* паддинги больше не нужны */
  font-size:16px;
  line-height:1.2;
  color:#0d0c22;
}
.input input::placeholder{ color:#94a3b8; }

/* иконка (любой svg/span) слева */
.input .icon{
  flex:0 0 auto;
  width:1rem;
  height:1rem;
  display:inline-grid;
  place-items:center;
  color:#64748b;           /* для currentColor в SVG */
}

/* суффикс/префикс (валюта, ед.изм.) справа или слева */
.input .suffix,
.input .prefix{
  flex:0 0 auto;
  font-size:14px;
  color:#64748b;
}

/* необязательная кнопка справа (очистить и т.п.) */
.input .btn{
  flex:0 0 auto;
  width:1.75rem;
  height:1.75rem;
  display:inline-grid;
  place-items:center;
  background:transparent;
  border:0;
  cursor:pointer;
  color:#94a3b8;
}
.input .btn:hover{ color:#0d0c22; }

/* состояния */
.input--invalid{
  border-color: rgba(239,68,68,1);
  box-shadow: 0 0 0 5px rgb(239 68 68 / 20%);
}
.input--disabled{ opacity:.6; pointer-events:none; }

.psys-grid{
  display:grid; gap:10px;
  grid-template-columns: repeat(auto-fit, minmax(150px,1fr));
}

.psys-input{ position:absolute; opacity:0; pointer-events:none; }

.psys-card{
  display:flex; align-items:center; gap:10px;
  padding:10px 12px; border:2px solid #fff; border-radius:var(--radius);
  background:var(--card); color:var(--text); cursor:pointer; user-select:none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .05s ease;
  outline: none;
}
.psys-card:active{ transform: scale(.996); }

.psys-input:focus-visible + .psys-card{
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--accent));
}
.psys-input:checked + .psys-card{
  border-color: color-mix(in srgb, var(--accent) 60%, var(--accent));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

.psys-icon{
  width:36px; height:36px; border-radius:12px;
  display:grid; place-items:center; color:#fff; font-weight:900; font-size:16px;
}

.psys-text{ display:flex; flex-direction:column; line-height:1.15; }
.psys-text b{ font-size:15px; font-weight:700; }
.psys-text small{ font-size:12px; color:var(--muted); }
/* Радио-точка справа */
.psys-card{ display:flex; align-items:center; gap:10px; }
.psys-text{ flex:1 1 auto; }          /* чтобы точка ушла вправо */

.psys-radio{
  width:18px; height:18px; border-radius:50%;
  border:2px solid var(--border, #e5e7eb);
  display:inline-block; position:relative; flex:0 0 auto;
}
.psys-radio::after{
  content:""; position:absolute; inset:50% auto auto 50%;
  width:8px; height:8px; border-radius:50%;
  background: var(--accent, #0088cc);
  transform: translate(-50%,-50%) scale(0);
  transition: transform .12s ease;
}

/* Подсветка выбранного: внешняя окружность + заливка центра */
.psys-input:checked + .psys-card .psys-radio{
  border-color: var(--accent, #0088cc);
}
.psys-input:checked + .psys-card .psys-radio::after{
  transform: translate(-50%,-50%) scale(1);
}


/* Резюме выплат */
.__lists {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  color:var(--text);
}
.__list-row {
  display:flex; 
  align-items:center; 
  justify-content:space-between;
}
.__list-row span {
  font-size: 12px;
  color: var(--text);
  opacity: .7;
}
.__list-row b {
  font-size: 14px;
  color: var(--text);
}
.__list-row font {
  display: flex;
  gap: 4px;
  font-size: 14px;
  color: var(--text);
}

.payout-note{
  display:block; margin-top:6px; color:var(--muted); font-size:12px;
}

.deposit-pay {
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  background: #fff;
  border-radius: 16px;
  margin-bottom: 14px;
}
.deposit-pay_qrcode {
  display: flex;
  align-items: center;
  justify-content: center;
}
.deposit-pay_qrcode svg {
  width: 160px;
  height: 160px;
}
.deposit-pay_info {
  width: 100%;
  text-align: center;
}
.text-small {
  font-size: 14px;
  letter-spacing: .15px;
  line-height: 18px;
  color: #9c9da4;
}
.text-value {
  word-wrap: break-word;
  margin-top: 3px;
  font-size: 15px;
  font-weight: bold;
}
.text-tiny {
  font-size: 12px;
  letter-spacing: .25px;
  line-height: 16px;
  color: #9c9da4;
}
/* Конец Form style */


/* Profile style */
.profile{ background:var(--bg); padding:16px; color:var(--text); }

.profile-cards{
  display:grid; grid-template-columns:repeat(2,1fr); gap:12px; margin-bottom:12px;
}
.card-btn{
  display:grid; grid-auto-rows:max-content; gap:6px;
  padding:14px;
  background:var(--card); border:1px solid var(--border);
  border-radius:20px; cursor:pointer; text-align:left;
}
.card-ic{
  width:32px; height:32px; border-radius:10px;
  background:#eef2f7; display:grid; place-items:center; font-size:18px;
}
.card-title{ font-weight:700; font-size:15px; }
.card-sub{ font-size:13px; color:var(--muted); }
.card-sub::after{ content:"›"; margin-left:6px; color:#cfd6df; }

.list-group{
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  background:var(--card); 
  border:1px solid var(--border);
  border-radius:20px; 
  overflow:hidden; margin:12px 0;
}
.list-group.no-arrow .list-btn::after{
  display: none;
}
.list-btn{
  width:100%; display:flex; align-items:center; gap:12px;
  background:transparent; border:0; cursor:pointer; position:relative;
  text-align:left;outline: none;color: var(--text);
}
.list-btn + .list-btn{ border-top:1px solid var(--border); }
.list-btn::after{
  content:"›"; position:absolute; right:14px; top:50%; transform:translateY(-50%);
  color:#cfd6df;
}
.list-ic{
  width:32px; height:32px; border-radius:10px; background:rgb(234, 248, 234);
  color: var(--accent);
  display:grid; place-items:center; font-size:18px;
}
.list-text{ flex:1 1 auto; font-size:15px; font-weight:600; }
.list-meta{ color:var(--muted); font-size:14px; margin-right:32px; }

.section-title{
  margin:6px 0; font-size:12px; letter-spacing:.08em; color:#b3bdc8; font-weight:700;text-transform: uppercase;
}


.devices {
  display: flex;
  flex-direction: column;
  gap: 0px;
}
.devices .exits {
  margin: 14px 0;
  background: #ff3b30;
  width: 100%;
}
.device-current {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.device-item {
  padding: 14px;
  display: flex;
  justify-content: space-between;
  background: #fff;
  border-radius: 16px;
}
.device-label {
  display: flex;
  gap: 10px;
}
.device-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgb(234, 248, 234);
  color: var(--accent);
}
.device-data {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.device-data big {
  display: block;
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.device-data span {
  display: block;
  font-size: 12px;
  color: #9c9da4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.device-action button {
  border: none;
  outline: none;
}
.device-action .online {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 10px;
  width: fit-content;
  height: 24px;
  border-radius: 30px;
  font-weight: 600;
  background: #e6ffe9;
  color: #219653;
  font-size: 12px;
}
.device-action .exit {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #ff3b301a;
  border-radius: 10px;
  color: #ff3b30;
  height: 32px;
  min-width: 32px;
  width: 32px;
}
/* Profile style */


/* button style */
.btn{ appearance:none; border:1px solid #e5e7eb; background:#fff; padding:12px 14px; border-radius:14px; display:flex; align-items:center; justify-content:center; gap:8px; font-weight:600; cursor:pointer; }
.btn.primary{ background:#08a652; color:#fff; border-color:transparent; }
.btn.ghost{ background:#fff; color:#111; }
.btn svg{ width:20px; height:20px; stroke:currentColor; fill:none; stroke-width:2; }
.btn-full {
  width: 100%;
}
/* button style */



/* Приклеенное меню */
.nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(64px + var(--safe-bot));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--line);
  z-index: 9;
}
.nav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 64px;
  margin-bottom: var(--safe-bot);
  text-decoration: none;
  color: var(--muted);
  font-size: 11px;
  background: transparent;
  border: none;
  outline: none;
}
.nav button.deposit-btn {
  margin-left: auto;
  margin-right: auto;
  width: 40px;
  height: 40px;
  background: #08a652;
  border-radius: 64px;
  color: #fff;
  outline: 6px solid rgba(0, 0, 0, .04);
  border: 6px solid rgba(255, 255, 255, .5);
}
.nav button.active_nav_link {
  color: var(--accent);
}
/* Приклеенное меню */


/* Модальное окно */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* затемнение */
  display: none; /* скрыто по умолчанию */
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

/* Когда модалка активна */
.modal.active {
  display: flex;
  opacity: 1;
}

/* Содержимое модалки */
.modal-content {
  background: var(--bg);
  width: 100%;
  height: 100vh;
  max-width: 500px;
  padding: 20px;
  position: relative;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  @animation: slideDown 0.3s ease;
  padding-top: var(--safe-top);
  padding-bottom: var(--safe-bot);
  overflow: auto;
}

/* Кнопка "Назад" */
.modal-content .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.modal-content .modal-header_col {
  width: 36px;
  height: 36px;
}
.modal-content .modal-header_col button {
  display: flex;
  align-items: center;
  justify-content: start;
  width: 36px;
  height: 36px;
  background: transparent;
  outline: none;
  border: none;
}
.modal-content .modal-header_title {
  font-size: 18px;
  font-weight: bold;
}

/* Анимация */
@keyframes slideDown {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
/* Модальное окно */


/* Step by step */
.step { display: none; }
.step.active { display: block; }
/* Step by step */


/* partners */

.leaders {
    align-items: center;
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
    min-height: 60vw;
    position: relative;
    width: 100%;
}
.leaders > .center2 {
    height: 19vw;
    max-height: 200px;
    max-width: 200px;
    border-radius: 200px;
    width: 19vw;
    z-index: 3;
}
.leaders .orbit {
    align-items: center;
    animation: orbitRotation linear infinite;
    border-radius: 50%;
    border-style: solid;
    border-width: 1px;
    display: flex;
    justify-content: center;
    position: absolute;
    z-index: 1;
}
.leaders .floating-leader {
    animation: counterRotate linear infinite;
    animation-duration: inherit;
    height: var(--size);
    max-height: 100px;
    max-width: 100px;
    border-radius: 100px;
    position: absolute;
    width: var(--size);
    z-index: 2;
}
.leaders .orbit.orbit-1 {
    animation-duration: 8s;
    border-color: rgba(0, 0, 0, .1);
    height: 30vw;
    width: 30vw;
}
.leaders .orbit-1 .floating-leader {
    --size: 4vw;
    bottom: -7%;
    left: 50%;
    position: absolute;
}
.leaders .orbit.orbit-2 {
    animation-duration: 12s;
    border-color: rgba(0, 0, 0, .08);
    height: 40vw;
    width: 40vw;
}
.leaders .orbit-2 .leader-2 {
    --size: 4.5vw;
    left: 50%;
    position: absolute;
    top: -5%;
}
.leaders .orbit-2 .leader-5 {
    --size: 4.5vw;
    bottom: 50%;
    position: absolute;
    right: -5%;
}
.leaders .orbit.orbit-3 {
    animation-duration: 17s;
    border-color: rgba(0, 0, 0, .05);
    height: 50vw;
    width: 50vw;
}
.leaders .orbit-3 .floating-leader {
    --size: 4vw;
    bottom: 50%;
    left: -4.5%;
    position: absolute;
}
.leaders .orbit.orbit-4 {
    animation-duration: 25s;
    border-color: rgba(0, 0, 0, .03);
    height: 60vw;
    width: 60vw;
}
.leaders .orbit-4 .floating-leader {
    --size: 3.5vw;
    bottom: 50%;
    position: absolute;
    right: -4.5%;
}
@keyframes orbitRotation{0%{transform:rotate(0)}to{transform:rotate(1turn)}}
@keyframes counterRotate{0%{transform:rotate(0)}to{transform:rotate(-1turn)}}

.leaders_title {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  padding: 0 30px;
  margin-bottom: 28px;
}
.leaders_title big {
  font-size: 28px;
  font-weight: 600;
  line-height: 34px;
  text-align: center;
  color: var(--text);
}
.leaders_title p {
  font-size: 14px;
  color: var(--text);
  text-align: center;
  opacity: .7;
}

.leaders_content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card {
  padding: 14px;
  background: var(--card);
  border-radius: 16px;
}
.card-input {
  padding: 12px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  background-color: #f9f9f9;
  margin-bottom: 12px;
  min-height: 64px;
  overflow: hidden;
  border-radius: 12px;
}
.card-input_body {
  overflow: hidden;
}
.card-input_label {
  font-size: 12px;
  letter-spacing: .25px;
  line-height: 16px;
  color: #9c9da4;
}
.card-input_text {
  font-weight: 700;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-wrap: nowrap;
  font-size: 14px;
}
.card-input button {
  display: block;
  background: transparent;
  border: none;
  outline: none;
  min-width: 30px;
  color: #9c9da4;
  @transform: translateY(4px);
}


.partners_list{ display:grid; gap:10px; }
.pl_item{
appearance:none; border: none; background:var(--card); color:inherit;
width:100%; border-radius:16px; padding:12px 14px; display:grid; grid-template-columns: 1fr auto auto; align-items:center; gap:10px;
text-align:left; cursor:pointer; transition: transform .05s ease, background .2s ease;
}
.pl_item:active{ transform: translateY(1px);}
.pl_item:focus{ outline:2px solid var(--accent); outline-offset:2px; }
.pl_left{ display:flex; gap:10px; align-items:center; min-width:0; }
.lvl_icon{ width:28px; height:28px; border-radius:10px; background:var(--pill); display:grid; place-items:center; font-size:12px; color:var(--badge-ink); border:1px solid var(--line); }
.pl_title{ font-weight:800; font-size:14px; }
.pl_stats{ font-size:12px; color:var(--muted); }
.earned_badge{ white-space:nowrap; font-size:12px; font-weight:800; color:var(--badge-ink); background:var(--badge); border:1px solid var(--line); padding:6px 10px; border-radius:999px; }
.pl_arrow{ display:inline-flex; align-items:center; justify-content:center; width:26px; height:26px; border-radius:999px; }
.pl_arrow svg{ width:16px; height:16px; }

.partner_item {
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  background: #fff;
  border-radius: 16px;
  margin-bottom: 14px;
}
.partner_item-data {
  display: flex;
  align-items: center;
  gap: 12px;
}
.partner_item-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.partner_item-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.partner_item-info {
  line-height: 1.4;
}
.partner_item-info big {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.partner_item-info span {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: #111;
}

.pagination{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  padding:12px 0;
  width:100%;
}

.pagination .pag__info{
  font: 500 14px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:#6b7280; /* серый */
  min-width:62px; /* чтобы не прыгала при 10/100 и т.п. */
  text-align:center;
}

.pagination button{
  appearance:none;
  border:1px solid #e5e7eb;
  background:#fff;
  color:#111827;
  padding:8px 12px;
  border-radius:999px;
  font: 600 14px/1 system-ui, -apple-system, Segoe UI, Roboto, Arial;
  cursor:pointer;
  transition: background .15s, border-color .15s, transform .03s;
  box-shadow: 0 1px 0 rgba(17,24,39,.03);
}

.pagination button:hover{ background:#f9fafb; }
.pagination button:active{ transform: translateY(1px); }
.pagination button:disabled,
.pagination button.is-disabled{
  opacity:.45; cursor:default; pointer-events:none;
}


/* partners */


/* Investments */
.plans { 
  display:grid; 
  gap:14px; 
}
.plan_item {}
.plan_head {
  display:flex; 
  align-items:center; 
  justify-content:space-between;
  gap:14px; 
  padding-bottom:10px; 
  border-bottom:1px solid var(--line);
}
.plan_title { 
  display:flex; 
  align-items:center; 
  gap:10px; 
  min-width:0; 
}
.plan_badge {
  width:40px; 
  height:40px; 
  border-radius:40px;
  display:grid; 
  place-items:center; 
  background: rgb(234, 248, 234);
  color: var(--accent);
  flex:0 0 auto;
}
.plan_title_text h3 {
  margin:0; 
  font:700 16px/1.15 -apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,Arial,sans-serif;
}
.plan_title_text p {
  margin:2px 0 0; 
  font-size:12.5px; 
  color:var(--muted);
}
.plan_rate { text-align:right; display:grid; gap:4px; }
.rate_value {
  font:800 30px/1 "SF Pro Display",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  background:linear-gradient(90deg, var(--accent), var(--text));
  -webkit-background-clip:text; 
  background-clip:text; 
  color:transparent;
  letter-spacing:.2px;
}
.rate_note { 
  font-size:12.5px; 
  color:var(--muted); 
}
.plan_main { 
  display:grid; 
  gap:10px; 
  padding:12px 0; 
}
.plan_line {
  display:flex; 
  align-items:center; 
  justify-content:space-between;
  gap:10px; 
  padding:10px 12px; 
  border-radius:14px; 
  background:#fff;
}
.plan_data {
  display:flex; 
  align-items:center; 
  gap:8px; 
  font-weight:600; 
  font-size:13.5px;
}
.plan_data svg{  
  color:var(--blue); 
  flex:0 0 auto; 
}
.plan_value { 
  font:600 14px/1 -apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,Arial,sans-serif; 
}
.plan_foot { 
  display:grid; 
  gap:12px; 
  padding-top:6px; 
}
.plan_note {
  display:flex; 
  gap:8px; 
  align-items:flex-start;
  font-size:13px; 
  color:var(--muted);
  border:1px solid var(--line); 
  border-radius:12px; 
  padding:10px 12px;
  background:var(--soft);
}
.plan_note svg { 
  color:var(--muted); 
  flex:0 0 auto; 
  margin-top:2px; 
}
/* Investments */


/* Affiliate */
.affiliate {
  display: grid;
  gap: 14px;
}
.affiliate_title {
  display: flex;
  gap: 14px;
}
.affiliate_title-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(10, 132, 255, .15);
  color: var(--accent);
  border-radius: 40px;
}
.affiliate_title-data {
  flex: 1;
}
.affiliate_levels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.affiliate_level {
  margin-top: 10px;
  position: relative;
  padding: 14px;
  padding-top: 44px;
  flex: 1 1 calc(33.3% - 30px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  background: #fff;
  border-radius: 16px;
}
.affiliate_level-icon {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: #fff;
  border-radius: 40px;
  outline: 10px solid var(--bg);
}
.affiliate_level-reward {
  font-weight: bold;
  font-size: 18px;
}
.affiliate_level-label {
  font-size: 14px;
  opacity: .75;
}
.affiliate_group {
  display: grid;
  gap: 8px;
}
.affiliate_group-line {
  padding: 10px;
  display: flex;
  gap: 8px;
  background: #fff;
  border-radius: 16px;
}
/* Affiliate */


/* promocode */
.promo-section {
  margin: -16px;
  margin-top: 32px;
  background: #fff;
  min-height: 500px;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
}
.promo-items {
  display: flex;
  flex-direction: column;
}
.promo-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 60px;
  color: var(--text);
  border-bottom: 1px solid rgba(0, 0, 0, .1);
  -webkit-tap-highlight-color: transparent;
  transition: border-color .15s ease, box-shadow .15s ease, transform .06s ease;
}
.promocode-input {
  background: var(--bg);
  height: 56px;
}
.promocode-input button {
  padding: 8px 0;
  margin: 0;
  background: transparent;
  border-color: transparent;
  outline: none;
  color: var(--accent);
  font-weight: bold;
}
/* promocode */


/* Welcome code */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100vh;
}
.loader{color:#08a652;transform-origin:center;animation:spinner_zKoa 2s linear infinite}.loader circle{stroke-linecap:round;animation:spinner_YpZS 1.5s ease-in-out infinite}@keyframes spinner_zKoa{100%{transform:rotate(360deg)}}@keyframes spinner_YpZS{0%{stroke-dasharray:0 150;stroke-dashoffset:0}47.5%{stroke-dasharray:42 150;stroke-dashoffset:-16}95%,100%{stroke-dasharray:42 150;stroke-dashoffset:-59}}

.p-auth-pin {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: calc(100vh - env(safe-area-inset-bottom) - env(safe-area-inset-top));
  padding: 32px 16px max(24px, env(safe-area-inset-bottom));
}

.p-auth-pin .title {
  margin: 0 0 24px;
  font-weight: 800;
  font-size: 20px;
  text-align: center;
}

.pin-dots {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin: 16% 0 20%;
}

.pin-dots span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #f2f3f4;
}
.pin-dots .filled { background: #08a652; }

.pin-pad {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 24px;
}

.a-pin-button {
  height: 80px;
  width: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 34px;
  color: #08091c;
  background: #fff;
  border: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.a-pin-button:focus { background-color: #d9d9dd; }

.a-pin-button.-icon { background: transparent; }
.a-pin-button.-icon svg { width: 48px; height: 48px; }

.p-auth-pin .dummy-button { background: transparent; }


.modal[data-modal="welcome"] .modal-content{ padding:0; height:100vh; }
.welcome{ height:100vh; display:flex; flex-direction:column; background:#f7f8fb; }

.welcome__top{
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap:12px;
  padding:12px 16px;
}
.welcome__top_col {
  width: 100px;
}
.welcome__lang,
.welcome__skip{
  background: transparent;
  border: none;
  outline: none;
  color:#394150; 
  cursor:pointer; 
  white-space:nowrap;
}
.welcome__skip {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
}
.welcome__bars{
  width:100%; max-width:200px; margin:0 auto;
  display:grid; grid-auto-flow:column; gap:6px; align-items:center; flex: 1;
}
.welcome__bar{ height:2px; background:#e3e6ec; border-radius:999px; overflow:hidden; }
.welcome__barFill{ display:block; height:100%; width:0%; background:#08a652; transition:width .2s linear; }

.welcome__viewport{ position:relative; flex:1; display:flex; flex-direction:column; overflow:hidden; }
.welcome__track{ display:flex; height:100%; transition:transform .35s ease; z-index:1; }
.welcome__slide{
  width:100%; flex:0 0 100%;
  display:grid; grid-template-rows: 1fr auto;
  height:100%;
}
.welcome__imgWrap{ 
  align-items: end;
  display: flex;
  flex: 1;
  height: 100%;
  justify-content: center;
  margin-bottom: -20px;
  overflow: hidden;
  position: relative;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}
.welcome__img{ @max-width:min(520px, 90vw); width:auto; height:100%; display:block; }

.welcome__card{
  position:relative; z-index:99; /* чтобы кнопки были кликабельны поверх горячих зон */
  background:#fff; border-radius:24px 24px 0 0; padding:24px; padding-bottom: calc(24px + var(--safe-bot));
  box-shadow:0 -6px 24px rgba(20,26,40,0.06);
}
.welcome__title{ font-size:24px; line-height:1.25; font-weight:600; margin-bottom:8px; text-align:center; }
.welcome__highlight{ color:#08a652; }
.welcome__text{ color:#667085; text-align:center; font-size:15px; line-height:1.5; margin:0 auto 24px; max-width:560px; }
.welcome__card .btn {
  width: 100%;
}

.welcome__navHotspot{
  position:absolute; top:0; bottom:0; width:18%;
  background:rgba(0,0,0,0); border:0; padding:0; cursor:pointer;
  z-index:2;
}
.welcome__navHotspot--left{ left:0; }
.welcome__navHotspot--right{ right:0; }

@media (min-width:768px){
  .welcome__title{font-size:26px}
  .welcome__text{font-size:16px}
}

/* Welcome code */


/* Notification */
.btn_notifications {
  position: relative;
}
.new_notifications {
  position: absolute;
  top: 3px;
  right: 3px;
  content: "";
  width: 6px;
  height: 6px;
  background: red;
  border-radius: 6px;
  outline: 2px solid rgba(255, 0, 0, .2);
}

.notif-list {
  display: flex;
  gap: 10px;
  flex-direction: column;
}
.notif-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;                 /* С‡СѓС‚СЊ СЃРІРѕР±РѕРґРЅРµРµ */
  height: 60px;
  background: var(--card);
  color: var(--text);
  border-radius: var(--radius);
  -webkit-tap-highlight-color: transparent;
  transition: border-color .15s ease, box-shadow .15s ease, transform .06s ease;
}
.notif-item.new::after {
  position: absolute;
  top: 10px;
  right: 10px;
  content: "";
  width: 8px;
  height: 8px;
  background: red;
  border-radius: 8px;
  outline: 2px solid rgba(255, 0, 0, .2);
}
.notif-item:active { transform: scale(.996); }
.notif-data {
  display: flex;
  gap: 10px;
  min-width: 0;                    /* С‡С‚РѕР±С‹ СЂР°Р±РѕС‚Р°Р» ellipsis */
}
.notif-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgb(234, 248, 234);                /* РєР°Рє Р±С‹Р»Рѕ */
  color: var(--accent);
  font-weight: 700;
  flex: 0 0 auto;
}
.notif-info, 
.notif-value {
  line-height: 1.45;               
  min-width: 0;                    
}
.notif-info big {
  display: block;
  font-size: 14px;                 
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap; 
  overflow: hidden; 
  text-overflow: ellipsis;
}
.notif-info span {
  display: block;
  font-size: 10px;                 
  color: var(--muted);
  white-space: nowrap; 
  overflow: hidden; 
  text-overflow: ellipsis;
}
.notif-info small {
  margin-top: 2px;
  display: block;
  font-size: 8px;                
  color: var(--muted);
  opacity: .7;
  white-space: nowrap; 
  overflow: hidden; 
  text-overflow: ellipsis;
}
/* Notification */


/* toast */
.tg-toast-wrap{
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 99999;
  pointer-events: none;
}
.tg-toast{
  pointer-events: auto;
  max-width: 92vw;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.25;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.15);
  opacity: 0;
  transform: translateY(8px);
  animation: tg-toast-in .18s ease-out forwards;
}
.tg-toast--success{ background: #22c55e; } /* зелёный */
.tg-toast--error  { background: #ef4444; } /* красный */
.tg-toast__icon{ font-size: 16px; line-height: 1; }
.tg-toast__text{ word-break: break-word; }
.tg-toast--out{ animation: tg-toast-out .16s ease-in forwards; }
@keyframes tg-toast-in{ to{ opacity:1; transform: translateY(0); } }
@keyframes tg-toast-out{ to{ opacity:0; transform: translateY(8px); } }
/* toast */


/* partners */
/* Partners * /



/* скрываем только эти два типа сумм */
.balances-hidden .user-balance big,
.balances-hidden .user-earnings,
.balances-hidden .deposit-item_value big{
  position: relative;
  color: transparent !important;
}
.balances-hidden .user-balance big::after,
.balances-hidden .user-earnings::after,
.balances-hidden .deposit-item_value big::after{
  content: '******';
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
}
.balances-hidden .user-balance big::after {
  color: #fff;
  justify-content: center;
}
.balances-hidden .user-earnings::after {
  color: #fff;
}
.balances-hidden .deposit-item_value big::after{
  color: var(--text);
  justify-content: end;
}


/* laguages */
.languages{ 
  display:grid; 
  gap:4px; 
}
.language-item{
  appearance:none; 
  background:#fff; 
  color:inherit;
  display:flex; 
  align-items:center; 
  justify-content:space-between; 
  gap:12px;
  padding:10px 12px; 
  border-radius:12px; 
  cursor:pointer;
  border: none;
}
.language-label{ display:flex; align-items:center; gap:10px; min-width:0; }
.language-icon{ width:28px; height:28px; border-radius:50%; background:#f3f4f6; flex:none; }
.language-data{ font-weight:700; }
.language-checkbox{
  width:20px; height:20px; border-radius:50%;
  border:2px solid #cbd5e1; background:#fff; position:relative; flex:none;
}
.language-item.is-active .language-checkbox{ border-color:var(--primary); }
.language-item.is-active .language-checkbox::after{
  content:""; position:absolute; inset:3px; border-radius:50%; background:var(--primary);
}
.language-item:focus-visible{ outline:2px solid var(--primary); outline-offset:2px; }



.ios-switch{display:inline-flex;align-items:center;gap:10px;cursor:pointer;user-select:none}
.ios-switch .ios-text{font:500 14px/1.2 system-ui,-apple-system,Segoe UI,Roboto,Arial}
.ios-switch input{position:absolute;opacity:0;width:0;height:0}
.ios-slider{
  position:relative;width:46px;height:28px;border-radius:999px;
  background:#e5e7eb; transition:background .2s;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}
.ios-slider::before{
  content:""; position:absolute; top:3px; left:3px; width:22px; height:22px;
  background:#fff; border-radius:50%; transition:transform .2s;
  box-shadow:0 1px 3px rgba(0,0,0,.15);
}
.ios-switch input:checked + .ios-slider{ background:#22c55e; }
.ios-switch input:checked + .ios-slider::before{ transform: translateX(18px); }
.ios-switch input:disabled + .ios-slider{ opacity:.6; cursor:not-allowed; }



