:root{
  --panel:rgba(255,255,255,.06);
  --gold:#d4af37;
  --green:#22c55e;
  --amber:#f0d78a;
  --blue:#3b82f6;
  --muted:#9aa4b2;
}

/* ================= GLOBAL ================= */

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:Inter,Poppins,system-ui,sans-serif;
}

body{
  background:linear-gradient(135deg,#020617,#0f172a);
  color:#e9f2fb;
  min-height:100vh;
  padding:20px;
}

.container{
  max-width:1200px;
  margin:auto;
}

.hidden{display:none!important;}

/* ================= HEADER ================= */

.header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:30px;
  gap:20px;
  flex-wrap:wrap;
  transition:all .3s ease;
}

.header.shrink{
  padding:10px 0;
  backdrop-filter:blur(12px);
  background:rgba(2,6,23,.85);
  box-shadow:0 10px 25px rgba(0,0,0,.6);
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
}

.small{
  font-size:13px;
  color:var(--muted);
}

.header-actions{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}

/* ================= BUTTONS ================= */

.btn{
  padding:10px 18px;
  border-radius:12px;
  border:none;
  cursor:pointer;
  font-weight:600;
  font-size:14px;
  transition:all .3s ease;
}

.btn:hover{
  transform:translateY(-3px);
}

.btn.gold{
  background:linear-gradient(135deg,#f5d37a,var(--gold));
  color:#000;
  box-shadow:0 4px 14px rgba(212,175,55,.4);
}

.btn.blue{
  background:linear-gradient(135deg,#3b82f6,#2563eb);
  color:#fff;
  box-shadow:0 4px 14px rgba(37,99,235,.4);
}

.btn.red{ background:#dc2626; color:#fff; }
.btn.dark{ background:#334155; color:#fff; }

.btn:disabled{
  opacity:.4;
  cursor:not-allowed;
}

/* ================= BALANCES ================= */

.balance-wrap{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:22px;
  margin:40px 0;
  width:100%;
}

.balance-box{
  position:relative;
  background:linear-gradient(145deg,#0f1c2e,#0c1827);
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  padding:28px;
  text-align:center;
  transition:.35s ease;
  min-height:110px;
}

.balance-box:hover{
  transform:translateY(-6px);
  box-shadow:0 20px 45px rgba(0,0,0,.6);
}

.balance-box .label{
  font-size:13px;
  color:var(--muted);
}

.balance-box .value{
  font-size:26px;
  font-weight:800;
  margin-top:8px;
  color:#f5d37a;
}

.highlight{
  border:1px solid rgba(212,175,55,.6);
  box-shadow:0 0 25px rgba(212,175,55,.25);
}

/* ================= GRID ================= */

.grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,420px);
  gap:20px;
}

.card{
  background:var(--panel);
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  padding:22px;
  backdrop-filter:blur(10px);
}

/* ================= STATUS ================= */

.status{
  padding:6px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
}

.status.pending{
  background:rgba(240,215,138,.15);
  color:var(--amber);
}

.status.approved{
  background:rgba(34,197,94,.15);
  color:var(--green);
}

.status.rejected{
  background:rgba(255,107,107,.15);
  color:#ff6b6b;
}

/* ================= PROGRESS ================= */

.progress-bar{
  width:100%;
  height:28px;
  background:#1e293b;
  border-radius:20px;
  overflow:hidden;
}

.progress-bar div{
  height:100%;
  width:0%;
  background:linear-gradient(90deg,var(--green),#16a34a);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  transition:width .6s ease;
}

/* ================= MODAL ================= */

.modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.65);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:2000;
}

.modal .card{
  max-width:420px;
  width:94%;
}

/* ================= CHAT ================= */

.whatsapp-chat-box{
  position:fixed;
  bottom:20px;
  right:20px;
  width:350px;
  max-width:95%;
  background:#0f172a;
  border-radius:16px;
  box-shadow:0 0 25px rgba(0,0,0,.6);
  display:none;
  flex-direction:column;
  overflow:hidden;
  z-index:3000;
}

.chat-header{
  background:#111827;
  padding:12px;
  display:flex;
  justify-content:space-between;
  font-weight:bold;
}

.chat-body{
  height:320px;
  overflow-y:auto;
  padding:10px;
  background:#020617;
  display:flex;
  flex-direction:column;
}

.chat-msg{
  max-width:75%;
  padding:8px 12px;
  margin-bottom:8px;
  border-radius:14px;
  font-size:14px;
}

.chat-user{
  align-self:flex-end;
  background:var(--gold);
  color:#000;
}

.chat-admin{
  align-self:flex-start;
  background:#1e293b;
}

.chat-footer{
  display:flex;
  padding:10px;
  background:#111827;
  gap:6px;
}

.chat-footer input{
  flex:1;
  padding:8px;
  border-radius:20px;
  border:none;
}

/* ================= FOOTER ================= */

.pro-footer{
  margin-top:60px;
  padding:50px 20px 25px;
  border-top:1px solid #1e293b;
  color:#9aa4b2;
}

.pro-footer-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:30px;
  max-width:1200px;
  margin:auto;
}

.pro-footer-bottom{
  margin-top:40px;
  text-align:center;
  font-size:13px;
  color:#64748b;
  border-top:1px solid #1e293b;
  padding-top:20px;
}

.footer-status{
margin-top:12px;
font-size:13px;
display:flex;
align-items:center;
gap:8px;
color:#22c55e !important;   /* force green */
font-weight:600;
}

.footer-status .dot{
width:10px;
height:10px;
background:#22c55e;
border-radius:50%;
box-shadow:0 0 10px #22c55e;
animation:pulseDot 1.8s infinite;
}

/* =========================
   PROFESSIONAL FOOTER LINKS
   ========================= */

.pro-footer a{
color:#94a3b8;                 /* soft professional gray */
text-decoration:none;
display:inline-block;
margin-bottom:8px;
font-weight:500;
transition:all .25s ease;
position:relative;
}

/* subtle underline animation */
.pro-footer a::after{
content:"";
position:absolute;
left:0;
bottom:-3px;
width:0%;
height:2px;
background:#d4af37;           /* premium gold */
transition:.3s;
}

.pro-footer a:hover{
color:#ffffff;
transform:translateX(4px);
}

.pro-footer a:hover::after{
width:100%;
}

/* ================= RESPONSIVE ================= */

@media(max-width:900px){
  .grid{ grid-template-columns:1fr; }
}

@media(max-width:768px){
  .header{
    flex-direction:column;
    align-items:center;
    text-align:center;
  }

  .header-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
    width:100%;
    max-width:360px;
  }

  .header-actions .btn{
    width:100%;
  }
}
.global-loader{
 position:fixed;
 inset:0;
 background:rgba(0,0,0,0.6);
 display:flex;
 align-items:center;
 justify-content:center;
 z-index:9999;
}

.loader-spinner{
 width:50px;
 height:50px;
 border:5px solid #ddd;
 border-top:5px solid gold;
 border-radius:50%;
 animation:spin 1s linear infinite;
}

@keyframes spin{
 to{ transform:rotate(360deg); }
}

.hidden{
 display:none !important;
}