/* barg-club: modals, fields, avatar, admin, driver drawer, skeleton, wallet modal */
/* ---------- MODALS ---------- */
.modal {
  position: fixed; inset: 0;
  z-index: var(--z-modal);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  padding-top: max(16px, var(--safe-t));
  padding-bottom: max(16px, var(--safe-b));
  background: rgba(2, 4, 3, 0.80);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.modal.open { display: flex; animation: fadeIn 240ms var(--ease-out); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-content {
  background: rgba(7, 11, 10, 0.96);
  border: 1px solid var(--border-2);
  border-radius: var(--r-4);
  width: 100%;
  max-width: 520px;
  max-height: 90dvh;
  overflow-y: auto;
  padding: 22px;
  box-shadow: 0 34px 90px rgba(0,0,0,0.9), inset 0 1px 0 rgba(255,255,255,0.05);
  animation: modalIn 320ms var(--ease-out);
  position: relative;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.modal-content.lg { max-width: 660px; }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
  .modal { padding: 0; align-items: flex-end; }
  .modal-content {
    max-width: 100%;
    max-height: 92dvh;
    border-radius: var(--r-4) var(--r-4) 0 0;
    border-bottom: none;
    padding: 28px 16px calc(22px + var(--safe-b));
    animation: sheetIn 340ms var(--ease-out);
    touch-action: pan-y;
  }
  .modal-content::before {
    content: '';
    position: absolute;
    top: 10px; left: 50%; transform: translateX(-50%);
    width: 42px; height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,0.22);
    z-index: 3;
    pointer-events: none;
  }
}
@keyframes sheetIn { from { transform: translateY(100%); } to { transform: translateY(0); } }

.modal-title {
  font-size: 1.08rem; font-weight: 800;
  display: flex; align-items: center; gap: 9px;
  margin-bottom: 6px;
}
.modal-sub {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.55;
}

/* ---------- FIELDS ---------- */
.field {
  width: 100%;
  background: rgba(23, 33, 28, 0.94);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 12px 15px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.86rem;
  outline: none;
  margin-bottom: 11px;
  transition: all var(--dur-2) var(--ease);
  min-height: 46px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}
.field:focus {
  border-color: var(--emerald-line);
  box-shadow: 0 0 0 3px rgba(24,246,162,0.12), 0 0 18px rgba(24,246,162,0.12), inset 0 1px 0 rgba(255,255,255,0.05);
}
.field::placeholder { color: var(--dim); }
.field:disabled, .field[readonly] { opacity: 0.7; cursor: not-allowed; }
select.field {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a8480' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: left 14px center;
  background-size: 16px;
  padding-inline-start: 38px;
}
.field-row { display: grid; gap: 8px; }
.field-row.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-row.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 420px) { .field-row.cols-3 { grid-template-columns: minmax(0, 1fr); } }

.field-label {
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 5px;
  display: block;
}

/* ---------- AVATAR PICKER ---------- */
.avatar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.avatar-option {
  aspect-ratio: 1;
  border-radius: 12px;
  border: 2px solid transparent;
  background: rgba(23, 33, 28, 0.94);
  padding: 5px;
  cursor: pointer;
  width: 100%;
  transition: all var(--dur-2) var(--ease);
}
.avatar-option:hover { transform: scale(1.04); }
.avatar-option:active { transform: scale(0.97); }
.avatar-option.selected {
  border-color: var(--emerald);
  box-shadow: 0 0 18px var(--emerald-glow);
}

