:root{
  --bg:#0b0f14;
  --panel:#0f1621;
  --text:#ffffff;
  --muted:#bfc9d4;
  --line:#1a2635;

  --blue:#1ea7ff;
  --red:#ff004f;
  --glass: rgba(15, 22, 33, .65);

  --btn:#132033;
  --btn2:#0f1928;
  --shadow: 0 14px 40px rgba(0,0,0,.45);

  --radius: 16px;
}

[data-theme="light"]{
  --bg:#f6f8fb;
  --panel:#ffffff;
  --text:#0b0f14;
  --muted:#556170;
  --line:#e8eef6;

  --glass: rgba(255,255,255,.70);
  --shadow: 0 16px 40px rgba(10,20,30,.12);

  --btn:#eef4fb;
  --btn2:#ffffff;
}

*{ margin:0; padding:0; box-sizing:border-box; font-family:'Montserrat', sans-serif; }

body{
  background: var(--bg);
  color: var(--text);
}

.topo{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 18px 32px;
  border-bottom: 1px solid var(--line);
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
}
.logo{
  width:44px; height:44px;
  display:grid; place-items:center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(30,167,255,.25), rgba(255,0,79,.15));
  border: 1px solid rgba(30,167,255,.25);
  font-weight: 900;
  letter-spacing: 1px;
}
.brand-title{ font-size:32px;font-weight:900; letter-spacing: 2px; }
.brand-sub{ font-size:22px; color: var(--muted); margin-top:2px; }

.top-actions{ display:flex; gap:10px; }
.icon-btn{
  width:40px; height:40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--btn2);
  color: var(--text);
  cursor:pointer;
  transition:.25s;
}
.icon-btn:hover{ transform: translateY(-1px); box-shadow: 0 10px 22px rgba(0,0,0,.25); }

.container{ padding: 28px 32px 60px; }

.hero{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:18px;
  padding: 18px 0 22px;
}

.hero-title{
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .5px;
}
.hero-sub{
  margin-top: 6px;
  color: var(--muted);
  max-width: 680px;
  font-size: 13px;
}

.controls{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.search{
  display:flex;
  align-items:center;
  gap:8px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  min-width: 280px;
}
.search-ico{ opacity:.7; }
.search input{
  width:100%;
  border:0;
  outline:0;
  background: transparent;
  color: var(--text);
}

.segmented{
  display:flex;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 14px;
  overflow:hidden;
}
.seg-btn{
  border:0;
  background: transparent;
  color: var(--muted);
  padding: 10px 14px;
  cursor:pointer;
  font-weight: 700;
}
.seg-btn.active{
  color: var(--text);
  background: linear-gradient(135deg, rgba(30,167,255,.20), rgba(255,0,79,.10));
}

.section-title{
  margin: 18px 0 18px;
  color: var(--muted);
  font-weight: 700;
}

.grid{
  display:flex;
  gap:22px;
  flex-wrap:wrap;
}

.card{
  position:relative;
  width: 300px;
  height: 520px;
  border-radius: var(--radius);
  overflow:hidden;
  background: #111;
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: var(--shadow);
  transition: .28s ease;
}
.card:hover{
  transform: translateY(-6px);
  border-color: rgba(30,167,255,.25);
}

.card-bg{
  position:absolute;
  inset:0;
  background-size: cover;
  background-position:center;
  filter: brightness(.55);
  transform: scale(1.02);
}

.card-overlay{
  position:absolute;
  inset:0;
  padding: 18px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,.10));
}

.meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.tag{
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .5px;
  opacity: .9;
}
.tag-bonus{ color: #c6cbd4; }

.chip{
  font-size: 11px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
}
.chip-new{ border-color: rgba(30,167,255,.35); }
.chip-progress{ border-color: rgba(255,0,79,.30); }
.chip-done{ border-color: rgba(120,255,120,.25); }

.title{
  margin-top: 8px;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.08;
  color: var(--blue);
  text-transform: uppercase;
}

.bottom{
  background: var(--glass);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  padding: 14px;
  backdrop-filter: blur(8px);
}

.kpi{
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 10px;
}

.progress-row{
  display:flex;
  justify-content:space-between;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}
.bar{
  height: 10px;
  background: rgba(255,255,255,.12);
  border-radius: 999px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.10);
}
.fill{
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(30,167,255,.95), rgba(255,0,79,.85));
  border-radius: 999px;
  transition: width .35s ease;
}

.cta{
  display:flex;
  gap:10px;
  margin-top: 12px;
}
.btn{
  flex:1;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 900;
  border: 1px solid rgba(255,255,255,.10);
  cursor:pointer;
  transition:.22s;
}
.btn.primary{
  background: linear-gradient(135deg, rgba(30,167,255,.25), rgba(255,0,79,.15));
  color: var(--text);
}
.btn.ghost{
  background: rgba(255,255,255,.06);
  color: var(--text);
}
.btn:hover{ transform: translateY(-1px); }

.underline{
  position:absolute;
  left:0; right:0;
  bottom: 52px;
  height: 3px;
  background: transparent;
}
.card.active .underline{ background: var(--transparent); }

.footer{
  position:absolute;
  left:0; right:0;
  bottom: 14px;
  text-align:center;
  color: rgba(255,255,255,.75);
  font-size: 13px;
}

.hidden{ display:none !important; }

@media (max-width: 980px){
  .hero{ align-items:flex-start; flex-direction:column; }
  .controls{ justify-content:flex-start; }
  .search{ min-width: 100%; }
}
