:root{
  --blue:#0B5ED7;
  --green:#2E8B57;
  --gold:#F2B705;
  --bg:#F7FAFF;
  --card:#FFFFFF;
  --text:#111827;
  --muted:#6B7280;
  --border:#E5E7EB;
  --danger:#DC2626;
  --success:#15803D;
  --shadow:0 12px 30px rgba(17,24,39,.10);
  --radius:18px;
}

*{
  box-sizing:border-box;
}

body{
  margin:0;
  font-family:system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(700px 400px at 20% 10%, rgba(11,94,215,.10), transparent 60%),
    radial-gradient(700px 400px at 80% 90%, rgba(46,139,87,.12), transparent 55%),
    var(--bg);
  color:var(--text);
  min-height:100vh;
}

.container{
  width:100%;
  max-width:1100px;
  margin:0 auto;
  padding:24px;
}

.center-screen{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
}

.grid{
  width:100%;
  max-width:980px;
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:22px;
}

@media (max-width: 860px){
  .grid{
    grid-template-columns:1fr;
  }
}

.hero{
  background:linear-gradient(135deg, rgba(11,94,215,.10), rgba(46,139,87,.10));
  border:1px solid rgba(17,24,39,.06);
  border-radius:var(--radius);
  padding:30px;
  min-height:430px;
  position:relative;
  overflow:hidden;
}

.hero::after{
  content:"";
  position:absolute;
  top:-80px;
  right:-80px;
  width:260px;
  height:260px;
  background:radial-gradient(circle, rgba(242,183,5,.35), transparent 60%);
}

.brand{
  font-size:28px;
  font-weight:900;
  margin:0 0 16px;
}

.brand .blue{ color:var(--blue); }
.brand .green{ color:var(--green); }

.hero h2{
  font-size:34px;
  line-height:1.15;
  margin:18px 0 12px;
}

.hero p{
  color:#374151;
  font-size:16px;
  line-height:1.6;
  max-width:48ch;
}

.features{
  margin-top:22px;
  display:grid;
  gap:12px;
}

.feature{
  display:flex;
  gap:10px;
  align-items:flex-start;
  color:#374151;
}

.dot{
  width:10px;
  height:10px;
  border-radius:999px;
  background:var(--gold);
  margin-top:7px;
  flex:0 0 auto;
}

.card{
  background:var(--card);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  border:1px solid rgba(17,24,39,.06);
  padding:28px;
  min-height:430px;
}

.card h1,
.card h2,
.card h3{
  margin-top:0;
}

.subtitle{
  color:var(--muted);
  margin-bottom:18px;
}

.form-group{
  margin-bottom:14px;
}

label{
  display:block;
  font-weight:700;
  margin-bottom:6px;
}

input{
  width:100%;
  padding:12px 14px;
  border:1px solid var(--border);
  border-radius:14px;
  font-size:15px;
  outline:none;
  background:#fff;
}

input:focus{
  border-color:var(--blue);
  box-shadow:0 0 0 4px rgba(11,94,215,.12);
}

select{
  width:100%;
  padding:12px 14px;
  border:1px solid var(--border);
  border-radius:14px;
  font-size:15px;
  outline:none;
  background:#fff;
}

select:focus{
  border-color:var(--blue);
  box-shadow:0 0 0 4px rgba(11,94,215,.12);
}

button,
.btn{
  display:inline-block;
  width:100%;
  border:none;
  border-radius:14px;
  padding:12px 14px;
  font-size:15px;
  font-weight:800;
  cursor:pointer;
  text-decoration:none;
  text-align:center;
  transition:.18s;
}

.btn-primary{
  background:var(--blue);
  color:#fff;
}

.btn-primary:hover{
  filter:brightness(.96);
}

.btn-secondary{
  background:#fff;
  color:var(--text);
  border:1px solid var(--border);
}

.btn-secondary:hover{
  box-shadow:0 10px 18px rgba(17,24,39,.08);
}

.text-center{
  text-align:center;
}

.mt-12{ margin-top:12px; }
.mt-16{ margin-top:16px; }
.mt-24{ margin-top:24px; }

.alert{
  padding:12px 14px;
  border-radius:14px;
  margin-bottom:16px;
  font-size:14px;
}

.alert-error{
  background:#FEF2F2;
  color:var(--danger);
  border:1px solid #FECACA;
}

.alert-success{
  background:#F0FDF4;
  color:var(--success);
  border:1px solid #BBF7D0;
}

.alert-warning{
  background:#FFFBEB;
  color:var(--warning);
  border:1px solid #FDE68A;
}

.nav{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:24px;
}

.nav a{
  text-decoration:none;
  color:var(--green);
  font-weight:800;
}

.home-card{
  max-width:700px;
  background:#fff;
  padding:24px;
  border-radius:18px;
  border:1px solid rgba(17,24,39,.06);
  box-shadow:var(--shadow);
}

.small{
  font-size:13px;
  color:var(--muted);
}

.dashboard-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));
  gap:16px;
  margin-top:20px;
  margin-bottom:28px;
}

.stat-card{
  background:#fff;
  border:1px solid rgba(17,24,39,.08);
  border-radius:18px;
  padding:18px;
  box-shadow:0 8px 18px rgba(17,24,39,.06);
}

.stat-label{
  font-size:13px;
  color:#6B7280;
  margin-bottom:8px;
}

.stat-value{
  font-size:28px;
  font-weight:900;
  line-height:1;
  color:#111827;
}

.stat-value.green{
  color:#15803D;
}

.stat-value.blue{
  color:#0B5ED7;
}

.stat-value.gold{
  color:#B45309;
}

.section-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}

.section-title h3{
  margin:0;
}

.section-subtitle{
  font-size:13px;
  color:#6B7280;
}

.item-box p{
  margin:6px 0;
}

.badge{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
}

.badge-success{
  background:#DCFCE7;
  color:#166534;
}

.badge-danger{
  background:#FEE2E2;
  color:#991B1B;
}

.badge-neutral{
  background:#E5E7EB;
  color:#374151;
}

.item-actions{
  margin-top:14px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.item-actions .btn{
  width:auto;
  min-width:160px;
}

.page-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  flex-wrap:wrap;
  margin-bottom:10px;
}

.page-header-left h2{
  margin:0 0 6px;
}

.page-header-right{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.empty-state{
  background:#fff;
  border:1px dashed #CBD5E1;
  border-radius:18px;
  padding:22px;
  text-align:center;
  color:#64748B;
}

.racha-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(280px, 1fr));
  gap:18px;
  margin-top:20px;
}

.racha-card{
  background:#fff;
  border:1px solid rgba(17,24,39,.08);
  border-radius:18px;
  padding:20px;
  box-shadow:0 8px 18px rgba(17,24,39,.06);
  display:flex;
  flex-direction:column;
  gap:14px;
}

.racha-card h3{
  margin:0;
  font-size:22px;
}

.racha-card .desc{
  color:#6B7280;
  font-size:14px;
  min-height:40px;
}

.racha-stats{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.racha-stat{
  background:#F8FAFC;
  border:1px solid #E5E7EB;
  border-radius:14px;
  padding:12px;
}

.racha-stat-label{
  font-size:12px;
  color:#6B7280;
  margin-bottom:4px;
}

.racha-stat-value{
  font-size:18px;
  font-weight:800;
  color:#111827;
}

.racha-card-footer{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-top:auto;
  flex-wrap:wrap;
}

.racha-date{
  font-size:12px;
  color:#6B7280;
}

.page-intro{
  color:#6B7280;
  margin-top:6px;
}