/* =========================================================
   GOOGLE FONT
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* =========================================================
   RANCANGIN DASHBOARD FINAL
========================================================= */

body{
  background:
    radial-gradient(
      circle at top,
      rgba(255,149,31,.10),
      transparent 35%
    ),
    radial-gradient(
      circle at bottom,
      rgba(255,149,31,.04),
      transparent 40%
    ),
    #050505;

  color:#fff;

  min-height:100vh;

  font-family:
    'Plus Jakarta Sans',
    sans-serif;

  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;

  overflow-x:hidden;
}

/* =========================================================
   GLOBAL PREMIUM SCROLLBAR
========================================================= */

::-webkit-scrollbar{
  width:8px;
}

::-webkit-scrollbar-track{
  background:#0b0b0b;
}

::-webkit-scrollbar-thumb{
  background:
    linear-gradient(
      180deg,
      #ff951f,
      #ffad4d
    );

  border-radius:999px;
}

/* =========================================================
   SHELL
========================================================= */

.dashboard-shell{
  width:100%;
  max-width:430px;

  margin:auto;

  padding:12px;

  padding-bottom:110px;

  display:flex;
  flex-direction:column;

  gap:16px;
}

/* =========================================================
   TOPBAR
========================================================= */

.dashboard-topbar{
  position:relative;

  overflow:hidden;

  padding:18px 20px;

  border-radius:26px;

  background:
    linear-gradient(
      135deg,
      #ff951f,
      #ffad4d
    );

  border:
    1px solid rgba(255,255,255,.10);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    0 14px 40px rgba(255,149,31,.20);
}

.dashboard-topbar::before{
  content:"";

  position:absolute;

  width:240px;
  height:240px;

  top:-120px;
  right:-120px;

  background:
    radial-gradient(
      circle,
      rgba(255,255,255,.25),
      transparent
    );
}

.dashboard-page-title{
  position:relative;

  z-index:2;

  font-size:24px;

  font-weight:800;

  color:#111;

  letter-spacing:-0.03em;

  line-height:1;
}

.dashboard-page-subtitle{
  position:relative;

  z-index:2;

  margin-top:8px;

  color:rgba(0,0,0,.65);

  font-size:12px;

  font-weight:600;
}

/* =========================================================
   HERO
========================================================= */

.dashboard-hero-card{
  display:grid;

  grid-template-columns:
    minmax(0,1fr)
    120px;

  gap:14px;

  padding:18px;

  border-radius:28px;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.045),
      rgba(255,255,255,.015)
    );

  backdrop-filter:blur(18px);

  border:
    1px solid rgba(255,255,255,.05);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 12px 30px rgba(0,0,0,.22);
}

.hero-title{
  font-size:15px;
  font-weight:700;

  color:#fff;

  letter-spacing:-0.02em;

  margin-bottom:12px;
}

/* =========================================================
   INSIGHT
========================================================= */

.insight-item{
  position:relative;

  overflow:hidden;

  padding:13px 14px;

  border-radius:16px;

  background:
    rgba(255,255,255,.02);

  border:
    1px solid rgba(255,149,31,.08);

  margin-bottom:10px;

  color:rgba(255,255,255,.82);

  font-size:12px;

  line-height:1.6;

  transition:
    transform .2s ease,
    border-color .2s ease,
    background .2s ease;
}

.insight-item:hover{
  transform:translateY(-2px);

  border-color:
    rgba(255,149,31,.20);

  background:
    rgba(255,149,31,.03);
}

/* =========================================================
   STATUS
========================================================= */

.hero-right{
  display:flex;
}

#statusBox{
  width:100%;
}

.live-status{
  width:100%;
  min-height:100%;

  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;

  border-radius:22px;

  border:
    1px solid rgba(255,149,31,.55);

  background:
    linear-gradient(
      145deg,
      rgba(255,149,31,.10),
      rgba(255,149,31,.03)
    );

  color:#ff951f;

  font-weight:700;

  font-size:12px;

  letter-spacing:.14em;

  text-align:center;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 0 24px rgba(255,149,31,.10);

  animation:livePulse 2.4s infinite;
}

