:root{
      --bg:#f6f8fc;
      --card:#ffffff;
      --line:#e6ebf3;
      --text:#102033;
      --muted:#5a6b80;
      --brand:#2563eb;
      --brand2:#1d4ed8;
      --shadow: 0 14px 35px rgba(16,32,51,.10);
      --r:18px;
    }
    *{box-sizing:border-box}
    body{
      margin:0;
      font-family: ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Arial;
      background: var(--bg); /* ✅ fixed: single background */
      color:var(--text);
    }
    .header{
      position:sticky; top:0; z-index:10;
      background: rgba(246,248,252,.92);
      backdrop-filter: blur(10px);
      border-bottom:1px solid var(--line);
    }
    .header .inner{
      max-width:920px;
      margin:0 auto;
      padding:14px 14px;
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:12px;
    }
    .brand{
      font-weight:950;
      letter-spacing:.12em;
      text-transform:uppercase;
      font-size:13px;
      color:#0c1a2b;
      display:flex;
      align-items:center;
      gap:10px;
    }
    .badge{
      display:inline-flex;
      align-items:center;
      gap:8px;
      padding:7px 10px;
      border-radius:999px;
      background: rgba(37,99,235,.10);
      border:1px solid rgba(37,99,235,.18);
      color: rgba(37,99,235,.95);
      font-weight:900;
      font-size:12px;
      letter-spacing:.06em;
    }
    .wrap{
      max-width:920px;
      margin:0 auto;
      padding:18px 14px 80px;
    }
    .card{
      background: var(--card);
      border:1px solid var(--line);
      border-radius: var(--r);
      box-shadow: var(--shadow);
      overflow:hidden;
    }
    .card-h{
      padding:16px 16px 10px;
      border-bottom:1px solid var(--line);
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:12px;
    }
    .card-h .t{
      font-weight:950;
      letter-spacing:.06em;
      text-transform:uppercase;
      font-size:12px;
      color:#1b2b40;
    }
    .step{
      font-size:12px;
      font-weight:900;
      padding:6px 10px;
      border-radius:999px;
      border:1px solid var(--line);
      background:#f7faff;
      color:#28415f;
    }
    .card-b{ padding:16px; }

    .note{
      margin:0 0 12px;
      color:var(--muted);
      font-size:13px;
      line-height:1.45;
    }
    .row{ display:flex; gap:12px; }
    @media (max-width:560px){ .row{ flex-direction:column; } }

    .field{ width:100%; margin-bottom:12px; }
    .lbl{
      font-size:12px;
      font-weight:900;
      color:#334a66;
      margin:0 0 6px;
      display:flex;
      justify-content:space-between;
      align-items:center;
    }
    .hint{ font-weight:700; color:#7a8ba0; font-size:11px; }

    .in, .sel{
      width:100%;
      border-radius:14px;
      border:1px solid var(--line);
      background:#fbfcff;
      padding:12px 12px;
      outline:none;
      color:var(--text);
      transition:.15s ease;
    }
    .in:focus, .sel:focus{
      border-color: rgba(37,99,235,.35);
      box-shadow: 0 0 0 4px rgba(37,99,235,.12);
      background:#fff;
    }
    .in[readonly]{
      background:#f4f7ff;
      cursor:not-allowed;
      border-color: rgba(22,163,74,.25);
    }

    .btnbar{ display:flex; gap:12px; margin-top:6px; }
    @media (max-width:560px){ .btnbar{ flex-direction:column; } }
    .btn{
      flex:1;
      border:0;
      border-radius:14px;
      padding:12px 14px;
      font-weight:950;
      cursor:pointer;
      user-select:none;
      transition:.15s ease;
      display:flex;
      align-items:center;
      justify-content:center;
      gap:10px;
    }
    .btn.primary{
      color:white;
      background: linear-gradient(180deg, var(--brand), var(--brand2));
    }
    .btn.secondary{
      background:#f7f9ff;
      border:1px solid var(--line);
      color:#23415f;
    }
    .btn:active{ transform: translateY(1px); }
    .btn[disabled]{ opacity:.75; cursor:not-allowed; transform:none; }

    .spinner{
      width:16px; height:16px;
      border-radius:50%;
      border:2px solid rgba(255,255,255,.35);
      border-top-color:#fff;
      animation: spin .8s linear infinite;
    }
    .btn.secondary .spinner{
      border-color: rgba(35,65,95,.18);
      border-top-color: rgba(35,65,95,.75);
    }
    @keyframes spin{ to{ transform: rotate(360deg);} }

    /* Upload blocks */
    .uploadRow{
      display:flex;
      gap:14px;
      align-items:center;
      padding:12px;
      border:1px dashed rgba(37,99,235,.25);
      background: rgba(37,99,235,.05);
      border-radius:16px;
      margin-bottom:12px;
    }
    .thumb{
      width:84px; height:84px;
      border-radius:18px;
      border:1px solid var(--line);
      background:#fff;
      overflow:hidden;
      display:grid;
      place-items:center;
      flex:0 0 auto;
      position:relative;
    }
    .thumb img{
      width:100%; height:100%;
      object-fit:cover;
      display:none;
    }
    .ph{
      color:#6a7d94;
      font-weight:900;
      font-size:12px;
      text-align:center;
      line-height:1.15;
      padding:10px;
    }
    .pencil{
      position:absolute;
      right:7px; bottom:7px;
      width:30px; height:30px;
      border-radius:12px;
      border:1px solid var(--line);
      background: rgba(255,255,255,.92);
      display:grid;
      place-items:center;
      cursor:pointer;
      box-shadow: 0 8px 20px rgba(16,32,51,.10);
    }
    .pencil svg{ width:16px; height:16px; color:#23415f; }

    /* Toast TOP */
    .toastWrap{
      position:fixed;
      left:0; right:0;
      top:10px;
      display:flex;
      justify-content:center;
      z-index:999;
      pointer-events:none;
      padding:0 12px;
    }
    .toast{
      pointer-events:auto;
      width:min(560px, 100%);
      background:#ffffff;
      border:1px solid var(--line);
      box-shadow: 0 14px 35px rgba(16,32,51,.12);
      border-radius:16px;
      overflow:hidden;
      transform: translateY(-8px);
      opacity:0;
      transition:.18s ease;
    }
    .toast.show{ transform: translateY(0); opacity:1; }
    .toast .trow{
      display:flex;
      flex-direction:row;
      gap:10px;
      padding:12px 12px 10px;
      align-items:flex-start;
    }
    .toast .ico{
      width:34px; height:34px;
      border-radius:14px;
      display:grid;
      place-items:center;
      border:1px solid var(--line);
      background:#f7f9ff;
      flex:0 0 auto;
      font-size:16px;
    }
    .toast .txt{ flex:1; min-width:0; }
    .toast .t1{ margin:0 0 2px; font-weight:950; font-size:13px; }
    .toast .t2{ margin:0; color:var(--muted); font-size:12px; line-height:1.35; }
    .toast .bar{
      height:3px;
      background:#eef2fb;
      position:relative;
    }
    .toast .bar i{
      position:absolute; inset:0;
      transform-origin:left;
      transform: scaleX(1);
      background: linear-gradient(90deg, rgba(37,99,235,.95), rgba(22,163,74,.95));
    }
    .toast.bad .bar i{
      background: linear-gradient(90deg, rgba(220,38,38,.95), rgba(234,88,12,.95));
    }

    .modal{
      position:fixed; inset:0;
      background: rgba(16,32,51,.55);
      display:none;
      align-items:center;
      justify-content:center;
      z-index:1000;
      padding:14px;
    }
    .modal.show{ display:flex; }
    .sheet{
      width:min(520px, 100%);
      background:#fff;
      border:1px solid var(--line);
      border-radius:22px;
      box-shadow: 0 20px 55px rgba(16,32,51,.22);
      overflow:hidden;
    }
    .sheet-h{
      padding:12px 14px;
      display:flex;
      justify-content:space-between;
      align-items:center;
      border-bottom:1px solid var(--line);
    }
    .sheet-h .t{
      font-weight:950;
      letter-spacing:.08em;
      text-transform:uppercase;
      font-size:12px;
      color:#28415f;
    }
    .xbtn{
      border:1px solid var(--line);
      background:#f7f9ff;
      color:#23415f;
      padding:9px 10px;
      border-radius:14px;
      cursor:pointer;
      font-weight:900;
    }
    .sheet-b{ padding:14px; }
    .cropArea{
      width:100%;
      aspect-ratio: 1 / 1;
      background:#f2f5fb;
      border:1px solid var(--line);
      border-radius:18px;
      overflow:hidden;
      display:grid;
      place-items:center;
    }
    .cropArea img{ max-width:100%; display:block; }
    .sheet-f{
      padding:12px 14px;
      border-top:1px solid var(--line);
      display:flex;
      gap:10px;
    }

    /* Player info card */
    .profileCard{
      display:flex;
      gap:14px;
      align-items:flex-start;
      padding:14px;
      border:1px solid var(--line);
      border-radius:18px;
      background:#fff;
      box-shadow: var(--shadow);
    }
    .profileCard .pic{
      width:92px; height:92px;
      border-radius:20px;
      border:1px solid var(--line);
      overflow:hidden;
      background:#f7f9ff;
      flex:0 0 auto;
      display:grid;
      place-items:center;
      color:#6a7d94;
      font-weight:900;
      font-size:12px;
      text-align:center;
      line-height:1.15;
    }
    .profileCard .pic img{ width:100%; height:100%; object-fit:cover; display:block; }
    .profileCard .meta{ flex:1; min-width:0; }
    .profileCard .name{ font-weight:950; font-size:18px; margin:0 0 4px; color:#102033; }
    .kv{
      display:grid;
      grid-template-columns: 140px 1fr;
      gap:8px 12px;
      margin-top:10px;
      font-size:13px;
    }
    @media (max-width:520px){
      .kv{ grid-template-columns: 1fr; }
      .kv .k{ color:#6a7d94; font-weight:900; }
    }
    .k{ color:#5a6b80; font-weight:900; }
    .v{ color:#102033; word-break:break-word; }
    .topActions{ display:flex; gap:10px; flex-wrap:wrap; margin-top:14px; }
    .linkBtn{
      text-decoration:none;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      padding:10px 12px;
      border-radius:14px;
      border:1px solid var(--line);
      background:#f7f9ff;
      color:#23415f;
      font-weight:600;
    }

    .aadhaarBlock{
      margin-top:14px;
      border:1px solid var(--line);
      border-radius:18px;
      overflow:hidden;
      background:#fff;
      box-shadow: var(--shadow);
    }
    .aadhaarBlock .ah{
      padding:12px 14px;
      border-bottom:1px solid var(--line);
      font-weight:950;
      letter-spacing:.06em;
      text-transform:uppercase;
      font-size:12px;
      color:#1b2b40;
      display:flex;
      justify-content:space-between;
      gap:12px;
      align-items:center;
    }
    .aadhaarBlock .ab{
      padding:12px 14px;
    }
    .aadhaarImg{
      width:100%;
      border-radius:14px;
      border:1px solid var(--line);
      background:#f7f9ff;
      display:block;
      max-height:420px;
      object-fit:contain;
    }

    /* ✅ Cropper mobile gestures */
.cropArea, .cropArea *{
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

/* Payment Card (white theme) */
.payCard{
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(241, 157, 157, 0.95), rgba(243, 198, 198, 0.78));
  border: 1px solid rgba(10,20,40,.10);
  box-shadow: 0 18px 40px rgba(10,20,40,.10);
  overflow:hidden;
  padding: 14px;
  margin-bottom:20px;
}

.payTop{
  display:flex;
  gap:12px;
  align-items:flex-start;
}

.payIcon{
  width:46px;
  height:46px;
  border-radius: 18px;
  display:grid;
  place-items:center;
  background: rgba(255,184,91,.20);
  border: 1px solid rgba(255,184,91,.35);
  color: #7a4a00;
  flex: 0 0 auto;
  font-size: 18px;
}

.payTitleWrap{ min-width:0; }

.payTitle{
  font-weight: 980;
  font-size: 15px;
  color:#0b1426;
  letter-spacing:.2px;
}

.paySub{
  margin-top:6px;
  font-weight: 600;
  font-size: 12.5px;
  color: rgba(10, 10, 10, 0.7);
  line-height:1.55;
}

.payQRWrap{
  margin-top: 12px;
  border-radius: 18px;
  border: 1px solid rgba(10,20,40,.10);
  background: rgba(255,255,255,.85);
  padding: 12px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
}

.payQR{
  width: 150px;
  max-width: 100%;
  border: 1px solid rgba(10,20,40,.10);
  background:#fff;
  display:block;
}

.payHint{
  font-weight: 950;
  font-size: 12px;
  color: rgba(11,20,38,.62);
}

.payApps{
  margin-top: 12px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}

.payAppBtn{
  text-decoration:none;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(10,20,40,.10);
  background: rgba(255,255,255,.85);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-weight: 980;
  font-size: 13px;
  color:#0b1426;
  box-shadow: 0 10px 22px rgba(10,20,40,.06);
  transition: transform .14s ease, filter .14s ease;
}
.payAppBtn:active{ transform: translateY(1px) scale(.99); }
.payAppBtn i{ opacity:.95; }

.payAppBtn.phonepe i{ color:#6b21a8; }
.payAppBtn.gpay i{ color:#2563eb; }
.payAppBtn.paytm i{ color:#0ea5e9; }
.payAppBtn.upi i{ color:#f59e0b; }

.payNote{
  margin-top: 12px;
  border-radius: 16px;
  padding: 10px 12px;
  border: 1px solid rgba(10,20,40,.10);
  background: rgba(37,99,235,.05);
  color: rgba(11,20,38,.70);
  font-weight: 850;
  font-size: 12px;
  display:flex;
  gap:8px;
  align-items:flex-start;
}
.payNote i{ margin-top:2px; color:#2563eb; }