/* ============================================================
   Schematic Device Changer app UI (shared by design-lab variants)
   Dark interface, neon-green accents — mirrors the real app.
   ============================================================ */

.au {
  --g: #2fd27d;
  --g-dim: rgba(47, 210, 125, 0.55);
  --card: #141414;
  --line: #262626;
  --txt: #e8e8e8;
  --mut: #9a9a9a;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #050505;
  color: var(--txt);
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 11px;
  line-height: 1.35;
  padding: 8px 10px 0;
  overflow: hidden;
  text-align: left;
}
.au * { box-sizing: border-box; margin: 0; padding: 0; }

/* status bar + title (status bar injected by app-ui.js) */
.au-status { display: flex; justify-content: space-between; align-items: center; font-size: 10px; color: #ddd; padding: 0 2px; }
.au-status .ics { display: flex; gap: 5px; align-items: center; }
.au-status svg { width: 11px; height: 11px; fill: #ddd; }
.au-title { color: var(--g); font-size: 15px; font-weight: 700; }
.au-sub { color: var(--g); font-weight: 700; font-size: 12px; }
.au-note { color: var(--mut); font-size: 9px; }

/* pills, cards, rows */
.au-pill {
  border: 1.5px solid var(--g);
  border-radius: 999px;
  text-align: center;
  padding: 6px;
  color: var(--g);
  font-weight: 600;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.au-card { background: var(--card); border-radius: 10px; padding: 8px 10px; }
.au-card-h {
  color: var(--g);
  font-weight: 700;
  font-size: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  margin-bottom: 5px;
}
.au-row { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; color: var(--mut); font-size: 10.5px; }
.au-row b { color: #ddd; font-weight: 500; text-align: right; }
.au-ok { color: var(--g) !important; }
.au-flicker { animation: au-pulse 3s ease-in-out infinite; }
.au-login {
  border: 1px solid var(--g-dim);
  border-radius: 8px;
  margin-top: 6px;
  padding: 5px 8px;
  color: var(--g);
  font-size: 11px;
}

/* outline buttons */
.au-btns3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.au-btns2 { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.au-btns3 span, .au-btns2 span {
  border: 1px solid var(--g-dim);
  border-radius: 9px;
  text-align: center;
  padding: 8px 0;
  color: var(--g);
  font-size: 10.5px;
  font-weight: 600;
}
.au-btns3 span:first-child { animation: au-pulse 4.5s ease-in-out infinite; }

/* 6-tab grid (Hooks) */
.au-grid6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.au-grid6 span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: #ccc;
  text-align: center;
  padding: 7px 0;
  font-size: 10px;
}
.au-grid6 span.on { border-color: var(--g); color: var(--g); box-shadow: 0 0 10px rgba(47, 210, 125, 0.25); }
.au-country { border: 1px solid var(--g-dim); border-radius: 9px; padding: 7px 9px; font-size: 10.5px; color: #eee; }
.au-country small { display: block; color: var(--g); font-size: 8.5px; }

/* toggle rows */
.au-tlist { display: flex; flex-direction: column; gap: 6px; }
.au-trow { display: flex; align-items: center; gap: 8px; background: var(--card); border-radius: 9px; padding: 7px 9px; }
.au-trow > div { flex: 1; min-width: 0; }
.au-trow b { display: block; font-size: 11px; font-weight: 600; }
.au-trow span { font-size: 9px; color: var(--mut); }
.au-ic { width: 16px; height: 16px; border-radius: 5px; background: rgba(47, 210, 125, 0.18); flex: none; }
.au-toggle { width: 26px; height: 15px; border-radius: 999px; background: #3a3a3a; position: relative; flex: none; transition: background 0.3s; }
.au-toggle::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.3s;
}
.au-toggle.on { background: var(--g); }
.au-toggle.on::after { transform: translateX(11px); }

/* identifier rows (Faker ID / SIM) */
.au-idlist { display: flex; flex-direction: column; gap: 6px; }
.au-idrow { background: var(--card); border-radius: 9px; padding: 6px 9px; display: flex; align-items: center; gap: 7px; }
.au-idrow .lb { flex: 1; min-width: 0; }
.au-idrow .lb b { font-size: 10.5px; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.au-idrow .lb b::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: rgba(47, 210, 125, 0.3); flex: none; }
.au-idrow .lb span {
  display: block;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 9.5px;
  color: var(--mut);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}
.au-idrow .lb span.scr-anim { color: var(--g); }
.au-dice { color: #7a7a7a; font-style: normal; font-size: 11px; }
.au-check { color: var(--g); font-style: normal; font-weight: 700; }

/* device profiles */
.au-chips { display: flex; gap: 5px; }
.au-chips span {
  flex: 1;
  text-align: center;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 7px;
  padding: 5px 0;
  font-size: 9.5px;
  color: #bbb;
}
.au-chips span.on { border-color: var(--g); color: var(--g); }
.au-plist { display: flex; flex-direction: column; gap: 5px; overflow: hidden; }
.au-prow {
  display: flex;
  gap: 7px;
  align-items: center;
  background: var(--card);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 6px 8px;
  transition: border-color 0.4s, box-shadow 0.4s;
}
.au-prow.sel { border-color: var(--g); box-shadow: 0 0 10px rgba(47, 210, 125, 0.25); }
.au-prow .pic { width: 11px; height: 17px; border: 1.5px solid var(--g); border-radius: 3px; flex: none; }
.au-prow > div { min-width: 0; }
.au-prow b { font-size: 9.5px; font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.au-prow span { font-size: 8.5px; color: var(--mut); }

/* wi-fi networks */
.au-wfbtns { display: grid; grid-template-columns: 1.3fr 1fr; gap: 7px; }
.au-wfbtns span { border-radius: 9px; padding: 8px 0; text-align: center; font-weight: 700; font-size: 10.5px; }
.au-wfbtns .add { background: var(--g); color: #04140b; }
.au-wfbtns .rnd { border: 1px solid var(--g-dim); color: var(--g); animation: au-pulse 4s ease-in-out infinite; }
.au-wflist { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.au-wf { background: var(--card); border-radius: 8px; padding: 6px 8px; display: flex; gap: 6px; align-items: center; }
.au-wf > div { min-width: 0; }
.au-wf b { font-size: 9.5px; font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.au-wf span { font-size: 8.5px; color: var(--mut); font-family: ui-monospace, Consolas, monospace; }
.au-sig { width: 14px; height: 14px; fill: var(--g); flex: none; animation: au-pulse 2.6s ease-in-out infinite; }
.au-wf:nth-child(2n) .au-sig { animation-delay: -0.9s; }
.au-wf:nth-child(3n) .au-sig { animation-delay: -1.7s; }

/* location / map */
.au-tabs { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--g-dim); border-radius: 999px; overflow: hidden; }
.au-tabs span { text-align: center; padding: 6px 0; font-size: 10.5px; color: var(--g); }
.au-tabs span.on { background: var(--g); color: #04140b; font-weight: 700; }
.au-stop {
  background: #d93636;
  color: #fff;
  border-radius: 9px;
  text-align: center;
  padding: 8px;
  font-weight: 700;
  font-size: 11px;
  animation: au-pulse 3.5s ease-in-out infinite;
}
.au-map {
  position: relative;
  height: 108px;
  border-radius: 9px;
  overflow: hidden;
  background: #0d0f0d;
  border: 1px solid var(--line);
}
.au-map::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    repeating-linear-gradient(0deg, transparent 0 18px, rgba(255, 255, 255, 0.09) 18px 20px),
    repeating-linear-gradient(90deg, transparent 0 26px, rgba(255, 255, 255, 0.09) 26px 28px),
    repeating-linear-gradient(35deg, transparent 0 44px, rgba(255, 255, 255, 0.05) 44px 46px);
  animation: au-mapdrift 14s linear infinite;
}
.au-pin { position: absolute; left: 52%; top: 46%; width: 14px; height: 14px; transform: translate(-50%, -100%); animation: au-bob 2.2s ease-in-out infinite alternate; }
.au-pin i { display: block; width: 14px; height: 14px; background: var(--g); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 0 12px rgba(47, 210, 125, 0.7); }
.au-pin::after {
  content: "";
  position: absolute;
  left: 50%; top: 96%;
  width: 26px; height: 10px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(47, 210, 125, 0.35);
  animation: au-ripple 2.2s ease-out infinite;
}

/* bottom navigation (injected by app-ui.js) */
.au-nav {
  margin: auto -10px 0;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-top: 1px solid var(--line);
  padding: 5px 4px 7px;
  background: #0a0a0a;
}
.au-nav div { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 7px; color: #8a8a8a; }
.au-nav svg { width: 14px; height: 14px; fill: #8a8a8a; }
.au-nav div.on { color: var(--g); }
.au-nav div.on svg { fill: var(--g); filter: drop-shadow(0 0 4px rgba(47, 210, 125, 0.6)); }

@keyframes au-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes au-bob { from { transform: translate(-50%, -100%); } to { transform: translate(-50%, -150%); } }
@keyframes au-ripple { from { transform: translate(-50%, -50%) scale(0.6); opacity: 0.9; } to { transform: translate(-50%, -50%) scale(1.7); opacity: 0; } }
@keyframes au-mapdrift { from { transform: translate(0, 0); } to { transform: translate(44px, 20px); } }

@media (prefers-reduced-motion: reduce) {
  .au *, .au *::before, .au *::after { animation: none !important; }
}
