* { box-sizing: border-box; font-family: Inter, system-ui, sans-serif; }

body {
  margin: 0;
  background: #212121;
  color: #E5E7EB;
}

.app { display: flex; height: 100vh; }

/* Sidebar */
.sidebar {
  width: 220px;
  background: #181818;
  padding: 20px;
  position: relative;
  z-index: 200;
}
.logo .title { font-weight: 700; }
.logo .sub { font-size: 12px; color: #9CA3AF; margin-top: 6px; }



/* Плашка продлений */


.status-failed {
  background: rgba(239,68,68,.15);
  color: #EF4444;
}

.status-check {
  background: rgba(59,130,246,.15);
  color: #3B82F6;
}

/* ===== Sidebar navigation (redesigned) ===== */
.sidebar-nav{
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.nav{
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;

  padding: 10px 12px;
  border-radius: 14px;

  background: transparent;
  border: 1px solid transparent;

  color: #9CA3AF;
  cursor: pointer;

  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.nav__icon{
  width: 36px;
  height: 36px;
  border-radius: 12px;

  display: inline-grid;
  place-items: center;

  background: #151515;
  border: 1px solid #212121;
  flex-shrink: 0;

  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.nav svg{
  width: 18px;
  height: 18px;
  display: block;
}

.nav__label{
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .2px;
}

.nav:hover{
  background: rgba(148,163,184,.06);
  color: #E5E7EB;
  border-color: #2a2a2a;
}

.nav:hover .nav__icon{
  transform: translateY(-1px);
  background: #1a1a1a;
  border-color: #2a2a2a;
}

.nav.active{
  background: rgba(37,99,235,.12);
  color: #ffffff;
  border-color: rgba(37,99,235,.22);
  position: relative;
}



.nav.active .nav__icon{
  background: rgba(37,99,235,.16);
  border-color: rgba(37,99,235,.28);
}

.main {
  flex: 1;
  padding: 20px;
  position: relative;
  z-index: 50;
}

.header { margin-bottom: 20px; }

/* Summary cards */
.summary-card {
  background: #181818;
  border: 1px solid #212121;
  border-radius: 12px;
  padding: 10px 14px;
  min-width: 160px;
  margin-bottom: 14px;
}
.summary-card.accent { border-color: #212121; }

.summary-label {
  font-size: 11px;
  color: #9CA3AF;
}
.summary-value {
  cursor: pointer;
  position: relative;
  font-size: 18px;
  font-weight: 600;
  margin-top: 4px;
}
.summary-value:hover { opacity: 0.8; }

/* Section title */
.section-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
  color: #E5E7EB;
}

.table--payouts td:nth-child(2) {
  font-weight: 800;
letter-spacing: .4px;
  font-size: 13px;
  color: #E5E7EB;
}

/* Сумма в статистике */
.table--stats td:nth-child(3) {
  font-weight: 800;
letter-spacing: .4px;
  font-size: 13px;
  color: #E57EB;
}

.status-badge {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  display: inline-block;
  white-space: nowrap;
}

/* В обработке — бирюза */
.status-processing {
  background: rgba(20, 184, 166, 0.15);
  color: #2DD4BF;
}

/* Выполнено — зелёный */
.status-done {
  background: rgba(34, 197, 94, 0.15);
  color: #22C55E;
}

/* Отменено — красный */
.status-cancel {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
}

/* Table wrapper (important for mobile) */
.table-wrap {
  background: #181818;
  border-radius: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid #0B1220;
  -webkit-overflow-scrolling: touch;
}

.icon-btn.pdf {
  color: #DC2626; /* основной красный */
}

.icon-btn.pdf:hover {
  color: #EF4444; /* светлее при наведении */
  background: #2b0f12;
}

/* Tables */
.table {
  width: 100%;
  border-collapse: collapse;
}
.table--payouts { min-width: 1100px; }
.table--stats { min-width: 760px; }

th, td {
  padding: 10px 8px;
  line-height: 1.35;
  font-size: 12px;
  border-bottom: 1px solid #212121;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
th { color: #9CA3AF; text-align: left; }

table thead {
  background: #181818;
  box-shadow: inset 0 -1px 0 #212121, 0 4px 12px rgba(0,0,0,0.35);
}
table thead th {
  color: #E5E7EB;
  font-weight: 600;
  padding: 10px 8px;
  border-bottom: 1px solid #212121;
}

/* Requisites cell */
.req-cell { cursor: pointer; }
.req-cell:hover { opacity: 0.85; }

/* Bank cell */
.bank-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.bank-cell img { width: 20px; height: 20px; object-fit: contain; }

/* Actions cell */
.actions-cell {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  white-space: nowrap;
}

/* Icon buttons */
.icon-btn {
  width: 36px;
  height: 36px;
  min-width: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: #212121;
  border: 1px solid #212121;
  border-radius: 10px;
  cursor: pointer;

  font-size: 16px;
  line-height: 1;

  color: #ffffff; /* ← скрепка белая */
}

.icon-btn:hover {
  background: #9A9A9A;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}

.icon-btn { color: white; }
.icon-btn.danger { color: #EF4444; }

/* крестик */

.icon-btn.danger:hover {
  background: #2b0f12;
}

/* PDF button (kept as small button) */
.btn {
  background: #2563EB;
  border: none;
  color: white;
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  display: inline-block;
  text-decoration: none;
}
.btn:hover { filter: brightness(1.08); }

/* Bank search input */
.bank-search { width: 170px; }
.bank-search-input {
  width: 100%;
  background: #181818;
  color: #fff;
  border: 1px solid #212121;
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 13px;
  cursor: text;
  outline: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bank-search-list { display: none; }

/* Copy toast */
.copy-toast {
  position: fixed;
  background: #111827;
  border: 1px solid #1F2937;
  color: #E5E7EB;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
  z-index: 9999;
}
.copy-toast.show { opacity: 1; transform: translateY(0); }

/* Stats layout */
.stats-grid {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

/* Mobile: tighter paddings */
@media (max-width: 700px) {
  th, td { padding: 10px 8px; }
}

/* ===== Modal ===== */
.modal[hidden] { display: none; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}

.modal__card{
  position: relative;
  width: min(560px, calc(100% - 24px));
  margin: 80px auto;
  background: #181818;
  border: 1px solid #212121;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,.55);
  padding: 14px;
}

.modal__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.modal__title{
  font-size: 15px;
  font-weight: 700;
  color: #E5E7EB;
}

.modal__sub{
  margin-top: 2px;
  font-size: 12px;
  color: #9CA3AF;
}

.modal__body{ margin-bottom: 14px; }

.upload-box{
  border: 1px dashed #181818;
  border-radius: 12px;
  padding: 16px;
  background: rgba(12,12,12);
}

.upload-box.dragover{
  border-color: #2DD4BF;
  background: rgba(255,184,166,.12);
}

.upload-box__text{
  font-size: 13px;
  color: #E5E7EB;
  margin-bottom: 12px;
}

.upload-actions{
  display:flex;
  align-items:center;
  gap: 12px;
  flex-wrap: wrap;
}






/* строка поиска выплаты */
.search-row { padding: 40px !important; text-align: center; color: #9CA3AF; }
.search-wrap { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; }

.spinner{
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(156,163,175,.35);
  border-top-color: rgba(156,163,175,1);
  animation: spin .8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* плашки */
.badge-time { background: rgba(59,130,246,.15); color: #60A5FA; }
.badge-prolong { background: rgba(168,85,247,.15); color: #C084FC; }

/* имя pdf */
.pdf-name{
  font-size: 12px;
  color: #9CA3AF;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}






.icon-btn.send {
  color: #22C55E;
}
.icon-btn.send:hover {
  background: rgba(34,197,94,.12);
  border-color: rgba(34,197,94,.35);
}


.upload-file{
  font-size: 12px;
  color: #9CA3AF;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal__footer{
  display:flex;
  justify-content:flex-end;
}
/* ===== Cancel modal ===== */
.cancel-reasons{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.cancel-reason{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid #212121;
  background: rgba(148,163,184,.06);
  color:#E5E7EB;
  cursor:pointer;
  text-align:left;
}

.cancel-reason:hover{
  background: rgba(148,163,184,.10);
}

.cancel-reason.active{
  border-color: rgba(239,68,68,.55);
  background: rgba(239,68,68,.10);
}

.cancel-reason__icon{
  width:22px;
  display:inline-flex;
  justify-content:center;
}

.cancel-reason__text{
  font-size:13px;
}

.btn.danger{
  background: rgba(239,68,68,.18);
  border: 1px solid rgba(239,68,68,.35);
  color:#EF4444;
}

.btn.danger:disabled{
  opacity:.45;
  cursor:not-allowed;
}
.req-blur {
  filter: blur(6px);
  user-select: none;
  pointer-events: none;
}

.massmo-cell { cursor: pointer; }
.massmo-cell:hover { opacity: .85; }


.req-cell.locked {
  cursor: default;
}

.bank-search.locked {
  opacity: .55;
  pointer-events: none; /* полностью блокируем клики по input */
}

.icon-btn.claim {
  color: #60A5FA;
}
.icon-btn.claim:hover {
  background: rgba(59,130,246,.12);
  border-color: rgba(59,130,246,.35);
}
.icon-btn.unclaim {
  color: #FBBF24; /* янтарный */
}

.icon-btn.unclaim:hover {
  background: rgba(251,191,36,.12);
  border-color: rgba(251,191,36,.35);
}
/* ===== Added: sidebar footer ===== */
.sidebar-footer {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 16px;
}

.btn-ghost {
  background: transparent;
  border: 1px solid #2a2a2a;
  color: #9CA3AF;
}
.btn-ghost:hover {
  color: #fff;
  background: #212121;
}

/* ===== Added: tabs ===== */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.tab {
  background: #181818;
  border: 1px solid #212121;
  color: #9CA3AF;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 12px;
}
.tab:hover { filter: brightness(1.08); }
.tab.active {
  background: #212121;
  color: #fff;
  border-color: #2a2a2a;
}

/* ===== Added: settings ===== */
.settings-card{
  background: #181818;
  border: 1px solid #212121;
  border-radius: 14px;
  padding: 14px;
  max-width: 560px;
}

.settings-sub{
  font-size: 12px;
  color: #9CA3AF;
  margin-bottom: 12px;
}

.profile-list{
  display: grid;
  gap: 10px;
  margin: 10px 0 14px;
}

.profile-item{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border: 1px solid #212121;
  border-radius: 12px;
  background: #151515;
  cursor: pointer;
}
.profile-item input{ transform: scale(1.15); }
.profile-item__name{
  font-size: 13px;
  color: #E5E7EB;
}

.settings-actions{
  display: flex;
  align-items: center;
  gap: 12px;
}
.settings-status{
  font-size: 12px;
  color: #9CA3AF;
}

/* ===== Added: login form ===== */
.form { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; }
.field__label { font-size: 12px; color: #9CA3AF; }

.input{
  width: 100%;
  background: #121212;
  color: #fff;
  border: 1px solid #212121;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  outline: none;
}
.input:focus{
  border-color: #2a2a2a;
  filter: brightness(1.08);
}

.form-error{
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.22);
  color: #EF4444;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 12px;
}

.hint{
  margin-top: 14px;
  padding: 12px 14px;
  background: #181818;
  border: 1px solid #212121;
  border-radius: 12px;
  color: #9CA3AF;
  font-size: 12px;
}

.muted{ color: #9CA3AF; }

/* ===== Bank modal ===== */
.bank-card { max-width: 520px; }

.bank-searchbox{
  display:flex; align-items:center; gap:10px;
  background:#121212;
  border:1px solid #181818;
  border-radius:12px;
  padding:10px 12px;
  margin-bottom:12px;
}
.bank-searchbox__icon{ opacity:.7; }
.bank-searchbox__input{
  width:100%;
  background:transparent;
  border:none;
  outline:none;
  color:#fff;
  font-size:13px;
}

.bank-list{ display:grid; gap:8px; }

.bank-item{
  display:flex; align-items:center; gap:10px;
  width:100%;
  background:#121212;
  border:1px solid #181818;
  border-radius:12px;
  padding:10px 12px;
  cursor:pointer;
  color:#fff;
}
.bank-item:hover{ filter:brightness(1.08); }

.bank-item__dot{
  width:14px; height:14px; border-radius:999px;
  border:2px solid #212121;
  background:transparent;
  flex:0 0 auto;
}
.bank-item__icon{
  width:22px; height:22px; object-fit:contain;
}
.bank-item__name{ font-size:13px; }

.bank-pick-btn{
  width:100%;
  text-align:left;
  background:transparent;
  border:none;
  padding:0;
  cursor:pointer;
}
.bank-pick-btn.locked{
  cursor:not-allowed;
  opacity:.6;
}
.bank-pick-placeholder{
  color:#9CA3AF;
  font-size:13px;
}
/* ===== FIX: icon buttons svg ===== */
.icon-btn {
  color: #E5E7EB; /* чтобы currentColor был виден */
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}

.icon-btn svg path {
  stroke: currentColor;
}

.tg-check {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #0b1220;
  border: 1px solid #1f2a44;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .18s ease;
}

.tg-check svg {
  width: 18px;
  height: 18px;
}

/* enqueue */
.tg-check-blue {
  color: #3b82f6;
}

.tg-check-blue:hover {
  background: #172554;
  border-color: #3b82f6;
  transform: scale(1.05);
}

/* send */
.tg-check-green {
  color: #22c55e;
}

.tg-check-green:hover {
  background: #052e16;
  border-color: #22c55e;
  transform: scale(1.05);
}

.tg-check:active {
  transform: scale(0.9);
}

/* FIX: bank text color */
.bank-item {
  color: #E5E7EB;         /* общий цвет для строки в модалке */
}

.bank-item__name {
  color: inherit;         /* наследуем от .bank-item */
}

/* FIX: bank picker button (в таблице) */
.bank-pick-btn {
  color: #E5E7EB;         /* чтобы текст не становился чёрным */
}

.bank-cell span {
  color: inherit;         /* на всякий случай */
}

/* ===== Unified action buttons (TG/Linear style) ===== */
.action-btn{
  width: 34px;
  height: 34px;
  min-width: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 10px;
  background: #1a1a1a;
  border: 1px solid #262626;

  cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
  color: #E5E7EB;
}

.action-btn svg{
  width: 18px;
  height: 18px;
  display: block;
}

.action-btn svg path{
  stroke: currentColor;
}

.action-btn:hover{
  background: #222;
  border-color: #2f2f2f;
  transform: translateY(-1px);
}

.action-btn:active{
  transform: scale(.92);
}

/* Variants */
.action-btn--blue{  color:#60A5FA; }
.action-btn--blue:hover{  background: rgba(59,130,246,.14); border-color: rgba(59,130,246,.35); }

.action-btn--green{ color:#22C55E; }
.action-btn--green:hover{ background: rgba(34,197,94,.14); border-color: rgba(34,197,94,.35); }

.action-btn--amber{ color:#FBBF24; }
.action-btn--amber:hover{ background: rgba(251,191,36,.14); border-color: rgba(251,191,36,.35); }

.action-btn--red{   color:#EF4444; }
.action-btn--red:hover{   background: rgba(239,68,68,.14); border-color: rgba(239,68,68,.35); }

/* Optional: disable look */
.action-btn:disabled{
  opacity:.45;
  cursor:not-allowed;
  transform:none;
}
.tg-x-red { color:#ef4444; }
.tg-x-red:hover { background:#2b0f12; border-color: rgba(239,68,68,.35); transform: scale(1.05); }

/* ===== requisites badge ===== */

.req-badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 8px;

  background: #0b1220;
  border: 1px solid #1f2a44;

  font-size: 12px;
  font-weight: 600;
  letter-spacing: .3px;

  color: #dbeafe;
  cursor: pointer;

  transition: all .15s ease;
}

.req-badge:hover {
  background: #111a33;
  border-color: #2f3d6b;
}

.req-cell.locked .req-badge {
  opacity: .55;
  cursor: default;
}
/* ===== bank badge ===== */

.bank-badge{
  display:inline-block;
  padding:6px 10px;
  border-radius:8px;

  background:#0b1220;
  border:1px solid #1f2a44;

  font-size:12px;
  font-weight:600;
  letter-spacing:.3px;

  color:#dbeafe;
}

.bank-badge--empty{
  color:#60A5FA;
  border-color:#2f3d6b;
}

.bank-badge--empty:hover{
  background:#111a33;
}

/* ===== Unified badges (req / bank / massmo) ===== */

.req-badge,
.bank-badge,
.massmo-badge,
.bank-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 6px 10px;
  border-radius: 10px;

  background: #212121;
  border: 1px solid #181818;

  font-size: 12px;
  font-weight: 600;
  letter-spacing: .3px;

  color: #dbeafe;

  transition: background .15s ease, border-color .15s ease, opacity .15s ease;
}

/* hover (кликабельные) */
.req-badge:hover,
.massmo-badge:hover,
.bank-badge--empty:hover {
  background: #424242;
  border-color: #636363;
}

/* пустая “Выбрать банк” */
.bank-badge--empty {
  color: #dbeafe;
  border-color: #424242;
}

/* когда locked — не кликается */
.req-cell.locked .req-badge {
  opacity: .55;
  cursor: default;
}

/* MassMo ID — явно кликабельно */
.massmo-badge {
  cursor: pointer;
}

/* bank button делаем "прозрачной", чтобы выглядело как плашка внутри */
.bank-pick-btn{
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

/* когда locked — приглушаем плашку банка и блокируем кнопку */
.bank-pick-btn.locked {
  opacity: .55;
  pointer-events: none;
}

/* иконки банка внутри плашки */
.bank-cell img { width: 18px; height: 18px; object-fit: contain; }

.rate-badge{
  display:inline-flex;
  align-items:center;

  padding:6px 10px;
  border-radius:10px;

  background:#212121;
  border:1px solid #181818;

  font-size:12px;
  font-weight:600;
  letter-spacing:.3px;

  color:#dbeafe;
  
  
}
/* ===== amount badge (без hover) ===== */

.amount-badge{
  display:inline-flex;
  align-items:center;

  padding:6px 10px;
  border-radius:10px;

  background:#333333;
  border:2px solid #212121;

  font-size:12px;
  font-weight:700;
  letter-spacing:.3px;

  color:#dbeafe;
}

/* ===== camera button on summary card ===== */
/* ===== Summary head + inline camera ===== */
.summary-head{
  display:flex;
  align-items:center;
  gap:8px;
}

.cam-btn.cam-btn--inline{
  position: static;        /* убрать absolute */
  width: 26px;
  height: 26px;
  border-radius: 8px;

  background: #212121;
  border: 1px solid #2a2a2a;
  color: #9CA3AF;

  display:inline-flex;
  align-items:center;
  justify-content:center;

  cursor:pointer;
}

.cam-btn.cam-btn--inline:hover{
  background:#111a33;
  border-color:#2f3d6b;
  color:#E5E7EB;
}

.cam-btn.cam-btn--inline svg{
  width: 15px;
  height: 15px;
  display:block;
}

/* ===== Toggle switch ===== */
.settings-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.settings-row__title{
  font-size:13px;
  font-weight:700;
  color:#E5E7EB;
}

.settings-row__sub{
  margin-top:4px;
  font-size:12px;
  color:#9CA3AF;
}

.switch{
  position:relative;
  display:inline-block;
  width:48px;
  height:28px;
  flex:0 0 auto;
}

.switch input{
  opacity:0;
  width:0;
  height:0;
}

.switch__slider{
  position:absolute;
  cursor:pointer;
  inset:0;
  background:#212121;
  border:1px solid #2a2a2a;
  border-radius:999px;
  transition:all .15s ease;
}

.switch__slider:before{
  content:"";
  position:absolute;
  height:22px;
  width:22px;
  left:3px;
  top:50%;
  transform:translateY(-50%);
  background:#9CA3AF;
  border-radius:50%;
  transition:all .15s ease;
}

.switch input:checked + .switch__slider{
  background: rgba(34,197,94,.18);
  border-color: rgba(34,197,94,.35);
}

.switch input:checked + .switch__slider:before{
  transform:translate(20px,-50%);
  background:#22C55E;
}

.bank-card {
  max-width: 520px;
}

/* ограничение списка до 6 банков + скролл */
.bank-card{
  --bank-row-h: 52px; /* высота одной строки банка (подгони если надо) */
  --bank-gap: 8px;    /* должно совпадать с gap у .bank-list */
}

.bank-list{
  display: grid;
  gap: var(--bank-gap);

  /* 6 строк + 5 промежутков между ними */
  max-height: calc(var(--bank-row-h) * 6 + var(--bank-gap) * 5);
  overflow-y: auto;

  padding-right: 6px;       /* чтобы контент не прилипал к скроллу */
  overscroll-behavior: contain;
}

/* фиксируем высоту айтема, чтобы ровно 6 помещалось */
.bank-item{
  min-height: var(--bank-row-h);
}

/* (опционально) аккуратный скролл */
.bank-list::-webkit-scrollbar { width: 6px; }
.bank-list::-webkit-scrollbar-thumb { background: #26324f; border-radius: 999px; }
.bank-list::-webkit-scrollbar-track { background: transparent; }

.action-btn--green {
  color: #22C55E;
}

.action-btn--green:hover {
  background: rgba(34,197,94,.12);
  border-color: rgba(34,197,94,.35);
}

.processing-until.time-warn {
  border-color: rgba(245, 158, 11, .55);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, .10) inset;
}

.processing-until .bang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  font-weight: 900;
  font-size: 14px;
  line-height: 1;
  color: #f59e0b;
}

/* привязанная заявка */
tr.row-claimed {
  background: rgba(59, 130, 246, 0.08); /* мягкий синий */
  transition: background .2s ease;
}

/* при наведении немного ярче */
tr.row-claimed:hover {
  background: rgba(59, 130, 246, 0.14);
}
tr.row-done {
  background: rgba(34, 197, 94, 0.08);
  transition: background .2s ease;
}

tr.row-done:hover {
  background: rgba(34, 197, 94, 0.14);
}

tr.row-failed {
  background: rgba(239, 68, 68, 0.08);
  transition: background .2s ease;
}

tr.row-failed:hover {
  background: rgba(239, 68, 68, 0.14);
}
/* ===== Pretty switch (hard) ===== */
.switch{
  display:inline-flex !important;
  align-items:center !important;
  gap:10px !important;
  cursor:pointer;
  user-select:none;
  -webkit-tap-highlight-color: transparent;
  color:#94a3b8;
  font-size:13px;
}

.switch input{
  position:absolute !important;
  opacity:0 !important;
  pointer-events:none !important;
}

.switch-ui{
  flex:0 0 44px !important;
  width:44px !important;
  min-width:44px !important;
  height:26px !important;
  border-radius:999px !important;
  background:rgba(148,163,184,.28) !important;
  border:1px solid rgba(148,163,184,.25) !important;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.25) !important;
  position:relative !important;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.switch-ui::before{
  content:"";
  position:absolute;
  top:50%;
  left:3px;
  width:20px;
  height:20px;
  border-radius:999px;
  transform:translateY(-50%);
  background:#0b0d10;
  border:1px solid rgba(255,255,255,.10);
  box-shadow: 0 6px 14px rgba(0,0,0,.45);
  transition: transform .18s ease, background .18s ease;
}

.switch-text{
  white-space:nowrap;
  opacity:.95;
}

/* checked (ВАЖНО: input сразу перед switch-ui) */
.switch input:checked + .switch-ui{
  background: rgba(34,197,94,.35) !important;
  border-color: rgba(34,197,94,.45) !important;
  box-shadow: 0 0 0 3px rgba(34,197,94,.12) !important;
}
.switch input:checked + .switch-ui::before{
  transform: translate(18px, -50%);
}

/* focus */
.switch input:focus-visible + .switch-ui{
  outline:2px solid rgba(59,130,246,.55);
  outline-offset:2px;
}
.summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.summary-header {
  display: flex;
  align-items: center;
}

.summary-header .switch {
  margin-left: auto;
}
.summary-header .switch {
  margin-left: auto;
  margin-right: 90px;
}

.switch {
  margin-bottom: 12px; /* подгони под себя */
}

/* ===== Sidebar polish ===== */
.sidebar{
  background: linear-gradient(180deg, #161616 0%, #141414 100%);
}

.logo{
  padding-bottom: 12px;
  border-bottom: 1px solid #212121;
  margin-bottom: 12px;
}


/* ===== Premium: auto-collapse sidebar on narrow screens ===== */
@media (max-width: 920px){
  .sidebar{
    width: 78px;
    padding: 16px 12px;
  }

  .sidebar-title,
  .sidebar-sub{
    display: none;
  }

  .sidebar-nav{
    margin-top: 10px;
  }

  .nav{
    padding: 10px;
    justify-content: center;
  }

  .nav__label{
    display: none;
  }

  .nav__icon{
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .nav.active::before{
    left: 6px;
    top: 10px;
    bottom: 10px;
  }

  /* Tooltip */
  .nav{
    position: relative;
  }
  .nav::after{
    content: attr(data-tip);
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background: #0f0f0f;
    border: 1px solid #2a2a2a;
    color: #E5E7EB;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 10px;
    border-radius: 10px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .12s ease, transform .12s ease;
    z-index: 500;
    box-shadow: 0 14px 40px rgba(0,0,0,.45);
  }
  .nav:hover::after{
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

/* ===== Ultra narrow: make sidebar scrollable if needed ===== */
@media (max-width: 420px){
  .sidebar{
    width: 70px;
    padding: 12px 10px;
  }
  .nav__icon{
    width: 40px;
    height: 40px;
  }
}


/* ===== Manual collapse (toggle) ===== */
.sidebar{
  transition: width .18s ease, padding .18s ease;
}

.sidebar-collapse{
  margin-top: 10px;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;

  background: #151515;
  border: 1px solid #212121;
  color: #9CA3AF;
  cursor: pointer;

  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}

.sidebar-collapse:hover{
  background: #1a1a1a;
  border-color: #2a2a2a;
  color: #E5E7EB;
}

.sidebar-collapse svg{
  width: 18px;
  height: 18px;
  display: block;
}

/* collapsed state */
.sidebar.is-collapsed{
  width: 78px;
  padding: 16px 12px;
}

.sidebar.is-collapsed .sidebar-title__full,
.sidebar.is-collapsed .sidebar-sub{
  display: none;
}

.sidebar-title__mark{
  display: none;
  font-weight: 800;
  letter-spacing: .4px;
}

.sidebar.is-collapsed .sidebar-title__mark{
  display: inline-block;
}

.sidebar.is-collapsed .sidebar-nav{
  margin-top: 10px;
}

.sidebar.is-collapsed .nav{
  padding: 10px;
  justify-content: center;
}

.sidebar.is-collapsed .nav__label{
  display: none;
}

.sidebar.is-collapsed .nav__icon{
  width: 42px;
  height: 42px;
  border-radius: 14px;
}

.sidebar.is-collapsed .nav.active::before{
  left: 6px;
  top: 10px;
  bottom: 10px;
}

/* Tooltip in collapsed mode (even on wide screens) */
.sidebar.is-collapsed .nav{
  position: relative;
}

.sidebar.is-collapsed .nav::after{
  content: attr(data-tip);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: #0f0f0f;
  border: 1px solid #2a2a2a;
  color: #E5E7EB;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 10px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s ease, transform .12s ease;
  z-index: 500;
  box-shadow: 0 14px 40px rgba(0,0,0,.45);
}

.sidebar.is-collapsed .nav:hover::after{
  opacity: 1;
}

.sidebar-title{
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
}

.sidebar-title__mark{
  display: none;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #ffffff;
}

.sidebar.is-collapsed .sidebar-title{
  justify-content: center;
}

.sidebar.is-collapsed .sidebar-title__mark{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.nav-logout{
  margin-top: auto;
  color: #F87171;
}

.nav-logout:hover{
  background: rgba(239,68,68,.12);
  border-color: rgba(239,68,68,.25);
  color: #fff;
}

.nav-logout .nav__icon{
  background: rgba(239,68,68,.08);
  border-color: rgba(239,68,68,.2);
}

/* ===== Modern Settings UI ===== */

.settings{
  max-width: 760px;
}

/* Заголовки секций чуть выразительнее */
.settings .section-title{
  margin-top: 6px;
  margin-bottom: 12px;
  font-size: 18px;
  letter-spacing: .2px;
}

/* Карточки: мягкий градиент + тень */
.settings-card{
  background: linear-gradient(180deg, rgba(24,24,24,1) 0%, rgba(18,18,18,1) 100%);
  border: 1px solid rgba(42,42,42,.9);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 14px 40px rgba(0,0,0,.35);
  max-width: 100%;
}

/* Ряд уведомлений: выравнивание и отступы */
.settings-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 6px 2px;
}

.settings-row__title{
  font-size: 14px;
  font-weight: 700;
}

.settings-row__sub{
  font-size: 12px;
  line-height: 1.35;
  opacity: .9;
}

/* Статусы внутри карточек */
.settings-status{
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(42,42,42,.7);
  color: #9CA3AF;
}

/* Тумблер: чуть компактнее и “чище” */
.switch{
  width: 46px;
  height: 26px;
}

.switch__slider{
  background: rgba(33,33,33,1);
  border: 1px solid rgba(42,42,42,1);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.25);
}

.switch__slider:before{
  height: 20px;
  width: 20px;
  left: 3px;
  background: #A3A3A3;
}

.switch input:checked + .switch__slider{
  background: rgba(34,197,94,.18);
  border-color: rgba(34,197,94,.35);
}

.switch input:checked + .switch__slider:before{
  transform: translate(20px,-50%);
  background: #22C55E;
}

/* Токены: современный selectable row */
.profile-list{
  gap: 10px;
}

.profile-item{
  background: rgba(21,21,21,.75);
  border: 1px solid rgba(42,42,42,.85);
  border-radius: 14px;
  padding: 12px 12px;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}

.profile-item:hover{
  background: rgba(148,163,184,.06);
  border-color: rgba(148,163,184,.20);
  transform: translateY(-1px);
}

/* Чекбокс делаем аккуратнее (без кастомной разметки) */
.profile-item input[type="checkbox"]{
  width: 18px;
  height: 18px;
  transform: none;         /* убираем текущий scale */
  accent-color: #2563EB;   /* современный нативный стиль */
}

/* Кнопка "Сохранить" чуть “премиум” */
#profiles-save.btn{
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: 0 12px 26px rgba(37,99,235,.18);
}
/* ===== Sidebar user card ===== */

.sidebar-user-card{
  margin: 8px 0 14px 0;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 0;              /* убираем внутренние отступы */
  background: transparent; /* убираем фон */
  border: none;            /* убираем рамку */
  box-shadow: none;        /* убираем тень */
}

.sidebar-user-card__icon{
  width: 28px;
  height: 28px;
  border-radius: 10px;

  display: inline-grid;
  place-items: center;

  background: rgba(37,99,235,.15);
  border: 1px solid rgba(37,99,235,.35);

  color: #60A5FA;
}

.sidebar-user-card__icon svg{
  width: 16px;
  height: 16px;
}

.sidebar-user-card__name{
  font-size: 15px;
  letter-spacing: .3px;
}

/* ===== Collapsed avatar mode ===== */

.sidebar.is-collapsed .sidebar-user-card{
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.sidebar.is-collapsed .sidebar-user-card__icon{
  display: none;
}

.sidebar.is-collapsed .sidebar-user-card__name{
  display: none;
}

/* Кружок с первой буквой */
.sidebar.is-collapsed .sidebar-user-card::after{
  content: attr(data-initial);
  width: 24px;
  height: 24px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 12px;
  font-weight: 800;

  color: #fff;

  background: linear-gradient(135deg,#2563EB,#1D4ED8);
  box-shadow: 0 10px 25px rgba(37,99,235,.35);
}

/* ===== Sidebar brand card ===== */
.logo{
  padding-bottom: 12px;
  border-bottom: 1px solid #212121;
  margin-bottom: 12px;
}

/* плашка вокруг названия */
.sidebar-title{
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 12px 12px;
  border-radius: 16px;

  background: linear-gradient(180deg, #1a1a1a 0%, #141414 100%);
  border: 1px solid #212121;
  box-shadow: 0 12px 34px rgba(0,0,0,.35);

  text-align: center;
}

/* текст внутри */
.sidebar-title__full{
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .6px;
  color: #E5E7EB;
}

/* на всякий — если где-то еще .logo .title используется */
.logo .title{
  font-weight: 800;
}

.sidebar-title{
  margin-bottom: 20px;
}

.sidebar.is-collapsed .sidebar-collapse{
  margin: 12px auto;
}
.sidebar-collapse{
  margin: 12px auto 16px auto;
}
#users-list{
  display: flex;
  flex-direction: column;
  gap: 12px; /* расстояние между пользователями */
}
#users-list{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.user-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  padding: 12px 14px;
  border-radius: 14px;

  background: rgba(21,21,21,.75);
  border: 1px solid rgba(42,42,42,.85);
}

.user-row__name{
  font-size: 14px;
  font-weight: 700;
  color: #E5E7EB;
}

.user-row__meta{
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-badge{
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.user-badge--online{
  color: #22C55E;
  background: rgba(34,197,94,.12);
  border-color: rgba(34,197,94,.25);
}

.user-badge--offline{
  color: #9CA3AF;
  background: rgba(148,163,184,.08);
  border-color: rgba(148,163,184,.18);
}
.user-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}

.user-row__name{
  color: #E5E7EB !important;
  font-size: 14px;
  font-weight: 700;
  flex: 1;              /* чтобы занимало место слева */
  min-width: 0;         /* чтобы работал ellipsis */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-row__meta{
  flex-shrink: 0;
}

.action-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* ===== Modern Bybit modal ===== */
.modal__backdrop{
  background: rgba(0,0,0,.68);
  backdrop-filter: blur(6px);
}

.modal__backdrop{
  animation: modalFade .25s ease;
}

@keyframes modalFade{
  from{
    opacity:0;
    backdrop-filter: blur(0px);
  }
  to{
    opacity:1;
    backdrop-filter: blur(6px);
  }
}

#bybit-modal .modal__card{
  width: min(640px, calc(100% - 28px));
  margin: 90px auto;
  padding: 18px 18px 16px;

  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);

  background: linear-gradient(180deg, rgba(24,24,24,.92), rgba(16,16,16,.92));
  box-shadow: 0 24px 70px rgba(0,0,0,.65);
}

#bybit-modal .modal__head{
  align-items: center;
  margin-bottom: 14px;
}

#bybit-modal .modal__title{
  font-size: 16px;
  letter-spacing: .2px;
}

#bybit-modal .modal__sub{
  margin-top: 4px;
  font-size: 12px;
  color: rgba(156,163,175,.9);
}

#bybit-modal .icon-btn.danger{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: #ef4444;
}

#bybit-modal .icon-btn.danger:hover{
  background: rgba(239,68,68,.10);
  border-color: rgba(239,68,68,.28);
}

/* Поле ввода */
#bybit-modal .field{
  display: grid;
  gap: 8px;
}

#bybit-modal .field__label{
  font-size: 12px;
  color: #9CA3AF;
}

#bybit-modal .field__input,
#bybit-modal input#bybit-rate-input{
  width: 100%;
  height: 44px;
  padding: 0 14px;

  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(10,10,10,.55);
  color: #E5E7EB;

  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, filter .15s ease;
}

#bybit-modal .field__input:focus,
#bybit-modal input#bybit-rate-input:focus{
  border-color: rgba(59,130,246,.55);
  box-shadow: 0 0 0 4px rgba(59,130,246,.15);
  filter: brightness(1.06);
}

/* Ошибка */
#bybit-modal #bybit-error{
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(239,68,68,.12);
  border: 1px solid rgba(239,68,68,.25);
  color: #ef4444;
  font-size: 12px;
}

/* Футер и кнопки */
#bybit-modal .modal__footer{
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

#bybit-modal .modal__footer .btn{
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  font-weight: 700;
}

#bybit-modal #bybit-cancel.btn{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: #E5E7EB;
}

#bybit-modal #bybit-cancel.btn:hover{
  background: rgba(255,255,255,.10);
}

#bybit-modal #bybit-submit.btn{
  background: linear-gradient(180deg, rgba(37,99,235,1), rgba(29,78,216,1));
}

#bybit-modal #bybit-submit.btn:hover{
  filter: brightness(1.08);
}

/* Плавное появление */
#bybit-modal:not([hidden]) .modal__card{
  animation: bybitPop .16s ease-out;
}
@keyframes bybitPop{
  from{ transform: translateY(-6px); opacity: .0; }
  to{ transform: translateY(0); opacity: 1; }
}


tr.row-time-warning{
  background: rgba(255, 149, 0, 0.18);
}

tr.row-time-warning:hover{
  background: rgba(255, 149, 0, 0.22);
}

.panel-update-notice{
  position: fixed;
  bottom: 24px;
  right: 24px;

  background: #111827;
  color: white;

  padding: 14px 18px;
  border-radius: 10px;

  box-shadow: 0 10px 30px rgba(0,0,0,.35);

  display:flex;
  gap:12px;
  align-items:center;

  z-index:9999;
}

.panel-update-notice button{
  background:#2563eb;
  border:none;
  color:white;
  padding:6px 12px;
  border-radius:6px;
  cursor:pointer;
}

.header-profile-badge{
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(37,99,235,.12);
  border: 1px solid rgba(37,99,235,.22);
  color: #dbeafe;
  font-size: 12px;
  font-weight: 700;
}

.sidebar-user-name{
  font-weight:600;
  font-size:15px;
}

.sidebar-user-role{
  display:inline-block;
  margin-top:3px;
  padding:2px 8px;
  font-size:11px;
  border-radius:6px;
  background:#1e293b;
  color:#9ca3af;
}

.sidebar-user-name{
  font-weight:600;
  font-size:15px;
}

.sidebar-user-role{
  display:inline-block;
  margin-top:4px;
  padding:3px 10px;
  font-size:11px;
  border-radius:8px;
  font-weight:500;
}

/* роли */

.role-admin{
  background:#3b0d0d;
  color:#ff6b6b;
}

.role-curator{
  background:#2e1065;
  color:#c084fc;
}

.role-operator{
  background:#0f172a;
  color:#60a5fa;
}

.role-director{
  background:#3f2f00;
  color:#facc15;
}

.settings-actions {
  margin-bottom: 16px;
}

.header-refresh-btn {
  border: 1px solid #2a2a2a;
  background: #151515;
  color: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: .15s ease;
}

.header-refresh-btn:hover {
  background: #1d1d1d;
}

.header-refresh-btn:disabled {
  opacity: .6;
  cursor: default;
}
tr.row-claimed {
  border: 2px solid #3b82f6;
}

tr.row-claimed td:first-child {
  border-left: 4px solid #3b82f6;
}
tr.row-claimed {
  box-shadow: inset 3px 0 0 #3b82f6;
}
/* ===== STATES ===== */

/* привязанная заявка */
tr.row-claimed {
  background: rgba(59,130,246,0.06);
}

tr.row-claimed td:first-child {
  border-left: 4px solid #3b82f6;
}

/* выполненная */
tr.row-done {
  background: rgba(34,197,94,0.08);
}

tr.row-done td:first-child {
  border-left: 4px solid #22c55e;
}

/* ошибка проверки */
tr.row-failed {
  background: rgba(239,68,68,0.08);
}

tr.row-failed td:first-child {
  border-left: 4px solid #ef4444;
}

/* предупреждение времени */
tr.row-time-warning {
  background: rgba(234,179,8,0.10);
}

tr.row-time-warning td:first-child {
  border-left: 4px solid #eab308;
}


/* CLAIMED */
tr.row-claimed {
  outline: 2px solid #3b82f6;
  background: rgba(59,130,246,0.05);
}

/* DONE */
tr.row-done {
  background: rgba(34,197,94,0.10);
}

/* FAILED */
tr.row-failed {
  background: rgba(239,68,68,0.12);
}

/* CHECK */
tr.row-check {
  background: rgba(139,92,246,0.10);
}

/* TIME WARNING */
tr.row-time-warning {
  background: rgba(234,179,8,0.12);
}
tr.row-claimed {
  outline: 2px solid #3b82f6;
  outline-offset: -2px;
}
tr.row-check {
  background: rgba(139,92,246,0.25);
}

.profile-item{
  display: flex;
  align-items: center;
  gap: 14px;

  padding: 14px 16px;
  border-radius: 14px;

  background: linear-gradient(180deg,#161616,#111);
  border: 1px solid #262626;

  cursor: pointer;

  transition:
    transform .15s ease,
    box-shadow .15s ease,
    border-color .15s ease,
    background .15s ease;
}

.profile-item:hover{
  transform: translateY(-2px);
  border-color: rgba(59,130,246,.45);
  box-shadow: 0 10px 22px rgba(0,0,0,.45);
}

.profile-item input{
  width: 18px;
  height: 18px;
  accent-color: #3B82F6;
}

.profile-item__name{
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .2px;
}

.profile-item input:checked + .profile-item__name{
  color: #60A5FA;
}
.profile-list{
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(180px,1fr));
  gap: 12px;
  margin: 12px 0 16px;
}
.btn.primary{
  background: linear-gradient(135deg,#2563EB,#4F46E5);
  border: none;
  color: white;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  transition: transform .15s ease, box-shadow .15s ease;
}

.btn.primary:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(37,99,235,.35);
}

.req {
  cursor: pointer;
}

.req.copied {
  background: #22c55e;
  color: white;
}
.dispute-card {
  width: min(520px, calc(100vw - 32px));
  border-radius: 22px;
  padding: 0;
  background: linear-gradient(180deg, rgba(17,17,19,.96), rgba(14,14,16,.98));
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow:
    0 28px 90px rgba(0,0,0,.48),
    inset 0 1px 0 rgba(255,255,255,.03);
  overflow: hidden;
}

.dispute-card .modal__head {
  padding: 22px 22px 14px;
  align-items: flex-start;
}

.dispute-card .modal__title {
  font-size: 26px;
  font-weight: 800;
  color: #f3f4f6;
  line-height: 1.05;
}

.dispute-card .modal__sub {
  margin-top: 6px;
  color: #9ca3af;
  font-size: 14px;
}

.dispute-card .modal__body {
  padding: 0 22px 18px;
}

.dispute-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dispute-fields .field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dispute-fields .field__label {
  font-size: 13px;
  font-weight: 700;
  color: #d1d5db;
  padding-left: 2px;
}

.req-star {
  color: #ef4444;
}

.dispute-input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 14px;
  background: #0c0d10;
  color: #f3f4f6;
  font-size: 15px;
  outline: none;
  transition: .18s ease;
  box-sizing: border-box;
}

.dispute-input::placeholder {
  color: #6b7280;
}

.dispute-input:hover {
  border-color: rgba(255,255,255,0.08);
}

.dispute-input:focus {
  border-color: rgba(96,165,250,.45);
  box-shadow: 0 0 0 4px rgba(59,130,246,.12);
  background: #0b0c0f;
}

select.dispute-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 42px;
  background-image:
    linear-gradient(45deg, transparent 50%, #9ca3af 50%),
    linear-gradient(135deg, #9ca3af 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% - 3px),
    calc(100% - 14px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.dispute-textarea {
  min-height: 120px;
  padding: 14px 16px;
  resize: vertical;
  line-height: 1.45;
}

.dispute-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 0 22px 22px;
}

.dispute-btn {
  min-width: 148px;
  height: 46px;
  border-radius: 14px;
  font-weight: 700;
}

.dispute-btn--ghost {
  background: #14161a;
  border: 1px solid rgba(255,255,255,0.06);
  color: #e5e7eb;
}

.dispute-btn--ghost:hover {
  background: #181b20;
}

.dispute-btn--primary {
  background: linear-gradient(180deg, #1f6fff, #145df0);
  border: 1px solid rgba(59,130,246,.35);
  color: #fff;
  box-shadow: 0 10px 24px rgba(20,93,240,.25);
}

.dispute-btn--primary:hover {
  filter: brightness(1.05);
}

@media (max-width: 640px) {
  .dispute-card {
    width: calc(100vw - 20px);
    border-radius: 18px;
  }

  .dispute-card .modal__head,
  .dispute-card .modal__body,
  .dispute-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .dispute-footer {
    flex-direction: column-reverse;
  }

  .dispute-btn {
    width: 100%;
    min-width: 0;
  }

  .dispute-card .modal__title {
    font-size: 22px;
  }
}

.dispute-reasons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dispute-reason {
  display: flex;
  align-items: center;
  gap: 12px;

  height: 48px;
  padding: 0 14px;

  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.05);

  background: #0c0d10;
  color: #e5e7eb;

  font-size: 14px;
  font-weight: 600;

  cursor: pointer;
  transition: .18s ease;
}

.dispute-reason:hover {
  background: #111217;
  border-color: rgba(255,255,255,0.1);
}

.dispute-reason.active {
  border-color: #3b82f6;
  background: rgba(59,130,246,.12);
}

.dispute-reason__icon {
  font-size: 18px;
}

.dispute-reason__text {
  flex: 1;
  text-align: left;
}

.dispute-reason__icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.dispute-reason__icon svg {
  width: 18px;
  height: 18px;
}

#salaries-section,
#admin-section{
  animation: fadeIn .15s ease;
}
[hidden] {
  display: none !important;
}

#shift-busy,
#shift-gate {
  width: 100%;
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  box-sizing: border-box;
}

.shift-card {
  width: 100%;
  max-width: 520px;
  padding: 28px;
  border-radius: 18px;
  background: #111318;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  text-align: center;
}

.shift-card__title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
}

.shift-card__text {
  font-size: 15px;
  opacity: .8;
  margin-bottom: 18px;
}

.summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.summary-header__left,
.summary-header__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-danger {
  background: #b91c1c;
  color: #fff;
}

.btn-danger:hover {
  background: #991b1b;
}

.shift-summary {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.shift-summary__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.04);
}

.tokens-bar {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);

  display: flex;
  gap: 12px;
  padding: 6px 10px;

  background: rgba(20,20,20,0.6);
  backdrop-filter: blur(6px);
  border-radius: 10px;

  z-index: 1000;
}

.header {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.header-left {
  position: relative;
  z-index: 2;
}

.header-center {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.tabs--top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(16, 18, 24, 0.78);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.tabs--top[hidden] {
  display: none !important;
}

.tabs--top .tab,
.tabs--top button {
  min-width: 88px;
  height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #bfc7d8;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s ease;
}

.tabs--top .tab:hover,
.tabs--top button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.tabs--top .tab.active,
.tabs--top button.active {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 0 18px rgba(37, 99, 235, 0.35);
}

#payouts-section {
  position: relative;
  padding-top: 64px;
}

.tabs--floating {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);

  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;

  border-radius: 14px;
  background: rgba(16, 18, 24, 0.78);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  z-index: 20;
}

.tabs--floating[hidden] {
  display: none !important;
}

.tabs--floating .tab,
.tabs--floating button {
  min-width: 88px;
  height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #bfc7d8;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s ease;
}

.tabs--floating .tab:hover,
.tabs--floating button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.tabs--floating .tab.active,
.tabs--floating button.active {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 0 18px rgba(37, 99, 235, 0.35);
}

#payouts-section {
  position: relative;
  padding-top: 70px;
}

.tabs--floating {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);

  display: flex;
  gap: 8px;
  padding: 6px;

  border-radius: 14px;
  background: rgba(16,18,24,0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.05);

  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  z-index: 20;
}

.tabs--floating button {
  min-width: 90px;
  height: 36px;
  padding: 0 14px;

  border: none;
  border-radius: 10px;

  background: transparent;
  color: #bfc7d8;

  font-size: 14px;
  cursor: pointer;
  transition: 0.2s;
}

.tabs--floating button:hover {
  background: rgba(255,255,255,0.06);
  color: white;
}

.tabs--floating button.active {
  background: #2563eb;
  color: white;
  box-shadow: 0 0 14px rgba(37,99,235,0.4);
}

.tabs--floating {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);

  display: flex;
  gap: 8px;
  padding: 6px;

  border-radius: 14px;
  background: rgba(16,18,24,0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.05);

  box-shadow: 0 10px 30px rgba(0,0,0,0.35);

  z-index: 1000;
}

.top-controls {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);

  display: flex;
  align-items: center;
  gap: 16px;

  z-index: 1000;
}

