:root {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: #0b1220;
  color: #e8eeff;
  line-height: 1.55;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 28px;
  background: radial-gradient(circle at top, rgba(70, 100, 255, 0.18), transparent 60%), #050914;
  padding: 0 16px 36px;
}

body.menu-open {
  overflow: hidden;
}

.login-screen {
  width: min(520px, 100%);
  margin: 48px auto 0;
  padding: 32px 36px 40px;
  border-radius: 28px;
  background: rgba(6, 12, 26, 0.86);
  border: 1px solid rgba(120, 152, 255, 0.25);
  box-shadow: 0 35px 120px -50px rgba(50, 70, 150, 0.8);
  backdrop-filter: blur(18px);
  display: grid;
  gap: 24px;
  text-align: left;
}

.login-screen h1 {
  margin: 0;
  font-size: 28px;
  text-align: center;
  color: #f2f5ff;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(16, 22, 46, 0.9);
  border: 1px solid rgba(120, 152, 255, 0.25);
}

.auth-tab {
  flex: 1;
  border: none;
  background: transparent;
  color: rgba(230, 236, 255, 0.7);
  font-size: 15px;
  font-weight: 500;
  padding: 10px 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.auth-tab--active {
  background: linear-gradient(135deg, #4f8bff, #7d7bff);
  color: #fff;
  box-shadow: 0 12px 30px -14px rgba(92, 130, 255, 0.7);
}

.auth-form {
  display: grid;
  gap: 16px;
  padding: 22px 24px;
  border-radius: 20px;
  border: 1px solid rgba(120, 152, 255, 0.2);
  background: rgba(12, 18, 38, 0.88);
}

.auth-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.auth-form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: rgba(231, 236, 255, 0.8);
}

.auth-form input,
.auth-form select {
  border-radius: 14px;
  border: 1px solid rgba(125, 155, 255, 0.35);
  background: rgba(8, 13, 30, 0.95);
  color: #f4f7ff;
  font-size: 15px;
  padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-form input:focus,
.auth-form select:focus {
  outline: none;
  border-color: rgba(130, 170, 255, 0.85);
  box-shadow: 0 0 0 2px rgba(90, 140, 255, 0.35);
}

.login-screen button.primary {
  width: 100%;
  margin-top: 4px;
  padding: 12px 18px;
  font-size: 16px;
}

.login-screen select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #7c95ff 50%),
    linear-gradient(135deg, #7c95ff 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

@media (max-width: 520px) {
  .login-screen {
    padding: 28px 20px 32px;
  }

  .auth-tabs {
    flex-direction: column;
    border-radius: 20px;
  }

  .auth-tab {
    border-radius: 16px;
  }

  .auth-form {
    padding: 18px;
  }
}

#app {
  width: min(960px, 100%);
  background: rgba(10, 16, 30, 0.88);
  border: 1px solid rgba(110, 138, 255, 0.22);
  border-radius: 28px;
  box-shadow: 0 40px 120px -48px rgba(40, 52, 120, 0.6);
  backdrop-filter: blur(18px);
  padding: 30px clamp(16px, 4vw, 36px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 28px;
  box-sizing: border-box;
}

.app-shell {
  padding-top: 80px;
}

.app > header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.app-brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.brand-icon {
  width: 64px;
  height: 64px;
  border-radius: 22px;
  background: linear-gradient(135deg, #6270ff, #76b0ff);
  display: grid;
  place-items: center;
  font-size: 32px;
}

.app-brand h1 {
  margin: 0;
  font-size: 27px;
  color: #f7f9ff;
}

.app-brand p {
  margin: 3px 0 0;
  color: rgba(227, 238, 255, 0.65);
  font-size: 14px;
}

.progress-wrap {
  flex: 1;
  min-width: 240px;
  display: grid;
  gap: 8px;
}

.section-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(227, 238, 255, 0.55);
}

.progress-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(110, 133, 255, 0.25);
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(120deg, #5367ff, #67b6ff);
  transition: width 0.3s ease;
}

.progress-label {
  font-size: 14px;
  color: rgba(227, 238, 255, 0.75);
}

main {
  display: grid;
  gap: 24px;
}

.step-headline {
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
}

.step-index {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(227, 238, 255, 0.55);
}

.step-headline h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 32px);
  color: #f5f8ff;
}

.step-body {
  display: grid;
  gap: 18px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 120;
  background: radial-gradient(circle at 0 0, #182850 0, #040814 40%, #040814 100%);
  padding: 12px 32px;
  width: 100%;
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-logo {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: block;
  object-fit: contain;
  background: transparent;
  flex-shrink: 0;
}

.topbar-title {
  font-weight: 600;
  font-size: 18px;
}

.topbar-nav {
  display: flex;
  gap: 12px;
  margin-left: auto;
}

.topbar-summary {
  margin-left: 16px;
  font-size: 13px;
  color: rgba(230, 238, 255, 0.8);
}
.topbar-summary span {
  font-weight: 600;
  color: #f7f9ff;
}

.topbar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 20, 0.78);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: calc(var(--topbar-height) + 32px) 16px 48px;
  z-index: 500;
}

.topbar-overlay[hidden] {
  display: none !important;
}

.topbar-nav button,
.topbar-menu button {
  border-radius: 18px;
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, #1b2648, #243b8d);
  font-size: 14px;
  white-space: nowrap;
  color: #f4f7ff;
  cursor: pointer;
}

.topbar-menu button {
  width: 100%;
  justify-content: center;
}

.topbar-burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  cursor: pointer;
}