/* ---------- ADMIN ---------- */
.admin-tabs {
  display: flex;
  gap: 3px;
  background: rgba(23, 33, 28, 0.94);
  padding: 4px;
  border-radius: 11px;
  margin-bottom: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tab {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 10px 8px;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.73rem;
  white-space: nowrap;
  transition: all var(--dur-2) var(--ease);
  min-height: 42px;
}
.admin-tab.active {
  background: linear-gradient(135deg, var(--emerald), var(--emerald-2));
  color: #04120c;
  box-shadow: 0 4px 12px rgba(24,246,162,0.32), inset 0 1px 0 rgba(255,255,255,0.28);
}
.admin-section { display: none; }
.admin-section.active { display: block; animation: panelIn 220ms var(--ease-out); }
.admin-list {
  display: flex; flex-direction: column;
  gap: 6px;
  max-height: 240px;
  overflow-y: auto;
  margin-top: 10px;
  -webkit-overflow-scrolling: touch;
}
.admin-row {
  display: flex; justify-content: space-between;
  align-items: center;
  gap: 8px;
  background: rgba(23, 33, 28, 0.94);
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid var(--border);
  min-width: 0;
}
.admin-icon-btn {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  transition: all var(--dur-1) var(--ease);
  flex-shrink: 0;
}
.admin-icon-btn.edit:hover { background: var(--cyan-soft); border-color: var(--cyan-line); color: var(--cyan); }
.admin-icon-btn.del:hover  { background: var(--danger-soft); border-color: var(--danger-line); color: var(--danger); }

.admin-danger-zone {
  margin-top: 14px;
  padding: 14px;
  background: var(--danger-soft);
  border: 1px dashed var(--danger-line);
  border-radius: var(--r-2);
}
.admin-danger-zone-title {
  font-size: 0.79rem;
  font-weight: 800;
  color: var(--danger);
  display: flex; align-items: center;
  gap: 6px;
  margin-bottom: 9px;
}

.admin-killswitch {
  background: linear-gradient(135deg, rgba(255,77,109,0.10), rgba(214,179,106,0.06));
  border: 1px solid var(--danger-line);
  border-radius: var(--r-2);
  padding: 15px;
  margin-top: 8px;
  display: flex; flex-direction: column;
  gap: 11px;
}
.killswitch-head {
  display: flex; justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.killswitch-title {
  font-size: 0.9rem; font-weight: 900;
  display: flex; align-items: center; gap: 7px;
  color: var(--text);
}
.killswitch-title i { color: var(--danger); }
.killswitch-sub {
  font-size: 0.71rem;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.55;
}
.killswitch-status {
  font-size: 0.73rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--emerald-soft);
  border: 1px solid var(--emerald-line);
  color: var(--emerald);
  white-space: nowrap;
}
.killswitch-status.off {
  background: var(--danger-soft);
  border-color: var(--danger-line);
  color: var(--danger);
}

.server-admin-card {
  background: rgba(23, 33, 28, 0.94);
  border: 1px solid var(--border);
  border-radius: var(--r-2);
  padding: 13px;
  display: flex; flex-direction: column;
  gap: 9px;
  min-width: 0;
}
.server-admin-head {
  display: flex; justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.server-admin-name {
  display: flex; align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.92rem;
  min-width: 0;
}
.server-admin-name .srv-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--dim);
  flex-shrink: 0;
}
.server-admin-name .srv-dot.live {
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald-glow);
  animation: pulse 2s ease-in-out infinite;
}
.server-admin-name .srv-dot.down { background: var(--danger); }
.server-admin-slug {
  font-size: 0.69rem;
  color: var(--muted);
  font-family: 'Teko', monospace;
  letter-spacing: 0.5px;
  direction: ltr;
  text-align: left;
}
.server-admin-meta {
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 1.65;
  word-break: break-all;
  direction: ltr;
  text-align: left;
  background: rgba(0,0,0,0.28);
  padding: 8px 10px;
  border-radius: 7px;
  white-space: pre-wrap;
}
.server-admin-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.server-admin-actions .btn {
  flex: 1;
  min-width: 88px;
  font-size: 0.73rem;
  padding: 8px 8px;
  min-height: 38px;
}

