/* PARTNEX — admin panel base styles (palette overridden in partnex-admin.css) */
:root {
  --primary: #7c5cff;
  --primary-light: #22d3ee;
  --bg-soft: #f4f5fb;
  --accent: #22d3ee;
  --white: #ffffff;
  --card: #ffffff;
  --text-dark: #1e293b;
  --text-mid: #475569;
  --text-light: #64748b;
  --danger: #e11d48;
  --success: #16a34a;
  --radius: 16px;
  --bottom-h: 68px;
  --grad: linear-gradient(135deg, #22d3ee, #7c5cff);
  --card-border: rgba(124,92,255, .16);
}
html { color-scheme: light; }
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-soft);
  color: var(--text-dark);
  min-height: 100vh;
  padding-bottom: calc(var(--bottom-h) + 12px);
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse 90% 50% at 50% -10%, rgba(34,211,238, .35), transparent 55%),
    linear-gradient(180deg, #e6e1ff 0%, #f4f5fb 40%, #f4f5fb 100%);
}

/* ─── LOADING ─── */
#loading-screen {
  position: fixed; inset: 0;
  background: linear-gradient(145deg, #7c5cff 0%, #22d3ee 55%, #e6e1ff 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
#loading-screen.fade-out { opacity: 0; transform: scale(1.06); pointer-events: none; }
.loader-logo {
  width: 96px; height: 96px; background: #fff;
  border-radius: 26px; display: flex; align-items: center;
  justify-content: center; font-size: 44px; overflow: hidden;
  box-shadow: 0 12px 40px rgba(124,92,255, .45);
  margin-bottom: 28px; padding: 8px;
  animation: logoPop 0.6s cubic-bezier(.34,1.56,.64,1) both;
}
.loader-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
@keyframes logoPop { from{transform:scale(0.4);opacity:0} to{transform:scale(1);opacity:1} }
.loader-title { font-size: 26px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.loader-sub { font-size: 14px; color: rgba(255,255,255,.6); margin-bottom: 48px; }
.loader-dots { display: flex; gap: 10px; }
.loader-dots span {
  width: 10px; height: 10px; background: var(--primary);
  border-radius: 50%; animation: bounce 1.2s infinite ease-in-out;
}
.loader-dots span:nth-child(2){animation-delay:.2s}
.loader-dots span:nth-child(3){animation-delay:.4s}
@keyframes bounce{0%,80%,100%{transform:scale(.7);opacity:.5}40%{transform:scale(1.2);opacity:1}}

/* ─── HEADER ─── */
.app-header {
  background: linear-gradient(135deg, #7c5cff, #22d3ee);
  padding: 20px 18px 16px;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 20px rgba(124,92,255, .28);
}
.header-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.header-brand { display: flex; align-items: center; gap: 11px; }
.header-icon {
  width: 42px; height: 42px; border-radius: 14px;
  background: #fff; display: flex; align-items: center;
  justify-content: center; font-size: 22px; overflow: hidden; padding: 3px;
}
.header-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.header-name { font-size: 20px; font-weight: 800; color: #fff; }
.header-tagline { font-size: 12px; color: rgba(255,255,255,.6); }
.admin-badge {
  background: var(--primary); color: #fff;
  border-radius: 20px; padding: 6px 14px;
  font-size: 12px; font-weight: 700; letter-spacing: .5px;
}
.admin-chip {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08); border-radius: 12px; padding: 8px 12px;
}
.admin-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary); color: #fff;
  font-weight: 800; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.admin-name { font-size: 13px; color: #fff; font-weight: 600; }
.admin-id-text { font-size: 10px; color: rgba(255,255,255,.5); }

/* ─── UNAUTHORIZED ─── */
#unauthorized {
  display: none; text-align: center; padding: 60px 24px;
}
.unauth-icon { font-size: 72px; margin-bottom: 16px; }
.unauth-title { font-size: 22px; font-weight: 800; color: var(--danger); margin-bottom: 8px; }
.unauth-text { font-size: 14px; color: var(--text-light); }

/* ─── PAGES ─── */
.page { display: none; animation: pageIn .3s ease; }
.page.active { display: block; }
@keyframes pageIn { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:translateY(0)} }
.page-content { padding: 14px 14px 0; }

/* ─── CARDS ─── */
.card {
  background: var(--card); border-radius: var(--radius);
  padding: 16px; border: 1px solid var(--card-border);
  box-shadow: 0 4px 18px rgba(124,92,255, .08);
  margin-bottom: 14px;
}
.section-title {
  font-size: 16px; font-weight: 800; color: var(--text-dark);
  margin-bottom: 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}

/* ─── STATS GRID ─── */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.stat-card {
  background: var(--card); border-radius: var(--radius);
  padding: 16px 14px; border: 1px solid rgba(124,92,255,.18);
  display: flex; flex-direction: column; gap: 4px;
  position: relative; overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad);
}
.stat-icon { font-size: 26px; margin-bottom: 4px; }
.stat-value { font-size: 22px; font-weight: 900; color: #7c5cff; }
.stat-label { font-size: 11px; color: var(--text-light); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }

/* ─── BUTTONS ─── */
.primary-btn {
  width: 100%; padding: 14px;
  background: var(--grad);
  color: #fff; border: none; border-radius: 14px;
  font-size: 14px; font-weight: 800; cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 16px rgba(124,92,255,.4);
  margin-bottom: 10px; font-family: inherit;
}
.primary-btn:active { transform: scale(.97); }
.primary-btn:disabled { opacity: .55; cursor: not-allowed; }

.danger-btn {
  width: 100%; padding: 13px;
  background: transparent; color: var(--danger);
  border: 1.5px solid var(--danger); border-radius: 14px;
  font-size: 14px; font-weight: 700; cursor: pointer;
  transition: all .15s; margin-bottom: 10px; font-family: inherit;
}
.danger-btn:active { background: rgba(255,77,109,.12); }

.secondary-btn {
  width: 100%; padding: 13px;
  background: transparent; color: #7c5cff;
  border: 1.5px solid rgba(124,92,255,.45); border-radius: 14px;
  font-size: 14px; font-weight: 700; cursor: pointer;
  transition: all .15s; margin-bottom: 10px; font-family: inherit;
}
.secondary-btn:active { background: rgba(124,92,255,.12); }

/* ─── ACTION CARDS ─── */
.action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.action-card {
  background: var(--card); border-radius: var(--radius);
  padding: 18px 14px; text-align: center;
  border: 1px solid rgba(124,92,255,.2);
  cursor: pointer; transition: all .15s;
}
.action-card:active { transform: scale(.96); border-color: var(--primary); }
.action-icon { font-size: 28px; margin-bottom: 8px; }
.action-label { font-size: 12px; font-weight: 700; color: var(--text-dark); }

/* ─── TABLES / LISTS ─── */
.data-list { display: grid; gap: 10px; }
.data-item {
  background: var(--card); border-radius: 14px;
  padding: 14px 16px; border: 1px solid rgba(124,92,255,.15);
  display: flex; align-items: center; gap: 12px;
}
.data-icon { font-size: 28px; }
.data-info { flex: 1; min-width: 0; }
.data-name { font-size: 14px; font-weight: 700; color: var(--text-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.data-meta { font-size: 12px; color: var(--text-light); margin-top: 2px; }
.data-actions { display: flex; gap: 8px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 10px;
  border: none; display: flex; align-items: center; justify-content: center;
  font-size: 16px; cursor: pointer; transition: background .15s;
}
.icon-btn-edit { background: rgba(124,92,255,.14); color: #2f5f70; }
.icon-btn-del  { background: rgba(225,29,72,.12); color: #be123c; }

/* ─── USERS TABLE ─── */
.users-list { display: grid; gap: 10px; }
.user-item {
  background: var(--card); border-radius: 14px;
  padding: 14px 16px; border: 1px solid rgba(124,92,255,.15);
}
.user-row1 { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.user-avatar-sm {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--grad);
  color: #fff; font-weight: 800; font-size: 16px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.user-name-sm { font-size: 14px; font-weight: 700; color: var(--text-dark); }
.user-id-sm { font-size: 11px; color: var(--text-light); }
.user-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.user-stat-chip {
  background: rgba(124,92,255,.15); border-radius: 20px;
  padding: 4px 10px; font-size: 12px; font-weight: 600;
  color: #7c5cff; border: 1px solid rgba(124,92,255,.25);
}
.user-actions { display: flex; gap: 8px; margin-top: 10px; }
.user-action-btn {
  flex: 1; padding: 9px; border-radius: 10px; border: none;
  font-size: 12px; font-weight: 700; cursor: pointer; transition: all .15s; font-family: inherit;
}
.btn-add-bal { background: rgba(34,197,94,.14); color: #15803d; }
.btn-deduct  { background: rgba(225,29,72,.12); color: #be123c; }
.btn-msg-user { background: rgba(124,92,255,.14); color: #2f5f70; }
.btn-block { background: rgba(245,158,11,.14); color: #b45309; }
.btn-unblock { background: rgba(34,197,94,.14); color: #15803d; }
.user-blocked-badge { background: rgba(225,29,72,.12); color: #be123c; font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 20px; text-transform: uppercase; }
.stock-type-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.stock-type-tab { flex: 1; padding: 10px; border-radius: 12px; border: 1.5px solid rgba(124,92,255,.25); background: #fff; font-size: 12px; font-weight: 700; cursor: pointer; text-align: center; font-family: inherit; color: var(--text-dark); }
.stock-type-tab.active { border-color: var(--primary); background: rgba(124,92,255,.18); color: #2f5f70; font-weight: 800; }
.proxy-icon-preview { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; border: 2px solid rgba(124,92,255,.3); margin-bottom: 10px; }
.proxy-icon-upload { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.hint-text { font-size: 12px; color: var(--text-light); line-height: 1.5; margin-bottom: 10px; }

/* ─── PENDING PAYMENTS ─── */
.payment-item {
  background: var(--card); border-radius: 14px;
  padding: 14px 16px; border: 1px solid rgba(124,92,255,.15);
  margin-bottom: 10px;
}
.payment-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.payment-order { font-size: 12px; font-weight: 700; color: var(--text-light); }
.status-badge {
  padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700;
}
.status-pending  { background: rgba(245,158,11,.14); color: #b45309; }
.status-completed{ background: rgba(34,197,94,.14); color: #15803d; }
.status-rejected { background: rgba(225,29,72,.12); color: #be123c; }
.status-expired  { background: rgba(148,163,184,.18); color: #475569; }
.payment-amount { font-size: 22px; font-weight: 900; color: #7c5cff; margin-bottom: 4px; }
.payment-user   { font-size: 13px; color: var(--text-mid); margin-bottom: 10px; }
.payment-btns   { display: flex; gap: 8px; }
.pay-approve-btn{ flex:1; padding:10px; border:none; border-radius:10px; background:rgba(34,197,94,.14); color:#15803d; font-weight:700; cursor:pointer; font-size:13px; font-family:inherit; }
.pay-reject-btn { flex:1; padding:10px; border:none; border-radius:10px; background:rgba(225,29,72,.12); color:#be123c;  font-weight:700; cursor:pointer; font-size:13px; font-family:inherit; }

/* ─── BROADCAST ─── */
.broadcast-textarea {
  width: 100%; min-height: 120px; padding: 14px;
  border: 1.5px solid rgba(124,92,255,.35); border-radius: 14px;
  font-size: 14px; font-family: inherit; resize: vertical;
  outline: none; margin-bottom: 14px; transition: border-color .2s, box-shadow .2s;
  background: #ffffff; color: #0f172a; caret-color: #7c5cff;
  -webkit-text-fill-color: #0f172a; color-scheme: light;
}
.broadcast-textarea::placeholder { color: #94a3b8; opacity: 1; -webkit-text-fill-color: #94a3b8; }
.broadcast-textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124,92,255,.18); }

/* ─── INPUT ─── */
.app-input {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid rgba(124,92,255,.35); border-radius: 14px;
  font-size: 14px; outline: none; margin-bottom: 12px;
  transition: border-color .2s, box-shadow .2s;
  background: #ffffff; color: #0f172a; caret-color: #7c5cff;
  font-family: inherit; -webkit-text-fill-color: #0f172a; color-scheme: light;
}
.app-input::placeholder { color: #94a3b8; opacity: 1; -webkit-text-fill-color: #94a3b8; }
.app-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124,92,255,.18); }
.app-input option { background: #ffffff; color: #0f172a; }
select.app-input { appearance: auto; }

/* ─── SETTINGS TOGGLE ─── */
.setting-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; border-bottom: 1px solid rgba(124,92,255,.12);
}
.setting-row:last-child { border-bottom: none; }
.setting-label { font-size: 14px; color: var(--text-mid); }
.field-label { font-size: 12px; font-weight: 700; color: var(--text-mid); margin-bottom: 6px; }
.toggle {
  width: 48px; height: 26px; border-radius: 13px;
  background: #cbd5e1; position: relative; cursor: pointer; transition: background .2s;
  border: 1px solid #94a3b8; flex-shrink: 0;
}
.toggle.on { background: var(--primary); border-color: transparent; }
.toggle::after {
  content: ''; position: absolute; top: 2px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; transition: transform .2s;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
}
.toggle.on::after { transform: translateX(22px); }

/* ─── BOTTOM NAV ─── */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--bottom-h);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(124,92,255,.18);
  display: flex; align-items: stretch;
  z-index: 200;
  box-shadow: 0 -6px 28px rgba(124,92,255,.12);
}
.nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  cursor: pointer; gap: 3px; padding: 6px 0;
  position: relative; transition: transform .15s;
  -webkit-tap-highlight-color: transparent;
}
.nav-item:active { transform: scale(.92); }
.nav-icon {
  width: 36px; height: 36px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; transition: all .2s; color: #64748b;
}
.nav-label { font-size: 10px; font-weight: 600; color: #64748b; transition: color .2s; }
.nav-item.active .nav-icon { background: var(--grad); box-shadow: 0 4px 14px rgba(124,92,255,.45); color: #fff; }
.nav-item.active .nav-label { color: #7c5cff; }
.nav-item.active::after {
  content: ''; position: absolute; bottom: 4px;
  width: 4px; height: 4px; border-radius: 50%; background: #7c5cff;
}

/* ─── MODAL ─── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,.45);
  z-index: 500; display: flex; align-items: flex-end;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-sheet {
  width: 100%; background: #ffffff; border-radius: 24px 24px 0 0;
  padding: 20px 18px 32px; transform: translateY(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  max-height: 90vh; overflow-y: auto;
  border: 1px solid rgba(124,92,255,.18); border-bottom: none;
  color: var(--text-dark);
  box-shadow: 0 -8px 32px rgba(15,23,42,.12);
}
.modal-overlay.open .modal-sheet { transform: translateY(0); }
.modal-handle { width: 40px; height: 4px; background: #cbd5e1; border-radius: 2px; margin: 0 auto 16px; }
.modal-title { font-size: 18px; font-weight: 800; margin-bottom: 16px; color: var(--text-dark); }

/* ─── TOAST ─── */
.toast {
  position: fixed; bottom: calc(var(--bottom-h) + 16px); left: 50%; transform: translateX(-50%) translateY(20px);
  background: #0f172a; color: #fff; padding: 12px 22px;
  border-radius: 30px; font-size: 13px; font-weight: 700;
  opacity: 0; transition: all .3s; z-index: 1000; white-space: nowrap;
  box-shadow: 0 4px 20px rgba(15,23,42,.25); border: 1px solid rgba(124,92,255,.35);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ─── SKELETON ─── */
.skeleton {
  background: linear-gradient(90deg,rgba(255,255,255,.04) 25%,rgba(124,92,255,.12) 50%,rgba(255,255,255,.04) 75%);
  background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 10px;
}
@keyframes shimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}

.empty-state { text-align:center; padding:48px 20px; }
.empty-icon { font-size:56px; margin-bottom:14px; }
.empty-text { font-size:15px; font-weight:600; color:var(--text-mid); }
.img-placeholder {
  width:64px; height:64px; border-radius:14px;
  background: rgba(124,92,255,.12); border: 1px dashed rgba(124,92,255,.35);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.filter-chips {
  display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.filter-chips::-webkit-scrollbar { display: none; }
.filter-chip {
  flex-shrink: 0; padding: 7px 12px; border-radius: 20px; font-size: 11px; font-weight: 800;
  border: 1px solid rgba(124,92,255,.28); background: #fff; color: var(--text-mid);
  cursor: pointer; font-family: inherit;
}
.filter-chip.active {
  background: var(--grad); color: #fff; border-color: transparent;
}
.empty-icon svg { display: block; margin: 0 auto; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(124,92,255,.45); border-radius: 2px; }

/* ═══ User lookup (light theme) ═══ */
.lu-card { background: linear-gradient(135deg, rgba(124,92,255,.12), rgba(34,211,238,.08)); border: 1px solid rgba(124,92,255,.28); border-radius: 18px; padding: 14px; margin-bottom: 14px; }
.lu-card-title { font-size: 15px; font-weight: 800; color: var(--text-dark); margin-bottom: 10px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.lu-card-title span { font-size: 11px; font-weight: 600; color: var(--text-light); }
.lu-form { display: flex; gap: 8px; }
.lu-form .app-input { margin: 0; flex: 1; min-width: 0; }
.lu-go { border: 0; border-radius: 12px; padding: 0 18px; font-weight: 800; font-size: 14px; color: #fff; background: var(--grad); cursor: pointer; box-shadow: 0 6px 16px rgba(124,92,255,.35); }
.lu-go:active { transform: scale(.96); }
.btn-view { background: rgba(124,92,255,.18); color: #2f5f70; }
.lu-overlay { align-items: stretch; }
.lu-sheet { height: 100%; max-height: 100vh; border-radius: 0; padding: 0; display: flex; flex-direction: column; border: none; background: #f8fafc; color: var(--text-dark); }
.lu-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid rgba(124,92,255,.15); position: sticky; top: 0; background: #fff; z-index: 2; }
.lu-head-title { flex: 1; font-size: 16px; font-weight: 800; color: var(--text-dark); }
.lu-x, .lu-refresh { width: 38px; height: 38px; border-radius: 12px; border: 1px solid rgba(124,92,255,.2); background: #f1f5f9; color: var(--text-dark); font-size: 16px; cursor: pointer; }
.lu-body { flex: 1; overflow-y: auto; padding: 14px; -webkit-overflow-scrolling: touch; }
.lu-loading { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 60px 0; color: var(--text-light); font-weight: 600; }
.lu-spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(124,92,255,.25); border-top-color: var(--primary); animation: luSpin .8s linear infinite; }
@keyframes luSpin { to { transform: rotate(360deg); } }
.lu-sec { font-size: 12px; font-weight: 700; color: var(--text-light); margin: 2px 0 10px; }
.lu-match { width: 100%; display: flex; align-items: center; gap: 10px; padding: 11px 12px; margin-bottom: 8px; border-radius: 14px; border: 1px solid rgba(124,92,255,.15); background: #fff; color: var(--text-dark); cursor: pointer; text-align: left; font-family: inherit; }
.lu-match-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lu-match-main small { color: var(--text-light); font-size: 11px; }
.lu-match-bal { font-weight: 800; color: #15803d; font-size: 13px; }
.lu-av { width: 54px; height: 54px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 900; color: #fff; background: var(--grad); box-shadow: 0 0 0 3px rgba(124,92,255,.3); }
.lu-av.sm { width: 36px; height: 36px; font-size: 15px; box-shadow: none; }
.lu-profile { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 18px; background: #fff; border: 1px solid rgba(124,92,255,.15); margin-bottom: 12px; }
.lu-profile.blocked { border-color: rgba(225,29,72,.45); }
.lu-profile-main { min-width: 0; flex: 1; }
.lu-name { font-size: 17px; font-weight: 900; color: var(--text-dark); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lu-meta { font-size: 12px; color: var(--text-light); margin-top: 3px; }
.lu-copy, .lu-link { color: #7c5cff; cursor: pointer; font-weight: 700; }
.lu-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.lu-stat { padding: 12px; border-radius: 14px; background: #fff; border: 1px solid rgba(124,92,255,.12); min-width: 0; }
.lu-stat small { display: block; font-size: 10px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--text-light); }
.lu-stat b { display: block; font-size: 17px; font-weight: 900; margin-top: 3px; color: var(--text-dark); word-break: break-word; }
.lu-stat b.sm { font-size: 13px; }
.lu-stat em { display: block; font-style: normal; font-size: 11px; color: var(--text-light); margin-top: 3px; line-height: 1.35; }
.lu-stat.main { grid-column: 1 / -1; background: linear-gradient(135deg, rgba(34,197,94,.14), rgba(34,197,94,.05)); border-color: rgba(34,197,94,.3); }
.lu-stat.main b { font-size: 26px; color: #15803d; }
.lu-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 14px; }
.lu-actions button { padding: 10px 4px; border-radius: 12px; border: 1px solid rgba(124,92,255,.18); background: #fff; color: var(--text-dark); font-weight: 800; font-size: 12px; cursor: pointer; font-family: inherit; }
.lu-actions button:first-child { background: rgba(34,197,94,.12); color: #15803d; border-color: rgba(34,197,94,.28); }
.lu-actions button.no { background: rgba(225,29,72,.1); color: #be123c; border-color: rgba(225,29,72,.25); }
.lu-actions button.ok { background: rgba(34,197,94,.12); color: #15803d; }
.lu-tabs { display: flex; gap: 6px; padding: 4px; border-radius: 14px; background: #e2e8f0; margin-bottom: 10px; position: sticky; top: -14px; z-index: 1; backdrop-filter: blur(8px); }
.lu-tabs button { flex: 1; padding: 10px; border: 0; border-radius: 11px; background: transparent; color: var(--text-mid); font-weight: 800; font-size: 13px; cursor: pointer; font-family: inherit; }
.lu-tabs button.on { background: var(--grad); color: #fff; }
.lu-tabs button span { opacity: .8; font-size: 11px; margin-left: 3px; }
.lu-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 10px; }
.lu-chips button { flex-shrink: 0; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(124,92,255,.2); background: #fff; color: var(--text-mid); font-weight: 700; font-size: 12px; cursor: pointer; font-family: inherit; }
.lu-chips button.on { border-color: var(--primary); color: #fff; background: var(--primary); }
.lu-row { display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border-radius: 14px; background: #fff; border: 1px solid rgba(124,92,255,.12); margin-bottom: 7px; }
.lu-row-main { flex: 1; min-width: 0; }
.lu-row-title { font-size: 13px; font-weight: 700; color: var(--text-dark); word-break: break-word; }
.lu-row-sub { font-size: 11px; color: var(--text-light); margin-top: 3px; word-break: break-all; }
.lu-row-sub code { font-size: 10.5px; color: var(--text-mid); }
.lu-row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex-shrink: 0; }
.lu-row-side b { font-size: 13px; color: var(--text-dark); }
.lu-type { display: inline-block; font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 6px; background: rgba(124,92,255,.15); color: #2f5f70; margin-right: 6px; vertical-align: 1px; }
.lu-st { font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 999px; text-transform: capitalize; }
.lu-st.ok { background: rgba(34,197,94,.14); color: #15803d; }
.lu-st.wait { background: rgba(245,158,11,.14); color: #b45309; }
.lu-st.bad { background: rgba(225,29,72,.12); color: #be123c; }
.lu-mini { display: flex; gap: 4px; }
.lu-mini button { border: 0; border-radius: 8px; padding: 5px 8px; font-size: 11px; font-weight: 800; cursor: pointer; background: rgba(34,197,94,.16); color: #15803d; }
.lu-mini button.no { background: rgba(225,29,72,.12); color: #be123c; }
.lu-empty { text-align: center; color: var(--text-light); padding: 30px 0; font-weight: 600; }
@media (min-width: 720px) { .lu-sheet { max-width: 640px; margin: 0 auto; } .lu-stats { grid-template-columns: repeat(3, 1fr); } }

/* pending auto-cleanup note (v21) */
.pp-auto-note { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 10px 12px; border-radius: 14px; font-size: 12px; line-height: 1.45; color: var(--text-mid); background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.25); }
.pp-auto-note b { color: #b45309; }
.pp-auto-note button { flex-shrink: 0; border: 0; border-radius: 10px; padding: 8px 12px; font-weight: 800; font-size: 12px; color: #fff; background: var(--grad); cursor: pointer; }
.pp-auto-note button:disabled { opacity: .6; }