.live-status div:last-child{
  margin-top:6px;

  font-size:22px;

  font-weight:800;

  letter-spacing:-0.03em;
}

/* =========================================================
   LIVE ANIMATION
========================================================= */

@keyframes livePulse{

  0%{
    box-shadow:
      0 0 0 rgba(255,149,31,0);
  }

  50%{
    box-shadow:
      0 0 24px rgba(255,149,31,.18);
  }

  100%{
    box-shadow:
      0 0 0 rgba(255,149,31,0);
  }

}

/* =========================================================
   STATS
========================================================= */

.stats-grid{
  display:grid;

  grid-template-columns:
    repeat(2,1fr);

  gap:14px;
}

.stats-card{
  position:relative;

  overflow:hidden;

  min-height:124px;

  padding:18px;

  border-radius:24px;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.045),
      rgba(255,255,255,.015)
    );

  backdrop-filter:blur(16px);

  border:
    1px solid rgba(255,255,255,.05);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 10px 28px rgba(0,0,0,.24);

  transition:
    transform .22s ease,
    border-color .22s ease,
    box-shadow .22s ease;
}

.stats-card:hover{
  transform:translateY(-4px);

  border-color:
    rgba(255,149,31,.18);

  box-shadow:
    0 18px 40px rgba(0,0,0,.30),
    0 0 20px rgba(255,149,31,.08);
}

.stats-card::before{
  content:"";

  position:absolute;

  width:180px;
  height:180px;

  top:-90px;
  right:-90px;

  background:
    radial-gradient(
      circle,
      rgba(255,149,31,.12),
      transparent
    );
}

.stats-label{
  position:relative;

  z-index:2;

  font-size:11px;

  font-weight:600;

  color:rgba(255,255,255,.62);
}

.stats-value{
  position:relative;

  z-index:2;

  margin-top:12px;

  font-size:30px;

  font-weight:800;

  letter-spacing:-0.03em;

  line-height:1;

  color:#fff;
}

.stats-desc{
  position:relative;

  z-index:2;

  margin-top:12px;

  color:rgba(255,255,255,.58);

  font-size:11px;

  line-height:1.5;
}

/* =========================================================
   MAIN GRID
========================================================= */

.dashboard-main-grid{
  display:flex;
  flex-direction:column;
  gap:16px;
}

/* =========================================================
   PANEL
========================================================= */

.dashboard-panel{
  position:relative;

  overflow:hidden;

  padding:20px;

  border-radius:28px;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.045),
      rgba(255,255,255,.015)
    );

  backdrop-filter:blur(18px);

  border:
    1px solid rgba(255,255,255,.05);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 10px 30px rgba(0,0,0,.22);
}

.panel-title{
  position:relative;

  z-index:2;

  font-size:15px;
  font-weight:700;

  letter-spacing:-0.02em;

  margin-bottom:18px;

  color:#fff;
}

/* =========================================================
   CHART
========================================================= */

.chart-panel{
  min-height:330px;

  display:flex;
  flex-direction:column;

  justify-content:flex-start;

  padding:
    18px
    16px
    16px;

  overflow:hidden;
}

.chart-panel::before{
  content:"";

  position:absolute;

  inset:0;

  background:
    radial-gradient(
      circle at top,
      rgba(0,255,204,.04),
      transparent 55%
    );

  pointer-events:none;
}

#chart{
  position:relative;

  z-index:2;

  width:100% !important;

  height:250px !important;

  margin-top:6px;
}

/* =========================================================
   FINANCE
========================================================= */

.finance-panel{
  min-height:300px;
}

.finance-highlight{
  padding:20px;

  border-radius:22px;

  background:
    linear-gradient(
      145deg,
      rgba(255,149,31,.10),
      rgba(255,149,31,.03)
    );

  margin-bottom:16px;

  border:
    1px solid rgba(255,149,31,.08);
}

