*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:Arial, Helvetica, sans-serif;
}

body{
  background:#050816;
  color:white;
  min-height:100vh;
  overflow-x:hidden;
}

/* SIDEBAR */

.sidebar{
  width:250px;
  height:100vh;

  background:#0b1020;

  padding:30px 20px;

  border-right:1px solid rgba(255,255,255,0.05);

  position:fixed;
  top:0;
  left:0;

  display:flex;
  flex-direction:column;
  justify-content:space-between;

  z-index:100;
}

.logo h2{
  color:#32d583;
  margin-bottom:5px;
}

.logo span{
  color:#999;
  font-size:14px;
}

nav{
  margin-top:40px;
}

.nav-link{
  display:block;
  text-decoration:none;
  color:#aaa;
  padding:15px;
  border-radius:12px;
  margin-bottom:10px;
  transition:0.3s;
}

.nav-link:hover,
.nav-link.active{
  background:#111827;
  color:#32d583;
}

.developer-credit{
  color:#666;
  font-size:14px;
}

/* MAIN */

.main-content{
  margin-left:250px;

  width:calc(100% - 250px);

  min-height:100vh;

  padding:35px;

  display:flex;
  flex-direction:column;
  gap:30px;
}

.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
}

.topbar p{
  color:#777;
  margin-top:5px;
}

.profile-mini{
  display:flex;
  align-items:center;
}

.profile-mini img{
  width:50px;
  height:50px;
  border-radius:50%;
}

/* CARDS */

.balance-grid{
  display:grid;

  grid-template-columns:
  repeat(auto-fit,minmax(260px,1fr));

  gap:20px;
}

.card{
  background:#0f172a;

  padding:25px;

  border-radius:22px;

  border:1px solid rgba(255,255,255,0.05);

  transition:0.3s;

  box-shadow:
  0 10px 30px rgba(0,0,0,0.3);
}

.card:hover{
  transform:translateY(-5px);
}

.card h3{
  color:#aaa;
  margin-bottom:15px;
}

.card h2{
  margin-bottom:10px;
}

.balance-card{
  border-left:4px solid #32d583;
}

.income-card{
  border-left:4px solid #0ea5e9;
}

.expense-card{
  border-left:4px solid #ef4444;
}

/* QUICK ACTIONS */

.quick-actions{
  display:flex;
  gap:20px;
  flex-wrap:wrap;
  margin-top:-10px;
}

.action-btn{
  min-width:180px;
  height:60px;

  background:#32d583;

  color:black;

  border:none;

  border-radius:16px;

  font-size:18px;

  font-weight:bold;

  cursor:pointer;

  transition:0.3s;
}

.action-btn:hover{
  transform:translateY(-3px);
}

/* CHARTS */

.charts-grid{
  display:grid;

  grid-template-columns:
  repeat(auto-fit,minmax(350px,1fr));

  gap:20px;
}

.chart-card{
  min-height:350px;
}

canvas{
  width:100% !important;
  height:300px !important;
}

/* TABLE */

.transactions-section{
  width:100%;
}

.table-wrapper{
  overflow-x:auto;
}

table{
  width:100%;
  border-collapse:collapse;
}

table th,
table td{
  padding:18px;
  text-align:left;
}

table th{
  color:#888;
}

table tr{
  border-bottom:1px solid rgba(255,255,255,0.05);
}

.success{
  color:#32d583;
}

.pending{
  color:#f59e0b;
}

/* WALLET */

.wallet-grid{
  display:grid;

  grid-template-columns:
  repeat(auto-fit,minmax(350px,1fr));

  gap:20px;
}

.wallet-card form{
  display:flex;
  flex-direction:column;
  gap:15px;
}

.wallet-card input,
.wallet-card select{
  background:#111827;
  border:none;
  padding:15px;
  border-radius:12px;
  color:white;
  outline:none;
}

.wallet-card button{
  background:#32d583;
  border:none;
  padding:15px;
  border-radius:12px;
  cursor:pointer;
  font-weight:bold;
  transition:0.3s;
}

.wallet-card button:hover{
  transform:translateY(-3px);
}

.receive-box{
  background:#111827;
  padding:20px;
  border-radius:15px;
  margin-top:20px;
}

/* PROFILE */

.profile-box{
  display:flex;
  align-items:center;
  gap:25px;
}

.profile-box img{
  width:90px;
  height:90px;
  border-radius:50%;
}

.security-tags{
  display:flex;
  gap:10px;
  margin-top:10px;
  flex-wrap:wrap;
}

.security-tags span{
  background:#111827;
  padding:8px 12px;
  border-radius:30px;
  font-size:13px;
}

/* AUTH */

.auth-container{
  position:fixed;
  inset:0;

  background:
  linear-gradient(
    135deg,
    #050816,
    #0b1020
  );

  display:flex;
  justify-content:center;
  align-items:center;

  padding:20px;

  z-index:999;
}

.auth-card{
  width:100%;
  max-width:430px;

  background:#0f172a;

  padding:40px;

  border-radius:25px;

  border:1px solid rgba(255,255,255,0.05);

  animation:fadeIn 0.5s ease;
}

.auth-header{
  text-align:center;
  margin-bottom:30px;
}

.auth-header h1{
  color:#32d583;
  margin-bottom:10px;
}

.auth-header p{
  color:#888;
}

.input-group{
  display:flex;
  flex-direction:column;
  margin-bottom:20px;
}

.input-group label{
  margin-bottom:10px;
  color:#aaa;
}

.input-group input{
  background:#111827;
  border:none;
  padding:16px;
  border-radius:14px;
  color:white;
  outline:none;
}

