:root{
  --bg:#ffffff;
  --text:#000000;
  --muted:#555555;
  --accent:#000000;
  --accent2:#000000;
  --ok:#111111;
  --warn:#444444;
  --err:#777777;
  --bd: rgba(0,0,0,.2);
  --header-h:35px;

  --shadow-soft: none;
  --shadow-strong: none;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background:var(--bg);
}

.back-wrap{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:14px 18px 0;
}


.btn-back{
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 16px;
  border-radius:12px;
  font-weight:700;
  font-size:1rem;
  color:#000;
  background:#ffffff;
  border:1px solid #000;
  box-shadow:none;
  backdrop-filter:none;
  cursor:pointer;
  transition:none;
}

.btn-back .icon{
  width:22px;
  height:22px;
  stroke:#000;
  transition:none;
}

.btn-back:hover{
  color:#ffffff;
  background:#000000;
  box-shadow:none;
  transform:none;
}
.btn-back:hover .icon{
  transform:none;
  stroke:#ffffff;
}

/* HEADER */
header.app-hd{
  position:sticky;
  top:0;
  z-index:50;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:8px 14px;
  background:#ffffff;             
  border-bottom:1px solid #000000; 
  backdrop-filter:none;
  box-shadow:none;
}

.brand{
  position:relative;
  font-weight:800;
  letter-spacing:.2px;
  display:flex;
  align-items:center;
  gap:.5rem;
}

.brand::before{
  content:"";
  width:30px;
  height:30px;
  border-radius:50%;
  background:url("../assets/mive.png") center/cover no-repeat;
  box-shadow:none;
  border:1px solid #000;
  flex-shrink:0;
}

.brand span{
  background:none;
  -webkit-background-clip:border-box;
  color:#000;
}

.wallet-box{
  display:flex;
  align-items:center;
  gap:.5rem;
}

.wallet{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:10px;
}

/* MAIN */
main{
  max-width:1100px;
  margin:0 auto;
  padding:22px 16px 60px;
}

/* WRAP */
.wrap{
  position:relative;
  border:1px solid var(--bd);
  border-radius:18px;
  padding:18px;
  background:#ffffff;
  box-shadow:var(--shadow-strong);
  backdrop-filter:none;
  overflow:hidden;
}

/* GRID */
.grid{
  display:grid;
  gap:16px;
}
.g-2{
  grid-template-columns:1fr;
}

/* CARD */
.card{
  position:relative;
  border-radius:16px;
  padding:16px;
  background:#ffffff;
  border:1px solid rgba(0,0,0,.3);
  box-shadow:none;
  backdrop-filter:none;
  overflow:hidden;
  transition:none;
}

/* hilangkan efek scan & animasi dekoratif */
.card::after{
  content:none;
}
@keyframes cardScan{
  0%{}
  100%{}
}
.card:hover{
  transform:none;
  border-color:rgba(0,0,0,.4);
  box-shadow:none;
}

/* TYPO */
h1{margin:10px 0 8px; font-size:1.6rem}
h2{margin:0 0 10px; font-size:1.2rem}
.mono{font-family:ui-monospace,Menlo,Consolas,monospace}


.stats{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(150px, 1fr));
  gap:10px;
}
.stat{
  background:#ffffff;
  border:1px solid var(--bd);
  backdrop-filter:none;
  border-radius:12px;
  padding:10px 12px;
}
.stat .lbl{
  color:var(--muted);
  font-size:.78rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:6px;
}
.stat .val{
  margin-top:6px;
  font-weight:800;
  word-break:break-word;
}


.row{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}
.field{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin:8px 0;
}
.field input{
  padding:12px;
  border-radius:10px;
  background:#ffffff;
  border:1px solid var(--bd);
  color:var(--text);
}
.helper{
  color:var(--muted);
  font-size:.8rem;
}
.sep{
  height:1px;
  background:#dddddd;
  margin:12px 0;
}


.btn{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 18px;
  border-radius:12px;
  font-weight:700;
  cursor:pointer;
  background:#ffffff;
  color:#000000;
  border:1px solid #000000;
  transition:none;
}
.btn:disabled{
  opacity:.6;
  cursor:not-allowed;
}

.btn.primary{
  background:#000000;
  color:#ffffff;
  border:1px solid #000000;
  box-shadow:none;
  overflow:hidden;
}
.btn.primary:hover{
  background:#000000;
  box-shadow:none;
  transform:none;
}
.btn.primary:active{
  transform:none;
  box-shadow:none;
}


