:root{
  --bg1:#0b0f1a;
  --bg2:#0f172a;
  --card:rgba(255,255,255,.06);
  --stroke:rgba(255,255,255,.10);
  --text:#e5e7eb;
  --muted:rgba(229,231,235,.70);
  --shadow: 0 18px 60px rgba(0,0,0,.55);
  --radius:22px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color:var(--text);
  background: linear-gradient(160deg, var(--bg1), var(--bg2));
}

.bg{
  position:fixed; inset:0;
  background:
    radial-gradient(800px 500px at 20% 10%, rgba(99,102,241,.18), transparent 60%),
    radial-gradient(700px 420px at 80% 30%, rgba(236,72,153,.14), transparent 55%),
    radial-gradient(700px 520px at 55% 90%, rgba(34,197,94,.10), transparent 60%);
  pointer-events:none;
  filter:saturate(1.1);
}

.wrap{
  position:relative;
  max-width: 520px;
  margin: 0 auto;
  padding: 18px 14px 28px;
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 10px 6px 18px;
}

.brand{
  display:inline-flex;
  align-items:center;
  text-decoration:none;
  color:var(--text);
  opacity:.9;
}
.brand:hover{opacity:1}

.topbar-actions{display:flex; gap:12px; align-items:center}
.link{
  color:var(--text);
  text-decoration:none;
  opacity:.85;
  /* fix для <button class="link"> */
  background:none;
  border:0;
  padding:0;
  margin:0;
  cursor:pointer;
  font-family:inherit;
  font-size:inherit;
  line-height:inherit;
  display:inline-flex;
  align-items:center;
}
.link:hover{opacity:1}
.brand-logo{display:block; color:var(--text)}

.card{
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  backdrop-filter: blur(10px);
}

.hero{
  text-align:center;
  padding: 22px 18px;
}

h1{
  margin: 10px 0 6px;
  font-size: 26px;
  line-height:1.15;
  letter-spacing:-.02em;
}

.muted{color:var(--muted)}
.small{font-size:12px}

.alert{
  background: rgba(239,68,68,.12);
  border: 1px solid rgba(239,68,68,.25);
  padding: 10px 12px;
  border-radius: 14px;
  margin: 12px 0;
}

.form{display:flex; flex-direction:column; gap:10px; margin-top:12px}
label{font-size:12px; color:var(--muted)}
input, select{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
  color: var(--text);
  outline:none;
}
input:focus, select:focus{
  border-color: rgba(99,102,241,.55);
}

.btns{display:flex; flex-direction:column; gap:8px; margin-top:14px}
.btn{
  position:relative;
  display:inline-flex;
  justify-content:center;
  align-items:center;
  padding: 13px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,.05);
  color: var(--text);
  font-weight:500;
  text-decoration:none;
  border: 1px solid rgba(255,255,255,.10);
  cursor:pointer;
  transition: background .15s ease, border-color .15s ease;
}
.btn:hover{ background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.18); transform: none; }
.btn:active{ background: rgba(255,255,255,.04); }

.btn-ghost{
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.10);
}
.btn-ghost:hover{ background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); }

.ico{
  position:absolute;
  left:16px;
  top:50%;
  transform:translateY(-50%);
  display:inline-flex;
  flex-shrink:0;
  width:18px;
  height:18px;
  opacity:.65;
  pointer-events:none;
}

.row{
  display:flex; gap:10px; margin-top:12px;
}
.row > * {flex:1}

.grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 14px;
}
.tile{
  display:block;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  text-decoration:none;
  color: var(--text);
}
.tile-title{font-weight:750}
.tile-sub{color:var(--muted); font-size:12px; margin-top:4px}

.avatar{
  width: 128px; height: 128px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  overflow:hidden;
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 18px 45px rgba(0,0,0,.35);
}
.avatar img{width:100%; height:100%; object-fit:cover}
.avatar span{font-size:34px; font-weight:800; opacity:.9}
.avatar.big{width:160px; height:160px}

.qr{
  margin-top:16px;
  padding-top: 10px;
}
.qr img{
  width: 220px;
  height: 220px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.92);
  padding: 10px;
  margin-top: 10px;
}

.list{margin-top: 14px; display:flex; flex-direction:column; gap:10px}
.item{
  display:flex; justify-content:space-between; align-items:flex-start;
  gap:10px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
}
.item-title{font-weight:750}
.item-sub{display:flex; flex-direction:column; gap:4px; color:var(--muted); font-size:12px; margin-top:6px}

.pre{
  white-space:pre-wrap;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  padding: 12px;
  color: var(--text);
}

.footer{
  margin-top: 14px;
  text-align:center;
  color: rgba(229,231,235,.55);
  font-size: 12px;
  padding: 10px;
}
/* Techy button style (Link-kit vibe) */
.btn,
.btn-ghost,
.tile,
button {
  font-family: "Inconsolata", monospace;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
}

/* ---- Language switcher ---- */
.lang-switcher {
  display: flex;
  gap: 4px;
  align-items: center;
  margin-left: 6px;
}
.lang-btn {
  font-family: "Inconsolata", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  padding: 4px 7px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.12);
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
  line-height: 1;
}
.lang-btn:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.22);
  color: var(--text);
}
.lang-active {
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.22);
  color: var(--text);
  cursor: default;
}
