.sec-card { background: var(--surface); border: 0.5px solid var(--border); border-radius: 18px; overflow: hidden; }
.sec-head { padding: 13px 17px 11px; border-bottom: 0.5px solid var(--border); display: flex; align-items: center; gap: 9px; min-width: 0; }
.sec-icon { width: 28px; height: 28px; border-radius: var(--r-s); display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.ic-blue2   { background: var(--blue-light); }
.ic-green2  { background: var(--green-light); }
.ic-orange2 { background: var(--orange-light); }
.ic-gray2   { background: #F2F2F7; }
.ic-purple2 { background: #f0e6ff; }
.sec-title { font-size: 14px; font-weight: 700; letter-spacing: -.1px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sec-body { padding: 14px 17px; }
.user-top { display: flex; align-items: center; gap: 13px; margin-bottom: 13px; min-width: 0; }
.user-top > div { min-width: 0; }
.user-av  { width: 52px; height: 52px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 18px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.user-nm  { font-size: 15px; font-weight: 700; letter-spacing: -.3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-em  { font-size: 12px; color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.umeta-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; padding: 7px 0; border-bottom: 0.5px solid var(--border); }
.umeta-row:last-child { border-bottom: none; }
.bal-display { text-align: center; padding: 10px 0 14px; }
.bal-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text3); margin-bottom: 4px; }
.bal-value { font-size: 32px; font-weight: 800; letter-spacing: -1px; }
.topup-lbl { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text3); margin-bottom: 7px; }
.amount-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; margin-bottom: 8px; }
.amount-chip { padding: 8px 4px; border-radius: var(--r-m); border: 1.5px solid var(--border); background: var(--bg); text-align: center; font-size: 12px; font-weight: 600; cursor: pointer; font-family: var(--font); transition: all .14s; color: var(--text); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.amount-chip:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }
.amount-chip.sel { border-color: var(--blue); background: var(--blue); color: #fff; }
.intg-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 0.5px solid var(--border); min-width: 0; }
.intg-row > div { min-width: 0; }
.intg-row:last-child { border-bottom: none; }
.intg-nm   { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.intg-ds   { font-size: 11px; color: var(--text2); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.intg-badge { font-size: 9px; font-weight: 700; padding: 2px 5px; border-radius: 5px; background: var(--orange-light); color: var(--orange-dark); text-transform: uppercase; letter-spacing: .04em; }
.btn-intg  { height: 28px; padding: 0 11px; border-radius: var(--r-s); border: 0.5px solid var(--border); background: var(--bg); color: var(--text3); font-size: 12px; font-weight: 600; font-family: var(--font); cursor: not-allowed; white-space: nowrap; }
.prof-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.prof-stat { background: var(--bg); border-radius: var(--r-m); padding: 11px 10px; text-align: center; min-width: 0; overflow: hidden; }
.prof-stat-lbl { font-size: 10px; color: var(--text3); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prof-stat-val { font-size: 20px; font-weight: 800; letter-spacing: -.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-item { display: flex; align-items: center; gap: 11px; padding: 10px 0; border-bottom: 0.5px solid var(--border); min-width: 0; }
.tx-item > div:not(.tx-ic) { min-width: 0; }
.tx-item:last-child { border-bottom: none; }
.tx-ic { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.ic-topup { background: var(--green-light); }
.ic-spend { background: #FEF0F0; }
.tx-nm { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-dt { font-size: 11px; color: var(--text3); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-val { font-size: 14px; font-weight: 800; letter-spacing: -.3px; white-space: nowrap; flex-shrink: 0; max-width: 44%; overflow: hidden; text-overflow: ellipsis; }
.tx-val.pos { color: var(--green-dark); }
.tx-val.neg { color: var(--red); }
.tx-scroll  { max-height: 420px; overflow-y: auto; }

/* ── Loyalty progress (тёмная панель) ─────────────────────────────────────── */
.loy-box {
  margin-top: 14px;
  padding: 16px;
  border-radius: 16px;
  background: #eaf4ff;
  border: 1px solid #cfe4ff;
  box-shadow: 0 6px 16px rgba(33,106,178,.08);
}
.loy-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.loy-title { font-size: 14px; font-weight: 700; color: #14375c; }
.loy-title b { color: #0878dd; font-size: 16px; }
.loy-next { font-size: 12px; font-weight: 700; color: #5c7f9f; white-space: nowrap; }
.loy-note { font-size: 12px; color: #496b8b; margin-top: 12px; line-height: 1.4; }
.loy-note b { color: #173d63; }

.progress-row { display: flex; align-items: center; gap: 16px; }
.progress {
  --value: 0%;
  position: relative;
  flex: 1;
  height: 30px;
  padding: 5px;
  border-radius: 999px;
  background: #d8e9fb;
  border: 1px solid rgba(79,150,220,.22);
  box-shadow:
    inset 0 1px 4px rgba(255,255,255,.75),
    inset 0 -2px 5px rgba(71,126,184,.14);
}
.progress-fill {
  position: relative;
  width: var(--value);
  min-width: 20px;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2692ff 0%, #43b7ff 55%, #62d2d8 100%);
  box-shadow: 0 0 8px rgba(67,183,255,.28);
  overflow: visible;
  transition: width .6s cubic-bezier(.4,0,.2,1);
}
.progress-fill::before {
  content: ""; position: absolute; inset: 2px 4px auto 4px; height: 36%; border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,.32), rgba(255,255,255,.16), rgba(255,255,255,.28));
  opacity: .7;
}
.progress-fill::after {
  content: ""; position: absolute; right: -2px; top: 50%; width: 34px; height: 100%;
  transform: translateY(-50%); border-radius: 999px;
  background: radial-gradient(circle at 70% 50%,
    rgba(215,241,255,.85) 0%, rgba(67,183,255,.55) 42%, rgba(67,183,255,.18) 70%, rgba(67,183,255,0) 100%);
  filter: blur(.5px);
  animation: tipPulse 1.6s ease-in-out infinite;
}
.progress-percent { color: #123a61; font-size: 24px; font-weight: 500; letter-spacing: .5px; flex-shrink: 0; }
@keyframes tipPulse {
  0%, 100% { opacity: .75; transform: translateY(-50%) scaleX(1); }
  50%      { opacity: 1;   transform: translateY(-50%) scaleX(1.08); }
}
@media (prefers-reduced-motion: reduce) { .progress-fill::after { animation: none; } }