.topbar-burger span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  display: block;
}

.topbar-menu {
  width: min(420px, 100%);
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 28px 32px 32px;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 12, 32, 0.95);
  box-shadow: 0 28px 80px -40px rgba(0, 0, 0, 0.8);
}

.topbar-menu.open {
  display: flex;
}

.topbar-close {
  align-self: flex-end;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(16, 22, 48, 0.8);
  color: #fff;
  width: 38px;
  height: 38px;
  font-size: 16px;
  margin-bottom: 4px;
  cursor: pointer;
}

#admin-panel {
  overflow: hidden;
}

@media (max-width: 768px) {
  .topbar-inner {
    padding-inline: 8px;
  }

  .topbar-nav {
    display: none;
  }

  .topbar-summary {
    display: none;
  }

  .topbar-burger {
    display: flex;
  }
}

.jump-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex: 1 1 320px;
}

.jump-actions select {
  /* flex: 1 1 240px; */
  background: rgba(12, 20, 40, 0.95);
  border: 1px solid rgba(120, 150, 255, 0.3);
  border-radius: 12px;
  color: #f1f5ff;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.jump-actions select option {
  color: #0b1220;
}

.jump-actions select:invalid {
  color: rgba(190, 205, 255, 0.65);
}

.jump-actions select:focus,
.jump-actions select:hover {
  border-color: rgba(150, 180, 255, 0.9);
  box-shadow: 0 16px 32px -24px rgba(120, 160, 255, 0.55);
}

.jump-actions button {
  white-space: nowrap;
}

.docs-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 16, 0.72);
  backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  padding: 32px 16px;
  z-index: 2000;
}

.docs-modal {
  width: min(880px, 100%);
  max-height: min(88vh, 960px);
  background: rgba(12, 20, 40, 0.95);
  border: 1px solid rgba(110, 150, 255, 0.28);
  border-radius: 24px;
  box-shadow: 0 40px 120px -50px rgba(50, 80, 180, 0.65);
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

.docs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 28px;
  background: rgba(18, 30, 58, 0.9);
  border-bottom: 1px solid rgba(120, 150, 255, 0.16);
}

.docs-header h2 {
  margin: 0;
  font-size: 22px;
  color: #f5f8ff;
}

.docs-close {
  font-size: 18px;
  line-height: 1;
  color: rgba(227, 238, 255, 0.78);
}

.docs-body {
  padding: 24px 32px 32px;
  overflow-y: auto;
  display: grid;
  gap: 24px;
}

body.details-open {
  overflow: hidden;
}

body.setup-loading {
  overflow: hidden;
}

.details-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 16, 0.82);
  backdrop-filter: blur(14px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 32px 16px 48px;
  z-index: 2100;
  overflow-y: auto;
}

.details-modal {
  width: min(720px, 100%);
  max-height: min(90vh, 900px);
  background: rgba(10, 18, 38, 0.96);
  border: 1px solid rgba(110, 150, 255, 0.22);
  border-radius: 24px;
  box-shadow: 0 32px 120px -48px rgba(40, 70, 180, 0.8);
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  margin: 0 auto;
}

.details-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px;
  background: rgba(18, 28, 60, 0.9);
  border-bottom: 1px solid rgba(120, 150, 255, 0.14);
}

.details-header h3 {
  margin: 0;
  font-size: 20px;
  color: #f6f8ff;
}

.details-close {
  font-size: 18px;
  line-height: 1;
  color: rgba(227, 238, 255, 0.78);
}

.details-body {
  padding: 20px 26px 28px;
  overflow-y: auto;
  display: grid;
  gap: 16px;
}

.setup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 16, 0.86);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  z-index: 3000;
}

.setup-box {
  display: grid;
  gap: 14px;
  justify-items: center;
  padding: 28px 26px 22px;
  border-radius: 24px;
  background: radial-gradient(circle at 20% 20%, rgba(90, 136, 255, 0.14), transparent 40%),
    rgba(12, 20, 38, 0.95);
  border: 1px solid rgba(110, 150, 255, 0.38);
  box-shadow: 0 28px 100px -40px rgba(60, 100, 255, 0.7);
  width: min(360px, 86vw);
}

.setup-pulse {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #73b5ff, #4a6bff);
  position: relative;
  box-shadow: 0 0 0 0 rgba(80, 140, 255, 0.45);
  animation: pulse 1.6s infinite ease-in-out;
}

.setup-label {
  font-size: 15px;
  text-align: center;
  color: #e9edff;
}

.setup-progress {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  border: 1px solid rgba(140, 170, 255, 0.35);
}

.setup-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(120deg, #5cf2c4, #5e8bff);
  transition: width 0.3s ease;
}

@keyframes pulse {
  0% {
    transform: scale(0.94);
    box-shadow: 0 0 0 0 rgba(80, 140, 255, 0.45), 0 0 24px 4px rgba(80, 140, 255, 0.35);
  }
  70% {
    transform: scale(1.08);
    box-shadow: 0 0 0 32px rgba(80, 140, 255, 0), 0 0 40px 12px rgba(120, 200, 255, 0.4);
  }
  100% {
    transform: scale(0.94);
    box-shadow: 0 0 0 0 rgba(80, 140, 255, 0), 0 0 18px 3px rgba(80, 140, 255, 0.3);
  }
}

.docs-body section {
  display: grid;
  gap: 12px;
}

.docs-body h3 {
  margin: 0;
  font-size: 18px;
  color: #f0f4ff;
}

