:root {
  --bg: #050816;
  --bg-2: #07122a;
  --panel: rgba(11, 20, 45, .82);
  --panel-2: rgba(18, 29, 62, .74);
  --panel-solid: #0b1532;
  --ink: #f8fbff;
  --muted: #8ea2c8;
  --line: rgba(129, 154, 220, .22);
  --cyan: #18d8ff;
  --blue: #3377ff;
  --violet: #7b3dff;
  --pink: #ff2fd0;
  --green: #54f59a;
  --yellow: #ffe600;
  --danger: #ff4d6d;
  --shadow: 0 20px 70px rgba(0, 0, 0, .32);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Arial, Tahoma, sans-serif;
  background:
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 68px 68px,
    linear-gradient(0deg, rgba(255,255,255,.026) 1px, transparent 1px) 0 0 / 68px 68px,
    linear-gradient(135deg, #040614 0%, #07132c 42%, #090b22 100%);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(118deg, transparent 0 18%, rgba(24,216,255,.12) 19%, transparent 20% 60%, rgba(255,47,208,.1) 61%, transparent 62%),
    linear-gradient(30deg, transparent 0 42%, rgba(123,61,255,.16) 43%, transparent 44%);
  opacity: .78;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 46px;
  background: rgba(4, 7, 22, .78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 25px;
  font-weight: 900;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 13px;
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--violet) 50%, var(--cyan));
  box-shadow: 0 0 28px rgba(123, 61, 255, .58);
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  color: #cfe1ff;
  font-size: 14px;
  font-weight: 800;
}
.nav a {
  border: 1px solid transparent;
  border-radius: 13px;
  padding: 10px 12px;
}
.nav a:hover {
  border-color: rgba(24,216,255,.36);
  background: rgba(24,216,255,.08);
}
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.primary, .ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 13px;
  padding: 11px 16px;
  cursor: pointer;
  font-weight: 900;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.primary {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--violet) 55%, var(--blue));
  box-shadow: 0 12px 34px rgba(123,61,255,.34);
}
.ghost {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
}
.primary:hover, .ghost:hover { transform: translateY(-1px); }
.small { min-height: 38px; padding: 9px 12px; font-size: 13px; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .85fr);
  gap: 30px;
  align-items: center;
  min-height: 690px;
  padding: 68px 62px 52px;
}
.hero-copy { position: relative; z-index: 1; }
.pill, .badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}
.pill {
  gap: 8px;
  border: 1px solid rgba(255,47,208,.32);
  padding: 10px 15px;
  color: #ffd5fa;
  background: linear-gradient(90deg, rgba(255,47,208,.16), rgba(24,216,255,.08));
}
.pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 16px var(--cyan);
}
.hero h1,
.section-head h1,
.section-head h2 {
  max-width: 880px;
  margin: 22px 0 0;
  line-height: 1.08;
  letter-spacing: 0;
  font-weight: 900;
}
.hero h1 { font-size: 64px; }
.section-head h1,
.section-head h2 { font-size: 48px; }
.hero p,
.section-head p,
.card p,
.feature-grid p {
  color: var(--muted);
  line-height: 1.9;
}
.hero p,
.section-head p {
  max-width: 760px;
  margin-top: 18px;
  font-size: 19px;
}
.search-card {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  max-width: 880px;
  margin-top: 28px;
  padding: 10px;
  border: 1px solid rgba(24,216,255,.22);
  border-radius: 21px;
  background: rgba(8, 16, 38, .78);
  box-shadow: var(--shadow);
}
.search-card input {
  min-width: 0;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 15px;
  padding: 16px;
  color: var(--ink);
  background: rgba(255,255,255,.065);
  outline: none;
}
.search-card input::placeholder { color: #8193bc; }
.search-card input:focus { border-color: rgba(24,216,255,.52); }
.search-card button {
  border: 0;
  border-radius: 15px;
  padding: 0 24px;
  color: white;
  background: linear-gradient(135deg, var(--violet), var(--blue));
  font-weight: 900;
}

.ai-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(129,154,220,.24);
  border-radius: 30px;
  padding: 24px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 36px 36px,
    linear-gradient(0deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 36px 36px,
    linear-gradient(145deg, rgba(9,18,44,.95), rgba(18,13,39,.94));
  box-shadow: 0 28px 90px rgba(0,0,0,.48);
}
.ai-panel::after {
  content: "FORSA";
  position: absolute;
  left: 22px;
  bottom: 12px;
  color: rgba(255,255,255,.04);
  font-size: 74px;
  font-weight: 900;
}
.panel-head {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  color: var(--yellow);
  font-weight: 900;
}
.match-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 16px;
  padding: 17px;
  border: 1px solid rgba(129,154,220,.2);
  border-radius: 20px;
  background: rgba(255,255,255,.065);
}
.match-row span,
.score-ring {
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #032011;
  background: linear-gradient(135deg, #ccffd8, #60ff9b);
  font-weight: 900;
}
.match-row span {
  width: 56px;
  height: 56px;
}
.match-row h3 { margin: 0; }
.match-row p { margin: 7px 0 0; }

.stats,
.feature-grid,
.cards-grid,
.admin-cards,
.weight-grid {
  display: grid;
  gap: 16px;
}
.stats {
  grid-template-columns: repeat(4, 1fr);
  padding: 0 62px 40px;
}
.stats article,
.card,
.feature-grid article,
.admin-cards article,
.admin-panel,
.table-card,
.recommendation-card,
.weight-grid article {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: 0 16px 50px rgba(0,0,0,.22);
  backdrop-filter: blur(14px);
}
.stats article {
  position: relative;
  min-height: 120px;
  padding: 22px;
}
.stats article::before,
.card::before,
.feature-grid article::before,
.admin-panel::before {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--cyan));
}
.stats strong {
  display: block;
  color: var(--cyan);
  font-size: 31px;
}
.stats span,
.muted {
  color: var(--muted);
  font-weight: 800;
}