.auth-btn{
  width:100%;
  border:none;
  background:#32d583;
  padding:16px;
  border-radius:14px;
  font-weight:bold;
  cursor:pointer;
  transition:0.3s;
}

.auth-btn:hover{
  transform:translateY(-3px);
}

.auth-switch{
  text-align:center;
  margin-top:20px;
  color:#888;
}

.auth-switch span{
  color:#32d583;
  cursor:pointer;
  font-weight:bold;
}

.hidden{
  display:none;
}

/* PAGE SECTION */

.page-section{
  display:none;
  width:100%;
}

.page-section.active-section{
  display:block;
}

/* LOGOUT BUTTON */

.logout-btn{
  background:#ef4444;
  color:white;
  border:none;
  padding:12px 18px;
  border-radius:12px;
  cursor:pointer;
  font-weight:bold;
  margin-right:15px;
  transition:0.3s;
}

.logout-btn:hover{
  transform:translateY(-3px);
  opacity:0.9;
}

/* ACCOUNT NAME */

.account-name-box{
  background:#111827;
  padding:15px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.05);
}

.account-name-box span{
  color:#888;
  font-size:14px;
}

.account-name-box h3{
  margin-top:8px;
  color:#32d583;
}

.bank-note{
  color:#777;
  margin-top:-8px;
  display:block;
  margin-bottom:10px;
}

/* BILL MODAL */

.bill-modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.7);

  display:flex;
  justify-content:center;
  align-items:center;

  z-index:9999;
}

.bill-modal.hidden{
  display:none;
}

.bill-card{
  width:100%;
  max-width:420px;

  background:#0f172a;

  padding:30px;

  border-radius:25px;

  border:1px solid rgba(255,255,255,0.05);
}

.bill-header{
  display:flex;
  justify-content:space-between;
  align-items:center;

  margin-bottom:25px;
}

.bill-header button{
  background:none;
  border:none;

  color:white;

  font-size:22px;

  cursor:pointer;
}

#billForm{
  display:flex;
  flex-direction:column;
  gap:15px;
}

#billForm select,
#billForm input{
  background:#111827;

  border:none;

  padding:15px;

  border-radius:14px;

  color:white;
}

#billForm button{
  background:#32d583;

  border:none;

  padding:15px;

  border-radius:14px;

  font-weight:bold;

  cursor:pointer;

  transition:0.3s;
}

#billForm button:hover{
  transform:translateY(-3px);
}

/* VIRTUAL CARD WRAPPER */

.virtual-card-wrapper{
  width:100%;
  margin-top:30px;

  display:flex;
  justify-content:flex-start;
}

/* CARD SECTION */

.virtual-card-section{
  width:100%;
  max-width:540px;
}

/* CARD */

.virtual-card{

  width:100%;
  height:300px;

  border-radius:30px;

  padding:30px;

  position:relative;

  overflow:hidden;

  display:flex;
  flex-direction:column;
  justify-content:space-between;

  background:
  linear-gradient(
    135deg,
    #111827,
    #1e293b,
    #32d583
  );

  box-shadow:
  0 20px 50px rgba(0,0,0,0.35);

}

.virtual-card::before{

  content:"";

  position:absolute;

  width:260px;
  height:260px;

  border-radius:50%;

  background:
  rgba(255,255,255,0.08);

  top:-120px;
  right:-90px;

}

/* TOP */

.card-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.card-top h3{
  color:white;
  font-size:20px;
}

.card-top span{
  font-size:28px;
  font-weight:bold;
}

/* CHIP */

.card-chip{

  width:75px;
  height:55px;

  border-radius:14px;

  background:
  linear-gradient(
    135deg,
    #f5d061,
    #cfa300
  );

}

/* NUMBER */

.card-number{

  font-size:30px;

  letter-spacing:3px;

  word-spacing:6px;

  line-height:1.5;
}

/* BOTTOM */

.card-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.card-bottom small{
  color:#d1d5db;
  font-size:13px;
}

.card-bottom h4{
  margin-top:5px;
  font-size:18px;
}

/* ACTIONS */

.card-actions{
  display:flex;
  gap:15px;
  margin-top:20px;
  flex-wrap:wrap;
}

.card-actions button{

  flex:1;

  min-width:180px;

  background:#111827;

  color:white;

  border:none;

  padding:16px 20px;

  border-radius:14px;

  cursor:pointer;

  font-weight:bold;

  transition:0.3s;
}

.card-actions button:hover{
  transform:translateY(-3px);
}

/* ANIMATION */

@keyframes fadeIn{

  from{
    opacity:0;
    transform:translateY(20px);
  }

  to{
    opacity:1;
    transform:translateY(0);
  }

}

/* RESPONSIVE */

@media(max-width:900px){

  .sidebar{
    position:relative;

    width:100%;
    height:auto;

    flex-direction:row;
    align-items:center;

    overflow-x:auto;
  }

  nav{
    display:flex;
    margin-top:0;
    gap:10px;
  }

  .main-content{
    margin-left:0;
    width:100%;
  }

}

@media(max-width:600px){

  .topbar{
    flex-direction:column;
    align-items:flex-start;
    gap:15px;
  }

  .profile-box{
    flex-direction:column;
    text-align:center;
  }

  .quick-actions{
    flex-wrap:wrap;
  }

  .virtual-card-section{
    max-width:100%;
  }

  .virtual-card{
    height:260px;
    padding:22px;
  }

  .card-number{
    font-size:22px;
  }

  .card-top span{
    font-size:22px;
  }

}