:root {
  --bg-main: linear-gradient(180deg, #cfe8ff 0%, #eaf5ff 38%, #b1d7ff 100%);
  --bg-admin: linear-gradient(160deg, #0d2d64 0%, #10397d 48%, #1aa8d7 100%);
  --card-bg: rgba(255, 255, 255, 0.86);
  --text-main: #15345f;
  --text-light: #5a76a2;
  --blue-main: #2891ff;
  --blue-deep: #1150db;
  --green-main: #72ef9f;
  --orange-main: #ff965b;
  --shadow-main: 0 20px 60px rgba(40, 108, 197, 0.18);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --status-pending: #f4a23a;
  --status-contacted: #3c9cff;
  --status-interview: #8b6cff;
  --status-training: #15b48a;
  --status-employed: #1b8d55;
  --status-closed: #7b8da8;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  font-family: "Noto Sans SC", sans-serif;
  color: var(--text-main);
}

body.theme-home {
  min-height: 100vh;
  background: var(--bg-main);
}

body.theme-admin {
  min-height: 100vh;
  background: var(--bg-admin);
}

.page,
.auth-shell,
.admin-shell {
  width: 100%;
}

.mobile-page {
  max-width: 430px;
  margin: 0 auto;
  padding: 18px 14px 32px;
}

.hero-card,
.info-panel,
.form-panel,
.auth-card,
.panel-block {
  position: relative;
  overflow: hidden;
  background: var(--card-bg);
  backdrop-filter: blur(18px);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-main);
}

.hero-card {
  padding: 24px 18px 28px;
  background:
    radial-gradient(circle at 20% 25%, rgba(255, 233, 92, 0.65), transparent 16%),
    radial-gradient(circle at 78% 34%, rgba(87, 255, 230, 0.32), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(234, 246, 255, 0.9));
}

.hero-top-logos {
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 12px;
  font-weight: 700;
  color: #d4352e;
}

.hero-kicker {
  margin: 18px 0 4px;
  font-size: clamp(24px, 7vw, 38px);
  line-height: 1.05;
  font-weight: 900;
  color: #0d1520;
  text-align: center;
}

.hero-card h1 {
  margin: 0;
  text-align: center;
  font-size: clamp(34px, 9vw, 56px);
  line-height: 1;
  letter-spacing: 1px;
  color: var(--blue-deep);
}

.hero-stage {
  position: relative;
  margin-top: 28px;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stage-glow {
  position: absolute;
  inset: 16% 6% 0;
  background:
    radial-gradient(circle, rgba(64, 231, 239, 0.36), transparent 38%),
    radial-gradient(circle at 50% 80%, rgba(0, 123, 255, 0.26), transparent 40%);
  filter: blur(10px);
}

.stage-camera {
  position: relative;
  width: 178px;
  height: 138px;
  border-radius: 32px;
  background: linear-gradient(145deg, #63f3cf, #2f7cff);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 18px 42px rgba(31, 134, 245, 0.25);
}

.stage-camera::before,
.stage-camera::after {
  content: "";
  position: absolute;
  background: linear-gradient(145deg, #6be9ff, #31b9ec);
}

.stage-camera::before {
  right: -34px;
  top: 40px;
  width: 56px;
  height: 56px;
  border-radius: 18px 24px 24px 18px;
}

.stage-camera::after {
  left: -22px;
  top: 30px;
  width: 38px;
  height: 78px;
  border-radius: 20px;
}

.play-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-44%, -50%);
  width: 0;
  height: 0;
  border-top: 26px solid transparent;
  border-bottom: 26px solid transparent;
  border-left: 42px solid rgba(255, 255, 255, 0.96);
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.12));
}

.floating-tag {
  position: absolute;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--blue-deep);
  border-radius: 18px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(79, 129, 212, 0.18);
}

.tag-top {
  top: 8px;
  right: 12px;
}