.docs-body p {
  margin: 0;
  color: rgba(227, 238, 255, 0.78);
}

.docs-body ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
  color: rgba(227, 238, 255, 0.78);
}

.docs-body code {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, "Courier New", monospace;
  background: rgba(20, 32, 60, 0.85);
  border: 1px solid rgba(120, 150, 255, 0.35);
  border-radius: 6px;
  padding: 2px 6px;
  color: rgba(180, 210, 255, 0.95);
}

.docs-hint {
  font-size: 14px;
  color: rgba(130, 170, 255, 0.82);
  border-left: 3px solid rgba(110, 150, 255, 0.6);
  padding-left: 12px;
}

.docs-figure {
  margin: 0;
  display: grid;
  gap: 10px;
  justify-items: center;
}

.docs-figure img {
  width: min(520px, 100%);
  border-radius: 18px;
  box-shadow: 0 24px 60px -34px rgba(80, 110, 255, 0.6);
}

.docs-figure figcaption {
  font-size: 13px;
  color: rgba(227, 238, 255, 0.65);
}

body.modal-open,
.start-screen {
  min-height: 360px;
  display: grid;
  place-items: center;
  gap: 24px;
  text-align: center;
  padding: 80px 20px;
  border-radius: 24px;
  background: radial-gradient(circle at top, rgba(90, 120, 255, 0.22), transparent 65%);
}

.start-screen .start-gif {
  display: block;
  width: min(520px, 90%);
  max-height: 260px;
  border-radius: 18px;
  object-fit: cover;
  margin: 0 auto;
  box-shadow: 0 24px 60px -32px rgba(80, 110, 255, 0.6);
}

.start-screen h3 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
}

.start-screen p {
  margin: 0;
  color: rgba(227, 238, 255, 0.72);
  max-width: 520px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.card {
  background: rgba(16, 28, 52, 0.86);
  border: 1px solid rgba(98, 124, 255, 0.23);
  border-radius: 20px;
  padding: 18px 20px;
  display: grid;
  gap: 10px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(120, 160, 255, 0.6);
  box-shadow: 0 24px 60px -32px rgba(80, 120, 255, 0.65);
}

.card.active {
  border-color: rgba(140, 170, 255, 0.95);
  background: rgba(26, 40, 70, 0.95);
  box-shadow: 0 28px 70px -34px rgba(90, 130, 255, 0.72);
}

.card h3 {
  margin: 0;
  font-size: 18px;
}

.card p {
  margin: 0;
  color: rgba(227, 238, 255, 0.75);
}

.bot-type-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bot-type-card {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1.6fr);
  gap: 16px;
  padding: 20px 24px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: radial-gradient(
      circle at 0 0,
      rgba(64, 88, 255, 0.12),
      transparent 55%
    ),
    #050815;
}

.bot-type-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.bot-type-radio input[type="radio"] {
  transform: scale(1.1);
}

.bot-type-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bot-type-title {
  font-weight: 600;
  font-size: 16px;
}

.bot-type-desc {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(230, 235, 255, 0.9);
}

.bot-type-commands {
  margin: 0;
  font-size: 12px;
  opacity: 0.8;
}

.bot-type-pay {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
}

.bot-type-price {
  font-size: 14px;
  opacity: 0.9;
}

.bot-type-btn {
  min-width: 140px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #f8f9ff;
  background: linear-gradient(135deg, #5d8bff, #8c5bff);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 22px -10px rgba(93, 139, 255, 0.9);
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background 0.15s ease;
}

.bot-type-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px -10px rgba(93, 139, 255, 0.95);
}

.bot-type-btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px -10px rgba(93, 139, 255, 0.9);
}

.bot-type-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.bot-price-cell {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(21, 32, 66, 0.65);
  border: 1px solid rgba(99, 129, 255, 0.25);
}

.bot-price-label {
  font-size: 14px;
  font-weight: 600;
  color: #f4f6ff;
  white-space: nowrap;
}

.bot-price-empty {
  font-size: 13px;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .bot-type-card {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .bot-type-pay {
    align-items: stretch;
  }

  .bot-type-btn {
    width: 100%;
  }

  .bot-price-cell {
    flex-direction: column;
    align-items: stretch;
    border-radius: 20px;
  }

  .bot-price-cell .bot-pay-btn {
    width: 100%;
    text-align: center;
  }
}

.commands {
  font-size: 13px;
  color: rgba(227, 238, 255, 0.68);
  word-break: break-word;
}

.info-block,
.note-block {
  position: relative;
  background:
    radial-gradient(circle at 12% 20%, rgba(108, 138, 255, 0.08), transparent 38%),
    radial-gradient(circle at 85% 10%, rgba(90, 200, 255, 0.08), transparent 28%),
    rgba(12, 20, 42, 0.92);
  border: 1px solid rgba(120, 150, 255, 0.24);
  border-radius: 20px;
  padding: 18px 20px;
  display: grid;
  gap: 12px;
  box-shadow: 0 24px 70px -42px rgba(40, 80, 255, 0.45);
}

.note-block.warning {
  border-color: rgba(255, 190, 120, 0.55);
  background: linear-gradient(135deg, rgba(67, 44, 6, 0.9), rgba(92, 55, 10, 0.78));
  color: #ffe5c5;
}

.note-block.danger {
  border-color: rgba(255, 128, 128, 0.5);
  background: rgba(56, 8, 8, 0.8);
  color: #ffd2d2;
}

.info-ai-label {
  font-weight: 600;
  color: #f5f8ff;
}

.info-line {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.08);
}