.shift-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tabs--floating {
  display: flex;
  gap: 6px;
  padding: 6px;

  border-radius: 14px;
  background: rgba(16,18,24,0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.05);
}

.top-bar {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);

  display: flex;
  align-items: center;
  gap: 16px;

  padding: 6px 12px;

  border-radius: 14px;
  background: rgba(16,18,24,0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.05);

  box-shadow: 0 10px 30px rgba(0,0,0,0.35);

  z-index: 1000;
}

#profile-tabs {
  display: flex;
  gap: 6px;
}

.top-tabs {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
}



#profile-tabs {
  display: flex;
  gap: 6px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(16, 18, 24, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}



.main {
  position: relative;
}



.top-search-switch {
  display: inline-flex;
  align-items: center;
  gap: 100px;

  padding: 10px 10px;
  border-radius: 250px;
  background: rgba(16, 18, 24, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);

  white-space: nowrap;
}

.top-search-switch .switch-text {
  white-space: nowrap;
}

.top-search-switch .switch-ui {
  flex: 0 0 auto;
}

.top-tabs {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
}

.top-tabs #profile-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(16, 18, 24, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.top-actions {
  position: fixed;
  top: 14px;
  right: 120px;
  z-index: 2000;

  display: flex;
  align-items: center;
  gap: 12px;

  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
  max-width: none;
  width: auto;
}

