:root {
  --bg: #020617;
  --card-bg: #050818;
  --accent: #22d3ee;
  --accent-soft: rgba(34, 211, 238, 0.16);
  --accent-pink: rgba(244, 63, 94, 0.5);
  --border-subtle: rgba(148, 163, 184, 0.3);
  --text-primary: #e5e7eb;
  --text-muted: #9ca3af;
  --danger: #fb7185;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background:
    radial-gradient(circle at top, #1f2937 0, transparent 55%),
    radial-gradient(circle at bottom, #020617 0, #000 55%);
  color: var(--text-primary);
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.18), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(244, 63, 94, 0.14), transparent 55%);
  opacity: 0.7;
  mix-blend-mode: screen;
  z-index: 0;
  font-size: 15px;
}

.page {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px 28px 32px;
}

.card {
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 55%),
    radial-gradient(circle at bottom right, rgba(244, 63, 94, 0.14), transparent 60%),
    radial-gradient(circle at top, #020617 0, #020617 55%, #000 100%);
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.9);
  padding: 24px 26px;
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 40px);
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(148, 163, 184, 0.18) 0, transparent 24%, transparent 76%, rgba(148, 163, 184, 0.18) 100%),
    repeating-linear-gradient(
      to right,
      rgba(15, 23, 42, 0.4),
      rgba(15, 23, 42, 0.4) 1px,
      transparent 1px,
      transparent 32px
    ),
    repeating-linear-gradient(
      to bottom,
      rgba(15, 23, 42, 0.4),
      rgba(15, 23, 42, 0.4) 1px,
      transparent 1px,
      transparent 32px
    );
  opacity: 0.7;
  pointer-events: none;
}

.card-inner {
  position: relative;
  z-index: 1;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.title-block {
  display: flex;
  align-items: center;
  gap: 10px;
}

.title-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0, #4ade80, #22d3ee 45%, #6366f1 100%);
  box-shadow:
    0 0 0 1px rgba(148, 163, 184, 0.5),
    0 0 32px rgba(56, 189, 248, 0.55);
}

.title-text-main {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.title-text-sub {
  font-size: 13px;
  color: var(--text-muted);
}

.badge {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: rgba(15, 23, 42, 0.96);
  color: var(--text-muted);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.9);
}

.section {
  background: linear-gradient(
      135deg,
      rgba(15, 23, 42, 0.98),
      rgba(15, 23, 42, 0.96),
      rgba(15, 23, 42, 0.98)
    );
  border-radius: 14px;
  border: 1px solid rgba(31, 41, 55, 0.95);
  padding: 16px 16px 14px;
  margin-bottom: 12px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.9);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.section-title {
  font-size: 14px;
  font-weight: 600;
}

.section-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}

.section-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

label {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
  color: var(--text-muted);
}

.field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.field {
  flex: 1 1 180px;
}

input[type='text'],
input[type='email'],
input[type='password'],
select,
textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid rgba(30, 64, 175, 0.7);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.96));
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

input::placeholder,
textarea::placeholder {
  color: rgba(148, 163, 184, 0.7);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(56, 189, 248, 0.85);
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.75),
    0 0 24px rgba(8, 47, 73, 0.9);
}

textarea {
  min-height: 70px;
  resize: vertical;
}

.button-row {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.btn {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.96);
  color: var(--text-primary);
  border-color: rgba(148, 163, 184, 0.6);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease,
    box-shadow 0.1s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #22d3ee, #6366f1);
  border-color: transparent;
  color: white;
  box-shadow:
    0 0 22px rgba(34, 211, 238, 0.55),
    0 12px 30px rgba(15, 23, 42, 0.9);
}

.btn-primary:hover {
  transform: translateY(-0.5px);
  box-shadow: 0 14px 40px rgba(37, 99, 235, 0.7);
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.98);
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 1);
}

.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.45);
  font-size: 11px;
  color: var(--text-muted);
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
}

.pill-dot.destructive {
  background: #f97373;
}

.pill-text {
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.notice {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.notice-strong {
  color: #e5e7eb;
}

.questions-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: calc(100vh - 280px);
  overflow-y: auto;
  padding-right: 4px;
}

.question-item {
  padding: 10px 11px 9px;
  border-radius: 12px;
  background:
    linear-gradient(
      120deg,
      rgba(15, 23, 42, 0.98),
      rgba(15, 23, 42, 0.95),
      rgba(15, 23, 42, 0.98)
    );
  border: 1px solid rgba(30, 64, 175, 0.85);
}

.question-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.question-title {
  font-size: 13px;
}

.question-meta {
  font-size: 11px;
  color: var(--text-muted);
}

.status {
  margin-top: 6px;
  font-size: 12px;
}

.status-error {
  color: var(--danger);
}

.status-success {
  color: #4ade80;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-top: 6px;
}

.table th,
.table td {
  padding: 6px 8px;
  border-bottom: 1px solid rgba(30, 41, 59, 0.8);
}

.table th {
  text-align: left;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(15, 23, 42, 0.98);
  position: sticky;
  top: 0;
  z-index: 1;
}

.table tbody tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.85);
}

.table-scroll {
  max-height: 320px;
  overflow-y: auto;
  margin-top: 6px;
}

.chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(30, 64, 175, 0.8);
  background: rgba(15, 23, 42, 0.98);
  font-size: 12px;
  cursor: pointer;
  color: var(--text-muted);
}

.chip.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--text-primary);
}

.hidden {
  display: none !important;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 14px;
  margin-top: 4px;
}

@media (max-width: 860px) {
  .page {
    padding: 18px 14px;
  }

  .card {
    padding: 18px 16px;
  }

  .split {
    grid-template-columns: minmax(0, 1fr);
  }
}