.finance-label{
  font-size:11px;

  font-weight:600;

  color:rgba(255,255,255,.62);
}

.finance-value{
  margin-top:10px;

  font-size:28px;
  font-weight:800;

  letter-spacing:-0.03em;

  line-height:1.1;

  color:#ff951f;
}

.finance-grid{
  display:grid;

  grid-template-columns:
    repeat(2,1fr);

  gap:12px;

  margin-bottom:18px;
}

.finance-box{
  padding:16px;

  border-radius:18px;

  background:
    rgba(255,255,255,.025);

  border:
    1px solid rgba(255,255,255,.05);
}

.finance-small-label{
  font-size:11px;

  font-weight:600;

  color:rgba(255,255,255,.58);
}

.finance-small-value{
  margin-top:10px;

  font-size:15px;
  font-weight:700;

  line-height:1.4;

  color:#fff;
}

/* =========================================================
   PROGRESS
========================================================= */

.progress{
  width:100%;

  height:10px;

  border-radius:999px;

  background:
    rgba(255,255,255,.06);

  overflow:hidden;
}

.progress-bar{
  height:100%;

  border-radius:999px;

  background:
    linear-gradient(
      90deg,
      #2ecc71,
      #4ade80
    );

  box-shadow:
    0 0 18px rgba(46,204,113,.25);
}

/* =========================================================
   FOOTER
========================================================= */

.footer{
  position:fixed;

  left:50%;
  bottom:18px;

  transform:translateX(-50%);

  width:calc(100% - 24px);
  max-width:410px;

  display:flex;

  gap:12px;

  z-index:9999;
}

.footer button{
  flex:1;

  height:54px;

  border:none;

  border-radius:18px;

  background:
    linear-gradient(
      135deg,
      #ff951f,
      #ffad4d
    );

  backdrop-filter:blur(12px);

  border:
    1px solid rgba(255,255,255,.08);

  color:#fff;

  font-size:13px;
  font-weight:700;

  letter-spacing:-0.01em;

  cursor:pointer;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 10px 24px rgba(255,149,31,.24);

  transition:
    transform .2s ease,
    filter .2s ease;
}

.footer button:hover{
  transform:translateY(-2px);

  filter:brightness(1.04);
}

/* =========================================================
   POPUP
========================================================= */

#asst_wrap{
  position:fixed;
  inset:0;

  display:none;

  z-index:99999;
}

.asst_overlay{
  position:absolute;
  inset:0;

  background:rgba(0,0,0,.7);

  backdrop-filter:blur(6px);
}

.asst_card{
  position:absolute;

  left:50%;
  top:50%;

  transform:
    translate(-50%,-50%);

  width:320px;

  padding:22px;

  border-radius:26px;

  background:
    linear-gradient(
      180deg,
      rgba(30,30,30,.95),
      rgba(18,18,18,.95)
    );

  backdrop-filter:blur(18px);

  border:
    1px solid rgba(255,149,31,.15);

  box-shadow:
    0 20px 50px rgba(0,0,0,.45);
}

.asst_body{
  color:#fff;

  line-height:1.7;

  font-size:13px;
}

.asst_btn{
  width:100%;

  margin-top:18px;

  height:50px;

  border:none;

  border-radius:16px;

  background:
    linear-gradient(
      135deg,
      #ff951f,
      #ffad4d
    );

  color:#fff;

  font-weight:700;

  cursor:pointer;
}

/* =========================================================
   MOBILE
========================================================= */

@media(max-width:480px){

  .dashboard-shell{
    padding:10px;
    padding-bottom:110px;
  }

  .dashboard-hero-card{
    grid-template-columns:
      minmax(0,1fr)
      120px;
  }

  .stats-grid{
    grid-template-columns:1fr 1fr;
  }

  .finance-grid{
    grid-template-columns:1fr 1fr;
  }

}