.info-line-text {
  flex: 1 1 260px;
  position: relative;
  padding-left: 0;
  line-height: 1.5;
}

.info-line input[type="checkbox"] {
  transform: scale(1.1);
  margin-left: 12px;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inline-actions .ghost,
.inline-actions .primary {
  border-radius: 999px;
  font-weight: 600;
  padding: 8px 14px;
}

.inline-actions .copy-btn::before {
  content: "📋 ";
}

.inline-actions .prompt-open::before {
  content: "🚀 ";
}

.prompt-area {
  position: relative;
  background: rgba(9, 16, 32, 0.94);
  border: 1px solid rgba(102, 136, 255, 0.35);
  border-radius: 18px;
  padding: 26px 20px 18px;
  display: grid;
  gap: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 24px 60px -38px rgba(80, 130, 255, 0.7);
}

.prompt-area::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #4adeff, #7ea2ff);
  opacity: 0.4;
}

.prompt-area::after {
  content: "Prompt";
  position: absolute;
  top: 8px;
  right: 16px;
  font-size: 11px;
  color: rgba(230, 240, 255, 0.7);
  letter-spacing: 0.05em;
}

.prompt-area.prompt-area--terminal::after {
  content: "Terminal";
}

.prompt-area.prompt-area--terminal::before {
  background: linear-gradient(90deg, #5cf2c4, #45b1ff);
}

.prompt-text {
  margin: 0;
  white-space: pre-wrap;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, "Courier New", monospace;
  font-size: 14px;
  color: rgba(227, 238, 255, 0.9);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  padding: 10px 12px;
}

.prompt-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.prompt-actions .copy-btn {
  padding: 10px 16px;
}

.prompt-actions .prompt-open {
  padding: 10px 18px;
}

.prompt-collapsible {
  position: relative;
}

.prompt-collapse-head {
  display: flex;
  justify-content: flex-end;
}

.prompt-toggle {
  padding: 6px 12px;
  font-size: 12px;
}

.prompt-collapsible.collapsed .prompt-text[hidden] {
  display: none;
}

.prompt-collapsible .prompt-text[hidden] {
  display: none;
}

.step-details {
  margin-top: 8px;
  display: grid;
  gap: 12px;
}

.details-toggle {
  justify-self: flex-start;
  padding: 8px 14px;
  font-size: 13px;
}

.step-details-body {
  display: grid;
  gap: 12px;
}

.step-details-card {
  background: rgba(18, 26, 48, 0.9);
  border: 1px solid rgba(110, 138, 255, 0.22);
  border-radius: 16px;
  padding: 14px 16px;
  display: grid;
  gap: 10px;
}

.step-details-card header {
  font-weight: 600;
  font-size: 15px;
  color: #f4f7ff;
}

.step-details-card img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(110, 138, 255, 0.18);
  box-shadow: 0 12px 40px -26px rgba(70, 110, 255, 0.4);
}

.step-details-card p {
  margin: 0;
  font-size: 14px;
  color: rgba(227, 238, 255, 0.78);
}

#admin-panel {
  margin: 24px auto;
  max-width: 1100px;
  width: 100%;
  padding: 16px 24px;
  border-radius: 16px;
  background: rgba(10, 18, 40, 0.96);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
}

#admin-panel h2,
#admin-panel h3 {
  margin-bottom: 12px;
}

#admin-panel table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 13px;
}

#admin-panel th,
#admin-panel td {
  padding: 6px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
}

#admin-panel thead th {
  background: rgba(255, 255, 255, 0.04);
}

#admin-panel input[type="number"],
#admin-panel input[type="text"] {
  width: 100%;
  padding: 4px 6px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(4, 10, 30, 0.9);
  color: #fff;
  font-size: 12px;
}

#admin-panel .admin-settings {
  margin-bottom: 16px;
}

#admin-panel .admin-bots-table {
  margin-bottom: 24px;
}

#admin-panel .admin-purchases-wrap {
  max-height: 260px;
  overflow: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

#admin-panel .admin-purchases-table {
  margin-bottom: 0;
}

#admin-panel .admin-reset-progress {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 12px 0 24px;
}

#admin-panel .admin-reset-progress input {
  max-width: 120px;
}

.admin-analytics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0 16px;
}

.admin-analytics-card {
  flex: 1 1 180px;
  min-width: 160px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(18, 28, 60, 0.92);
  border: 1px solid rgba(110, 138, 255, 0.2);
  box-shadow: 0 18px 60px -40px rgba(70, 100, 255, 0.35);
  display: grid;
  gap: 6px;
}

.admin-analytics-label {
  font-size: 13px;
  color: rgba(230, 236, 255, 0.75);
}

.admin-analytics-card strong {
  font-size: 24px;
  color: #f6f7ff;
}

.admin-analytics-revenue {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}

.admin-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(80, 110, 255, 0.18);
  border: 1px solid rgba(120, 150, 255, 0.3);
  font-size: 12px;
  color: #f0f4ff;
}

.admin-chip--muted {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(240, 244, 255, 0.6);
}

.admin-settings-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(18, 26, 52, 0.92);
  border: 1px solid rgba(120, 150, 255, 0.18);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.admin-settings-card h5 {
  margin: 0 0 4px;
  font-size: 16px;
  color: #f4f7ff;
}

.admin-settings-card p {
  margin: 0;
  font-size: 13px;
  color: rgba(223, 229, 255, 0.75);
}

.admin-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(226, 232, 255, 0.9);
}