.tag-left {
  left: 0;
  bottom: 70px;
}

.tag-right {
  right: 8px;
  bottom: 18px;
}

.info-panel,
.form-panel {
  margin-top: 18px;
  padding: 22px 16px 24px;
}

.panel-title {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  margin-bottom: 16px;
  font-size: 21px;
  font-weight: 800;
  color: var(--blue-deep);
  border-radius: 16px 18px 18px 4px;
  background: linear-gradient(90deg, #d8ff6e, #6ef5a3);
}

.info-panel p,
.address-list p {
  margin: 0 0 12px;
  line-height: 1.85;
  color: #375583;
  font-size: 15px;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

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

.flow-item {
  text-align: center;
}

.flow-item span {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 800;
  color: var(--blue-deep);
  background: linear-gradient(180deg, #eef7ff, #d7ebff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.flow-item b {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: #31507f;
}

.signup-form {
  display: grid;
  gap: 14px;
}

.field-row {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  align-items: center;
  min-height: 58px;
  padding: 6px 8px;
  border-radius: 18px;
  background: linear-gradient(180deg, #2994ff, #338cf4);
  box-shadow: 0 10px 22px rgba(50, 128, 238, 0.2);
}

.field-row span {
  padding-left: 12px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
}

.field-row input,
.field-row select,
.field-row textarea {
  width: 100%;
  border: 0;
  outline: 0;
  resize: vertical;
  background: transparent;
  color: #f4fbff;
  font-size: 15px;
  font-family: inherit;
}

.field-row input::placeholder,
.field-row textarea::placeholder {
  color: rgba(244, 251, 255, 0.7);
}

.field-row select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.9) 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.9) 50%, transparent 50%);
  background-position:
    calc(100% - 24px) calc(50% - 3px),
    calc(100% - 17px) calc(50% - 3px);
  background-size: 7px 7px, 7px 7px;
  background-repeat: no-repeat;
}

.field-row option {
  color: #133967;
}

.field-area {
  grid-template-columns: 108px minmax(0, 1fr);
  align-items: start;
  padding-top: 14px;
}

.success-card {
  margin-top: 16px;
  padding: 18px 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(111, 245, 168, 0.2), rgba(52, 154, 255, 0.14));
  border: 1px solid rgba(44, 147, 255, 0.18);
}

.success-card h2 {
  margin: 0 0 10px;
  color: var(--blue-deep);
}

.success-card p {
  margin: 0;
  color: #31507f;
  line-height: 1.7;
}

.success-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 10px;
}

.success-steps span,
.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.success-steps span {
  background: rgba(255, 255, 255, 0.85);
  color: #25578f;
}

.success-tip {
  font-size: 14px;
}

.hidden {
  display: none !important;
}

.primary-btn,
.ghost-btn,
.mini-btn {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.primary-btn:hover,
.ghost-btn:hover,
.mini-btn:hover {
  transform: translateY(-1px);
}

.submit-btn,
.primary-btn {
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #ffb15f, #ff7e57);
  box-shadow: 0 16px 28px rgba(255, 131, 90, 0.26);
}

.mini-btn {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #17416f;
  background: #eaf4ff;
}

.form-message {
  min-height: 24px;
  margin: 14px 0 0;
  text-align: center;
  color: var(--blue-deep);
  font-weight: 700;
}

.entry-link {
  display: block;
  margin-top: 14px;
  text-align: center;
  color: #456a97;
  text-decoration: none;
  font-weight: 700;
}

.auth-shell,
.admin-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 18px 40px;
}

.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  width: min(100%, 460px);
  padding: 34px 28px;
  background:
    radial-gradient(circle at top right, rgba(122, 255, 212, 0.24), transparent 28%),
    rgba(255, 255, 255, 0.9);
}

.auth-badge {
  margin: 0 0 8px;
  color: #17a4c5;
  font-weight: 800;
  letter-spacing: 1px;
}