.btn.primary::before{
  content:none;
}


.btn.connected{
  background:#000000;
  color:#ffffff;
  border:1px solid #000000;
  box-shadow:none;
  cursor:default;
}

/* HINT + TOOLTIP */
.hint{
  display:inline-block;
  width:16px;
  height:16px;
  line-height:15px;
  text-align:center;
  font-weight:700;
  border-radius:50%;
  color:#000;
  background:#ffffff;
  border:1px solid #000;
  margin-left:4px;
  cursor:pointer;
  font-size:.75rem;
  transition:none;
  position:relative;
}
.hint:hover{
  background:#000;
  color:#fff;
  box-shadow:none;
}

.hint::after{
  content:attr(data-tip);
  position:absolute;
  bottom:130%;
  left:50%;
  transform:translateX(-50%);
  background:#000;
  color:#fff;
  font-size:.75rem;
  padding:8px 10px;
  border-radius:8px;
  border:1px solid #000;
  box-shadow:none;
  opacity:0;
  pointer-events:none;
  width:max-content;
  max-width:220px;
  white-space:normal;
  text-align:center;
  line-height:1.2;
  transition:none;
  z-index:200;
}
.hint:hover::after{
  opacity:1;
  transform:translateX(-50%);
}

#addrChip,
.addrChip1{
  min-width:90px;
  text-align:center;
  border:1px solid #000;
  background:#ffffff;
  color:#000;
  font-weight:600;
  border-radius:999px;
  padding:6px 10px;
}

/* SPINNER (tetap animasi) */
.spinner{
  display:none;
  width:22px;
  height:22px;
  border-radius:50%;
  background: conic-gradient(
    from 0deg,
    #8b5cf6,   /* violet */
    #3b82f6,   /* blue */
    #22d3ee,   /* cyan-blue */
    #8b5cf6
  );
  
  -webkit-mask:
    radial-gradient(circle 60% at center, transparent 40%, black 41%);
  mask:
    radial-gradient(circle 60% at center, transparent 40%, black 41%);

  animation: spin .7s linear infinite;
  box-shadow:none;
}

@keyframes spin{
  to{transform:rotate(360deg);}
}
.btn[aria-busy="true"]{
  position:relative;
  pointer-events:none;
  opacity:.85;
}
.btn[aria-busy="true"]::before{
  content:"";
  position:absolute;
  left:10px;
  top:50%;
  transform:translateY(-50%);
  width:16px;
  height:16px;
  border-radius:50%;
  border:2px solid rgba(0,0,0,.25);
  border-top-color:#000;
  animation:spin .8s linear infinite;
}
.btn.primary[aria-busy="true"]::before{
  border:2px solid rgba(255,255,255,.45);
  border-top-color:#ffffff;
}


.toast-stack{
  position:fixed;
  top:16px;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  flex-direction:column;
  gap:10px;
  z-index:9999;
  pointer-events:none;
}