.admin-switch input {
  width: 16px;
  height: 16px;
  accent-color: #7c91ff;
}

.admin-user-analytics {
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(12, 20, 44, 0.95);
  border: 1px solid rgba(110, 140, 255, 0.22);
  box-shadow: 0 24px 80px -48px rgba(40, 70, 180, 0.45);
  display: grid;
  gap: 16px;
}

.admin-user-analytics header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-user-meta h4 {
  margin: 0 0 6px;
  font-size: 18px;
  color: #f6f7ff;
}

.admin-user-meta p {
  margin: 0;
  font-size: 13px;
  color: rgba(226, 232, 255, 0.75);
}

.admin-user-analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.admin-table-card h5 {
  margin: 0 0 10px;
  font-size: 15px;
  color: #f5f7ff;
}

.admin-table-card {
  display: grid;
  gap: 8px;
}

.admin-table-scroll {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
}

.admin-table-scroll table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table-scroll th,
.admin-table-scroll td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
}

.admin-table-scroll thead {
  background: rgba(255, 255, 255, 0.04);
}

.module-section {
  background: rgba(13, 22, 42, 0.92);
  border: 1px solid rgba(102, 136, 255, 0.22);
  border-radius: 20px;
  padding: 18px 22px;
  display: grid;
  gap: 14px;
  box-shadow: 0 18px 60px -44px rgba(60, 90, 190, 0.45);
}

.module-section + .module-section {
  margin-top: 12px;
}

.module-section h4 {
  margin: 0;
  font-size: 18px;
  color: #f4f7ff;
}

.module-section-desc {
  margin: 0;
  font-size: 14px;
  color: rgba(227, 238, 255, 0.75);
}

.module-section .form-row {
  grid-template-columns: 180px 1fr;
}

.module-section .prompt-area {
  margin-top: 4px;
}

.module-card {
  position: relative;
  padding-right: 48px;
}

.module-card input[type="checkbox"] {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #6fa7ff;
  background: rgba(9, 14, 28, 0.8);
  border-radius: 6px;
}

.module-card input[type="checkbox"]:focus-visible {
  outline: 2px solid rgba(130, 170, 255, 0.9);
  outline-offset: 2px;
}

.file-structure-selector {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  background: rgba(18, 28, 58, 0.88);
  border: 1px solid rgba(110, 138, 255, 0.28);
  border-radius: 18px;
  padding: 16px 18px;
  margin-bottom: 24px;
}

.file-structure-selector label {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(227, 238, 255, 0.66);
}