.section,
.page {
  position: relative;
  padding: 46px 62px;
}
.feature-grid,
.cards-grid {
  grid-template-columns: repeat(3, 1fr);
}
.feature-grid article,
.card,
.admin-panel,
.table-card,
.weight-grid article {
  padding: 22px;
}
.card h2,
.feature-grid h3 {
  margin: 8px 0;
  color: #ffffff;
}
.badge {
  padding: 7px 11px;
  color: #071020;
  background: linear-gradient(135deg, var(--yellow), var(--green));
}
.salary {
  color: var(--yellow);
  font-weight: 900;
}
.band {
  border-block: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(24,216,255,.06), rgba(255,47,208,.06)),
    rgba(5,8,22,.45);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}
.chips span {
  border: 1px solid rgba(129,154,220,.18);
  border-radius: 999px;
  padding: 8px 12px;
  color: #d8e5ff;
  background: rgba(255,255,255,.06);
  font-weight: 900;
}
.filters { margin-bottom: 22px; }
.recommendations {
  display: grid;
  gap: 16px;
}
.recommendation-card {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 18px;
  align-items: center;
  padding: 22px;
}
.score-ring {
  width: 92px;
  height: 92px;
  border: 8px solid rgba(24,216,255,.75);
  background: rgba(84,245,154,.95);
  font-size: 23px;
}
.skill-cloud span { color: #091126; background: linear-gradient(135deg, var(--cyan), var(--green)); }
.meter {
  overflow: hidden;
  height: 12px;
  margin: 16px 0 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.09);
}
.meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pink), var(--yellow), var(--cyan));
}

.login-page {
  min-height: calc(100vh - 73px);
  display: grid;
  place-items: center;
  padding: 28px;
}
.login-card {
  width: min(470px, 100%);
  border: 1px solid rgba(24,216,255,.22);
  border-radius: 25px;
  padding: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.login-card label {
  display: block;
  margin: 18px 0 8px;
  color: #dce8ff;
  font-weight: 900;
}
.login-card input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 14px;
  color: var(--ink);
  background: rgba(255,255,255,.065);
  outline: none;
}
.login-card button {
  width: 100%;
  margin-top: 20px;
}
.error {
  border: 1px solid rgba(255,77,109,.32);
  border-radius: 13px;
  padding: 12px;
  color: #ffd8df;
  background: rgba(255,77,109,.12);
}