.top-search-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;

 
 

  white-space: nowrap;
  flex: 0 0 auto;
}





#finish-shift-btn {
  flex: 0 0 auto;
}

#payouts-section {
  padding-top: 72px;
}

.top-search-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;

  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;

  white-space: nowrap;
  flex: 0 0 auto;
}

.top-search-switch {
  margin-top: 6px;
}

.top-tabs #profile-tabs {
  display: flex;
  align-items: center;
  gap: 6px;

  padding: 6px;
  border-radius: 14px;

  background: rgba(16, 18, 24, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.05);

  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

#profile-tabs button {
  padding: 6px 14px;
  border-radius: 10px;
  border: none;

  background: transparent;
  color: #bfc7d8;

  font-size: 14px;
  cursor: pointer;
  transition: 0.2s;
}

#profile-tabs button:hover {
  background: rgba(255,255,255,0.06);
  color: white;
}

#profile-tabs button.active {
  background: #2563eb;
  color: white;
  box-shadow: 0 0 14px rgba(37,99,235,0.4);
}

#payouts-section {
  padding-top: 24px;
}

.summary-header {
  margin-top: 16px;
}
.summary-title {
	
  margin-left: 6px;
}
.summary-header {
  margin-bottom: 12px;
}

.app {
  min-height: 100vh;
  align-items: stretch;
}

