:root{
  --violet:#574b90;
  --orange:#ff8a3d;
  --bg:#ffffff;
  --soft:#f5f4fa;
  --text:#222;
  --muted:#666;
  --line:#e9e7f2;
  --shadow:0 -8px 30px rgba(0,0,0,0.06);
  --radius:18px;
  --nav-h:88px;
}

*{box-sizing:border-box}
html,body{
  margin:0;
  padding:0;
  background:var(--bg);
  color:var(--text);
  font-family:'Open Sans',sans-serif;
}
body{min-height:100vh}
sup{font-size:60%;vertical-align:super;line-height:0}

.levadis-app{
  max-width:780px;
  margin:0 auto;
  padding:10px 18px calc(var(--nav-h) + 24px);
}

.topbar{
  display:grid;
  grid-template-columns:44px 1fr auto;
  align-items:center;
  gap:10px;
  padding:4px 0 14px;
  position:sticky;
  top:0;
  background:rgba(255,255,255,0.92);
  backdrop-filter:blur(10px);
  z-index:50;
}

.topbar-spacer{
  width:44px;
  height:44px;
}

.back-btn,
.menu-btn,
.drawer-close{
  width:44px;
  height:44px;
  border:1px solid var(--line);
  background:#fff;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--violet);
  text-decoration:none;
  cursor:pointer;
  padding:0;
}

.back-btn svg,
.menu-btn svg{
  width:20px;
  height:20px;
  stroke:currentColor;
  fill:none;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.menu-btn:hover,
.back-btn:hover,
.drawer-close:hover{
  background:var(--soft);
}

.title-wrap{min-width:0}

.brand{
  font-weight:800;
  letter-spacing:2px;
  color:var(--violet);
  font-size:15px;
  line-height:1.1;
}

.page-title{
  margin-top:4px;
  font-size:20px;
  font-weight:800;
  color:var(--text);
  line-height:1.15;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.top-right{
  display:flex;
  align-items:center;
  gap:8px;
}

.user-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:999px;
  background:var(--soft);
  color:var(--violet);
  font-size:13px;
  font-weight:800;
  white-space:nowrap;
  border:1px solid var(--line);
}

.subnav{
  display:flex;
  gap:8px;
  overflow:auto;
  padding:0 0 12px;
  scrollbar-width:none;
}
.subnav::-webkit-scrollbar{display:none}

.subnav a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--violet);
  text-decoration:none;
  font-size:13px;
  font-weight:800;
  white-space:nowrap;
}

.subnav a.is-active{
  background:var(--violet);
  color:#fff;
  border-color:transparent;
}

.app-content{
  display:block;
}

.card{
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:#fff;
  padding:16px;
}
.card + .card{margin-top:14px}

.hero{
  padding:6px 0 4px;
}

.hero h1{
  margin:0;
  font-size:30px;
  line-height:1.12;
  font-weight:800;
  letter-spacing:-0.2px;
}

.hero p{
  margin:10px 0 0;
  color:var(--muted);
  line-height:1.55;
  font-size:15px;
  max-width:46ch;
}

.hero-actions{
  display:flex;
  gap:12px;
  margin-top:12px;
  flex-wrap:wrap;
  align-items:stretch;
}

.btn-primary,
.btn-ghost,
.btn-soft{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:52px;
  min-height:52px;
  padding:0 20px;
  border-radius:999px;
  font-weight:800;
  text-decoration:none;
  cursor:pointer;
  font-size:15px;
  line-height:1;
  box-sizing:border-box;
  white-space:nowrap;
  border:1px solid transparent;
}

.btn-primary{
  background:var(--orange);
  color:#fff;
}

.btn-ghost{
  background:#fff;
  color:var(--violet);
  border-color:var(--line);
}

.btn-soft{
  background:var(--soft);
  color:var(--violet);
  border-color:var(--line);
}

.grid{
  display:grid;
  gap:12px;
  margin-top:14px;
}

.module{
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:#fff;
  padding:16px;
}

.module h3{
  margin:0;
  color:var(--violet);
  font-size:19px;
  letter-spacing:-0.2px;
}

.module p{
  margin:8px 0 0;
  color:var(--muted);
  line-height:1.55;
  font-size:14px;
}

.module a{
  display:inline-block;
  margin-top:10px;
  color:var(--violet);
  font-weight:800;
  text-decoration:none;
}

.mindmoment{
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--soft);
  padding:16px;
}

.mindmoment h4{
  margin:0 0 8px;
  color:var(--violet);
  letter-spacing:2px;
  font-size:13px;
  font-weight:900;
}

.mindmoment p{
  margin:0;
  line-height:1.55;
  font-size:16px;
}

.push-card{
  margin-top:12px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fff;
  padding:14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.push-card .txt{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.push-card .txt strong{
  color:var(--violet);
  font-size:14px;
}

.push-card .txt span{
  color:var(--muted);
  font-size:13px;
  line-height:1.4;
}

.push-card button{
  white-space:nowrap;
  border:none;
  background:var(--violet);
  color:#fff;
  font-weight:900;
  padding:12px 14px;
  border-radius:999px;
  cursor:pointer;
  min-height:44px;
}

.bottom-nav{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  padding:10px 12px calc(10px + env(safe-area-inset-bottom));
  background:rgba(255,255,255,0.94);
  border-top:1px solid var(--line);
  box-shadow:var(--shadow);
  backdrop-filter:blur(12px);
  z-index:999;
}

.bottom-inner{
  max-width:780px;
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:8px;
}

.nav-item{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:10px 6px;
  border-radius:16px;
  text-decoration:none;
  color:var(--muted);
  border:1px solid transparent;
  transition:160ms ease;
  min-height:58px;
}

.nav-item svg{
  width:22px;
  height:22px;
  stroke:currentColor;
  fill:none;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
  opacity:0.92;
}

.nav-item .label{
  font-size:11px;
  font-weight:900;
  letter-spacing:0.2px;
  text-align:center;
  line-height:1.1;
}

.nav-item.is-active{
  color:var(--violet);
  background:var(--soft);
  border-color:var(--line);
}

.nav-item.is-active svg{
  stroke:currentColor;
}

.nav-item:hover{
  background:var(--soft);
}

.drawer{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.28);
  z-index:1200;
  display:none;
}

.drawer.is-open{display:block}

.drawer-panel{
  position:absolute;
  top:0;
  right:0;
  width:min(88vw, 340px);
  height:100%;
  background:#fff;
  padding:18px;
  box-shadow:-8px 0 30px rgba(0,0,0,0.08);
  display:flex;
  flex-direction:column;
  gap:12px;
}

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

.drawer-title{
  margin:0;
  font-size:18px;
  font-weight:800;
  color:var(--violet);
}

.drawer-nav{
  display:grid;
  gap:8px;
}

.drawer-nav a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:14px 14px;
  border-radius:14px;
  border:1px solid var(--line);
  text-decoration:none;
  color:var(--text);
  font-weight:700;
  background:#fff;
}

@media (min-width:700px){
  .hero-actions{flex-wrap:nowrap}
  .btn-primary{flex:0 0 280px}
  .btn-ghost{flex:1 1 auto}
}

@media (max-width:520px){
  .levadis-app{padding:10px 14px calc(var(--nav-h) + 24px)}
  .page-title{font-size:18px}
  .hero h1{font-size:28px}
  .push-card{flex-direction:column;align-items:flex-start}
  .push-card button{width:100%}
}