.order-card {
  background: rgba(23, 33, 28, 0.94);
  border: 1px solid var(--border);
  border-radius: var(--r-2);
  padding: 13px;
  display: flex; flex-direction: column;
  gap: 9px;
  min-width: 0;
}
.order-head {
  display: flex; justify-content: space-between;
  gap: 8px;
  font-size: 0.83rem;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--border);
}
.order-items {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.65;
}
.order-actions { display: flex; gap: 6px; }
.order-actions .btn { flex: 1; font-size: 0.75rem; padding: 9px; }

/* ---------- DRIVER DRAWER ---------- */
.driver-drawer {
  position: fixed;
  top: 0; bottom: 0; left: 0;
  width: min(94vw, 440px);
  background: rgba(7, 11, 10, 0.98);
  border-inline-end: 1px solid var(--border-2);
  z-index: var(--z-drawer);
  transform: translateX(-100%);
  transition: transform var(--dur-3) var(--ease-out);
  overflow-y: auto;
  padding: calc(var(--safe-t) + 22px) 22px calc(var(--safe-b) + 22px);
  display: flex; flex-direction: column;
  gap: 18px;
  box-shadow: 28px 0 70px rgba(0,0,0,0.7);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.driver-drawer.open { transform: translateX(0); }
@media (max-width: 640px) {
  .driver-drawer {
    top: auto; bottom: 0; left: 0; right: 0;
    width: 100%;
    max-height: 92dvh;
    border-inline-end: none;
    border-top: 1px solid var(--border-2);
    border-radius: var(--r-4) var(--r-4) 0 0;
    transform: translateY(100%);
    padding: 28px 16px calc(22px + var(--safe-b));
    touch-action: pan-y;
  }
  .driver-drawer.open { transform: translateY(0); }
  .driver-drawer::before {
    content: '';
    position: absolute;
    top: 10px; left: 50%; transform: translateX(-50%);
    width: 42px; height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,0.22);
    z-index: 3;
    pointer-events: none;
  }
}
.drawer-close {
  position: absolute;
  top: calc(var(--safe-t) + 16px);
  right: 16px;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(23, 33, 28, 0.94);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.92rem;
  transition: all var(--dur-1);
  z-index: 5;
}
.drawer-close:hover { background: var(--danger-soft); color: var(--danger); border-color: var(--danger-line); }
.drawer-hero {
  display: flex; flex-direction: column;
  align-items: center; gap: 11px;
  text-align: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.drawer-hero h3 { font-size: 1.14rem; font-weight: 800; }
.drawer-hero .sub { font-size: 0.75rem; color: var(--muted); }
.drawer-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.drawer-stat {
  background: rgba(11, 17, 15, 0.72);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 11px 13px;
  display: flex; flex-direction: column;
  gap: 4px;
  min-width: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.drawer-stat .lbl { font-size: 0.66rem; color: var(--muted); font-weight: 600; }
.drawer-stat .val {
  font-size: 0.94rem;
  font-weight: 800;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.drawer-stat .val.mono {
  font-family: 'Teko', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--cyan);
  direction: ltr;
  text-align: left;
  text-shadow: 0 0 12px rgba(35,217,255,0.35);
}
.drawer-stat .val.elo {
  font-family: 'Teko', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--violet);
  direction: ltr;
  text-align: left;
  text-shadow: 0 0 12px var(--violet-glow);
}
.sheet-backdrop {
  position: fixed; inset: 0;
  background: rgba(2,4,3,0.66);
  z-index: var(--z-drawer-shade);
  display: none;
  animation: fadeIn 220ms var(--ease-out);
}
.sheet-backdrop.show { display: block; }

/* ---------- SKELETON / EMPTY ---------- */
.skeleton {
  background: linear-gradient(90deg, rgba(23,33,28,0.94) 0%, rgba(30,42,36,0.86) 50%, rgba(23,33,28,0.94) 100%);
  background-size: 200% 100%;
  animation: skel 1.4s ease-in-out infinite;
  border-radius: 7px;
}
@keyframes skel {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skel-row { height: 42px; margin-bottom: 6px; }

.empty {
  display: flex; flex-direction: column;
  align-items: center; gap: 9px;
  padding: 44px 22px;
  text-align: center;
  color: var(--muted);
}
.empty i { font-size: 2rem; opacity: 0.4; color: var(--emerald); }
.empty .title { font-weight: 800; color: var(--text); font-size: 0.92rem; }
.empty .sub { font-size: 0.77rem; max-width: 300px; line-height: 1.65; }

/* ---------- WALLET MODAL ---------- */
.wallet-hero {
  background:
    linear-gradient(135deg, rgba(214,179,106,0.14), rgba(214,179,106,0.03)),
    rgba(23, 33, 28, 0.94);
  border: 1px solid var(--gold-line);
  border-radius: var(--r-3);
  padding: 22px 18px;
  text-align: center;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4), 0 0 40px rgba(214,179,106,0.08), inset 0 1px 0 rgba(255,255,255,0.08);
}
.wallet-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 50% 0%, rgba(214,179,106,0.18), transparent 65%);
  pointer-events: none;
}
.wallet-hero::after {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(214,179,106,0.6), transparent);
}
.wallet-hero-label {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  position: relative; z-index: 1;
}
.wallet-hero-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  direction: ltr;
  position: relative; z-index: 1;
}
#wallet-balance-num {
  font-family: 'Teko', sans-serif;
  font-size: 3.2rem;
  font-weight: 600;
  color: var(--gold);
  text-shadow: 0 0 26px var(--gold-glow);
  line-height: 1;
  letter-spacing: 1px;
}
.wallet-hero-unit {
  font-size: 0.86rem;
  color: var(--gold);
  opacity: 0.85;
  font-weight: 700;
}
.wallet-hero-user {
  font-size: 0.73rem;
  color: var(--muted);
  margin-top: 8px;
  position: relative; z-index: 1;
  font-family: 'Teko', sans-serif;
  letter-spacing: 0.5px;
  direction: ltr;
}