.sidebar {
  min-height: 100vh;
  height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  min-height: 100vh;
  height: 100vh;
}

/* ===== MODALS UPGRADE ===== */

.modal__backdrop {
  background: rgba(3, 8, 20, 0.72);
  backdrop-filter: blur(10px);
}

.modal__card {
  width: min(680px, calc(100vw - 32px));
  border-radius: 22px;
  padding: 0;
  overflow: hidden;

  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)),
    rgba(12, 14, 20, 0.96);

  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 14px;
}

.modal__title {
  font-size: 30px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f5f7ff;
  margin: 0;
}

.modal__sub {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(214, 220, 235, 0.68);
}

.modal__body {
  padding: 0 20px 18px;
}

.modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 0 20px 20px;
}

.icon-btn.danger,
.modal__head .icon-btn,
.modal__head [data-shift-start-close],
.modal__head [data-shift-finish-close] {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.04);
  color: #ef4444;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
  transition: 0.2s ease;
}

.icon-btn.danger:hover,
.modal__head .icon-btn:hover,
.modal__head [data-shift-start-close]:hover,
.modal__head [data-shift-finish-close]:hover {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.18);
  transform: translateY(-1px);
}

.modal .form {
  display: grid;
  gap: 16px;
}

.modal .field {
  display: grid;
  gap: 8px;
}