.auth-card h1,
.admin-header h1,
.panel-block-head h2 {
  margin: 0;
}

.auth-tip,
.panel-block-head p,
#list-count,
.detail-empty {
  color: var(--text-light);
}

.demo-account {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #eef6ff;
  color: #31507f;
  font-size: 14px;
  font-weight: 700;
}

.auth-form,
.followup-form {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.auth-form label,
.filter-row label,
.followup-form label {
  display: grid;
  gap: 8px;
}

.auth-form span,
.filter-row span,
.followup-form span {
  font-weight: 700;
  color: #31507f;
}

.auth-form input,
.filter-row select,
.followup-form input,
.followup-form select,
.followup-form textarea {
  min-height: 52px;
  border: 1px solid rgba(32, 106, 173, 0.12);
  border-radius: 16px;
  padding: 0 16px;
  font-size: 15px;
  font-family: inherit;
}

.followup-form textarea {
  min-height: 120px;
  padding: 14px 16px;
  resize: vertical;
}

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

.admin-header,
.panel-block-head,
.filter-row,
.header-actions {
  display: flex;
  gap: 14px;
}

.admin-header,
.panel-block-head {
  align-items: center;
  justify-content: space-between;
}

.header-actions {
  flex-wrap: wrap;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.stat-card {
  padding: 22px 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-main);
}

.stat-card p {
  margin: 0 0 10px;
  color: var(--text-light);
}

.stat-card strong {
  font-size: 30px;
  color: #10397d;
}

.panel-block {
  margin-top: 18px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.95);
}

.filter-row {
  flex-wrap: wrap;
  margin-top: 18px;
}

.filter-row label {
  flex: 1 1 220px;
}

.table-wrap {
  margin-top: 18px;
  overflow: auto;
}

.data-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(25, 73, 124, 0.08);
  text-align: left;
  font-size: 14px;
  color: #264770;
  vertical-align: top;
}

.data-table th {
  color: #10397d;
  background: #eff6ff;
}

.empty-row td {
  text-align: center;
  color: #6c86ad;
}

.detail-panel {
  overflow: visible;
}

.detail-empty {
  padding: 30px 16px;
  text-align: center;
  border-radius: 18px;
  background: #f5f9ff;
}

.detail-card {
  display: grid;
  gap: 20px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.detail-item {
  padding: 14px 16px;
  border-radius: 18px;
  background: #f5f9ff;
}

.detail-item b {
  display: block;
  margin-bottom: 6px;
  color: #4f6f9b;
  font-size: 13px;
}

.detail-item span {
  color: #183f70;
  line-height: 1.7;
  word-break: break-all;
}

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

.status-pending {
  color: #7a4c00;
  background: rgba(244, 162, 58, 0.18);
}

.status-contacted {
  color: #0e5ebb;
  background: rgba(60, 156, 255, 0.16);
}

.status-interview {
  color: #5d44cc;
  background: rgba(139, 108, 255, 0.16);
}

.status-training {
  color: #0d8662;
  background: rgba(21, 180, 138, 0.16);
}

.status-employed {
  color: #12683d;
  background: rgba(27, 141, 85, 0.16);
}

.status-closed {
  color: #58708f;
  background: rgba(123, 141, 168, 0.16);
}

@media (max-width: 1100px) {
  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 640px) {
  .mobile-page {
    padding-inline: 10px;
  }

  .panel-title {
    font-size: 18px;
  }

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

  .field-row,
  .field-area {
    grid-template-columns: 1fr;
    padding: 12px 14px;
  }

  .field-row span {
    padding-left: 0;
    padding-bottom: 6px;
  }

  .admin-header,
  .panel-block-head {
    flex-direction: column;
    align-items: stretch;
  }

  .stats-grid,
  .detail-grid,
  .followup-form {
    grid-template-columns: 1fr;
  }

  .panel-block {
    padding: 18px 14px;
  }
}
