:root{
  --bg:#000;
  --text:#F7F7F7;
  --muted: rgba(255,255,255,.72);
  --line: rgba(255,255,255,.12);
  --accent1:#FF6A5E;
  --accent2:#E33B2E;
  --accentGlow: rgba(255,106,94,.22);
  --card: rgba(255,255,255,.06);
  --card2: rgba(255,255,255,.04);
  --shadow: 0 26px 70px rgba(0,0,0,.78);
  --radius: 26px;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:24px 14px;
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(950px 520px at 50% 18%, var(--accentGlow), transparent 62%),
    radial-gradient(900px 520px at 15% 78%, rgba(227,59,46,.12), transparent 60%),
    radial-gradient(800px 480px at 85% 78%, rgba(255,180,173,.08), transparent 62%),
    linear-gradient(180deg, #000, #000);
}

.wrap{ width:min(980px, 100%); }
.wrapNarrow{ width:min(860px, 100%); }

.panel{
  background: rgba(12,12,12,.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  overflow:hidden;
}

.inner{ padding:22px; }

.card,
.centerCard{
  max-width: 720px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 22px;
  padding: 22px 18px;
  box-shadow: 0 20px 55px rgba(0,0,0,.55);
}

.centerCard{ max-width: 680px; }
.wideCard{ max-width: 920px; }

.brand{
  display:grid;
  place-items:center;
  gap:10px;
  margin-bottom: 16px;
  text-align:center;
}

.logoBox{
  width: 140px;
  height: 140px;
  border-radius: 26px;
  padding: 10px;
  background:
    radial-gradient(circle at 35% 20%, rgba(255,106,94,.22), transparent 60%),
    rgba(0,0,0,.35);
  border: 1px solid rgba(255,106,94,.38);
  box-shadow: 0 18px 44px rgba(255,106,94,.12);
  display:grid;
  place-items:center;
}

.logoBoxSmall{
  width: 120px;
  height: 120px;
  border-radius: 24px;
}

.logoBox img{
  width:100%;
  height:100%;
  object-fit: contain;
  border-radius: 18px;
  display:block;
}

.brandTitle{
  font-size: 15px;
  font-weight: 900;
  color: rgba(255,255,255,.92);
  margin-top: 2px;
}

.portalTitle{
  font-size: 28px;
  font-weight: 950;
  margin-top: -4px;
}

.subtitle{
  color: var(--muted);
  font-size: 14px;
  margin-top: 2px;
  line-height: 1.7;
  max-width: 620px;
}

.stack{ display:grid; gap:12px; }

.formRow{
  margin-top: 14px;
  display:flex;
  gap:12px;
  align-items:stretch;
}

input{
  width:100%;
  flex:1;
  padding: 14px 14px;
  font-size: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.35);
  color: var(--text);
  outline:none;
  direction:ltr;
  text-align:left;
  transition: .15s ease;
}

#pin{ font-size:18px; }

input:focus{
  border-color: rgba(255,106,94,.70);
  box-shadow: 0 0 0 4px rgba(255,106,94,.20);
}

.btnRow{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.btn,
.btn2,
.copyBtn,
.iconBtn{
  cursor:pointer;
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}

.btn{
  width: 120px;
  border:none;
  border-radius: 16px;
  font-weight: 950;
  font-size: 16px;
  color: #111;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  box-shadow: 0 18px 36px rgba(227,59,46,.18);
  padding: 13px 18px;
}

.btnAuto{ width:auto; }
.btn:hover{ transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 22px 44px rgba(255,106,94,.22); }
.btn:active{ transform: translateY(0px); filter: brightness(.98); box-shadow: 0 14px 28px rgba(255,106,94,.16); }
.btn:disabled,
.btn2:disabled,
.copyBtn:disabled,
.iconBtn:disabled{ opacity:.65; cursor:not-allowed; transform:none; }

.btn2,
.copyBtn,
.iconBtn{
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-weight: 900;
}

.btn2{
  flex:1;
  border-radius: 16px;
  padding: 12px 14px;
}

.btnGhost{
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--text);
  box-shadow:none;
}
.btnDanger{ background: linear-gradient(135deg, #ffd0cc, #ff6a5e); }
.btn2:hover,
.copyBtn:hover,
.iconBtn:hover{ filter: brightness(1.06); transform: translateY(-1px); }

.msg{
  margin-top: 10px;
  min-height: 20px;
  text-align:center;
  font-size: 14px;
  color: var(--muted);
}

.msg.error{ color: #FCA5A5; }
.msg.ok{ color: #BBF7D0; }

.profileHead,
.toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom: 12px;
}

.toolbar{ flex-wrap:wrap; }

.name{
  font-weight: 950;
  font-size: 18px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.pill{
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 950;
  font-size: 12px;
  border: 1px solid rgba(255,106,94,.35);
  background: rgba(255,106,94,.12);
  color: #FFD5D1;
  white-space:nowrap;
}

.pill.ok{
  border-color: rgba(74,222,128,.35);
  background: rgba(74,222,128,.12);
  color: #BBF7D0;
}

.pill.denied{
  border-color: rgba(252,165,165,.38);
  background: rgba(252,165,165,.12);
  color: #FCA5A5;
}

.rows{
  border-top: 1px solid rgba(255,255,255,.10);
  padding-top: 12px;
  display:grid;
  gap: 10px;
}

.row{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: var(--card2);
}

.k{ color: var(--muted); font-weight: 800; font-size: 13px; }
.v{ font-weight: 950; font-size: 14px; direction:ltr; text-align:left; }

.actions{
  display:flex;
  gap: 10px;
  margin-top: 12px;
}

.transferBox{
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.10);
  display:grid;
  gap: 10px;
}

.warn{
  font-weight: 900;
  color: rgba(255,255,255,.92);
  line-height: 1.9;
  text-align:right;
}

.hint{
  color: var(--muted);
  font-weight: 800;
  line-height: 1.9;
  text-align:right;
}

.copyRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
}

.copyValue{
  font-weight: 950;
  direction:ltr;
  text-align:left;
  color: rgba(255,255,255,.95);
  flex: 1;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.copyBtn{
  border-radius: 12px;
  padding: 8px 12px;
  flex: 0 0 auto;
}

#logoDebug{
  display:none;
  margin-top:10px;
  font-size:12px;
  color:#bbb;
  direction:ltr;
  text-align:left;
  word-break: break-all;
}

.adminGrid{
  display:grid;
  gap:14px;
}

.box{
  border: 1px solid rgba(255,255,255,.08);
  background: var(--card2);
  border-radius: 18px;
  padding: 14px;
  display:grid;
  gap:10px;
}

.searchRow{
  display:grid;
  grid-template-columns: 1fr auto auto;
  gap:10px;
  align-items:center;
}

.bulkActions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.resultsHead{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  color: var(--muted);
  font-weight:800;
  font-size:13px;
}

.tableWrap{
  overflow-x:auto;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
}

table{
  width:100%;
  min-width:720px;
  border-collapse:collapse;
  direction:rtl;
}

th,
td{
  padding:12px 10px;
  border-bottom:1px solid rgba(255,255,255,.08);
  text-align:right;
  vertical-align:middle;
  font-size:14px;
}

th{
  color:var(--muted);
  font-weight:900;
  background:rgba(255,255,255,.04);
}

td.pinCell,
td.numberCell{
  direction:ltr;
  text-align:left;
  font-weight:900;
}

tr:last-child td{ border-bottom:none; }

.statusActions{
  display:flex;
  gap:8px;
  justify-content:flex-start;
}

.iconBtn{
  border-radius:12px;
  padding:8px 10px;
  white-space:nowrap;
}

.emptyState{
  padding:18px;
  color:var(--muted);
  text-align:center;
  font-weight:800;
}

@media (max-width:620px){
  body{ padding:16px 10px; }
  .inner{ padding:14px; }
  .formRow,
  .btnRow,
  .actions,
  .bulkActions,
  .searchRow{ grid-template-columns:1fr; flex-direction:column; }
  .btn,
  .btnAuto,
  .btn2,
  .iconBtn{ width:100%; }
  .logoBox{ width:120px; height:120px; }
  .portalTitle{ font-size:24px; }
  .profileHead{ align-items:flex-start; flex-direction:column; }
}