.modal .field__label {
  font-size: 14px;
  font-weight: 500;
  color: rgba(219, 225, 238, 0.78);
}

.modal .input,
.modal .field__input,
.modal .dispute-input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border-radius: 16px;

  background: rgba(7, 10, 16, 0.88);
  border: 1px solid rgba(255,255,255,0.07);
  color: #f3f6ff;
  font-size: 16px;
  outline: none;

  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.modal textarea.dispute-input {
  min-height: 110px;
  padding: 14px 16px;
  resize: vertical;
}

.modal .input::placeholder,
.modal .field__input::placeholder,
.modal .dispute-input::placeholder {
  color: rgba(196, 202, 217, 0.34);
}

.modal .input:focus,
.modal .field__input:focus,
.modal .dispute-input:focus {
  border-color: rgba(59, 130, 246, 0.65);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
  background: rgba(8, 12, 20, 0.96);
}

.modal .btn {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 700;
}

.modal .btn:not(.btn-danger) {
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  border: 0;
  box-shadow:
    0 10px 24px rgba(37, 99, 235, 0.28),
    inset 0 1px 0 rgba(255,255,255,0.18);
}

.modal .btn:not(.btn-danger):hover {
  transform: translateY(-1px);
}

.modal .btn-danger {
  background: linear-gradient(180deg, #ef4444, #dc2626);
  border: 0;
  box-shadow:
    0 10px 24px rgba(220, 38, 38, 0.26),
    inset 0 1px 0 rgba(255,255,255,0.14);
}

.modal .btn-danger:hover {
  transform: translateY(-1px);
}

/* ===== SHIFT SUMMARY ===== */

.shift-summary {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.shift-summary__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  padding: 14px 16px;
  border-radius: 16px;

  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.018));
  border: 1px solid rgba(255,255,255,0.05);
}