.admin-body {
  background:
    linear-gradient(90deg, rgba(255,255,255,.026) 1px, transparent 1px) 0 0 / 54px 54px,
    linear-gradient(0deg, rgba(255,255,255,.022) 1px, transparent 1px) 0 0 / 54px 54px,
    #040917;
}
.admin-shell {
  position: relative;
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: calc(100vh - 73px);
}
.sidebar {
  position: sticky;
  top: 73px;
  height: calc(100vh - 73px);
  overflow: auto;
  border-left: 1px solid var(--line);
  padding: 22px;
  background: rgba(5, 10, 26, .82);
  backdrop-filter: blur(18px);
}
.sidebar a {
  display: block;
  margin: 7px 0;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 13px;
  color: #cfe1ff;
  font-weight: 900;
}
.sidebar a:hover {
  border-color: rgba(24,216,255,.28);
  background: rgba(24,216,255,.08);
}
.sidebar-title {
  margin: 0 0 12px;
  color: var(--yellow);
  font-weight: 900;
}
.admin-content {
  padding: 30px;
}
.admin-title h1 {
  margin: 12px 0 0;
  color: #fff;
  font-size: 48px;
  line-height: 1.12;
}
.admin-cards {
  grid-template-columns: repeat(4, 1fr);
  margin: 24px 0;
}
.admin-cards article {
  min-height: 128px;
  padding: 20px;
}
.admin-cards strong {
  display: block;
  margin-top: 11px;
  color: var(--cyan);
  font-size: 30px;
}
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.table-card {
  overflow-x: auto;
}
.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}
th, td {
  padding: 15px;
  border-bottom: 1px solid rgba(129,154,220,.14);
  text-align: right;
}
th {
  color: var(--yellow);
  font-size: 13px;
}
td { color: #e7efff; }
.weight-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 16px;
}
.weight-grid strong {
  display: block;
  color: var(--cyan);
  font-size: 22px;
}
.weight-grid span {
  display: block;
  margin: 8px 0;
  color: #fff;
  font-size: 26px;
  font-weight: 900;
}
.bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.09);
}
.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pink), var(--yellow), var(--cyan));
}
.module-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.module-card {
  display: block;
  border: 1px solid rgba(129,154,220,.18);
  border-radius: 18px;
  padding: 18px;
  background: rgba(255,255,255,.055);
}
.module-card strong { display: block; margin-bottom: 8px; color: #fff; }
.module-card span { color: var(--green); font-weight: 900; }
.inner-section { padding-inline: 0; }

@media (max-width: 1100px) {
  .topbar { align-items: flex-start; flex-direction: column; padding: 14px 22px; }
  .actions { width: 100%; justify-content: space-between; }
  .hero { grid-template-columns: 1fr; padding: 42px 22px; }
  .hero h1 { font-size: 44px; }
  .stats, .feature-grid, .cards-grid, .admin-cards, .weight-grid, .module-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats, .section, .page { padding-inline: 22px; }
  .admin-shell { grid-template-columns: 1fr; }
  .sidebar { position: relative; top: auto; height: auto; border-left: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 700px) {
  .brand { font-size: 22px; }
  .nav { justify-content: flex-start; overflow-x: auto; width: 100%; flex-wrap: nowrap; padding-bottom: 4px; }
  .nav a { white-space: nowrap; }
  .hero { min-height: 0; }
  .hero h1, .section-head h1, .section-head h2, .admin-title h1 { font-size: 34px; }
  .hero p, .section-head p { font-size: 16px; }
  .search-card { grid-template-columns: 1fr; }
  .search-card button { min-height: 48px; }
  .stats, .feature-grid, .cards-grid, .admin-cards, .weight-grid, .module-grid, .admin-grid {
    grid-template-columns: 1fr;
  }
  .recommendation-card { grid-template-columns: 1fr; }
  .score-ring { width: 82px; height: 82px; }
  .admin-content { padding: 20px; }
}