.file-structure-selector select {
  background: rgba(12, 20, 40, 0.95);
  border: 1px solid rgba(120, 150, 255, 0.35);
  border-radius: 12px;
  color: #f1f5ff;
  padding: 8px 12px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.file-structure-selector select:focus,
.file-structure-selector select:hover {
  border-color: rgba(150, 180, 255, 0.9);
  box-shadow: 0 18px 40px -28px rgba(120, 160, 255, 0.45);
}

.file-structure-section {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.file-card-stack {
  display: grid;
  gap: 16px;
}

.file-section-head {
  display: grid;
  gap: 6px;
}

.file-section-head h3 {
  margin: 0;
  font-size: 18px;
  color: #f5f8ff;
}

.file-section-head p {
  margin: 0;
  color: rgba(227, 238, 255, 0.62);
  font-size: 14px;
}

.file-card {
  background: rgba(16, 24, 46, 0.92);
  border: 1px solid rgba(110, 140, 255, 0.26);
  border-radius: 18px;
  padding: 16px 18px;
  display: grid;
  gap: 14px;
  box-shadow: 0 18px 60px -40px rgba(60, 90, 200, 0.45);
}

.card.recommended {
  border-color: rgba(120, 180, 255, 0.65);
  box-shadow: 0 24px 70px -36px rgba(100, 160, 255, 0.55);
  position: relative;
}

.backend-recommend {
  margin-top: 12px;
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(90, 150, 255, 0.18);
  color: rgba(210, 230, 255, 0.9);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.file-card.manual {
  border-color: rgba(140, 176, 255, 0.55);
}

.file-card.static {
  border-color: rgba(108, 210, 255, 0.4);
}

.file-card.backend.ai {
  border-color: rgba(132, 180, 255, 0.5);
}

.file-card.backend.dir,
.file-card.backend.info {
  border-style: dashed;
  border-color: rgba(150, 190, 255, 0.35);
}

.file-card-path {
  font-weight: 600;
  font-size: 15px;
  color: #f7f9ff;
  word-break: break-word;
}

.file-card-description,
.file-card-note {
  margin: 0;
  color: rgba(227, 238, 255, 0.78);
  font-size: 14px;
}

.file-card-note {
  font-size: 13px;
  color: rgba(200, 216, 255, 0.65);
}

.file-card-code {
  margin: 0;
  background: rgba(12, 17, 34, 0.95);
  border: 1px solid rgba(110, 138, 255, 0.3);
  border-radius: 12px;
  padding: 12px;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, "Courier New", monospace;
  font-size: 13px;
  color: rgba(227, 238, 255, 0.9);
  white-space: pre-wrap;
}

.file-card-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.file-section-hint {
  margin: 0;
  background: rgba(20, 32, 64, 0.6);
  border: 1px dashed rgba(110, 140, 255, 0.4);
  border-radius: 14px;
  padding: 14px 16px;
  color: rgba(227, 238, 255, 0.72);
  font-size: 14px;
}

.review-card {
  background: rgba(18, 28, 54, 0.92);
  border: 1px solid rgba(120, 150, 255, 0.28);
  border-radius: 20px;
  padding: 20px;
  display: grid;
  gap: 18px;
  box-shadow: 0 22px 68px -36px rgba(80, 120, 255, 0.45);
  cursor: default;
}

.review-card h3 {
  margin: 0;
  font-size: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 12px;
  align-items: center;
}

.form-label {
  font-size: 14px;
  color: rgba(227, 238, 255, 0.72);
}

.form-control {
  display: grid;
}

.form-control select,
.form-control textarea,
.form-control input[type="text"],
.form-control input[type="number"],
.form-control input[type="url"],
.form-control input[type="email"] {
  width: 100%;
  background: rgba(12, 20, 40, 0.95);
  border: 1px solid rgba(120, 150, 255, 0.3);
  border-radius: 12px;
  color: #f1f5ff;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control textarea {
  min-height: 68px;
  resize: vertical;
}

.form-control select:focus,
.form-control textarea:focus,
.form-control input[type="text"]:focus,
.form-control input[type="number"]:focus,
.form-control input[type="url"]:focus,
.form-control input[type="email"]:focus {
  border-color: rgba(150, 180, 255, 0.9);
  box-shadow: 0 16px 36px -26px rgba(120, 160, 255, 0.65);
}

.form-control select:hover,
.form-control textarea:hover,
.form-control input[type="text"]:hover,
.form-control input[type="number"]:hover,
.form-control input[type="url"]:hover,
.form-control input[type="email"]:hover {
  border-color: rgba(140, 170, 255, 0.6);
}

.form-control--static {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(18, 24, 46, 0.8);
  border: 1px dashed rgba(255, 202, 140, 0.45);
  display: grid;
  gap: 6px;
}

.form-control--static .readonly-value {
  font-weight: 600;
  color: #fff;
}

.form-hint.warning {
  margin: 0;
  font-size: 12px;
  color: #ffd8a0;
}

.form-control .textarea-readonly {
  background: rgba(24, 32, 58, 0.7);
  border-color: rgba(255, 200, 135, 0.45);
  color: rgba(233, 238, 255, 0.85);
  cursor: not-allowed;
}

.form-control .textarea-readonly:focus {
  box-shadow: none;
}

.brief-lock-note {
  margin: 12px 0 8px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 200, 140, 0.4);
  background: rgba(255, 196, 122, 0.08);
  color: #ffe3c2;
  font-size: 14px;
  line-height: 1.45;
}

.carousel {
  margin-top: 12px;
  display: grid;
  gap: 12px;
}

.carousel-slide {
  background: rgba(16, 28, 52, 0.92);
  border: 1px solid rgba(110, 138, 255, 0.32);
  border-radius: 18px;
  padding: 16px 18px;
  display: grid;
  gap: 10px;
}

.carousel-slide h4 {
  margin: 0;
  font-size: 16px;
  color: #f1f4ff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.carousel-slide h4::before {
  content: "🪄";
  font-size: 16px;
}

.carousel-slide p {
  margin: 0;
  font-size: 14px;
  color: rgba(227, 238, 255, 0.78);
}

.carousel-code {
  margin: 0;
  background: rgba(5, 12, 26, 0.92);
  border: 1px solid rgba(120, 150, 255, 0.35);
  border-radius: 14px;
  padding: 14px 14px 16px;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, "Courier New", monospace;
  font-size: 13px;
  color: rgba(227, 238, 255, 0.94);
  white-space: pre-wrap;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.carousel-code::before {
  content: "Термінал";
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 11px;
  color: rgba(210, 225, 255, 0.7);
  letter-spacing: 0.05em;
}

.carousel-code::after {
  content: "●  ●  ●";
  position: absolute;
  top: 8px;
  left: 12px;
  font-size: 12px;
  color: rgba(120, 150, 255, 0.7);
  letter-spacing: 2px;
}

.table-wrapper {
  overflow-x: auto;
  border: 1px solid rgba(102, 136, 255, 0.22);
  border-radius: 18px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  background: rgba(16, 28, 52, 0.9);
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  color: rgba(227, 238, 255, 0.78);
  font-size: 14px;
}

thead {
  background: rgba(102, 136, 255, 0.18);
}

tbody tr:not(:last-child) td {
  border-bottom: 1px solid rgba(102, 136, 255, 0.16);
}

.checklist {
  display: grid;
  gap: 12px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(18, 30, 56, 0.88);
  border: 1px solid rgba(102, 136, 255, 0.2);
  border-radius: 16px;
  padding: 12px 14px;
}

.check-item label {
  display: flex;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  color: rgba(227, 238, 255, 0.78);
}

button {
  border: 1px solid rgba(102, 136, 255, 0.35);
  background: rgba(26, 38, 70, 0.85);
  color: #f3f6ff;
  border-radius: 14px;
  padding: 12px 18px;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px -26px rgba(92, 126, 255, 0.6);
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

button.primary {
  border: none;
  background: linear-gradient(130deg, #5c6bff, #6bc2ff);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 24px 60px -30px rgba(80, 122, 255, 0.75);
}

button.ghost {
  background: transparent;
}

.step-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.step-actions .step-back {
  margin-right: auto;
  order: 1;
}

.step-actions .step-next {
  margin-left: auto;
  order: 3;
}

.step-actions .step-more {
  min-width: auto;
}

#step-details-mount {
  order: 2;
  flex: 0 1 240px;
  display: flex;
  justify-content: center;
  min-width: 160px;
}

#step-details-mount:empty {
  display: none;
}

.step-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.step-details .details-toggle {
  align-self: center;
}

.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: rgba(92, 120, 255, 0.95);
  color: #fff;
  padding: 14px 18px;
  border-radius: 14px;
  box-shadow: 0 24px 60px -32px rgba(70, 100, 255, 0.78);
  display: none;
}

@media (max-width: 900px) {
  #app {
    padding: 24px 18px 36px;
  }

  .app > header {
    flex-direction: column;
    align-items: flex-start;
  }

  .step-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .step-actions .step-back,
  .step-actions .step-next {
    width: 100%;
    margin: 0;
  }

  .step-actions .step-back {
    order: 1;
  }

  .step-actions .step-next {
    order: 2;
  }

  #step-details-mount {
    width: 100%;
    justify-content: center;
    order: 3;
  }

  .jump-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-left: 0;
  }

  .jump-actions select,
  .jump-actions button {
    width: 100%;
  }

  .jump-actions select {
    min-height: 48px;
    font-size: 13px;
    padding: 8px 10px;
  }

  .jump-actions button {
    min-height: 36px;
    padding: 10px 16px;
    font-size: 14px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .table-wrapper table {
    min-width: 520px;
  }

  .env-screen {
    padding: 0 12px 20px;
    margin: 70px 0 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .env-screen-inner {
    padding: 18px 18px 24px;
    border-radius: 20px;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
  }

  .env-screen .env-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .env-card {
    padding: 16px 18px;
    width: 100%;
    box-sizing: border-box;
  }

  .env-screen-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .env-actions {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }

  .btn-env {
    width: 100%;
    min-width: unset;
  }

  .env-card-progress {
    width: 100%;
  }

  .env-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .btn-env {
    width: 100%;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .docs-modal {
    max-height: 92vh;
  }

  #admin-panel {
    padding: 18px;
    margin: 20px auto;
  }

  #admin-panel table {
    min-width: 640px;
  }

  #admin-panel table,
  #admin-panel .admin-purchases-wrap {
    overflow-x: auto;
  }

  #admin-panel .admin-reset-progress {
    flex-wrap: wrap;
  }

  .docs-body {
    padding: 20px 22px 26px;
  }
}

