* {
  box-sizing: border-box;
}

:root {
  --bg: #08111f;
  --card: rgba(11, 20, 36, 0.84);
  --text: #f6f8fc;
  --muted: #b7c3d8;
  --line: rgba(255, 255, 255, 0.08);
  --primary: #8cf0c7;
  --accent: #63a1ff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(99, 161, 255, 0.22), transparent 28%),
    radial-gradient(circle at top right, rgba(140, 240, 199, 0.18), transparent 30%),
    linear-gradient(180deg, #07101d 0%, #091524 100%);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.page-shell,
.admin-shell,
.success-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr;
  gap: 24px;
  padding: 56px 0 32px;
  align-items: center;
}

.hero-copy h1,
.section-title h2,
.success-card h1,
.admin-topbar h1,
.admin-login-card h1 {
  font-family: 'Outfit', sans-serif;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0;
}

.hero-copy h1 {
  font-size: clamp(2.5rem, 6vw, 4.9rem);
  max-width: 11ch;
}

.hero-copy p,
.section-title p,
.step-header p,
.admin-topbar p,
.admin-login-card p,
.success-card p {
  color: var(--muted);
  line-height: 1.7;
}

.eyebrow,
.card-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid rgba(140, 240, 199, 0.2);
  background: rgba(140, 240, 199, 0.08);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.hero-actions,
.admin-actions,
.step-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #08111f;
  font-weight: 700;
  padding: 14px 20px;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  box-shadow: none;
}

.hero-card,
.info-card,
.panel,
.funnel-card,
.stat-card,
.success-card,
.admin-login-card,
.table-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-card {
  padding: 32px;
  display: grid;
  gap: 12px;
  min-height: 240px;
  align-content: center;
}

.hero-card-label {
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
}

.hero-card strong {
  font-size: 2rem;
  font-family: 'Outfit', sans-serif;
}

.hero-card span {
  color: var(--muted);
  line-height: 1.6;
}

.section {
  padding: 18px 0;
}

.section-grid,
.two-columns,
.detail-grid,
.stats-grid {
  display: grid;
  gap: 20px;
}

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

.two-columns,
.detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-card,
.panel,
.funnel-card,
.stat-card,
.success-card,
.admin-login-card,
.table-panel {
  padding: 28px;
}

.info-card h2,
.panel h3,
.step-header h3 {
  margin: 0 0 12px;
  font-family: 'Outfit', sans-serif;
}

.detail-list,
.form-grid,
.filter-bar,
.full-width-grid {
  display: grid;
  gap: 18px;
}

.detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.detail-list li,
.detail-block,
.stat-card {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.detail-list li:last-child,
.detail-block:last-child,
.stat-card:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.section-title {
  max-width: 680px;
  margin-bottom: 24px;
}

.progress-steps {
  margin-bottom: 24px;
}

.progress-line {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 14px;
}

.progress-line span {
  display: block;
  height: 100%;
  width: 33.33%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  transition: width 0.25s ease;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--muted);
}

.progress-labels span.active {
  color: var(--text);
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

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

.full-width-grid {
  grid-template-columns: 1fr;
}

.full-width {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 10px;
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  padding: 14px 16px;
  color: var(--text);
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(140, 240, 199, 0.6);
  box-shadow: 0 0 0 4px rgba(140, 240, 199, 0.1);
}

textarea {
  resize: vertical;
}

.alert {
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.alert.error {
  color: #fff1f4;
  background: rgba(255, 124, 147, 0.12);
  border: 1px solid rgba(255, 124, 147, 0.22);
}

.split-actions,
.admin-topbar,
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
}

.success-shell,
.admin-login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.success-card,
.admin-login-card {
  max-width: 640px;
}

.admin-body {
  background:
    radial-gradient(circle at top left, rgba(99, 161, 255, 0.16), transparent 20%),
    linear-gradient(180deg, #07101d 0%, #0b1628 100%);
}

.admin-shell {
  padding: 32px 0 60px;
}

.admin-topbar {
  margin-bottom: 24px;
}

.stats-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 24px;
}

.stat-card {
  padding: 20px;
  min-height: 130px;
}

.stat-card span {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}

.stat-card strong {
  font-size: 2rem;
  font-family: 'Outfit', sans-serif;
}

.filter-bar label {
  flex: 1;
}

.table-panel {
  overflow-x: auto;
}

.candidates-table {
  width: 100%;
  border-collapse: collapse;
}

.candidates-table th,
.candidates-table td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  color: var(--muted);
}

.candidates-table small,
.detail-block small {
  display: block;
  margin-top: 6px;
  color: #8ca0c4;
}

.table-link,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(99, 161, 255, 0.12);
  color: #cfe0ff;
}

.detail-block strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
}

@media (max-width: 1024px) {
  .hero,
  .section-grid,
  .two-columns,
  .detail-grid,
  .stats-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .split-actions,
  .admin-topbar,
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 720px) {
  .page-shell,
  .admin-shell,
  .success-shell {
    width: min(100% - 20px, 1180px);
  }

  .hero {
    padding-top: 28px;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: 2.7rem;
  }

  .info-card,
  .panel,
  .funnel-card,
  .stat-card,
  .success-card,
  .admin-login-card,
  .table-panel {
    padding: 22px;
  }
}
