/* ipabc.de minimal UI */
:root{
  --bg:#0b1220;
  --card:#0f1a2e;
  --text:#e6edf7;
  --muted:#9bb0d0;
  --line:rgba(255,255,255,.12);
  --accent:#4ea1ff;
  --accent2:#8b5cf6;
  --danger:#ff6b6b;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  background: radial-gradient(1000px 600px at 10% 0%, rgba(78,161,255,.18), transparent 60%),
              radial-gradient(900px 600px at 90% 10%, rgba(139,92,246,.18), transparent 55%),
              var(--bg);
  color:var(--text);
}
a{color:inherit; text-decoration:none}

.topbar{
  position:sticky; top:0; z-index:20;
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 18px;
  border-bottom:1px solid var(--line);
  background:rgba(11,18,32,.75);
  backdrop-filter: blur(10px);
}
.topbar__left{display:flex; align-items:center; gap:12px}
.topbar__right{display:flex; align-items:center; gap:14px}
.topbar__right .nav--mobile{display:none}

/* Mobile: breadcrumb at far right, lang on its left */
@media (max-width: 680px){
  .topbar__right{gap:10px}
  .topbar__right .nav--desktop{display:none}
  .topbar__right .nav--mobile{display:flex}
  .topbar__right .lang{order:1}
  .topbar__right .nav--mobile{order:2}
  .nav__text{display:none} /* icon-first for compact */
  .crumb, .crumb.is-current{display:inline-flex; align-items:center; gap:6px; padding:8px 10px; border-radius:12px; border:1px solid rgba(255,255,255,.14); background:rgba(255,255,255,.04)}
  .crumb__sep{opacity:.5; margin:0 6px}
}

/* Desktop: lang always at far right */
@media (min-width: 681px){
  .topbar__right .lang{order:99}
}


.brand{display:flex; align-items:center; gap:10px}
.brand__logo{
  width:34px; height:34px; border-radius:10px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  font-weight:800;
}
.brand__name{font-weight:700; letter-spacing:.3px}

.nav{display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end; align-items:center}
.nav__text{display:inline}
.icon{display:inline-flex; width:18px; height:18px; vertical-align:middle; margin-right:6px; color:inherit; opacity:.95}
.icon svg{width:100%; height:100%}
.icon--sm{width:16px; height:16px; margin-right:6px}
.icon--md{width:20px; height:20px; margin-right:8px}

.nav__link{
  padding:8px 10px;
  border-radius:10px;
  color:var(--muted);
}
.nav__link:hover{background:rgba(255,255,255,.06); color:var(--text)}
.nav__link.is-active{background:rgba(78,161,255,.16); color:var(--text); border:1px solid rgba(78,161,255,.25)}

.lang{
  padding:8px 10px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.04);
  color:var(--text);
  font-weight:700;
}
.lang:hover{background:rgba(255,255,255,.08)}

.container{max-width:980px; margin:0 auto; padding:22px 16px 56px}

.card{
  border:1px solid var(--line);
  background:rgba(15,26,46,.75);
  border-radius:16px;
  padding:18px 16px;
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
}
.grid{display:grid; grid-template-columns:1fr; gap:14px; margin-top:14px}
@media (min-width: 860px){
  .grid{grid-template-columns:1fr 1fr}
}

.h1{margin:0 0 10px; font-size:22px}
.h2{margin:0 0 10px; font-size:16px; color:var(--muted)}
.lead{margin:8px 0 0; font-size:16px}

.form{margin-top:6px}
.label{display:block; color:var(--muted); font-size:13px; margin-bottom:8px}
.row{display:flex; gap:10px}
.input{
  flex:1;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.12);
  color:var(--text);
  outline:none;
}
.input:focus{border-color: rgba(78,161,255,.6); box-shadow: 0 0 0 4px rgba(78,161,255,.12)}

.btn{
  padding:12px 14px;
  border-radius:12px;
  border:1px solid rgba(78,161,255,.35);
  background:rgba(78,161,255,.18);
  color:var(--text);
  font-weight:700;
  cursor:pointer;
}
.btn:hover{background:rgba(78,161,255,.26)}
.btn--ghost{background:transparent; border:1px solid rgba(255,255,255,.14); color:var(--muted)}
.btn--ghost:hover{background:rgba(255,255,255,.06); color:var(--text)}
.btn--sm{padding:6px 10px; border-radius:10px; font-size:12px}

.mono{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace}
.muted{color:var(--muted)}
.small{font-size:12px}
.error{color:var(--danger); margin:10px 0 0}
.sep{border:none; border-top:1px solid var(--line); margin:16px 0}

.list{margin:10px 0 0; padding:0; list-style:none}
.list__item{display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px 10px; border-radius:12px; border:1px solid rgba(255,255,255,.08); background:rgba(0,0,0,.08); margin-bottom:10px}
.list__item a:hover{text-decoration:underline}

.kv{margin-top:10px; border:1px solid rgba(255,255,255,.08); border-radius:14px; overflow:hidden}
.kv__row{display:grid; grid-template-columns: 140px 1fr; gap:10px; padding:12px 12px; border-top:1px solid rgba(255,255,255,.06)}
.kv__row:first-child{border-top:none}
.kv__k{color:var(--muted); font-size:13px}
.kv__v{min-width:0; word-break:break-word}

.map-card{
  margin-top:14px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  overflow:hidden;
  background:rgba(0,0,0,.10);
}
.map-card__head{padding:12px 12px; border-bottom:1px solid rgba(255,255,255,.08)}
.map-card__foot{padding:10px 12px; border-top:1px solid rgba(255,255,255,.08)}
.ip-map{height:320px; width:100%}
@media (min-width: 860px){
  .ip-map{height:360px}
}

.footer{margin-top:18px}
.footer__inner{padding:10px 6px}

.copyright{margin-top:10px; border-top:1px solid var(--line); background:rgba(0,0,0,.10)}
.copyright__inner{max-width:980px; margin:0 auto; padding:14px 16px}

.float{
  position:fixed;
  right:16px;
  top:50%;
  transform: translateY(-50%);
  display:none;
  flex-direction:column;
  gap:10px;
  z-index:30;
}
.float.is-show{display:flex}
.float__btn{
  width:42px; height:42px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(15,26,46,.8);
  color:var(--text);
  cursor:pointer;
  font-size:18px;
}
.float__btn:hover{background:rgba(255,255,255,.06)}
.float__btn.is-hide{display:none}