@media (max-width: 720px) {
  #admin-panel {
    width: calc(100% - 24px);
    margin: 24px 12px;
    padding: 16px 18px;
    box-sizing: border-box;
    overflow: hidden;
  }

  #admin-panel table,
  #admin-panel .admin-purchases-wrap {
    max-width: 100%;
    overflow-x: auto;
  }

  #admin-panel .admin-reset-progress {
    flex-direction: column;
    align-items: stretch;
  }

  #admin-panel .admin-reset-progress input,
  #admin-panel .admin-reset-progress button {
    width: 100%;
  }

  .table-wrapper table {
    min-width: 420px;
  }

  .env-screen {
    padding: 0 12px 20px;
    margin: 70px 0 20px;
    width: 100%;
    max-width: 100%;
  }

  .env-screen-inner {
    padding: 18px 18px 24px;
    border-radius: 20px;
  }

  .env-screen .env-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .env-card {
    padding: 16px 18px;
    width: 100%;
  }
}

#admin-panel .admin-reset-progress input {
  max-width: 120px;
}

.env-screen {
  padding: 32px clamp(20px, 5vw, 40px) 40px;
  max-width: 1100px;
  width: 100%;
  margin: 80px auto 32px;
  box-sizing: border-box;
  overflow: visible;
}
.env-screen .env-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  width: 100%;
}
.env-screen-inner {
  background: rgba(6, 15, 40, 0.95);
  border-radius: 24px;
  border: 1px solid rgba(120, 152, 255, 0.15);
  padding: 32px 32px 40px;
  width: 100%;
  box-sizing: border-box;
}
.env-screen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.env-title-main {
  font-size: 24px;
  font-weight: 700;
}
.env-actions {
  display: flex;
  gap: 12px;
}
.btn-env {
  min-width: 180px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
}
.btn-env-primary {
  background: linear-gradient(135deg, #4f8bff, #7d7bff);
  color: #fff;
}
.btn-env-secondary {
  background: rgba(19, 28, 66, 0.9);
  color: #e1e6ff;
  border: 1px solid rgba(120, 152, 255, 0.35);
}
.env-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}
.env-card {
  padding: 14px 18px 14px 64px;
  border-radius: 16px;
  box-sizing: border-box;
  background: radial-gradient(circle at top left, rgba(96, 123, 255, 0.12), transparent),
              rgba(11, 17, 48, 0.96);
  border: 1px solid rgba(110, 139, 255, 0.2);
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  overflow-wrap: anywhere;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  position: relative;
}
.env-card::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 18px;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(88, 123, 255, 0.85), rgba(144, 92, 255, 0.85));
  box-shadow: 0 8px 24px rgba(72, 98, 255, 0.35);
  opacity: 0.9;
}
.env-card::after {
  content: "";
  position: absolute;
  left: 32px;
  top: 32px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.35;
}
.env-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  border-color: rgba(134, 164, 255, 0.7);
}
.env-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.env-card-title {
  font-size: 16px;
  font-weight: 600;
}
.env-card-step {
  font-size: 13px;
  opacity: 0.85;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(75, 103, 255, 0.16);
  color: #e6ebff;
  white-space: nowrap;
}
.env-card-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  opacity: 0.8;
}
.env-card-lock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 200, 140, 0.4);
  background: rgba(255, 196, 122, 0.12);
  color: #ffd8a0;
}
.env-card-progress {
  margin-top: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(43, 61, 120, 0.9);
  overflow: hidden;
}
.env-card-progress-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #4f8bff, #7d7bff);
  width: 0%;
}
.env-card-delete {
  align-self: flex-start;
  margin-left: auto;
  border: none;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  background: rgba(218, 78, 78, 0.18);
  color: #ffb4b4;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.env-card-delete:hover {
  background: rgba(218, 78, 78, 0.9);
  color: #fff;
}

