:root{
  /* === NeoAstrolog neon (как BJU) === */
  --bg1:#070A1A;
  --bg2:#0B1230;

  --card:rgba(255,255,255,.06);
  --card2:rgba(255,255,255,.08);

  --border:rgba(255,255,255,.10);
  --border2:rgba(255,255,255,.16);

  --text:#cfe0ff;

  /* Разнесение лейбл/значение */
  --label:#8fb7ff;                 /* холодный лейбл */
  --muted:rgba(207,224,255,.72);
  --muted2:rgba(207,224,255,.52);
  --placeholder:rgba(207,224,255,.36);

  --accent:#7aa2ff;
  --accent2:#48d7ff;

  --danger:#ff5b7a;
  --ok:#44ffb1;

  --shadow:0 12px 30px rgba(0,0,0,.42);

  --r:18px;
  --r2:14px;
  --pad:14px;

  --fs:14px;
  --fs_label:12px;

  --control_h:40px;
  --control_pad_x:12px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

html{
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
  color-scheme:dark;
}

body{
  margin:0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, "Segoe UI", Roboto, Arial;
  color:var(--text);
  font-size:var(--fs);
  line-height:1.42;
  letter-spacing:0;

  /* ✅ неоновые подсветки (как BJU) */
  background:
    radial-gradient(1200px 700px at 18% 0%, rgba(122,162,255,.22), transparent 56%),
    radial-gradient(900px 600px at 84% 18%, rgba(72,215,255,.14), transparent 54%),
    radial-gradient(900px 700px at 50% 110%, rgba(122,162,255,.10), transparent 60%),
    linear-gradient(180deg, var(--bg1), var(--bg2));

  -webkit-font-smoothing:antialiased;
  overflow:hidden;
}

a{ color:var(--accent2); text-decoration:none; }
a:hover{ text-decoration:underline; }

.app{
  height:100%;
  display:flex;
  flex-direction:column;
}

/* ===== TOPBAR ===== */
.topbar{
  position:sticky;
  top:0;
  z-index:10;
  padding:12px var(--pad);
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(7,10,26,.90), rgba(7,10,26,.58));
  border-bottom:1px solid var(--border);
}

.brand{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.brand h1{
  margin:0;
  font-size:18px;
  font-weight:800;
  letter-spacing:.15px;
}

.pill,
.brand .pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:11px;
  padding:6px 10px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.05);
  border-radius:999px;
  color:var(--muted2);
  white-space:nowrap;
  font-weight:600;
}

/* ===== Tabs ===== */
.tabs{
  margin-top:10px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.tab{
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.04);
  color:var(--muted2);
  font-size:12px;
  font-weight:650;
}
.tab.active{
  background:rgba(122,162,255,.18);
  border-color:rgba(122,162,255,.35);
  color:var(--text);
}

/* ===== Content ===== */
.content{
  flex:1;
  overflow:auto;
  padding:12px var(--pad) 12px;
}

.container{
  max-width:520px;
  margin:0 auto;
  width:100%;
}

/* ===== Cards ===== */
.card{
  position:relative;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.04));
  border:1px solid var(--border);
  border-radius:var(--r);
  box-shadow:var(--shadow);
  padding:13px;
  margin-bottom:10px;
  overflow:hidden;
  color: rgba(207,224,255,.92);
  font-weight:400;
}

/* лёгкая неоновая “дымка” внутри карточки */
.card::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(520px 220px at 10% 0%, rgba(122,162,255,.16), transparent 55%),
    radial-gradient(520px 220px at 92% 10%, rgba(72,215,255,.10), transparent 60%);
  pointer-events:none;
  opacity:.9;
}

.card > *{ position:relative; }

.card h2{
  margin:0 0 10px;
  font-size:14px;
  font-weight:800;
  letter-spacing:.2px;
}

.muted{ color:var(--muted2); font-size:12px; }
.mini{ font-size:11px; color:var(--muted2); }
.center{ text-align:center; }

/* Read-only текст: b = лейбл */
.card b{
  color: var(--label);
  font-weight:600;
}
.card strong{
  font-weight:650;
}

/* ===== Grid ===== */
.grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:8px;
}
@media(min-width:560px){
  .grid{ grid-template-columns:1fr 1fr; }
}

/* ===== Inputs ===== */
.input{
  display:flex;
  flex-direction:column;
  gap:5px;
  position:relative;
}

.input label{
  font-size:var(--fs_label);
  color:var(--label);
  opacity:.92;
  font-weight:600;
  letter-spacing:.12px;
}

.req::after{ content:" *"; opacity:.85; }

