  :root{
    --bg1:#8b5cf6; /* ungu */
    --bg2:#06b6d4; /* cyan */
    --card:#ffffffcc;
    --cardSolid:#ffffff;
    --text:#0f172a;
    --muted:#64748b;
    --line:#e2e8f0;
    --input:#eaf2ff;
    --shadow: 0 18px 45px rgba(2,6,23,.18);
    --radius: 26px;
  }

  *{box-sizing:border-box}
  body{
    margin:0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu;
    color: var(--text);
    min-height:100vh;
    background: radial-gradient(1200px 600px at 15% 5%, rgba(255,255,255,.45), transparent 45%),
                linear-gradient(135deg, var(--bg1), var(--bg2));
  }

  .hidden{display:none !important;}

  /* ===== LOGIN PAGE (match screenshot style) ===== */
  .authWrap{
    min-height:100vh;
    padding:24px 16px;
    display:grid;
    place-items:center;
  }

  .authCard{
    width:min(560px, 100%);
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.55);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow:hidden;
  }

  .authHead{
    padding:22px 22px 16px;
  }

  .headRow{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:12px;
  }

  .authHead h2{
    margin:0;
    font-size:26px;
    letter-spacing:-.02em;
  }

  .version{
    font-size:12px;
    font-weight:900;
    color:#475569;
    padding-top:8px;
  }

  .sub{
    margin:6px 0 0;
    color: var(--muted);
    font-weight:600;
    line-height:1.35;
  }

  .tabs{
    margin-top:16px;
    background:#f8fafc;
    border:1px solid var(--line);
    border-radius:18px;
    padding:6px;
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap:6px;
  }

  .tab{
    appearance:none;
    border:0;
    border-radius:14px;
    padding:12px 10px;
    font-weight:900;
    cursor:pointer;
    color:#334155;
    background:transparent;
  }

  .tab.active{
    background:#ffffff;
    box-shadow: 0 8px 18px rgba(2,6,23,.08);
  }

  .authBody{
    border-top:1px solid var(--line);
    padding:18px 22px 22px;
    background: rgba(255,255,255,.88);
  }

  .field{
    margin:14px 0 0;
  }

  label{
    display:block;
    font-weight:900;
    margin-bottom:10px;
    color:#1e293b;
  }

  .input{
    width:100%;
    border:1px solid rgba(148,163,184,.35);
    background: var(--input);
    padding:16px 16px;
    border-radius:18px;
    font-size:16px;
    outline:none;
    transition:.15s ease;
  }

  .input:focus{
    border-color: rgba(37,99,235,.35);
    box-shadow: 0 0 0 5px rgba(59,130,246,.15);
    background:#eef5ff;
  }

  .btnPrimary{
    margin-top:16px;
    width:100%;
    border:0;
    cursor:pointer;
    padding:15px 16px;
    border-radius:18px;
    font-weight:950;
    font-size:16px;
    color:#fff;
    background: linear-gradient(90deg, #6d28d9, #2563eb, #06b6d4);
    box-shadow: 0 14px 26px rgba(37,99,235,.22);
  }
  .btnPrimary:active{transform: translateY(1px);}

  .dividerRow{
    display:flex;
    align-items:center;
    gap:14px;
    margin:16px 0;
    color:#94a3b8;
    font-weight:800;
  }
  .dividerRow::before,
  .dividerRow::after{
    content:"";
    flex:1;
    height:1px;
    background: var(--line);
  }

  .btnGoogle{
    width:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    border:1px solid var(--line);
    background:#fff;
    cursor:pointer;
    padding:14px 16px;
    border-radius:18px;
    font-weight:900;
    font-size:16px;
    box-shadow: 0 10px 20px rgba(2,6,23,.05);
  }

  .smallRow{
    margin-top:16px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    font-size:14px;
    color:#64748b;
  }
  .smallRow a{
    color:#6d28d9;
    font-weight:900;
    text-decoration:none;
  }
  .smallRow a:hover{text-decoration:underline;}

  .foot{
    margin-top:14px;
    font-size:13px;
    color:#64748b;
    line-height:1.45;
  }

  .msg{
    margin-top:14px;
    font-weight:900;
    border-radius:14px;
    padding:12px 12px;
    display:none;
  }
  .msg.show{display:block;}
  .msg.ok{background:#dcfce7;color:#166534;}
  .msg.err{background:#fee2e2;color:#b91c1c;}

  /* ===== APP PAGE ===== */
  .appWrap{
    min-height:100vh;
    background:#f1f5f9;
  }

  .topbar{
    position:fixed;
    top:0;
    z-index:50;
    display:flex;
    align-items:center;
    width:100%;
    justify-content:space-between;
    padding:1px 6px;
    background:#ffffff;
    border-bottom:1px solid var(--line);
  }

  .brand{
    display:flex;
    gap:10px;
    align-items:center;
    font-weight:950;
  }
  .brand .logo{
    width:36px;height:36px;border-radius:12px;
    display:grid;place-items:center;
    background: linear-gradient(135deg, #6d28d9, #06b6d4);
    color:#fff;
  }

  .btnLogout{
    border:none;
    background:#fee2e2;
    color:#b91c1c;
    padding:9px 12px;
    border-radius:12px;
    cursor:pointer;
    font-weight:950;
  }
  .btnLogout:hover{background:#fecaca;}

  .container{
    padding:18px;
    padding-bottom:90px;
  }

  .card{
    background:#fff;
    border-radius:18px;
    padding:18px;
    box-shadow: 0 10px 26px rgba(2,6,23,.08);
    margin-bottom:14px;
  }

  .bottomNav{
    position:fixed;
    bottom:0; left:0; right:0;
    height:72px;
    background:#fff;
    border-top:1px solid var(--line);
    display:flex;
    justify-content:space-around;
    align-items:center;
    z-index:60;
  }
  .navItem{
    flex:1;
    text-align:center;
    color:#64748b;
    font-size:12px;
    cursor:pointer;
    font-weight:800;
  }
  .navItem i{display:block;font-size:20px;margin-bottom:4px;}
  .navItem.active{color:#2563eb;font-weight:950;}

  @media (min-width:768px){
    .bottomNav{
      max-width:520px;
      margin:auto;
      left:0; right:0;
      border-radius:18px 18px 0 0;
      box-shadow: 0 -10px 20px rgba(2,6,23,.06);
    }
  }


.topbarSide{
  height:56px;
  background:#0f172a;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 16px;
}

.menu-btn{
  background:none;
  border:none;
  color:black;
  font-size:20px;
}

/* Overlay */
.overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.4);
  opacity:0;
  pointer-events:none;
  transition:.3s;
}

/* Drawer */
.drawer{
  position:fixed;
  top:0;
  right:-320px;
  width:250px;
  height:100%;
  background:#fff;
  box-shadow:-10px 0 30px rgba(0,0,0,.2);
  transition:.35s;
  overflow-y:auto;
  z-index: 1010;
}

/* ACTIVE */
.drawer.active{right:0}
.overlay.active{opacity:1;pointer-events:auto}

/* Profile */
.profile{
  display:flex;
  align-items:center;
  gap:12px;
  padding:20px;
}
.profile img{
  width:50px;
  height:50px;
  border-radius:50%;
}
.profile .name{font-weight:700}
.profile .role{font-size:13px;color:#64748b}

/* Upgrade */
.upgrade{
  background:#e0f2fe;
  color:#0369a1;
  padding:12px 16px;
  font-weight:600;
  margin:0 16px 12px;
  border-radius:10px;
  text-align:center;
}

/* Menu */
.menu{
  padding:0 8px 20px;
}
.menu a{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 16px;
  color:#0f172a;
  text-decoration:none;
  border-radius:10px;
  position:relative;
}
.menu a:hover{
  background:#f1f5f9;
}
.menu i{
  width:20px;
  color:#0ea5e9;
}



/* Wallet Button */
.wallet-btn{
  width:calc(100% - 32px);
  margin:12px 16px;
  padding:12px;
  border-radius:12px;
  border:1.5px solid #0ea5e9;
  background:white;
  color:#0ea5e9;
  font-weight:700;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}