/* ConfigGate — graphical UI */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --font: 'Outfit', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --bg: #05070d;
  --bg-elevated: #0a0e18;
  --surface: rgba(14, 20, 38, 0.65);
  --surface-solid: #0e1426;
  --border: rgba(255, 255, 255, 0.07);
  --border-glow: rgba(91, 140, 255, 0.35);
  --text: #f2f6ff;
  --text-muted: #8494b8;
  --accent: #5b8cff;
  --accent-2: #a855f7;
  --accent-3: #22d3ee;
  --accent-glow: rgba(91, 140, 255, 0.4);
  --success: #34d399;
  --success-bg: rgba(52, 211, 153, 0.1);
  --warning: #fbbf24;
  --warning-bg: rgba(251, 191, 36, 0.08);
  --danger: #fb7185;
  --danger-bg: rgba(251, 113, 133, 0.1);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 32px 64px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

/* ─── Animated background ─── */
.bg-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-scene__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(91, 140, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 140, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 75%);
}

.bg-scene__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  animation: orb-float 18s ease-in-out infinite;
}

.bg-scene__orb--1 {
  width: min(55vw, 480px);
  height: min(55vw, 480px);
  top: -15%;
  right: -10%;
  background: radial-gradient(circle, rgba(91, 140, 255, 0.35) 0%, transparent 65%);
  animation-delay: 0s;
}

.bg-scene__orb--2 {
  width: min(50vw, 420px);
  height: min(50vw, 420px);
  bottom: -12%;
  left: -8%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.28) 0%, transparent 65%);
  animation-delay: -6s;
}

.bg-scene__orb--3 {
  width: min(35vw, 280px);
  height: min(35vw, 280px);
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(34, 211, 238, 0.12) 0%, transparent 70%);
  animation-delay: -12s;
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(3%, -4%) scale(1.05); }
  66% { transform: translate(-2%, 3%) scale(0.97); }
}

.bg-scene__orb--3 {
  animation-name: orb-float-center;
}

@keyframes orb-float-center {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-48%, -52%) scale(1.08); }
}

.bg-scene__noise {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: #9ec4ff; }

.app-root {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.app-root--center {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}

.app-root--page {
  padding: 28px 24px 48px;
  max-width: 1140px;
  margin: 0 auto;
}

.app-root--narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 20px 56px;
}

/* ─── Brand ─── */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text);
}

.brand:hover { color: var(--text); }

.brand__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 16px rgba(91, 140, 255, 0.45));
}

.brand__text { display: flex; flex-direction: column; gap: 2px; }

.brand__name {
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 0%, #b8c8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand__tag {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ─── Glass cards ─── */
.glass {
  position: relative;
  background: linear-gradient(145deg, rgba(22, 30, 55, 0.75) 0%, rgba(12, 16, 32, 0.85) 100%);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  pointer-events: none;
}

.glass::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 60%;
  height: 100%;
  background: radial-gradient(circle, rgba(91, 140, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.glass--hero {
  padding: 0;
  max-width: 920px;
  width: 100%;
}

.glass--panel { padding: 28px; }
.glass--sm { padding: 22px; }

/* ─── Hero layout (landing) ─── */
.hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 768px) {
  .hero-layout {
    grid-template-columns: 1fr 1fr;
    min-height: 520px;
  }
}

.hero-layout__content {
  padding: 40px 36px 36px;
  position: relative;
  z-index: 1;
}

.hero-layout__visual {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, rgba(91, 140, 255, 0.12) 0%, rgba(168, 85, 247, 0.08) 50%, transparent 100%);
  border-top: 1px solid var(--border);
}

@media (min-width: 768px) {
  .hero-layout__visual {
    border-top: none;
    border-left: 1px solid var(--border);
    min-height: auto;
  }
}

.hero-illustration {
  width: 100%;
  max-width: 320px;
  height: auto;
  animation: hero-pulse 4s ease-in-out infinite;
}

@keyframes hero-pulse {
  0%, 100% { opacity: 0.92; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.02); }
}

/* ─── Typography ─── */
h1, .h1 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
  background: linear-gradient(135deg, #ffffff 0%, #c5d4f5 55%, #8eb4ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2, .h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-muted);
}

.lead {
  color: var(--text-muted);
  margin: 0 0 24px;
  font-size: 1rem;
  line-height: 1.65;
}

.page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.page-header__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* ─── Steps indicator ─── */
.steps {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  padding: 4px;
}

.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.step__num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}

.step.is-active {
  color: var(--text);
  border-color: rgba(91, 140, 255, 0.35);
  background: rgba(91, 140, 255, 0.08);
}

.step.is-active .step__num {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none;
  color: #fff;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.step.is-done .step__num {
  background: var(--success-bg);
  border-color: rgba(52, 211, 153, 0.4);
  color: var(--success);
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}

.btn:active { transform: scale(0.97); }

