:root {
  color-scheme: dark;
  --bg: #050b12;
  --surface: rgba(13, 28, 43, 0.58);
  --surface-strong: rgba(15, 33, 50, 0.78);
  --line: rgba(185, 224, 255, 0.13);
  --line-strong: rgba(205, 235, 255, 0.22);
  --text: #edf8ff;
  --muted: #89a4b8;
  --cyan: #55e7ff;
  --cyan-deep: #079bb8;
  --violet: #a88cff;
  --green: #70f1bb;
  --red: #ff7c90;
  --amber: #ffc66d;
  --radius-xl: 30px;
  --radius-lg: 22px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { min-width: 320px; background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% -15%, rgba(37, 183, 214, 0.19), transparent 34%),
    radial-gradient(circle at 88% 8%, rgba(126, 82, 223, 0.17), transparent 28%),
    linear-gradient(145deg, #050a11 0%, #08131f 48%, #050b12 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.27;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.ambient {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(55px);
  opacity: 0.16;
  pointer-events: none;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  animation: float 18s ease-in-out infinite alternate;
}

.ambient-one { background: #2bd4f5; top: 18%; left: -220px; }
.ambient-two { background: #8c5fff; top: -170px; right: -170px; animation-delay: -7s; }
.ambient-three { background: #2b7ea9; bottom: -260px; right: 24%; animation-delay: -11s; }

.shell { width: min(1220px, calc(100% - 40px)); margin: 0 auto; padding: 22px 0 46px; position: relative; z-index: 1; }

.glass-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(16, 36, 54, .86), rgba(8, 19, 30, .78));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), var(--shadow);
  backdrop-filter: blur(12px) saturate(135%);
  -webkit-backdrop-filter: blur(12px) saturate(135%);
  transform: translateZ(0);
}

.glass-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.055), transparent 26%, transparent 72%, rgba(85,231,255,.035));
}

.topbar {
  min-height: 78px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 14px 18px;
}

.brand { display: inline-flex; align-items: center; gap: 13px; color: inherit; text-decoration: none; }
.brand-mark {
  position: relative; width: 46px; height: 46px; display: grid; place-items: center; overflow: hidden;
  border: 1px solid rgba(139, 230, 255, .28); border-radius: 15px;
  color: #06111a; font-size: 13px; font-weight: 900; letter-spacing: -.03em;
  background: linear-gradient(145deg, rgba(13,42,61,.96), rgba(3,13,22,.98));
  box-shadow: 0 12px 30px rgba(39, 188, 222, .2), inset 0 1px 0 rgba(255,255,255,.13);
}
.brand-mark img { width: 100%; height: 100%; display: block; object-fit: cover; }
.brand-mark b { position: absolute; right: 2px; bottom: 2px; min-width: 17px; height: 15px; display: grid; place-items: center; padding: 0 3px; border: 1px solid rgba(255,255,255,.18); border-radius: 6px; color: #06131b; background: rgba(111,238,255,.94); box-shadow: 0 3px 9px rgba(0,0,0,.32); font-size: 7px; line-height: 1; letter-spacing: .01em; }
.brand strong { display: block; font-size: 16px; letter-spacing: -.02em; }
.brand small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }

