/* Simple, readable, no fancy symbols. */
:root{
  --bg: #0b0f14;
  --panel: #0f1620;
  --card: #111b26;
  --text: #e7eef7;
  --muted: #a8b6c8;
  --line: #1f2a3a;
  --btn: #1d2a3d;
  --btn2:#172233;
  --focus:#6aa5ff;
  --radius: 14px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 30% 0%, #162034 0%, var(--bg) 55%);
  color: var(--text);
}

a{ color:inherit; text-decoration:none; }
.wrap{ width:min(1080px, 92vw); margin: 22px auto 40px; }

.topbar{
  position:sticky;
  top:0;
  z-index:10;
  background: rgba(11,15,20,0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding: 14px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.brand-title{ font-size: 18px; font-weight: 700; letter-spacing: 0.2px; }
.brand-sub{ font-size: 12px; color: var(--muted); margin-top: 2px; }

.langbar{ display:flex; gap:10px; }
.flag{
  width:44px;
  height:44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--btn) 0%, var(--btn2) 100%);
  color: var(--text);
  font-weight: 700;
  cursor:pointer;
}
.flag.active{ outline: 2px solid var(--focus); }

.hero{
  margin-top: 18px;
  display:grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  align-items:start;
}
@media (max-width: 900px){
  .hero{ grid-template-columns: 1fr; }
}

.hero-title{ margin:0; font-size: 18px; color: var(--muted); }
.hero-name{ font-size: 44px; font-weight: 800; margin-top: 6px; line-height: 1.05; }
.hero-meta{ margin-top: 10px; color: var(--muted); font-size: 14px; }
.hero-actions{ display:flex; gap:10px; margin-top: 16px; flex-wrap:wrap; }

.grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
  margin-top: 16px;
}
@media (max-width: 900px){
  .grid{ grid-template-columns: 1fr; }
}

.card{
  background: rgba(17,27,38,0.75);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}
.card-title{ font-weight: 800; margin-bottom: 10px; }
.text{ white-space: pre-wrap; color: var(--text); line-height: 1.6; }

.kv{ display:grid; gap:8px; }
.kv-row{ display:flex; justify-content:space-between; gap:14px; padding:10px 12px; background: rgba(15,22,32,0.65); border:1px solid var(--line); border-radius: 12px;}
.k{ color: var(--muted); font-size: 13px; }
.v{ font-size: 13px; }

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--btn) 0%, var(--btn2) 100%);
  color: var(--text);
  font-weight: 700;
  cursor:pointer;
}
.btn.ghost{ background: transparent; }

.footer{
  border-top: 1px solid var(--line);
  padding: 18px;
  color: var(--muted);
  text-align:center;
}

.small{ font-size: 12px; color: var(--muted); }
.note{ margin-top: 10px; font-size: 13px; color: var(--muted); min-height: 18px; }

.line-row{ display:flex; gap:12px; align-items:center; }
.qr{ width: 92px; height: 92px; border-radius: 12px; border:1px solid var(--line); background: rgba(15,22,32,0.65); object-fit: cover; }
.line-text{ min-width:0; }

.toolbar{ display:flex; gap:10px; flex-wrap:wrap; margin: 16px 0; }

.form{ display:grid; gap: 12px; }
.field{ display:grid; gap:6px; }
.label{ font-size: 12px; color: var(--muted); font-weight: 700; }
.hint{ font-size: 12px; color: var(--muted); }

input, select, textarea{
  width: 100%;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(15,22,32,0.65);
  color: var(--text);
  outline:none;
}
input:focus, select:focus, textarea:focus{ border-color: var(--focus); box-shadow: 0 0 0 3px rgba(106,165,255,0.18); }

.row2{ display:grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 700px){
  .row2{ grid-template-columns: 1fr; }
}

.tabs{ display:flex; gap:8px; margin: 10px 0 12px; flex-wrap:wrap; }
.tab{
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(15,22,32,0.65);
  color: var(--text);
  font-weight: 700;
  cursor:pointer;
}
.tab.active{ outline: 2px solid var(--focus); }

.panel{ display:none; }
.panel.active{ display:block; }

/* right-bottom small edit button */
.edit-fab {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 1000;

  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;

  background: #1d2a3d;
  color: #ffffff;
  border: 1px solid #333333;
  text-decoration: none;
  opacity: 0.75;
}

.edit-fab:hover {
  opacity: 1;
}