/* Wallet ELO strip */
.wallet-elo-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 12px;
  position: relative;
  z-index: 1;
}
.wallet-elo-cell {
  display: flex; flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 6px;
  border-radius: 10px;
  background: rgba(0,0,0,0.28);
  border: 1px solid var(--border);
}
.wallet-elo-cell .lbl {
  font-size: 0.6rem;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.03em;
}
.wallet-elo-cell .val {
  font-family: 'Teko', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--violet);
  direction: ltr;
  line-height: 1;
  text-shadow: 0 0 10px var(--violet-glow);
}
.wallet-elo-cell.wins .val { color: var(--emerald); text-shadow: 0 0 10px var(--emerald-glow); }
.wallet-elo-cell.losses .val { color: var(--danger); text-shadow: 0 0 10px var(--danger-glow); }

.wallet-tabs {
  display: flex;
  gap: 4px;
  background: rgba(23, 33, 28, 0.94);
  padding: 5px;
  border-radius: 12px;
  margin-bottom: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border: 1px solid var(--border);
}
.wallet-tabs::-webkit-scrollbar { display: none; }
.wallet-tab {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 10px 8px;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.74rem;
  white-space: nowrap;
  transition: all var(--dur-2) var(--ease);
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.wallet-tab:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.wallet-tab.active {
  background: linear-gradient(135deg, rgba(214,179,106,0.85), rgba(214,179,106,0.65));
  color: #1a1206;
  box-shadow: 0 4px 14px var(--gold-glow), inset 0 1px 0 rgba(255,255,255,0.3);
}

.wallet-panel { display: none; animation: panelIn 220ms var(--ease-out); }
.wallet-panel.active { display: block; }

.wallet-quick-amounts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 14px;
  margin-top: -4px;
}
.wallet-quick {
  background: rgba(23, 33, 28, 0.94);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 4px;
  font-family: 'Teko', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-2);
  transition: all var(--dur-1);
  direction: ltr;
  letter-spacing: 0.02em;
}
.wallet-quick:hover {
  background: rgba(214,179,106,0.14);
  border-color: var(--gold-line);
  color: var(--gold);
  transform: translateY(-1px);
}
.wallet-quick:active { transform: scale(0.95); }
@media (max-width: 380px) {
  .wallet-quick-amounts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.wallet-entry {
  background: rgba(23, 33, 28, 0.94);
  border: 1px solid var(--border);
  border-radius: var(--r-2);
  padding: 12px 13px;
  display: flex; flex-direction: column;
  gap: 7px;
  margin-bottom: 8px;
  min-width: 0;
  position: relative;
  overflow: hidden;
  transition: all var(--dur-2) var(--ease);
}
.wallet-entry::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: rgba(255,255,255,0.08);
}
.wallet-entry:hover {
  border-color: var(--border-2);
  transform: translateX(-2px);
}
.wallet-entry-out::before { background: var(--danger); box-shadow: 0 0 12px var(--danger-glow); }
.wallet-entry-in::before  { background: var(--emerald); box-shadow: 0 0 12px var(--emerald-glow); }