.btn--primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
  box-shadow: 0 4px 24px var(--accent-glow), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.btn--primary:hover {
  color: #fff;
  filter: brightness(1.08);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text);
  border-color: var(--border-glow);
}

.btn--danger {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(251, 113, 133, 0.3);
}

.btn--block { width: 100%; }

.btn svg { width: 18px; height: 18px; }

/* ─── Forms ─── */
.field { margin-bottom: 18px; position: relative; z-index: 1; }

.field label,
.field__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.field input[type=text],
.field input[type=password],
.field input[type=url],
.field input[type=number],
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(91, 140, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(91, 140, 255, 0.12);
}

.field textarea { min-height: 96px; resize: vertical; }

.field--check label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: var(--text);
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: 0;
}

.field--check input { width: auto; accent-color: var(--accent); }

/* ─── Alerts ─── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  margin-bottom: 20px;
  border: 1px solid;
  position: relative;
  z-index: 1;
}

.alert--success {
  background: var(--success-bg);
  border-color: rgba(52, 211, 153, 0.3);
  color: #6ee7b7;
  white-space: pre-wrap;
  word-break: break-word;
}

.alert--warn {
  background: var(--warning-bg);
  border-color: rgba(251, 191, 36, 0.25);
  color: #fcd34d;
}

.alert--error {
  background: var(--danger-bg);
  border-color: rgba(251, 113, 133, 0.3);
  color: #fda4af;
}

/* ─── Badges ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 5px 11px;
  border-radius: 100px;
  border: 1px solid transparent;
}

.badge--vless { background: rgba(91, 140, 255, 0.15); color: #93b4ff; border-color: rgba(91, 140, 255, 0.25); }
.badge--vmess { background: rgba(168, 85, 247, 0.15); color: #c4b5fd; border-color: rgba(168, 85, 247, 0.25); }
.badge--trojan { background: rgba(52, 211, 153, 0.12); color: #6ee7b7; border-color: rgba(52, 211, 153, 0.25); }
.badge--shadowsocks { background: rgba(251, 191, 36, 0.12); color: #fcd34d; border-color: rgba(251, 191, 36, 0.25); }
.badge--http, .badge--socks { background: rgba(255, 255, 255, 0.06); color: var(--text-muted); }
.badge--other { background: rgba(255, 255, 255, 0.04); color: var(--text-muted); }

/* ─── Server cards ─── */
.server-pick {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.server-card {
  position: relative;
  cursor: pointer;
  display: block;
}

.server-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.server-card .glass {
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.server-card:hover .glass {
  transform: translateY(-2px);
  border-color: rgba(91, 140, 255, 0.3);
}

.server-card input:checked + .glass {
  border-color: rgba(91, 140, 255, 0.5);
  box-shadow: 0 0 0 1px rgba(91, 140, 255, 0.25), 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 60px rgba(91, 140, 255, 0.08);
}

.server-card__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  position: relative;
  z-index: 1;
}

.server-card__radio {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.server-card__radio::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  transform: scale(0);
  transition: transform var(--transition);
}

.server-card input:checked + .glass .server-card__radio {
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.server-card input:checked + .glass .server-card__radio::after {
  transform: scale(1);
}

.server-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.server-card__icon svg {
  width: 26px;
  height: 26px;
}

.server-card__icon--vless { background: linear-gradient(145deg, rgba(91, 140, 255, 0.25), rgba(91, 140, 255, 0.05)); color: #93b4ff; }
.server-card__icon--vmess { background: linear-gradient(145deg, rgba(168, 85, 247, 0.25), rgba(168, 85, 247, 0.05)); color: #c4b5fd; }
.server-card__icon--trojan { background: linear-gradient(145deg, rgba(52, 211, 153, 0.25), rgba(52, 211, 153, 0.05)); color: #6ee7b7; }
.server-card__icon--shadowsocks { background: linear-gradient(145deg, rgba(251, 191, 36, 0.25), rgba(251, 191, 36, 0.05)); color: #fcd34d; }
.server-card__icon--http,
.server-card__icon--socks,
.server-card__icon--other { background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02)); color: #a8b8d8; }

.server-card__title {
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

/* ─── Result / success card ─── */
.result-card {
  border-color: rgba(52, 211, 153, 0.35) !important;
  box-shadow: 0 0 40px rgba(52, 211, 153, 0.08), var(--shadow) !important;
}

.result-card::after {
  background: radial-gradient(circle, rgba(52, 211, 153, 0.08) 0%, transparent 70%) !important;
}

.result-card__check {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.2), rgba(52, 211, 153, 0.05));
  border: 1px solid rgba(52, 211, 153, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--success);
}

.result-card__check svg { width: 28px; height: 28px; }

.url-box {
  margin-top: 14px;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-muted);
  word-break: break-all;
  font-family: var(--font-mono);
}

.meta-note {
  font-size: 0.88rem;
  color: var(--success);
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.code-block {
  display: block;
  margin-top: 10px;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  font-family: var(--font-mono);
  word-break: break-all;
  color: #9eb0d8;
  line-height: 1.55;
}

/* ─── Tables ─── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(22, 30, 55, 0.6), rgba(12, 16, 32, 0.8));
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.data-table th,
.data-table td {
  padding: 15px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.25);
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr { transition: background var(--transition); }
.data-table tbody tr:hover td { background: rgba(91, 140, 255, 0.04); }
.data-table tr.is-off { opacity: 0.4; }
.data-table code { font-size: 0.7rem; font-family: var(--font-mono); color: #9eb0d8; }

/* ─── Admin bar ─── */
.admin-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  padding: 18px 22px;
  background: linear-gradient(145deg, rgba(22, 30, 55, 0.5), rgba(12, 16, 32, 0.7));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-nav a {
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: all var(--transition);
}

.admin-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.admin-nav a.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(91, 140, 255, 0.2), rgba(168, 85, 247, 0.15));
  border-color: rgba(91, 140, 255, 0.3);
  box-shadow: 0 2px 12px rgba(91, 140, 255, 0.15);
}

/* ─── Features (landing) ─── */
.features {
  display: grid;
  gap: 10px;
  margin: 28px 0;
}

.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: border-color var(--transition), background var(--transition);
}

.feature-item:hover {
  border-color: rgba(91, 140, 255, 0.2);
  background: rgba(91, 140, 255, 0.04);
}

.feature-item__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(91, 140, 255, 0.2), rgba(168, 85, 247, 0.1));
  color: #93b4ff;
  border: 1px solid rgba(91, 140, 255, 0.2);
}