/* TOAST (boleh animasi, tapi B/W) */
.toast{
  position:relative;
  pointer-events:auto;
  min-width:260px;
  max-width:92vw;
  padding:12px 16px 12px 20px;
  border-radius:14px;
  font-size:.9rem;
  font-weight:500;
  color:#ffffff;
  background:#000000;
  border:1px solid #000000;
  box-shadow:none;
  backdrop-filter:none;
  opacity:0;
  transform:translateY(-10px) scale(.97);
  transition:opacity .2s ease, transform .2s ease;
}
.toast.show{
  opacity:1;
  transform:translateY(0) scale(1);
}
.toast.leaving{
  opacity:0;
  transform:translateY(-8px) scale(.97);
}
.toast::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:4px;
  border-radius:14px 0 0 14px;
  background:#ffffff;
}
.toast.info::before{background:#e5e5e5;}
.toast.success::before{background:#cfcfcf;}
.toast.warn::before{background:#a8a8a8;}
.toast.error::before{background:#808080;}

.modal{
  position:fixed;
  inset:0;
  display:none;
  z-index:1400;
}
.modal.show{display:block;}
.modal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.45);
  backdrop-filter:none;
  opacity:0;
  transition:opacity .2s ease;
}
.modal.show .modal__backdrop{opacity:1;}
.modal__panel{
  position:absolute;
  inset:auto 0 0 0;
  margin:auto;
  top:15%;
  width:min(520px, 92vw);
  background:#ffffff;
  border:1px solid rgba(0,0,0,.3);
  border-radius:14px;
  box-shadow:none;
  transform:translateY(-8px) scale(.98);
  opacity:0;
  transition:transform .2s ease, opacity .2s ease;
}
.modal.show .modal__panel{
  transform:translateY(0) scale(1);
  opacity:1;
}
.modal__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 14px 8px;
}
.modal__body{
  padding:2px 14px 8px;
  color:var(--text);
}
.modal__footer{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  padding:12px 14px 14px;
}
.modal__x{
  width:34px;
  height:34px;
  border-radius:8px;
  cursor:pointer;
  background:#ffffff;
  color:var(--text);
  border:1px solid rgba(0,0,0,.3);
}
.modal__x:hover{
  background:#000;
  color:#fff;
}

.skeleton{
  position:relative;
  overflow:hidden;
  background:#f3f3f3;
  border:1px solid rgba(0,0,0,.1);
  border-radius:10px;
  box-shadow:none;
}
.skeleton::after{content:none;}

.skel-line{
  height:12px;
  margin:6px 0;
  background:#e1e1e1;
  border-radius:4px;
}
.skel-box{
  height:64px;
  background:#e1e1e1;
  border-radius:8px;
}


.wallet-panel{
  position:relative;
  margin-top:18px;
  padding:16px 14px 18px;
  border-radius:18px;
  background:#ffffff;
  border:1px solid rgba(0,0,0,.3);
  box-shadow:none;
  backdrop-filter:none;
  overflow:hidden;
}

.wallet-panel::before,
.wallet-panel::after{
  content:none;
}

.wallet-panel__header{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:6px;
  z-index:1;
}
.wallet-panel__header h2{
  margin:0;
  font-size:1.05rem;
  letter-spacing:.02em;
}

.wallet-panel__tag{
  font-size:.7rem;
  text-transform:uppercase;
  letter-spacing:.12em;
  padding:3px 9px;
  border-radius:999px;
  border:1px solid #000;
  background:#ffffff;
  color:#000;
}

.wallet-panel__addr{
  position:relative;
  margin:4px 0 10px;
  font-size:.8rem;
  z-index:1;
}
.wallet-panel__addr span{
  color:#000;
}

.wallet-panel__stats{
  position:relative;
  z-index:1;
  margin-top:6px;
}

.wallet-panel .stat{
  background:#ffffff;
  border:1px solid #000;
  box-shadow:none;
}
.wallet-panel .stat .lbl{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:.78rem;
}
.wallet-panel .stat .val.mono{
  font-variant-numeric:tabular-nums;
  font-size:.9rem;
}

.wallet-panel__sub{
  position:relative;
  margin:14px 0 6px;
  font-size:1rem;
  z-index:1;
}
.wallet-panel__hint{
  position:relative;
  margin:14px 0 10px;
  font-size:.86rem;
  z-index:1;
}
.wallet-panel__btn-claim,
.wallet-panel__btn-refresh{
  position:relative;
  z-index:1;
}
.wallet-panel__btn-refresh{
  margin-top:8px;
}

.btn-loading{
  position:relative;
  pointer-events:none;
  opacity:.85;
}
.btn-loading::after{
  content:"";
  position:absolute;
  right:10px;
  width:14px;
  height:14px;
  border-radius:50%;
  border:2px solid rgba(0,0,0,0.4);
  border-top-color:#000;
  animation:spin .6s linear infinite;
}
.site-footer{
  width:100%;
  padding:20px 0;
  margin-top:40px;
  text-align:center;

  background:#ffffff;           
  border-top:1px solid #000000; 
  color:#000000;                
  font-size:.9rem;

  box-shadow:none;
  backdrop-filter:none;
  background-image:none;
}

/* RESPONSIVE */
@media(max-width:768px){
  .wallet{margin-left:unset;}
  .wallet-panel{
    margin-top:20px;
    padding:14px 12px 16px;
  }
}

@media(min-width:960px){
  main{max-width:1200px;}
  .card{padding:18px 20px;}
}

body.white-mode header.app-hd,
body.white-mode .wallet-panel {
  background:#fff !important;
  border:1px solid #000 !important;
  box-shadow:none !important;
  color:#000 !important;
}

/* logo bulat */
body.white-mode .brand::before {
  box-shadow:none !important;
  border:1px solid #000 !important;
}

body.white-mode .brand span {
  background:none !important;
  -webkit-background-clip:border-box !important;
  color:#000 !important;
}

/* pseudo gradient yg bikin bar ungu */
body.white-mode .wallet-panel::before,
body.white-mode .wallet-panel::after {
  content:none !important;
  background:none !important;
}