.shift-summary__row span {
  color: rgba(222, 228, 241, 0.78);
  font-size: 15px;
}

.shift-summary__row b {
  color: #f7f9ff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* ===== START / FINISH MODAL SPECIFIC TWEAKS ===== */

#shift-start-modal .modal__card,
#shift-finish-modal .modal__card {
  width: min(720px, calc(100vw - 32px));
}

#shift-start-modal .modal__body,
#shift-finish-modal .modal__body {
  padding-top: 4px;
}

/* ===== MOBILE ===== */

@media (max-width: 640px) {
  .modal__card {
    width: calc(100vw - 20px);
    border-radius: 18px;
  }

  .modal__head {
    padding: 16px 16px 12px;
  }

  .modal__body {
    padding: 0 16px 16px;
  }

  .modal__footer {
    padding: 0 16px 16px;
  }

  .modal__title {
    font-size: 24px;
  }

  .shift-summary__row {
    padding: 12px 14px;
  }
}

/* ===== UPLOAD MODAL ===== */

#upload-modal .modal__card,
#cancel-modal .modal__card {
  width: min(720px, calc(100vw - 32px));
  border-radius: 22px;
  overflow: hidden;

  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)),
    rgba(12, 14, 20, 0.96);

  border: 1px solid rgba(255,255,255,0.06);
  box-shadow:
    0 24px 80px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

