:root{
  --bg:#f7f6f2;
  --panel:#ffffff;
  --text:#1f2e43;
  --muted:#7d8794;
  --line:#ece7db;
  --gold:#d4a326;
  --gold-dark:#b98915;
  --gold-soft:#fbf4df;
  --navy:#24364f;
  --green:#2f9a68;
  --green-soft:#eaf8f1;
  --red:#d9534f;
  --red-soft:#fdeeee;
  --blue:#345db8;
  --blue-soft:#eef4ff;
  --shadow:0 10px 30px rgba(31,46,67,.08);
}

*{box-sizing:border-box}
html,body{
  margin:0;
  padding:0;
  font-family:Inter, Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
}
body{min-height:100vh}
a{text-decoration:none;color:inherit}

.courses-screen{
  min-height:100vh;
  padding:18px 14px calc(92px + env(safe-area-inset-bottom));
}
.courses-app{
  width:100%;
  max-width:430px;
  margin:0 auto;
}

.top-header{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  margin-bottom:16px;
}
.mini-text{
  margin:0 0 4px;
  font-size:12px;
  color:var(--gold-dark);
  font-weight:700;
}
.top-header h1{
  margin:0 0 4px;
  font-size:28px;
  color:var(--navy);
}
.sub-text{
  margin:0;
  font-size:13px;
  color:var(--muted);
}
.profile-badge{
  width:52px;
  height:52px;
  border-radius:18px;
  border:none;
  background:linear-gradient(180deg,var(--gold),var(--gold-dark));
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  font-size:20px;
  box-shadow:var(--shadow);
}

.summary-strip{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  margin-bottom:14px;
}
.summary-card{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:18px;
  padding:14px 12px;
  box-shadow:var(--shadow);
  text-align:center;
}
.summary-card p{
  margin:0 0 8px;
  color:var(--muted);
  font-size:12px;
}
.summary-card h3{
  margin:0;
  color:var(--navy);
  font-size:22px;
}

.filter-row{
  display:flex;
  gap:8px;
  overflow:auto;
  padding-bottom:4px;
  margin-bottom:14px;
}
.filter-row::-webkit-scrollbar{display:none}
.filter-chip{
  border:1px solid var(--line);
  background:#fff;
  color:var(--navy);
  border-radius:999px;
  padding:10px 14px;
  font-size:12px;
  font-weight:800;
  white-space:nowrap;
  cursor:pointer;
}
.filter-chip.active{
  background:var(--gold-soft);
  color:var(--gold-dark);
  border-color:#efdfb0;
}

.courses-list{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.course-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:22px;
  padding:14px;
  box-shadow:var(--shadow);
}
.course-head{
  display:flex;
  justify-content:space-between;
  gap:10px;
  margin-bottom:12px;
}
.course-left{
  display:flex;
  gap:12px;
  align-items:flex-start;
}
.course-icon{
  width:50px;
  height:50px;
  border-radius:16px;
  background:var(--gold-soft);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:24px;
  flex-shrink:0;
}
.course-title{
  margin:0 0 4px;
  font-size:16px;
  color:var(--navy);
  line-height:1.3;
}
.course-meta{
  margin:0;
  font-size:12px;
  color:var(--muted);
}
.course-status{
  border-radius:999px;
  padding:7px 10px;
  font-size:11px;
  font-weight:800;
  white-space:nowrap;
}
.status-active{
  background:var(--green-soft);
  color:var(--green);
}
.status-completed{
  background:var(--blue-soft);
  color:var(--blue);
}
.status-pending{
  background:var(--red-soft);
  color:var(--red);
}

.fee-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:10px 0 8px;
  font-size:12px;
  color:var(--muted);
}

.progress-meta{
  display:flex;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
  color:var(--muted);
  font-size:12px;
}
.progress-track{
  width:100%;
  height:10px;
  background:#eee7d7;
  border-radius:999px;
  overflow:hidden;
  margin-bottom:12px;
}
.progress-fill{
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,var(--gold),var(--gold-dark));
}

.course-actions{
  display:flex;
  gap:10px;
}
.btn{
  height:44px;
  border-radius:14px;
  font-weight:800;
  cursor:pointer;
}
.btn-outline{
  flex:1;
  border:1px solid var(--line);
  background:#fff;
  color:var(--navy);
}
.btn-icon{
  width:48px;
  border:none;
  background:linear-gradient(180deg,var(--gold),var(--gold-dark));
  color:#fff;
  font-size:18px;
  box-shadow:0 10px 22px rgba(185,137,21,.18);
}

.empty-state{
  background:#fff;
  border:1px solid var(--line);
  border-radius:20px;
  padding:22px 16px;
  text-align:center;
  box-shadow:var(--shadow);
}

.empty-state h4{
  margin:0 0 6px;
  color:var(--navy);
}

.empty-state p{
  margin:0;
  color:var(--muted);
  font-size:13px;
}

.bottom-nav{
  position:fixed;
  left:50%;
  transform:translateX(-50%);
  bottom:0;
  width:100%;
  max-width:430px;
  background:#fff;
  border-top:1px solid var(--line);
  display:grid;
  grid-template-columns:repeat(5,1fr);
  padding:10px 8px calc(10px + env(safe-area-inset-bottom));
  box-shadow:0 -8px 24px rgba(31,46,67,.06);
}
.nav-item{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  color:var(--muted);
}
.nav-item span{font-size:20px}
.nav-item small{
  font-size:11px;
  font-weight:700;
}
.nav-item.active{
  color:var(--gold-dark);
}