.topbar-actions { display: flex; align-items: center; gap: 10px; }
.live-chip, .primary-link {
  min-height: 44px; display: inline-flex; align-items: center; gap: 9px; border-radius: 14px; padding: 0 15px;
  font-size: 12px; font-weight: 700; white-space: nowrap;
}
.live-chip { color: #c8f9ea; border: 1px solid rgba(112, 241, 187, .15); background: rgba(112, 241, 187, .07); }
.live-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(112,241,187,.08), 0 0 16px var(--green); }
.live-chip.offline { color: #ffd4da; border-color: rgba(255,124,144,.2); background: rgba(255,124,144,.08); }
.live-chip.offline i { background: var(--red); box-shadow: 0 0 0 5px rgba(255,124,144,.08); }
.primary-link { color: #061018; text-decoration: none; background: linear-gradient(135deg, #c6f7ff, #55e7ff); box-shadow: 0 10px 28px rgba(85,231,255,.18); transition: transform .2s ease, box-shadow .2s ease; }
.primary-link:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(85,231,255,.3); }

.hero { min-height: 360px; display: flex; align-items: center; justify-content: space-between; gap: 60px; padding: 52px 68px 36px; }
.eyebrow, .card-kicker { margin: 0 0 13px; color: var(--cyan); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { margin: 0; max-width: 760px; font-size: clamp(46px, 6.6vw, 82px); line-height: .96; letter-spacing: -.065em; font-weight: 760; }
.hero h1 span { color: transparent; background: linear-gradient(90deg, #99f2ff, #a6baff 56%, #c3a8ff); background-clip: text; -webkit-background-clip: text; }
.hero-copy { max-width: 650px; margin: 24px 0 0; color: var(--muted); font-size: 16px; line-height: 1.65; }

.hero-orbit { flex: 0 0 190px; width: 190px; height: 190px; display: grid; place-items: center; position: relative; border: 1px solid rgba(121,222,255,.15); border-radius: 50%; box-shadow: inset 0 0 60px rgba(85,231,255,.05); }
.hero-orbit::before, .hero-orbit::after { content: ""; position: absolute; border-radius: 50%; border: 1px dashed rgba(180,220,255,.12); }
.hero-orbit::before { inset: 18px; }
.hero-orbit::after { inset: -12px; }
.orbit-core { width: 112px; height: 112px; display: grid; place-content: center; text-align: center; border-radius: 40%; background: radial-gradient(circle at 35% 25%, rgba(255,255,255,.26), transparent 25%), linear-gradient(145deg, rgba(75,224,247,.26), rgba(85,81,177,.12)); border: 1px solid rgba(156,236,255,.23); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 18px 50px rgba(34,177,206,.16); transform: rotate(8deg); }
.orbit-core span, .orbit-core small { transform: rotate(-8deg); }
.orbit-core span { font-size: 38px; font-weight: 800; letter-spacing: -.06em; }
.orbit-core small { color: var(--cyan); text-transform: uppercase; letter-spacing: .2em; font-size: 8px; }
.orbit-dot { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 20px var(--cyan); }
.orbit-dot-a { top: 15px; left: 38px; }
.orbit-dot-b { right: 3px; bottom: 53px; width: 8px; height: 8px; background: var(--violet); box-shadow: 0 0 20px var(--violet); }

.overview-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.status-card { grid-column: span 8; min-height: 226px; padding: 28px; border-radius: var(--radius-xl); }
.metric-card { grid-column: span 2; min-height: 226px; padding: 24px 20px; border-radius: var(--radius-xl); display: flex; flex-direction: column; justify-content: flex-end; }
.watcher-card { grid-column: span 6; min-height: 330px; padding: 28px; border-radius: var(--radius-xl); }
.control-card { grid-column: span 12; min-height: 0; padding: 30px; border-radius: var(--radius-xl); }
.screenshot-card { grid-column: span 12; padding: 28px; border-radius: var(--radius-xl); }

.card-heading, .section-heading, .watcher-topline, .countdown-row, .screenshot-meta { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.card-heading h2, .section-heading h2 { margin: 0; font-size: 26px; letter-spacing: -.04em; }
.status-orb { width: 58px; height: 58px; border-radius: 22px; background: radial-gradient(circle at 33% 28%, white, var(--green) 11%, #128e6a 45%, #083b35 70%); box-shadow: inset 0 1px 7px rgba(255,255,255,.6), 0 0 32px rgba(112,241,187,.28); }
.status-orb.alert { background: radial-gradient(circle at 33% 28%, white, var(--amber) 11%, #d66c27 48%, #4b2416 72%); box-shadow: 0 0 32px rgba(255,198,109,.28); }
.status-description { max-width: 570px; margin: 34px 0 26px; color: #b9cede; font-size: 15px; }
.status-meta { display: flex; flex-wrap: wrap; gap: 22px; color: var(--muted); font-size: 11px; }
.status-meta span { display: inline-flex; align-items: center; gap: 7px; }
.status-meta b { color: var(--text); font-weight: 700; }
.dot { width: 6px; height: 6px; border-radius: 50%; }
.dot-cyan { background: var(--cyan); box-shadow: 0 0 9px var(--cyan); }
.dot-violet { background: var(--violet); box-shadow: 0 0 9px var(--violet); }

.metric-icon { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: auto; border-radius: 16px; font-size: 18px; }
.metric-icon.cyan { color: var(--cyan); background: rgba(85,231,255,.09); border: 1px solid rgba(85,231,255,.13); }
.metric-icon.violet { color: #c5b7ff; background: rgba(168,140,255,.09); border: 1px solid rgba(168,140,255,.13); }
.metric-card p { margin: 28px 0 5px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .11em; font-weight: 750; }
.metric-card strong { font-size: 38px; line-height: 1; letter-spacing: -.06em; }
.metric-card .metric-word { font-size: 23px; letter-spacing: -.04em; }
.metric-card small { margin-top: 10px; color: #718da3; font-size: 10px; line-height: 1.5; }

.watcher-number { color: #678398; font-size: 11px; letter-spacing: .18em; font-weight: 800; }
.result-pill { border: 1px solid rgba(112,241,187,.15); background: rgba(112,241,187,.07); color: #b8f7df; border-radius: 999px; padding: 7px 10px; font-size: 10px; font-weight: 750; }
.result-pill.error { color: #ffd0d7; border-color: rgba(255,124,144,.18); background: rgba(255,124,144,.08); }
.result-pill.available { color: #07130f; background: var(--green); }
.watcher-card h3 { margin: 31px 0 8px; font-size: 25px; letter-spacing: -.045em; }
.watcher-card > p { min-height: 42px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.countdown-row { margin-top: 35px; }
.countdown-row span { color: #7f9aae; font-size: 11px; }
.countdown-row strong { font-variant-numeric: tabular-nums; font-size: 17px; }
.progress-track { height: 5px; margin: 13px 0 26px; background: rgba(255,255,255,.055); border-radius: 999px; overflow: hidden; }
.progress-track i { display: block; width: 62%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #1b8da5, var(--cyan)); box-shadow: 0 0 12px rgba(85,231,255,.5); transition: width .8s ease; }
.violet-track i { background: linear-gradient(90deg, #604ab7, var(--violet)); box-shadow: 0 0 12px rgba(168,140,255,.45); }
.watcher-card dl { display: flex; gap: 10px; margin: 0; }
.watcher-card dl div { flex: 1; padding: 13px 14px; border: 1px solid rgba(255,255,255,.055); border-radius: 14px; background: rgba(255,255,255,.025); }
.watcher-card dt { color: #6e899d; font-size: 9px; text-transform: uppercase; letter-spacing: .13em; }
.watcher-card dd { margin: 5px 0 0; font-size: 12px; font-weight: 700; }

.control-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.control-heading h2 { margin: 0; font-size: 26px; letter-spacing: -.04em; }
.control-badge { padding: 7px 10px; border: 1px solid rgba(112,241,187,.16); border-radius: 999px; color: #b8f7df; background: rgba(112,241,187,.07); font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.control-badge.violet { color: #d8ceff; border-color: rgba(168,140,255,.2); background: rgba(168,140,255,.08); }
.control-badge.is-ready { color: #06140e; background: var(--green); border-color: transparent; }
.control-badge.is-warning { color: #211407; background: var(--amber); border-color: transparent; }
.control-copy { min-height: 54px; margin: 17px 0 22px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.remote-card { position: relative; overflow: hidden; background: linear-gradient(145deg, rgba(9,28,45,.88), rgba(10,24,44,.72)); }
.remote-card::after { content: ""; position: absolute; width: 240px; height: 240px; right: -120px; top: 70px; border-radius: 50%; pointer-events: none; background: rgba(168,140,255,.075); filter: blur(28px); }
.remote-card > * { position: relative; z-index: 1; }
.search-window { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(360px, 1.2fr); align-items: center; gap: 18px; padding: 16px; border: 1px solid rgba(85,231,255,.12); border-radius: 18px; background: linear-gradient(135deg, rgba(85,231,255,.055), rgba(168,140,255,.035)); box-shadow: inset 0 1px 0 rgba(255,255,255,.035); }
.search-window-copy { min-width: 0; display: flex; align-items: center; gap: 12px; }
.search-window-copy > div, .vault-heading > div, .profile-editor-heading > div { min-width: 0; display: grid; gap: 3px; }
.search-window-copy strong, .vault-heading strong, .profile-editor-heading strong { color: #e7f7ff; font-size: 12px; letter-spacing: -.01em; }
.search-window-copy small, .vault-heading small, .profile-editor-heading small { color: #6f8da2; font-size: 9px; line-height: 1.45; }
.search-window-icon { flex: 0 0 38px; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(85,231,255,.18); border-radius: 13px; color: var(--cyan); background: rgba(85,231,255,.075); box-shadow: 0 8px 24px rgba(85,231,255,.08); font-size: 20px; }
.search-window-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.search-window-fields input { color-scheme: dark; }
.search-window-fields input:disabled { opacity: .48; cursor: not-allowed; }
.search-window-state { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: -4px; padding: 12px 13px; border: 1px solid rgba(112,241,187,.12); border-radius: 14px; background: linear-gradient(135deg, rgba(112,241,187,.055), rgba(85,231,255,.035)); }
.search-window-state > span { min-width: 0; display: grid; gap: 3px; }
.search-window-state small { color: #638196; font-size: 8px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.search-window-state strong { overflow-wrap: anywhere; color: #c9f9e6; font-size: 10px; line-height: 1.45; }
.search-window-state .form-secondary { flex: 0 0 auto; min-height: 34px; color: #a9c4d5; }
.search-window-state .form-secondary:disabled { opacity: .36; cursor: not-allowed; }
.remote-journey { display: grid; grid-template-columns: minmax(0,1fr) 18px minmax(0,1fr) 18px minmax(0,1fr); align-items: center; gap: 6px; margin: -5px 0 12px; }
.remote-journey > i { height: 1px; background: linear-gradient(90deg, rgba(85,231,255,.2), rgba(168,140,255,.3)); }
.journey-step { min-width: 0; display: flex; align-items: center; gap: 9px; padding: 10px; border: 1px solid rgba(174,220,249,.09); border-radius: 14px; background: rgba(1,9,15,.36); transition: border-color .25s ease, background .25s ease, transform .25s ease; }
.journey-step > b { flex: 0 0 25px; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 9px; color: #708da2; background: rgba(255,255,255,.045); font-size: 10px; }
.journey-step span { min-width: 0; display: grid; gap: 2px; }
.journey-step strong { overflow: hidden; color: #afc5d5; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.journey-step small { overflow: hidden; color: #587488; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.journey-step.is-active { transform: translateY(-2px); border-color: rgba(85,231,255,.32); background: rgba(85,231,255,.075); box-shadow: 0 9px 24px rgba(30,153,180,.09); }
.journey-step.is-active > b { color: #06131b; background: var(--cyan); }
.journey-step.is-done { border-color: rgba(112,241,187,.2); background: rgba(112,241,187,.055); }
.journey-step.is-done > b { color: #06130e; background: var(--green); }
.remote-action-hint { margin: 0 0 18px; padding: 11px 13px; border-left: 2px solid var(--violet); border-radius: 0 11px 11px 0; color: #a9bdd0; background: rgba(168,140,255,.055); font-size: 10px; line-height: 1.55; }
.profile-workspace { display: grid; grid-template-columns: minmax(245px, 300px) minmax(0, 1fr); align-items: start; gap: 14px; }
.profile-vault, .profile-editor { border: 1px solid rgba(185,224,255,.09); border-radius: 20px; background: rgba(1,9,15,.4); box-shadow: inset 0 1px 0 rgba(255,255,255,.025), 0 24px 70px rgba(0,0,0,.11); }
.profile-vault { position: sticky; top: 16px; padding: 17px; overflow: hidden; }
.profile-vault::before { content: ""; position: absolute; width: 150px; height: 150px; top: -95px; left: -60px; border-radius: 50%; pointer-events: none; background: rgba(85,231,255,.1); filter: blur(28px); }
.vault-heading, .profile-editor-heading { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.vault-heading { justify-content: flex-start; margin-bottom: 18px; }
.vault-icon { flex: 0 0 40px; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(85,231,255,.18); border-radius: 14px; color: var(--cyan); background: linear-gradient(145deg, rgba(85,231,255,.13), rgba(168,140,255,.07)); box-shadow: 0 10px 28px rgba(85,231,255,.1); font-size: 19px; }
.profile-select-label { display: grid; gap: 7px; color: #7896aa; font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: .09em; }
.profile-select-label select { width: 100%; height: 46px; padding: 0 11px; border: 1px solid rgba(174,220,249,.12); border-radius: 13px; outline: 0; color: #e7f7ff; background: #06121d; font: inherit; font-size: 11px; font-weight: 700; text-transform: none; }
.profile-select-label select:focus { border-color: rgba(85,231,255,.55); box-shadow: 0 0 0 3px rgba(85,231,255,.08); }
.profile-vault-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.profile-vault-actions .form-secondary { width: 100%; min-height: 38px; padding-inline: 8px; }
.profile-vault-actions .accent { color: #b9f8ff; border-color: rgba(85,231,255,.16); background: rgba(85,231,255,.07); }
.profile-vault-actions .danger { color: #ffc5ce; border-color: rgba(255,124,144,.14); background: rgba(255,124,144,.055); }
.profile-vault-actions .form-secondary:disabled { opacity: .38; cursor: not-allowed; }
.vault-note { display: grid; grid-template-columns: 8px 1fr; gap: 8px; margin: 16px 1px 0; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.055); color: #607f94; font-size: 9px; line-height: 1.5; }
.vault-note span { color: var(--green); font-size: 7px; text-shadow: 0 0 8px rgba(112,241,187,.7); }
.profile-editor { padding: 18px; }
.profile-editor-heading { margin-bottom: 15px; }
.privacy-chip { flex: 0 0 auto; padding: 6px 9px; border: 1px solid rgba(112,241,187,.14); border-radius: 999px; color: #aeeed5; background: rgba(112,241,187,.055); font-size: 8px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.profile-name-field { grid-template-columns: 1fr; }
.control-form { display: grid; gap: 18px; }
.field-grid { display: grid; gap: 11px; }
.mode-fields { grid-template-columns: 1fr; }
.mode-fields select { border-color: rgba(85,231,255,.3); background: linear-gradient(135deg, rgba(5,31,45,.92), rgba(17,16,48,.82)); }
.three-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.remote-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.remote-fields label:first-child { grid-column: span 2; }
.field-grid label { position: relative; display: grid; gap: 7px; color: #809aad; font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: .09em; }
.field-grid label span { display: flex; justify-content: space-between; gap: 7px; }
.field-grid label em { color: #587286; font-style: normal; font-weight: 600; text-transform: none; letter-spacing: 0; }
.field-grid input, .field-grid select { width: 100%; height: 46px; padding: 0 12px; border: 1px solid rgba(174,220,249,.11); border-radius: 13px; outline: 0; color: #e8f6ff; background: rgba(1,9,15,.52); font: inherit; font-size: 12px; font-weight: 700; letter-spacing: 0; text-transform: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.025); }
.field-grid input:focus, .field-grid select:focus { border-color: rgba(85,231,255,.55); box-shadow: 0 0 0 3px rgba(85,231,255,.08); }
.field-grid label small { position: absolute; right: 10px; bottom: 15px; pointer-events: none; color: #4f6b80; font-size: 8px; text-transform: uppercase; }
.three-fields input { padding-right: 48px; }
.consent-field { display: grid; grid-template-columns: 18px 1fr; align-items: start; gap: 10px; color: #819bae; font-size: 10px; line-height: 1.5; cursor: pointer; }
.consent-field input { width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--violet); }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.form-primary, .form-secondary { min-height: 40px; padding: 0 14px; border-radius: 12px; font: inherit; font-size: 10px; font-weight: 800; cursor: pointer; }
.form-primary { border: 0; color: #06131b; background: linear-gradient(135deg, #c6f7ff, #55e7ff); box-shadow: 0 10px 24px rgba(85,231,255,.13); }
.form-primary.violet { color: #0c0818; background: linear-gradient(135deg, #e1d9ff, #a88cff); box-shadow: 0 10px 24px rgba(168,140,255,.13); }
.form-secondary { border: 1px solid rgba(255,255,255,.09); color: #9cb4c5; background: rgba(255,255,255,.035); }
.form-primary:disabled, .form-secondary:disabled { opacity: .5; cursor: wait; }
.form-feedback { min-height: 15px; color: #88a3b6; font-size: 10px; }
.form-feedback.success { color: var(--green); }
.form-feedback.error { color: var(--red); }

.quiet-link { color: #9eeeff; font-size: 11px; font-weight: 700; text-decoration: none; }
.quiet-link.is-disabled { pointer-events: none; color: #567083; }
.screenshot-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; flex-wrap: wrap; }
.view-switcher { display: inline-flex; padding: 3px; border-radius: 12px; border: 1px solid rgba(185,224,255,.1); background: rgba(2,10,17,.4); }
.view-switcher button, .quiet-button { appearance: none; border: 0; color: #7896aa; background: transparent; font: inherit; font-size: 10px; font-weight: 750; cursor: pointer; }
.view-switcher button { min-height: 30px; padding: 0 10px; border-radius: 9px; }
.view-switcher button.is-active { color: #06131b; background: linear-gradient(135deg, #c6f7ff, #55e7ff); box-shadow: 0 6px 18px rgba(85,231,255,.18); }
.quiet-button { min-height: 36px; padding: 0 12px; border-radius: 11px; color: #9eeeff; border: 1px solid rgba(85,231,255,.12); background: rgba(85,231,255,.055); }
.quiet-button:disabled { opacity: .42; cursor: not-allowed; }
.screenshot-frame { position: relative; min-height: 430px; height: min(62vh, 680px); margin-top: 22px; border-radius: 20px; overflow: auto; border: 1px solid rgba(173,221,250,.12); background: linear-gradient(145deg, rgba(5,15,24,.94), rgba(8,23,35,.8)); scrollbar-color: rgba(85,231,255,.32) rgba(255,255,255,.035); scrollbar-width: thin; }
.screenshot-frame img { display: block; height: auto; object-position: top; transition: width .25s ease, max-height .25s ease; }
.screenshot-frame.mode-width img { width: 100%; min-width: 100%; }
.screenshot-frame.mode-overview { overflow: hidden; }
.screenshot-frame.mode-overview img { width: 100%; height: 100%; object-fit: contain; background: rgba(2,8,13,.65); }
.screenshot-frame.mode-original img { width: auto; max-width: none; min-width: 100%; }
.empty-preview { min-height: 430px; display: grid; place-content: center; justify-items: center; text-align: center; padding: 40px; }
.empty-preview span { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 16px; border-radius: 20px; color: var(--cyan); background: rgba(85,231,255,.07); border: 1px solid rgba(85,231,255,.12); font-size: 26px; }
.empty-preview strong { font-size: 17px; }
.empty-preview small { max-width: 350px; margin-top: 8px; color: var(--muted); line-height: 1.55; }
.scanline { position: absolute; left: 0; right: 0; top: -20%; height: 24%; pointer-events: none; background: linear-gradient(to bottom, transparent, rgba(85,231,255,.045), transparent); animation: scan 8s linear infinite; }
.screenshot-meta { margin-top: 14px; color: var(--muted); font-size: 10px; }

.screenshot-dialog { width: min(94vw, 1500px); height: 92vh; padding: 0; color: var(--text); border: 1px solid rgba(190,229,255,.2); border-radius: 24px; background: rgba(6,15,24,.94); box-shadow: 0 40px 120px rgba(0,0,0,.65); backdrop-filter: blur(26px); }
.screenshot-dialog::backdrop { background: rgba(1,5,9,.74); backdrop-filter: blur(10px); }
.dialog-bar { position: sticky; top: 0; z-index: 2; min-height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px 0 20px; border-bottom: 1px solid rgba(185,224,255,.12); background: rgba(9,22,34,.88); backdrop-filter: blur(22px); }
.dialog-bar strong { font-size: 13px; letter-spacing: -.02em; }
.dialog-bar button { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; color: var(--text); background: rgba(255,255,255,.045); font-size: 24px; cursor: pointer; }
.dialog-canvas { height: calc(92vh - 60px); overflow: auto; padding: 18px; background: radial-gradient(circle at 50% 0, rgba(85,231,255,.06), transparent 35%); }
.dialog-canvas img { display: block; width: max(100%, 1100px); height: auto; margin: 0 auto; border-radius: 12px; box-shadow: 0 20px 70px rgba(0,0,0,.45); }

.history-section { margin-top: 16px; padding: 28px; border-radius: var(--radius-xl); }
.history-summary { color: var(--muted); font-size: 11px; }
.history-summary b { color: var(--text); }
.history-list { display: grid; margin-top: 24px; }
.history-item { display: grid; grid-template-columns: 14px 54px 155px 160px 1fr auto 126px; align-items: center; gap: 13px; min-height: 58px; border-top: 1px solid rgba(255,255,255,.055); color: #a8bdcd; font-size: 11px; }
.history-item:first-child { border-top-color: rgba(255,255,255,.1); }
.history-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(112,241,187,.45); }
.history-dot.error { background: var(--red); box-shadow: 0 0 10px rgba(255,124,144,.4); }
.history-dot.available { background: var(--amber); box-shadow: 0 0 12px rgba(255,198,109,.5); }
.history-time { color: #6d879b; font-variant-numeric: tabular-nums; }
.history-id { width: max-content; padding: 5px 7px; border: 1px solid rgba(85,231,255,.12); border-radius: 8px; color: #9eeeff; background: rgba(85,231,255,.055); font-variant-numeric: tabular-nums; font-weight: 800; }
.history-watcher { color: var(--text); font-weight: 700; }
.history-message { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-duration { color: #7893a7; font-variant-numeric: tabular-nums; }
.history-shot { justify-self: end; color: var(--cyan); text-decoration: none; font-weight: 700; }
.empty-history { min-height: 120px; display: grid; place-items: center; color: var(--muted); border-top: 1px solid rgba(255,255,255,.06); }

.detail-shell { padding-bottom: 40px; }
.detail-heading { min-height: 280px; display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; padding: 58px 28px 34px; }
.detail-heading h1 { margin: 8px 0 12px; font-size: clamp(42px, 7vw, 82px); line-height: .96; letter-spacing: -.065em; }
.detail-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); align-items: start; gap: 16px; }
.detail-meta { position: sticky; top: 16px; padding: 24px; border-radius: var(--radius-xl); }
.detail-meta dl { display: grid; gap: 0; margin: 22px 0 26px; }
.detail-meta dl div { padding: 13px 0; border-top: 1px solid rgba(255,255,255,.06); }
.detail-meta dt { color: #668297; font-size: 9px; text-transform: uppercase; letter-spacing: .13em; }
.detail-meta dd { margin: 6px 0 0; color: #d9eaf4; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.detail-image-card { min-width: 0; padding: 24px; border-radius: var(--radius-xl); }
.detail-hint { color: var(--muted); font-size: 10px; }
.detail-image-frame { max-height: calc(100vh - 150px); margin-top: 20px; overflow: auto; border: 1px solid rgba(173,221,250,.12); border-radius: 18px; background: rgba(2,8,13,.72); scrollbar-color: rgba(85,231,255,.32) rgba(255,255,255,.035); scrollbar-width: thin; }
.detail-image-frame img { display: block; width: 100%; min-width: 900px; height: auto; }
.detail-error { padding: 28px; border-radius: var(--radius-xl); color: #ffd0d7; background: rgba(255,124,144,.07); }

footer { display: flex; justify-content: space-between; gap: 20px; padding: 24px 5px 0; color: #5f788c; font-size: 10px; }

@keyframes float { from { transform: translate3d(0, -12px, 0) scale(.95); } to { transform: translate3d(30px, 24px, 0) scale(1.08); } }
@keyframes scan { from { transform: translateY(-100%); } to { transform: translateY(600%); } }

@media (max-width: 920px) {
  .hero { padding: 52px 22px 36px; }
  .hero-orbit { display: none; }
  .status-card { grid-column: span 12; }
  .metric-card { grid-column: span 6; }
  .watcher-card { grid-column: span 12; }
  .control-card { grid-column: span 12; }
  .search-window { grid-template-columns: 1fr; }
  .profile-workspace { grid-template-columns: 1fr; }
  .profile-vault { position: static; }
  .history-item { grid-template-columns: 14px 50px 145px 1fr auto; }
  .history-watcher, .history-duration { display: none; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-meta { position: static; }
}

@media (max-width: 620px) {
  .shell { width: min(100% - 22px, 1220px); padding-top: 11px; }
  .topbar { align-items: flex-start; gap: 14px; }
  .topbar-actions { flex-direction: column; align-items: stretch; }
  .live-chip { min-height: 34px; }
  .primary-link { min-height: 38px; }
  .hero { min-height: 330px; padding: 54px 8px 30px; }
  .hero h1 { font-size: 47px; }
  .hero-copy { font-size: 14px; }
  .status-card, .metric-card, .watcher-card, .control-card, .screenshot-card, .history-section { border-radius: 22px; }
  .status-card { padding: 22px; }
  .metric-card { grid-column: span 12; min-height: 180px; }
  .watcher-card, .control-card, .screenshot-card, .history-section { padding: 22px; }
  .three-fields, .remote-fields, .search-window-fields { grid-template-columns: 1fr; }
  .remote-fields label:first-child { grid-column: auto; }
  .search-window { min-width: 0; padding: 14px; }
  .search-window-state { align-items: stretch; flex-direction: column; }
  .search-window-state .form-secondary { width: 100%; }
  .profile-vault, .profile-editor { padding: 15px; border-radius: 17px; }
  .profile-vault-actions { grid-template-columns: 1fr 1fr; }
  .profile-editor-heading { align-items: flex-start; }
  .remote-journey { grid-template-columns: 1fr; gap: 7px; }
  .remote-journey > i { width: 1px; height: 8px; margin-left: 22px; }
  .section-heading { align-items: flex-start; }
  .screenshot-actions { justify-content: flex-start; }
  .view-switcher { order: 3; width: 100%; }
  .view-switcher button { flex: 1; }
  .screenshot-frame, .empty-preview { min-height: 260px; }
  .history-item { grid-template-columns: 12px 44px 1fr auto; gap: 9px; padding: 9px 0; }
  .history-time { display: none; }
  .history-watcher { display: none; }
  .history-duration { display: none; }
  .history-shot { font-size: 0; }
  .history-shot::after { content: "Bild ↗"; font-size: 10px; }
  .detail-heading { min-height: 235px; padding: 46px 8px 26px; align-items: flex-end; }
  .detail-heading .result-pill { display: none; }
  .detail-image-card, .detail-meta { padding: 20px; border-radius: 22px; }
  .detail-image-frame { max-height: 72vh; }
  .detail-image-frame img { min-width: 720px; }
  footer { flex-direction: column; }
}

.booking-dialog {
  border: 1px solid rgba(16, 185, 129, 0.45);
  background: rgba(4, 13, 24, 0.88);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(16, 185, 129, 0.2);
  color: var(--text, #f8fafc);
  max-width: 480px;
  width: min(92vw, 480px);
  padding: 0;
  overflow: hidden;
}
.booking-dialog::backdrop {
  background: rgba(2, 6, 18, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.booking-dialog-content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.booking-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.booking-dialog-header h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 6px;
}
.booking-dialog-header p {
  font-size: 13px;
  color: var(--text-secondary, #94a3b8);
  margin: 0;
}
.booking-dialog-card {
  background: rgba(10, 25, 47, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.booking-dialog-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
}
.booking-dialog-row span {
  color: var(--text-secondary, #94a3b8);
}
.booking-dialog-row strong {
  font-weight: 600;
}
.booking-dialog-actions {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}
.booking-dialog-actions .form-primary {
  flex: 1;
  background: linear-gradient(135deg, #10b981, #059669);
  border: 1px solid rgba(52, 211, 153, 0.5);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
  color: #fff;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.booking-dialog-actions .form-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}
.booking-dialog-actions .form-secondary.danger {
  border-color: rgba(239, 68, 68, 0.35);
  color: #ef4444;
}
.booking-dialog-actions .form-secondary.danger:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
}
.neon-green { color: #10b981; text-shadow: 0 0 12px rgba(16, 185, 129, 0.5); }
.neon-cyan { color: #06b6d4; text-shadow: 0 0 12px rgba(6, 182, 212, 0.5); }

.history-book-btn {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.history-book-btn:hover {
  background: rgba(16, 185, 129, 0.3);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
  transform: translateY(-1px);
}

/* ==========================================================================
   2FA AUTHENTICATION & SETUP DIALOGS (HIGH SECURITY)
   ========================================================================== */
dialog:not([open]) {
  display: none !important;
}

.auth-dialog {
  border: 1px solid rgba(85, 231, 255, 0.28);
  border-radius: var(--radius-lg);
  padding: 0;
  max-width: 480px;
  width: calc(100% - 32px);
  max-height: calc(100dvh - 40px);
  background: linear-gradient(155deg, rgba(8, 20, 34, 0.94), rgba(4, 10, 18, 0.98));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.8), 0 0 40px rgba(85, 231, 255, 0.18);
  color: var(--text);
  margin: auto;
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow: hidden;
}
.auth-dialog[open] {
  display: flex;
  flex-direction: column;
}
.auth-dialog::backdrop {
  background: rgba(2, 6, 12, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.auth-dialog-content {
  padding: 28px 24px 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
  min-height: 0;
}
.auth-dialog-header {
  text-align: center;
  margin-bottom: 20px;
}
.auth-badge-icon {
  font-size: 38px;
  margin-bottom: 6px;
  filter: drop-shadow(0 0 12px rgba(85, 231, 255, 0.5));
}
.auth-dialog-header h2 {
  margin: 8px 0 6px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.auth-dialog-header p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.auth-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}
.auth-label input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--text);
  font-size: 15px;
  padding: 12px 14px;
  outline: none;
  transition: all 0.2s ease;
}
.auth-label input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 16px rgba(85, 231, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
}
.setup-step {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.step-instruction {
  margin: 0;
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
}
.qr-container {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #0a101f;
  border: 1px solid rgba(85, 231, 255, 0.25);
  border-radius: 16px;
  padding: 14px;
  margin: 6px 0;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}
.qr-container svg {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}
.secret-copy-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 12px;
}
.secret-copy-box code {
  color: var(--cyan);
  font-family: monospace;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.backup-codes-box {
  background: rgba(168, 140, 255, 0.08);
  border: 1px solid rgba(168, 140, 255, 0.25);
  border-radius: 14px;
  padding: 14px;
}
.backup-codes-header strong {
  display: block;
  font-size: 13px;
  color: var(--violet);
  margin-bottom: 2px;
}
.backup-codes-header small {
  color: var(--muted);
  font-size: 11.5px;
}
.backup-codes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 10px 0;
}
.backup-code-pill {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(168, 140, 255, 0.3);
  color: var(--text);
  font-family: monospace;
  font-size: 13px;
  font-weight: 700;
  padding: 6px;
  text-align: center;
  border-radius: 8px;
}
.backup-actions {
  display: flex;
  gap: 8px;
}
.auth-feedback {
  font-size: 12.5px;
  min-height: 18px;
  text-align: center;
  font-weight: 600;
}
.auth-feedback.error { color: var(--red); }
.auth-feedback.success { color: var(--green); }
.auth-dialog-actions {
  display: flex;
  margin-top: 6px;
}
.auth-dialog-actions .form-primary {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
}
.cyan-glow {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  border: 1px solid rgba(85, 231, 255, 0.5);
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.4);
  color: #fff;
}
.cyan-glow:hover {
  box-shadow: 0 6px 26px rgba(6, 182, 212, 0.6);
  transform: translateY(-1px);
}

/* ==========================================================================
   SERVER BOT PROCESS BAR & MOBILE CONTROLS
   ========================================================================== */
.bot-quick-controls {
  display: flex;
  gap: 6px;
  align-items: center;
}
.btn-bot-action {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-bot-action:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}
.btn-bot-action.start { border-color: rgba(112, 241, 187, 0.35); color: var(--green); }
.btn-bot-action.start:hover { background: rgba(112, 241, 187, 0.2); }
.btn-bot-action.restart { border-color: rgba(85, 231, 255, 0.35); color: var(--cyan); }
.btn-bot-action.restart:hover { background: rgba(85, 231, 255, 0.2); }
.btn-bot-action.stop { border-color: rgba(255, 124, 144, 0.35); color: var(--red); }
.btn-bot-action.stop:hover { background: rgba(255, 124, 144, 0.2); }

.btn-logout {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-logout:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.server-bot-banner {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 16px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(168, 140, 255, 0.08));
  border: 1px solid rgba(85, 231, 255, 0.25);
}
.banner-status-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.banner-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulse 2s infinite;
}
.banner-pulse-dot.stopped {
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
}
.banner-status-info strong {
  display: block;
  font-size: 13.5px;
  line-height: 1.2;
}
.banner-status-info small {
  font-size: 11.5px;
  color: var(--muted);
}
.banner-controls {
  display: flex;
  gap: 6px;
}
.banner-btn {
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line-strong);
  color: var(--text);
  cursor: pointer;
}
.banner-btn.danger {
  border-color: rgba(255, 124, 144, 0.4);
  color: var(--red);
}

/* ==========================================================================
   MOBILE BOTTOM NAVIGATION DOCK (SMARTPHONES)
   ========================================================================== */
.mobile-dock {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(4, 10, 18, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--line-strong);
  z-index: 900;
  padding-bottom: env(safe-area-inset-bottom, 0);
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
}
.dock-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 0;
  cursor: pointer;
  transition: all 0.15s ease;
  height: 100%;
}
.dock-icon {
  font-size: 18px;
}
.dock-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.dock-btn.is-active {
  color: var(--cyan);
}
.dock-btn.is-active .dock-icon {
  filter: drop-shadow(0 0 8px var(--cyan));
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(85, 231, 255, 0.08);
  border: 1px solid rgba(85, 231, 255, 0.25);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--cyan);
}

/* ==========================================================================
   ADMIN USER & SECURITY MANAGEMENT
   ========================================================================== */
.admin-section {
  margin-top: 24px;
  border-radius: var(--radius-xl);
  padding: 24px;
}
.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.admin-card {
  border-radius: var(--radius-lg);
  padding: 18px;
  background: rgba(10, 24, 38, 0.65);
}
.admin-card.full-width {
  grid-column: 1 / -1;
}
.admin-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}
.admin-card-header strong {
  font-size: 14px;
}
.admin-card-header small {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  color: var(--muted);
}
.admin-table-container {
  overflow-x: auto;
  max-height: 380px;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  text-align: left;
}
.admin-table th {
  padding: 8px 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  border-bottom: 1px solid var(--line-strong);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.admin-table td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.admin-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.badge-role-admin {
  background: rgba(168, 140, 255, 0.15);
  border: 1px solid rgba(168, 140, 255, 0.4);
  color: var(--violet);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
}
.badge-role-user {
  background: rgba(85, 231, 255, 0.12);
  border: 1px solid rgba(85, 231, 255, 0.3);
  color: var(--cyan);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
}
.badge-status {
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
}
.badge-status.active { background: rgba(112, 241, 187, 0.15); color: var(--green); border: 1px solid rgba(112, 241, 187, 0.4); }
.badge-status.disabled { background: rgba(255, 124, 144, 0.15); color: var(--red); border: 1px solid rgba(255, 124, 144, 0.4); }
.badge-status.pending { background: rgba(255, 198, 109, 0.15); color: var(--amber); border: 1px solid rgba(255, 198, 109, 0.4); }

.geo-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
}
.device-chip {
  font-size: 11px;
  color: var(--muted);
}

.anomaly-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 800;
}
.anomaly-none { background: rgba(112, 241, 187, 0.1); color: var(--green); }
.anomaly-low { background: rgba(85, 231, 255, 0.15); color: var(--cyan); }
.anomaly-medium { background: rgba(255, 198, 109, 0.2); color: var(--amber); }
.anomaly-high { background: rgba(255, 124, 144, 0.2); color: var(--red); }
.anomaly-critical {
  background: rgba(239, 68, 68, 0.35);
  color: #ff3344;
  border: 1px solid #ff3344;
  animation: pulse 1.5s infinite;
}

.table-btn {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s ease;
}
.table-btn:hover { background: rgba(255, 255, 255, 0.15); }
.table-btn.danger { color: var(--red); border-color: rgba(255, 124, 144, 0.3); }
.table-btn.danger:hover { background: rgba(255, 124, 144, 0.2); }

.invite-generator-card {
  border: 1px solid rgba(85, 231, 255, 0.28);
  background: linear-gradient(135deg, rgba(85, 231, 255, 0.04), rgba(168, 140, 255, 0.03));
}
.invite-generator-form {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.invite-form-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr auto;
  gap: 12px;
  align-items: flex-end;
}
.invite-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.invite-form-field span {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.invite-form-field input,
.invite-form-field select {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 13px;
  padding: 9px 12px;
  border-radius: 10px;
  outline: none;
  transition: all 0.2s ease;
}
.invite-form-field input:focus,
.invite-form-field select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 12px rgba(85, 231, 255, 0.25);
}
.invite-form-submit button {
  height: 38px;
  white-space: nowrap;
  font-size: 12.5px;
  font-weight: 700;
  padding: 0 16px;
}

.invite-created-box {
  background: rgba(85, 231, 255, 0.08);
  border: 1px solid rgba(85, 231, 255, 0.35);
  border-radius: 14px;
  padding: 14px 16px;
  margin-top: 6px;
  animation: fadeIn 0.25s ease-out;
}
.invite-created-header strong {
  display: block;
  color: var(--cyan);
  font-size: 13px;
  margin-bottom: 2px;
}
.invite-created-header small {
  color: var(--muted);
  font-size: 11.5px;
}
.invite-url-field {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.invite-url-field input {
  flex: 1;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(85, 231, 255, 0.4);
  color: #55e7ff;
  font-family: monospace;
  font-size: 12.5px;
  font-weight: 600;
  padding: 9px 12px;
  border-radius: 10px;
}
.invite-url-field button {
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  padding: 0 16px;
}

@media (max-width: 1000px) {
  .invite-form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .invite-form-submit {
    grid-column: span 2;
  }
  .invite-form-submit button {
    width: 100%;
  }
}
@media (max-width: 600px) {
  .invite-form-grid {
    grid-template-columns: 1fr;
  }
  .invite-form-submit {
    grid-column: 1;
  }
  .invite-url-field {
    flex-direction: column;
  }
}

.neon-violet { color: #c084fc; text-shadow: 0 0 12px rgba(192, 132, 252, 0.5); }

.telegram-config-card {
  border-color: rgba(85, 231, 255, 0.22);
}

.cyan-glow {
  background: linear-gradient(135deg, #00d2ff, #3a7bd5) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 18px rgba(0, 210, 255, 0.35) !important;
}
.cyan-glow:hover {
  box-shadow: 0 6px 24px rgba(0, 210, 255, 0.5) !important;
  transform: translateY(-1px);
}

@media (max-width: 860px) {
  .desktop-only { display: none !important; }
  .server-bot-banner { display: flex; }
  .mobile-dock { display: grid; }
  .mobile-dock.has-admin { grid-template-columns: repeat(5, 1fr); }
  .shell { padding-bottom: 84px; }
  .bot-quick-controls { display: none; }
  .admin-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}


