: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;
  --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}
button,input{font-family:inherit}

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

.top-header{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  margin-bottom:18px;
}
.mini-text{
  margin:0 0 4px;
  font-size:12px;
  color:var(--gold-dark);
  font-weight:800;
  letter-spacing:.03em;
}
.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:none;
  border-radius:18px;
  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);
}

.search-box-wrap{
  margin-bottom:14px;
}
.search-box{
  height:54px;
  display:flex;
  align-items:center;
  gap:10px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  padding:0 16px;
  box-shadow:var(--shadow);
}
.search-icon{
  font-size:18px;
  color:var(--muted);
}
.search-box input{
  flex:1;
  height:100%;
  border:none;
  outline:none;
  font-size:15px;
  background:transparent;
  color:var(--text);
}

.filter-section{
  margin-bottom:16px;
}
.filter-row{
  display:flex;
  gap:8px;
  overflow:auto;
  padding-bottom:4px;
  margin-bottom:10px;
  scrollbar-width:none;
}
.filter-row::-webkit-scrollbar{display:none}
.filter-chip{
  border:1px solid var(--line);
  background:#fff;
  color:var(--text);
  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-grid{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.course-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:24px;
  padding:14px;
  box-shadow:var(--shadow);
}
.course-top{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.course-left{
  display:flex;
  gap:12px;
  flex:1;
  min-width:0;
}
.course-icon{
  width:58px;
  height:58px;
  min-width:58px;
  border-radius:18px;
  background:var(--gold-soft);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:26px;
}
.course-copy{
  min-width:0;
  flex:1;
}
.course-title{
  margin:0 0 5px;
  font-size:18px;
  line-height:1.35;
  color:var(--navy);
}
.course-meta{
  margin:0;
  font-size:12px;
  color:var(--muted);
}
.course-badge{
  height:max-content;
  border-radius:999px;
  padding:7px 10px;
  font-size:11px;
  font-weight:800;
  white-space:nowrap;
  background:var(--green-soft);
  color:var(--green);
}

.course-desc{
  margin:0 0 12px;
  font-size:13px;
  color:var(--muted);
  line-height:1.55;
}

.course-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.course-price{
  display:flex;
  flex-direction:column;
  gap:3px;
}
.course-price strong{
  font-size:20px;
  color:var(--gold-dark);
}
.course-price span{
  font-size:12px;
  color:var(--muted);
}
.course-actions{
  display:flex;
  gap:10px;
}
.btn{
  height:46px;
  border-radius:14px;
  font-weight:800;
  cursor:pointer;
  font-size:14px;
  border:none;
}
.btn-outline{
  background:#fff;
  color:var(--text);
  border:1px solid var(--line);
  padding:0 16px;
}
.btn-primary{
  background:linear-gradient(180deg,var(--gold),var(--gold-dark));
  color:#fff;
  padding:0 16px;
  box-shadow:0 10px 22px rgba(185,137,21,.18);
}

.empty-state{
  background:#fff;
  border:1px solid var(--line);
  border-radius:24px;
  padding:22px;
  box-shadow:var(--shadow);
}
.empty-state h4{
  margin:0 0 6px;
  font-size:18px;
  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)}