#upload-modal .modal__head,
#cancel-modal .modal__head {
  padding: 20px 20px 14px;
}

#upload-modal .modal__body,
#cancel-modal .modal__body {
  padding: 0 20px 18px;
}

#upload-modal .modal__footer,
#cancel-modal .modal__footer {
  padding: 0 20px 20px;
}

#upload-modal .modal__title,
#cancel-modal .modal__title {
  font-size: 28px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f5f7ff;
}

#upload-modal .modal__sub,
#cancel-modal .modal__sub {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(214, 220, 235, 0.68);
}

/* ===== UPLOAD BOX ===== */

.upload-box {
  padding: 20px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)),
    rgba(7, 10, 16, 0.88);

  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.upload-box__text {
  font-size: 16px;
  font-weight: 500;
  color: #eef2ff;
  margin-bottom: 14px;
}

.upload-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.upload-file {
  font-size: 14px;
  color: rgba(214, 220, 235, 0.72);
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.04);
}

#upload-modal .btn {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 700;
}

#upload-modal .btn:not(:disabled) {
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  border: 0;
  box-shadow:
    0 10px 24px rgba(37,99,235,0.28),
    inset 0 1px 0 rgba(255,255,255,0.18);
}

#upload-modal .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

/* ===== CANCEL MODAL ===== */

.cancel-reasons {
  display: grid;
  gap: 12px;
}

.cancel-reason {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;

  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.05);

  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
  color: #eef2ff;

  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.cancel-reason:hover {
  transform: translateY(-1px);
  border-color: rgba(239,68,68,0.22);
  background:
    linear-gradient(180deg, rgba(239,68,68,0.07), rgba(239,68,68,0.03)),
    rgba(255,255,255,0.02);
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

.cancel-reason__icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  background: rgba(239,68,68,0.12);
  color: #ff6b57;
}

.cancel-reason__text {
  font-size: 15px;
  font-weight: 600;
  color: #f4f7ff;
}

#cancel-modal .btn.danger,
#cancel-submit {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 700;

  background: linear-gradient(180deg, #ef4444, #dc2626);
  border: 0;
  box-shadow:
    0 10px 24px rgba(220,38,38,0.26),
    inset 0 1px 0 rgba(255,255,255,0.14);
}

#cancel-modal .btn.danger:disabled,
#cancel-submit:disabled {
  opacity: 0.65;
  color: #ffd2d2;
  background: linear-gradient(180deg, #ef4444, #dc2626);
  box-shadow: none;
  cursor: not-allowed;
}

/* ===== CLOSE BUTTONS ===== */

#upload-modal .icon-btn.danger,
#cancel-modal .icon-btn.danger {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.04);
  color: #ef4444;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
  transition: 0.2s ease;
}

#upload-modal .icon-btn.danger:hover,
#cancel-modal .icon-btn.danger:hover {
  background: rgba(239,68,68,0.08);
  border-color: rgba(239,68,68,0.18);
  transform: translateY(-1px);
}

#cancel-submit {
  color: #ffffff;
  font-weight: 700;
}

#cancel-submit:not(:disabled) {
  color: #ffffff;
}

/* ===== BANK MODAL ===== */

#bank-modal .modal__card {
  width: min(720px, calc(100vw - 32px));
}

/* поле поиска */

.bank-searchbox {
  display: flex;
  align-items: center;
  gap: 10px;

  height: 48px;
  padding: 0 16px;
  margin-bottom: 14px;

  border-radius: 16px;
  background: rgba(7, 10, 16, 0.88);
  border: 1px solid rgba(255,255,255,0.06);

  transition: border-color .18s ease, box-shadow .18s ease;
}

.bank-searchbox:focus-within {
  border-color: rgba(59,130,246,0.6);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.14);
}

.bank-searchbox__icon {
  opacity: .6;
  font-size: 14px;
}

.bank-searchbox__input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #eef2ff;
  font-size: 15px;
}

/* список банков */

.bank-list {
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;

  display: grid;
  gap: 10px;
}

/* карточка банка */

