/* ======================================================
   RESET & BASE
====================================================== */
*{
  box-sizing:border-box;
  margin:0;
  padding:0;
}

body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  background:#f1f5f9;
  color:#0f172a;
}

a{text-decoration:none;color:inherit}
img{max-width:100%}
input,button{font-family:inherit}

/* ======================================================
   APP HEADER (TOP BAR)
====================================================== */
.app-header{
  position:sticky;
  top:0;
  z-index:50;
  height:56px;
  background:linear-gradient(135deg,#1e5bbf,#0b3c91);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 14px;
  color:#fff;
}

.app-header .left,
.app-header .right{
  display:flex;
  align-items:center;
  gap:12px;
}

.app-header i{font-size:18px}

.app-header h1{
  font-size:16px;
  font-weight:700;
}

/* ======================================================
   DASHBOARD TOP (BLUE CARD)
====================================================== */
.dashboard-top{
  background:linear-gradient(135deg,#1e5bbf,#0b3c91);
  color:#fff;
  padding:18px 16px 72px;
  border-bottom-left-radius:26px;
  border-bottom-right-radius:26px;
}

.dashboard-top small{
  font-size:12px;
  opacity:.9;
}

.dashboard-top h2{
  margin:6px 0 10px;
  font-size:26px;
  font-weight:800;
}

.profit-row{
  display:flex;
  justify-content:space-between;
  font-size:13px;
  margin-bottom:14px;
}

/* ======================================================
   DASHBOARD ACTION BUTTON
====================================================== */
.dashboard-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.dashboard-actions a{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:12px;
  font-size:13px;
  font-weight:700;
  border-radius:14px;
  color:#fff;
}

.btn-deposit{background:#ef4444}
.btn-withdraw{background:#facc15;color:#1f2937}

/* ======================================================
   CONTENT & CARD
====================================================== */
.container{
  padding:0 16px 90px;
}

.dashboard-content{
  margin-top:-48px;
}

.card{
  background:#fff;
  border-radius:18px;
  padding:14px;
  box-shadow:0 8px 24px rgba(0,0,0,.08);
  margin-bottom:14px;
}

.card-title{
  font-size:13px;
  font-weight:700;
  color:#2563eb;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.card-row{
  display:flex;
  justify-content:space-between;
  font-size:13px;
  margin-top:10px;
}

.card-row strong{
  font-size:14px;
}

/* ======================================================
   PLAN / PACKAGE CARD
====================================================== */
.plan-card{
  border-radius:18px;
  overflow:hidden;
  color:#fff;
  margin-bottom:16px;
  box-shadow:0 10px 26px rgba(0,0,0,.18);
}

.plan-top{
  padding:14px;
}

.plan-top h3{
  font-size:16px;
  font-weight:800;
}

.plan-top small{
  font-size:12px;
  opacity:.9;
}

.plan-body{
  padding:14px;
  background:rgba(255,255,255,.15);
}

.plan-body p{
  font-size:13px;
  margin-bottom:6px;
}

.plan-body strong{
  font-size:14px;
}

.plan-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin-top:10px;
  padding:12px;
  background:#fff;
  color:#0f172a;
  border-radius:14px;
  font-weight:700;
  font-size:13px;
}

/* PLAN COLORS */
.plan-silver{background:linear-gradient(135deg,#475569,#1e293b)}
.plan-gold{background:linear-gradient(135deg,#facc15,#ca8a04)}
.plan-platinum{background:linear-gradient(135deg,#38bdf8,#1d4ed8)}

/* ======================================================
   FORM (DEPOSIT / WITHDRAW)
====================================================== */
.form-group{
  margin-bottom:14px;
}

.form-group label{
  font-size:12px;
  font-weight:700;
  color:#475569;
  margin-bottom:6px;
  display:block;
}

.input-box{
  display:flex;
  align-items:center;
  gap:10px;
  padding:14px;
  border-radius:16px;
  background:#f8fafc;
  border:1.5px solid #e5e7eb;
}

.input-box input{
  border:none;
  outline:none;
  background:transparent;
  width:100%;
  font-size:14px;
}

.btn-primary{
  width:100%;
  padding:14px;
  border-radius:16px;
  background:linear-gradient(135deg,#2563eb,#1e40af);
  color:#fff;
  font-weight:800;
  border:none;
  margin-top:10px;
}

/* ======================================================
   TRANSACTION / HISTORY
====================================================== */
.tabs{
  display:flex;
  gap:6px;
  margin-bottom:12px;
}

.tab{
  padding:8px 12px;
  font-size:12px;
  border-radius:10px;
  background:#e5e7eb;
  font-weight:700;
}

.tab.active{
  background:#2563eb;
  color:#fff;
}

.tx-card{
  background:#fff;
  border-radius:16px;
  padding:12px;
  box-shadow:0 6px 18px rgba(0,0,0,.08);
  margin-bottom:10px;
}

.tx-card .title{
  font-size:13px;
  font-weight:700;
}

.tx-card small{
  font-size:11px;
  color:#64748b;
}

.tx-plus{color:#16a34a;font-weight:800}
.tx-minus{color:#dc2626;font-weight:800}

/* ======================================================
   PROFILE MENU
====================================================== */
.profile-top{
  background:linear-gradient(135deg,#1e5bbf,#0b3c91);
  color:#fff;
  padding:26px 16px 60px;
  border-bottom-left-radius:26px;
  border-bottom-right-radius:26px;
  text-align:center;
}

.profile-top h2{
  font-size:18px;
  margin-top:8px;
}

.profile-menu{
  margin-top:-40px;
  padding:0 16px 90px;
}

.menu-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:#fff;
  padding:14px;
  border-radius:16px;
  box-shadow:0 6px 18px rgba(0,0,0,.08);
  margin-bottom:10px;
  font-size:14px;
}

.menu-item i{
  color:#2563eb;
}

/* ======================================================
   BOTTOM NAVIGATION
====================================================== */
.bottom-nav{
  position:fixed;
  bottom:0;
  left:0;
  right:0;
  height:64px;
  background:#fff;
  display:flex;
  justify-content:space-around;
  align-items:center;
  box-shadow:0 -6px 20px rgba(0,0,0,.12);
  z-index:60;
}

.bottom-nav a{
  display:flex;
  flex-direction:column;
  align-items:center;
  font-size:11px;
  color:#64748b;
}

.bottom-nav a i{
  font-size:18px;
  margin-bottom:3px;
}

.bottom-nav a.active{
  color:#2563eb;
}

/* ======================================================
   AUTH (LOGIN / REGISTER)
====================================================== */
body.auth-page{
  min-height:100vh;
  background:radial-gradient(circle at top,#1e3a8a,#020617);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:16px;
}

.auth-box{
  width:100%;
  max-width:420px;
  background:rgba(255,255,255,.96);
  border-radius:28px;
  padding:30px 24px;
  box-shadow:0 30px 60px rgba(0,0,0,.35);
}

.auth-logo{
  text-align:center;
  margin-bottom:18px;
}

.auth-logo i{
  font-size:40px;
  color:#22c55e;
}

.auth-logo h2{
  font-size:24px;
  margin-top:8px;
}

.auth-btn{
  width:100%;
  padding:16px;
  border-radius:18px;
  background:linear-gradient(135deg,#22c55e,#16a34a);
  border:none;
  color:#fff;
  font-weight:800;
  margin-top:14px;
}

/* ======================================================
   SAFE MOBILE
====================================================== */
@media(max-width:360px){
  .dashboard-top h2{font-size:22px}
}
