:root{
  --bg:#0b0d12; --muted:#9aa3b2; --text:#eef2ff; --border:rgba(255,255,255,.10);
  --shadow:0 10px 30px rgba(0,0,0,.45); --radius:18px; --pad:16px; --tap:44px;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}
body{ margin:0; background:radial-gradient(1200px 800px at 50% -20%, #1b2440 0%, var(--bg) 55%);
  color:var(--text); min-height:100vh; display:flex; justify-content:center; }
.wrap{ width:100%; max-width:430px; padding:calc(env(safe-area-inset-top) + 14px) 14px calc(env(safe-area-inset-bottom) + 18px); box-sizing:border-box; }
.topbar{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px; }
.title{ font-size:20px; font-weight:800; margin:0; letter-spacing:.2px; }
.pill{ font-size:12px; color:var(--muted); border:1px solid var(--border); padding:6px 10px; border-radius:999px;
  backdrop-filter:blur(6px); background:rgba(255,255,255,.03); white-space:nowrap; }
.iconbtn{
  width:38px; height:38px; display:flex; align-items:center; justify-content:center;
  border-radius:12px; border:1px solid var(--border); background:rgba(255,255,255,.05);
  color:var(--text); cursor:pointer; touch-action:manipulation;
}
.iconbtn:active{ transform:scale(.98); }
.card{ background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03)); border:1px solid var(--border);
  border-radius:var(--radius); box-shadow:var(--shadow); padding:var(--pad); margin-top:12px; }
.hint{ color:var(--muted); font-size:13px; line-height:1.35; }

/* Search row */
.searchrow{ display:flex; gap:10px; margin-top:12px; }
.searchrow input{
  flex:1; height:44px; border-radius:14px; border:1px solid var(--border);
  background:rgba(0,0,0,.25); color:var(--text);
  padding:10px 12px; font-size:15px; outline:none;
}
.searchrow button{
  width:120px; height:44px; border-radius:14px; border:1px solid rgba(110,168,255,.45);
  background:linear-gradient(180deg, rgba(110,168,255,.28), rgba(110,168,255,.10));
  color:var(--text); font-weight:800; cursor:pointer; touch-action:manipulation;
}
.searchrow button:active{ transform:scale(.99); }

/* Drawer */
.drawer-backdrop{
  position:fixed; inset:0; background:rgba(0,0,0,.45);
  display:none; z-index:1000;
}
.drawer{
  position:fixed; top:0; left:0; height:100vh; width:min(320px, 86vw);
  background:rgba(12,14,20,.98);
  border-right:1px solid rgba(255,255,255,.08);
  box-shadow:0 20px 60px rgba(0,0,0,.6);
  transform:translateX(-105%);
  transition:transform .18s ease-out;
  z-index:1001;
  padding:calc(env(safe-area-inset-top) + 14px) 14px 14px;
  box-sizing:border-box;
}
.drawer.open{ transform:translateX(0); }
.drawer-backdrop.open{ display:block; }
.drawer h2{ margin:0 0 10px; font-size:16px; }
.drawer a{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  color:var(--text);
  text-decoration:none;
  margin-top:10px;
  font-weight:700;
}
.drawer .sub{ margin-top:12px; color:var(--muted); font-size:12px; }