.wallet-entry-head {
  display: flex; justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.wallet-entry-id {
  font-family: 'Teko', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  direction: ltr;
}
.wallet-entry-dir {
  display: inline-flex; align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-2);
}
.wallet-entry-out .wallet-entry-dir { color: var(--danger); }
.wallet-entry-in .wallet-entry-dir  { color: var(--emerald); }

.wallet-entry-items {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.55;
  word-break: break-word;
}
.wallet-entry-user {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text);
  direction: ltr;
  text-align: right;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wallet-entry-note {
  font-size: 0.74rem;
  color: var(--text-2);
  font-style: italic;
  padding: 5px 8px;
  background: rgba(0,0,0,0.28);
  border-radius: 6px;
  border: 1px dashed var(--border-2);
  word-break: break-word;
}
.wallet-entry-foot {
  display: flex; justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--border);
}
.wallet-entry-date {
  font-size: 0.7rem;
  color: var(--dim);
  font-family: 'Teko', sans-serif;
  letter-spacing: 0.4px;
  direction: ltr;
}
.wallet-entry-amount {
  font-family: 'Teko', sans-serif;
  font-size: 1rem;
  color: var(--text);
  font-weight: 600;
  direction: ltr;
  white-space: nowrap;
}
.wallet-entry-amount b { font-size: 1.35rem; font-weight: 600; }
.wallet-entry-amount.pos { color: var(--emerald); text-shadow: 0 0 10px var(--emerald-glow); }
.wallet-entry-amount.neg { color: var(--danger); text-shadow: 0 0 10px var(--danger-glow); }

.wallet-entry-cashback {
  font-size: 0.72rem;
  color: var(--gold);
  padding: 4px 8px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  border-radius: 6px;
  display: inline-flex; align-items: center;
  gap: 5px;
  align-self: flex-start;
  font-weight: 700;
}

.wallet-empty {
  display: flex; flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 38px 18px;
  text-align: center;
  color: var(--muted);
  font-size: 0.83rem;
}
.wallet-empty i {
  font-size: 1.9rem;
  opacity: 0.4;
  color: var(--gold);
}

.wallet-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.wallet-summary-cell {
  background: rgba(23, 33, 28, 0.94);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex; flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.wallet-summary-cell .lbl {
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 700;
}
.wallet-summary-cell .val {
  font-family: 'Teko', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  direction: ltr;
  text-align: left;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wallet-summary-cell.in .val  { color: var(--emerald); text-shadow: 0 0 10px var(--emerald-glow); }
.wallet-summary-cell.out .val { color: var(--danger); text-shadow: 0 0 10px var(--danger-glow); }

.wallet-refresh {
  margin-inline-start: auto;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: rgba(23, 33, 28, 0.94);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.82rem;
  transition: all var(--dur-1);
}
.wallet-refresh:hover {
  background: var(--emerald-soft);
  border-color: var(--emerald-line);
  color: var(--emerald);
  transform: rotate(180deg);
}