@media (max-width: 520px) {
  .env-card {
    padding: 14px 16px;
  }
  .env-card::before,
  .env-card::after {
    display: none;
  }
  .env-card-step {
    font-size: 12px;
  }
  .env-card-delete {
    font-size: 11px;
    padding: 4px 10px;
  }
}
.env-empty {
  opacity: 0.7;
  text-align: center;
}

@media (max-width: 600px) {
  .env-screen {
    padding: 16px 12px 26px;
    margin: 48px auto 16px;
  }

  .env-screen-inner {
    padding: 18px 14px 26px;
    border-radius: 20px;
  }

  .env-title-main {
    font-size: 20px;
  }

  .env-screen .env-list {
    grid-template-columns: 1fr;
  }

  .env-card {
    padding: 16px;
  }

  .btn-env {
    font-size: 13px;
    height: 42px;
  }

  #admin-panel {
    padding: 16px 12px 22px;
    border-radius: 14px;
  }

  #admin-panel table {
    min-width: 520px;
  }

  #admin-panel .admin-reset-progress {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  #admin-panel .admin-reset-progress input,
  #admin-panel .admin-reset-progress button {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .admin-user-analytics header {
    flex-direction: column;
  }
}

.toast-root {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 9999;
}
.toast-body {
  min-width: 260px;
  max-width: 360px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  background: rgba(10, 18, 40, 0.96);
  border: 1px solid rgba(120, 152, 255, 0.6);
  color: #e1e6ff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}
.toast-success {
  border-color: rgba(76, 175, 80, 0.8);
}
.toast-error {
  border-color: rgba(244, 67, 54, 0.85);
}

.support-chat {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 3200;
}

.support-toggle {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 1px solid rgba(120, 200, 255, 0.35);
  background: radial-gradient(circle at 30% 30%, rgba(120, 200, 255, 0.35), rgba(70, 120, 255, 0.18));
  box-shadow: 0 24px 60px -26px rgba(80, 140, 255, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  cursor: pointer;
  display: grid;
  place-items: center;
  backdrop-filter: blur(6px);
}

.support-toggle img {
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 0 8px rgba(110, 170, 255, 0.8));
}

.support-panel {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: min(360px, 80vw);
  background: rgba(10, 16, 34, 0.96);
  border: 1px solid rgba(120, 150, 255, 0.3);
  border-radius: 18px;
  box-shadow: 0 24px 90px -36px rgba(40, 70, 160, 0.8);
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}

.support-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(16, 24, 48, 0.95);
  border-bottom: 1px solid rgba(120, 150, 255, 0.24);
}

.support-title {
  font-weight: 700;
  color: #f5f8ff;
}

.support-subtitle {
  font-size: 13px;
  color: rgba(227, 238, 255, 0.72);
}

.support-close {
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
}

.support-messages {
  padding: 12px 14px;
  display: grid;
  gap: 10px;
  max-height: 320px;
  overflow-y: auto;
}

.support-msg {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(120, 150, 255, 0.22);
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 14px;
  color: rgba(230, 236, 255, 0.9);
}

.support-msg.prompt {
  border-color: rgba(90, 210, 255, 0.35);
  background: rgba(40, 70, 120, 0.4);
}

.support-form {
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(120, 150, 255, 0.2);
  display: grid;
  gap: 10px;
}

.support-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: rgba(230, 236, 255, 0.85);
}

.support-form textarea,
.support-form input {
  border-radius: 12px;
  border: 1px solid rgba(125, 155, 255, 0.35);
  background: rgba(8, 13, 30, 0.95);
  color: #f4f7ff;
  font-size: 14px;
  padding: 10px 12px;
}

.support-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.support-actions button {
  min-height: 38px;
}

.support-actions .primary {
  background: linear-gradient(135deg, rgba(120, 200, 255, 0.3), rgba(80, 130, 255, 0.25));
  border: 1px solid rgba(120, 200, 255, 0.5);
  box-shadow: 0 18px 50px -28px rgba(90, 170, 255, 0.8);
  color: #e8f4ff;
}

.support-actions .ghosty {
  background: rgba(60, 120, 255, 0.12);
  color: #dfe7ff;
  border: 1px solid rgba(120, 180, 255, 0.35);
  box-shadow: 0 10px 40px -24px rgba(80, 140, 255, 0.7);
}

.support-escalate-form {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 8px;
}

@media (max-width: 640px) {
  .prompt-area {
    padding: 20px 16px 16px;
  }

  .prompt-actions {
    justify-content: flex-start;
  }

  .support-chat {
    bottom: 12px;
    right: 12px;
  }

  .support-toggle {
    width: 52px;
    height: 52px;
  }

  .support-panel {
    width: min(96vw, 420px);
    right: -6px;
  }

  .support-form,
  .support-escalate-form {
    padding: 10px 12px;
  }

  .setup-box {
    width: min(320px, 90vw);
    padding: 22px 20px 18px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .file-card-stack,
  .info-block,
  .note-block {
    gap: 10px;
  }
}