.bank-item {
  display: flex;
  align-items: center;
  gap: 14px;

  padding: 14px 16px;
  border-radius: 16px;

  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));

  border: 1px solid rgba(255,255,255,0.05);
  transition: all .18s ease;
  cursor: pointer;
}

.bank-item:hover {
  transform: translateY(-1px);
  border-color: rgba(59,130,246,0.28);
  background:
    linear-gradient(180deg, rgba(59,130,246,0.08), rgba(59,130,246,0.02)),
    rgba(255,255,255,0.02);
}

/* выбранный банк */

.bank-item.active {
  border-color: rgba(37,99,235,0.55);
  background:
    linear-gradient(180deg, rgba(37,99,235,0.12), rgba(37,99,235,0.04));
}

/* иконка банка */

.bank-item img,
.bank-item svg {
  width: 26px;
  height: 26px;
}

/* текст банка */

.bank-item span {
  font-size: 15px;
  font-weight: 600;
  color: #f4f7ff;
}

/* радио-кружок */

.bank-item input[type="radio"] {
  margin-right: 6px;
  accent-color: #2563eb;
}

.modal__card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)),
    rgba(12,14,20,0.96);

  border: 1px solid rgba(255,255,255,0.06);

  box-shadow:
    0 24px 80px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

/* =========================
   No profile screen
   ========================= */

.shift-gate__icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 18px;
}

.shift-gate__icon span {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.35);
  color: #60a5fa;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shift-btn-primary {
  margin-top: 16px;
  padding: 10px 18px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(180deg,#2563eb,#1d4ed8);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s;
}

.shift-btn-primary:hover {
  background: linear-gradient(180deg,#3b82f6,#2563eb);
  transform: translateY(-1px);
}

.shift-btn-primary:active {
  transform: translateY(0);
}

#shift-no-profile {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 70vh;
}

#shift-no-profile .shift-gate__card {
  text-align: center;
  max-width: 420px;
}

.shift-gate__icon span {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.35);
  color: #60a5fa;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* empty state: no profile / no tokens */
.shift-empty-state {
  min-height: calc(100vh - 180px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}

.shift-empty-card {
  width: 100%;
  max-width: 520px;
  background: linear-gradient(180deg, #050914 0%, #040814 100%);
  border: 1px solid rgba(59, 130, 246, 0.14);
  border-radius: 20px;
  box-shadow:
    0 18px 60px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  padding: 34px 28px 28px;
  text-align: center;
}

.shift-empty-title {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 800;
  color: #ffffff;
}

.shift-empty-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.68);
}

.shift-empty-btn {
  margin-top: 22px;
  min-width: 128px;
  height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.shift-empty-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.34);
}

.shift-empty-btn:active {
  transform: translateY(0);
}

.shift-empty-btn:disabled {
  opacity: 0.6;
  cursor: default;
  box-shadow: none;
}

.foreign-shift-banner {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.22);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

.foreign-shift-banner__title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.foreign-shift-banner__text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}

.btn-success {
  background: linear-gradient(180deg, #22c55e, #16a34a);
  color: #fff;
  border: none;
}
#toggle-away-btn {
  margin-top: 15px;
  margin-bottom: 15px;
}
.settings-block button {
  margin-top: 25px;
}

/* сумма */
.dispute-amount {
  font-weight: 600;
  color: #ffb020;
}

/* статус */
.dispute-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  background: rgba(80, 200, 120, 0.15);
  color: #6ee7a3;
}

/* кнопка удаления */
.icon-btn.danger {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255,0,0,0.08);
  border: 1px solid rgba(255,0,0,0.2);
  color: #ff6b6b;
  transition: all .15s;
}

.icon-btn.danger:hover {
  background: rgba(255,0,0,0.15);
  transform: scale(1.05);
}

.table--disputes tbody tr {
  background: rgba(255,255,255,0.02);
  border-radius: 12px;
}

.table--disputes tbody tr:hover {
  background: rgba(255,255,255,0.05);
}

.section-title {
  margin-bottom: 10px;
}

.header-actions {
  margin-bottom: 18px;
}

.dispute-reason-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  border-radius:8px;
  font-size:12px;
  font-weight:600;
  white-space:nowrap;
}

/* freeze */
.reason-freeze{
  background:rgba(90,170,255,0.15);
  color:#66b3ff;
  border:1px solid rgba(90,170,255,0.35);
}

/* error */
.reason-error{
  background:rgba(255,80,80,0.15);
  color:#ff6b6b;
  border:1px solid rgba(255,80,80,0.35);
}

/* other */
.reason-other{
  background:rgba(255,160,60,0.15);
  color:#ffb347;
  border:1px solid rgba(255,160,60,0.35);
}
.dispute-reason-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:10px;
  font-size:12px;
  font-weight:700;
  line-height:1;
  white-space:nowrap;
}

.dispute-reason-icon{
  width:14px;
  height:14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 14px;
}

.dispute-reason-icon svg{
  width:14px;
  height:14px;
  display:block;
}

.reason-freeze{
  color:#6fb7ff;
  background:rgba(59,130,246,.14);
  border:1px solid rgba(59,130,246,.45);
}

.reason-error{
  color:#ff6b6b;
  background:rgba(239,68,68,.14);
  border:1px solid rgba(239,68,68,.45);
}

.reason-other{
  color:#ffb347;
  background:rgba(249,115,22,.14);
  border:1px solid rgba(249,115,22,.45);
}

.token-state-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
}

.token-state-badge--active {
  color: #3B82F6;
  background: rgba(37, 99, 235, 0.10);
  border-color: rgba(59, 130, 246, 0.85);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.08);
}

.token-state-badge--disabled {
  color: #EF4444;
  background: rgba(239, 68, 68, 0.10);
  border-color: rgba(239, 68, 68, 0.80);
}

.token-state-badge--muted {
  color: #9CA3AF;
  background: rgba(148, 163, 184, 0.08);
  border-color: rgba(148, 163, 184, 0.25);
}

.token-state-badge--error {
  color: #F59E0B;
  background: rgba(245, 158, 11, 0.10);
  border-color: rgba(245, 158, 11, 0.65);
}

.profile-state-badge-wrap {
  margin-top: 10px;
}

.profile-state-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
}

.profile-state-badge--active {
  color: #3B82F6;
  background: rgba(37, 99, 235, 0.10);
  border-color: rgba(59, 130, 246, 0.85);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.08);
}

.profile-state-badge--disabled {
  color: #EF4444;
  background: rgba(239, 68, 68, 0.10);
  border-color: rgba(239, 68, 68, 0.80);
}

.profile-state-badge--muted {
  color: #9CA3AF;
  background: rgba(148, 163, 184, 0.08);
  border-color: rgba(148, 163, 184, 0.25);
}

.profile-state-badge--error {
  color: #F59E0B;
  background: rgba(245, 158, 11, 0.10);
  border-color: rgba(245, 158, 11, 0.65);
}

.profile-state-badge--warn {
  color: #A855F7;
  background: rgba(168, 85, 247, 0.10);
  border-color: rgba(168, 85, 247, 0.65);
}
.profile-state-badge-wrap {
  margin-top: 10px;
}

.profile-state-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
}

.profile-state-badge--active {
  color: #3B82F6;
  background: rgba(37, 99, 235, 0.10);
  border-color: rgba(59, 130, 246, 0.85);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.08);
}

.profile-state-badge--disabled {
  color: #EF4444;
  background: rgba(239, 68, 68, 0.10);
  border-color: rgba(239, 68, 68, 0.80);
}

.profile-state-badge--muted {
  color: #9CA3AF;
  background: rgba(148, 163, 184, 0.08);
  border-color: rgba(148, 163, 184, 0.25);
}

.profile-state-badge--error {
  color: #F59E0B;
  background: rgba(245, 158, 11, 0.10);
  border-color: rgba(245, 158, 11, 0.65);
}

.profile-state-badge-wrap {
  margin-top: 10px;
}

.profile-state-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
}

.profile-state-badge--active {
  color: #3B82F6;
  background: rgba(37, 99, 235, 0.10);
  border-color: rgba(59, 130, 246, 0.85);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.08);
}

.profile-state-badge--disabled {
  color: #EF4444;
  background: rgba(239, 68, 68, 0.10);
  border-color: rgba(239, 68, 68, 0.80);
}

.profile-state-badge--muted {
  color: #9CA3AF;
  background: rgba(148, 163, 184, 0.08);
  border-color: rgba(148, 163, 184, 0.25);
}

.profile-state-badge--error {
  color: #F59E0B;
  background: rgba(245, 158, 11, 0.10);
  border-color: rgba(245, 158, 11, 0.65);
}
.profile-state-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
}

.profile-state-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}