/* поля: плотные, но не “бетон” */
.input input,
.input select{
  width:100%;
  height:var(--control_h);
  padding:0 var(--control_pad_x);
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  color:var(--text);
  font-size:14px;
  font-weight:600;
  letter-spacing:.05px;
  font-variant-numeric: tabular-nums;
  outline:none;
  transition: border .25s, background .25s, box-shadow .25s;
}

.input input::placeholder{
  color:var(--placeholder);
  font-weight:500;
  opacity:.9;
}

.input input:focus,
.input select:focus{
  border-color: rgba(72,215,255,.45);
  box-shadow: 0 0 0 2px rgba(72,215,255,.18);
}

/* select: контрол тёмный; список нативный может быть системным */
.input select{
  appearance:none;
  -webkit-appearance:none;
  padding-right:44px;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(165,180,252,.95) 50%),
    linear-gradient(135deg, rgba(165,180,252,.95) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 52%,
    calc(100% - 13px) 52%;
  background-size: 6px 6px, 6px 6px;
  background-repeat:no-repeat;
}

/* ===== Custom Select (если используешь вместо native) ===== */
.cselect{ position:relative; }

.cselect-btn{
  width:100%;
  height:var(--control_h);
  padding:0 var(--control_pad_x);
  padding-right:44px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  color:var(--text);
  font-size:14px;
  font-weight:600;
  letter-spacing:.05px;
  font-variant-numeric: tabular-nums;
  display:flex;
  align-items:center;
  cursor:pointer;
  user-select:none;
  outline:none;
  transition: border .25s, background .25s, box-shadow .25s;
}

.cselect-btn:focus{
  border-color: rgba(72,215,255,.45);
  box-shadow: 0 0 0 2px rgba(72,215,255,.18);
}

.cselect-btn::after{
  content:"";
  position:absolute;
  right:14px;
  width:7px;
  height:7px;
  border-right:2px solid rgba(165,180,252,.95);
  border-bottom:2px solid rgba(165,180,252,.95);
  transform:rotate(45deg);
}

/* popover: НЕ прозрачный */
.cselect-panel{
  position:absolute;
  left:0; right:0;
  top: calc(var(--control_h) + 8px);
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(10,14,34,.98);
  box-shadow: 0 18px 44px rgba(0,0,0,.62);
  overflow:hidden;
  opacity:0;
  transform: translateY(-6px);
  pointer-events:none;
  transition: opacity .12s ease, transform .12s ease;
  z-index:9999;
}

.cselect.open .cselect-panel{
  opacity:1;
  transform: translateY(0);
  pointer-events:auto;
}

.cselect-opt{
  padding:12px 12px;
  font-size:14px;
  font-weight:650;
  color:var(--text);
  background: rgba(255,255,255,.02);
  border-top:1px solid rgba(255,255,255,.06);
  cursor:pointer;
}
.cselect-opt:first-child{ border-top:none; }
.cselect-opt:hover{ background: rgba(72,215,255,.12); }
.cselect-opt[aria-selected="true"]{ background: rgba(72,215,255,.18); }

.cselect-hint{ display:none !important; }

/* ===== Checkbox row ===== */
.row{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  margin-top:8px;
}
.row input[type="checkbox"]{
  width:14px;
  height:14px;
  min-width:14px;
  min-height:14px;
  margin:0;
  accent-color: var(--accent2);
  transform: translateY(1px);
  border-radius:4px;
}
.row label{
  font-size:12px;
  color:var(--muted);
  font-weight:600;
  line-height:1.15;
}

/* ===== Buttons ===== */
.btn{
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  color:var(--text);
  padding:10px 12px;
  border-radius:14px;
  cursor:pointer;
  font-weight:700;
  font-size:13px;
  transition: transform .12s ease, background .2s ease, border .2s ease;
}

.btn.primary{
  border:none;
  background: linear-gradient(90deg, rgba(72,215,255,.92), rgba(122,162,255,.92));
  color:#06101a;
  box-shadow: 0 0 16px rgba(72,215,255,.18);
}
.btn.primary:active{ transform: scale(.98); }

.btn.danger{
  border-color:rgba(255,91,122,.40);
  background:rgba(255,91,122,.12);
}

/* кнопки в ряд */
.card .row .btn{
  flex: 1 1 140px;
  min-width: 140px;
}

/* ===== tables / pre ===== */
table{ width:100%; table-layout:fixed; }
td,th{ word-break:break-word; }
pre{ font-size:12px; line-height:1.25; overflow-x:auto; }

/* ===== Mobile ===== */
@media (max-width: 420px){
  .topbar{ padding:12px var(--pad); }
  .brand h1{ font-size:17px; }
  .content{ padding:10px var(--pad) 12px; }
  .card{ padding:12px; }
  .tab{ padding:8px 10px; }
  .input input, .input select, .cselect-btn{ font-size:14px; }
}