.feature-item__icon svg { width: 20px; height: 20px; }

.feature-item strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 3px;
  color: var(--text);
}

.feature-item span {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.footer-link {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
}

.empty-state {
  text-align: center;
  padding: 56px 28px;
  color: var(--text-muted);
}

.empty-state__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  opacity: 0.5;
}

.stack { display: flex; flex-direction: column; gap: 16px; }

.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.page-head {
  margin-bottom: 8px;
}

.app-root--center .glass--hero { text-align: left; }

.app-root--center .glass--hero.glass--login {
  max-width: 440px;
  padding: 40px 36px;
}

/* ─── Config status (admin) ─── */
.status-ok {
  color: var(--success);
  font-size: 0.85rem;
  font-weight: 600;
}

.status-missing {
  color: var(--danger);
  font-size: 0.85rem;
  font-weight: 600;
}

.badge--no-config {
  background: var(--danger-bg);
  color: #fda4af;
  border: 1px solid rgba(251, 113, 133, 0.4);
  animation: pulse-warn 2s ease-in-out infinite;
}

@keyframes pulse-warn {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}

.proto-row {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 12px;
  background: rgba(0, 0, 0, 0.2);
  transition: border-color var(--transition);
}

.proto-row.is-missing {
  border-color: rgba(251, 113, 133, 0.45);
  background: rgba(251, 113, 133, 0.06);
  box-shadow: 0 0 0 1px rgba(251, 113, 133, 0.15);
}

.proto-row.is-ok {
  border-color: rgba(52, 211, 153, 0.25);
}

.proto-row__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.proto-row__attach {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  cursor: pointer;
}

.proto-row__attach input { accent-color: var(--accent); width: auto; }

.proto-row textarea {
  width: 100%;
  min-height: 72px;
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  resize: vertical;
}

.proto-row.is-missing textarea {
  border-color: rgba(251, 113, 133, 0.35);
}

.proto-row.is-missing textarea::placeholder {
  color: rgba(251, 113, 133, 0.6);
}

.auto-banner {
  border: 1px solid rgba(91, 140, 255, 0.25);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(91, 140, 255, 0.08), rgba(168, 85, 247, 0.05));
}

.auto-banner__title {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 600;
}

.auto-banner__steps {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.auto-banner__steps li { margin-bottom: 4px; }

.proto-row__auto-fields {
  display: grid;
  gap: 10px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.proto-row__auto-fields[hidden] {
  display: none !important;
}

.proto-row__hint {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.proto-row__status-pill {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
}

.proto-row__status-pill--ok {
  color: var(--success);
  background: var(--success-bg);
}

.proto-row__status-pill--warn {
  color: var(--danger);
  background: var(--danger-bg);
}

.proto-row__status-pill--off {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
}

.server-card--disabled {
  cursor: not-allowed;
  opacity: 0.85;
}

.server-card--disabled .glass {
  border-color: rgba(251, 113, 133, 0.35) !important;
  background: rgba(251, 113, 133, 0.05) !important;
}

.server-card--disabled input {
  pointer-events: none;
}

@media (max-width: 600px) {
  .hero-layout__content { padding: 28px 22px; }
  .steps { flex-direction: column; }
  .step { flex-direction: row; justify-content: flex-start; }
  .admin-bar { padding: 14px; }
}
